unleash-server 5.2.8 → 5.3.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 (767) hide show
  1. package/dist/lib/addons/addon-schema.js +10 -0
  2. package/dist/lib/addons/addon-schema.js.map +1 -1
  3. package/dist/lib/addons/addon.d.ts +1 -0
  4. package/dist/lib/addons/addon.js.map +1 -1
  5. package/dist/lib/addons/datadog-definition.js +1 -0
  6. package/dist/lib/addons/datadog-definition.js.map +1 -1
  7. package/dist/lib/addons/feature-event-formatter-md.d.ts +1 -0
  8. package/dist/lib/addons/feature-event-formatter-md.js +7 -0
  9. package/dist/lib/addons/feature-event-formatter-md.js.map +1 -1
  10. package/dist/lib/addons/index.d.ts +2 -1
  11. package/dist/lib/addons/index.js +12 -2
  12. package/dist/lib/addons/index.js.map +1 -1
  13. package/dist/lib/addons/installation-definition-schema.d.ts +2 -0
  14. package/dist/lib/addons/installation-definition-schema.js +13 -0
  15. package/dist/lib/addons/installation-definition-schema.js.map +1 -0
  16. package/dist/lib/addons/slack-app-definition.d.ts +3 -0
  17. package/dist/lib/addons/slack-app-definition.js +68 -0
  18. package/dist/lib/addons/slack-app-definition.js.map +1 -0
  19. package/dist/lib/addons/slack-app.d.ts +23 -0
  20. package/dist/lib/addons/slack-app.js +137 -0
  21. package/dist/lib/addons/slack-app.js.map +1 -0
  22. package/dist/lib/addons/slack-app.test.d.ts +1 -0
  23. package/dist/lib/addons/slack-app.test.js +191 -0
  24. package/dist/lib/addons/slack-app.test.js.map +1 -0
  25. package/dist/lib/addons/slack-definition.js +1 -0
  26. package/dist/lib/addons/slack-definition.js.map +1 -1
  27. package/dist/lib/addons/teams-definition.js +1 -0
  28. package/dist/lib/addons/teams-definition.js.map +1 -1
  29. package/dist/lib/addons/webhook-definition.js +1 -0
  30. package/dist/lib/addons/webhook-definition.js.map +1 -1
  31. package/dist/lib/create-config.js +2 -2
  32. package/dist/lib/create-config.js.map +1 -1
  33. package/dist/lib/db/access-store.d.ts +0 -1
  34. package/dist/lib/db/access-store.js +1 -14
  35. package/dist/lib/db/access-store.js.map +1 -1
  36. package/dist/lib/db/client-metrics-store-v2.js +7 -2
  37. package/dist/lib/db/client-metrics-store-v2.js.map +1 -1
  38. package/dist/lib/db/context-field-store.js +9 -18
  39. package/dist/lib/db/context-field-store.js.map +1 -1
  40. package/dist/lib/db/event-store.d.ts +2 -0
  41. package/dist/lib/db/event-store.js +19 -9
  42. package/dist/lib/db/event-store.js.map +1 -1
  43. package/dist/lib/db/feature-strategy-store.js +5 -0
  44. package/dist/lib/db/feature-strategy-store.js.map +1 -1
  45. package/dist/lib/db/feature-strategy-store.test.js +1 -0
  46. package/dist/lib/db/feature-strategy-store.test.js.map +1 -1
  47. package/dist/lib/db/feature-toggle-client-store.d.ts +7 -8
  48. package/dist/lib/db/feature-toggle-client-store.js +46 -24
  49. package/dist/lib/db/feature-toggle-client-store.js.map +1 -1
  50. package/dist/lib/db/feature-toggle-store.d.ts +6 -0
  51. package/dist/lib/db/feature-toggle-store.js +35 -0
  52. package/dist/lib/db/feature-toggle-store.js.map +1 -1
  53. package/dist/lib/db/feature-type-store.d.ts +1 -0
  54. package/dist/lib/db/feature-type-store.js +12 -0
  55. package/dist/lib/db/feature-type-store.js.map +1 -1
  56. package/dist/lib/db/group-store.d.ts +5 -7
  57. package/dist/lib/db/group-store.js +51 -25
  58. package/dist/lib/db/group-store.js.map +1 -1
  59. package/dist/lib/db/index.js +1 -1
  60. package/dist/lib/db/index.js.map +1 -1
  61. package/dist/lib/db/project-store.d.ts +3 -5
  62. package/dist/lib/db/project-store.js +19 -19
  63. package/dist/lib/db/project-store.js.map +1 -1
  64. package/dist/lib/db/segment-store.d.ts +2 -1
  65. package/dist/lib/db/segment-store.js +23 -20
  66. package/dist/lib/db/segment-store.js.map +1 -1
  67. package/dist/lib/db/segment-store.test.d.ts +1 -0
  68. package/dist/lib/db/segment-store.test.js +32 -0
  69. package/dist/lib/db/segment-store.test.js.map +1 -0
  70. package/dist/lib/error/bad-data-error.d.ts +1 -0
  71. package/dist/lib/error/bad-data-error.js +18 -5
  72. package/dist/lib/error/bad-data-error.js.map +1 -1
  73. package/dist/lib/error/content-type-error.d.ts +1 -0
  74. package/dist/lib/error/content-type-error.js +1 -0
  75. package/dist/lib/error/content-type-error.js.map +1 -1
  76. package/dist/lib/error/disabled-error.d.ts +1 -0
  77. package/dist/lib/error/disabled-error.js +4 -0
  78. package/dist/lib/error/disabled-error.js.map +1 -1
  79. package/dist/lib/error/feature-has-tag-error.d.ts +1 -0
  80. package/dist/lib/error/feature-has-tag-error.js +4 -0
  81. package/dist/lib/error/feature-has-tag-error.js.map +1 -1
  82. package/dist/lib/error/forbidden-error.d.ts +5 -0
  83. package/dist/lib/error/forbidden-error.js +12 -0
  84. package/dist/lib/error/forbidden-error.js.map +1 -0
  85. package/dist/lib/error/from-legacy-error.js +68 -0
  86. package/dist/lib/error/from-legacy-error.js.map +1 -1
  87. package/dist/lib/error/incompatible-project-error.d.ts +1 -0
  88. package/dist/lib/error/incompatible-project-error.js +1 -0
  89. package/dist/lib/error/incompatible-project-error.js.map +1 -1
  90. package/dist/lib/error/index.d.ts +3 -2
  91. package/dist/lib/error/index.js +5 -3
  92. package/dist/lib/error/index.js.map +1 -1
  93. package/dist/lib/error/invalid-operation-error.d.ts +1 -0
  94. package/dist/lib/error/invalid-operation-error.js +4 -0
  95. package/dist/lib/error/invalid-operation-error.js.map +1 -1
  96. package/dist/lib/error/invalid-token-error.d.ts +1 -0
  97. package/dist/lib/error/invalid-token-error.js +1 -0
  98. package/dist/lib/error/invalid-token-error.js.map +1 -1
  99. package/dist/lib/error/minimum-one-environment-error.d.ts +1 -0
  100. package/dist/lib/error/minimum-one-environment-error.js +4 -0
  101. package/dist/lib/error/minimum-one-environment-error.js.map +1 -1
  102. package/dist/lib/error/name-exists-error.d.ts +1 -0
  103. package/dist/lib/error/name-exists-error.js +4 -0
  104. package/dist/lib/error/name-exists-error.js.map +1 -1
  105. package/dist/lib/error/not-implemented-error.d.ts +1 -0
  106. package/dist/lib/error/not-implemented-error.js +4 -0
  107. package/dist/lib/error/not-implemented-error.js.map +1 -1
  108. package/dist/lib/error/notfound-error.d.ts +1 -0
  109. package/dist/lib/error/notfound-error.js +1 -0
  110. package/dist/lib/error/notfound-error.js.map +1 -1
  111. package/dist/lib/error/operation-denied-error.d.ts +1 -0
  112. package/dist/lib/error/operation-denied-error.js +4 -0
  113. package/dist/lib/error/operation-denied-error.js.map +1 -1
  114. package/dist/lib/error/owasp-validation-error.d.ts +1 -0
  115. package/dist/lib/error/owasp-validation-error.js +1 -0
  116. package/dist/lib/error/owasp-validation-error.js.map +1 -1
  117. package/dist/lib/error/password-mismatch.d.ts +1 -0
  118. package/dist/lib/error/password-mismatch.js +1 -0
  119. package/dist/lib/error/password-mismatch.js.map +1 -1
  120. package/dist/lib/error/password-undefined.d.ts +1 -0
  121. package/dist/lib/error/password-undefined.js +1 -0
  122. package/dist/lib/error/password-undefined.js.map +1 -1
  123. package/dist/lib/error/{no-access-error.d.ts → permission-error.d.ts} +3 -2
  124. package/dist/lib/error/{no-access-error.js → permission-error.js} +10 -7
  125. package/dist/lib/error/permission-error.js.map +1 -0
  126. package/dist/lib/error/project-without-owner-error.d.ts +1 -0
  127. package/dist/lib/error/project-without-owner-error.js +1 -0
  128. package/dist/lib/error/project-without-owner-error.js.map +1 -1
  129. package/dist/lib/error/role-in-use-error.d.ts +1 -0
  130. package/dist/lib/error/role-in-use-error.js +4 -0
  131. package/dist/lib/error/role-in-use-error.js.map +1 -1
  132. package/dist/lib/error/unauthorized-error.d.ts +1 -0
  133. package/dist/lib/error/unauthorized-error.js +4 -0
  134. package/dist/lib/error/unauthorized-error.js.map +1 -1
  135. package/dist/lib/error/unleash-error.d.ts +5 -3
  136. package/dist/lib/error/unleash-error.js +4 -61
  137. package/dist/lib/error/unleash-error.js.map +1 -1
  138. package/dist/lib/error/unleash-error.test.js +67 -37
  139. package/dist/lib/error/unleash-error.test.js.map +1 -1
  140. package/dist/lib/error/used-token-error.d.ts +1 -0
  141. package/dist/lib/error/used-token-error.js +1 -0
  142. package/dist/lib/error/used-token-error.js.map +1 -1
  143. package/dist/lib/features/export-import-toggles/export-import-controller.js +12 -7
  144. package/dist/lib/features/export-import-toggles/export-import-controller.js.map +1 -1
  145. package/dist/lib/features/export-import-toggles/import-permissions-service.js +1 -1
  146. package/dist/lib/features/export-import-toggles/import-permissions-service.js.map +1 -1
  147. package/dist/lib/features/feature-toggle/createFeatureToggleService.js +1 -1
  148. package/dist/lib/features/feature-toggle/createFeatureToggleService.js.map +1 -1
  149. package/dist/lib/features/group/createGroupService.d.ts +4 -0
  150. package/dist/lib/features/group/createGroupService.js +20 -0
  151. package/dist/lib/features/group/createGroupService.js.map +1 -0
  152. package/dist/lib/features/playground/feature-evaluator/client.d.ts +3 -1
  153. package/dist/lib/features/playground/feature-evaluator/client.js +33 -13
  154. package/dist/lib/features/playground/feature-evaluator/client.js.map +1 -1
  155. package/dist/lib/features/playground/feature-evaluator/strategy/strategy.d.ts +3 -1
  156. package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js +14 -1
  157. package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js.map +1 -1
  158. package/dist/lib/features/playground/feature-evaluator/variant.d.ts +4 -4
  159. package/dist/lib/features/playground/feature-evaluator/variant.js +14 -10
  160. package/dist/lib/features/playground/feature-evaluator/variant.js.map +1 -1
  161. package/dist/lib/features/playground/offline-unleash-client.js +7 -0
  162. package/dist/lib/features/playground/offline-unleash-client.js.map +1 -1
  163. package/dist/lib/features/playground/offline-unleash-client.test.js +69 -0
  164. package/dist/lib/features/playground/offline-unleash-client.test.js.map +1 -1
  165. package/dist/lib/features/playground/playground-service.js +5 -3
  166. package/dist/lib/features/playground/playground-service.js.map +1 -1
  167. package/dist/lib/features/playground/playground.js +12 -15
  168. package/dist/lib/features/playground/playground.js.map +1 -1
  169. package/dist/lib/middleware/api-token-middleware.js +1 -1
  170. package/dist/lib/middleware/api-token-middleware.js.map +1 -1
  171. package/dist/lib/openapi/index.js +15 -3
  172. package/dist/lib/openapi/index.js.map +1 -1
  173. package/dist/lib/openapi/meta-schema-rules.test.js +0 -126
  174. package/dist/lib/openapi/meta-schema-rules.test.js.map +1 -1
  175. package/dist/lib/openapi/spec/addon-type-schema.d.ts +57 -0
  176. package/dist/lib/openapi/spec/addon-type-schema.js +50 -0
  177. package/dist/lib/openapi/spec/addon-type-schema.js.map +1 -1
  178. package/dist/lib/openapi/spec/addons-schema.d.ts +64 -0
  179. package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +166 -4
  180. package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js +1 -2
  181. package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js.map +1 -1
  182. package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +331 -6
  183. package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +662 -12
  184. package/dist/lib/openapi/spec/api-tokens-schema.d.ts +2 -2
  185. package/dist/lib/openapi/spec/api-tokens-schema.js +2 -2
  186. package/dist/lib/openapi/spec/api-tokens-schema.js.map +1 -1
  187. package/dist/lib/openapi/spec/batch-features-schema.d.ts +3 -0
  188. package/dist/lib/openapi/spec/batch-features-schema.js +3 -0
  189. package/dist/lib/openapi/spec/batch-features-schema.js.map +1 -1
  190. package/dist/lib/openapi/spec/batch-stale-schema.d.ts +7 -0
  191. package/dist/lib/openapi/spec/batch-stale-schema.js +7 -0
  192. package/dist/lib/openapi/spec/batch-stale-schema.js.map +1 -1
  193. package/dist/lib/openapi/spec/change-password-schema.d.ts +5 -0
  194. package/dist/lib/openapi/spec/change-password-schema.js +5 -0
  195. package/dist/lib/openapi/spec/change-password-schema.js.map +1 -1
  196. package/dist/lib/openapi/spec/client-feature-schema.d.ts +121 -3
  197. package/dist/lib/openapi/spec/client-feature-schema.js +2 -0
  198. package/dist/lib/openapi/spec/client-feature-schema.js.map +1 -1
  199. package/dist/lib/openapi/spec/client-features-schema.d.ts +246 -16
  200. package/dist/lib/openapi/spec/client-features-schema.js +5 -3
  201. package/dist/lib/openapi/spec/client-features-schema.js.map +1 -1
  202. package/dist/lib/openapi/spec/client-features-schema.test.js +1 -2
  203. package/dist/lib/openapi/spec/client-features-schema.test.js.map +1 -1
  204. package/dist/lib/openapi/spec/client-segment-schema.d.ts +75 -0
  205. package/dist/lib/openapi/spec/client-segment-schema.js +35 -0
  206. package/dist/lib/openapi/spec/client-segment-schema.js.map +1 -0
  207. package/dist/lib/openapi/spec/clone-feature-schema.d.ts +5 -0
  208. package/dist/lib/openapi/spec/clone-feature-schema.js +5 -0
  209. package/dist/lib/openapi/spec/clone-feature-schema.js.map +1 -1
  210. package/dist/lib/openapi/spec/context-field-schema.d.ts +22 -3
  211. package/dist/lib/openapi/spec/context-field-schema.js +17 -3
  212. package/dist/lib/openapi/spec/context-field-schema.js.map +1 -1
  213. package/dist/lib/openapi/spec/context-field-strategies-schema.d.ts +1 -1
  214. package/dist/lib/openapi/spec/context-field-strategies-schema.js +1 -1
  215. package/dist/lib/openapi/spec/context-field-strategies-schema.js.map +1 -1
  216. package/dist/lib/openapi/spec/context-fields-schema.d.ts +28 -3
  217. package/dist/lib/openapi/spec/context-fields-schema.js +1 -0
  218. package/dist/lib/openapi/spec/context-fields-schema.js.map +1 -1
  219. package/dist/lib/openapi/spec/create-api-token-schema.d.ts +130 -32
  220. package/dist/lib/openapi/spec/create-api-token-schema.js +71 -35
  221. package/dist/lib/openapi/spec/create-api-token-schema.js.map +1 -1
  222. package/dist/lib/openapi/spec/create-feature-schema.d.ts +9 -0
  223. package/dist/lib/openapi/spec/create-feature-schema.js +9 -0
  224. package/dist/lib/openapi/spec/create-feature-schema.js.map +1 -1
  225. package/dist/lib/openapi/spec/create-feature-strategy-schema.d.ts +63 -2
  226. package/dist/lib/openapi/spec/create-feature-strategy-schema.js +12 -2
  227. package/dist/lib/openapi/spec/create-feature-strategy-schema.js.map +1 -1
  228. package/dist/lib/openapi/spec/create-group-schema.d.ts +61 -0
  229. package/dist/lib/openapi/spec/create-group-schema.js +43 -0
  230. package/dist/lib/openapi/spec/create-group-schema.js.map +1 -0
  231. package/dist/lib/openapi/spec/create-strategy-schema.d.ts +52 -0
  232. package/dist/lib/openapi/spec/create-strategy-schema.js +60 -0
  233. package/dist/lib/openapi/spec/create-strategy-schema.js.map +1 -0
  234. package/dist/lib/openapi/spec/create-strategy-variant-schema.d.ts +54 -0
  235. package/dist/lib/openapi/spec/create-strategy-variant-schema.js +53 -0
  236. package/dist/lib/openapi/spec/create-strategy-variant-schema.js.map +1 -0
  237. package/dist/lib/openapi/spec/create-user-response-schema.d.ts +98 -0
  238. package/dist/lib/openapi/spec/create-user-response-schema.js +31 -0
  239. package/dist/lib/openapi/spec/create-user-response-schema.js.map +1 -0
  240. package/dist/lib/openapi/spec/create-user-schema.d.ts +21 -1
  241. package/dist/lib/openapi/spec/create-user-schema.js +24 -1
  242. package/dist/lib/openapi/spec/create-user-schema.js.map +1 -1
  243. package/dist/lib/openapi/spec/email-schema.d.ts +3 -0
  244. package/dist/lib/openapi/spec/email-schema.js +3 -0
  245. package/dist/lib/openapi/spec/email-schema.js.map +1 -1
  246. package/dist/lib/openapi/spec/environment-project-schema.d.ts +115 -2
  247. package/dist/lib/openapi/spec/environment-project-schema.js +2 -0
  248. package/dist/lib/openapi/spec/environment-project-schema.js.map +1 -1
  249. package/dist/lib/openapi/spec/environments-project-schema.d.ts +118 -2
  250. package/dist/lib/openapi/spec/environments-project-schema.js +3 -0
  251. package/dist/lib/openapi/spec/environments-project-schema.js.map +1 -1
  252. package/dist/lib/openapi/spec/environments-schema.d.ts +4 -0
  253. package/dist/lib/openapi/spec/environments-schema.js +4 -0
  254. package/dist/lib/openapi/spec/environments-schema.js.map +1 -1
  255. package/dist/lib/openapi/spec/event-schema.d.ts +130 -0
  256. package/dist/lib/openapi/spec/event-schema.js +42 -2
  257. package/dist/lib/openapi/spec/event-schema.js.map +1 -1
  258. package/dist/lib/openapi/spec/events-schema.d.ts +137 -0
  259. package/dist/lib/openapi/spec/events-schema.js +7 -0
  260. package/dist/lib/openapi/spec/events-schema.js.map +1 -1
  261. package/dist/lib/openapi/spec/export-query-schema.d.ts +7 -0
  262. package/dist/lib/openapi/spec/export-query-schema.js +7 -0
  263. package/dist/lib/openapi/spec/export-query-schema.js.map +1 -1
  264. package/dist/lib/openapi/spec/export-result-schema.d.ts +609 -17
  265. package/dist/lib/openapi/spec/export-result-schema.js +90 -0
  266. package/dist/lib/openapi/spec/export-result-schema.js.map +1 -1
  267. package/dist/lib/openapi/spec/feature-environment-schema.d.ts +125 -3
  268. package/dist/lib/openapi/spec/feature-environment-schema.js +6 -0
  269. package/dist/lib/openapi/spec/feature-environment-schema.js.map +1 -1
  270. package/dist/lib/openapi/spec/feature-events-schema.d.ts +141 -1
  271. package/dist/lib/openapi/spec/feature-events-schema.js +13 -1
  272. package/dist/lib/openapi/spec/feature-events-schema.js.map +1 -1
  273. package/dist/lib/openapi/spec/feature-schema.d.ts +251 -6
  274. package/dist/lib/openapi/spec/feature-schema.js +7 -0
  275. package/dist/lib/openapi/spec/feature-schema.js.map +1 -1
  276. package/dist/lib/openapi/spec/feature-schema.test.js +2 -2
  277. package/dist/lib/openapi/spec/feature-schema.test.js.map +1 -1
  278. package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +61 -1
  279. package/dist/lib/openapi/spec/feature-strategy-schema.js +10 -1
  280. package/dist/lib/openapi/spec/feature-strategy-schema.js.map +1 -1
  281. package/dist/lib/openapi/spec/feature-type-schema.d.ts +11 -1
  282. package/dist/lib/openapi/spec/feature-type-schema.js +11 -1
  283. package/dist/lib/openapi/spec/feature-type-schema.js.map +1 -1
  284. package/dist/lib/openapi/spec/feature-types-schema.d.ts +42 -1
  285. package/dist/lib/openapi/spec/feature-types-schema.js +37 -0
  286. package/dist/lib/openapi/spec/feature-types-schema.js.map +1 -1
  287. package/dist/lib/openapi/spec/feature-variants-schema.d.ts +11 -2
  288. package/dist/lib/openapi/spec/feature-variants-schema.js +4 -0
  289. package/dist/lib/openapi/spec/feature-variants-schema.js.map +1 -1
  290. package/dist/lib/openapi/spec/features-schema.d.ts +501 -12
  291. package/dist/lib/openapi/spec/features-schema.js +6 -0
  292. package/dist/lib/openapi/spec/features-schema.js.map +1 -1
  293. package/dist/lib/openapi/spec/feedback-create-schema.d.ts +21 -0
  294. package/dist/lib/openapi/spec/feedback-create-schema.js +23 -0
  295. package/dist/lib/openapi/spec/feedback-create-schema.js.map +1 -0
  296. package/dist/lib/openapi/spec/feedback-response-schema.d.ts +33 -0
  297. package/dist/lib/openapi/spec/feedback-response-schema.js +35 -0
  298. package/dist/lib/openapi/spec/feedback-response-schema.js.map +1 -0
  299. package/dist/lib/openapi/spec/feedback-update-schema.d.ts +27 -0
  300. package/dist/lib/openapi/spec/feedback-update-schema.js +29 -0
  301. package/dist/lib/openapi/spec/feedback-update-schema.js.map +1 -0
  302. package/dist/lib/openapi/spec/group-schema.d.ts +107 -9
  303. package/dist/lib/openapi/spec/group-schema.js +20 -3
  304. package/dist/lib/openapi/spec/group-schema.js.map +1 -1
  305. package/dist/lib/openapi/spec/group-user-model-schema.d.ts +46 -3
  306. package/dist/lib/openapi/spec/group-user-model-schema.js +5 -0
  307. package/dist/lib/openapi/spec/group-user-model-schema.js.map +1 -1
  308. package/dist/lib/openapi/spec/groups-schema.d.ts +196 -15
  309. package/dist/lib/openapi/spec/groups-schema.js +2 -0
  310. package/dist/lib/openapi/spec/groups-schema.js.map +1 -1
  311. package/dist/lib/openapi/spec/health-overview-schema.d.ts +733 -16
  312. package/dist/lib/openapi/spec/health-overview-schema.js +10 -0
  313. package/dist/lib/openapi/spec/health-overview-schema.js.map +1 -1
  314. package/dist/lib/openapi/spec/health-report-schema.d.ts +733 -16
  315. package/dist/lib/openapi/spec/id-schema.d.ts +3 -0
  316. package/dist/lib/openapi/spec/id-schema.js +3 -0
  317. package/dist/lib/openapi/spec/id-schema.js.map +1 -1
  318. package/dist/lib/openapi/spec/import-toggles-schema.d.ts +1198 -63
  319. package/dist/lib/openapi/spec/import-toggles-schema.js +7 -0
  320. package/dist/lib/openapi/spec/import-toggles-schema.js.map +1 -1
  321. package/dist/lib/openapi/spec/import-toggles-validate-item-schema.d.ts +5 -0
  322. package/dist/lib/openapi/spec/import-toggles-validate-item-schema.js +5 -0
  323. package/dist/lib/openapi/spec/import-toggles-validate-item-schema.js.map +1 -1
  324. package/dist/lib/openapi/spec/import-toggles-validate-schema.d.ts +18 -0
  325. package/dist/lib/openapi/spec/import-toggles-validate-schema.js +17 -0
  326. package/dist/lib/openapi/spec/import-toggles-validate-schema.js.map +1 -1
  327. package/dist/lib/openapi/spec/index.d.ts +15 -3
  328. package/dist/lib/openapi/spec/index.js +15 -3
  329. package/dist/lib/openapi/spec/index.js.map +1 -1
  330. package/dist/lib/openapi/spec/legal-value-schema.d.ts +5 -0
  331. package/dist/lib/openapi/spec/legal-value-schema.js +5 -0
  332. package/dist/lib/openapi/spec/legal-value-schema.js.map +1 -1
  333. package/dist/lib/openapi/spec/login-schema.d.ts +5 -0
  334. package/dist/lib/openapi/spec/login-schema.js +5 -0
  335. package/dist/lib/openapi/spec/login-schema.js.map +1 -1
  336. package/dist/lib/openapi/spec/me-schema.d.ts +69 -11
  337. package/dist/lib/openapi/spec/me-schema.js +7 -3
  338. package/dist/lib/openapi/spec/me-schema.js.map +1 -1
  339. package/dist/lib/openapi/spec/name-schema.d.ts +3 -0
  340. package/dist/lib/openapi/spec/name-schema.js +3 -0
  341. package/dist/lib/openapi/spec/name-schema.js.map +1 -1
  342. package/dist/lib/openapi/spec/parameters-schema.d.ts +1 -0
  343. package/dist/lib/openapi/spec/parameters-schema.js +1 -0
  344. package/dist/lib/openapi/spec/parameters-schema.js.map +1 -1
  345. package/dist/lib/openapi/spec/password-schema.d.ts +7 -0
  346. package/dist/lib/openapi/spec/password-schema.js +7 -0
  347. package/dist/lib/openapi/spec/password-schema.js.map +1 -1
  348. package/dist/lib/openapi/spec/patches-schema.d.ts +1 -0
  349. package/dist/lib/openapi/spec/patches-schema.js +1 -0
  350. package/dist/lib/openapi/spec/patches-schema.js.map +1 -1
  351. package/dist/lib/openapi/spec/permission-schema.d.ts +7 -0
  352. package/dist/lib/openapi/spec/permission-schema.js +7 -0
  353. package/dist/lib/openapi/spec/permission-schema.js.map +1 -1
  354. package/dist/lib/openapi/spec/playground-feature-schema.d.ts +165 -3
  355. package/dist/lib/openapi/spec/playground-feature-schema.js +0 -1
  356. package/dist/lib/openapi/spec/playground-feature-schema.js.map +1 -1
  357. package/dist/lib/openapi/spec/playground-response-schema.d.ts +330 -5
  358. package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +204 -0
  359. package/dist/lib/openapi/spec/playground-strategy-schema.js +49 -0
  360. package/dist/lib/openapi/spec/playground-strategy-schema.js.map +1 -1
  361. package/dist/lib/openapi/spec/profile-schema.d.ts +267 -7
  362. package/dist/lib/openapi/spec/profile-schema.js +5 -0
  363. package/dist/lib/openapi/spec/profile-schema.js.map +1 -1
  364. package/dist/lib/openapi/spec/project-environment-schema.d.ts +115 -2
  365. package/dist/lib/openapi/spec/project-environment-schema.js +2 -0
  366. package/dist/lib/openapi/spec/project-environment-schema.js.map +1 -1
  367. package/dist/lib/openapi/spec/project-overview-schema.d.ts +733 -16
  368. package/dist/lib/openapi/spec/project-overview-schema.js +10 -0
  369. package/dist/lib/openapi/spec/project-overview-schema.js.map +1 -1
  370. package/dist/lib/openapi/spec/proxy-client-schema.d.ts +3 -0
  371. package/dist/lib/openapi/spec/proxy-client-schema.js +3 -0
  372. package/dist/lib/openapi/spec/proxy-client-schema.js.map +1 -1
  373. package/dist/lib/openapi/spec/proxy-feature-schema.d.ts +20 -2
  374. package/dist/lib/openapi/spec/proxy-feature-schema.js +20 -3
  375. package/dist/lib/openapi/spec/proxy-feature-schema.js.map +1 -1
  376. package/dist/lib/openapi/spec/proxy-features-schema.d.ts +22 -1
  377. package/dist/lib/openapi/spec/proxy-features-schema.js +2 -0
  378. package/dist/lib/openapi/spec/proxy-features-schema.js.map +1 -1
  379. package/dist/lib/openapi/spec/public-signup-token-schema.d.ts +52 -4
  380. package/dist/lib/openapi/spec/public-signup-tokens-schema.d.ts +104 -8
  381. package/dist/lib/openapi/spec/push-variants-schema.d.ts +7 -2
  382. package/dist/lib/openapi/spec/requests-per-second-schema.d.ts +16 -0
  383. package/dist/lib/openapi/spec/requests-per-second-schema.js +22 -2
  384. package/dist/lib/openapi/spec/requests-per-second-schema.js.map +1 -1
  385. package/dist/lib/openapi/spec/requests-per-second-segmented-schema.d.ts +17 -0
  386. package/dist/lib/openapi/spec/requests-per-second-segmented-schema.js +1 -0
  387. package/dist/lib/openapi/spec/requests-per-second-segmented-schema.js.map +1 -1
  388. package/dist/lib/openapi/spec/role-schema.d.ts +11 -1
  389. package/dist/lib/openapi/spec/role-schema.js +11 -1
  390. package/dist/lib/openapi/spec/role-schema.js.map +1 -1
  391. package/dist/lib/openapi/spec/search-events-schema.d.ts +9 -0
  392. package/dist/lib/openapi/spec/search-events-schema.js +10 -0
  393. package/dist/lib/openapi/spec/search-events-schema.js.map +1 -1
  394. package/dist/lib/openapi/spec/segment-schema.d.ts +23 -6
  395. package/dist/lib/openapi/spec/segment-schema.js +18 -15
  396. package/dist/lib/openapi/spec/segment-schema.js.map +1 -1
  397. package/dist/lib/openapi/spec/set-strategy-sort-order-schema.d.ts +6 -0
  398. package/dist/lib/openapi/spec/set-strategy-sort-order-schema.js +6 -0
  399. package/dist/lib/openapi/spec/set-strategy-sort-order-schema.js.map +1 -1
  400. package/dist/lib/openapi/spec/set-ui-config-schema.d.ts +4 -0
  401. package/dist/lib/openapi/spec/set-ui-config-schema.js +4 -0
  402. package/dist/lib/openapi/spec/set-ui-config-schema.js.map +1 -1
  403. package/dist/lib/openapi/spec/splash-request-schema.d.ts +21 -0
  404. package/dist/lib/openapi/spec/splash-request-schema.js +23 -0
  405. package/dist/lib/openapi/spec/splash-request-schema.js.map +1 -0
  406. package/dist/lib/openapi/spec/splash-response-schema.d.ts +27 -0
  407. package/dist/lib/openapi/spec/splash-response-schema.js +21 -0
  408. package/dist/lib/openapi/spec/splash-response-schema.js.map +1 -0
  409. package/dist/lib/openapi/spec/state-schema.d.ts +523 -19
  410. package/dist/lib/openapi/spec/state-schema.js +2 -0
  411. package/dist/lib/openapi/spec/state-schema.js.map +1 -1
  412. package/dist/lib/openapi/spec/strategies-schema.d.ts +9 -3
  413. package/dist/lib/openapi/spec/strategies-schema.js +5 -0
  414. package/dist/lib/openapi/spec/strategies-schema.js.map +1 -1
  415. package/dist/lib/openapi/spec/strategy-schema.d.ts +4 -3
  416. package/dist/lib/openapi/spec/strategy-schema.js +4 -3
  417. package/dist/lib/openapi/spec/strategy-schema.js.map +1 -1
  418. package/dist/lib/openapi/spec/strategy-schema.test.js +5 -0
  419. package/dist/lib/openapi/spec/strategy-schema.test.js.map +1 -1
  420. package/dist/lib/openapi/spec/strategy-variant-schema.d.ts +54 -0
  421. package/dist/lib/openapi/spec/strategy-variant-schema.js +16 -0
  422. package/dist/lib/openapi/spec/strategy-variant-schema.js.map +1 -0
  423. package/dist/lib/openapi/spec/tag-type-schema.d.ts +7 -0
  424. package/dist/lib/openapi/spec/tag-type-schema.js +7 -0
  425. package/dist/lib/openapi/spec/tag-type-schema.js.map +1 -1
  426. package/dist/lib/openapi/spec/tag-types-schema.d.ts +11 -0
  427. package/dist/lib/openapi/spec/tag-types-schema.js +4 -0
  428. package/dist/lib/openapi/spec/tag-types-schema.js.map +1 -1
  429. package/dist/lib/openapi/spec/tag-with-version-schema.d.ts +3 -0
  430. package/dist/lib/openapi/spec/tag-with-version-schema.js +3 -0
  431. package/dist/lib/openapi/spec/tag-with-version-schema.js.map +1 -1
  432. package/dist/lib/openapi/spec/telemetry-settings-schema.d.ts +22 -0
  433. package/dist/lib/openapi/spec/telemetry-settings-schema.js +24 -0
  434. package/dist/lib/openapi/spec/telemetry-settings-schema.js.map +1 -0
  435. package/dist/lib/openapi/spec/token-user-schema.d.ts +23 -2
  436. package/dist/lib/openapi/spec/token-user-schema.js +12 -1
  437. package/dist/lib/openapi/spec/token-user-schema.js.map +1 -1
  438. package/dist/lib/openapi/spec/ui-config-schema.d.ts +77 -1
  439. package/dist/lib/openapi/spec/ui-config-schema.js +53 -0
  440. package/dist/lib/openapi/spec/ui-config-schema.js.map +1 -1
  441. package/dist/lib/openapi/spec/update-api-token-schema.d.ts +3 -0
  442. package/dist/lib/openapi/spec/update-api-token-schema.js +3 -0
  443. package/dist/lib/openapi/spec/update-api-token-schema.js.map +1 -1
  444. package/dist/lib/openapi/spec/update-feature-schema.d.ts +11 -14
  445. package/dist/lib/openapi/spec/update-feature-schema.js +11 -14
  446. package/dist/lib/openapi/spec/update-feature-schema.js.map +1 -1
  447. package/dist/lib/openapi/spec/update-feature-strategy-schema.d.ts +5 -0
  448. package/dist/lib/openapi/spec/update-feature-strategy-schema.js +4 -0
  449. package/dist/lib/openapi/spec/update-feature-strategy-schema.js.map +1 -1
  450. package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.d.ts +19 -0
  451. package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.js +21 -0
  452. package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.js.map +1 -0
  453. package/dist/lib/openapi/spec/update-strategy-schema.d.ts +47 -0
  454. package/dist/lib/openapi/spec/update-strategy-schema.js +55 -0
  455. package/dist/lib/openapi/spec/update-strategy-schema.js.map +1 -0
  456. package/dist/lib/openapi/spec/update-tag-type-schema.d.ts +5 -0
  457. package/dist/lib/openapi/spec/update-tag-type-schema.js +5 -0
  458. package/dist/lib/openapi/spec/update-tag-type-schema.js.map +1 -1
  459. package/dist/lib/openapi/spec/update-user-schema.d.ts +15 -1
  460. package/dist/lib/openapi/spec/update-user-schema.js +18 -1
  461. package/dist/lib/openapi/spec/update-user-schema.js.map +1 -1
  462. package/dist/lib/openapi/spec/upsert-context-field-schema.d.ts +5 -0
  463. package/dist/lib/openapi/spec/user-schema.d.ts +41 -3
  464. package/dist/lib/openapi/spec/user-schema.js +41 -3
  465. package/dist/lib/openapi/spec/user-schema.js.map +1 -1
  466. package/dist/lib/openapi/spec/users-groups-base-schema.d.ts +194 -15
  467. package/dist/lib/openapi/spec/users-schema.d.ts +55 -4
  468. package/dist/lib/openapi/spec/users-schema.js +3 -0
  469. package/dist/lib/openapi/spec/users-schema.js.map +1 -1
  470. package/dist/lib/openapi/spec/users-search-schema.d.ts +41 -3
  471. package/dist/lib/openapi/spec/validate-feature-schema.d.ts +16 -0
  472. package/dist/lib/openapi/spec/validate-feature-schema.js +18 -0
  473. package/dist/lib/openapi/spec/validate-feature-schema.js.map +1 -0
  474. package/dist/lib/openapi/spec/validate-password-schema.d.ts +3 -0
  475. package/dist/lib/openapi/spec/validate-password-schema.js +3 -0
  476. package/dist/lib/openapi/spec/validate-password-schema.js.map +1 -1
  477. package/dist/lib/openapi/spec/validate-tag-type-schema.d.ts +10 -0
  478. package/dist/lib/openapi/spec/validate-tag-type-schema.js +3 -0
  479. package/dist/lib/openapi/spec/validate-tag-type-schema.js.map +1 -1
  480. package/dist/lib/openapi/spec/variant-flag-schema.d.ts +11 -0
  481. package/dist/lib/openapi/spec/variant-flag-schema.js +11 -0
  482. package/dist/lib/openapi/spec/variant-flag-schema.js.map +1 -1
  483. package/dist/lib/openapi/spec/variant-schema.d.ts +7 -2
  484. package/dist/lib/openapi/spec/variant-schema.js +7 -2
  485. package/dist/lib/openapi/spec/variant-schema.js.map +1 -1
  486. package/dist/lib/openapi/spec/variants-schema.d.ts +7 -2
  487. package/dist/lib/openapi/spec/version-schema.d.ts +16 -1
  488. package/dist/lib/openapi/spec/version-schema.js +16 -1
  489. package/dist/lib/openapi/spec/version-schema.js.map +1 -1
  490. package/dist/lib/openapi/util/openapi-tags.d.ts +14 -2
  491. package/dist/lib/openapi/util/openapi-tags.js +9 -1
  492. package/dist/lib/openapi/util/openapi-tags.js.map +1 -1
  493. package/dist/lib/openapi/util/standard-responses.d.ts +1 -1
  494. package/dist/lib/openapi/util/standard-responses.js +1 -1
  495. package/dist/lib/openapi/util/standard-responses.js.map +1 -1
  496. package/dist/lib/openapi/validate.js +1 -1
  497. package/dist/lib/openapi/validate.js.map +1 -1
  498. package/dist/lib/routes/admin-api/api-token.js +12 -0
  499. package/dist/lib/routes/admin-api/api-token.js.map +1 -1
  500. package/dist/lib/routes/admin-api/archive.d.ts +0 -1
  501. package/dist/lib/routes/admin-api/archive.js +20 -5
  502. package/dist/lib/routes/admin-api/archive.js.map +1 -1
  503. package/dist/lib/routes/admin-api/config.js +4 -0
  504. package/dist/lib/routes/admin-api/config.js.map +1 -1
  505. package/dist/lib/routes/admin-api/constraints.d.ts +2 -2
  506. package/dist/lib/routes/admin-api/constraints.js +5 -2
  507. package/dist/lib/routes/admin-api/constraints.js.map +1 -1
  508. package/dist/lib/routes/admin-api/context.d.ts +2 -1
  509. package/dist/lib/routes/admin-api/context.js +16 -4
  510. package/dist/lib/routes/admin-api/context.js.map +1 -1
  511. package/dist/lib/routes/admin-api/event.js +6 -3
  512. package/dist/lib/routes/admin-api/event.js.map +1 -1
  513. package/dist/lib/routes/admin-api/favorites.js +24 -4
  514. package/dist/lib/routes/admin-api/favorites.js.map +1 -1
  515. package/dist/lib/routes/admin-api/feature-type.d.ts +6 -0
  516. package/dist/lib/routes/admin-api/feature-type.js +37 -1
  517. package/dist/lib/routes/admin-api/feature-type.js.map +1 -1
  518. package/dist/lib/routes/admin-api/feature.d.ts +2 -3
  519. package/dist/lib/routes/admin-api/feature.js +14 -3
  520. package/dist/lib/routes/admin-api/feature.js.map +1 -1
  521. package/dist/lib/routes/admin-api/index.js +2 -0
  522. package/dist/lib/routes/admin-api/index.js.map +1 -1
  523. package/dist/lib/routes/admin-api/project/project-archive.js +13 -4
  524. package/dist/lib/routes/admin-api/project/project-archive.js.map +1 -1
  525. package/dist/lib/routes/admin-api/project/project-features.d.ts +1 -1
  526. package/dist/lib/routes/admin-api/project/project-features.js +116 -27
  527. package/dist/lib/routes/admin-api/project/project-features.js.map +1 -1
  528. package/dist/lib/routes/admin-api/project/variants.js +26 -16
  529. package/dist/lib/routes/admin-api/project/variants.js.map +1 -1
  530. package/dist/lib/routes/admin-api/strategy.d.ts +6 -3
  531. package/dist/lib/routes/admin-api/strategy.js +40 -12
  532. package/dist/lib/routes/admin-api/strategy.js.map +1 -1
  533. package/dist/lib/routes/admin-api/strategy.test.js +5 -5
  534. package/dist/lib/routes/admin-api/strategy.test.js.map +1 -1
  535. package/dist/lib/routes/admin-api/tag-type.js +21 -1
  536. package/dist/lib/routes/admin-api/tag-type.js.map +1 -1
  537. package/dist/lib/routes/admin-api/tag.js +17 -1
  538. package/dist/lib/routes/admin-api/tag.js.map +1 -1
  539. package/dist/lib/routes/admin-api/telemetry.d.ts +14 -0
  540. package/dist/lib/routes/admin-api/telemetry.js +41 -0
  541. package/dist/lib/routes/admin-api/telemetry.js.map +1 -0
  542. package/dist/lib/routes/admin-api/user/user.js +20 -4
  543. package/dist/lib/routes/admin-api/user/user.js.map +1 -1
  544. package/dist/lib/routes/admin-api/user-admin.d.ts +3 -2
  545. package/dist/lib/routes/admin-api/user-admin.js +88 -14
  546. package/dist/lib/routes/admin-api/user-admin.js.map +1 -1
  547. package/dist/lib/routes/admin-api/user-feedback.js +17 -7
  548. package/dist/lib/routes/admin-api/user-feedback.js.map +1 -1
  549. package/dist/lib/routes/admin-api/user-splash.js +9 -3
  550. package/dist/lib/routes/admin-api/user-splash.js.map +1 -1
  551. package/dist/lib/routes/auth/reset-password-controller.js +24 -4
  552. package/dist/lib/routes/auth/reset-password-controller.js.map +1 -1
  553. package/dist/lib/routes/auth/simple-password-provider.js +4 -0
  554. package/dist/lib/routes/auth/simple-password-provider.js.map +1 -1
  555. package/dist/lib/routes/client-api/feature.js +1 -1
  556. package/dist/lib/routes/client-api/feature.js.map +1 -1
  557. package/dist/lib/routes/client-api/feature.test.js +8 -3
  558. package/dist/lib/routes/client-api/feature.test.js.map +1 -1
  559. package/dist/lib/routes/client-api/metrics.js +3 -3
  560. package/dist/lib/routes/client-api/metrics.js.map +1 -1
  561. package/dist/lib/routes/controller.js +2 -2
  562. package/dist/lib/routes/controller.js.map +1 -1
  563. package/dist/lib/routes/index.js +1 -3
  564. package/dist/lib/routes/index.js.map +1 -1
  565. package/dist/lib/routes/proxy-api/index.d.ts +1 -1
  566. package/dist/lib/routes/proxy-api/index.js +27 -4
  567. package/dist/lib/routes/proxy-api/index.js.map +1 -1
  568. package/dist/lib/segments/segment-service-interface.d.ts +2 -1
  569. package/dist/lib/server-impl.js +1 -0
  570. package/dist/lib/server-impl.js.map +1 -1
  571. package/dist/lib/services/addon-service.d.ts +2 -1
  572. package/dist/lib/services/addon-service.js +6 -2
  573. package/dist/lib/services/addon-service.js.map +1 -1
  574. package/dist/lib/services/client-metrics/metrics-service-v2.js +24 -13
  575. package/dist/lib/services/client-metrics/metrics-service-v2.js.map +1 -1
  576. package/dist/lib/services/event-announcer-service.d.ts +8 -0
  577. package/dist/lib/services/event-announcer-service.js +13 -0
  578. package/dist/lib/services/event-announcer-service.js.map +1 -0
  579. package/dist/lib/services/feature-service-potentially-stale.test.d.ts +1 -0
  580. package/dist/lib/services/feature-service-potentially-stale.test.js +44 -0
  581. package/dist/lib/services/feature-service-potentially-stale.test.js.map +1 -0
  582. package/dist/lib/services/feature-toggle-service.d.ts +5 -2
  583. package/dist/lib/services/feature-toggle-service.js +95 -16
  584. package/dist/lib/services/feature-toggle-service.js.map +1 -1
  585. package/dist/lib/services/feature-type-service.d.ts +1 -0
  586. package/dist/lib/services/feature-type-service.js +14 -0
  587. package/dist/lib/services/feature-type-service.js.map +1 -1
  588. package/dist/lib/services/group-service.d.ts +4 -4
  589. package/dist/lib/services/group-service.js.map +1 -1
  590. package/dist/lib/services/index.js +9 -1
  591. package/dist/lib/services/index.js.map +1 -1
  592. package/dist/lib/services/project-schema.js +1 -0
  593. package/dist/lib/services/project-schema.js.map +1 -1
  594. package/dist/lib/services/project-service.d.ts +2 -4
  595. package/dist/lib/services/project-service.js +4 -9
  596. package/dist/lib/services/project-service.js.map +1 -1
  597. package/dist/lib/services/segment-service.d.ts +2 -1
  598. package/dist/lib/services/segment-service.js +3 -0
  599. package/dist/lib/services/segment-service.js.map +1 -1
  600. package/dist/lib/services/tag-type-service.d.ts +2 -2
  601. package/dist/lib/services/tag-type-service.js +5 -3
  602. package/dist/lib/services/tag-type-service.js.map +1 -1
  603. package/dist/lib/services/user-service.js +13 -7
  604. package/dist/lib/services/user-service.js.map +1 -1
  605. package/dist/lib/services/version-service.d.ts +1 -2
  606. package/dist/lib/services/version-service.js +2 -4
  607. package/dist/lib/services/version-service.js.map +1 -1
  608. package/dist/lib/services/version-service.test.js +0 -57
  609. package/dist/lib/services/version-service.test.js.map +1 -1
  610. package/dist/lib/types/authentication-required.d.ts +1 -0
  611. package/dist/lib/types/authentication-required.js +1 -0
  612. package/dist/lib/types/authentication-required.js.map +1 -1
  613. package/dist/lib/types/events.d.ts +138 -99
  614. package/dist/lib/types/events.js +136 -3
  615. package/dist/lib/types/events.js.map +1 -1
  616. package/dist/lib/types/experimental.d.ts +1 -1
  617. package/dist/lib/types/experimental.js +5 -5
  618. package/dist/lib/types/experimental.js.map +1 -1
  619. package/dist/lib/types/group.d.ts +7 -0
  620. package/dist/lib/types/group.js.map +1 -1
  621. package/dist/lib/types/model.d.ts +24 -2
  622. package/dist/lib/types/model.js.map +1 -1
  623. package/dist/lib/types/services.d.ts +3 -0
  624. package/dist/lib/types/stores/event-store.d.ts +1 -0
  625. package/dist/lib/types/stores/feature-toggle-client-store.d.ts +2 -1
  626. package/dist/lib/types/stores/feature-toggle-store.d.ts +6 -0
  627. package/dist/lib/types/stores/feature-type-store.d.ts +1 -0
  628. package/dist/lib/types/stores/group-store.d.ts +4 -4
  629. package/dist/lib/types/stores/project-store.d.ts +3 -6
  630. package/dist/lib/types/stores/segment-store.d.ts +2 -1
  631. package/dist/lib/util/is-email.d.ts +7 -0
  632. package/dist/lib/util/is-email.js +9 -0
  633. package/dist/lib/util/is-email.js.map +1 -1
  634. package/dist/lib/util/load-index-html.js +1 -1
  635. package/dist/lib/util/load-index-html.js.map +1 -1
  636. package/dist/migrations/20230630080126-delete-deprecated-permissions.d.ts +2 -0
  637. package/dist/migrations/20230630080126-delete-deprecated-permissions.js +15 -0
  638. package/dist/migrations/20230630080126-delete-deprecated-permissions.js.map +1 -0
  639. package/dist/migrations/20230706123907-events-announced-column.d.ts +2 -0
  640. package/dist/migrations/20230706123907-events-announced-column.js +15 -0
  641. package/dist/migrations/20230706123907-events-announced-column.js.map +1 -0
  642. package/dist/migrations/20230711094214-add-potentially-stale-flag.d.ts +2 -0
  643. package/dist/migrations/20230711094214-add-potentially-stale-flag.js +18 -0
  644. package/dist/migrations/20230711094214-add-potentially-stale-flag.js.map +1 -0
  645. package/dist/migrations/20230711163311-project-feature-limit.d.ts +2 -0
  646. package/dist/migrations/20230711163311-project-feature-limit.js +13 -0
  647. package/dist/migrations/20230711163311-project-feature-limit.js.map +1 -0
  648. package/dist/migrations/20230712091834-strategy-variants.d.ts +2 -0
  649. package/dist/migrations/20230712091834-strategy-variants.js +81 -0
  650. package/dist/migrations/20230712091834-strategy-variants.js.map +1 -0
  651. package/dist/server-dev.js +5 -3
  652. package/dist/server-dev.js.map +1 -1
  653. package/dist/test/arbitraries.test.js +1 -1
  654. package/dist/test/arbitraries.test.js.map +1 -1
  655. package/dist/test/e2e/api/admin/addon.e2e.test.js +2 -1
  656. package/dist/test/e2e/api/admin/addon.e2e.test.js.map +1 -1
  657. package/dist/test/e2e/api/admin/api-token.e2e.test.js +7 -1
  658. package/dist/test/e2e/api/admin/api-token.e2e.test.js.map +1 -1
  659. package/dist/test/e2e/api/admin/archive.test.js +7 -1
  660. package/dist/test/e2e/api/admin/archive.test.js.map +1 -1
  661. package/dist/test/e2e/api/admin/config.e2e.test.js +7 -1
  662. package/dist/test/e2e/api/admin/config.e2e.test.js.map +1 -1
  663. package/dist/test/e2e/api/admin/favorites.e2e.test.js +7 -1
  664. package/dist/test/e2e/api/admin/favorites.e2e.test.js.map +1 -1
  665. package/dist/test/e2e/api/admin/feature-type.test.js +41 -1
  666. package/dist/test/e2e/api/admin/feature-type.test.js.map +1 -1
  667. package/dist/test/e2e/api/admin/feedback.e2e.test.js +7 -1
  668. package/dist/test/e2e/api/admin/feedback.e2e.test.js.map +1 -1
  669. package/dist/test/e2e/api/admin/playground.e2e.test.js.map +1 -1
  670. package/dist/test/e2e/api/admin/project/features.e2e.test.js +152 -0
  671. package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
  672. package/dist/test/e2e/api/admin/project/variants.e2e.test.js +28 -12
  673. package/dist/test/e2e/api/admin/project/variants.e2e.test.js.map +1 -1
  674. package/dist/test/e2e/api/admin/splash.e2e.test.js +7 -1
  675. package/dist/test/e2e/api/admin/splash.e2e.test.js.map +1 -1
  676. package/dist/test/e2e/api/admin/state.e2e.test.js +6 -6
  677. package/dist/test/e2e/api/admin/state.e2e.test.js.map +1 -1
  678. package/dist/test/e2e/api/admin/user-admin.e2e.test.js +7 -1
  679. package/dist/test/e2e/api/admin/user-admin.e2e.test.js.map +1 -1
  680. package/dist/test/e2e/api/openapi/openapi.e2e.test.js +9 -6
  681. package/dist/test/e2e/api/openapi/openapi.e2e.test.js.map +1 -1
  682. package/dist/test/e2e/services/access-service.e2e.test.js +1 -1
  683. package/dist/test/e2e/services/access-service.e2e.test.js.map +1 -1
  684. package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js +26 -4
  685. package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js.map +1 -1
  686. package/dist/test/e2e/services/group-service.e2e.test.js +16 -0
  687. package/dist/test/e2e/services/group-service.e2e.test.js.map +1 -1
  688. package/dist/test/e2e/services/user-service.e2e.test.js +2 -2
  689. package/dist/test/e2e/services/user-service.e2e.test.js.map +1 -1
  690. package/dist/test/e2e/stores/event-store.e2e.test.js +3 -2
  691. package/dist/test/e2e/stores/event-store.e2e.test.js.map +1 -1
  692. package/dist/test/e2e/stores/feature-toggle-store.e2e.test.js +163 -0
  693. package/dist/test/e2e/stores/feature-toggle-store.e2e.test.js.map +1 -1
  694. package/dist/test/e2e/stores/feature-type-store.e2e.test.js +13 -0
  695. package/dist/test/e2e/stores/feature-type-store.e2e.test.js.map +1 -1
  696. package/dist/test/fixtures/fake-event-store.d.ts +1 -0
  697. package/dist/test/fixtures/fake-event-store.js +3 -0
  698. package/dist/test/fixtures/fake-event-store.js.map +1 -1
  699. package/dist/test/fixtures/fake-feature-toggle-client-store.d.ts +1 -0
  700. package/dist/test/fixtures/fake-feature-toggle-client-store.js +10 -0
  701. package/dist/test/fixtures/fake-feature-toggle-client-store.js.map +1 -1
  702. package/dist/test/fixtures/fake-feature-toggle-store.d.ts +6 -0
  703. package/dist/test/fixtures/fake-feature-toggle-store.js +6 -0
  704. package/dist/test/fixtures/fake-feature-toggle-store.js.map +1 -1
  705. package/dist/test/fixtures/fake-feature-type-store.d.ts +1 -0
  706. package/dist/test/fixtures/fake-feature-type-store.js +8 -0
  707. package/dist/test/fixtures/fake-feature-type-store.js.map +1 -1
  708. package/dist/test/fixtures/fake-group-store.d.ts +4 -4
  709. package/dist/test/fixtures/fake-group-store.js.map +1 -1
  710. package/dist/test/fixtures/fake-project-store.d.ts +3 -4
  711. package/dist/test/fixtures/fake-project-store.js +4 -13
  712. package/dist/test/fixtures/fake-project-store.js.map +1 -1
  713. package/dist/test/fixtures/fake-segment-store.d.ts +2 -1
  714. package/dist/test/fixtures/fake-segment-store.js +3 -0
  715. package/dist/test/fixtures/fake-segment-store.js.map +1 -1
  716. package/frontend/build/index.html +2 -2
  717. package/frontend/build/static/AdvancedPlayground-4c9d02ea.js +13 -0
  718. package/frontend/build/static/CreateProject-16b35d57.js +4 -0
  719. package/frontend/build/static/{Error-2c3030da.js → Error-50364f10.js} +1 -1
  720. package/frontend/build/static/{FeatureArchiveDialog-a529848e.js → FeatureArchiveDialog-fda1aa0c.js} +3 -3
  721. package/frontend/build/static/{FeatureMetricsChart-e8ede36a.js → FeatureMetricsChart-839cdf1e.js} +2 -2
  722. package/frontend/build/static/FeatureViewLazyExport-47bb7f13.js +7 -0
  723. package/frontend/build/static/LazyAdminExport-8ef0ca21.js +37 -0
  724. package/frontend/build/static/LazyProjectExport-49541c75.js +16 -0
  725. package/frontend/build/static/{NetworkOverview-e6f0a590.js → NetworkOverview-711050f3.js} +8 -8
  726. package/frontend/build/static/{NetworkTraffic-d1efc782.js → NetworkTraffic-e587c2c7.js} +1 -1
  727. package/frontend/build/static/RoleCell-9a62b4ed.js +1 -0
  728. package/frontend/build/static/StrategyItemContainer-4098c8ef.js +1 -0
  729. package/frontend/build/static/{chartjs-adapter-date-fns.esm-0d05c046.js → chartjs-adapter-date-fns.esm-d57aaddd.js} +1 -1
  730. package/frontend/build/static/demo-qr-c2ce85bd.png +0 -0
  731. package/frontend/build/static/{flowchart-elk-definition-170a3958-cc4ae597.js → flowchart-elk-definition-170a3958-4dece62b.js} +2 -2
  732. package/frontend/build/static/{index-a563ae6f.js → index-1c8194e0.js} +1 -1
  733. package/frontend/build/static/index-770afaee.css +1 -0
  734. package/frontend/build/static/{index-ade82986.js → index-9bb67f88.js} +1 -1
  735. package/frontend/build/static/index-9c528324.js +453 -0
  736. package/frontend/build/static/{is_dark-49e2e68f.js → is_dark-ba77f0b9.js} +1 -1
  737. package/frontend/build/static/{mindmap-definition-44684416-c6d3a96e.js → mindmap-definition-44684416-a4071c9f.js} +3 -3
  738. package/frontend/build/static/{timeline-definition-8e5a9bc6-920370f9.js → timeline-definition-8e5a9bc6-c996bf40.js} +2 -2
  739. package/frontend/build/static/{unknownify-30fed5e1.js → unknownify-db48ebae.js} +1 -1
  740. package/frontend/package.json +16 -16
  741. package/package.json +15 -13
  742. package/dist/lib/error/no-access-error.js.map +0 -1
  743. package/dist/lib/openapi/endpoint-descriptions.d.ts +0 -20
  744. package/dist/lib/openapi/endpoint-descriptions.js +0 -24
  745. package/dist/lib/openapi/endpoint-descriptions.js.map +0 -1
  746. package/dist/lib/openapi/spec/feedback-schema.d.ts +0 -24
  747. package/dist/lib/openapi/spec/feedback-schema.js +0 -26
  748. package/dist/lib/openapi/spec/feedback-schema.js.map +0 -1
  749. package/dist/lib/openapi/spec/splash-schema.d.ts +0 -20
  750. package/dist/lib/openapi/spec/splash-schema.js +0 -22
  751. package/dist/lib/openapi/spec/splash-schema.js.map +0 -1
  752. package/dist/lib/openapi/spec/upsert-strategy-schema.d.ts +0 -39
  753. package/dist/lib/openapi/spec/upsert-strategy-schema.js +0 -41
  754. package/dist/lib/openapi/spec/upsert-strategy-schema.js.map +0 -1
  755. package/frontend/build/static/AdvancedPlayground-bc3db7fd.js +0 -1
  756. package/frontend/build/static/CreateProject-4013b189.js +0 -4
  757. package/frontend/build/static/FeatureViewLazyExport-773303d1.js +0 -7
  758. package/frontend/build/static/LazyAdminExport-a9aeca56.js +0 -37
  759. package/frontend/build/static/LazyProjectExport-7c849a96.js +0 -13
  760. package/frontend/build/static/Playground-4fd4e26e.js +0 -1
  761. package/frontend/build/static/PlaygroundGuidancePopper-c761bfb7.js +0 -13
  762. package/frontend/build/static/RoleCell-cbb192fa.js +0 -1
  763. package/frontend/build/static/StrategyItemContainer-128fc163.js +0 -1
  764. package/frontend/build/static/demo-qr-1bebe2c9.png +0 -0
  765. package/frontend/build/static/index-66c635eb.css +0 -1
  766. package/frontend/build/static/index-bd571775.js +0 -450
  767. package/frontend/build/static/stringify-ec884b6d.js +0 -1
@@ -0,0 +1,453 @@
1
+ var K8=Object.defineProperty;var X8=(e,t,n)=>t in e?K8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var as=(e,t,n)=>(X8(e,typeof t!="symbol"?t+"":t,n),n);function J8(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function VO(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var GO={exports:{}},Ch={};/*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */var Fk=Object.getOwnPropertySymbols,Q8=Object.prototype.hasOwnProperty,Z8=Object.prototype.propertyIsEnumerable;function e7(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function t7(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var qO=t7()?Object.assign:function(e,t){for(var n,r=e7(e),o,i=1;i<arguments.length;i++){n=Object(arguments[i]);for(var a in n)Q8.call(n,a)&&(r[a]=n[a]);if(Fk){o=Fk(n);for(var s=0;s<o.length;s++)Z8.call(n,o[s])&&(r[o[s]]=n[o[s]])}}return r},YO={exports:{}},dn={};/** @license React v17.0.2
6
+ * react.production.min.js
7
+ *
8
+ * Copyright (c) Facebook, Inc. and its affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */var oC=qO,pd=60103,KO=60106;dn.Fragment=60107;dn.StrictMode=60108;dn.Profiler=60114;var XO=60109,JO=60110,QO=60112;dn.Suspense=60113;var ZO=60115,e4=60116;if(typeof Symbol=="function"&&Symbol.for){var Zi=Symbol.for;pd=Zi("react.element"),KO=Zi("react.portal"),dn.Fragment=Zi("react.fragment"),dn.StrictMode=Zi("react.strict_mode"),dn.Profiler=Zi("react.profiler"),XO=Zi("react.provider"),JO=Zi("react.context"),QO=Zi("react.forward_ref"),dn.Suspense=Zi("react.suspense"),ZO=Zi("react.memo"),e4=Zi("react.lazy")}var zk=typeof Symbol=="function"&&Symbol.iterator;function n7(e){return e===null||typeof e!="object"?null:(e=zk&&e[zk]||e["@@iterator"],typeof e=="function"?e:null)}function Eh(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},n4={};function fd(e,t,n){this.props=e,this.context=t,this.refs=n4,this.updater=n||t4}fd.prototype.isReactComponent={};fd.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Eh(85));this.updater.enqueueSetState(this,e,t,"setState")};fd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function r4(){}r4.prototype=fd.prototype;function iC(e,t,n){this.props=e,this.context=t,this.refs=n4,this.updater=n||t4}var aC=iC.prototype=new r4;aC.constructor=iC;oC(aC,fd.prototype);aC.isPureReactComponent=!0;var sC={current:null},o4=Object.prototype.hasOwnProperty,i4={key:!0,ref:!0,__self:!0,__source:!0};function a4(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)o4.call(t,r)&&!i4.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:pd,type:e,key:i,ref:a,props:o,_owner:sC.current}}function r7(e,t){return{$$typeof:pd,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function lC(e){return typeof e=="object"&&e!==null&&e.$$typeof===pd}function o7(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jk=/\/+/g;function tb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?o7(""+e.key):t.toString(36)}function Tg(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case pd:case KO:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+tb(a,0):r,Array.isArray(o)?(n="",e!=null&&(n=e.replace(jk,"$&/")+"/"),Tg(o,t,n,"",function(u){return u})):o!=null&&(lC(o)&&(o=r7(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(jk,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){i=e[s];var c=r+tb(i,s);a+=Tg(i,t,n,c,o)}else if(c=n7(e),typeof c=="function")for(e=c.call(e),s=0;!(i=e.next()).done;)i=i.value,c=r+tb(i,s++),a+=Tg(i,t,n,c,o);else if(i==="object")throw t=""+e,Error(Eh(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return a}function Rm(e,t,n){if(e==null)return e;var r=[],o=0;return Tg(e,r,"","",function(i){return t.call(n,i,o++)}),r}function i7(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}if(e._status===1)return e._result;throw e._result}var s4={current:null};function _s(){var e=s4.current;if(e===null)throw Error(Eh(321));return e}var a7={ReactCurrentDispatcher:s4,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:sC,IsSomeRendererActing:{current:!1},assign:oC};dn.Children={map:Rm,forEach:function(e,t,n){Rm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Rm(e,function(){t++}),t},toArray:function(e){return Rm(e,function(t){return t})||[]},only:function(e){if(!lC(e))throw Error(Eh(143));return e}};dn.Component=fd;dn.PureComponent=iC;dn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=a7;dn.cloneElement=function(e,t,n){if(e==null)throw Error(Eh(267,e));var r=oC({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=sC.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)o4.call(t,c)&&!i4.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:pd,type:e.type,key:o,ref:i,props:r,_owner:a}};dn.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:JO,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:XO,_context:e},e.Consumer=e};dn.createElement=a4;dn.createFactory=function(e){var t=a4.bind(null,e);return t.type=e,t};dn.createRef=function(){return{current:null}};dn.forwardRef=function(e){return{$$typeof:QO,render:e}};dn.isValidElement=lC;dn.lazy=function(e){return{$$typeof:e4,_payload:{_status:-1,_result:e},_init:i7}};dn.memo=function(e,t){return{$$typeof:ZO,type:e,compare:t===void 0?null:t}};dn.useCallback=function(e,t){return _s().useCallback(e,t)};dn.useContext=function(e,t){return _s().useContext(e,t)};dn.useDebugValue=function(){};dn.useEffect=function(e,t){return _s().useEffect(e,t)};dn.useImperativeHandle=function(e,t,n){return _s().useImperativeHandle(e,t,n)};dn.useLayoutEffect=function(e,t){return _s().useLayoutEffect(e,t)};dn.useMemo=function(e,t){return _s().useMemo(e,t)};dn.useReducer=function(e,t,n){return _s().useReducer(e,t,n)};dn.useRef=function(e){return _s().useRef(e)};dn.useState=function(e){return _s().useState(e)};dn.version="17.0.2";YO.exports=dn;var m=YO.exports;const Ce=Yr(m),Pf=J8({__proto__:null,default:Ce},[m]);/** @license React v17.0.2
13
+ * react-jsx-runtime.production.min.js
14
+ *
15
+ * Copyright (c) Facebook, Inc. and its affiliates.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */var s7=m,l4=60103;Ch.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Uk=Symbol.for;l4=Uk("react.element"),Ch.Fragment=Uk("react.fragment")}var l7=s7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c7=Object.prototype.hasOwnProperty,u7={key:!0,ref:!0,__self:!0,__source:!0};function c4(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)c7.call(t,r)&&!u7.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:l4,type:e,key:i,ref:a,props:o,_owner:l7.current}}Ch.jsx=c4;Ch.jsxs=c4;GO.exports=Ch;var cC=GO.exports;const ve=cC.Fragment,l=cC.jsx,x=cC.jsxs,d7=Object.freeze(Object.defineProperty({__proto__:null,Fragment:ve,jsx:l,jsxs:x},Symbol.toStringTag,{value:"Module"}));var fo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof fo<"u"&&fo,Mo={searchParams:"URLSearchParams"in fo,iterable:"Symbol"in fo&&"iterator"in Symbol,blob:"FileReader"in fo&&"Blob"in fo&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in fo,arrayBuffer:"ArrayBuffer"in fo};function p7(e){return e&&DataView.prototype.isPrototypeOf(e)}if(Mo.arrayBuffer)var f7=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h7=ArrayBuffer.isView||function(e){return e&&f7.indexOf(Object.prototype.toString.call(e))>-1};function Th(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function uC(e){return typeof e!="string"&&(e=String(e)),e}function dC(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return Mo.iterable&&(t[Symbol.iterator]=function(){return t}),t}function Br(e){this.map={},e instanceof Br?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}Br.prototype.append=function(e,t){e=Th(e),t=uC(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};Br.prototype.delete=function(e){delete this.map[Th(e)]};Br.prototype.get=function(e){return e=Th(e),this.has(e)?this.map[e]:null};Br.prototype.has=function(e){return this.map.hasOwnProperty(Th(e))};Br.prototype.set=function(e,t){this.map[Th(e)]=uC(t)};Br.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};Br.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),dC(e)};Br.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),dC(e)};Br.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),dC(e)};Mo.iterable&&(Br.prototype[Symbol.iterator]=Br.prototype.entries);function nb(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function u4(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function m7(e){var t=new FileReader,n=u4(t);return t.readAsArrayBuffer(e),n}function g7(e){var t=new FileReader,n=u4(t);return t.readAsText(e),n}function v7(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function Wk(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function d4(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:Mo.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Mo.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Mo.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Mo.arrayBuffer&&Mo.blob&&p7(e)?(this._bodyArrayBuffer=Wk(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Mo.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||h7(e))?this._bodyArrayBuffer=Wk(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Mo.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Mo.blob&&(this.blob=function(){var e=nb(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=nb(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(m7)}),this.text=function(){var e=nb(this);if(e)return e;if(this._bodyBlob)return g7(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(v7(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Mo.formData&&(this.formData=function(){return this.text().then(w7)}),this.json=function(){return this.text().then(JSON.parse)},this}var y7=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b7(e){var t=e.toUpperCase();return y7.indexOf(t)>-1?t:e}function mc(e,t){if(!(this instanceof mc))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof mc){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Br(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new Br(t.headers)),this.method=b7(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}mc.prototype.clone=function(){return new mc(this,{body:this._bodyInit})};function w7(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),o=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function S7(e){var t=new Br,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(`
20
+ `)===0?r.substr(1,r.length):r}).forEach(function(r){var o=r.split(":"),i=o.shift().trim();if(i){var a=o.join(":").trim();t.append(i,a)}}),t}d4.call(mc.prototype);function Va(e,t){if(!(this instanceof Va))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new Br(t.headers),this.url=t.url||"",this._initBody(e)}d4.call(Va.prototype);Va.prototype.clone=function(){return new Va(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Br(this.headers),url:this.url})};Va.error=function(){var e=new Va(null,{status:0,statusText:""});return e.type="error",e};var x7=[301,302,303,307,308];Va.redirect=function(e,t){if(x7.indexOf(t)===-1)throw new RangeError("Invalid status code");return new Va(null,{status:t,headers:{location:e}})};var Jl=fo.DOMException;try{new Jl}catch{Jl=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},Jl.prototype=Object.create(Error.prototype),Jl.prototype.constructor=Jl}function p4(e,t){return new Promise(function(n,r){var o=new mc(e,t);if(o.signal&&o.signal.aborted)return r(new Jl("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var c={status:i.status,statusText:i.statusText,headers:S7(i.getAllResponseHeaders()||"")};c.url="responseURL"in i?i.responseURL:c.headers.get("X-Request-URL");var u="response"in i?i.response:i.responseText;setTimeout(function(){n(new Va(u,c))},0)},i.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){r(new Jl("Aborted","AbortError"))},0)};function s(c){try{return c===""&&fo.location.href?fo.location.href:c}catch{return c}}i.open(o.method,s(o.url),!0),o.credentials==="include"?i.withCredentials=!0:o.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&(Mo.blob?i.responseType="blob":Mo.arrayBuffer&&o.headers.get("Content-Type")&&o.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(i.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof Br)?Object.getOwnPropertyNames(t.headers).forEach(function(c){i.setRequestHeader(c,uC(t.headers[c]))}):o.headers.forEach(function(c,u){i.setRequestHeader(u,c)}),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){i.readyState===4&&o.signal.removeEventListener("abort",a)}),i.send(typeof o._bodyInit>"u"?null:o._bodyInit)})}p4.polyfill=!0;fo.fetch||(fo.fetch=p4,fo.Headers=Br,fo.Request=mc,fo.Response=Va);var C7={exports:{}};(function(e){var t=function(n){var r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(W,j,I){W[j]=I.value},a,s=typeof Symbol=="function"?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function p(W,j,I){return Object.defineProperty(W,j,{value:I,enumerable:!0,configurable:!0,writable:!0}),W[j]}try{p({},"")}catch{p=function(j,I,M){return j[I]=M}}function f(W,j,I,M){var J=j&&j.prototype instanceof S?j:S,ae=Object.create(J.prototype),Te=new H(M||[]);return i(ae,"_invoke",{value:z(W,I,Te)}),ae}n.wrap=f;function h(W,j,I){try{return{type:"normal",arg:W.call(j,I)}}catch(M){return{type:"throw",arg:M}}}var g="suspendedStart",v="suspendedYield",b="executing",y="completed",w={};function S(){}function k(){}function A(){}var T={};p(T,c,function(){return this});var R=Object.getPrototypeOf,P=R&&R(R(ee([])));P&&P!==r&&o.call(P,c)&&(T=P);var _=A.prototype=S.prototype=Object.create(T);k.prototype=A,i(_,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:k,configurable:!0}),k.displayName=p(A,d,"GeneratorFunction");function O(W){["next","throw","return"].forEach(function(j){p(W,j,function(I){return this._invoke(j,I)})})}n.isGeneratorFunction=function(W){var j=typeof W=="function"&&W.constructor;return j?j===k||(j.displayName||j.name)==="GeneratorFunction":!1},n.mark=function(W){return Object.setPrototypeOf?Object.setPrototypeOf(W,A):(W.__proto__=A,p(W,d,"GeneratorFunction")),W.prototype=Object.create(_),W},n.awrap=function(W){return{__await:W}};function $(W,j){function I(ae,Te,he,Ie){var te=h(W[ae],W,Te);if(te.type==="throw")Ie(te.arg);else{var ie=te.arg,le=ie.value;return le&&typeof le=="object"&&o.call(le,"__await")?j.resolve(le.__await).then(function(oe){I("next",oe,he,Ie)},function(oe){I("throw",oe,he,Ie)}):j.resolve(le).then(function(oe){ie.value=oe,he(ie)},function(oe){return I("throw",oe,he,Ie)})}}var M;function J(ae,Te){function he(){return new j(function(Ie,te){I(ae,Te,Ie,te)})}return M=M?M.then(he,he):he()}i(this,"_invoke",{value:J})}O($.prototype),p($.prototype,u,function(){return this}),n.AsyncIterator=$,n.async=function(W,j,I,M,J){J===void 0&&(J=Promise);var ae=new $(f(W,j,I,M),J);return n.isGeneratorFunction(j)?ae:ae.next().then(function(Te){return Te.done?Te.value:ae.next()})};function z(W,j,I){var M=g;return function(ae,Te){if(M===b)throw new Error("Generator is already running");if(M===y){if(ae==="throw")throw Te;return V()}for(I.method=ae,I.arg=Te;;){var he=I.delegate;if(he){var Ie=L(he,I);if(Ie){if(Ie===w)continue;return Ie}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(M===g)throw M=y,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);M=b;var te=h(W,j,I);if(te.type==="normal"){if(M=I.done?y:v,te.arg===w)continue;return{value:te.arg,done:I.done}}else te.type==="throw"&&(M=y,I.method="throw",I.arg=te.arg)}}}function L(W,j){var I=j.method,M=W.iterator[I];if(M===a)return j.delegate=null,I==="throw"&&W.iterator.return&&(j.method="return",j.arg=a,L(W,j),j.method==="throw")||I!=="return"&&(j.method="throw",j.arg=new TypeError("The iterator does not provide a '"+I+"' method")),w;var J=h(M,W.iterator,j.arg);if(J.type==="throw")return j.method="throw",j.arg=J.arg,j.delegate=null,w;var ae=J.arg;if(!ae)return j.method="throw",j.arg=new TypeError("iterator result is not an object"),j.delegate=null,w;if(ae.done)j[W.resultName]=ae.value,j.next=W.nextLoc,j.method!=="return"&&(j.method="next",j.arg=a);else return ae;return j.delegate=null,w}O(_),p(_,d,"Generator"),p(_,c,function(){return this}),p(_,"toString",function(){return"[object Generator]"});function B(W){var j={tryLoc:W[0]};1 in W&&(j.catchLoc=W[1]),2 in W&&(j.finallyLoc=W[2],j.afterLoc=W[3]),this.tryEntries.push(j)}function Y(W){var j=W.completion||{};j.type="normal",delete j.arg,W.completion=j}function H(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(B,this),this.reset(!0)}n.keys=function(W){var j=Object(W),I=[];for(var M in j)I.push(M);return I.reverse(),function J(){for(;I.length;){var ae=I.pop();if(ae in j)return J.value=ae,J.done=!1,J}return J.done=!0,J}};function ee(W){if(W){var j=W[c];if(j)return j.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var I=-1,M=function J(){for(;++I<W.length;)if(o.call(W,I))return J.value=W[I],J.done=!1,J;return J.value=a,J.done=!0,J};return M.next=M}}return{next:V}}n.values=ee;function V(){return{value:a,done:!0}}return H.prototype={constructor:H,reset:function(W){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(Y),!W)for(var j in this)j.charAt(0)==="t"&&o.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=a)},stop:function(){this.done=!0;var W=this.tryEntries[0],j=W.completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(W){if(this.done)throw W;var j=this;function I(Ie,te){return ae.type="throw",ae.arg=W,j.next=Ie,te&&(j.method="next",j.arg=a),!!te}for(var M=this.tryEntries.length-1;M>=0;--M){var J=this.tryEntries[M],ae=J.completion;if(J.tryLoc==="root")return I("end");if(J.tryLoc<=this.prev){var Te=o.call(J,"catchLoc"),he=o.call(J,"finallyLoc");if(Te&&he){if(this.prev<J.catchLoc)return I(J.catchLoc,!0);if(this.prev<J.finallyLoc)return I(J.finallyLoc)}else if(Te){if(this.prev<J.catchLoc)return I(J.catchLoc,!0)}else if(he){if(this.prev<J.finallyLoc)return I(J.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(W,j){for(var I=this.tryEntries.length-1;I>=0;--I){var M=this.tryEntries[I];if(M.tryLoc<=this.prev&&o.call(M,"finallyLoc")&&this.prev<M.finallyLoc){var J=M;break}}J&&(W==="break"||W==="continue")&&J.tryLoc<=j&&j<=J.finallyLoc&&(J=null);var ae=J?J.completion:{};return ae.type=W,ae.arg=j,J?(this.method="next",this.next=J.finallyLoc,w):this.complete(ae)},complete:function(W,j){if(W.type==="throw")throw W.arg;return W.type==="break"||W.type==="continue"?this.next=W.arg:W.type==="return"?(this.rval=this.arg=W.arg,this.method="return",this.next="end"):W.type==="normal"&&j&&(this.next=j),w},finish:function(W){for(var j=this.tryEntries.length-1;j>=0;--j){var I=this.tryEntries[j];if(I.finallyLoc===W)return this.complete(I.completion,I.afterLoc),Y(I),w}},catch:function(W){for(var j=this.tryEntries.length-1;j>=0;--j){var I=this.tryEntries[j];if(I.tryLoc===W){var M=I.completion;if(M.type==="throw"){var J=M.arg;Y(I)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(W,j,I){return this.delegate={iterator:ee(W),resultName:j,nextLoc:I},this.method==="next"&&(this.arg=a),w}},n}(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(C7);var f4={exports:{}},qi={},h4={exports:{}},m4={};/** @license React v0.20.2
21
+ * scheduler.production.min.js
22
+ *
23
+ * Copyright (c) Facebook, Inc. and its affiliates.
24
+ *
25
+ * This source code is licensed under the MIT license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ */(function(e){var t,n,r,o;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var c=null,u=null,d=function(){if(c!==null)try{var I=e.unstable_now();c(!0,I),c=null}catch(M){throw setTimeout(d,0),M}};t=function(I){c!==null?setTimeout(t,0,I):(c=I,setTimeout(d,0))},n=function(I,M){u=setTimeout(I,M)},r=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,f=window.clearTimeout;if(typeof console<"u"){var h=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof h!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,v=null,b=-1,y=5,w=0;e.unstable_shouldYield=function(){return e.unstable_now()>=w},o=function(){},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<I?Math.floor(1e3/I):5};var S=new MessageChannel,k=S.port2;S.port1.onmessage=function(){if(v!==null){var I=e.unstable_now();w=I+y;try{v(!0,I)?k.postMessage(null):(g=!1,v=null)}catch(M){throw k.postMessage(null),M}}else g=!1},t=function(I){v=I,g||(g=!0,k.postMessage(null))},n=function(I,M){b=p(function(){I(e.unstable_now())},M)},r=function(){f(b),b=-1}}function A(I,M){var J=I.length;I.push(M);e:for(;;){var ae=J-1>>>1,Te=I[ae];if(Te!==void 0&&0<P(Te,M))I[ae]=M,I[J]=Te,J=ae;else break e}}function T(I){return I=I[0],I===void 0?null:I}function R(I){var M=I[0];if(M!==void 0){var J=I.pop();if(J!==M){I[0]=J;e:for(var ae=0,Te=I.length;ae<Te;){var he=2*(ae+1)-1,Ie=I[he],te=he+1,ie=I[te];if(Ie!==void 0&&0>P(Ie,J))ie!==void 0&&0>P(ie,Ie)?(I[ae]=ie,I[te]=J,ae=te):(I[ae]=Ie,I[he]=J,ae=he);else if(ie!==void 0&&0>P(ie,J))I[ae]=ie,I[te]=J,ae=te;else break e}}return M}return null}function P(I,M){var J=I.sortIndex-M.sortIndex;return J!==0?J:I.id-M.id}var _=[],O=[],$=1,z=null,L=3,B=!1,Y=!1,H=!1;function ee(I){for(var M=T(O);M!==null;){if(M.callback===null)R(O);else if(M.startTime<=I)R(O),M.sortIndex=M.expirationTime,A(_,M);else break;M=T(O)}}function V(I){if(H=!1,ee(I),!Y)if(T(_)!==null)Y=!0,t(W);else{var M=T(O);M!==null&&n(V,M.startTime-I)}}function W(I,M){Y=!1,H&&(H=!1,r()),B=!0;var J=L;try{for(ee(M),z=T(_);z!==null&&(!(z.expirationTime>M)||I&&!e.unstable_shouldYield());){var ae=z.callback;if(typeof ae=="function"){z.callback=null,L=z.priorityLevel;var Te=ae(z.expirationTime<=M);M=e.unstable_now(),typeof Te=="function"?z.callback=Te:z===T(_)&&R(_),ee(M)}else R(_);z=T(_)}if(z!==null)var he=!0;else{var Ie=T(O);Ie!==null&&n(V,Ie.startTime-M),he=!1}return he}finally{z=null,L=J,B=!1}}var j=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){Y||B||(Y=!0,t(W))},e.unstable_getCurrentPriorityLevel=function(){return L},e.unstable_getFirstCallbackNode=function(){return T(_)},e.unstable_next=function(I){switch(L){case 1:case 2:case 3:var M=3;break;default:M=L}var J=L;L=M;try{return I()}finally{L=J}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=j,e.unstable_runWithPriority=function(I,M){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var J=L;L=I;try{return M()}finally{L=J}},e.unstable_scheduleCallback=function(I,M,J){var ae=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ae+J:ae):J=ae,I){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=J+Te,I={id:$++,callback:M,priorityLevel:I,startTime:J,expirationTime:Te,sortIndex:-1},J>ae?(I.sortIndex=J,A(O,I),T(_)===null&&I===T(O)&&(H?r():H=!0,n(V,J-ae))):(I.sortIndex=Te,A(_,I),Y||B||(Y=!0,t(W))),I},e.unstable_wrapCallback=function(I){var M=L;return function(){var J=L;L=M;try{return I.apply(this,arguments)}finally{L=J}}}})(m4);h4.exports=m4;var E7=h4.exports;/** @license React v17.0.2
28
+ * react-dom.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var ay=m,er=qO,qr=E7;function Ue(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!ay)throw Error(Ue(227));var g4=new Set,If={};function Rc(e,t){Hu(e,t),Hu(e+"Capture",t)}function Hu(e,t){for(If[e]=t,e=0;e<t.length;e++)g4.add(t[e])}var xs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),T7=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Hk=Object.prototype.hasOwnProperty,Vk={},Gk={};function k7(e){return Hk.call(Gk,e)?!0:Hk.call(Vk,e)?!1:T7.test(e)?Gk[e]=!0:(Vk[e]=!0,!1)}function A7(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function R7(e,t,n,r){if(t===null||typeof t>"u"||A7(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ao(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var ao={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ao[e]=new Ao(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ao[t]=new Ao(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ao[e]=new Ao(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ao[e]=new Ao(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ao[e]=new Ao(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ao[e]=new Ao(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ao[e]=new Ao(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ao[e]=new Ao(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ao[e]=new Ao(e,5,!1,e.toLowerCase(),null,!1,!1)});var pC=/[\-:]([a-z])/g;function fC(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(pC,fC);ao[t]=new Ao(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(pC,fC);ao[t]=new Ao(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(pC,fC);ao[t]=new Ao(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ao[e]=new Ao(e,1,!1,e.toLowerCase(),null,!1,!1)});ao.xlinkHref=new Ao("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ao[e]=new Ao(e,1,!1,e.toLowerCase(),null,!0,!0)});function hC(e,t,n,r){var o=ao.hasOwnProperty(t)?ao[t]:null,i=o!==null?o.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");i||(R7(t,n,o,r)&&(n=null),r||o===null?k7(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var _c=ay.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Hp=60103,tc=60106,Gs=60107,mC=60108,tf=60114,gC=60109,vC=60110,sy=60112,nf=60113,Xg=60120,ly=60115,yC=60116,bC=60121,wC=60128,v4=60129,SC=60130,Kw=60131;if(typeof Symbol=="function"&&Symbol.for){var Wr=Symbol.for;Hp=Wr("react.element"),tc=Wr("react.portal"),Gs=Wr("react.fragment"),mC=Wr("react.strict_mode"),tf=Wr("react.profiler"),gC=Wr("react.provider"),vC=Wr("react.context"),sy=Wr("react.forward_ref"),nf=Wr("react.suspense"),Xg=Wr("react.suspense_list"),ly=Wr("react.memo"),yC=Wr("react.lazy"),bC=Wr("react.block"),Wr("react.scope"),wC=Wr("react.opaque.id"),v4=Wr("react.debug_trace_mode"),SC=Wr("react.offscreen"),Kw=Wr("react.legacy_hidden")}var qk=typeof Symbol=="function"&&Symbol.iterator;function np(e){return e===null||typeof e!="object"?null:(e=qk&&e[qk]||e["@@iterator"],typeof e=="function"?e:null)}var rb;function Vp(e){if(rb===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);rb=t&&t[1]||""}return`
35
+ `+rb+e}var ob=!1;function _m(e,t){if(!e||ob)return"";ob=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
36
+ `),i=r.stack.split(`
37
+ `),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s])return`
38
+ `+o[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{ob=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vp(e):""}function _7(e){switch(e.tag){case 5:return Vp(e.type);case 16:return Vp("Lazy");case 13:return Vp("Suspense");case 19:return Vp("SuspenseList");case 0:case 2:case 15:return e=_m(e.type,!1),e;case 11:return e=_m(e.type.render,!1),e;case 22:return e=_m(e.type._render,!1),e;case 1:return e=_m(e.type,!0),e;default:return""}}function Su(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Gs:return"Fragment";case tc:return"Portal";case tf:return"Profiler";case mC:return"StrictMode";case nf:return"Suspense";case Xg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vC:return(e.displayName||"Context")+".Consumer";case gC:return(e._context.displayName||"Context")+".Provider";case sy:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case ly:return Su(e.type);case bC:return Su(e._render);case yC:t=e._payload,e=e._init;try{return Su(e(t))}catch{}}return null}function hl(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function y4(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function P7(e){var t=y4(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pm(e){e._valueTracker||(e._valueTracker=P7(e))}function b4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=y4(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Xw(e,t){var n=t.checked;return er({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function w4(e,t){t=t.checked,t!=null&&hC(e,"checked",t,!1)}function Jw(e,t){w4(e,t);var n=hl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Qw(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qw(e,t.type,hl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Kk(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Qw(e,t,n){(t!=="number"||Jg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function I7(e){var t="";return ay.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Zw(e,t){return e=er({children:void 0},t),(t=I7(t.children))&&(e.children=t),e}function xu(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+hl(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function eS(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ue(91));return er({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xk(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Ue(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(Ue(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:hl(n)}}function S4(e,t){var n=hl(t.value),r=hl(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Jk(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var tS={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function x4(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function nS(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?x4(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Im,C4=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!==tS.svg||"innerHTML"in e)e.innerHTML=t;else{for(Im=Im||document.createElement("div"),Im.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Im.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Of(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var rf={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},O7=["Webkit","ms","Moz","O"];Object.keys(rf).forEach(function(e){O7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rf[t]=rf[e]})});function E4(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||rf.hasOwnProperty(e)&&rf[e]?(""+t).trim():t+"px"}function T4(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=E4(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var $7=er({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rS(e,t){if(t){if($7[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ue(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ue(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(Ue(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ue(62))}}function oS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var iS=null,Cu=null,Eu=null;function Qk(e){if(e=Ah(e)){if(typeof iS!="function")throw Error(Ue(280));var t=e.stateNode;t&&(t=hy(t),iS(e.stateNode,e.type,t))}}function k4(e){Cu?Eu?Eu.push(e):Eu=[e]:Cu=e}function A4(){if(Cu){var e=Cu,t=Eu;if(Eu=Cu=null,Qk(e),t)for(e=0;e<t.length;e++)Qk(t[e])}}function CC(e,t){return e(t)}function R4(e,t,n,r,o){return e(t,n,r,o)}function EC(){}var _4=CC,nc=!1,ib=!1;function TC(){(Cu!==null||Eu!==null)&&(EC(),A4())}function N7(e,t,n){if(ib)return e(t,n);ib=!0;try{return _4(e,t,n)}finally{ib=!1,TC()}}function $f(e,t){var n=e.stateNode;if(n===null)return null;var r=hy(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Ue(231,t,typeof n));return n}var aS=!1;if(xs)try{var rp={};Object.defineProperty(rp,"passive",{get:function(){aS=!0}}),window.addEventListener("test",rp,rp),window.removeEventListener("test",rp,rp)}catch{aS=!1}function L7(e,t,n,r,o,i,a,s,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var of=!1,Qg=null,Zg=!1,sS=null,D7={onError:function(e){of=!0,Qg=e}};function M7(e,t,n,r,o,i,a,s,c){of=!1,Qg=null,L7.apply(D7,arguments)}function B7(e,t,n,r,o,i,a,s,c){if(M7.apply(this,arguments),of){if(of){var u=Qg;of=!1,Qg=null}else throw Error(Ue(198));Zg||(Zg=!0,sS=u)}}function Pc(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function P4(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Zk(e){if(Pc(e)!==e)throw Error(Ue(188))}function F7(e){var t=e.alternate;if(!t){if(t=Pc(e),t===null)throw Error(Ue(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Zk(o),e;if(i===r)return Zk(o),t;i=i.sibling}throw Error(Ue(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error(Ue(189))}}if(n.alternate!==r)throw Error(Ue(190))}if(n.tag!==3)throw Error(Ue(188));return n.stateNode.current===n?e:t}function I4(e){if(e=F7(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function eA(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var O4,kC,$4,N4,lS=!1,Ia=[],rl=null,ol=null,il=null,Nf=new Map,Lf=new Map,op=[],tA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function cS(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:o,targetContainers:[r]}}function nA(e,t){switch(e){case"focusin":case"focusout":rl=null;break;case"dragenter":case"dragleave":ol=null;break;case"mouseover":case"mouseout":il=null;break;case"pointerover":case"pointerout":Nf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lf.delete(t.pointerId)}}function ip(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e=cS(t,n,r,o,i),t!==null&&(t=Ah(t),t!==null&&kC(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function z7(e,t,n,r,o){switch(t){case"focusin":return rl=ip(rl,e,t,n,r,o),!0;case"dragenter":return ol=ip(ol,e,t,n,r,o),!0;case"mouseover":return il=ip(il,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Nf.set(i,ip(Nf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Lf.set(i,ip(Lf.get(i)||null,e,t,n,r,o)),!0}return!1}function j7(e){var t=rc(e.target);if(t!==null){var n=Pc(t);if(n!==null){if(t=n.tag,t===13){if(t=P4(n),t!==null){e.blockedOn=t,N4(e.lanePriority,function(){qr.unstable_runWithPriority(e.priority,function(){$4(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function kg(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=PC(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=Ah(n),t!==null&&kC(t),e.blockedOn=n,!1;t.shift()}return!0}function rA(e,t,n){kg(e)&&n.delete(t)}function U7(){for(lS=!1;0<Ia.length;){var e=Ia[0];if(e.blockedOn!==null){e=Ah(e.blockedOn),e!==null&&O4(e);break}for(var t=e.targetContainers;0<t.length;){var n=PC(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Ia.shift()}rl!==null&&kg(rl)&&(rl=null),ol!==null&&kg(ol)&&(ol=null),il!==null&&kg(il)&&(il=null),Nf.forEach(rA),Lf.forEach(rA)}function ap(e,t){e.blockedOn===t&&(e.blockedOn=null,lS||(lS=!0,qr.unstable_scheduleCallback(qr.unstable_NormalPriority,U7)))}function L4(e){function t(o){return ap(o,e)}if(0<Ia.length){ap(Ia[0],e);for(var n=1;n<Ia.length;n++){var r=Ia[n];r.blockedOn===e&&(r.blockedOn=null)}}for(rl!==null&&ap(rl,e),ol!==null&&ap(ol,e),il!==null&&ap(il,e),Nf.forEach(t),Lf.forEach(t),n=0;n<op.length;n++)r=op[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<op.length&&(n=op[0],n.blockedOn===null);)j7(n),n.blockedOn===null&&op.shift()}function Om(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var pu={animationend:Om("Animation","AnimationEnd"),animationiteration:Om("Animation","AnimationIteration"),animationstart:Om("Animation","AnimationStart"),transitionend:Om("Transition","TransitionEnd")},ab={},D4={};xs&&(D4=document.createElement("div").style,"AnimationEvent"in window||(delete pu.animationend.animation,delete pu.animationiteration.animation,delete pu.animationstart.animation),"TransitionEvent"in window||delete pu.transitionend.transition);function cy(e){if(ab[e])return ab[e];if(!pu[e])return e;var t=pu[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in D4)return ab[e]=t[n];return e}var M4=cy("animationend"),B4=cy("animationiteration"),F4=cy("animationstart"),z4=cy("transitionend"),j4=new Map,AC=new Map,W7=["abort","abort",M4,"animationEnd",B4,"animationIteration",F4,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",z4,"transitionEnd","waiting","waiting"];function RC(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),AC.set(r,t),j4.set(r,o),Rc(o,[r])}}var H7=qr.unstable_now;H7();var Un=8;function su(e){if(1&e)return Un=15,1;if(2&e)return Un=14,2;if(4&e)return Un=13,4;var t=24&e;return t!==0?(Un=12,t):e&32?(Un=11,32):(t=192&e,t!==0?(Un=10,t):e&256?(Un=9,256):(t=3584&e,t!==0?(Un=8,t):e&4096?(Un=7,4096):(t=4186112&e,t!==0?(Un=6,t):(t=62914560&e,t!==0?(Un=5,t):e&67108864?(Un=4,67108864):e&134217728?(Un=3,134217728):(t=805306368&e,t!==0?(Un=2,t):1073741824&e?(Un=1,1073741824):(Un=8,e))))))}function V7(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function G7(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(Ue(358,e))}}function Df(e,t){var n=e.pendingLanes;if(n===0)return Un=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(i!==0)r=i,o=Un=15;else if(i=n&134217727,i!==0){var c=i&~a;c!==0?(r=su(c),o=Un):(s&=i,s!==0&&(r=su(s),o=Un))}else i=n&~a,i!==0?(r=su(i),o=Un):s!==0&&(r=su(s),o=Un);if(r===0)return 0;if(r=31-ml(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&a)){if(su(t),o<=Un)return t;Un=o}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ml(t),o=1<<n,r|=e[n],t&=~o;return r}function U4(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ev(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=lu(24&~t),e===0?ev(10,t):e;case 10:return e=lu(192&~t),e===0?ev(8,t):e;case 8:return e=lu(3584&~t),e===0&&(e=lu(4186112&~t),e===0&&(e=512)),e;case 2:return t=lu(805306368&~t),t===0&&(t=268435456),t}throw Error(Ue(358,e))}function lu(e){return e&-e}function sb(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function uy(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-ml(t),e[t]=n}var ml=Math.clz32?Math.clz32:K7,q7=Math.log,Y7=Math.LN2;function K7(e){return e===0?32:31-(q7(e)/Y7|0)|0}var X7=qr.unstable_UserBlockingPriority,J7=qr.unstable_runWithPriority,Ag=!0;function Q7(e,t,n,r){nc||EC();var o=_C,i=nc;nc=!0;try{R4(o,e,t,n,r)}finally{(nc=i)||TC()}}function Z7(e,t,n,r){J7(X7,_C.bind(null,e,t,n,r))}function _C(e,t,n,r){if(Ag){var o;if((o=(t&4)===0)&&0<Ia.length&&-1<tA.indexOf(e))e=cS(null,e,t,n,r),Ia.push(e);else{var i=PC(e,t,n,r);if(i===null)o&&nA(e,r);else{if(o){if(-1<tA.indexOf(e)){e=cS(i,e,t,n,r),Ia.push(e);return}if(z7(i,e,t,n,r))return;nA(e,r)}t$(e,t,r,null,n)}}}}function PC(e,t,n,r){var o=xC(r);if(o=rc(o),o!==null){var i=Pc(o);if(i===null)o=null;else{var a=i.tag;if(a===13){if(o=P4(i),o!==null)return o;o=null}else if(a===3){if(i.stateNode.hydrate)return i.tag===3?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return t$(e,t,r,o,n),null}var Ks=null,IC=null,Rg=null;function W4(){if(Rg)return Rg;var e,t=IC,n=t.length,r,o="value"in Ks?Ks.value:Ks.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return Rg=o.slice(e,1<r?1-r:void 0)}function _g(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function $m(){return!0}function oA(){return!1}function mi(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?$m:oA,this.isPropagationStopped=oA,this}return er(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=$m)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=$m)},persist:function(){},isPersistent:$m}),t}var hd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},OC=mi(hd),kh=er({},hd,{view:0,detail:0}),eF=mi(kh),lb,cb,sp,dy=er({},kh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$C,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sp&&(sp&&e.type==="mousemove"?(lb=e.screenX-sp.screenX,cb=e.screenY-sp.screenY):cb=lb=0,sp=e),lb)},movementY:function(e){return"movementY"in e?e.movementY:cb}}),iA=mi(dy),tF=er({},dy,{dataTransfer:0}),nF=mi(tF),rF=er({},kh,{relatedTarget:0}),ub=mi(rF),oF=er({},hd,{animationName:0,elapsedTime:0,pseudoElement:0}),iF=mi(oF),aF=er({},hd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sF=mi(aF),lF=er({},hd,{data:0}),aA=mi(lF),cF={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uF={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},dF={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pF(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dF[e])?!!t[e]:!1}function $C(){return pF}var fF=er({},kh,{key:function(e){if(e.key){var t=cF[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_g(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?uF[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$C,charCode:function(e){return e.type==="keypress"?_g(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_g(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hF=mi(fF),mF=er({},dy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sA=mi(mF),gF=er({},kh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$C}),vF=mi(gF),yF=er({},hd,{propertyName:0,elapsedTime:0,pseudoElement:0}),bF=mi(yF),wF=er({},dy,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),SF=mi(wF),xF=[9,13,27,32],NC=xs&&"CompositionEvent"in window,af=null;xs&&"documentMode"in document&&(af=document.documentMode);var CF=xs&&"TextEvent"in window&&!af,H4=xs&&(!NC||af&&8<af&&11>=af),lA=String.fromCharCode(32),cA=!1;function V4(e,t){switch(e){case"keyup":return xF.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function G4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fu=!1;function EF(e,t){switch(e){case"compositionend":return G4(t);case"keypress":return t.which!==32?null:(cA=!0,lA);case"textInput":return e=t.data,e===lA&&cA?null:e;default:return null}}function TF(e,t){if(fu)return e==="compositionend"||!NC&&V4(e,t)?(e=W4(),Rg=IC=Ks=null,fu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return H4&&t.locale!=="ko"?null:t.data;default:return null}}var kF={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function uA(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!kF[e.type]:t==="textarea"}function q4(e,t,n,r){k4(r),t=tv(t,"onChange"),0<t.length&&(n=new OC("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var sf=null,Mf=null;function AF(e){Q4(e,0)}function py(e){var t=mu(e);if(b4(t))return e}function RF(e,t){if(e==="change")return t}var Y4=!1;if(xs){var db;if(xs){var pb="oninput"in document;if(!pb){var dA=document.createElement("div");dA.setAttribute("oninput","return;"),pb=typeof dA.oninput=="function"}db=pb}else db=!1;Y4=db&&(!document.documentMode||9<document.documentMode)}function pA(){sf&&(sf.detachEvent("onpropertychange",K4),Mf=sf=null)}function K4(e){if(e.propertyName==="value"&&py(Mf)){var t=[];if(q4(t,Mf,e,xC(e)),e=AF,nc)e(t);else{nc=!0;try{CC(e,t)}finally{nc=!1,TC()}}}}function _F(e,t,n){e==="focusin"?(pA(),sf=t,Mf=n,sf.attachEvent("onpropertychange",K4)):e==="focusout"&&pA()}function PF(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return py(Mf)}function IF(e,t){if(e==="click")return py(t)}function OF(e,t){if(e==="input"||e==="change")return py(t)}function $F(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ei=typeof Object.is=="function"?Object.is:$F,NF=Object.prototype.hasOwnProperty;function Bf(e,t){if(Ei(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!NF.call(t,n[r])||!Ei(e[n[r]],t[n[r]]))return!1;return!0}function fA(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hA(e,t){var n=fA(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fA(n)}}function X4(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?X4(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mA(){for(var e=window,t=Jg();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jg(e.document)}return t}function uS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var LF=xs&&"documentMode"in document&&11>=document.documentMode,hu=null,dS=null,lf=null,pS=!1;function gA(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pS||hu==null||hu!==Jg(r)||(r=hu,"selectionStart"in r&&uS(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),lf&&Bf(lf,r)||(lf=r,r=tv(dS,"onSelect"),0<r.length&&(t=new OC("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hu)))}RC("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);RC("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);RC(W7,2);for(var vA="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),fb=0;fb<vA.length;fb++)AC.set(vA[fb],0);Hu("onMouseEnter",["mouseout","mouseover"]);Hu("onMouseLeave",["mouseout","mouseover"]);Hu("onPointerEnter",["pointerout","pointerover"]);Hu("onPointerLeave",["pointerout","pointerover"]);Rc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Rc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Rc("onBeforeInput",["compositionend","keypress","textInput","paste"]);Rc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Rc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Rc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),J4=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gp));function yA(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,B7(r,t,void 0,e),e.currentTarget=null}function Q4(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],c=s.instance,u=s.currentTarget;if(s=s.listener,c!==i&&o.isPropagationStopped())break e;yA(o,s,u),i=c}else for(a=0;a<r.length;a++){if(s=r[a],c=s.instance,u=s.currentTarget,s=s.listener,c!==i&&o.isPropagationStopped())break e;yA(o,s,u),i=c}}}if(Zg)throw e=sS,Zg=!1,sS=null,e}function qn(e,t){var n=r$(t),r=e+"__bubble";n.has(r)||(e$(t,e,2,!1),n.add(r))}var bA="_reactListening"+Math.random().toString(36).slice(2);function Z4(e){e[bA]||(e[bA]=!0,g4.forEach(function(t){J4.has(t)||wA(t,!1,e,null),wA(t,!0,e,null)}))}function wA(e,t,n,r){var o=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,i=n;if(e==="selectionchange"&&n.nodeType!==9&&(i=n.ownerDocument),r!==null&&!t&&J4.has(e)){if(e!=="scroll")return;o|=2,i=r}var a=r$(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),e$(i,e,o,t),a.add(s))}function e$(e,t,n,r){var o=AC.get(t);switch(o===void 0?2:o){case 0:o=Q7;break;case 1:o=Z7;break;default:o=_C}n=o.bind(null,t,n,e),o=void 0,!aS||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function t$(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;a=a.return}for(;s!==null;){if(a=rc(s),a===null)return;if(c=a.tag,c===5||c===6){r=i=a;continue e}s=s.parentNode}}r=r.return}N7(function(){var u=i,d=xC(n),p=[];e:{var f=j4.get(e);if(f!==void 0){var h=OC,g=e;switch(e){case"keypress":if(_g(n)===0)break e;case"keydown":case"keyup":h=hF;break;case"focusin":g="focus",h=ub;break;case"focusout":g="blur",h=ub;break;case"beforeblur":case"afterblur":h=ub;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=iA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=nF;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=vF;break;case M4:case B4:case F4:h=iF;break;case z4:h=bF;break;case"scroll":h=eF;break;case"wheel":h=SF;break;case"copy":case"cut":case"paste":h=sF;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=sA}var v=(t&4)!==0,b=!v&&e==="scroll",y=v?f!==null?f+"Capture":null:f;v=[];for(var w=u,S;w!==null;){S=w;var k=S.stateNode;if(S.tag===5&&k!==null&&(S=k,y!==null&&(k=$f(w,y),k!=null&&v.push(Ff(w,k,S)))),b)break;w=w.return}0<v.length&&(f=new h(f,g,null,n,d),p.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&!(t&16)&&(g=n.relatedTarget||n.fromElement)&&(rc(g)||g[md]))break e;if((h||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?rc(g):null,g!==null&&(b=Pc(g),g!==b||g.tag!==5&&g.tag!==6)&&(g=null)):(h=null,g=u),h!==g)){if(v=iA,k="onMouseLeave",y="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(v=sA,k="onPointerLeave",y="onPointerEnter",w="pointer"),b=h==null?f:mu(h),S=g==null?f:mu(g),f=new v(k,w+"leave",h,n,d),f.target=b,f.relatedTarget=S,k=null,rc(d)===u&&(v=new v(y,w+"enter",g,n,d),v.target=S,v.relatedTarget=b,k=v),b=k,h&&g)t:{for(v=h,y=g,w=0,S=v;S;S=Yc(S))w++;for(S=0,k=y;k;k=Yc(k))S++;for(;0<w-S;)v=Yc(v),w--;for(;0<S-w;)y=Yc(y),S--;for(;w--;){if(v===y||y!==null&&v===y.alternate)break t;v=Yc(v),y=Yc(y)}v=null}else v=null;h!==null&&SA(p,f,h,v,!1),g!==null&&b!==null&&SA(p,b,g,v,!0)}}e:{if(f=u?mu(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var A=RF;else if(uA(f))if(Y4)A=OF;else{A=PF;var T=_F}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(A=IF);if(A&&(A=A(e,u))){q4(p,A,n,d);break e}T&&T(e,f,u),e==="focusout"&&(T=f._wrapperState)&&T.controlled&&f.type==="number"&&Qw(f,"number",f.value)}switch(T=u?mu(u):window,e){case"focusin":(uA(T)||T.contentEditable==="true")&&(hu=T,dS=u,lf=null);break;case"focusout":lf=dS=hu=null;break;case"mousedown":pS=!0;break;case"contextmenu":case"mouseup":case"dragend":pS=!1,gA(p,n,d);break;case"selectionchange":if(LF)break;case"keydown":case"keyup":gA(p,n,d)}var R;if(NC)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else fu?V4(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(H4&&n.locale!=="ko"&&(fu||P!=="onCompositionStart"?P==="onCompositionEnd"&&fu&&(R=W4()):(Ks=d,IC="value"in Ks?Ks.value:Ks.textContent,fu=!0)),T=tv(u,P),0<T.length&&(P=new aA(P,e,null,n,d),p.push({event:P,listeners:T}),R?P.data=R:(R=G4(n),R!==null&&(P.data=R)))),(R=CF?EF(e,n):TF(e,n))&&(u=tv(u,"onBeforeInput"),0<u.length&&(d=new aA("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:u}),d.data=R))}Q4(p,t)})}function Ff(e,t,n){return{instance:e,listener:t,currentTarget:n}}function tv(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=$f(e,n),i!=null&&r.unshift(Ff(e,i,o)),i=$f(e,t),i!=null&&r.push(Ff(e,i,o))),e=e.return}return r}function Yc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function SA(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var s=n,c=s.alternate,u=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&u!==null&&(s=u,o?(c=$f(n,i),c!=null&&a.unshift(Ff(n,c,s))):o||(c=$f(n,i),c!=null&&a.push(Ff(n,c,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}function nv(){}var hb=null,mb=null;function n$(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function fS(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xA=typeof setTimeout=="function"?setTimeout:void 0,DF=typeof clearTimeout=="function"?clearTimeout:void 0;function LC(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Tu(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function CA(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var gb=0;function MF(e){return{$$typeof:wC,toString:e,valueOf:e}}var fy=Math.random().toString(36).slice(2),Xs="__reactFiber$"+fy,rv="__reactProps$"+fy,md="__reactContainer$"+fy,EA="__reactEvents$"+fy;function rc(e){var t=e[Xs];if(t)return t;for(var n=e.parentNode;n;){if(t=n[md]||n[Xs]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=CA(e);e!==null;){if(n=e[Xs])return n;e=CA(e)}return t}e=n,n=e.parentNode}return null}function Ah(e){return e=e[Xs]||e[md],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function mu(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ue(33))}function hy(e){return e[rv]||null}function r$(e){var t=e[EA];return t===void 0&&(t=e[EA]=new Set),t}var hS=[],gu=-1;function kl(e){return{current:e}}function Kn(e){0>gu||(e.current=hS[gu],hS[gu]=null,gu--)}function mr(e,t){gu++,hS[gu]=e.current,e.current=t}var gl={},go=kl(gl),zo=kl(!1),gc=gl;function Vu(e,t){var n=e.type.contextTypes;if(!n)return gl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function jo(e){return e=e.childContextTypes,e!=null}function ov(){Kn(zo),Kn(go)}function TA(e,t,n){if(go.current!==gl)throw Error(Ue(168));mr(go,t),mr(zo,n)}function o$(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in e))throw Error(Ue(108,Su(t)||"Unknown",o));return er({},n,r)}function Pg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gl,gc=go.current,mr(go,e),mr(zo,zo.current),!0}function kA(e,t,n){var r=e.stateNode;if(!r)throw Error(Ue(169));n?(e=o$(e,t,gc),r.__reactInternalMemoizedMergedChildContext=e,Kn(zo),Kn(go),mr(go,e)):Kn(zo),mr(zo,n)}var DC=null,cc=null,BF=qr.unstable_runWithPriority,MC=qr.unstable_scheduleCallback,mS=qr.unstable_cancelCallback,FF=qr.unstable_shouldYield,AA=qr.unstable_requestPaint,gS=qr.unstable_now,zF=qr.unstable_getCurrentPriorityLevel,my=qr.unstable_ImmediatePriority,i$=qr.unstable_UserBlockingPriority,a$=qr.unstable_NormalPriority,s$=qr.unstable_LowPriority,l$=qr.unstable_IdlePriority,vb={},jF=AA!==void 0?AA:function(){},us=null,Ig=null,yb=!1,RA=gS(),ho=1e4>RA?gS:function(){return gS()-RA};function Gu(){switch(zF()){case my:return 99;case i$:return 98;case a$:return 97;case s$:return 96;case l$:return 95;default:throw Error(Ue(332))}}function c$(e){switch(e){case 99:return my;case 98:return i$;case 97:return a$;case 96:return s$;case 95:return l$;default:throw Error(Ue(332))}}function vc(e,t){return e=c$(e),BF(e,t)}function zf(e,t,n){return e=c$(e),MC(e,t,n)}function Qa(){if(Ig!==null){var e=Ig;Ig=null,mS(e)}u$()}function u$(){if(!yb&&us!==null){yb=!0;var e=0;try{var t=us;vc(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),us=null}catch(n){throw us!==null&&(us=us.slice(e+1)),MC(my,Qa),n}finally{yb=!1}}}var UF=_c.ReactCurrentBatchConfig;function na(e,t){if(e&&e.defaultProps){t=er({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var iv=kl(null),av=null,vu=null,sv=null;function BC(){sv=vu=av=null}function FC(e){var t=iv.current;Kn(iv),e.type._context._currentValue=t}function d$(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function ku(e,t){av=e,sv=vu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(aa=!0),e.firstContext=null)}function Di(e,t){if(sv!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(sv=e,t=1073741823),t={context:e,observedBits:t,next:null},vu===null){if(av===null)throw Error(Ue(308));vu=t,av.dependencies={lanes:0,firstContext:t,responders:null}}else vu=vu.next=t;return e._currentValue}var Hs=!1;function zC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function p$(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function al(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sl(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function _A(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jf(e,t,n,r){var o=e.updateQueue;Hs=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,u=c.next;c.next=null,a===null?i=u:a.next=u,a=c;var d=e.alternate;if(d!==null){d=d.updateQueue;var p=d.lastBaseUpdate;p!==a&&(p===null?d.firstBaseUpdate=u:p.next=u,d.lastBaseUpdate=c)}}if(i!==null){p=o.baseState,a=0,d=u=c=null;do{s=i.lane;var f=i.eventTime;if((r&s)===s){d!==null&&(d=d.next={eventTime:f,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,g=i;switch(s=t,f=n,g.tag){case 1:if(h=g.payload,typeof h=="function"){p=h.call(f,p,s);break e}p=h;break e;case 3:h.flags=h.flags&-4097|64;case 0:if(h=g.payload,s=typeof h=="function"?h.call(f,p,s):h,s==null)break e;p=er({},p,s);break e;case 2:Hs=!0}}i.callback!==null&&(e.flags|=32,s=o.effects,s===null?o.effects=[i]:s.push(i))}else f={eventTime:f,lane:s,tag:i.tag,payload:i.payload,callback:i.callback,next:null},d===null?(u=d=f,c=p):d=d.next=f,a|=s;if(i=i.next,i===null){if(s=o.shared.pending,s===null)break;i=s.next,s.next=null,o.lastBaseUpdate=s,o.shared.pending=null}}while(1);d===null&&(c=p),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,_h|=a,e.lanes=a,e.memoizedState=p}}function PA(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(Ue(191,o));o.call(r)}}}var f$=new ay.Component().refs;function lv(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:er({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var gy={isMounted:function(e){return(e=e._reactInternals)?Pc(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ai(),o=ll(e),i=al(r,o);i.payload=t,n!=null&&(i.callback=n),sl(e,i),cl(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ai(),o=ll(e),i=al(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),sl(e,i),cl(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ai(),r=ll(e),o=al(n,r);o.tag=2,t!=null&&(o.callback=t),sl(e,o),cl(e,r,n)}};function IA(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!Bf(n,r)||!Bf(o,i):!0}function h$(e,t,n){var r=!1,o=gl,i=t.contextType;return typeof i=="object"&&i!==null?i=Di(i):(o=jo(t)?gc:go.current,r=t.contextTypes,i=(r=r!=null)?Vu(e,o):gl),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=gy,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function OA(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&gy.enqueueReplaceState(t,t.state,null)}function vS(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=f$,zC(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Di(i):(i=jo(t)?gc:go.current,o.context=Vu(e,i)),jf(e,n,o,r),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(lv(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&gy.enqueueReplaceState(o,o.state,null),jf(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4)}var Nm=Array.isArray;function lp(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Ue(309));var r=n.stateNode}if(!r)throw Error(Ue(147,e));var o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=r.refs;a===f$&&(a=r.refs={}),i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(Ue(284));if(!n._owner)throw Error(Ue(290,e))}return e}function Lm(e,t){if(e.type!=="textarea")throw Error(Ue(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function m$(e){function t(b,y){if(e){var w=b.lastEffect;w!==null?(w.nextEffect=y,b.lastEffect=y):b.firstEffect=b.lastEffect=y,y.nextEffect=null,y.flags=8}}function n(b,y){if(!e)return null;for(;y!==null;)t(b,y),y=y.sibling;return null}function r(b,y){for(b=new Map;y!==null;)y.key!==null?b.set(y.key,y):b.set(y.index,y),y=y.sibling;return b}function o(b,y){return b=yl(b,y),b.index=0,b.sibling=null,b}function i(b,y,w){return b.index=w,e?(w=b.alternate,w!==null?(w=w.index,w<y?(b.flags=2,y):w):(b.flags=2,y)):y}function a(b){return e&&b.alternate===null&&(b.flags=2),b}function s(b,y,w,S){return y===null||y.tag!==6?(y=Cb(w,b.mode,S),y.return=b,y):(y=o(y,w),y.return=b,y)}function c(b,y,w,S){return y!==null&&y.elementType===w.type?(S=o(y,w.props),S.ref=lp(b,y,w),S.return=b,S):(S=Lg(w.type,w.key,w.props,null,b.mode,S),S.ref=lp(b,y,w),S.return=b,S)}function u(b,y,w,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=Eb(w,b.mode,S),y.return=b,y):(y=o(y,w.children||[]),y.return=b,y)}function d(b,y,w,S,k){return y===null||y.tag!==7?(y=Pu(w,b.mode,S,k),y.return=b,y):(y=o(y,w),y.return=b,y)}function p(b,y,w){if(typeof y=="string"||typeof y=="number")return y=Cb(""+y,b.mode,w),y.return=b,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Hp:return w=Lg(y.type,y.key,y.props,null,b.mode,w),w.ref=lp(b,null,y),w.return=b,w;case tc:return y=Eb(y,b.mode,w),y.return=b,y}if(Nm(y)||np(y))return y=Pu(y,b.mode,w,null),y.return=b,y;Lm(b,y)}return null}function f(b,y,w,S){var k=y!==null?y.key:null;if(typeof w=="string"||typeof w=="number")return k!==null?null:s(b,y,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Hp:return w.key===k?w.type===Gs?d(b,y,w.props.children,S,k):c(b,y,w,S):null;case tc:return w.key===k?u(b,y,w,S):null}if(Nm(w)||np(w))return k!==null?null:d(b,y,w,S,null);Lm(b,w)}return null}function h(b,y,w,S,k){if(typeof S=="string"||typeof S=="number")return b=b.get(w)||null,s(y,b,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Hp:return b=b.get(S.key===null?w:S.key)||null,S.type===Gs?d(y,b,S.props.children,k,S.key):c(y,b,S,k);case tc:return b=b.get(S.key===null?w:S.key)||null,u(y,b,S,k)}if(Nm(S)||np(S))return b=b.get(w)||null,d(y,b,S,k,null);Lm(y,S)}return null}function g(b,y,w,S){for(var k=null,A=null,T=y,R=y=0,P=null;T!==null&&R<w.length;R++){T.index>R?(P=T,T=null):P=T.sibling;var _=f(b,T,w[R],S);if(_===null){T===null&&(T=P);break}e&&T&&_.alternate===null&&t(b,T),y=i(_,y,R),A===null?k=_:A.sibling=_,A=_,T=P}if(R===w.length)return n(b,T),k;if(T===null){for(;R<w.length;R++)T=p(b,w[R],S),T!==null&&(y=i(T,y,R),A===null?k=T:A.sibling=T,A=T);return k}for(T=r(b,T);R<w.length;R++)P=h(T,b,R,w[R],S),P!==null&&(e&&P.alternate!==null&&T.delete(P.key===null?R:P.key),y=i(P,y,R),A===null?k=P:A.sibling=P,A=P);return e&&T.forEach(function(O){return t(b,O)}),k}function v(b,y,w,S){var k=np(w);if(typeof k!="function")throw Error(Ue(150));if(w=k.call(w),w==null)throw Error(Ue(151));for(var A=k=null,T=y,R=y=0,P=null,_=w.next();T!==null&&!_.done;R++,_=w.next()){T.index>R?(P=T,T=null):P=T.sibling;var O=f(b,T,_.value,S);if(O===null){T===null&&(T=P);break}e&&T&&O.alternate===null&&t(b,T),y=i(O,y,R),A===null?k=O:A.sibling=O,A=O,T=P}if(_.done)return n(b,T),k;if(T===null){for(;!_.done;R++,_=w.next())_=p(b,_.value,S),_!==null&&(y=i(_,y,R),A===null?k=_:A.sibling=_,A=_);return k}for(T=r(b,T);!_.done;R++,_=w.next())_=h(T,b,R,_.value,S),_!==null&&(e&&_.alternate!==null&&T.delete(_.key===null?R:_.key),y=i(_,y,R),A===null?k=_:A.sibling=_,A=_);return e&&T.forEach(function($){return t(b,$)}),k}return function(b,y,w,S){var k=typeof w=="object"&&w!==null&&w.type===Gs&&w.key===null;k&&(w=w.props.children);var A=typeof w=="object"&&w!==null;if(A)switch(w.$$typeof){case Hp:e:{for(A=w.key,k=y;k!==null;){if(k.key===A){switch(k.tag){case 7:if(w.type===Gs){n(b,k.sibling),y=o(k,w.props.children),y.return=b,b=y;break e}break;default:if(k.elementType===w.type){n(b,k.sibling),y=o(k,w.props),y.ref=lp(b,k,w),y.return=b,b=y;break e}}n(b,k);break}else t(b,k);k=k.sibling}w.type===Gs?(y=Pu(w.props.children,b.mode,S,w.key),y.return=b,b=y):(S=Lg(w.type,w.key,w.props,null,b.mode,S),S.ref=lp(b,y,w),S.return=b,b=S)}return a(b);case tc:e:{for(k=w.key;y!==null;){if(y.key===k)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(b,y.sibling),y=o(y,w.children||[]),y.return=b,b=y;break e}else{n(b,y);break}else t(b,y);y=y.sibling}y=Eb(w,b.mode,S),y.return=b,b=y}return a(b)}if(typeof w=="string"||typeof w=="number")return w=""+w,y!==null&&y.tag===6?(n(b,y.sibling),y=o(y,w),y.return=b,b=y):(n(b,y),y=Cb(w,b.mode,S),y.return=b,b=y),a(b);if(Nm(w))return g(b,y,w,S);if(np(w))return v(b,y,w,S);if(A&&Lm(b,w),typeof w>"u"&&!k)switch(b.tag){case 1:case 22:case 0:case 11:case 15:throw Error(Ue(152,Su(b.type)||"Component"))}return n(b,y)}}var cv=m$(!0),g$=m$(!1),Rh={},Ba=kl(Rh),Uf=kl(Rh),Wf=kl(Rh);function oc(e){if(e===Rh)throw Error(Ue(174));return e}function yS(e,t){switch(mr(Wf,t),mr(Uf,e),mr(Ba,Rh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nS(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=nS(t,e)}Kn(Ba),mr(Ba,t)}function qu(){Kn(Ba),Kn(Uf),Kn(Wf)}function $A(e){oc(Wf.current);var t=oc(Ba.current),n=nS(t,e.type);t!==n&&(mr(Uf,e),mr(Ba,n))}function jC(e){Uf.current===e&&(Kn(Ba),Kn(Uf))}var hr=kl(0);function uv(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ms=null,Js=null,Fa=!1;function v$(e,t){var n=Ti(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function NA(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function bS(e){if(Fa){var t=Js;if(t){var n=t;if(!NA(e,t)){if(t=Tu(n.nextSibling),!t||!NA(e,t)){e.flags=e.flags&-1025|2,Fa=!1,ms=e;return}v$(ms,n)}ms=e,Js=Tu(t.firstChild)}else e.flags=e.flags&-1025|2,Fa=!1,ms=e}}function LA(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ms=e}function Dm(e){if(e!==ms)return!1;if(!Fa)return LA(e),Fa=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!fS(t,e.memoizedProps))for(t=Js;t;)v$(e,t),t=Tu(t.nextSibling);if(LA(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ue(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Js=Tu(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Js=null}}else Js=ms?Tu(e.stateNode.nextSibling):null;return!0}function bb(){Js=ms=null,Fa=!1}var Au=[];function UC(){for(var e=0;e<Au.length;e++)Au[e]._workInProgressVersionPrimary=null;Au.length=0}var cf=_c.ReactCurrentDispatcher,Pi=_c.ReactCurrentBatchConfig,Hf=0,Sr=null,uo=null,no=null,dv=!1,uf=!1;function Lo(){throw Error(Ue(321))}function WC(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ei(e[n],t[n]))return!1;return!0}function HC(e,t,n,r,o,i){if(Hf=i,Sr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,cf.current=e===null||e.memoizedState===null?HF:VF,e=n(r,o),uf){i=0;do{if(uf=!1,!(25>i))throw Error(Ue(301));i+=1,no=uo=null,t.updateQueue=null,cf.current=GF,e=n(r,o)}while(uf)}if(cf.current=mv,t=uo!==null&&uo.next!==null,Hf=0,no=uo=Sr=null,dv=!1,t)throw Error(Ue(300));return e}function ic(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return no===null?Sr.memoizedState=no=e:no=no.next=e,no}function Ic(){if(uo===null){var e=Sr.alternate;e=e!==null?e.memoizedState:null}else e=uo.next;var t=no===null?Sr.memoizedState:no.next;if(t!==null)no=t,uo=e;else{if(e===null)throw Error(Ue(310));uo=e,e={memoizedState:uo.memoizedState,baseState:uo.baseState,baseQueue:uo.baseQueue,queue:uo.queue,next:null},no===null?Sr.memoizedState=no=e:no=no.next=e}return no}function Oa(e,t){return typeof t=="function"?t(e):t}function cp(e){var t=Ic(),n=t.queue;if(n===null)throw Error(Ue(311));n.lastRenderedReducer=e;var r=uo,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){o=o.next,r=r.baseState;var s=a=i=null,c=o;do{var u=c.lane;if((Hf&u)===u)s!==null&&(s=s.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};s===null?(a=s=d,i=r):s=s.next=d,Sr.lanes|=u,_h|=u}c=c.next}while(c!==null&&c!==o);s===null?i=r:s.next=a,Ei(r,t.memoizedState)||(aa=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function up(e){var t=Ic(),n=t.queue;if(n===null)throw Error(Ue(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);Ei(i,t.memoizedState)||(aa=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function DA(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(o!==null?e=o===r:(e=e.mutableReadLanes,(e=(Hf&e)===e)&&(t._workInProgressVersionPrimary=r,Au.push(t))),e)return n(t._source);throw Au.push(t),Error(Ue(350))}function y$(e,t,n,r){var o=Eo;if(o===null)throw Error(Ue(349));var i=t._getVersion,a=i(t._source),s=cf.current,c=s.useState(function(){return DA(o,t,n)}),u=c[1],d=c[0];c=no;var p=e.memoizedState,f=p.refs,h=f.getSnapshot,g=p.source;p=p.subscribe;var v=Sr;return e.memoizedState={refs:f,source:t,subscribe:r},s.useEffect(function(){f.getSnapshot=n,f.setSnapshot=u;var b=i(t._source);if(!Ei(a,b)){b=n(t._source),Ei(d,b)||(u(b),b=ll(v),o.mutableReadLanes|=b&o.pendingLanes),b=o.mutableReadLanes,o.entangledLanes|=b;for(var y=o.entanglements,w=b;0<w;){var S=31-ml(w),k=1<<S;y[S]|=b,w&=~k}}},[n,t,r]),s.useEffect(function(){return r(t._source,function(){var b=f.getSnapshot,y=f.setSnapshot;try{y(b(t._source));var w=ll(v);o.mutableReadLanes|=w&o.pendingLanes}catch(S){y(function(){throw S})}})},[t,r]),Ei(h,n)&&Ei(g,t)&&Ei(p,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:d},e.dispatch=u=qC.bind(null,Sr,e),c.queue=e,c.baseQueue=null,d=DA(o,t,n),c.memoizedState=c.baseState=d),d}function b$(e,t,n){var r=Ic();return y$(r,e,t,n)}function dp(e){var t=ic();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:e},e=e.dispatch=qC.bind(null,Sr,e),[t.memoizedState,e]}function pv(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Sr.updateQueue,t===null?(t={lastEffect:null},Sr.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function MA(e){var t=ic();return e={current:e},t.memoizedState=e}function fv(){return Ic().memoizedState}function wS(e,t,n,r){var o=ic();Sr.flags|=e,o.memoizedState=pv(1|t,n,void 0,r===void 0?null:r)}function VC(e,t,n,r){var o=Ic();r=r===void 0?null:r;var i=void 0;if(uo!==null){var a=uo.memoizedState;if(i=a.destroy,r!==null&&WC(r,a.deps)){pv(t,n,i,r);return}}Sr.flags|=e,o.memoizedState=pv(1|t,n,i,r)}function BA(e,t){return wS(516,4,e,t)}function hv(e,t){return VC(516,4,e,t)}function w$(e,t){return VC(4,2,e,t)}function S$(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function x$(e,t,n){return n=n!=null?n.concat([e]):null,VC(4,2,S$.bind(null,t,e),n)}function GC(){}function C$(e,t){var n=Ic();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&WC(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function E$(e,t){var n=Ic();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&WC(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function WF(e,t){var n=Gu();vc(98>n?98:n,function(){e(!0)}),vc(97<n?97:n,function(){var r=Pi.transition;Pi.transition=1;try{e(!1),t()}finally{Pi.transition=r}})}function qC(e,t,n){var r=ai(),o=ll(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(a===null?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Sr||a!==null&&a===Sr)uf=dv=!0;else{if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,c=a(s,n);if(i.eagerReducer=a,i.eagerState=c,Ei(c,s))return}catch{}finally{}cl(e,o,r)}}var mv={readContext:Di,useCallback:Lo,useContext:Lo,useEffect:Lo,useImperativeHandle:Lo,useLayoutEffect:Lo,useMemo:Lo,useReducer:Lo,useRef:Lo,useState:Lo,useDebugValue:Lo,useDeferredValue:Lo,useTransition:Lo,useMutableSource:Lo,useOpaqueIdentifier:Lo,unstable_isNewReconciler:!1},HF={readContext:Di,useCallback:function(e,t){return ic().memoizedState=[e,t===void 0?null:t],e},useContext:Di,useEffect:BA,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wS(4,2,S$.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wS(4,2,e,t)},useMemo:function(e,t){var n=ic();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ic();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=qC.bind(null,Sr,e),[r.memoizedState,e]},useRef:MA,useState:dp,useDebugValue:GC,useDeferredValue:function(e){var t=dp(e),n=t[0],r=t[1];return BA(function(){var o=Pi.transition;Pi.transition=1;try{r(e)}finally{Pi.transition=o}},[e]),n},useTransition:function(){var e=dp(!1),t=e[0];return e=WF.bind(null,e[1]),MA(e),[e,t]},useMutableSource:function(e,t,n){var r=ic();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},y$(r,e,t,n)},useOpaqueIdentifier:function(){if(Fa){var e=!1,t=MF(function(){throw e||(e=!0,n("r:"+(gb++).toString(36))),Error(Ue(355))}),n=dp(t)[1];return!(Sr.mode&2)&&(Sr.flags|=516,pv(5,function(){n("r:"+(gb++).toString(36))},void 0,null)),t}return t="r:"+(gb++).toString(36),dp(t),t},unstable_isNewReconciler:!1},VF={readContext:Di,useCallback:C$,useContext:Di,useEffect:hv,useImperativeHandle:x$,useLayoutEffect:w$,useMemo:E$,useReducer:cp,useRef:fv,useState:function(){return cp(Oa)},useDebugValue:GC,useDeferredValue:function(e){var t=cp(Oa),n=t[0],r=t[1];return hv(function(){var o=Pi.transition;Pi.transition=1;try{r(e)}finally{Pi.transition=o}},[e]),n},useTransition:function(){var e=cp(Oa)[0];return[fv().current,e]},useMutableSource:b$,useOpaqueIdentifier:function(){return cp(Oa)[0]},unstable_isNewReconciler:!1},GF={readContext:Di,useCallback:C$,useContext:Di,useEffect:hv,useImperativeHandle:x$,useLayoutEffect:w$,useMemo:E$,useReducer:up,useRef:fv,useState:function(){return up(Oa)},useDebugValue:GC,useDeferredValue:function(e){var t=up(Oa),n=t[0],r=t[1];return hv(function(){var o=Pi.transition;Pi.transition=1;try{r(e)}finally{Pi.transition=o}},[e]),n},useTransition:function(){var e=up(Oa)[0];return[fv().current,e]},useMutableSource:b$,useOpaqueIdentifier:function(){return up(Oa)[0]},unstable_isNewReconciler:!1},qF=_c.ReactCurrentOwner,aa=!1;function Bo(e,t,n,r){t.child=e===null?g$(t,null,n,r):cv(t,e.child,n,r)}function FA(e,t,n,r,o){n=n.render;var i=t.ref;return ku(t,o),r=HC(e,t,n,r,i,o),e!==null&&!aa?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,gs(e,t,o)):(t.flags|=1,Bo(e,t,r,o),t.child)}function zA(e,t,n,r,o,i){if(e===null){var a=n.type;return typeof a=="function"&&!ZC(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,T$(e,t,a,r,o,i)):(e=Lg(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}return a=e.child,!(o&i)&&(o=a.memoizedProps,n=n.compare,n=n!==null?n:Bf,n(o,r)&&e.ref===t.ref)?gs(e,t,i):(t.flags|=1,e=yl(a,r),e.ref=t.ref,e.return=t,t.child=e)}function T$(e,t,n,r,o,i){if(e!==null&&Bf(e.memoizedProps,r)&&e.ref===t.ref)if(aa=!1,(i&o)!==0)e.flags&16384&&(aa=!0);else return t.lanes=e.lanes,gs(e,t,i);return SS(e,t,n,r,i)}function wb(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},Bm(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Bm(t,i!==null?i.baseLanes:n);else return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Bm(t,e),null;else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Bm(t,r);return Bo(e,t,o,n),t.child}function k$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function SS(e,t,n,r,o){var i=jo(n)?gc:go.current;return i=Vu(t,i),ku(t,o),n=HC(e,t,n,r,i,o),e!==null&&!aa?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,gs(e,t,o)):(t.flags|=1,Bo(e,t,n,o),t.child)}function jA(e,t,n,r,o){if(jo(n)){var i=!0;Pg(t)}else i=!1;if(ku(t,o),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),h$(t,n,r),vS(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Di(u):(u=jo(n)?gc:go.current,u=Vu(t,u));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||c!==u)&&OA(t,a,r,u),Hs=!1;var f=t.memoizedState;a.state=f,jf(t,r,a,o),c=t.memoizedState,s!==r||f!==c||zo.current||Hs?(typeof d=="function"&&(lv(t,n,d,r),c=t.memoizedState),(s=Hs||IA(t,n,s,r,f,c,u))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4)):(typeof a.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{a=t.stateNode,p$(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:na(t.type,s),a.props=u,p=t.pendingProps,f=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=Di(c):(c=jo(n)?gc:go.current,c=Vu(t,c));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==p||f!==c)&&OA(t,a,r,c),Hs=!1,f=t.memoizedState,a.state=f,jf(t,r,a,o);var g=t.memoizedState;s!==p||f!==g||zo.current||Hs?(typeof h=="function"&&(lv(t,n,h,r),g=t.memoizedState),(u=Hs||IA(t,n,u,r,f,g,c))?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,g,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,g,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=g),a.props=r,a.state=g,a.context=c,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return xS(e,t,n,r,i,o)}function xS(e,t,n,r,o,i){k$(e,t);var a=(t.flags&64)!==0;if(!r&&!a)return o&&kA(t,n,!1),gs(e,t,i);r=t.stateNode,qF.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=cv(t,e.child,null,i),t.child=cv(t,null,s,i)):Bo(e,t,s,i),t.memoizedState=r.state,o&&kA(t,n,!0),t.child}function UA(e){var t=e.stateNode;t.pendingContext?TA(e,t.pendingContext,t.pendingContext!==t.context):t.context&&TA(e,t.context,!1),yS(e,t.containerInfo)}var Mm={dehydrated:null,retryLane:0};function WA(e,t,n){var r=t.pendingProps,o=hr.current,i=!1,a;return(a=(t.flags&64)!==0)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(o|=1),mr(hr,o&1),e===null?(r.fallback!==void 0&&bS(t),e=r.children,o=r.fallback,i?(e=HA(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Mm,e):typeof r.unstable_expectedLoadTime=="number"?(e=HA(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Mm,t.lanes=33554432,e):(n=eE({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?i?(r=GA(e,t,r.children,r.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=o===null?{baseLanes:n}:{baseLanes:o.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=Mm,r):(n=VA(e,t,r.children,n),t.memoizedState=null,n):i?(r=GA(e,t,r.children,r.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=o===null?{baseLanes:n}:{baseLanes:o.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=Mm,r):(n=VA(e,t,r.children,n),t.memoizedState=null,n)}function HA(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},!(o&2)&&i!==null?(i.childLanes=0,i.pendingProps=t):i=eE(t,o,0,null),n=Pu(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function VA(e,t,n,r){var o=e.child;return e=o.sibling,n=yl(o,{mode:"visible",children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function GA(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return!(i&2)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=s,a=n.lastEffect,a!==null?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=yl(a,s),e!==null?r=yl(e,r):(r=Pu(r,i,o,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function qA(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),d$(e.return,t)}function Sb(e,t,n,r,o,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function YA(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Bo(e,t,r.children,n),r=hr.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qA(e,n);else if(e.tag===19)qA(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(mr(hr,r),!(t.mode&2))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&uv(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Sb(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&uv(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Sb(t,!0,n,null,i,t.lastEffect);break;case"together":Sb(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function gs(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_h|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(Ue(153));if(t.child!==null){for(e=t.child,n=yl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=yl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var A$,CS,R$,_$;A$=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};CS=function(){};R$=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,oc(Ba.current);var i=null;switch(n){case"input":o=Xw(e,o),r=Xw(e,r),i=[];break;case"option":o=Zw(e,o),r=Zw(e,r),i=[];break;case"select":o=er({},o,{value:void 0}),r=er({},r,{value:void 0}),i=[];break;case"textarea":o=eS(e,o),r=eS(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=nv)}rS(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(If.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(c!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(If.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&qn("scroll",e),i||s===c||(i=[])):typeof c=="object"&&c!==null&&c.$$typeof===wC?c.toString():(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};_$=function(e,t,n,r){n!==r&&(t.flags|=4)};function pp(e,t){if(!Fa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function YF(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return jo(t.type)&&ov(),null;case 3:return qu(),Kn(zo),Kn(go),UC(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Dm(t)?t.flags|=4:r.hydrate||(t.flags|=256)),CS(t),null;case 5:jC(t);var o=oc(Wf.current);if(n=t.type,e!==null&&t.stateNode!=null)R$(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(Ue(166));return null}if(e=oc(Ba.current),Dm(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Xs]=t,r[rv]=i,n){case"dialog":qn("cancel",r),qn("close",r);break;case"iframe":case"object":case"embed":qn("load",r);break;case"video":case"audio":for(e=0;e<Gp.length;e++)qn(Gp[e],r);break;case"source":qn("error",r);break;case"img":case"image":case"link":qn("error",r),qn("load",r);break;case"details":qn("toggle",r);break;case"input":Yk(r,i),qn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},qn("invalid",r);break;case"textarea":Xk(r,i),qn("invalid",r)}rS(n,i),e=null;for(var a in i)i.hasOwnProperty(a)&&(o=i[a],a==="children"?typeof o=="string"?r.textContent!==o&&(e=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(e=["children",""+o]):If.hasOwnProperty(a)&&o!=null&&a==="onScroll"&&qn("scroll",r));switch(n){case"input":Pm(r),Kk(r,i,!0);break;case"textarea":Pm(r),Jk(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=nv)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(a=o.nodeType===9?o:o.ownerDocument,e===tS.html&&(e=x4(n)),e===tS.html?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Xs]=t,e[rv]=r,A$(e,t,!1,!1),t.stateNode=e,a=oS(n,r),n){case"dialog":qn("cancel",e),qn("close",e),o=r;break;case"iframe":case"object":case"embed":qn("load",e),o=r;break;case"video":case"audio":for(o=0;o<Gp.length;o++)qn(Gp[o],e);o=r;break;case"source":qn("error",e),o=r;break;case"img":case"image":case"link":qn("error",e),qn("load",e),o=r;break;case"details":qn("toggle",e),o=r;break;case"input":Yk(e,r),o=Xw(e,r),qn("invalid",e);break;case"option":o=Zw(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=er({},r,{value:void 0}),qn("invalid",e);break;case"textarea":Xk(e,r),o=eS(e,r),qn("invalid",e);break;default:o=r}rS(n,o);var s=o;for(i in s)if(s.hasOwnProperty(i)){var c=s[i];i==="style"?T4(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&C4(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Of(e,c):typeof c=="number"&&Of(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(If.hasOwnProperty(i)?c!=null&&i==="onScroll"&&qn("scroll",e):c!=null&&hC(e,i,c,a))}switch(n){case"input":Pm(e),Kk(e,r,!1);break;case"textarea":Pm(e),Jk(e);break;case"option":r.value!=null&&e.setAttribute("value",""+hl(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?xu(e,!!r.multiple,i,!1):r.defaultValue!=null&&xu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=nv)}n$(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)_$(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Ue(166));n=oc(Wf.current),oc(Ba.current),Dm(t)?(r=t.stateNode,n=t.memoizedProps,r[Xs]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Xs]=t,t.stateNode=r)}return null;case 13:return Kn(hr),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Dm(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||hr.current&1?io===0&&(io=3):((io===0||io===3)&&(io=4),Eo===null||!(_h&134217727)&&!(vd&134217727)||Ru(Eo,mo))),(r||n)&&(t.flags|=4),null);case 4:return qu(),CS(t),e===null&&Z4(t.stateNode.containerInfo),null;case 10:return FC(t),null;case 17:return jo(t.type)&&ov(),null;case 19:if(Kn(hr),r=t.memoizedState,r===null)return null;if(i=(t.flags&64)!==0,a=r.rendering,a===null)if(i)pp(r,!1);else{if(io!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(a=uv(e),a!==null){for(t.flags|=64,pp(r,!1),i=a.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return mr(hr,hr.current&1|2),t.child}e=e.sibling}r.tail!==null&&ho()>_S&&(t.flags|=64,i=!0,pp(r,!1),t.lanes=33554432)}else{if(!i)if(e=uv(a),e!==null){if(t.flags|=64,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pp(r,!0),r.tail===null&&r.tailMode==="hidden"&&!a.alternate&&!Fa)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*ho()-r.renderingStartTime>_S&&n!==1073741824&&(t.flags|=64,i=!0,pp(r,!1),t.lanes=33554432);r.isBackwards?(a.sibling=t.child,t.child=a):(n=r.last,n!==null?n.sibling=a:t.child=a,r.last=a)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=ho(),n.sibling=null,t=hr.current,mr(hr,i?t&1|2:t&1),n):null;case 23:case 24:return QC(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(Ue(156,t.tag))}function KF(e){switch(e.tag){case 1:jo(e.type)&&ov();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(qu(),Kn(zo),Kn(go),UC(),t=e.flags,t&64)throw Error(Ue(285));return e.flags=t&-4097|64,e;case 5:return jC(e),null;case 13:return Kn(hr),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Kn(hr),null;case 4:return qu(),null;case 10:return FC(e),null;case 23:case 24:return QC(),null;default:return null}}function YC(e,t){try{var n="",r=t;do n+=_7(r),r=r.return;while(r);var o=n}catch(i){o=`
39
+ Error generating stack: `+i.message+`
40
+ `+i.stack}return{value:e,source:t,stack:o}}function ES(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var XF=typeof WeakMap=="function"?WeakMap:Map;function P$(e,t,n){n=al(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){vv||(vv=!0,PS=r),ES(e,t)},n}function I$(e,t,n){n=al(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return ES(e,t),r(o)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&($a===null?$a=new Set([this]):$a.add(this),ES(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}var JF=typeof WeakSet=="function"?WeakSet:Set;function KA(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){ul(e,n)}else t.current=null}function QF(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:na(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&LC(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(Ue(163))}function ZF(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var o=e;r=o.next,o=o.tag,o&4&&o&1&&(z$(n,e),sz(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:na(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&PA(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}PA(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&n$(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&L4(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(Ue(163))}function XA(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=o!=null&&o.hasOwnProperty("display")?o.display:null,r.style.display=E4("display",o)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function JA(e,t){if(cc&&typeof cc.onCommitFiberUnmount=="function")try{cc.onCommitFiberUnmount(DC,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,o!==void 0)if(r&4)z$(t,n);else{r=t;try{o()}catch(i){ul(r,i)}}n=n.next}while(n!==e)}break;case 1:if(KA(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){ul(t,i)}break;case 5:KA(t);break;case 4:O$(e,t)}}function QA(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ZA(e){return e.tag===5||e.tag===3||e.tag===4}function eR(e){e:{for(var t=e.return;t!==null;){if(ZA(t))break e;t=t.return}throw Error(Ue(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(Ue(161))}n.flags&16&&(Of(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||ZA(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?TS(e,n,t):kS(e,n,t)}function TS(e,t,n){var r=e.tag,o=r===5||r===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=nv));else if(r!==4&&(e=e.child,e!==null))for(TS(e,t,n),e=e.sibling;e!==null;)TS(e,t,n),e=e.sibling}function kS(e,t,n){var r=e.tag,o=r===5||r===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(kS(e,t,n),e=e.sibling;e!==null;)kS(e,t,n),e=e.sibling}function O$(e,t){for(var n=t,r=!1,o,i;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(Ue(160));switch(o=r.stateNode,r.tag){case 5:i=!1;break e;case 3:o=o.containerInfo,i=!0;break e;case 4:o=o.containerInfo,i=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var a=e,s=n,c=s;;)if(JA(a,c),c.child!==null&&c.tag!==4)c.child.return=c,c=c.child;else{if(c===s)break e;for(;c.sibling===null;){if(c.return===null||c.return===s)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}i?(a=o,s=n.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):o.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){o=n.stateNode.containerInfo,i=!0,n.child.return=n,n=n.child;continue}}else if(JA(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function xb(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var o=e!==null?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,i!==null){for(n[rv]=r,e==="input"&&r.type==="radio"&&r.name!=null&&w4(n,r),oS(e,o),t=oS(e,r),o=0;o<i.length;o+=2){var a=i[o],s=i[o+1];a==="style"?T4(n,s):a==="dangerouslySetInnerHTML"?C4(n,s):a==="children"?Of(n,s):hC(n,a,s,t)}switch(e){case"input":Jw(n,r);break;case"textarea":S4(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,i=r.value,i!=null?xu(n,!!r.multiple,i,!1):e!==!!r.multiple&&(r.defaultValue!=null?xu(n,!!r.multiple,r.defaultValue,!0):xu(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(Ue(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,L4(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(JC=ho(),XA(t.child,!0)),tR(t);return;case 19:tR(t);return;case 17:return;case 23:case 24:XA(t,t.memoizedState!==null);return}throw Error(Ue(163))}function tR(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new JF),t.forEach(function(r){var o=uz.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ez(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var tz=Math.ceil,gv=_c.ReactCurrentDispatcher,KC=_c.ReactCurrentOwner,Nt=0,Eo=null,Lr=null,mo=0,yc=0,AS=kl(0),io=0,vy=null,gd=0,_h=0,vd=0,XC=0,RS=null,JC=0,_S=1/0;function yd(){_S=ho()+500}var ut=null,vv=!1,PS=null,$a=null,vl=!1,df=null,qp=90,IS=[],OS=[],vs=null,pf=0,$S=null,Og=-1,ps=0,$g=0,ff=null,Ng=!1;function ai(){return Nt&48?ho():Og!==-1?Og:Og=ho()}function ll(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return Gu()===99?1:2;if(ps===0&&(ps=gd),UF.transition!==0){$g!==0&&($g=RS!==null?RS.pendingLanes:0),e=ps;var t=4186112&~$g;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=Gu(),Nt&4&&e===98?e=ev(12,ps):(e=V7(e),e=ev(e,ps)),e}function cl(e,t,n){if(50<pf)throw pf=0,$S=null,Error(Ue(185));if(e=yy(e,t),e===null)return null;uy(e,t,n),e===Eo&&(vd|=t,io===4&&Ru(e,mo));var r=Gu();t===1?Nt&8&&!(Nt&48)?NS(e):(Mi(e,n),Nt===0&&(yd(),Qa())):(!(Nt&4)||r!==98&&r!==99||(vs===null?vs=new Set([e]):vs.add(e)),Mi(e,n)),RS=e}function yy(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function Mi(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-ml(a),c=1<<s,u=i[s];if(u===-1){if(!(c&r)||c&o){u=t,su(c);var d=Un;i[s]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);a&=~c}if(r=Df(e,e===Eo?mo:0),t=Un,r===0)n!==null&&(n!==vb&&mS(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==vb&&mS(n)}t===15?(n=NS.bind(null,e),us===null?(us=[n],Ig=MC(my,u$)):us.push(n),n=vb):t===14?n=zf(99,NS.bind(null,e)):(n=G7(t),n=zf(n,$$.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function $$(e){if(Og=-1,$g=ps=0,Nt&48)throw Error(Ue(327));var t=e.callbackNode;if(Al()&&e.callbackNode!==t)return null;var n=Df(e,e===Eo?mo:0);if(n===0)return null;var r=n,o=Nt;Nt|=16;var i=M$();(Eo!==e||mo!==r)&&(yd(),_u(e,r));do try{oz();break}catch(s){D$(e,s)}while(1);if(BC(),gv.current=i,Nt=o,Lr!==null?r=0:(Eo=null,mo=0,r=io),gd&vd)_u(e,0);else if(r!==0){if(r===2&&(Nt|=64,e.hydrate&&(e.hydrate=!1,LC(e.containerInfo)),n=U4(e),n!==0&&(r=Yp(e,n))),r===1)throw t=vy,_u(e,0),Ru(e,n),Mi(e,ho()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(Ue(345));case 2:Wl(e);break;case 3:if(Ru(e,n),(n&62914560)===n&&(r=JC+500-ho(),10<r)){if(Df(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){ai(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=xA(Wl.bind(null,e),r);break}Wl(e);break;case 4:if(Ru(e,n),(n&4186112)===n)break;for(r=e.eventTimes,o=-1;0<n;){var a=31-ml(n);i=1<<a,a=r[a],a>o&&(o=a),n&=~i}if(n=o,n=ho()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*tz(n/1960))-n,10<n){e.timeoutHandle=xA(Wl.bind(null,e),n);break}Wl(e);break;case 5:Wl(e);break;default:throw Error(Ue(329))}}return Mi(e,ho()),e.callbackNode===t?$$.bind(null,e):null}function Ru(e,t){for(t&=~XC,t&=~vd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ml(t),r=1<<n;e[n]=-1,t&=~r}}function NS(e){if(Nt&48)throw Error(Ue(327));if(Al(),e===Eo&&e.expiredLanes&mo){var t=mo,n=Yp(e,t);gd&vd&&(t=Df(e,t),n=Yp(e,t))}else t=Df(e,0),n=Yp(e,t);if(e.tag!==0&&n===2&&(Nt|=64,e.hydrate&&(e.hydrate=!1,LC(e.containerInfo)),t=U4(e),t!==0&&(n=Yp(e,t))),n===1)throw n=vy,_u(e,0),Ru(e,t),Mi(e,ho()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wl(e),Mi(e,ho()),null}function nz(){if(vs!==null){var e=vs;vs=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Mi(t,ho())})}Qa()}function N$(e,t){var n=Nt;Nt|=1;try{return e(t)}finally{Nt=n,Nt===0&&(yd(),Qa())}}function L$(e,t){var n=Nt;Nt&=-2,Nt|=8;try{return e(t)}finally{Nt=n,Nt===0&&(yd(),Qa())}}function Bm(e,t){mr(AS,yc),yc|=t,gd|=t}function QC(){yc=AS.current,Kn(AS)}function _u(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,DF(n)),Lr!==null)for(n=Lr.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&ov();break;case 3:qu(),Kn(zo),Kn(go),UC();break;case 5:jC(r);break;case 4:qu();break;case 13:Kn(hr);break;case 19:Kn(hr);break;case 10:FC(r);break;case 23:case 24:QC()}n=n.return}Eo=e,Lr=yl(e.current,null),mo=yc=gd=t,io=0,vy=null,XC=vd=_h=0}function D$(e,t){do{var n=Lr;try{if(BC(),cf.current=mv,dv){for(var r=Sr.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}dv=!1}if(Hf=0,no=uo=Sr=null,uf=!1,KC.current=null,n===null||n.return===null){io=1,vy=t,Lr=null;break}e:{var i=e,a=n.return,s=n,c=t;if(t=mo,s.flags|=2048,s.firstEffect=s.lastEffect=null,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c;if(!(s.mode&2)){var d=s.alternate;d?(s.updateQueue=d.updateQueue,s.memoizedState=d.memoizedState,s.lanes=d.lanes):(s.updateQueue=null,s.memoizedState=null)}var p=(hr.current&1)!==0,f=a;do{var h;if(h=f.tag===13){var g=f.memoizedState;if(g!==null)h=g.dehydrated!==null;else{var v=f.memoizedProps;h=v.fallback===void 0?!1:v.unstable_avoidThisFallback!==!0?!0:!p}}if(h){var b=f.updateQueue;if(b===null){var y=new Set;y.add(u),f.updateQueue=y}else b.add(u);if(!(f.mode&2)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var w=al(-1,1);w.tag=2,sl(s,w)}s.lanes|=1;break e}c=void 0,s=t;var S=i.pingCache;if(S===null?(S=i.pingCache=new XF,c=new Set,S.set(u,c)):(c=S.get(u),c===void 0&&(c=new Set,S.set(u,c))),!c.has(s)){c.add(s);var k=cz.bind(null,i,u,s);u.then(k,k)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(f!==null);c=Error((Su(s.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
41
+
42
+ Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}io!==5&&(io=2),c=YC(c,s),f=a;do{switch(f.tag){case 3:i=c,f.flags|=4096,t&=-t,f.lanes|=t;var A=P$(f,i,t);_A(f,A);break e;case 1:i=c;var T=f.type,R=f.stateNode;if(!(f.flags&64)&&(typeof T.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&($a===null||!$a.has(R)))){f.flags|=4096,t&=-t,f.lanes|=t;var P=I$(f,i,t);_A(f,P);break e}}f=f.return}while(f!==null)}F$(n)}catch(_){t=_,Lr===n&&n!==null&&(Lr=n=n.return);continue}break}while(1)}function M$(){var e=gv.current;return gv.current=mv,e===null?mv:e}function Yp(e,t){var n=Nt;Nt|=16;var r=M$();Eo===e&&mo===t||_u(e,t);do try{rz();break}catch(o){D$(e,o)}while(1);if(BC(),Nt=n,gv.current=r,Lr!==null)throw Error(Ue(261));return Eo=null,mo=0,io}function rz(){for(;Lr!==null;)B$(Lr)}function oz(){for(;Lr!==null&&!FF();)B$(Lr)}function B$(e){var t=j$(e.alternate,e,yc);e.memoizedProps=e.pendingProps,t===null?F$(e):Lr=t,KC.current=null}function F$(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=KF(t),n!==null){n.flags&=2047,Lr=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=YF(n,t,yc),n!==null){Lr=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||yc&1073741824||!(n.mode&4)){for(var r=0,o=n.child;o!==null;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){Lr=t;return}Lr=t=e}while(t!==null);io===0&&(io=5)}function Wl(e){var t=Gu();return vc(99,iz.bind(null,e,t)),null}function iz(e,t){do Al();while(df!==null);if(Nt&48)throw Error(Ue(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Ue(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var a=e.eventTimes,s=e.expirationTimes;0<i;){var c=31-ml(i),u=1<<c;o[c]=0,a[c]=-1,s[c]=-1,i&=~u}if(vs!==null&&!(r&24)&&vs.has(e)&&vs.delete(e),e===Eo&&(Lr=Eo=null,mo=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(o=Nt,Nt|=32,KC.current=null,hb=Ag,a=mA(),uS(a)){if("selectionStart"in a)s={start:a.selectionStart,end:a.selectionEnd};else e:if(s=(s=a.ownerDocument)&&s.defaultView||window,(u=s.getSelection&&s.getSelection())&&u.rangeCount!==0){s=u.anchorNode,i=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{s.nodeType,c.nodeType}catch{s=null;break e}var d=0,p=-1,f=-1,h=0,g=0,v=a,b=null;t:for(;;){for(var y;v!==s||i!==0&&v.nodeType!==3||(p=d+i),v!==c||u!==0&&v.nodeType!==3||(f=d+u),v.nodeType===3&&(d+=v.nodeValue.length),(y=v.firstChild)!==null;)b=v,v=y;for(;;){if(v===a)break t;if(b===s&&++h===i&&(p=d),b===c&&++g===u&&(f=d),(y=v.nextSibling)!==null)break;v=b,b=v.parentNode}v=y}s=p===-1||f===-1?null:{start:p,end:f}}else s=null;s=s||{start:0,end:0}}else s=null;mb={focusedElem:a,selectionRange:s},Ag=!1,ff=null,Ng=!1,ut=r;do try{az()}catch(_){if(ut===null)throw Error(Ue(330));ul(ut,_),ut=ut.nextEffect}while(ut!==null);ff=null,ut=r;do try{for(a=e;ut!==null;){var w=ut.flags;if(w&16&&Of(ut.stateNode,""),w&128){var S=ut.alternate;if(S!==null){var k=S.ref;k!==null&&(typeof k=="function"?k(null):k.current=null)}}switch(w&1038){case 2:eR(ut),ut.flags&=-3;break;case 6:eR(ut),ut.flags&=-3,xb(ut.alternate,ut);break;case 1024:ut.flags&=-1025;break;case 1028:ut.flags&=-1025,xb(ut.alternate,ut);break;case 4:xb(ut.alternate,ut);break;case 8:s=ut,O$(a,s);var A=s.alternate;QA(s),A!==null&&QA(A)}ut=ut.nextEffect}}catch(_){if(ut===null)throw Error(Ue(330));ul(ut,_),ut=ut.nextEffect}while(ut!==null);if(k=mb,S=mA(),w=k.focusedElem,a=k.selectionRange,S!==w&&w&&w.ownerDocument&&X4(w.ownerDocument.documentElement,w)){for(a!==null&&uS(w)&&(S=a.start,k=a.end,k===void 0&&(k=S),"selectionStart"in w?(w.selectionStart=S,w.selectionEnd=Math.min(k,w.value.length)):(k=(S=w.ownerDocument||document)&&S.defaultView||window,k.getSelection&&(k=k.getSelection(),s=w.textContent.length,A=Math.min(a.start,s),a=a.end===void 0?A:Math.min(a.end,s),!k.extend&&A>a&&(s=a,a=A,A=s),s=hA(w,A),i=hA(w,a),s&&i&&(k.rangeCount!==1||k.anchorNode!==s.node||k.anchorOffset!==s.offset||k.focusNode!==i.node||k.focusOffset!==i.offset)&&(S=S.createRange(),S.setStart(s.node,s.offset),k.removeAllRanges(),A>a?(k.addRange(S),k.extend(i.node,i.offset)):(S.setEnd(i.node,i.offset),k.addRange(S)))))),S=[],k=w;k=k.parentNode;)k.nodeType===1&&S.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<S.length;w++)k=S[w],k.element.scrollLeft=k.left,k.element.scrollTop=k.top}Ag=!!hb,mb=hb=null,e.current=n,ut=r;do try{for(w=e;ut!==null;){var T=ut.flags;if(T&36&&ZF(w,ut.alternate,ut),T&128){S=void 0;var R=ut.ref;if(R!==null){var P=ut.stateNode;switch(ut.tag){case 5:S=P;break;default:S=P}typeof R=="function"?R(S):R.current=S}}ut=ut.nextEffect}}catch(_){if(ut===null)throw Error(Ue(330));ul(ut,_),ut=ut.nextEffect}while(ut!==null);ut=null,jF(),Nt=o}else e.current=n;if(vl)vl=!1,df=e,qp=t;else for(ut=r;ut!==null;)t=ut.nextEffect,ut.nextEffect=null,ut.flags&8&&(T=ut,T.sibling=null,T.stateNode=null),ut=t;if(r=e.pendingLanes,r===0&&($a=null),r===1?e===$S?pf++:(pf=0,$S=e):pf=0,n=n.stateNode,cc&&typeof cc.onCommitFiberRoot=="function")try{cc.onCommitFiberRoot(DC,n,void 0,(n.current.flags&64)===64)}catch{}if(Mi(e,ho()),vv)throw vv=!1,e=PS,PS=null,e;return Nt&8||Qa(),null}function az(){for(;ut!==null;){var e=ut.alternate;Ng||ff===null||(ut.flags&8?eA(ut,ff)&&(Ng=!0):ut.tag===13&&ez(e,ut)&&eA(ut,ff)&&(Ng=!0));var t=ut.flags;t&256&&QF(e,ut),!(t&512)||vl||(vl=!0,zf(97,function(){return Al(),null})),ut=ut.nextEffect}}function Al(){if(qp!==90){var e=97<qp?97:qp;return qp=90,vc(e,lz)}return!1}function sz(e,t){IS.push(t,e),vl||(vl=!0,zf(97,function(){return Al(),null}))}function z$(e,t){OS.push(t,e),vl||(vl=!0,zf(97,function(){return Al(),null}))}function lz(){if(df===null)return!1;var e=df;if(df=null,Nt&48)throw Error(Ue(331));var t=Nt;Nt|=32;var n=OS;OS=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],a=o.destroy;if(o.destroy=void 0,typeof a=="function")try{a()}catch(c){if(i===null)throw Error(Ue(330));ul(i,c)}}for(n=IS,IS=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var s=o.create;o.destroy=s()}catch(c){if(i===null)throw Error(Ue(330));ul(i,c)}}for(s=e.current.firstEffect;s!==null;)e=s.nextEffect,s.nextEffect=null,s.flags&8&&(s.sibling=null,s.stateNode=null),s=e;return Nt=t,Qa(),!0}function nR(e,t,n){t=YC(n,t),t=P$(e,t,1),sl(e,t),t=ai(),e=yy(e,1),e!==null&&(uy(e,1,t),Mi(e,t))}function ul(e,t){if(e.tag===3)nR(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){nR(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($a===null||!$a.has(r))){e=YC(t,e);var o=I$(n,e,1);if(sl(n,o),o=ai(),n=yy(n,1),n!==null)uy(n,1,o),Mi(n,o);else if(typeof r.componentDidCatch=="function"&&($a===null||!$a.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function cz(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ai(),e.pingedLanes|=e.suspendedLanes&n,Eo===e&&(mo&n)===n&&(io===4||io===3&&(mo&62914560)===mo&&500>ho()-JC?_u(e,0):XC|=n),Mi(e,t)}function uz(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(ps===0&&(ps=gd),t=lu(62914560&~ps),t===0&&(t=4194304)):t=Gu()===99?1:2:t=1),n=ai(),e=yy(e,t),e!==null&&(uy(e,t,n),Mi(e,n))}var j$;j$=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||zo.current)aa=!0;else if(n&r)aa=!!(e.flags&16384);else{switch(aa=!1,t.tag){case 3:UA(t),bb();break;case 5:$A(t);break;case 1:jo(t.type)&&Pg(t);break;case 4:yS(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;mr(iv,o._currentValue),o._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?WA(e,t,n):(mr(hr,hr.current&1),t=gs(e,t,n),t!==null?t.sibling:null);mr(hr,hr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return YA(e,t,n);t.flags|=64}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),mr(hr,hr.current),r)break;return null;case 23:case 24:return t.lanes=0,wb(e,t,n)}return gs(e,t,n)}else aa=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=Vu(t,go.current),ku(t,n),o=HC(null,t,r,e,o,n),t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,jo(r)){var i=!0;Pg(t)}else i=!1;t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,zC(t);var a=r.getDerivedStateFromProps;typeof a=="function"&&lv(t,r,a,e),o.updater=gy,t.stateNode=o,o._reactInternals=t,vS(t,r,e,n),t=xS(null,t,r,!0,i,n)}else t.tag=0,Bo(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=o._init,o=i(o._payload),t.type=o,i=t.tag=pz(o),e=na(o,e),i){case 0:t=SS(null,t,o,e,n);break e;case 1:t=jA(null,t,o,e,n);break e;case 11:t=FA(null,t,o,e,n);break e;case 14:t=zA(null,t,o,na(o.type,e),r,n);break e}throw Error(Ue(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),SS(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),jA(e,t,r,o,n);case 3:if(UA(t),r=t.updateQueue,e===null||r===null)throw Error(Ue(282));if(r=t.pendingProps,o=t.memoizedState,o=o!==null?o.element:null,p$(e,t),jf(t,r,null,n),r=t.memoizedState.element,r===o)bb(),t=gs(e,t,n);else{if(o=t.stateNode,(i=o.hydrate)&&(Js=Tu(t.stateNode.containerInfo.firstChild),ms=t,i=Fa=!0),i){if(e=o.mutableSourceEagerHydrationData,e!=null)for(o=0;o<e.length;o+=2)i=e[o],i._workInProgressVersionPrimary=e[o+1],Au.push(i);for(n=g$(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Bo(e,t,r,n),bb();t=t.child}return t;case 5:return $A(t),e===null&&bS(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,fS(r,o)?a=null:i!==null&&fS(r,i)&&(t.flags|=16),k$(e,t),Bo(e,t,a,n),t.child;case 6:return e===null&&bS(t),null;case 13:return WA(e,t,n);case 4:return yS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cv(t,null,r,n):Bo(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),FA(e,t,r,o,n);case 7:return Bo(e,t,t.pendingProps,n),t.child;case 8:return Bo(e,t,t.pendingProps.children,n),t.child;case 12:return Bo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value;var s=t.type._context;if(mr(iv,s._currentValue),s._currentValue=i,a!==null)if(s=a.value,i=Ei(s,i)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(s,i):1073741823)|0,i===0){if(a.children===o.children&&!zo.current){t=gs(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var c=s.dependencies;if(c!==null){a=s.child;for(var u=c.firstContext;u!==null;){if(u.context===r&&u.observedBits&i){s.tag===1&&(u=al(-1,n&-n),u.tag=2,sl(s,u)),s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),d$(s.return,n),c.lanes|=n;break}u=u.next}}else a=s.tag===10&&s.type===t.type?null:s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Bo(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps,r=i.children,ku(t,n),o=Di(o,i.unstable_observedBits),r=r(o),t.flags|=1,Bo(e,t,r,n),t.child;case 14:return o=t.type,i=na(o,t.pendingProps),i=na(o.type,i),zA(e,t,o,i,r,n);case 15:return T$(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:na(r,o),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,jo(r)?(e=!0,Pg(t)):e=!1,ku(t,n),h$(t,r,o),vS(t,r,o,n),xS(null,t,r,!0,e,n);case 19:return YA(e,t,n);case 23:return wb(e,t,n);case 24:return wb(e,t,n)}throw Error(Ue(156,t.tag))};function dz(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ti(e,t,n,r){return new dz(e,t,n,r)}function ZC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pz(e){if(typeof e=="function")return ZC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sy)return 11;if(e===ly)return 14}return 2}function yl(e,t){var n=e.alternate;return n===null?(n=Ti(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lg(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")ZC(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Gs:return Pu(n.children,o,i,t);case v4:a=8,o|=16;break;case mC:a=8,o|=1;break;case tf:return e=Ti(12,n,t,o|8),e.elementType=tf,e.type=tf,e.lanes=i,e;case nf:return e=Ti(13,n,t,o),e.type=nf,e.elementType=nf,e.lanes=i,e;case Xg:return e=Ti(19,n,t,o),e.elementType=Xg,e.lanes=i,e;case SC:return eE(n,o,i,t);case Kw:return e=Ti(24,n,t,o),e.elementType=Kw,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gC:a=10;break e;case vC:a=9;break e;case sy:a=11;break e;case ly:a=14;break e;case yC:a=16,r=null;break e;case bC:a=22;break e}throw Error(Ue(130,e==null?e:typeof e,""))}return t=Ti(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Pu(e,t,n,r){return e=Ti(7,e,r,t),e.lanes=n,e}function eE(e,t,n,r){return e=Ti(23,e,r,t),e.elementType=SC,e.lanes=n,e}function Cb(e,t,n){return e=Ti(6,e,null,t),e.lanes=n,e}function Eb(e,t,n){return t=Ti(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fz(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=sb(0),this.expirationTimes=sb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sb(0),this.mutableSourceEagerHydrationData=null}function hz(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:tc,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function yv(e,t,n,r){var o=t.current,i=ai(),a=ll(o);e:if(n){n=n._reactInternals;t:{if(Pc(n)!==n||n.tag!==1)throw Error(Ue(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(jo(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(s!==null);throw Error(Ue(171))}if(n.tag===1){var c=n.type;if(jo(c)){n=o$(n,c,s);break e}}n=s}else n=gl;return t.context===null?t.context=n:t.pendingContext=n,t=al(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),sl(o,t),cl(o,a,i),a}function Tb(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function rR(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function tE(e,t){rR(e,t),(e=e.alternate)&&rR(e,t)}function mz(){return null}function nE(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new fz(e,t,n!=null&&n.hydrate===!0),t=Ti(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,zC(t),e[md]=n.current,Z4(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var o=t._getVersion;o=o(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}nE.prototype.render=function(e){yv(e,this._internalRoot,null,null)};nE.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;yv(null,e,null,function(){t[md]=null})};function Ph(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gz(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new nE(e,0,t?{hydrate:!0}:void 0)}function by(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if(typeof o=="function"){var s=o;o=function(){var u=Tb(a);s.call(u)}}yv(t,a,e,o)}else{if(i=n._reactRootContainer=gz(n,r),a=i._internalRoot,typeof o=="function"){var c=o;o=function(){var u=Tb(a);c.call(u)}}L$(function(){yv(t,a,e,o)})}return Tb(a)}O4=function(e){if(e.tag===13){var t=ai();cl(e,4,t),tE(e,4)}};kC=function(e){if(e.tag===13){var t=ai();cl(e,67108864,t),tE(e,67108864)}};$4=function(e){if(e.tag===13){var t=ai(),n=ll(e);cl(e,n,t),tE(e,n)}};N4=function(e,t){return t()};iS=function(e,t,n){switch(t){case"input":if(Jw(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=hy(r);if(!o)throw Error(Ue(90));b4(r),Jw(r,o)}}}break;case"textarea":S4(e,n);break;case"select":t=n.value,t!=null&&xu(e,!!n.multiple,t,!1)}};CC=N$;R4=function(e,t,n,r,o){var i=Nt;Nt|=4;try{return vc(98,e.bind(null,t,n,r,o))}finally{Nt=i,Nt===0&&(yd(),Qa())}};EC=function(){!(Nt&49)&&(nz(),Al())};_4=function(e,t){var n=Nt;Nt|=2;try{return e(t)}finally{Nt=n,Nt===0&&(yd(),Qa())}};function U$(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ph(t))throw Error(Ue(200));return hz(e,t,null,n)}var vz={Events:[Ah,mu,hy,k4,A4,Al,{current:!1}]},fp={findFiberByHostInstance:rc,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},yz={bundleType:fp.bundleType,version:fp.version,rendererPackageName:fp.rendererPackageName,rendererConfig:fp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_c.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=I4(e),e===null?null:e.stateNode},findFiberByHostInstance:fp.findFiberByHostInstance||mz,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fm.isDisabled&&Fm.supportsFiber)try{DC=Fm.inject(yz),cc=Fm}catch{}}qi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vz;qi.createPortal=U$;qi.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Ue(188)):Error(Ue(268,Object.keys(e)));return e=I4(t),e=e===null?null:e.stateNode,e};qi.flushSync=function(e,t){var n=Nt;if(n&48)return e(t);Nt|=1;try{if(e)return vc(99,e.bind(null,t))}finally{Nt=n,Qa()}};qi.hydrate=function(e,t,n){if(!Ph(t))throw Error(Ue(200));return by(null,e,t,!0,n)};qi.render=function(e,t,n){if(!Ph(t))throw Error(Ue(200));return by(null,e,t,!1,n)};qi.unmountComponentAtNode=function(e){if(!Ph(e))throw Error(Ue(40));return e._reactRootContainer?(L$(function(){by(null,null,e,!1,function(){e._reactRootContainer=null,e[md]=null})}),!0):!1};qi.unstable_batchedUpdates=N$;qi.unstable_createPortal=function(e,t){return U$(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};qi.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ph(n))throw Error(Ue(200));if(e==null||e._reactInternals===void 0)throw Error(Ue(38));return by(e,t,n,!1,r)};qi.version="17.0.2";function W$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(W$)}catch(e){console.error(e)}}W$(),f4.exports=qi;var wy=f4.exports;const Ai=Yr(wy);/**
43
+ * @remix-run/router v1.7.1
44
+ *
45
+ * Copyright (c) Remix Software Inc.
46
+ *
47
+ * This source code is licensed under the MIT license found in the
48
+ * LICENSE.md file in the root directory of this source tree.
49
+ *
50
+ * @license MIT
51
+ */function Vf(){return Vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vf.apply(this,arguments)}var Qs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Qs||(Qs={}));const oR="popstate";function bz(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return LS("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:bv(o)}return Sz(t,n,null,e)}function xr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function rE(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wz(){return Math.random().toString(36).substr(2,8)}function iR(e,t){return{usr:e.state,key:e.key,idx:t}}function LS(e,t,n,r){return n===void 0&&(n=null),Vf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?bd(t):t,{state:n,key:t&&t.key||r||wz()})}function bv(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function bd(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Sz(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Qs.Pop,c=null,u=d();u==null&&(u=0,a.replaceState(Vf({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function p(){s=Qs.Pop;let b=d(),y=b==null?null:b-u;u=b,c&&c({action:s,location:v.location,delta:y})}function f(b,y){s=Qs.Push;let w=LS(v.location,b,y);n&&n(w,b),u=d()+1;let S=iR(w,u),k=v.createHref(w);try{a.pushState(S,"",k)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;o.location.assign(k)}i&&c&&c({action:s,location:v.location,delta:1})}function h(b,y){s=Qs.Replace;let w=LS(v.location,b,y);n&&n(w,b),u=d();let S=iR(w,u),k=v.createHref(w);a.replaceState(S,"",k),i&&c&&c({action:s,location:v.location,delta:0})}function g(b){let y=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof b=="string"?b:bv(b);return xr(y,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,y)}let v={get action(){return s},get location(){return e(o,a)},listen(b){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(oR,p),c=b,()=>{o.removeEventListener(oR,p),c=null}},createHref(b){return t(o,b)},createURL:g,encodeLocation(b){let y=g(b);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(b){return a.go(b)}};return v}var aR;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(aR||(aR={}));function xz(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?bd(t):t,o=oE(r.pathname||"/",n);if(o==null)return null;let i=H$(e);Cz(i);let a=null;for(let s=0;a==null&&s<i.length;++s)a=Oz(i[s],Nz(o));return a}function H$(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,s)=>{let c={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(xr(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=dl([r,c.relativePath]),d=n.concat(c);i.children&&i.children.length>0&&(xr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),H$(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Pz(u,i.index),routesMeta:d})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let c of V$(i.path))o(i,a,c)}),t}function V$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=V$(r.join("/")),s=[];return s.push(...a.map(c=>c===""?i:[i,c].join("/"))),o&&s.push(...a),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function Cz(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Iz(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Ez=/^:\w+$/,Tz=3,kz=2,Az=1,Rz=10,_z=-2,sR=e=>e==="*";function Pz(e,t){let n=e.split("/"),r=n.length;return n.some(sR)&&(r+=_z),t&&(r+=kz),n.filter(o=>!sR(o)).reduce((o,i)=>o+(Ez.test(i)?Tz:i===""?Az:Rz),r)}function Iz(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Oz(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a<n.length;++a){let s=n[a],c=a===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",d=G$({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},u);if(!d)return null;Object.assign(r,d.params);let p=s.route;i.push({params:r,pathname:dl([o,d.pathname]),pathnameBase:Bz(dl([o,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(o=dl([o,d.pathnameBase]))}return i}function G$(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=$z(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,d,p)=>{if(d==="*"){let f=s[p]||"";a=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}return u[d]=Lz(s[p]||"",d),u},{}),pathname:i,pathnameBase:a,pattern:e}}function $z(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),rE(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Nz(e){try{return decodeURI(e)}catch(t){return rE(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Lz(e,t){try{return decodeURIComponent(e)}catch(n){return rE(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function oE(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Dz(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?bd(e):e;return{pathname:n?n.startsWith("/")?n:Mz(n,t):t,search:Fz(r),hash:zz(o)}}function Mz(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function kb(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function iE(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function aE(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=bd(e):(o=Vf({},e),xr(!o.pathname||!o.pathname.includes("?"),kb("?","pathname","search",o)),xr(!o.pathname||!o.pathname.includes("#"),kb("#","pathname","hash",o)),xr(!o.search||!o.search.includes("#"),kb("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(r||a==null)s=n;else{let p=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),p-=1;o.pathname=f.join("/")}s=p>=0?t[p]:"/"}let c=Dz(o,s),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const dl=e=>e.join("/").replace(/\/\/+/g,"/"),Bz=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Fz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,zz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function jz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const q$=["post","put","patch","delete"];new Set(q$);const Uz=["get",...q$];new Set(Uz);/**
52
+ * React Router v6.14.1
53
+ *
54
+ * Copyright (c) Remix Software Inc.
55
+ *
56
+ * This source code is licensed under the MIT license found in the
57
+ * LICENSE.md file in the root directory of this source tree.
58
+ *
59
+ * @license MIT
60
+ */function wv(){return wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wv.apply(this,arguments)}const sE=m.createContext(null),Y$=m.createContext(null),Oc=m.createContext(null),Sy=m.createContext(null),Ps=m.createContext({outlet:null,matches:[],isDataRoute:!1}),K$=m.createContext(null);function Wz(e,t){let{relative:n}=t===void 0?{}:t;wd()||xr(!1);let{basename:r,navigator:o}=m.useContext(Oc),{hash:i,pathname:a,search:s}=lE(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:dl([r,a])),o.createHref({pathname:c,search:s,hash:i})}function wd(){return m.useContext(Sy)!=null}function Ro(){return wd()||xr(!1),m.useContext(Sy).location}function X$(e){m.useContext(Oc).static||m.useLayoutEffect(e)}function pt(){let{isDataRoute:e}=m.useContext(Ps);return e?nj():Hz()}function Hz(){wd()||xr(!1);let e=m.useContext(sE),{basename:t,navigator:n}=m.useContext(Oc),{matches:r}=m.useContext(Ps),{pathname:o}=Ro(),i=JSON.stringify(iE(r).map(c=>c.pathnameBase)),a=m.useRef(!1);return X$(()=>{a.current=!0}),m.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){n.go(c);return}let d=aE(c,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:dl([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,o,e])}function J$(){let{matches:e}=m.useContext(Ps),t=e[e.length-1];return t?t.params:{}}function lE(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=m.useContext(Ps),{pathname:o}=Ro(),i=JSON.stringify(iE(r).map(a=>a.pathnameBase));return m.useMemo(()=>aE(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Vz(e,t){return Gz(e,t)}function Gz(e,t,n){wd()||xr(!1);let{navigator:r}=m.useContext(Oc),{matches:o}=m.useContext(Ps),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let c=Ro(),u;if(t){var d;let v=typeof t=="string"?bd(t):t;s==="/"||(d=v.pathname)!=null&&d.startsWith(s)||xr(!1),u=v}else u=c;let p=u.pathname||"/",f=s==="/"?p:p.slice(s.length)||"/",h=xz(e,{pathname:f}),g=Jz(h&&h.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:dl([s,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:dl([s,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n);return t&&g?m.createElement(Sy.Provider,{value:{location:wv({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Qs.Pop}},g):g}function qz(){let e=tj(),t=jz(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,i)}const Yz=m.createElement(qz,null);class Kz extends m.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?m.createElement(Ps.Provider,{value:this.props.routeContext},m.createElement(K$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Xz(e){let{routeContext:t,match:n,children:r}=e,o=m.useContext(sE);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(Ps.Provider,{value:t},r)}function Jz(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let s=i.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id]));s>=0||xr(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,c,u)=>{let d=c.route.id?a==null?void 0:a[c.route.id]:null,p=null;n&&(p=c.route.errorElement||Yz);let f=t.concat(i.slice(0,u+1)),h=()=>{let g;return d?g=p:c.route.Component?g=m.createElement(c.route.Component,null):c.route.element?g=c.route.element:g=s,m.createElement(Xz,{match:c,routeContext:{outlet:s,matches:f,isDataRoute:n!=null},children:g})};return n&&(c.route.ErrorBoundary||c.route.errorElement||u===0)?m.createElement(Kz,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var DS;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(DS||(DS={}));var Gf;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(Gf||(Gf={}));function Qz(e){let t=m.useContext(sE);return t||xr(!1),t}function Zz(e){let t=m.useContext(Y$);return t||xr(!1),t}function ej(e){let t=m.useContext(Ps);return t||xr(!1),t}function Q$(e){let t=ej(),n=t.matches[t.matches.length-1];return n.route.id||xr(!1),n.route.id}function tj(){var e;let t=m.useContext(K$),n=Zz(Gf.UseRouteError),r=Q$(Gf.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function nj(){let{router:e}=Qz(DS.UseNavigateStable),t=Q$(Gf.UseNavigateStable),n=m.useRef(!1);return X$(()=>{n.current=!0}),m.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,wv({fromRouteId:t},i)))},[e,t])}function $c(e){let{to:t,replace:n,state:r,relative:o}=e;wd()||xr(!1);let{matches:i}=m.useContext(Ps),{pathname:a}=Ro(),s=pt(),c=aE(t,iE(i).map(d=>d.pathnameBase),a,o==="path"),u=JSON.stringify(c);return m.useEffect(()=>s(JSON.parse(u),{replace:n,state:r,relative:o}),[s,u,o,n,r]),null}function hf(e){xr(!1)}function rj(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Qs.Pop,navigator:i,static:a=!1}=e;wd()&&xr(!1);let s=t.replace(/^\/*/,"/"),c=m.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof r=="string"&&(r=bd(r));let{pathname:u="/",search:d="",hash:p="",state:f=null,key:h="default"}=r,g=m.useMemo(()=>{let v=oE(u,s);return v==null?null:{location:{pathname:v,search:d,hash:p,state:f,key:h},navigationType:o}},[s,u,d,p,f,h,o]);return g==null?null:m.createElement(Oc.Provider,{value:c},m.createElement(Sy.Provider,{children:n,value:g}))}function Z$(e){let{children:t,location:n}=e;return Vz(MS(t),n)}var lR;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(lR||(lR={}));new Promise(()=>{});function MS(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,o)=>{if(!m.isValidElement(r))return;let i=[...t,o];if(r.type===m.Fragment){n.push.apply(n,MS(r.props.children,i));return}r.type!==hf&&xr(!1),!r.props.index||!r.props.children||xr(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=MS(r.props.children,i)),n.push(a)}),n}/**
61
+ * React Router DOM v6.14.1
62
+ *
63
+ * Copyright (c) Remix Software Inc.
64
+ *
65
+ * This source code is licensed under the MIT license found in the
66
+ * LICENSE.md file in the root directory of this source tree.
67
+ *
68
+ * @license MIT
69
+ */function Sv(){return Sv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sv.apply(this,arguments)}function eN(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function oj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ij(e,t){return e.button===0&&(!t||t==="_self")&&!oj(e)}function BS(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function aj(e,t){let n=BS(e);if(t)for(let r of t.keys())n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)});return n}const sj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],lj=["aria-current","caseSensitive","className","end","style","to","children"],cj="startTransition",cR=Pf[cj];function uj(e){let{basename:t,children:n,future:r,window:o}=e,i=m.useRef();i.current==null&&(i.current=bz({window:o,v5Compat:!0}));let a=i.current,[s,c]=m.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=m.useCallback(p=>{u&&cR?cR(()=>c(p)):c(p)},[c,u]);return m.useLayoutEffect(()=>a.listen(d),[a,d]),m.createElement(rj,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a})}const dj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,an=m.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:c,to:u,preventScrollReset:d}=t,p=eN(t,sj),{basename:f}=m.useContext(Oc),h,g=!1;if(typeof u=="string"&&pj.test(u)&&(h=u,dj))try{let w=new URL(window.location.href),S=u.startsWith("//")?new URL(w.protocol+u):new URL(u),k=oE(S.pathname,f);S.origin===w.origin&&k!=null?u=k+S.search+S.hash:g=!0}catch{}let v=Wz(u,{relative:o}),b=fj(u,{replace:a,state:s,target:c,preventScrollReset:d,relative:o});function y(w){r&&r(w),w.defaultPrevented||b(w)}return m.createElement("a",Sv({},p,{href:h||v,onClick:g||i?r:y,ref:n,target:c}))}),vBe=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:c,children:u}=t,d=eN(t,lj),p=lE(c,{relative:d.relative}),f=Ro(),h=m.useContext(Y$),{navigator:g}=m.useContext(Oc),v=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,b=f.pathname,y=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;o||(b=b.toLowerCase(),y=y?y.toLowerCase():null,v=v.toLowerCase());let w=b===v||!a&&b.startsWith(v)&&b.charAt(v.length)==="/",S=y!=null&&(y===v||!a&&y.startsWith(v)&&y.charAt(v.length)==="/"),k=w?r:void 0,A;typeof i=="function"?A=i({isActive:w,isPending:S}):A=[i,w?"active":null,S?"pending":null].filter(Boolean).join(" ");let T=typeof s=="function"?s({isActive:w,isPending:S}):s;return m.createElement(an,Sv({},d,{"aria-current":k,className:A,ref:n,style:T,to:c}),typeof u=="function"?u({isActive:w,isPending:S}):u)});var uR;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(uR||(uR={}));var dR;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(dR||(dR={}));function fj(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=pt(),c=Ro(),u=lE(e,{relative:a});return m.useCallback(d=>{if(ij(d,n)){d.preventDefault();let p=r!==void 0?r:bv(c)===bv(u);s(e,{replace:p,state:o,preventScrollReset:i,relative:a})}},[c,s,u,r,o,n,e,i,a])}function Sd(e){let t=m.useRef(BS(e)),n=m.useRef(!1),r=Ro(),o=m.useMemo(()=>aj(r.search,n.current?null:t.current),[r.search]),i=pt(),a=m.useCallback((s,c)=>{const u=BS(typeof s=="function"?s(o):s);n.current=!0,i("?"+u,c)},[i,o]);return[o,a]}const hj={black:"#000",white:"#fff"},qf=hj,mj={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Kc=mj,gj={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Xc=gj,vj={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Jc=vj,yj={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Qc=yj,bj={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Zc=bj,wj={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},hp=wj,Sj={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},xj=Sj;function Iu(){return Iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iu.apply(this,arguments)}function Ql(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function tN(e){if(!Ql(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=tN(e[n])}),t}function si(e,t,n={clone:!0}){const r=n.clone?Iu({},e):e;return Ql(e)&&Ql(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ql(t[o])&&o in e&&Ql(e[o])?r[o]=si(e[o],t[o],n):n.clone?r[o]=Ql(t[o])?tN(t[o]):t[o]:r[o]=t[o])}),r}var nN={exports:{}},Cj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ej=Cj,Tj=Ej;function rN(){}function oN(){}oN.resetWarningCache=rN;var kj=function(){function e(r,o,i,a,s,c){if(c!==Tj){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:oN,resetWarningCache:rN};return n.PropTypes=n,n};nN.exports=kj();var Aj=nN.exports;const fe=Yr(Aj);function bl(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var iN={exports:{}},$n={};/**
70
+ * @license React
71
+ * react-is.production.min.js
72
+ *
73
+ * Copyright (c) Facebook, Inc. and its affiliates.
74
+ *
75
+ * This source code is licensed under the MIT license found in the
76
+ * LICENSE file in the root directory of this source tree.
77
+ */var cE=Symbol.for("react.element"),uE=Symbol.for("react.portal"),xy=Symbol.for("react.fragment"),Cy=Symbol.for("react.strict_mode"),Ey=Symbol.for("react.profiler"),Ty=Symbol.for("react.provider"),ky=Symbol.for("react.context"),Rj=Symbol.for("react.server_context"),Ay=Symbol.for("react.forward_ref"),Ry=Symbol.for("react.suspense"),_y=Symbol.for("react.suspense_list"),Py=Symbol.for("react.memo"),Iy=Symbol.for("react.lazy"),_j=Symbol.for("react.offscreen"),aN;aN=Symbol.for("react.module.reference");function Yi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cE:switch(e=e.type,e){case xy:case Ey:case Cy:case Ry:case _y:return e;default:switch(e=e&&e.$$typeof,e){case Rj:case ky:case Ay:case Iy:case Py:case Ty:return e;default:return t}}case uE:return t}}}$n.ContextConsumer=ky;$n.ContextProvider=Ty;$n.Element=cE;$n.ForwardRef=Ay;$n.Fragment=xy;$n.Lazy=Iy;$n.Memo=Py;$n.Portal=uE;$n.Profiler=Ey;$n.StrictMode=Cy;$n.Suspense=Ry;$n.SuspenseList=_y;$n.isAsyncMode=function(){return!1};$n.isConcurrentMode=function(){return!1};$n.isContextConsumer=function(e){return Yi(e)===ky};$n.isContextProvider=function(e){return Yi(e)===Ty};$n.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cE};$n.isForwardRef=function(e){return Yi(e)===Ay};$n.isFragment=function(e){return Yi(e)===xy};$n.isLazy=function(e){return Yi(e)===Iy};$n.isMemo=function(e){return Yi(e)===Py};$n.isPortal=function(e){return Yi(e)===uE};$n.isProfiler=function(e){return Yi(e)===Ey};$n.isStrictMode=function(e){return Yi(e)===Cy};$n.isSuspense=function(e){return Yi(e)===Ry};$n.isSuspenseList=function(e){return Yi(e)===_y};$n.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===xy||e===Ey||e===Cy||e===Ry||e===_y||e===_j||typeof e=="object"&&e!==null&&(e.$$typeof===Iy||e.$$typeof===Py||e.$$typeof===Ty||e.$$typeof===ky||e.$$typeof===Ay||e.$$typeof===aN||e.getModuleId!==void 0)};$n.typeOf=Yi;iN.exports=$n;var Pj=iN.exports;const Ij=Yr(Pj);function de(e){if(typeof e!="string")throw new Error(bl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function xv(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function bc(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Oj(e,t){return()=>null}function mf(e,t){return m.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Zn(e){return e&&e.ownerDocument||document}function Bi(e){return Zn(e).defaultView||window}function $j(e,t){return()=>null}function Yf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Nj=typeof window<"u"?m.useLayoutEffect:m.useEffect,Ho=Nj;let pR=0;function Lj(e){const[t,n]=m.useState(e),r=e||t;return m.useEffect(()=>{t==null&&(pR+=1,n(`mui-${pR}`))},[t]),r}const fR=Pf["useId"];function xd(e){if(fR!==void 0){const t=fR();return e??t}return Lj(e)}function Dj(e,t,n,r,o){return null}function la({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=m.useRef(e!==void 0),[i,a]=m.useState(t),s=o?e:i,c=m.useCallback(u=>{o||a(u)},[]);return[s,c]}function Dr(e){const t=m.useRef(e);return Ho(()=>{t.current=e}),m.useCallback((...n)=>(0,t.current)(...n),[])}function On(...e){return m.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Yf(n,t)})},e)}let Oy=!0,FS=!1,hR;const Mj={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Bj(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Mj[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Fj(e){e.metaKey||e.altKey||e.ctrlKey||(Oy=!0)}function Ab(){Oy=!1}function zj(){this.visibilityState==="hidden"&&FS&&(Oy=!0)}function jj(e){e.addEventListener("keydown",Fj,!0),e.addEventListener("mousedown",Ab,!0),e.addEventListener("pointerdown",Ab,!0),e.addEventListener("touchstart",Ab,!0),e.addEventListener("visibilitychange",zj,!0)}function Uj(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Oy||Bj(t)}function Ih(){const e=m.useCallback(o=>{o!=null&&jj(o.ownerDocument)},[]),t=m.useRef(!1);function n(){return t.current?(FS=!0,window.clearTimeout(hR),hR=window.setTimeout(()=>{FS=!1},100),t.current=!1,!0):!1}function r(o){return Uj(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function sN(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let eu;function lN(){if(eu)return eu;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),eu="reverse",e.scrollLeft>0?eu="default":(e.scrollLeft=1,e.scrollLeft===0&&(eu="negative")),document.body.removeChild(e),eu}function mR(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(lN()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Wj=e=>{const t=m.useRef({});return m.useEffect(()=>{t.current=e}),t.current},Hj=Wj,Vj={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Gj=Vj;function dE(e,t){const n=Iu({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Iu({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=Iu({},i),Object.keys(o).forEach(a=>{n[r][a]=dE(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function tt(e,t,n){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>(a&&(i.push(t(a)),n&&n[a]&&i.push(n[a])),i),[]).join(" ")}),r}const gR=e=>e,qj=()=>{let e=gR;return{configure(t){e=t},generate(t){return e(t)},reset(){e=gR}}},Yj=qj(),pE=Yj,Kj={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Ze(e,t,n="Mui"){const r=Kj[t];return r?`${n}-${r}`:`${pE.generate(e)}-${t}`}function nt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ze(e,o,n)}),r}function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(this,arguments)}function Fe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Cv(){return Cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cv.apply(this,arguments)}function cN(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Xj=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Jj=cN(function(e){return Xj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Qj(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Zj(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var eU=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Zj(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Qj(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),lo="-ms-",Ev="-moz-",wn="-webkit-",uN="comm",fE="rule",hE="decl",tU="@import",dN="@keyframes",nU="@layer",rU=Math.abs,$y=String.fromCharCode,oU=Object.assign;function iU(e,t){return ro(e,0)^45?(((t<<2^ro(e,0))<<2^ro(e,1))<<2^ro(e,2))<<2^ro(e,3):0}function pN(e){return e.trim()}function aU(e,t){return(e=t.exec(e))?e[0]:e}function xn(e,t,n){return e.replace(t,n)}function zS(e,t){return e.indexOf(t)}function ro(e,t){return e.charCodeAt(t)|0}function Kf(e,t,n){return e.slice(t,n)}function Ca(e){return e.length}function mE(e){return e.length}function zm(e,t){return t.push(e),e}function sU(e,t){return e.map(t).join("")}var Ny=1,Yu=1,fN=0,Vo=0,Rr=0,Cd="";function Ly(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ny,column:Yu,length:a,return:""}}function mp(e,t){return oU(Ly("",null,null,"",null,null,0),e,{length:-e.length},t)}function lU(){return Rr}function cU(){return Rr=Vo>0?ro(Cd,--Vo):0,Yu--,Rr===10&&(Yu=1,Ny--),Rr}function li(){return Rr=Vo<fN?ro(Cd,Vo++):0,Yu++,Rr===10&&(Yu=1,Ny++),Rr}function za(){return ro(Cd,Vo)}function Dg(){return Vo}function Oh(e,t){return Kf(Cd,e,t)}function Xf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function hN(e){return Ny=Yu=1,fN=Ca(Cd=e),Vo=0,[]}function mN(e){return Cd="",e}function Mg(e){return pN(Oh(Vo-1,jS(e===91?e+2:e===40?e+1:e)))}function uU(e){for(;(Rr=za())&&Rr<33;)li();return Xf(e)>2||Xf(Rr)>3?"":" "}function dU(e,t){for(;--t&&li()&&!(Rr<48||Rr>102||Rr>57&&Rr<65||Rr>70&&Rr<97););return Oh(e,Dg()+(t<6&&za()==32&&li()==32))}function jS(e){for(;li();)switch(Rr){case e:return Vo;case 34:case 39:e!==34&&e!==39&&jS(Rr);break;case 40:e===41&&jS(e);break;case 92:li();break}return Vo}function pU(e,t){for(;li()&&e+Rr!==47+10;)if(e+Rr===42+42&&za()===47)break;return"/*"+Oh(t,Vo-1)+"*"+$y(e===47?e:li())}function fU(e){for(;!Xf(za());)li();return Oh(e,Vo)}function hU(e){return mN(Bg("",null,null,null,[""],e=hN(e),0,[0],e))}function Bg(e,t,n,r,o,i,a,s,c){for(var u=0,d=0,p=a,f=0,h=0,g=0,v=1,b=1,y=1,w=0,S="",k=o,A=i,T=r,R=S;b;)switch(g=w,w=li()){case 40:if(g!=108&&ro(R,p-1)==58){zS(R+=xn(Mg(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:R+=Mg(w);break;case 9:case 10:case 13:case 32:R+=uU(g);break;case 92:R+=dU(Dg()-1,7);continue;case 47:switch(za()){case 42:case 47:zm(mU(pU(li(),Dg()),t,n),c);break;default:R+="/"}break;case 123*v:s[u++]=Ca(R)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:y==-1&&(R=xn(R,/\f/g,"")),h>0&&Ca(R)-p&&zm(h>32?yR(R+";",r,n,p-1):yR(xn(R," ","")+";",r,n,p-2),c);break;case 59:R+=";";default:if(zm(T=vR(R,t,n,u,d,o,s,S,k=[],A=[],p),i),w===123)if(d===0)Bg(R,t,T,T,k,i,p,s,A);else switch(f===99&&ro(R,3)===110?100:f){case 100:case 108:case 109:case 115:Bg(e,T,T,r&&zm(vR(e,T,T,0,0,o,s,S,o,k=[],p),A),o,A,p,s,r?k:A);break;default:Bg(R,T,T,T,[""],A,0,s,A)}}u=d=h=0,v=y=1,S=R="",p=a;break;case 58:p=1+Ca(R),h=g;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&cU()==125)continue}switch(R+=$y(w),w*v){case 38:y=d>0?1:(R+="\f",-1);break;case 44:s[u++]=(Ca(R)-1)*y,y=1;break;case 64:za()===45&&(R+=Mg(li())),f=za(),d=p=Ca(S=R+=fU(Dg())),w++;break;case 45:g===45&&Ca(R)==2&&(v=0)}}return i}function vR(e,t,n,r,o,i,a,s,c,u,d){for(var p=o-1,f=o===0?i:[""],h=mE(f),g=0,v=0,b=0;g<r;++g)for(var y=0,w=Kf(e,p+1,p=rU(v=a[g])),S=e;y<h;++y)(S=pN(v>0?f[y]+" "+w:xn(w,/&\f/g,f[y])))&&(c[b++]=S);return Ly(e,t,n,o===0?fE:s,c,u,d)}function mU(e,t,n){return Ly(e,t,n,uN,$y(lU()),Kf(e,2,-2),0)}function yR(e,t,n,r){return Ly(e,t,n,hE,Kf(e,0,r),Kf(e,r+1,-1),r)}function Ou(e,t){for(var n="",r=mE(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function gU(e,t,n,r){switch(e.type){case nU:if(e.children.length)break;case tU:case hE:return e.return=e.return||e.value;case uN:return"";case dN:return e.return=e.value+"{"+Ou(e.children,r)+"}";case fE:e.value=e.props.join(",")}return Ca(n=Ou(e.children,r))?e.return=e.value+"{"+n+"}":""}function vU(e){var t=mE(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function yU(e){return function(t){t.root||(t=t.return)&&e(t)}}var bU=function(t,n,r){for(var o=0,i=0;o=i,i=za(),o===38&&i===12&&(n[r]=1),!Xf(i);)li();return Oh(t,Vo)},wU=function(t,n){var r=-1,o=44;do switch(Xf(o)){case 0:o===38&&za()===12&&(n[r]=1),t[r]+=bU(Vo-1,n,r);break;case 2:t[r]+=Mg(o);break;case 4:if(o===44){t[++r]=za()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=$y(o)}while(o=li());return t},SU=function(t,n){return mN(wU(hN(t),n))},bR=new WeakMap,xU=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!bR.get(r))&&!o){bR.set(t,!0);for(var i=[],a=SU(n,i),s=r.props,c=0,u=0;c<a.length;c++)for(var d=0;d<s.length;d++,u++)t.props[u]=i[c]?a[c].replace(/&\f/g,s[d]):s[d]+" "+a[c]}}},CU=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function gN(e,t){switch(iU(e,t)){case 5103:return wn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return wn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return wn+e+Ev+e+lo+e+e;case 6828:case 4268:return wn+e+lo+e+e;case 6165:return wn+e+lo+"flex-"+e+e;case 5187:return wn+e+xn(e,/(\w+).+(:[^]+)/,wn+"box-$1$2"+lo+"flex-$1$2")+e;case 5443:return wn+e+lo+"flex-item-"+xn(e,/flex-|-self/,"")+e;case 4675:return wn+e+lo+"flex-line-pack"+xn(e,/align-content|flex-|-self/,"")+e;case 5548:return wn+e+lo+xn(e,"shrink","negative")+e;case 5292:return wn+e+lo+xn(e,"basis","preferred-size")+e;case 6060:return wn+"box-"+xn(e,"-grow","")+wn+e+lo+xn(e,"grow","positive")+e;case 4554:return wn+xn(e,/([^-])(transform)/g,"$1"+wn+"$2")+e;case 6187:return xn(xn(xn(e,/(zoom-|grab)/,wn+"$1"),/(image-set)/,wn+"$1"),e,"")+e;case 5495:case 3959:return xn(e,/(image-set\([^]*)/,wn+"$1$`$1");case 4968:return xn(xn(e,/(.+:)(flex-)?(.*)/,wn+"box-pack:$3"+lo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+wn+e+e;case 4095:case 3583:case 4068:case 2532:return xn(e,/(.+)-inline(.+)/,wn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ca(e)-1-t>6)switch(ro(e,t+1)){case 109:if(ro(e,t+4)!==45)break;case 102:return xn(e,/(.+:)(.+)-([^]+)/,"$1"+wn+"$2-$3$1"+Ev+(ro(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zS(e,"stretch")?gN(xn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ro(e,t+1)!==115)break;case 6444:switch(ro(e,Ca(e)-3-(~zS(e,"!important")&&10))){case 107:return xn(e,":",":"+wn)+e;case 101:return xn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+wn+(ro(e,14)===45?"inline-":"")+"box$3$1"+wn+"$2$3$1"+lo+"$2box$3")+e}break;case 5936:switch(ro(e,t+11)){case 114:return wn+e+lo+xn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return wn+e+lo+xn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return wn+e+lo+xn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return wn+e+lo+e+e}return e}var EU=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case hE:t.return=gN(t.value,t.length);break;case dN:return Ou([mp(t,{value:xn(t.value,"@","@"+wn)})],o);case fE:if(t.length)return sU(t.props,function(i){switch(aU(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ou([mp(t,{props:[xn(i,/:(read-\w+)/,":"+Ev+"$1")]})],o);case"::placeholder":return Ou([mp(t,{props:[xn(i,/:(plac\w+)/,":"+wn+"input-$1")]}),mp(t,{props:[xn(i,/:(plac\w+)/,":"+Ev+"$1")]}),mp(t,{props:[xn(i,/:(plac\w+)/,lo+"input-$1")]})],o)}return""})}},TU=[EU],kU=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var b=v.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||TU,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var b=v.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)i[b[y]]=!0;s.push(v)});var c,u=[xU,CU];{var d,p=[gU,yU(function(v){d.insert(v)})],f=vU(u.concat(o,p)),h=function(b){return Ou(hU(b),f)};c=function(b,y,w,S){d=w,h(b?b+"{"+y.styles+"}":y.styles),S&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new eU({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return g.sheet.hydrate(s),g},vN={exports:{}},Nn={};/** @license React v16.13.1
78
+ * react-is.production.min.js
79
+ *
80
+ * Copyright (c) Facebook, Inc. and its affiliates.
81
+ *
82
+ * This source code is licensed under the MIT license found in the
83
+ * LICENSE file in the root directory of this source tree.
84
+ */var Kr=typeof Symbol=="function"&&Symbol.for,gE=Kr?Symbol.for("react.element"):60103,vE=Kr?Symbol.for("react.portal"):60106,Dy=Kr?Symbol.for("react.fragment"):60107,My=Kr?Symbol.for("react.strict_mode"):60108,By=Kr?Symbol.for("react.profiler"):60114,Fy=Kr?Symbol.for("react.provider"):60109,zy=Kr?Symbol.for("react.context"):60110,yE=Kr?Symbol.for("react.async_mode"):60111,jy=Kr?Symbol.for("react.concurrent_mode"):60111,Uy=Kr?Symbol.for("react.forward_ref"):60112,Wy=Kr?Symbol.for("react.suspense"):60113,AU=Kr?Symbol.for("react.suspense_list"):60120,Hy=Kr?Symbol.for("react.memo"):60115,Vy=Kr?Symbol.for("react.lazy"):60116,RU=Kr?Symbol.for("react.block"):60121,_U=Kr?Symbol.for("react.fundamental"):60117,PU=Kr?Symbol.for("react.responder"):60118,IU=Kr?Symbol.for("react.scope"):60119;function gi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gE:switch(e=e.type,e){case yE:case jy:case Dy:case By:case My:case Wy:return e;default:switch(e=e&&e.$$typeof,e){case zy:case Uy:case Vy:case Hy:case Fy:return e;default:return t}}case vE:return t}}}function yN(e){return gi(e)===jy}Nn.AsyncMode=yE;Nn.ConcurrentMode=jy;Nn.ContextConsumer=zy;Nn.ContextProvider=Fy;Nn.Element=gE;Nn.ForwardRef=Uy;Nn.Fragment=Dy;Nn.Lazy=Vy;Nn.Memo=Hy;Nn.Portal=vE;Nn.Profiler=By;Nn.StrictMode=My;Nn.Suspense=Wy;Nn.isAsyncMode=function(e){return yN(e)||gi(e)===yE};Nn.isConcurrentMode=yN;Nn.isContextConsumer=function(e){return gi(e)===zy};Nn.isContextProvider=function(e){return gi(e)===Fy};Nn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gE};Nn.isForwardRef=function(e){return gi(e)===Uy};Nn.isFragment=function(e){return gi(e)===Dy};Nn.isLazy=function(e){return gi(e)===Vy};Nn.isMemo=function(e){return gi(e)===Hy};Nn.isPortal=function(e){return gi(e)===vE};Nn.isProfiler=function(e){return gi(e)===By};Nn.isStrictMode=function(e){return gi(e)===My};Nn.isSuspense=function(e){return gi(e)===Wy};Nn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Dy||e===jy||e===By||e===My||e===Wy||e===AU||typeof e=="object"&&e!==null&&(e.$$typeof===Vy||e.$$typeof===Hy||e.$$typeof===Fy||e.$$typeof===zy||e.$$typeof===Uy||e.$$typeof===_U||e.$$typeof===PU||e.$$typeof===IU||e.$$typeof===RU)};Nn.typeOf=gi;vN.exports=Nn;var OU=vN.exports,bN=OU,$U={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},NU={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wN={};wN[bN.ForwardRef]=$U;wN[bN.Memo]=NU;var LU=!0;function DU(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var SN=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||LU===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},xN=function(t,n,r){SN(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function MU(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var BU={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},FU=/[A-Z]|^ms/g,zU=/_EMO_([^_]+?)_([^]*?)_EMO_/g,CN=function(t){return t.charCodeAt(1)===45},wR=function(t){return t!=null&&typeof t!="boolean"},Rb=cN(function(e){return CN(e)?e:e.replace(FU,"-$&").toLowerCase()}),SR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zU,function(r,o,i){return Ea={name:o,styles:i,next:Ea},o})}return BU[t]!==1&&!CN(t)&&typeof n=="number"&&n!==0?n+"px":n};function Jf(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ea={name:n.name,styles:n.styles,next:Ea},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ea={name:r.name,styles:r.styles,next:Ea},r=r.next;var o=n.styles+";";return o}return jU(e,t,n)}case"function":{if(e!==void 0){var i=Ea,a=n(e);return Ea=i,Jf(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function jU(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Jf(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":wR(a)&&(r+=Rb(i)+":"+SR(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)wR(a[s])&&(r+=Rb(i)+":"+SR(i,a[s])+";");else{var c=Jf(e,t,a);switch(i){case"animation":case"animationName":{r+=Rb(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var xR=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ea,bE=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Ea=void 0;var a=t[0];a==null||a.raw===void 0?(o=!1,i+=Jf(r,n,a)):i+=a[0];for(var s=1;s<t.length;s++)i+=Jf(r,n,t[s]),o&&(i+=a[s]);xR.lastIndex=0;for(var c="",u;(u=xR.exec(i))!==null;)c+="-"+u[1];var d=MU(i)+c;return{name:d,styles:i,next:Ea}},UU=function(t){return t()},EN=Pf["useInsertionEffect"]?Pf["useInsertionEffect"]:!1,WU=EN||UU,CR=EN||m.useLayoutEffect,wE=m.createContext(typeof HTMLElement<"u"?kU({key:"css"}):null),HU=wE.Provider,VU=function(){return m.useContext(wE)},TN=function(t){return m.forwardRef(function(n,r){var o=m.useContext(wE);return t(n,o,r)})},SE=m.createContext({}),GU=TN(function(e,t){var n=e.styles,r=bE([n],void 0,m.useContext(SE)),o=m.useRef();return CR(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",i),a.hydrate([c])),o.current=[a,s],function(){a.flush()}},[t]),CR(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(r.next!==void 0&&xN(t,r.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Ed(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bE(t)}var Rl=function(){var t=Ed.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},qU=Jj,YU=function(t){return t!=="theme"},ER=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?qU:YU},TR=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},KU=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return SN(n,r,o),WU(function(){return xN(n,r,o)}),null},XU=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=TR(t,n,r),c=s||ER(o),u=!c("as");return function(){var d=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{p.push(d[0][0]);for(var f=d.length,h=1;h<f;h++)p.push(d[h],d[0][h])}var g=TN(function(v,b,y){var w=u&&v.as||o,S="",k=[],A=v;if(v.theme==null){A={};for(var T in v)A[T]=v[T];A.theme=m.useContext(SE)}typeof v.className=="string"?S=DU(b.registered,k,v.className):v.className!=null&&(S=v.className+" ");var R=bE(p.concat(k),b.registered,A);S+=b.key+"-"+R.name,a!==void 0&&(S+=" "+a);var P=u&&s===void 0?ER(w):c,_={};for(var O in v)u&&O==="as"||P(O)&&(_[O]=v[O]);return _.className=S,_.ref=y,m.createElement(m.Fragment,null,m.createElement(KU,{cache:b,serialized:R,isStringTag:typeof w=="string"}),m.createElement(w,_))});return g.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=p,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+a}}),g.withComponent=function(v,b){return e(v,Cv({},n,b,{shouldForwardProp:TR(g,b,!0)})).apply(void 0,p)},g}},JU=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],US=XU.bind();JU.forEach(function(e){US[e]=US(e)});function QU(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ZU(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var eW=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ZU(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=QU(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),co="-ms-",Tv="-moz-",Sn="-webkit-",kN="comm",xE="rule",CE="decl",tW="@import",AN="@keyframes",nW=Math.abs,Gy=String.fromCharCode,rW=Object.assign;function oW(e,t){return oo(e,0)^45?(((t<<2^oo(e,0))<<2^oo(e,1))<<2^oo(e,2))<<2^oo(e,3):0}function RN(e){return e.trim()}function iW(e,t){return(e=t.exec(e))?e[0]:e}function Cn(e,t,n){return e.replace(t,n)}function WS(e,t){return e.indexOf(t)}function oo(e,t){return e.charCodeAt(t)|0}function Qf(e,t,n){return e.slice(t,n)}function Ta(e){return e.length}function EE(e){return e.length}function jm(e,t){return t.push(e),e}function aW(e,t){return e.map(t).join("")}var qy=1,Ku=1,_N=0,Go=0,_r=0,Td="";function Yy(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:qy,column:Ku,length:a,return:""}}function gp(e,t){return rW(Yy("",null,null,"",null,null,0),e,{length:-e.length},t)}function sW(){return _r}function lW(){return _r=Go>0?oo(Td,--Go):0,Ku--,_r===10&&(Ku=1,qy--),_r}function ci(){return _r=Go<_N?oo(Td,Go++):0,Ku++,_r===10&&(Ku=1,qy++),_r}function ja(){return oo(Td,Go)}function Fg(){return Go}function $h(e,t){return Qf(Td,e,t)}function Zf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function PN(e){return qy=Ku=1,_N=Ta(Td=e),Go=0,[]}function IN(e){return Td="",e}function zg(e){return RN($h(Go-1,HS(e===91?e+2:e===40?e+1:e)))}function cW(e){for(;(_r=ja())&&_r<33;)ci();return Zf(e)>2||Zf(_r)>3?"":" "}function uW(e,t){for(;--t&&ci()&&!(_r<48||_r>102||_r>57&&_r<65||_r>70&&_r<97););return $h(e,Fg()+(t<6&&ja()==32&&ci()==32))}function HS(e){for(;ci();)switch(_r){case e:return Go;case 34:case 39:e!==34&&e!==39&&HS(_r);break;case 40:e===41&&HS(e);break;case 92:ci();break}return Go}function dW(e,t){for(;ci()&&e+_r!==47+10;)if(e+_r===42+42&&ja()===47)break;return"/*"+$h(t,Go-1)+"*"+Gy(e===47?e:ci())}function pW(e){for(;!Zf(ja());)ci();return $h(e,Go)}function fW(e){return IN(jg("",null,null,null,[""],e=PN(e),0,[0],e))}function jg(e,t,n,r,o,i,a,s,c){for(var u=0,d=0,p=a,f=0,h=0,g=0,v=1,b=1,y=1,w=0,S="",k=o,A=i,T=r,R=S;b;)switch(g=w,w=ci()){case 40:if(g!=108&&oo(R,p-1)==58){WS(R+=Cn(zg(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:R+=zg(w);break;case 9:case 10:case 13:case 32:R+=cW(g);break;case 92:R+=uW(Fg()-1,7);continue;case 47:switch(ja()){case 42:case 47:jm(hW(dW(ci(),Fg()),t,n),c);break;default:R+="/"}break;case 123*v:s[u++]=Ta(R)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:h>0&&Ta(R)-p&&jm(h>32?AR(R+";",r,n,p-1):AR(Cn(R," ","")+";",r,n,p-2),c);break;case 59:R+=";";default:if(jm(T=kR(R,t,n,u,d,o,s,S,k=[],A=[],p),i),w===123)if(d===0)jg(R,t,T,T,k,i,p,s,A);else switch(f===99&&oo(R,3)===110?100:f){case 100:case 109:case 115:jg(e,T,T,r&&jm(kR(e,T,T,0,0,o,s,S,o,k=[],p),A),o,A,p,s,r?k:A);break;default:jg(R,T,T,T,[""],A,0,s,A)}}u=d=h=0,v=y=1,S=R="",p=a;break;case 58:p=1+Ta(R),h=g;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&lW()==125)continue}switch(R+=Gy(w),w*v){case 38:y=d>0?1:(R+="\f",-1);break;case 44:s[u++]=(Ta(R)-1)*y,y=1;break;case 64:ja()===45&&(R+=zg(ci())),f=ja(),d=p=Ta(S=R+=pW(Fg())),w++;break;case 45:g===45&&Ta(R)==2&&(v=0)}}return i}function kR(e,t,n,r,o,i,a,s,c,u,d){for(var p=o-1,f=o===0?i:[""],h=EE(f),g=0,v=0,b=0;g<r;++g)for(var y=0,w=Qf(e,p+1,p=nW(v=a[g])),S=e;y<h;++y)(S=RN(v>0?f[y]+" "+w:Cn(w,/&\f/g,f[y])))&&(c[b++]=S);return Yy(e,t,n,o===0?xE:s,c,u,d)}function hW(e,t,n){return Yy(e,t,n,kN,Gy(sW()),Qf(e,2,-2),0)}function AR(e,t,n,r){return Yy(e,t,n,CE,Qf(e,0,r),Qf(e,r+1,-1),r)}function $u(e,t){for(var n="",r=EE(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function mW(e,t,n,r){switch(e.type){case tW:case CE:return e.return=e.return||e.value;case kN:return"";case AN:return e.return=e.value+"{"+$u(e.children,r)+"}";case xE:e.value=e.props.join(",")}return Ta(n=$u(e.children,r))?e.return=e.value+"{"+n+"}":""}function gW(e){var t=EE(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function vW(e){return function(t){t.root||(t=t.return)&&e(t)}}var yW=function(t,n,r){for(var o=0,i=0;o=i,i=ja(),o===38&&i===12&&(n[r]=1),!Zf(i);)ci();return $h(t,Go)},bW=function(t,n){var r=-1,o=44;do switch(Zf(o)){case 0:o===38&&ja()===12&&(n[r]=1),t[r]+=yW(Go-1,n,r);break;case 2:t[r]+=zg(o);break;case 4:if(o===44){t[++r]=ja()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Gy(o)}while(o=ci());return t},wW=function(t,n){return IN(bW(PN(t),n))},RR=new WeakMap,SW=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!RR.get(r))&&!o){RR.set(t,!0);for(var i=[],a=wW(n,i),s=r.props,c=0,u=0;c<a.length;c++)for(var d=0;d<s.length;d++,u++)t.props[u]=i[c]?a[c].replace(/&\f/g,s[d]):s[d]+" "+a[c]}}},xW=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ON(e,t){switch(oW(e,t)){case 5103:return Sn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Sn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Sn+e+Tv+e+co+e+e;case 6828:case 4268:return Sn+e+co+e+e;case 6165:return Sn+e+co+"flex-"+e+e;case 5187:return Sn+e+Cn(e,/(\w+).+(:[^]+)/,Sn+"box-$1$2"+co+"flex-$1$2")+e;case 5443:return Sn+e+co+"flex-item-"+Cn(e,/flex-|-self/,"")+e;case 4675:return Sn+e+co+"flex-line-pack"+Cn(e,/align-content|flex-|-self/,"")+e;case 5548:return Sn+e+co+Cn(e,"shrink","negative")+e;case 5292:return Sn+e+co+Cn(e,"basis","preferred-size")+e;case 6060:return Sn+"box-"+Cn(e,"-grow","")+Sn+e+co+Cn(e,"grow","positive")+e;case 4554:return Sn+Cn(e,/([^-])(transform)/g,"$1"+Sn+"$2")+e;case 6187:return Cn(Cn(Cn(e,/(zoom-|grab)/,Sn+"$1"),/(image-set)/,Sn+"$1"),e,"")+e;case 5495:case 3959:return Cn(e,/(image-set\([^]*)/,Sn+"$1$`$1");case 4968:return Cn(Cn(e,/(.+:)(flex-)?(.*)/,Sn+"box-pack:$3"+co+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Sn+e+e;case 4095:case 3583:case 4068:case 2532:return Cn(e,/(.+)-inline(.+)/,Sn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ta(e)-1-t>6)switch(oo(e,t+1)){case 109:if(oo(e,t+4)!==45)break;case 102:return Cn(e,/(.+:)(.+)-([^]+)/,"$1"+Sn+"$2-$3$1"+Tv+(oo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~WS(e,"stretch")?ON(Cn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(oo(e,t+1)!==115)break;case 6444:switch(oo(e,Ta(e)-3-(~WS(e,"!important")&&10))){case 107:return Cn(e,":",":"+Sn)+e;case 101:return Cn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Sn+(oo(e,14)===45?"inline-":"")+"box$3$1"+Sn+"$2$3$1"+co+"$2box$3")+e}break;case 5936:switch(oo(e,t+11)){case 114:return Sn+e+co+Cn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Sn+e+co+Cn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Sn+e+co+Cn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Sn+e+co+e+e}return e}var CW=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case CE:t.return=ON(t.value,t.length);break;case AN:return $u([gp(t,{value:Cn(t.value,"@","@"+Sn)})],o);case xE:if(t.length)return aW(t.props,function(i){switch(iW(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $u([gp(t,{props:[Cn(i,/:(read-\w+)/,":"+Tv+"$1")]})],o);case"::placeholder":return $u([gp(t,{props:[Cn(i,/:(plac\w+)/,":"+Sn+"input-$1")]}),gp(t,{props:[Cn(i,/:(plac\w+)/,":"+Tv+"$1")]}),gp(t,{props:[Cn(i,/:(plac\w+)/,co+"input-$1")]})],o)}return""})}},EW=[CW],TW=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var b=v.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||EW,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var b=v.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)i[b[y]]=!0;s.push(v)});var c,u=[SW,xW];{var d,p=[mW,vW(function(v){d.insert(v)})],f=gW(u.concat(o,p)),h=function(b){return $u(fW(b),f)};c=function(b,y,w,S){d=w,h(b?b+"{"+y.styles+"}":y.styles),S&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new eW({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return g.sheet.hydrate(s),g};function kW(e){return e==null||Object.keys(e).length===0}function AW(e){const{styles:t,defaultTheme:n={}}=e;return l(GU,{styles:typeof t=="function"?o=>t(kW(o)?n:o):t})}/**
85
+ * @mui/styled-engine v5.11.9
86
+ *
87
+ * @license MIT
88
+ * This source code is licensed under the MIT license found in the
89
+ * LICENSE file in the root directory of this source tree.
90
+ */function $N(e,t){return US(e,t)}const RW=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Ir(){return Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ir.apply(this,arguments)}function gf(e,t){return t?si(e,t,{clone:!1}):e}const TE={xs:0,sm:600,md:900,lg:1200,xl:1536},_R={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${TE[e]}px)`};function Fi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||_R;return t.reduce((a,s,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||_R;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||TE).indexOf(s)!==-1){const c=i.up(s);a[c]=n(t[s],s)}else{const c=s;a[c]=t[c]}return a},{})}return n(t)}function NN(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function LN(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function yBe(e,...t){const n=NN(e),r=[n,...t].reduce((o,i)=>si(o,i),{});return LN(Object.keys(n),r)}function _W(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Ky({values:e,breakpoints:t,base:n}){const r=n||_W(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,c)=>(Array.isArray(e)?(a[s]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Xu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function kv(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Xu(e,n)||r,t&&(o=t(o,r,e)),o}function kn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],c=a.theme,u=Xu(c,r)||{};return Fi(a,s,p=>{let f=kv(u,o,p);return p===f&&typeof p=="string"&&(f=kv(u,o,`${t}${p==="default"?"":de(p)}`,p)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function Xy(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?gf(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function PW(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const IW={m:"margin",p:"padding"},OW={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},PR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$W=PW(e=>{if(e.length>2)if(PR[e])e=PR[e];else return[e];const[t,n]=e.split(""),r=IW[t],o=OW[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),kE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],AE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...kE,...AE];function Nh(e,t,n,r){var o;const i=(o=Xu(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function DN(e){return Nh(e,"spacing",8)}function Lh(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function NW(e,t){return n=>e.reduce((r,o)=>(r[o]=Lh(t,n),r),{})}function LW(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=$W(n),i=NW(o,r),a=e[n];return Fi(e,a,i)}function MN(e,t){const n=DN(e.theme);return Object.keys(e).map(r=>LW(e,t,r,n)).reduce(gf,{})}function dr(e){return MN(e,kE)}dr.propTypes={};dr.filterProps=kE;function pr(e){return MN(e,AE)}pr.propTypes={};pr.filterProps=AE;function Aa(e){return typeof e!="number"?e:`${e}px solid`}const DW=kn({prop:"border",themeKey:"borders",transform:Aa}),MW=kn({prop:"borderTop",themeKey:"borders",transform:Aa}),BW=kn({prop:"borderRight",themeKey:"borders",transform:Aa}),FW=kn({prop:"borderBottom",themeKey:"borders",transform:Aa}),zW=kn({prop:"borderLeft",themeKey:"borders",transform:Aa}),jW=kn({prop:"borderColor",themeKey:"palette"}),UW=kn({prop:"borderTopColor",themeKey:"palette"}),WW=kn({prop:"borderRightColor",themeKey:"palette"}),HW=kn({prop:"borderBottomColor",themeKey:"palette"}),VW=kn({prop:"borderLeftColor",themeKey:"palette"}),Jy=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Nh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Lh(t,r)});return Fi(e,e.borderRadius,n)}return null};Jy.propTypes={};Jy.filterProps=["borderRadius"];Xy(DW,MW,BW,FW,zW,jW,UW,WW,HW,VW,Jy);const Qy=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Nh(e.theme,"spacing",8),n=r=>({gap:Lh(t,r)});return Fi(e,e.gap,n)}return null};Qy.propTypes={};Qy.filterProps=["gap"];const Zy=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Nh(e.theme,"spacing",8),n=r=>({columnGap:Lh(t,r)});return Fi(e,e.columnGap,n)}return null};Zy.propTypes={};Zy.filterProps=["columnGap"];const e1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Nh(e.theme,"spacing",8),n=r=>({rowGap:Lh(t,r)});return Fi(e,e.rowGap,n)}return null};e1.propTypes={};e1.filterProps=["rowGap"];const GW=kn({prop:"gridColumn"}),qW=kn({prop:"gridRow"}),YW=kn({prop:"gridAutoFlow"}),KW=kn({prop:"gridAutoColumns"}),XW=kn({prop:"gridAutoRows"}),JW=kn({prop:"gridTemplateColumns"}),QW=kn({prop:"gridTemplateRows"}),ZW=kn({prop:"gridTemplateAreas"}),eH=kn({prop:"gridArea"});Xy(Qy,Zy,e1,GW,qW,YW,KW,XW,JW,QW,ZW,eH);function Nu(e,t){return t==="grey"?t:e}const tH=kn({prop:"color",themeKey:"palette",transform:Nu}),nH=kn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Nu}),rH=kn({prop:"backgroundColor",themeKey:"palette",transform:Nu});Xy(tH,nH,rH);function ei(e){return e<=1&&e!==0?`${e*100}%`:e}const oH=kn({prop:"width",transform:ei}),RE=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,i;return{maxWidth:((r=e.theme)==null||(o=r.breakpoints)==null||(i=o.values)==null?void 0:i[n])||TE[n]||ei(n)}};return Fi(e,e.maxWidth,t)}return null};RE.filterProps=["maxWidth"];const iH=kn({prop:"minWidth",transform:ei}),aH=kn({prop:"height",transform:ei}),sH=kn({prop:"maxHeight",transform:ei}),lH=kn({prop:"minHeight",transform:ei});kn({prop:"size",cssProperty:"width",transform:ei});kn({prop:"size",cssProperty:"height",transform:ei});const cH=kn({prop:"boxSizing"});Xy(oH,RE,iH,aH,sH,lH,cH);const uH={border:{themeKey:"borders",transform:Aa},borderTop:{themeKey:"borders",transform:Aa},borderRight:{themeKey:"borders",transform:Aa},borderBottom:{themeKey:"borders",transform:Aa},borderLeft:{themeKey:"borders",transform:Aa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Jy},color:{themeKey:"palette",transform:Nu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Nu},backgroundColor:{themeKey:"palette",transform:Nu},p:{style:pr},pt:{style:pr},pr:{style:pr},pb:{style:pr},pl:{style:pr},px:{style:pr},py:{style:pr},padding:{style:pr},paddingTop:{style:pr},paddingRight:{style:pr},paddingBottom:{style:pr},paddingLeft:{style:pr},paddingX:{style:pr},paddingY:{style:pr},paddingInline:{style:pr},paddingInlineStart:{style:pr},paddingInlineEnd:{style:pr},paddingBlock:{style:pr},paddingBlockStart:{style:pr},paddingBlockEnd:{style:pr},m:{style:dr},mt:{style:dr},mr:{style:dr},mb:{style:dr},ml:{style:dr},mx:{style:dr},my:{style:dr},margin:{style:dr},marginTop:{style:dr},marginRight:{style:dr},marginBottom:{style:dr},marginLeft:{style:dr},marginX:{style:dr},marginY:{style:dr},marginInline:{style:dr},marginInlineStart:{style:dr},marginInlineEnd:{style:dr},marginBlock:{style:dr},marginBlockStart:{style:dr},marginBlockEnd:{style:dr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Qy},rowGap:{style:e1},columnGap:{style:Zy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ei},maxWidth:{style:RE},minWidth:{transform:ei},height:{transform:ei},maxHeight:{transform:ei},minHeight:{transform:ei},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},t1=uH;function dH(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function pH(e,t){return typeof e=="function"?e(t):e}function fH(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:p}=s;if(r==null)return null;const f=Xu(o,u)||{};return p?p(a):Fi(a,r,g=>{let v=kv(f,d,g);return g===v&&typeof g=="string"&&(v=kv(f,d,`${n}${g==="default"?"":de(g)}`,g)),c===!1?v:{[c]:v}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:t1;function s(c){let u=c;if(typeof c=="function")u=c(i);else if(typeof c!="object")return c;if(!u)return null;const d=NN(i.breakpoints),p=Object.keys(d);let f=d;return Object.keys(u).forEach(h=>{const g=pH(u[h],i);if(g!=null)if(typeof g=="object")if(a[h])f=gf(f,e(h,g,i,a));else{const v=Fi({theme:i},g,b=>({[h]:b}));dH(v,g)?f[h]=t({sx:g,theme:i}):f=gf(f,v)}else f=gf(f,e(h,g,i,a))}),LN(p,f)}return Array.isArray(o)?o.map(s):s(o)}return t}const BN=fH();BN.filterProps=["sx"];const n1=BN;function ys(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const hH=["sx"],mH=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:t1;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function _E(e){const{sx:t}=e,n=ys(e,hH),{systemProps:r,otherProps:o}=mH(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Ql(s)?Ir({},r,s):r}:i=Ir({},r,t),Ir({},o,{sx:i})}function FN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=FN(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ae(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=FN(e))&&(r&&(r+=" "),r+=t);return r}const gH=["values","unit","step"],vH=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>Ir({},n,{[r.key]:r.val}),{})};function yH(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ys(e,gH),i=vH(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,h){const g=a.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:h)-r/100}${n})`}function d(f){return a.indexOf(f)+1<a.length?u(f,a[a.indexOf(f)+1]):s(f)}function p(f){const h=a.indexOf(f);return h===0?s(a[1]):h===a.length-1?c(a[h]):u(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return Ir({keys:a,values:i,up:s,down:c,between:u,only:d,not:p,unit:n},o)}const bH={borderRadius:4},wH=bH;function SH(e=8){if(e.mui)return e;const t=DN({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}const xH=["breakpoints","palette","spacing","shape"];function r1(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ys(e,xH),s=yH(n),c=SH(o);let u=si({breakpoints:s,direction:"ltr",components:{},palette:Ir({mode:"light"},r),spacing:c,shape:Ir({},wH,i)},a);return u=t.reduce((d,p)=>si(d,p),u),u.unstable_sxConfig=Ir({},t1,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(p){return n1({sx:p,theme:this})},u}function VS(){return VS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VS.apply(this,arguments)}const CH=m.createContext(null),zN=CH;function jN(){return m.useContext(zN)}const EH=typeof Symbol=="function"&&Symbol.for,TH=EH?Symbol.for("mui.nested"):"__THEME_NESTED__";function kH(e,t){return typeof t=="function"?t(e):VS({},e,t)}function AH(e){const{children:t,theme:n}=e,r=jN(),o=m.useMemo(()=>{const i=r===null?n:kH(r,n);return i!=null&&(i[TH]=r!==null),i},[n,r]);return l(zN.Provider,{value:o,children:t})}function RH(e){return Object.keys(e).length===0}function PE(e=null){const t=jN();return!t||RH(t)?e:t}const _H=r1();function kd(e=_H){return PE(e)}const PH=["className","component"];function IH(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=e,o=$N("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(n1);return m.forwardRef(function(s,c){const u=kd(t),d=_E(s),{className:p,component:f="div"}=d,h=ys(d,PH);return l(o,Ir({as:f,ref:c,className:Ae(p,r?r(n):n),theme:u},h))})}const OH=["variant"];function IR(e){return e.length===0}function UN(e){const{variant:t}=e,n=ys(e,OH);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=IR(r)?e[o]:de(e[o]):r+=`${IR(r)?o:de(o)}${de(e[o].toString())}`}),r}const $H=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],NH=["theme"],LH=["theme"];function vp(e){return Object.keys(e).length===0}function DH(e){return typeof e=="string"&&e.charCodeAt(0)>96}const MH=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,BH=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=UN(o.props);r[i]=o.style}),r},FH=(e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],c=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return c&&c.forEach(u=>{let d=!0;Object.keys(u.props).forEach(p=>{a[p]!==u.props[p]&&e[p]!==u.props[p]&&(d=!1)}),d&&s.push(t[UN(u.props)])}),s};function vf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const zH=r1();function WN(e={}){const{defaultTheme:t=zH,rootShouldForwardProp:n=vf,slotShouldForwardProp:r=vf}=e,o=i=>{const a=vp(i.theme)?t:i.theme;return n1(Ir({},i,{theme:a}))};return o.__mui_systemSx=!0,(i,a={})=>{RW(i,S=>S.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:s,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:p}=a,f=ys(a,$H),h=u!==void 0?u:c&&c!=="Root"||!1,g=d||!1;let v,b=vf;c==="Root"?b=n:c?b=r:DH(i)&&(b=void 0);const y=$N(i,Ir({shouldForwardProp:b,label:v},f)),w=(S,...k)=>{const A=k?k.map(_=>typeof _=="function"&&_.__emotion_real!==_?O=>{let{theme:$}=O,z=ys(O,NH);return _(Ir({theme:vp($)?t:$},z))}:_):[];let T=S;s&&p&&A.push(_=>{const O=vp(_.theme)?t:_.theme,$=MH(s,O);if($){const z={};return Object.entries($).forEach(([L,B])=>{z[L]=typeof B=="function"?B(Ir({},_,{theme:O})):B}),p(_,z)}return null}),s&&!h&&A.push(_=>{const O=vp(_.theme)?t:_.theme;return FH(_,BH(s,O),O,s)}),g||A.push(o);const R=A.length-k.length;if(Array.isArray(S)&&R>0){const _=new Array(R).fill("");T=[...S,..._],T.raw=[...S.raw,..._]}else typeof S=="function"&&S.__emotion_real!==S&&(T=_=>{let{theme:O}=_,$=ys(_,LH);return S(Ir({theme:vp(O)?t:O},$))});return y(T,...A)};return y.withConfig&&(w.withConfig=y.withConfig),w}}const jH=WN(),Xr=jH;function HN(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:dE(t.components[n].defaultProps,r)}function VN({props:e,name:t,defaultTheme:n}){const r=kd(n);return HN({theme:r,name:t,props:e})}function IE(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function UH(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function wc(e){if(e.type)return e;if(e.charAt(0)==="#")return wc(UH(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(bl(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(bl(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function o1(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function WH(e){e=wc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,d=(u+n/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",c.push(t[3])),o1({type:s,values:c})}function GS(e){e=wc(e);let t=e.type==="hsl"||e.type==="hsla"?wc(WH(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function HH(e,t){const n=GS(e),r=GS(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function yt(e,t){return e=wc(e),t=IE(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,o1(e)}function wl(e,t){if(e=wc(e),t=IE(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return o1(e)}function Sl(e,t){if(e=wc(e),t=IE(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return o1(e)}function OR(e,t=.15){return GS(e)>.5?wl(e,t):Sl(e,t)}const VH={};function GH(e){const t=kd();return l(SE.Provider,{value:typeof t=="object"?t:VH,children:e.children})}function qH(e){const{children:t,theme:n}=e;return l(AH,{theme:n,children:l(GH,{children:t})})}const YH=["className","component","disableGutters","fixed","maxWidth","classes"],KH=r1(),XH=Xr("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${de(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),JH=e=>VN({props:e,name:"MuiContainer",defaultTheme:KH}),QH=(e,t)=>{const n=c=>Ze(t,c),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${de(String(a))}`,o&&"fixed",i&&"disableGutters"]};return tt(s,n,r)};function ZH(e={}){const{createStyledComponent:t=XH,useThemeProps:n=JH,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>Ir({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((c,u)=>{const d=u,p=a.breakpoints.values[d];return p!==0&&(c[a.breakpoints.up(d)]={maxWidth:`${p}${a.breakpoints.unit}`}),c},{}),({theme:a,ownerState:s})=>Ir({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return m.forwardRef(function(s,c){const u=n(s),{className:d,component:p="div",disableGutters:f=!1,fixed:h=!1,maxWidth:g="lg"}=u,v=ys(u,YH),b=Ir({},u,{component:p,disableGutters:f,fixed:h,maxWidth:g}),y=QH(b,r);return l(o,Ir({as:p,ownerState:b,className:Ae(y.root,d),ref:c},v))})}function eV(e,t){return N({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const tV=["mode","contrastThreshold","tonalOffset"],$R={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:qf.white,default:qf.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},_b={text:{primary:qf.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:qf.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function NR(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Sl(e.main,o):t==="dark"&&(e.dark=wl(e.main,i)))}function nV(e="light"){return e==="dark"?{main:Jc[200],light:Jc[50],dark:Jc[400]}:{main:Jc[700],light:Jc[400],dark:Jc[800]}}function rV(e="light"){return e==="dark"?{main:Xc[200],light:Xc[50],dark:Xc[400]}:{main:Xc[500],light:Xc[300],dark:Xc[700]}}function oV(e="light"){return e==="dark"?{main:Kc[500],light:Kc[300],dark:Kc[700]}:{main:Kc[700],light:Kc[400],dark:Kc[800]}}function iV(e="light"){return e==="dark"?{main:Qc[400],light:Qc[300],dark:Qc[700]}:{main:Qc[700],light:Qc[500],dark:Qc[900]}}function aV(e="light"){return e==="dark"?{main:Zc[400],light:Zc[300],dark:Zc[700]}:{main:Zc[800],light:Zc[500],dark:Zc[900]}}function sV(e="light"){return e==="dark"?{main:hp[400],light:hp[300],dark:hp[700]}:{main:"#ed6c02",light:hp[500],dark:hp[900]}}function lV(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Fe(e,tV),i=e.primary||nV(t),a=e.secondary||rV(t),s=e.error||oV(t),c=e.info||iV(t),u=e.success||aV(t),d=e.warning||sV(t);function p(v){return HH(v,_b.text.primary)>=n?_b.text.primary:$R.text.primary}const f=({color:v,name:b,mainShade:y=500,lightShade:w=300,darkShade:S=700})=>{if(v=N({},v),!v.main&&v[y]&&(v.main=v[y]),!v.hasOwnProperty("main"))throw new Error(bl(11,b?` (${b})`:"",y));if(typeof v.main!="string")throw new Error(bl(12,b?` (${b})`:"",JSON.stringify(v.main)));return NR(v,"light",w,r),NR(v,"dark",S,r),v.contrastText||(v.contrastText=p(v.main)),v},h={dark:_b,light:$R};return si(N({common:N({},qf),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:xj,contrastThreshold:n,getContrastText:p,augmentColor:f,tonalOffset:r},h[t]),o)}const cV=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function uV(e){return Math.round(e*1e5)/1e5}const LR={textTransform:"uppercase"},DR='"Roboto", "Helvetica", "Arial", sans-serif';function dV(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=DR,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:p}=n,f=Fe(n,cV),h=o/14,g=p||(y=>`${y/u*h}rem`),v=(y,w,S,k,A)=>N({fontFamily:r,fontWeight:y,fontSize:g(w),lineHeight:S},r===DR?{letterSpacing:`${uV(k/w)}em`}:{},A,d),b={h1:v(i,96,1.167,-1.5),h2:v(i,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(s,14,1.75,.4,LR),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,LR)};return si(N({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:c},b),f,{clone:!1})}const pV=.2,fV=.14,hV=.12;function Jn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${pV})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${fV})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hV})`].join(",")}const mV=["none",Jn(0,2,1,-1,0,1,1,0,0,1,3,0),Jn(0,3,1,-2,0,2,2,0,0,1,5,0),Jn(0,3,3,-2,0,3,4,0,0,1,8,0),Jn(0,2,4,-1,0,4,5,0,0,1,10,0),Jn(0,3,5,-1,0,5,8,0,0,1,14,0),Jn(0,3,5,-1,0,6,10,0,0,1,18,0),Jn(0,4,5,-2,0,7,10,1,0,2,16,1),Jn(0,5,5,-3,0,8,10,1,0,3,14,2),Jn(0,5,6,-3,0,9,12,1,0,3,16,2),Jn(0,6,6,-3,0,10,14,1,0,4,18,3),Jn(0,6,7,-4,0,11,15,1,0,4,20,3),Jn(0,7,8,-4,0,12,17,2,0,5,22,4),Jn(0,7,8,-4,0,13,19,2,0,5,24,4),Jn(0,7,9,-4,0,14,21,2,0,5,26,4),Jn(0,8,9,-5,0,15,22,2,0,6,28,5),Jn(0,8,10,-5,0,16,24,2,0,6,30,5),Jn(0,8,11,-5,0,17,26,2,0,6,32,5),Jn(0,9,11,-5,0,18,28,2,0,7,34,6),Jn(0,9,12,-6,0,19,29,2,0,7,36,6),Jn(0,10,13,-6,0,20,31,3,0,8,38,7),Jn(0,10,13,-6,0,21,33,3,0,8,40,7),Jn(0,10,14,-6,0,22,35,3,0,8,42,7),Jn(0,11,14,-7,0,23,36,3,0,9,44,8),Jn(0,11,15,-7,0,24,38,3,0,9,46,8)],gV=mV,vV=["duration","easing","delay"],yV={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},GN={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function MR(e){return`${Math.round(e)}ms`}function bV(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function wV(e){const t=N({},yV,e.easing),n=N({},GN,e.duration);return N({getAutoHeightDuration:bV,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:c=0}=i;return Fe(i,vV),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:MR(a)} ${s} ${typeof c=="string"?c:MR(c)}`).join(",")}},e,{easing:t,duration:n})}const SV={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},xV=SV,CV=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function i1(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Fe(e,CV);if(e.vars)throw new Error(bl(18));const s=lV(r),c=r1(e);let u=si(c,{mixins:eV(c.breakpoints,n),palette:s,shadows:gV.slice(),typography:dV(s,i),transitions:wV(o),zIndex:N({},xV)});return u=si(u,a),u=t.reduce((d,p)=>si(d,p),u),u.unstable_sxConfig=N({},t1,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(p){return n1({sx:p,theme:this})},u}const EV=i1(),a1=EV;function yn(){return kd(a1)}function rt({props:e,name:t}){return VN({props:e,name:t,defaultTheme:a1})}const Yo=e=>vf(e)&&e!=="classes",OE=vf,TV=WN({defaultTheme:a1,rootShouldForwardProp:Yo}),C=TV,kV=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},BR=kV;function En(){return En=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},En.apply(this,arguments)}function Ua(e){return typeof e=="string"}function Kp(e,t,n){return e===void 0||Ua(e)?t:En({},t,{ownerState:En({},t.ownerState,n)})}function AV(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function qS(e,t){return typeof e=="function"?e(t):e}function Dh(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function FR(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function RV(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=Ae(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),g=En({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=En({},n,o,r);return h.length>0&&(v.className=h),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const a=AV(En({},o,r)),s=FR(r),c=FR(o),u=t(a),d=Ae(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),p=En({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=En({},u,n,c,s);return d.length>0&&(f.className=d),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:u.ref}}const _V=["elementType","externalSlotProps","ownerState"];function ra(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=Dh(e,_V),a=qS(r,o),{props:s,internalRef:c}=RV(En({},i,{externalSlotProps:a})),u=On(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return Kp(n,En({},s,{ref:u}),o)}function zR(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function PV(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(s,{inputValue:c,getOptionLabel:u})=>{let d=a?c.trim():c;n&&(d=d.toLowerCase()),t&&(d=zR(d));const p=d?s.filter(f=>{let h=(i||u)(f);return n&&(h=h.toLowerCase()),t&&(h=zR(h)),o==="start"?h.indexOf(d)===0:h.indexOf(d)>-1}):s;return typeof r=="number"?p.slice(0,r):p}}function Pb(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const IV=PV(),jR=5,OV=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function $V(e){const{unstable_isActiveElementInListbox:t=OV,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?[]:null,disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:g=!1,disableListWrap:v=!1,filterOptions:b=IV,filterSelectedOptions:y=!1,freeSolo:w=!1,getOptionDisabled:S,getOptionLabel:k=ye=>{var ue;return(ue=ye.label)!=null?ue:ye},groupBy:A,handleHomeEndKeys:T=!e.freeSolo,id:R,includeInputInList:P=!1,inputValue:_,isOptionEqualToValue:O=(ye,ue)=>ye===ue,multiple:$=!1,onChange:z,onClose:L,onHighlightChange:B,onInputChange:Y,onOpen:H,open:ee,openOnFocus:V=!1,options:W,readOnly:j=!1,selectOnFocus:I=!e.freeSolo,value:M}=e,J=xd(R);let ae=k;ae=ye=>{const ue=k(ye);return typeof ue!="string"?String(ue):ue};const Te=m.useRef(!1),he=m.useRef(!0),Ie=m.useRef(null),te=m.useRef(null),[ie,le]=m.useState(null),[oe,Ne]=m.useState(-1),me=o?0:-1,ke=m.useRef(me),[pe,it]=la({controlled:M,default:d,name:u}),[Le,Ge]=la({controlled:_,default:"",name:u,state:"inputValue"}),[st,Ye]=m.useState(!1),lt=m.useCallback((ye,ue)=>{if(!($?pe.length<ue.length:ue!==null)&&!s)return;let ft;if($)ft="";else if(ue==null)ft="";else{const Dt=ae(ue);ft=typeof Dt=="string"?Dt:""}Le!==ft&&(Ge(ft),Y&&Y(ye,ft,"reset"))},[ae,Le,$,Y,Ge,s,pe]),[Lt,Ft]=la({controlled:ee,default:!1,name:u,state:"open"}),[be,Oe]=m.useState(!0),Qe=!$&&pe!=null&&Le===ae(pe),re=Lt&&!j,Z=re?b(W.filter(ye=>!(y&&($?pe:[pe]).some(ue=>ue!==null&&O(ye,ue)))),{inputValue:Qe&&be?"":Le,getOptionLabel:ae}):[],X=Hj({filteredOptions:Z,value:pe});m.useEffect(()=>{const ye=pe!==X.value;st&&!ye||w&&!ye||lt(null,pe)},[pe,lt,st,X.value,w]);const Se=Lt&&Z.length>0&&!j,Re=Dr(ye=>{ye===-1?Ie.current.focus():ie.querySelector(`[data-tag-index="${ye}"]`).focus()});m.useEffect(()=>{$&&oe>pe.length-1&&(Ne(-1),Re(-1))},[pe,$,oe,Re]);function De(ye,ue){if(!te.current||ye===-1)return-1;let Ke=ye;for(;;){if(ue==="next"&&Ke===Z.length||ue==="previous"&&Ke===-1)return-1;const ft=te.current.querySelector(`[data-option-index="${Ke}"]`),Dt=g?!1:!ft||ft.disabled||ft.getAttribute("aria-disabled")==="true";if(ft&&!ft.hasAttribute("tabindex")||Dt)Ke+=ue==="next"?1:-1;else return Ke}}const bt=Dr(({event:ye,index:ue,reason:Ke="auto"})=>{if(ke.current=ue,ue===-1?Ie.current.removeAttribute("aria-activedescendant"):Ie.current.setAttribute("aria-activedescendant",`${J}-option-${ue}`),B&&B(ye,ue===-1?null:Z[ue],Ke),!te.current)return;const ft=te.current.querySelector(`[role="option"].${n}-focused`);ft&&(ft.classList.remove(`${n}-focused`),ft.classList.remove(`${n}-focusVisible`));const Dt=te.current.parentElement.querySelector('[role="listbox"]');if(!Dt)return;if(ue===-1){Dt.scrollTop=0;return}const Bn=te.current.querySelector(`[data-option-index="${ue}"]`);if(Bn&&(Bn.classList.add(`${n}-focused`),Ke==="keyboard"&&Bn.classList.add(`${n}-focusVisible`),Dt.scrollHeight>Dt.clientHeight&&Ke!=="mouse")){const zn=Bn,Ct=Dt.clientHeight+Dt.scrollTop,jn=zn.offsetTop+zn.offsetHeight;jn>Ct?Dt.scrollTop=jn-Dt.clientHeight:zn.offsetTop-zn.offsetHeight*(A?1.3:0)<Dt.scrollTop&&(Dt.scrollTop=zn.offsetTop-zn.offsetHeight*(A?1.3:0))}}),_t=Dr(({event:ye,diff:ue,direction:Ke="next",reason:ft="auto"})=>{if(!re)return;const Bn=De((()=>{const zn=Z.length-1;if(ue==="reset")return me;if(ue==="start")return 0;if(ue==="end")return zn;const Ct=ke.current+ue;return Ct<0?Ct===-1&&P?-1:v&&ke.current!==-1||Math.abs(ue)>1?0:zn:Ct>zn?Ct===zn+1&&P?-1:v||Math.abs(ue)>1?zn:0:Ct})(),Ke);if(bt({index:Bn,reason:ft,event:ye}),r&&ue!=="reset")if(Bn===-1)Ie.current.value=Le;else{const zn=ae(Z[Bn]);Ie.current.value=zn,zn.toLowerCase().indexOf(Le.toLowerCase())===0&&Le.length>0&&Ie.current.setSelectionRange(Le.length,zn.length)}}),zt=()=>{const ye=(ue,Ke)=>{const ft=ue?ae(ue):"",Dt=Ke?ae(Ke):"";return ft===Dt};if(ke.current!==-1&&X.filteredOptions&&X.filteredOptions.length!==Z.length&&($?pe.length===X.value.length&&X.value.every((ue,Ke)=>ae(pe[Ke])===ae(ue)):ye(X.value,pe))){const ue=X.filteredOptions[ke.current];if(ue&&Z.some(ft=>ae(ft)===ae(ue)))return!0}return!1},fn=m.useCallback(()=>{if(!re||zt())return;const ye=$?pe[0]:pe;if(Z.length===0||ye==null){_t({diff:"reset"});return}if(te.current){if(ye!=null){const ue=Z[ke.current];if($&&ue&&Pb(pe,ft=>O(ue,ft))!==-1)return;const Ke=Pb(Z,ft=>O(ft,ye));Ke===-1?_t({diff:"reset"}):bt({index:Ke});return}if(ke.current>=Z.length-1){bt({index:Z.length-1});return}bt({index:ke.current})}},[Z.length,$?!1:pe,y,_t,bt,re,Le,$]),Ut=Dr(ye=>{Yf(te,ye),ye&&fn()});m.useEffect(()=>{fn()},[fn]);const Yt=ye=>{Lt||(Ft(!0),Oe(!0),H&&H(ye))},nn=(ye,ue)=>{Lt&&(Ft(!1),L&&L(ye,ue))},Gn=(ye,ue,Ke,ft)=>{if($){if(pe.length===ue.length&&pe.every((Dt,Bn)=>Dt===ue[Bn]))return}else if(pe===ue)return;z&&z(ye,ue,Ke,ft),it(ue)},hn=m.useRef(!1),Kt=(ye,ue,Ke="selectOption",ft="options")=>{let Dt=Ke,Bn=ue;if($){Bn=Array.isArray(pe)?pe.slice():[];const zn=Pb(Bn,Ct=>O(ue,Ct));zn===-1?Bn.push(ue):ft!=="freeSolo"&&(Bn.splice(zn,1),Dt="removeOption")}lt(ye,Bn),Gn(ye,Bn,Dt,{option:ue}),!f&&(!ye||!ye.ctrlKey&&!ye.metaKey)&&nn(ye,Dt),(a===!0||a==="touch"&&hn.current||a==="mouse"&&!hn.current)&&Ie.current.blur()};function lr(ye,ue){if(ye===-1)return-1;let Ke=ye;for(;;){if(ue==="next"&&Ke===pe.length||ue==="previous"&&Ke===-1)return-1;const ft=ie.querySelector(`[data-tag-index="${Ke}"]`);if(!ft||!ft.hasAttribute("tabindex")||ft.disabled||ft.getAttribute("aria-disabled")==="true")Ke+=ue==="next"?1:-1;else return Ke}}const zr=(ye,ue)=>{if(!$)return;Le===""&&nn(ye,"toggleInput");let Ke=oe;oe===-1?Le===""&&ue==="previous"&&(Ke=pe.length-1):(Ke+=ue==="next"?1:-1,Ke<0&&(Ke=0),Ke===pe.length&&(Ke=-1)),Ke=lr(Ke,ue),Ne(Ke),Re(Ke)},Oo=ye=>{Te.current=!0,Ge(""),Y&&Y(ye,"","clear"),Gn(ye,$?[]:null,"clear")},Ko=ye=>ue=>{if(ye.onKeyDown&&ye.onKeyDown(ue),!ue.defaultMuiPrevented&&(oe!==-1&&["ArrowLeft","ArrowRight"].indexOf(ue.key)===-1&&(Ne(-1),Re(-1)),ue.which!==229))switch(ue.key){case"Home":re&&T&&(ue.preventDefault(),_t({diff:"start",direction:"next",reason:"keyboard",event:ue}));break;case"End":re&&T&&(ue.preventDefault(),_t({diff:"end",direction:"previous",reason:"keyboard",event:ue}));break;case"PageUp":ue.preventDefault(),_t({diff:-jR,direction:"previous",reason:"keyboard",event:ue}),Yt(ue);break;case"PageDown":ue.preventDefault(),_t({diff:jR,direction:"next",reason:"keyboard",event:ue}),Yt(ue);break;case"ArrowDown":ue.preventDefault(),_t({diff:1,direction:"next",reason:"keyboard",event:ue}),Yt(ue);break;case"ArrowUp":ue.preventDefault(),_t({diff:-1,direction:"previous",reason:"keyboard",event:ue}),Yt(ue);break;case"ArrowLeft":zr(ue,"previous");break;case"ArrowRight":zr(ue,"next");break;case"Enter":if(ke.current!==-1&&re){const Ke=Z[ke.current],ft=S?S(Ke):!1;if(ue.preventDefault(),ft)return;Kt(ue,Ke,"selectOption"),r&&Ie.current.setSelectionRange(Ie.current.value.length,Ie.current.value.length)}else w&&Le!==""&&Qe===!1&&($&&ue.preventDefault(),Kt(ue,Le,"createOption","freeSolo"));break;case"Escape":re?(ue.preventDefault(),ue.stopPropagation(),nn(ue,"escape")):c&&(Le!==""||$&&pe.length>0)&&(ue.preventDefault(),ue.stopPropagation(),Oo(ue));break;case"Backspace":if($&&!j&&Le===""&&pe.length>0){const Ke=oe===-1?pe.length-1:oe,ft=pe.slice();ft.splice(Ke,1),Gn(ue,ft,"removeOption",{option:pe[Ke]})}break;case"Delete":if($&&!j&&Le===""&&pe.length>0&&oe!==-1){const Ke=oe,ft=pe.slice();ft.splice(Ke,1),Gn(ue,ft,"removeOption",{option:pe[Ke]})}break}},Xo=ye=>{Ye(!0),V&&!Te.current&&Yt(ye)},Zr=ye=>{if(t(te)){Ie.current.focus();return}Ye(!1),he.current=!0,Te.current=!1,i&&ke.current!==-1&&re?Kt(ye,Z[ke.current],"blur"):i&&w&&Le!==""?Kt(ye,Le,"blur","freeSolo"):s&&lt(ye,pe),nn(ye,"blur")},$o=ye=>{const ue=ye.target.value;Le!==ue&&(Ge(ue),Oe(!1),Y&&Y(ye,ue,"input")),ue===""?!p&&!$&&Gn(ye,null,"clear"):Yt(ye)},wr=ye=>{bt({event:ye,index:Number(ye.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},No=()=>{hn.current=!0},jr=ye=>{const ue=Number(ye.currentTarget.getAttribute("data-option-index"));Kt(ye,Z[ue],"selectOption"),hn.current=!1},Gt=ye=>ue=>{const Ke=pe.slice();Ke.splice(ye,1),Gn(ue,Ke,"removeOption",{option:pe[ye]})},sn=ye=>{Lt?nn(ye,"toggleInput"):Yt(ye)},or=ye=>{ye.target.getAttribute("id")!==J&&ye.preventDefault()},Nr=()=>{Ie.current.focus(),I&&he.current&&Ie.current.selectionEnd-Ie.current.selectionStart===0&&Ie.current.select(),he.current=!1},bo=ye=>{(Le===""||!Lt)&&sn(ye)};let wo=w&&Le.length>0;wo=wo||($?pe.length>0:pe!==null);let Qi=Z;return A&&(Qi=Z.reduce((ye,ue,Ke)=>{const ft=A(ue);return ye.length>0&&ye[ye.length-1].group===ft?ye[ye.length-1].options.push(ue):ye.push({key:Ke,index:Ke,group:ft,options:[ue]}),ye},[])),h&&st&&Zr(),{getRootProps:(ye={})=>En({"aria-owns":Se?`${J}-listbox`:null},ye,{onKeyDown:Ko(ye),onMouseDown:or,onClick:Nr}),getInputLabelProps:()=>({id:`${J}-label`,htmlFor:J}),getInputProps:()=>({id:J,value:Le,onBlur:Zr,onFocus:Xo,onChange:$o,onMouseDown:bo,"aria-activedescendant":re?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Se?`${J}-listbox`:void 0,"aria-expanded":Se,autoComplete:"off",ref:Ie,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,onClick:Oo}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:sn}),getTagProps:({index:ye})=>En({key:ye,"data-tag-index":ye,tabIndex:-1},!j&&{onDelete:Gt(ye)}),getListboxProps:()=>({role:"listbox",id:`${J}-listbox`,"aria-labelledby":`${J}-label`,ref:Ut,onMouseDown:ye=>{ye.preventDefault()}}),getOptionProps:({index:ye,option:ue})=>{const Ke=($?pe:[pe]).some(Dt=>Dt!=null&&O(ue,Dt)),ft=S?S(ue):!1;return{key:ae(ue),tabIndex:-1,role:"option",id:`${J}-option-${ye}`,onMouseOver:wr,onClick:jr,onTouchStart:No,"data-option-index":ye,"aria-disabled":ft,"aria-selected":Ke}},id:J,inputValue:Le,value:pe,dirty:wo,popupOpen:re,focused:st||oe!==-1,anchorEl:ie,setAnchorEl:le,focusedTag:oe,groupedOptions:Qi}}function UR(e){return e.substring(2).toLowerCase()}function NV(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function qN(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=m.useRef(!1),s=m.useRef(null),c=m.useRef(!1),u=m.useRef(!1);m.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=On(t.ref,s),p=Dr(g=>{const v=u.current;u.current=!1;const b=Zn(s.current);if(!c.current||!s.current||"clientX"in g&&NV(g,b))return;if(a.current){a.current=!1;return}let y;g.composedPath?y=g.composedPath().indexOf(s.current)>-1:y=!b.documentElement.contains(g.target)||s.current.contains(g.target),!y&&(n||!v)&&o(g)}),f=g=>v=>{u.current=!0;const b=t.props[g];b&&b(v)},h={ref:d};return i!==!1&&(h[i]=f(i)),m.useEffect(()=>{if(i!==!1){const g=UR(i),v=Zn(s.current),b=()=>{a.current=!0};return v.addEventListener(g,p),v.addEventListener("touchmove",b),()=>{v.removeEventListener(g,p),v.removeEventListener("touchmove",b)}}},[p,i]),r!==!1&&(h[r]=f(r)),m.useEffect(()=>{if(r!==!1){const g=UR(r),v=Zn(s.current);return v.addEventListener(g,p),()=>{v.removeEventListener(g,p)}}},[p,r]),l(m.Fragment,{children:m.cloneElement(t,h)})}const LV=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function DV(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function MV(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function BV(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||MV(e))}function FV(e){const t=[],n=[];return Array.from(e.querySelectorAll(LV)).forEach((r,o)=>{const i=DV(r);i===-1||!BV(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function zV(){return!0}function jV(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=FV,isEnabled:a=zV,open:s}=e,c=m.useRef(!1),u=m.useRef(null),d=m.useRef(null),p=m.useRef(null),f=m.useRef(null),h=m.useRef(!1),g=m.useRef(null),v=On(t.ref,g),b=m.useRef(null);m.useEffect(()=>{!s||!g.current||(h.current=!n)},[n,s]),m.useEffect(()=>{if(!s||!g.current)return;const S=Zn(g.current);return g.current.contains(S.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),h.current&&g.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[s]),m.useEffect(()=>{if(!s||!g.current)return;const S=Zn(g.current),k=R=>{const{current:P}=g;if(P!==null){if(!S.hasFocus()||r||!a()||c.current){c.current=!1;return}if(!P.contains(S.activeElement)){if(R&&f.current!==R.target||S.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!h.current)return;let $=[];if((S.activeElement===u.current||S.activeElement===d.current)&&($=i(g.current)),$.length>0){var _,O;const z=!!((_=b.current)!=null&&_.shiftKey&&((O=b.current)==null?void 0:O.key)==="Tab"),L=$[0],B=$[$.length-1];typeof L!="string"&&typeof B!="string"&&(z?B.focus():L.focus())}else P.focus()}}},A=R=>{b.current=R,!(r||!a()||R.key!=="Tab")&&S.activeElement===g.current&&R.shiftKey&&(c.current=!0,d.current&&d.current.focus())};S.addEventListener("focusin",k),S.addEventListener("keydown",A,!0);const T=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&k(null)},50);return()=>{clearInterval(T),S.removeEventListener("focusin",k),S.removeEventListener("keydown",A,!0)}},[n,r,o,a,s,i]);const y=S=>{p.current===null&&(p.current=S.relatedTarget),h.current=!0,f.current=S.target;const k=t.props.onFocus;k&&k(S)},w=S=>{p.current===null&&(p.current=S.relatedTarget),h.current=!0};return x(m.Fragment,{children:[l("div",{tabIndex:s?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),m.cloneElement(t,{ref:v,onFocus:y}),l("div",{tabIndex:s?0:-1,onFocus:w,ref:d,"data-testid":"sentinelEnd"})]})}var Uo="top",zi="bottom",ji="right",Wo="left",$E="auto",Mh=[Uo,zi,ji,Wo],Ju="start",eh="end",UV="clippingParents",YN="viewport",yp="popper",WV="reference",WR=Mh.reduce(function(e,t){return e.concat([t+"-"+Ju,t+"-"+eh])},[]),KN=[].concat(Mh,[$E]).reduce(function(e,t){return e.concat([t,t+"-"+Ju,t+"-"+eh])},[]),HV="beforeRead",VV="read",GV="afterRead",qV="beforeMain",YV="main",KV="afterMain",XV="beforeWrite",JV="write",QV="afterWrite",ZV=[HV,VV,GV,qV,YV,KV,XV,JV,QV];function Ga(e){return e?(e.nodeName||"").toLowerCase():null}function Ki(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Sc(e){var t=Ki(e).Element;return e instanceof t||e instanceof Element}function Ii(e){var t=Ki(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function NE(e){if(typeof ShadowRoot>"u")return!1;var t=Ki(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function eG(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Ii(i)||!Ga(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function tG(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(c,u){return c[u]="",c},{});!Ii(o)||!Ga(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const nG={name:"applyStyles",enabled:!0,phase:"write",fn:eG,effect:tG,requires:["computeStyles"]};function Wa(e){return e.split("-")[0]}var uc=Math.max,Av=Math.min,Qu=Math.round;function YS(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function XN(){return!/^((?!chrome|android).)*safari/i.test(YS())}function Zu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Ii(e)&&(o=e.offsetWidth>0&&Qu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Qu(r.height)/e.offsetHeight||1);var a=Sc(e)?Ki(e):window,s=a.visualViewport,c=!XN()&&n,u=(r.left+(c&&s?s.offsetLeft:0))/o,d=(r.top+(c&&s?s.offsetTop:0))/i,p=r.width/o,f=r.height/i;return{width:p,height:f,top:d,right:u+p,bottom:d+f,left:u,x:u,y:d}}function LE(e){var t=Zu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function JN(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&NE(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Cs(e){return Ki(e).getComputedStyle(e)}function rG(e){return["table","td","th"].indexOf(Ga(e))>=0}function _l(e){return((Sc(e)?e.ownerDocument:e.document)||window.document).documentElement}function s1(e){return Ga(e)==="html"?e:e.assignedSlot||e.parentNode||(NE(e)?e.host:null)||_l(e)}function HR(e){return!Ii(e)||Cs(e).position==="fixed"?null:e.offsetParent}function oG(e){var t=/firefox/i.test(YS()),n=/Trident/i.test(YS());if(n&&Ii(e)){var r=Cs(e);if(r.position==="fixed")return null}var o=s1(e);for(NE(o)&&(o=o.host);Ii(o)&&["html","body"].indexOf(Ga(o))<0;){var i=Cs(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Bh(e){for(var t=Ki(e),n=HR(e);n&&rG(n)&&Cs(n).position==="static";)n=HR(n);return n&&(Ga(n)==="html"||Ga(n)==="body"&&Cs(n).position==="static")?t:n||oG(e)||t}function DE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yf(e,t,n){return uc(e,Av(t,n))}function iG(e,t,n){var r=yf(e,t,n);return r>n?n:r}function QN(){return{top:0,right:0,bottom:0,left:0}}function ZN(e){return Object.assign({},QN(),e)}function e6(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var aG=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ZN(typeof t!="number"?t:e6(t,Mh))};function sG(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Wa(n.placement),c=DE(s),u=[Wo,ji].indexOf(s)>=0,d=u?"height":"width";if(!(!i||!a)){var p=aG(o.padding,n),f=LE(i),h=c==="y"?Uo:Wo,g=c==="y"?zi:ji,v=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],b=a[c]-n.rects.reference[c],y=Bh(i),w=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,S=v/2-b/2,k=p[h],A=w-f[d]-p[g],T=w/2-f[d]/2+S,R=yf(k,T,A),P=c;n.modifiersData[r]=(t={},t[P]=R,t.centerOffset=R-T,t)}}function lG(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||JN(t.elements.popper,o)&&(t.elements.arrow=o))}const cG={name:"arrow",enabled:!0,phase:"main",fn:sG,effect:lG,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ed(e){return e.split("-")[1]}var uG={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dG(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Qu(t*o)/o||0,y:Qu(n*o)/o||0}}function VR(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,f=a.x,h=f===void 0?0:f,g=a.y,v=g===void 0?0:g,b=typeof d=="function"?d({x:h,y:v}):{x:h,y:v};h=b.x,v=b.y;var y=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Wo,k=Uo,A=window;if(u){var T=Bh(n),R="clientHeight",P="clientWidth";if(T===Ki(n)&&(T=_l(n),Cs(T).position!=="static"&&s==="absolute"&&(R="scrollHeight",P="scrollWidth")),T=T,o===Uo||(o===Wo||o===ji)&&i===eh){k=zi;var _=p&&T===A&&A.visualViewport?A.visualViewport.height:T[R];v-=_-r.height,v*=c?1:-1}if(o===Wo||(o===Uo||o===zi)&&i===eh){S=ji;var O=p&&T===A&&A.visualViewport?A.visualViewport.width:T[P];h-=O-r.width,h*=c?1:-1}}var $=Object.assign({position:s},u&&uG),z=d===!0?dG({x:h,y:v}):{x:h,y:v};if(h=z.x,v=z.y,c){var L;return Object.assign({},$,(L={},L[k]=w?"0":"",L[S]=y?"0":"",L.transform=(A.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",L))}return Object.assign({},$,(t={},t[k]=w?v+"px":"",t[S]=y?h+"px":"",t.transform="",t))}function pG(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,c=s===void 0?!0:s,u={placement:Wa(t.placement),variation:ed(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,VR(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,VR(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const fG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:pG,data:{}};var Um={passive:!0};function hG(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,c=Ki(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Um)}),s&&c.addEventListener("resize",n.update,Um),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Um)}),s&&c.removeEventListener("resize",n.update,Um)}}const mG={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hG,data:{}};var gG={left:"right",right:"left",bottom:"top",top:"bottom"};function Ug(e){return e.replace(/left|right|bottom|top/g,function(t){return gG[t]})}var vG={start:"end",end:"start"};function GR(e){return e.replace(/start|end/g,function(t){return vG[t]})}function ME(e){var t=Ki(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function BE(e){return Zu(_l(e)).left+ME(e).scrollLeft}function yG(e,t){var n=Ki(e),r=_l(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var u=XN();(u||!u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+BE(e),y:c}}function bG(e){var t,n=_l(e),r=ME(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=uc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=uc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+BE(e),c=-r.scrollTop;return Cs(o||n).direction==="rtl"&&(s+=uc(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function FE(e){var t=Cs(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function t6(e){return["html","body","#document"].indexOf(Ga(e))>=0?e.ownerDocument.body:Ii(e)&&FE(e)?e:t6(s1(e))}function bf(e,t){var n;t===void 0&&(t=[]);var r=t6(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ki(r),a=o?[i].concat(i.visualViewport||[],FE(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(bf(s1(a)))}function KS(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wG(e,t){var n=Zu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function qR(e,t,n){return t===YN?KS(yG(e,n)):Sc(t)?wG(t,n):KS(bG(_l(e)))}function SG(e){var t=bf(s1(e)),n=["absolute","fixed"].indexOf(Cs(e).position)>=0,r=n&&Ii(e)?Bh(e):e;return Sc(r)?t.filter(function(o){return Sc(o)&&JN(o,r)&&Ga(o)!=="body"}):[]}function xG(e,t,n,r){var o=t==="clippingParents"?SG(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(c,u){var d=qR(e,u,r);return c.top=uc(d.top,c.top),c.right=Av(d.right,c.right),c.bottom=Av(d.bottom,c.bottom),c.left=uc(d.left,c.left),c},qR(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function n6(e){var t=e.reference,n=e.element,r=e.placement,o=r?Wa(r):null,i=r?ed(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(o){case Uo:c={x:a,y:t.y-n.height};break;case zi:c={x:a,y:t.y+t.height};break;case ji:c={x:t.x+t.width,y:s};break;case Wo:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var u=o?DE(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Ju:c[u]=c[u]-(t[d]/2-n[d]/2);break;case eh:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function th(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,c=s===void 0?UV:s,u=n.rootBoundary,d=u===void 0?YN:u,p=n.elementContext,f=p===void 0?yp:p,h=n.altBoundary,g=h===void 0?!1:h,v=n.padding,b=v===void 0?0:v,y=ZN(typeof b!="number"?b:e6(b,Mh)),w=f===yp?WV:yp,S=e.rects.popper,k=e.elements[g?w:f],A=xG(Sc(k)?k:k.contextElement||_l(e.elements.popper),c,d,a),T=Zu(e.elements.reference),R=n6({reference:T,element:S,strategy:"absolute",placement:o}),P=KS(Object.assign({},S,R)),_=f===yp?P:T,O={top:A.top-_.top+y.top,bottom:_.bottom-A.bottom+y.bottom,left:A.left-_.left+y.left,right:_.right-A.right+y.right},$=e.modifiersData.offset;if(f===yp&&$){var z=$[o];Object.keys(O).forEach(function(L){var B=[ji,zi].indexOf(L)>=0?1:-1,Y=[Uo,zi].indexOf(L)>=0?"y":"x";O[L]+=z[Y]*B})}return O}function CG(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?KN:c,d=ed(r),p=d?s?WR:WR.filter(function(g){return ed(g)===d}):Mh,f=p.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=p);var h=f.reduce(function(g,v){return g[v]=th(e,{placement:v,boundary:o,rootBoundary:i,padding:a})[Wa(v)],g},{});return Object.keys(h).sort(function(g,v){return h[g]-h[v]})}function EG(e){if(Wa(e)===$E)return[];var t=Ug(e);return[GR(e),t,GR(t)]}function TG(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,v=n.allowedAutoPlacements,b=t.options.placement,y=Wa(b),w=y===b,S=c||(w||!g?[Ug(b)]:EG(b)),k=[b].concat(S).reduce(function(ae,Te){return ae.concat(Wa(Te)===$E?CG(t,{placement:Te,boundary:d,rootBoundary:p,padding:u,flipVariations:g,allowedAutoPlacements:v}):Te)},[]),A=t.rects.reference,T=t.rects.popper,R=new Map,P=!0,_=k[0],O=0;O<k.length;O++){var $=k[O],z=Wa($),L=ed($)===Ju,B=[Uo,zi].indexOf(z)>=0,Y=B?"width":"height",H=th(t,{placement:$,boundary:d,rootBoundary:p,altBoundary:f,padding:u}),ee=B?L?ji:Wo:L?zi:Uo;A[Y]>T[Y]&&(ee=Ug(ee));var V=Ug(ee),W=[];if(i&&W.push(H[z]<=0),s&&W.push(H[ee]<=0,H[V]<=0),W.every(function(ae){return ae})){_=$,P=!1;break}R.set($,W)}if(P)for(var j=g?3:1,I=function(Te){var he=k.find(function(Ie){var te=R.get(Ie);if(te)return te.slice(0,Te).every(function(ie){return ie})});if(he)return _=he,"break"},M=j;M>0;M--){var J=I(M);if(J==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const kG={name:"flip",enabled:!0,phase:"main",fn:TG,requiresIfExists:["offset"],data:{_skip:!1}};function YR(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function KR(e){return[Uo,ji,zi,Wo].some(function(t){return e[t]>=0})}function AG(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=th(t,{elementContext:"reference"}),s=th(t,{altBoundary:!0}),c=YR(a,r),u=YR(s,o,i),d=KR(c),p=KR(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const RG={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:AG};function _G(e,t,n){var r=Wa(e),o=[Wo,Uo].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Wo,ji].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function PG(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=KN.reduce(function(d,p){return d[p]=_G(p,t.rects,i),d},{}),s=a[t.placement],c=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const IG={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:PG};function OG(e){var t=e.state,n=e.name;t.modifiersData[n]=n6({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $G={name:"popperOffsets",enabled:!0,phase:"read",fn:OG,data:{}};function NG(e){return e==="x"?"y":"x"}function LG(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,h=f===void 0?!0:f,g=n.tetherOffset,v=g===void 0?0:g,b=th(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),y=Wa(t.placement),w=ed(t.placement),S=!w,k=DE(y),A=NG(k),T=t.modifiersData.popperOffsets,R=t.rects.reference,P=t.rects.popper,_=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,O=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(T){if(i){var L,B=k==="y"?Uo:Wo,Y=k==="y"?zi:ji,H=k==="y"?"height":"width",ee=T[k],V=ee+b[B],W=ee-b[Y],j=h?-P[H]/2:0,I=w===Ju?R[H]:P[H],M=w===Ju?-P[H]:-R[H],J=t.elements.arrow,ae=h&&J?LE(J):{width:0,height:0},Te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:QN(),he=Te[B],Ie=Te[Y],te=yf(0,R[H],ae[H]),ie=S?R[H]/2-j-te-he-O.mainAxis:I-te-he-O.mainAxis,le=S?-R[H]/2+j+te+Ie+O.mainAxis:M+te+Ie+O.mainAxis,oe=t.elements.arrow&&Bh(t.elements.arrow),Ne=oe?k==="y"?oe.clientTop||0:oe.clientLeft||0:0,me=(L=$==null?void 0:$[k])!=null?L:0,ke=ee+ie-me-Ne,pe=ee+le-me,it=yf(h?Av(V,ke):V,ee,h?uc(W,pe):W);T[k]=it,z[k]=it-ee}if(s){var Le,Ge=k==="x"?Uo:Wo,st=k==="x"?zi:ji,Ye=T[A],lt=A==="y"?"height":"width",Lt=Ye+b[Ge],Ft=Ye-b[st],be=[Uo,Wo].indexOf(y)!==-1,Oe=(Le=$==null?void 0:$[A])!=null?Le:0,Qe=be?Lt:Ye-R[lt]-P[lt]-Oe+O.altAxis,re=be?Ye+R[lt]+P[lt]-Oe-O.altAxis:Ft,Z=h&&be?iG(Qe,Ye,re):yf(h?Qe:Lt,Ye,h?re:Ft);T[A]=Z,z[A]=Z-Ye}t.modifiersData[r]=z}}const DG={name:"preventOverflow",enabled:!0,phase:"main",fn:LG,requiresIfExists:["offset"]};function MG(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function BG(e){return e===Ki(e)||!Ii(e)?ME(e):MG(e)}function FG(e){var t=e.getBoundingClientRect(),n=Qu(t.width)/e.offsetWidth||1,r=Qu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zG(e,t,n){n===void 0&&(n=!1);var r=Ii(t),o=Ii(t)&&FG(t),i=_l(t),a=Zu(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ga(t)!=="body"||FE(i))&&(s=BG(t)),Ii(t)?(c=Zu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=BE(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function jG(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function UG(e){var t=jG(e);return ZV.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function WG(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function HG(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var XR={placement:"bottom",modifiers:[],strategy:"absolute"};function JR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function VG(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?XR:o;return function(s,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},XR,i),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},p=[],f=!1,h={state:d,setOptions:function(y){var w=typeof y=="function"?y(d.options):y;v(),d.options=Object.assign({},i,d.options,w),d.scrollParents={reference:Sc(s)?bf(s):s.contextElement?bf(s.contextElement):[],popper:bf(c)};var S=UG(HG([].concat(r,d.options.modifiers)));return d.orderedModifiers=S.filter(function(k){return k.enabled}),g(),h.update()},forceUpdate:function(){if(!f){var y=d.elements,w=y.reference,S=y.popper;if(JR(w,S)){d.rects={reference:zG(w,Bh(S),d.options.strategy==="fixed"),popper:LE(S)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(O){return d.modifiersData[O.name]=Object.assign({},O.data)});for(var k=0;k<d.orderedModifiers.length;k++){if(d.reset===!0){d.reset=!1,k=-1;continue}var A=d.orderedModifiers[k],T=A.fn,R=A.options,P=R===void 0?{}:R,_=A.name;typeof T=="function"&&(d=T({state:d,options:P,name:_,instance:h})||d)}}}},update:WG(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){v(),f=!0}};if(!JR(s,c))return h;h.setOptions(u).then(function(b){!f&&u.onFirstUpdate&&u.onFirstUpdate(b)});function g(){d.orderedModifiers.forEach(function(b){var y=b.name,w=b.options,S=w===void 0?{}:w,k=b.effect;if(typeof k=="function"){var A=k({state:d,name:y,instance:h,options:S}),T=function(){};p.push(A||T)}})}function v(){p.forEach(function(b){return b()}),p=[]}return h}}var GG=[mG,$G,fG,nG,IG,kG,DG,cG,RG],qG=VG({defaultModifiers:GG});function YG(e){return typeof e=="function"?e():e}const KG=m.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=m.useState(null),c=On(m.isValidElement(r)?r.ref:null,n);if(Ho(()=>{i||s(YG(o)||document.body)},[o,i]),Ho(()=>{if(a&&!i)return Yf(n,a),()=>{Yf(n,null)}},[n,a,i]),i){if(m.isValidElement(r)){const u={ref:c};return m.cloneElement(r,u)}return l(m.Fragment,{children:r})}return l(m.Fragment,{children:a&&wy.createPortal(r,a)})}),zE=KG;function XG(e){return Ze("MuiPopperUnstyled",e)}nt("MuiPopperUnstyled",["root"]);const JG=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],QG=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function ZG(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function XS(e){return typeof e=="function"?e():e}function eq(e){return e.nodeType!==void 0}const tq=()=>tt({root:["root"]},XG,{}),nq={},rq=m.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,component:a,direction:s,disablePortal:c,modifiers:u,open:d,ownerState:p,placement:f,popperOptions:h,popperRef:g,slotProps:v={},slots:b={},TransitionProps:y}=t,w=Dh(t,JG),S=m.useRef(null),k=On(S,n),A=m.useRef(null),T=On(A,g),R=m.useRef(T);Ho(()=>{R.current=T},[T]),m.useImperativeHandle(g,()=>A.current,[]);const P=ZG(f,s),[_,O]=m.useState(P),[$,z]=m.useState(XS(o));m.useEffect(()=>{A.current&&A.current.forceUpdate()}),m.useEffect(()=>{o&&z(XS(o))},[o]),Ho(()=>{if(!$||!d)return;const ee=j=>{O(j.placement)};let V=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{ee(j)}}];u!=null&&(V=V.concat(u)),h&&h.modifiers!=null&&(V=V.concat(h.modifiers));const W=qG($,S.current,En({placement:P},h,{modifiers:V}));return R.current(W),()=>{W.destroy(),R.current(null)}},[$,c,u,d,h,P]);const L={placement:_};y!==null&&(L.TransitionProps=y);const B=tq(),Y=(r=a??b.root)!=null?r:"div",H=ra({elementType:Y,externalSlotProps:v.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:k},ownerState:En({},t,p),className:B.root});return l(Y,En({},H,{children:typeof i=="function"?i(L):i}))}),oq=m.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:f=nq,popperRef:h,style:g,transition:v=!1,slotProps:b={},slots:y={}}=t,w=Dh(t,QG),[S,k]=m.useState(!0),A=()=>{k(!1)},T=()=>{k(!0)};if(!c&&!d&&(!v||S))return null;let R;if(i)R=i;else if(r){const O=XS(r);R=O&&eq(O)?Zn(O).body:Zn(null).body}const P=!d&&c&&(!v||S)?"none":void 0,_=v?{in:d,onEnter:A,onExited:T}:void 0;return l(zE,{disablePortal:s,container:R,children:l(rq,En({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:v?!S:d,placement:p,popperOptions:f,popperRef:h,slotProps:b,slots:y},w,{style:En({position:"fixed",top:0,left:0,display:P},g),TransitionProps:_,children:o}))})}),iq=oq;function aq(e){const t=Zn(e);return t.body===e?Bi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function wf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function QR(e){return parseInt(Bi(e).getComputedStyle(e).paddingRight,10)||0}function sq(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ZR(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,c=!sq(a);s&&c&&wf(a,o)})}function Ib(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function lq(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(aq(r)){const a=sN(Zn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${QR(r)+a}px`;const s=Zn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${QR(c)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Zn(r).body;else{const a=r.parentElement,s=Bi(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function cq(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class uq{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&wf(t.modalRef,!1);const o=cq(n);ZR(n,t.mount,t.modalRef,o,!0);const i=Ib(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Ib(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=lq(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Ib(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&wf(t.modalRef,n),ZR(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&wf(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function dq(e){return Ze("MuiModal",e)}nt("MuiModal",["root","hidden"]);const pq=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],fq=e=>{const{open:t,exited:n,classes:r}=e;return tt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},dq,r)};function hq(e){return typeof e=="function"?e():e}function mq(e){return e?e.props.hasOwnProperty("in"):!1}const gq=new uq,vq=m.forwardRef(function(t,n){var r,o;const{children:i,classes:a,closeAfterTransition:s=!1,component:c,container:u,disableAutoFocus:d=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:f=!1,disablePortal:h=!1,disableRestoreFocus:g=!1,disableScrollLock:v=!1,hideBackdrop:b=!1,keepMounted:y=!1,manager:w=gq,onBackdropClick:S,onClose:k,onKeyDown:A,open:T,onTransitionEnter:R,onTransitionExited:P,slotProps:_={},slots:O={}}=t,$=Dh(t,pq),[z,L]=m.useState(!T),B=m.useRef({}),Y=m.useRef(null),H=m.useRef(null),ee=On(H,n),V=mq(i),W=(r=t["aria-hidden"])!=null?r:!0,j=()=>Zn(Y.current),I=()=>(B.current.modalRef=H.current,B.current.mountNode=Y.current,B.current),M=()=>{w.mount(I(),{disableScrollLock:v}),H.current&&(H.current.scrollTop=0)},J=Dr(()=>{const Ge=hq(u)||j().body;w.add(I(),Ge),H.current&&M()}),ae=m.useCallback(()=>w.isTopModal(I()),[w]),Te=Dr(Ge=>{Y.current=Ge,!(!Ge||!H.current)&&(T&&ae()?M():wf(H.current,W))}),he=m.useCallback(()=>{w.remove(I(),W)},[w,W]);m.useEffect(()=>()=>{he()},[he]),m.useEffect(()=>{T?J():(!V||!s)&&he()},[T,he,V,s,J]);const Ie=En({},t,{classes:a,closeAfterTransition:s,disableAutoFocus:d,disableEnforceFocus:p,disableEscapeKeyDown:f,disablePortal:h,disableRestoreFocus:g,disableScrollLock:v,exited:z,hideBackdrop:b,keepMounted:y}),te=fq(Ie),ie=()=>{L(!1),R&&R()},le=()=>{L(!0),P&&P(),s&&he()},oe=Ge=>{Ge.target===Ge.currentTarget&&(S&&S(Ge),k&&k(Ge,"backdropClick"))},Ne=Ge=>{A&&A(Ge),!(Ge.key!=="Escape"||!ae())&&(f||(Ge.stopPropagation(),k&&k(Ge,"escapeKeyDown")))},me={};i.props.tabIndex===void 0&&(me.tabIndex="-1"),V&&(me.onEnter=xv(ie,i.props.onEnter),me.onExited=xv(le,i.props.onExited));const ke=(o=c??O.root)!=null?o:"div",pe=ra({elementType:ke,externalSlotProps:_.root,externalForwardedProps:$,additionalProps:{ref:ee,role:"presentation",onKeyDown:Ne},className:te.root,ownerState:Ie}),it=O.backdrop,Le=ra({elementType:it,externalSlotProps:_.backdrop,additionalProps:{"aria-hidden":!0,onClick:oe,open:T},className:te.backdrop,ownerState:Ie});return!y&&!T&&(!V||z)?null:l(zE,{ref:Te,container:u,disablePortal:h,children:x(ke,En({},pe,{children:[!b&&it?l(it,En({},Le)):null,l(jV,{disableEnforceFocus:p,disableAutoFocus:d,disableRestoreFocus:g,isEnabled:ae,open:T,children:m.cloneElement(i,me)})]}))})}),yq=vq,bq=2;function r6(e,t){return e-t}function bp(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function e_(e,t){var n;const{index:r}=(n=e.reduce((o,i,a)=>{const s=Math.abs(t-i);return o===null||s<o.distance||s===o.distance?{distance:s,index:a}:o},null))!=null?n:{};return r}function Wm(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function t_(e,t,n){return(e-t)*100/(n-t)}function wq(e,t,n){return(n-t)*e+t}function Sq(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function xq(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Sq(t)))}function n_({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(r6)}function Hm({sliderRef:e,activeIndex:t,setActive:n}){var r,o;const i=Zn(e.current);if(!((r=e.current)!=null&&r.contains(i.activeElement))||Number(i==null||(o=i.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var a;(a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}const Cq={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Eq=e=>e;let Vm;function Ob(){return Vm===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Vm=CSS.supports("touch-action","none"):Vm=!0),Vm}function Tq(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:a=!1,max:s=100,min:c=0,name:u,onChange:d,onChangeCommitted:p,orientation:f="horizontal",ref:h,scale:g=Eq,step:v=1,tabIndex:b,value:y}=e,w=m.useRef(),[S,k]=m.useState(-1),[A,T]=m.useState(-1),[R,P]=m.useState(!1),_=m.useRef(0),[O,$]=la({controlled:y,default:n??c,name:"Slider"}),z=d&&((be,Oe,Qe)=>{const re=be.nativeEvent||be,Z=new re.constructor(re.type,re);Object.defineProperty(Z,"target",{writable:!0,value:{value:Oe,name:u}}),d(Z,Oe,Qe)}),L=Array.isArray(O);let B=L?O.slice().sort(r6):[O];B=B.map(be=>bp(be,c,s));const Y=a===!0&&v!==null?[...Array(Math.floor((s-c)/v)+1)].map((be,Oe)=>({value:c+v*Oe})):a||[],H=Y.map(be=>be.value),{isFocusVisibleRef:ee,onBlur:V,onFocus:W,ref:j}=Ih(),[I,M]=m.useState(-1),J=m.useRef(),ae=On(j,J),Te=On(h,ae),he=be=>Oe=>{var Qe;const re=Number(Oe.currentTarget.getAttribute("data-index"));W(Oe),ee.current===!0&&M(re),T(re),be==null||(Qe=be.onFocus)==null||Qe.call(be,Oe)},Ie=be=>Oe=>{var Qe;V(Oe),ee.current===!1&&M(-1),T(-1),be==null||(Qe=be.onBlur)==null||Qe.call(be,Oe)};Ho(()=>{if(r&&J.current.contains(document.activeElement)){var be;(be=document.activeElement)==null||be.blur()}},[r]),r&&S!==-1&&k(-1),r&&I!==-1&&M(-1);const te=be=>Oe=>{var Qe;(Qe=be.onChange)==null||Qe.call(be,Oe);const re=Number(Oe.currentTarget.getAttribute("data-index")),Z=B[re],X=H.indexOf(Z);let Se=Oe.target.valueAsNumber;if(Y&&v==null&&(Se=Se<Z?H[X-1]:H[X+1]),Se=bp(Se,c,s),Y&&v==null){const Re=H.indexOf(B[re]);Se=Se<B[re]?H[Re-1]:H[Re+1]}if(L){o&&(Se=bp(Se,B[re-1]||-1/0,B[re+1]||1/0));const Re=Se;Se=n_({values:B,newValue:Se,index:re});let De=re;o||(De=Se.indexOf(Re)),Hm({sliderRef:J,activeIndex:De})}$(Se),M(re),z&&z(Oe,Se,re),p&&p(Oe,Se)},ie=m.useRef();let le=f;i&&f==="horizontal"&&(le+="-reverse");const oe=({finger:be,move:Oe=!1})=>{const{current:Qe}=J,{width:re,height:Z,bottom:X,left:Se}=Qe.getBoundingClientRect();let Re;le.indexOf("vertical")===0?Re=(X-be.y)/Z:Re=(be.x-Se)/re,le.indexOf("-reverse")!==-1&&(Re=1-Re);let De;if(De=wq(Re,c,s),v)De=xq(De,v,c);else{const _t=e_(H,De);De=H[_t]}De=bp(De,c,s);let bt=0;if(L){Oe?bt=ie.current:bt=e_(B,De),o&&(De=bp(De,B[bt-1]||-1/0,B[bt+1]||1/0));const _t=De;De=n_({values:B,newValue:De,index:bt}),o&&Oe||(bt=De.indexOf(_t),ie.current=bt)}return{newValue:De,activeIndex:bt}},Ne=Dr(be=>{const Oe=Wm(be,w);if(!Oe)return;if(_.current+=1,be.type==="mousemove"&&be.buttons===0){me(be);return}const{newValue:Qe,activeIndex:re}=oe({finger:Oe,move:!0});Hm({sliderRef:J,activeIndex:re,setActive:k}),$(Qe),!R&&_.current>bq&&P(!0),z&&Qe!==O&&z(be,Qe,re)}),me=Dr(be=>{const Oe=Wm(be,w);if(P(!1),!Oe)return;const{newValue:Qe}=oe({finger:Oe,move:!0});k(-1),be.type==="touchend"&&T(-1),p&&p(be,Qe),w.current=void 0,pe()}),ke=Dr(be=>{if(r)return;Ob()||be.preventDefault();const Oe=be.changedTouches[0];Oe!=null&&(w.current=Oe.identifier);const Qe=Wm(be,w);if(Qe!==!1){const{newValue:Z,activeIndex:X}=oe({finger:Qe});Hm({sliderRef:J,activeIndex:X,setActive:k}),$(Z),z&&z(be,Z,X)}_.current=0;const re=Zn(J.current);re.addEventListener("touchmove",Ne),re.addEventListener("touchend",me)}),pe=m.useCallback(()=>{const be=Zn(J.current);be.removeEventListener("mousemove",Ne),be.removeEventListener("mouseup",me),be.removeEventListener("touchmove",Ne),be.removeEventListener("touchend",me)},[me,Ne]);m.useEffect(()=>{const{current:be}=J;return be.addEventListener("touchstart",ke,{passive:Ob()}),()=>{be.removeEventListener("touchstart",ke,{passive:Ob()}),pe()}},[pe,ke]),m.useEffect(()=>{r&&pe()},[r,pe]);const it=be=>Oe=>{var Qe;if((Qe=be.onMouseDown)==null||Qe.call(be,Oe),r||Oe.defaultPrevented||Oe.button!==0)return;Oe.preventDefault();const re=Wm(Oe,w);if(re!==!1){const{newValue:X,activeIndex:Se}=oe({finger:re});Hm({sliderRef:J,activeIndex:Se,setActive:k}),$(X),z&&z(Oe,X,Se)}_.current=0;const Z=Zn(J.current);Z.addEventListener("mousemove",Ne),Z.addEventListener("mouseup",me)},Le=t_(L?B[0]:c,c,s),Ge=t_(B[B.length-1],c,s)-Le,st=(be={})=>{const Oe={onMouseDown:it(be||{})},Qe=En({},be,Oe);return En({ref:Te},Qe)},Ye=be=>Oe=>{var Qe;(Qe=be.onMouseOver)==null||Qe.call(be,Oe);const re=Number(Oe.currentTarget.getAttribute("data-index"));T(re)},lt=be=>Oe=>{var Qe;(Qe=be.onMouseLeave)==null||Qe.call(be,Oe),T(-1)};return{active:S,axis:le,axisProps:Cq,dragging:R,focusedThumbIndex:I,getHiddenInputProps:(be={})=>{var Oe;const Qe={onChange:te(be||{}),onFocus:he(be||{}),onBlur:Ie(be||{})},re=En({},be,Qe);return En({tabIndex:b,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(s),"aria-valuemin":g(c),name:u,type:"range",min:e.min,max:e.max,step:(Oe=e.step)!=null?Oe:void 0,disabled:r},re,{style:En({},Gj,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:st,getThumbProps:(be={})=>{const Oe={onMouseOver:Ye(be||{}),onMouseLeave:lt(be||{})};return En({},be,Oe)},marks:Y,open:A,range:L,trackLeap:Ge,trackOffset:Le,values:B}}const kq=["onChange","maxRows","minRows","style","value"];function Gm(e,t){return parseInt(e[t],10)||0}const Aq={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function r_(e){return e==null||Object.keys(e).length===0}const Rq=m.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,c=Dh(t,kq),{current:u}=m.useRef(s!=null),d=m.useRef(null),p=On(n,d),f=m.useRef(null),h=m.useRef(0),[g,v]=m.useState({}),b=m.useCallback(()=>{const A=d.current,R=Bi(A).getComputedStyle(A);if(R.width==="0px")return{};const P=f.current;P.style.width=R.width,P.value=A.value||t.placeholder||"x",P.value.slice(-1)===`
91
+ `&&(P.value+=" ");const _=R["box-sizing"],O=Gm(R,"padding-bottom")+Gm(R,"padding-top"),$=Gm(R,"border-bottom-width")+Gm(R,"border-top-width"),z=P.scrollHeight;P.value="x";const L=P.scrollHeight;let B=z;i&&(B=Math.max(Number(i)*L,B)),o&&(B=Math.min(Number(o)*L,B)),B=Math.max(B,L);const Y=B+(_==="border-box"?O+$:0),H=Math.abs(B-z)<=1;return{outerHeightStyle:Y,overflow:H}},[o,i,t.placeholder]),y=(A,T)=>{const{outerHeightStyle:R,overflow:P}=T;return h.current<20&&(R>0&&Math.abs((A.outerHeightStyle||0)-R)>1||A.overflow!==P)?(h.current+=1,{overflow:P,outerHeightStyle:R}):A},w=m.useCallback(()=>{const A=b();r_(A)||v(T=>y(T,A))},[b]),S=()=>{const A=b();r_(A)||wy.flushSync(()=>{v(T=>y(T,A))})};m.useEffect(()=>{const A=bc(()=>{h.current=0,d.current&&S()}),T=Bi(d.current);T.addEventListener("resize",A);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(A),R.observe(d.current)),()=>{A.clear(),T.removeEventListener("resize",A),R&&R.disconnect()}}),Ho(()=>{w()}),m.useEffect(()=>{h.current=0},[s]);const k=A=>{h.current=0,u||w(),r&&r(A)};return x(m.Fragment,{children:[l("textarea",En({value:s,onChange:k,ref:p,rows:i,style:En({height:g.outerHeightStyle,overflow:g.overflow?"hidden":null},a)},c)),l("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:En({},Aq.shadow,a,{padding:0})})]})}),_q=Rq;function Pq(e){return Ze("MuiSvgIcon",e)}nt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Iq=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Oq=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${de(t)}`,`fontSize${de(n)}`]};return tt(o,Pq,r)},$q=C("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${de(n.color)}`],t[`fontSize${de(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,c,u,d,p,f,h,g,v,b,y,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem",large:((d=e.typography)==null||(p=d.pxToRem)==null?void 0:p.call(d,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(g=h[t.color])==null?void 0:g.main)!=null?f:{action:(v=(e.vars||e).palette)==null||(b=v.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(w=y.action)==null?void 0:w.disabled,inherit:void 0}[t.color]}}),o6=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:f="0 0 24 24"}=r,h=Fe(r,Iq),g=N({},r,{color:a,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f}),v={};d||(v.viewBox=f);const b=Oq(g);return x($q,N({as:s,className:Ae(b.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n},v,h,{ownerState:g,children:[o,p?l("title",{children:p}):null]}))});o6.muiName="SvgIcon";const JS=o6;function qe(e,t){function n(r,o){return l(JS,N({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=JS.muiName,m.memo(m.forwardRef(n))}const Nq={configure:e=>{pE.configure(e)}},Lq=Object.freeze(Object.defineProperty({__proto__:null,capitalize:de,createChainedFunction:xv,createSvgIcon:qe,debounce:bc,deprecatedPropType:Oj,isMuiElement:mf,ownerDocument:Zn,ownerWindow:Bi,requirePropFactory:$j,setRef:Yf,unstable_ClassNameGenerator:Nq,unstable_useEnhancedEffect:Ho,unstable_useId:xd,unsupportedProp:Dj,useControlled:la,useEventCallback:Dr,useForkRef:On,useIsFocusVisible:Ih},Symbol.toStringTag,{value:"Module"}));function i6(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function QS(e,t){return QS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},QS(e,t)}function jE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,QS(e,t)}const o_={disabled:!1},Rv=Ce.createContext(null);var Dq=function(t){return t.scrollTop},Xp="unmounted",Hl="exited",Vl="entering",cu="entered",ZS="exiting",Is=function(e){jE(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?s?(c=Hl,i.appearStatus=Vl):c=cu:r.unmountOnExit||r.mountOnEnter?c=Xp:c=Hl,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Xp?{status:Hl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Vl&&a!==cu&&(i=Vl):(a===Vl||a===cu)&&(i=ZS)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Vl){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ai.findDOMNode(this);a&&Dq(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Hl&&this.setState({status:Xp})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[Ai.findDOMNode(this),s],u=c[0],d=c[1],p=this.getTimeouts(),f=s?p.appear:p.enter;if(!o&&!a||o_.disabled){this.safeSetState({status:cu},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Vl},function(){i.props.onEntering(u,d),i.onTransitionEnd(f,function(){i.safeSetState({status:cu},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Ai.findDOMNode(this);if(!i||o_.disabled){this.safeSetState({status:Hl},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:ZS},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Hl},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Ai.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Xp)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=i6(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ce.createElement(Rv.Provider,{value:null},typeof a=="function"?a(o,s):Ce.cloneElement(Ce.Children.only(a),s))},t}(Ce.Component);Is.contextType=Rv;Is.propTypes={};function tu(){}Is.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tu,onEntering:tu,onEntered:tu,onExit:tu,onExiting:tu,onExited:tu};Is.UNMOUNTED=Xp;Is.EXITED=Hl;Is.ENTERING=Vl;Is.ENTERED=cu;Is.EXITING=ZS;const l1=Is;function Mq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UE(e,t){var n=function(i){return t&&m.isValidElement(i)?t(i):i},r=Object.create(null);return e&&m.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Bq(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var u=r[c][a];s[r[c][a]]=n(u)}s[c]=n(c)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}function ac(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Fq(e,t){return UE(e.children,function(n){return m.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ac(n,"appear",e),enter:ac(n,"enter",e),exit:ac(n,"exit",e)})})}function zq(e,t,n){var r=UE(e.children),o=Bq(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(m.isValidElement(a)){var s=i in t,c=i in r,u=t[i],d=m.isValidElement(u)&&!u.props.in;c&&(!s||d)?o[i]=m.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:ac(a,"exit",e),enter:ac(a,"enter",e)}):!c&&s&&!d?o[i]=m.cloneElement(a,{in:!1}):c&&s&&m.isValidElement(u)&&(o[i]=m.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:ac(a,"exit",e),enter:ac(a,"enter",e)}))}}),o}var jq=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Uq={component:"div",childFactory:function(t){return t}},WE=function(e){jE(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(Mq(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,s=i.handleExited,c=i.firstRender;return{children:c?Fq(o,s):zq(o,a,s),firstRender:!1}},n.handleExited=function(o,i){var a=UE(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var c=Cv({},s.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,s=i6(o,["component","childFactory"]),c=this.state.contextValue,u=jq(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?Ce.createElement(Rv.Provider,{value:c},u):Ce.createElement(Rv.Provider,{value:c},Ce.createElement(i,s,u))},t}(Ce.Component);WE.propTypes={};WE.defaultProps=Uq;const Wq=WE,HE=e=>e.scrollTop;function xl(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function Hq(e){return Ze("MuiCollapse",e)}nt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Vq=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Gq=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return tt(r,Hq,n)},qq=C("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>N({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&N({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Yq=C("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>N({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Kq=C("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>N({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),a6=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:s="0px",component:c,easing:u,in:d,onEnter:p,onEntered:f,onEntering:h,onExit:g,onExited:v,onExiting:b,orientation:y="vertical",style:w,timeout:S=GN.standard,TransitionComponent:k=l1}=r,A=Fe(r,Vq),T=N({},r,{orientation:y,collapsedSize:s}),R=Gq(T),P=yn(),_=m.useRef(),O=m.useRef(null),$=m.useRef(),z=typeof s=="number"?`${s}px`:s,L=y==="horizontal",B=L?"width":"height";m.useEffect(()=>()=>{clearTimeout(_.current)},[]);const Y=m.useRef(null),H=On(n,Y),ee=he=>Ie=>{if(he){const te=Y.current;Ie===void 0?he(te):he(te,Ie)}},V=()=>O.current?O.current[L?"clientWidth":"clientHeight"]:0,W=ee((he,Ie)=>{O.current&&L&&(O.current.style.position="absolute"),he.style[B]=z,p&&p(he,Ie)}),j=ee((he,Ie)=>{const te=V();O.current&&L&&(O.current.style.position="");const{duration:ie,easing:le}=xl({style:w,timeout:S,easing:u},{mode:"enter"});if(S==="auto"){const oe=P.transitions.getAutoHeightDuration(te);he.style.transitionDuration=`${oe}ms`,$.current=oe}else he.style.transitionDuration=typeof ie=="string"?ie:`${ie}ms`;he.style[B]=`${te}px`,he.style.transitionTimingFunction=le,h&&h(he,Ie)}),I=ee((he,Ie)=>{he.style[B]="auto",f&&f(he,Ie)}),M=ee(he=>{he.style[B]=`${V()}px`,g&&g(he)}),J=ee(v),ae=ee(he=>{const Ie=V(),{duration:te,easing:ie}=xl({style:w,timeout:S,easing:u},{mode:"exit"});if(S==="auto"){const le=P.transitions.getAutoHeightDuration(Ie);he.style.transitionDuration=`${le}ms`,$.current=le}else he.style.transitionDuration=typeof te=="string"?te:`${te}ms`;he.style[B]=z,he.style.transitionTimingFunction=ie,b&&b(he)});return l(k,N({in:d,onEnter:W,onEntered:I,onEntering:j,onExit:M,onExited:J,onExiting:ae,addEndListener:he=>{S==="auto"&&(_.current=setTimeout(he,$.current||0)),o&&o(Y.current,he)},nodeRef:Y,timeout:S==="auto"?null:S},A,{children:(he,Ie)=>l(qq,N({as:c,className:Ae(R.root,a,{entered:R.entered,exited:!d&&z==="0px"&&R.hidden}[he]),style:N({[L?"minWidth":"minHeight"]:z},w),ownerState:N({},T,{state:he}),ref:H},Ie,{children:l(Yq,{ownerState:N({},T,{state:he}),className:R.wrapper,ref:O,children:l(Kq,{ownerState:N({},T,{state:he}),className:R.wrapperInner,children:i})})}))}))});a6.muiSupportAuto=!0;const s6=a6;function Xq(e){return Ze("MuiPaper",e)}nt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Jq=["className","component","elevation","square","variant"],Qq=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return tt(i,Xq,o)},Zq=C("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return N({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&N({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${yt("#fff",BR(t.elevation))}, ${yt("#fff",BR(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),eY=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:c="elevation"}=r,u=Fe(r,Jq),d=N({},r,{component:i,elevation:a,square:s,variant:c}),p=Qq(d);return l(Zq,N({as:i,ownerState:d,className:Ae(p.root,o),ref:n},u))}),Cr=eY,tY=m.createContext({}),l6=tY;function nY(e){return Ze("MuiAccordion",e)}const rY=nt("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),qm=rY,oY=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],iY=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:i}=e;return tt({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!i&&"gutters"],region:["region"]},nY,t)},aY=C(Cr,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qm.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${qm.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${qm.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>N({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${qm.expanded}`]:{margin:"16px 0"}})),sY=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiAccordion"}),{children:o,className:i,defaultExpanded:a=!1,disabled:s=!1,disableGutters:c=!1,expanded:u,onChange:d,square:p=!1,TransitionComponent:f=s6,TransitionProps:h}=r,g=Fe(r,oY),[v,b]=la({controlled:u,default:a,name:"Accordion",state:"expanded"}),y=m.useCallback(R=>{b(!v),d&&d(R,!v)},[v,d,b]),[w,...S]=m.Children.toArray(o),k=m.useMemo(()=>({expanded:v,disabled:s,disableGutters:c,toggle:y}),[v,s,c,y]),A=N({},r,{square:p,disabled:s,disableGutters:c,expanded:v}),T=iY(A);return x(aY,N({className:Ae(T.root,i),ref:n,ownerState:A,square:p},g,{children:[l(l6.Provider,{value:k,children:w}),l(f,N({in:v,timeout:"auto"},h,{children:l("div",{"aria-labelledby":w.props.id,id:w.props["aria-controls"],role:"region",className:T.region,children:S})}))]}))}),c1=sY;function lY(e){return Ze("MuiAccordionDetails",e)}nt("MuiAccordionDetails",["root"]);const cY=["className"],uY=e=>{const{classes:t}=e;return tt({root:["root"]},lY,t)},dY=C("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),pY=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiAccordionDetails"}),{className:o}=r,i=Fe(r,cY),a=r,s=uY(a);return l(dY,N({className:Ae(s.root,o),ref:n,ownerState:a},i))}),u1=pY;function fY(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:c,timeout:u}=e,[d,p]=m.useState(!1),f=Ae(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=Ae(n.child,d&&n.childLeaving,r&&n.childPulsate);return!s&&!d&&p(!0),m.useEffect(()=>{if(!s&&c!=null){const v=setTimeout(c,u);return()=>{clearTimeout(v)}}},[c,s,u]),l("span",{className:f,style:h,children:l("span",{className:g})})}const hY=nt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Si=hY,mY=["center","classes","className"];let d1=e=>e,i_,a_,s_,l_;const ex=550,gY=80,vY=Rl(i_||(i_=d1`
92
+ 0% {
93
+ transform: scale(0);
94
+ opacity: 0.1;
95
+ }
96
+
97
+ 100% {
98
+ transform: scale(1);
99
+ opacity: 0.3;
100
+ }
101
+ `)),yY=Rl(a_||(a_=d1`
102
+ 0% {
103
+ opacity: 1;
104
+ }
105
+
106
+ 100% {
107
+ opacity: 0;
108
+ }
109
+ `)),bY=Rl(s_||(s_=d1`
110
+ 0% {
111
+ transform: scale(1);
112
+ }
113
+
114
+ 50% {
115
+ transform: scale(0.92);
116
+ }
117
+
118
+ 100% {
119
+ transform: scale(1);
120
+ }
121
+ `)),wY=C("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),SY=C(fY,{name:"MuiTouchRipple",slot:"Ripple"})(l_||(l_=d1`
122
+ opacity: 0;
123
+ position: absolute;
124
+
125
+ &.${0} {
126
+ opacity: 0.3;
127
+ transform: scale(1);
128
+ animation-name: ${0};
129
+ animation-duration: ${0}ms;
130
+ animation-timing-function: ${0};
131
+ }
132
+
133
+ &.${0} {
134
+ animation-duration: ${0}ms;
135
+ }
136
+
137
+ & .${0} {
138
+ opacity: 1;
139
+ display: block;
140
+ width: 100%;
141
+ height: 100%;
142
+ border-radius: 50%;
143
+ background-color: currentColor;
144
+ }
145
+
146
+ & .${0} {
147
+ opacity: 0;
148
+ animation-name: ${0};
149
+ animation-duration: ${0}ms;
150
+ animation-timing-function: ${0};
151
+ }
152
+
153
+ & .${0} {
154
+ position: absolute;
155
+ /* @noflip */
156
+ left: 0px;
157
+ top: 0;
158
+ animation-name: ${0};
159
+ animation-duration: 2500ms;
160
+ animation-timing-function: ${0};
161
+ animation-iteration-count: infinite;
162
+ animation-delay: 200ms;
163
+ }
164
+ `),Si.rippleVisible,vY,ex,({theme:e})=>e.transitions.easing.easeInOut,Si.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Si.child,Si.childLeaving,yY,ex,({theme:e})=>e.transitions.easing.easeInOut,Si.childPulsate,bY,({theme:e})=>e.transitions.easing.easeInOut),xY=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=Fe(r,mY),[c,u]=m.useState([]),d=m.useRef(0),p=m.useRef(null);m.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const f=m.useRef(!1),h=m.useRef(null),g=m.useRef(null),v=m.useRef(null);m.useEffect(()=>()=>{clearTimeout(h.current)},[]);const b=m.useCallback(k=>{const{pulsate:A,rippleX:T,rippleY:R,rippleSize:P,cb:_}=k;u(O=>[...O,l(SY,{classes:{ripple:Ae(i.ripple,Si.ripple),rippleVisible:Ae(i.rippleVisible,Si.rippleVisible),ripplePulsate:Ae(i.ripplePulsate,Si.ripplePulsate),child:Ae(i.child,Si.child),childLeaving:Ae(i.childLeaving,Si.childLeaving),childPulsate:Ae(i.childPulsate,Si.childPulsate)},timeout:ex,pulsate:A,rippleX:T,rippleY:R,rippleSize:P},d.current)]),d.current+=1,p.current=_},[i]),y=m.useCallback((k={},A={},T=()=>{})=>{const{pulsate:R=!1,center:P=o||A.pulsate,fakeElement:_=!1}=A;if((k==null?void 0:k.type)==="mousedown"&&f.current){f.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(f.current=!0);const O=_?null:v.current,$=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,L,B;if(P||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)z=Math.round($.width/2),L=Math.round($.height/2);else{const{clientX:Y,clientY:H}=k.touches&&k.touches.length>0?k.touches[0]:k;z=Math.round(Y-$.left),L=Math.round(H-$.top)}if(P)B=Math.sqrt((2*$.width**2+$.height**2)/3),B%2===0&&(B+=1);else{const Y=Math.max(Math.abs((O?O.clientWidth:0)-z),z)*2+2,H=Math.max(Math.abs((O?O.clientHeight:0)-L),L)*2+2;B=Math.sqrt(Y**2+H**2)}k!=null&&k.touches?g.current===null&&(g.current=()=>{b({pulsate:R,rippleX:z,rippleY:L,rippleSize:B,cb:T})},h.current=setTimeout(()=>{g.current&&(g.current(),g.current=null)},gY)):b({pulsate:R,rippleX:z,rippleY:L,rippleSize:B,cb:T})},[o,b]),w=m.useCallback(()=>{y({},{pulsate:!0})},[y]),S=m.useCallback((k,A)=>{if(clearTimeout(h.current),(k==null?void 0:k.type)==="touchend"&&g.current){g.current(),g.current=null,h.current=setTimeout(()=>{S(k,A)});return}g.current=null,u(T=>T.length>0?T.slice(1):T),p.current=A},[]);return m.useImperativeHandle(n,()=>({pulsate:w,start:y,stop:S}),[w,y,S]),l(wY,N({className:Ae(Si.root,i.root,a),ref:v},s,{children:l(Wq,{component:null,exit:!0,children:c})}))}),CY=xY;function EY(e){return Ze("MuiButtonBase",e)}const TY=nt("MuiButtonBase",["root","disabled","focusVisible"]),kY=TY,AY=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],RY=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=tt({root:["root",t&&"disabled",n&&"focusVisible"]},EY,o);return n&&r&&(a.root+=` ${r}`),a},_Y=C("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kY.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),PY=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:f=!1,LinkComponent:h="a",onBlur:g,onClick:v,onContextMenu:b,onDragLeave:y,onFocus:w,onFocusVisible:S,onKeyDown:k,onKeyUp:A,onMouseDown:T,onMouseLeave:R,onMouseUp:P,onTouchEnd:_,onTouchMove:O,onTouchStart:$,tabIndex:z=0,TouchRippleProps:L,touchRippleRef:B,type:Y}=r,H=Fe(r,AY),ee=m.useRef(null),V=m.useRef(null),W=On(V,B),{isFocusVisibleRef:j,onFocus:I,onBlur:M,ref:J}=Ih(),[ae,Te]=m.useState(!1);u&&ae&&Te(!1),m.useImperativeHandle(o,()=>({focusVisible:()=>{Te(!0),ee.current.focus()}}),[]);const[he,Ie]=m.useState(!1);m.useEffect(()=>{Ie(!0)},[]);const te=he&&!d&&!u;m.useEffect(()=>{ae&&f&&!d&&he&&V.current.pulsate()},[d,f,ae,he]);function ie(X,Se,Re=p){return Dr(De=>(Se&&Se(De),!Re&&V.current&&V.current[X](De),!0))}const le=ie("start",T),oe=ie("stop",b),Ne=ie("stop",y),me=ie("stop",P),ke=ie("stop",X=>{ae&&X.preventDefault(),R&&R(X)}),pe=ie("start",$),it=ie("stop",_),Le=ie("stop",O),Ge=ie("stop",X=>{M(X),j.current===!1&&Te(!1),g&&g(X)},!1),st=Dr(X=>{ee.current||(ee.current=X.currentTarget),I(X),j.current===!0&&(Te(!0),S&&S(X)),w&&w(X)}),Ye=()=>{const X=ee.current;return c&&c!=="button"&&!(X.tagName==="A"&&X.href)},lt=m.useRef(!1),Lt=Dr(X=>{f&&!lt.current&&ae&&V.current&&X.key===" "&&(lt.current=!0,V.current.stop(X,()=>{V.current.start(X)})),X.target===X.currentTarget&&Ye()&&X.key===" "&&X.preventDefault(),k&&k(X),X.target===X.currentTarget&&Ye()&&X.key==="Enter"&&!u&&(X.preventDefault(),v&&v(X))}),Ft=Dr(X=>{f&&X.key===" "&&V.current&&ae&&!X.defaultPrevented&&(lt.current=!1,V.current.stop(X,()=>{V.current.pulsate(X)})),A&&A(X),v&&X.target===X.currentTarget&&Ye()&&X.key===" "&&!X.defaultPrevented&&v(X)});let be=c;be==="button"&&(H.href||H.to)&&(be=h);const Oe={};be==="button"?(Oe.type=Y===void 0?"button":Y,Oe.disabled=u):(!H.href&&!H.to&&(Oe.role="button"),u&&(Oe["aria-disabled"]=u));const Qe=On(n,J,ee),re=N({},r,{centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:f,tabIndex:z,focusVisible:ae}),Z=RY(re);return x(_Y,N({as:be,className:Ae(Z.root,s),ownerState:re,onBlur:Ge,onClick:v,onContextMenu:oe,onFocus:st,onKeyDown:Lt,onKeyUp:Ft,onMouseDown:le,onMouseLeave:ke,onMouseUp:me,onDragLeave:Ne,onTouchEnd:it,onTouchMove:Le,onTouchStart:pe,ref:Qe,tabIndex:u?-1:z,type:Y},Oe,H,{children:[a,te?l(CY,N({ref:W,center:i},L)):null]}))}),Ui=PY;function IY(e){return Ze("MuiAccordionSummary",e)}const OY=nt("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),yu=OY,$Y=["children","className","expandIcon","focusVisibleClassName","onClick"],NY=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return tt({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},IY,t)},LY=C(Ui,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return N({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${yu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${yu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${yu.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${yu.expanded}`]:{minHeight:64}})}),DY=C("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>N({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${yu.expanded}`]:{margin:"20px 0"}})),MY=C("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${yu.expanded}`]:{transform:"rotate(180deg)"}})),BY=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiAccordionSummary"}),{children:o,className:i,expandIcon:a,focusVisibleClassName:s,onClick:c}=r,u=Fe(r,$Y),{disabled:d=!1,disableGutters:p,expanded:f,toggle:h}=m.useContext(l6),g=y=>{h&&h(y),c&&c(y)},v=N({},r,{expanded:f,disabled:d,disableGutters:p}),b=NY(v);return x(LY,N({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":f,className:Ae(b.root,i),focusVisibleClassName:Ae(b.focusVisible,s),onClick:g,ref:n,ownerState:v},u,{children:[l(DY,{className:b.content,ownerState:v,children:o}),a&&l(MY,{className:b.expandIconWrapper,ownerState:v,children:a})]}))}),p1=BY;function FY(e){return Ze("MuiAlert",e)}const zY=nt("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),c_=zY;function jY(e){return Ze("MuiIconButton",e)}const UY=nt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),WY=UY,HY=["edge","children","className","color","disabled","disableFocusRipple","size"],VY=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${de(r)}`,o&&`edge${de(o)}`,`size${de(i)}`]};return tt(a,jY,t)},GY=C(Ui,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${de(n.color)}`],n.edge&&t[`edge${de(n.edge)}`],t[`size${de(n.size)}`]]}})(({theme:e,ownerState:t})=>N({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return N({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&N({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":N({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${WY.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),qY=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium"}=r,p=Fe(r,HY),f=N({},r,{edge:o,color:s,disabled:c,disableFocusRipple:u,size:d}),h=VY(f);return l(GY,N({className:Ae(h.root,a),centerRipple:!0,focusRipple:!u,disabled:c,ref:n,ownerState:f},p,{children:i}))}),jt=qY,YY=qe(l("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),KY=qe(l("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),XY=qe(l("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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),JY=qe(l("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),c6=qe(l("path",{d:"M19 6.41L17.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"),QY=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],ZY=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${de(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return tt(i,FY,o)},eK=C(Cr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${de(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?wl:Sl,r=e.palette.mode==="light"?Sl:wl,o=t.color||t.severity;return N({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${c_.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${c_.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&N({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),tK=C("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),nK=C("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),u_=C("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),d_={success:l(YY,{fontSize:"inherit"}),warning:l(KY,{fontSize:"inherit"}),error:l(XY,{fontSize:"inherit"}),info:l(JY,{fontSize:"inherit"})},rK=m.forwardRef(function(t,n){var r,o,i,a,s,c;const u=rt({props:t,name:"MuiAlert"}),{action:d,children:p,className:f,closeText:h="Close",color:g,components:v={},componentsProps:b={},icon:y,iconMapping:w=d_,onClose:S,role:k="alert",severity:A="success",slotProps:T={},slots:R={},variant:P="standard"}=u,_=Fe(u,QY),O=N({},u,{color:g,severity:A,variant:P}),$=ZY(O),z=(r=(o=R.closeButton)!=null?o:v.CloseButton)!=null?r:jt,L=(i=(a=R.closeIcon)!=null?a:v.CloseIcon)!=null?i:c6,B=(s=T.closeButton)!=null?s:b.closeButton,Y=(c=T.closeIcon)!=null?c:b.closeIcon;return x(eK,N({role:k,elevation:0,ownerState:O,className:Ae($.root,f),ref:n},_,{children:[y!==!1?l(tK,{ownerState:O,className:$.icon,children:y||w[A]||d_[A]}):null,l(nK,{ownerState:O,className:$.message,children:p}),d!=null?l(u_,{ownerState:O,className:$.action,children:d}):null,d==null&&S?l(u_,{ownerState:O,className:$.action,children:l(z,N({size:"small","aria-label":h,title:h,color:"inherit",onClick:S},B,{children:l(L,N({fontSize:"small"},Y))}))}):null]}))}),Vt=rK;function oK(e){return Ze("MuiTypography",e)}nt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const iK=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],aK=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${de(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return tt(s,oK,a)},sK=C("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${de(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>N({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),p_={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},lK={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cK=e=>lK[e]||e,uK=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTypography"}),o=cK(r.color),i=_E(N({},r,{color:o})),{align:a="inherit",className:s,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:p=!1,variant:f="body1",variantMapping:h=p_}=i,g=Fe(i,iK),v=N({},i,{align:a,color:o,className:s,component:c,gutterBottom:u,noWrap:d,paragraph:p,variant:f,variantMapping:h}),b=c||(p?"p":h[f]||p_[f])||"span",y=aK(v);return l(sK,N({as:b,ref:n,ownerState:v,className:Ae(y.root,s)},g))}),se=uK;function dK(e){return Ze("MuiAlertTitle",e)}nt("MuiAlertTitle",["root"]);const pK=["className"],fK=e=>{const{classes:t}=e;return tt({root:["root"]},dK,t)},hK=C(se,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),mK=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiAlertTitle"}),{className:o}=r,i=Fe(r,pK),a=r,s=fK(a);return l(hK,N({gutterBottom:!0,component:"div",ownerState:a,ref:n,className:Ae(s.root,o)},i))}),_v=mK;function gK(e){return Ze("MuiAppBar",e)}nt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const vK=["className","color","enableColorOnDark","position"],yK=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${de(t)}`,`position${de(n)}`]};return tt(o,gK,r)},Ym=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,bK=C(Cr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${de(n.position)}`],t[`color${de(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return N({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&N({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&N({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&N({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Ym(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Ym(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Ym(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Ym(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),wK=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,c=Fe(r,vK),u=N({},r,{color:i,position:s,enableColorOnDark:a}),d=yK(u);return l(bK,N({square:!0,component:"header",ownerState:u,elevation:4,className:Ae(d.root,o,s==="fixed"&&"mui-fixed"),ref:n},c))}),SK=wK,xK=["components","componentsProps","slots","slotProps"],CK=C(iq,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),EK=m.forwardRef(function(t,n){var r;const o=PE(),i=rt({props:t,name:"MuiPopper"}),{components:a,componentsProps:s,slots:c,slotProps:u}=i,d=Fe(i,xK),p=(r=c==null?void 0:c.root)!=null?r:a==null?void 0:a.Root;return l(CK,N({direction:o==null?void 0:o.direction,slots:{root:p},slotProps:u??s},d,{ref:n}))}),f1=EK;function TK(e){return Ze("MuiListSubheader",e)}nt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const kK=["className","color","component","disableGutters","disableSticky","inset"],AK=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${de(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return tt(a,TK,t)},RK=C("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${de(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>N({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),_K=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:c=!1,inset:u=!1}=r,d=Fe(r,kK),p=N({},r,{color:i,component:a,disableGutters:s,disableSticky:c,inset:u}),f=AK(p);return l(RK,N({as:a,className:Ae(f.root,o),ref:n,ownerState:p},d))}),PK=_K,IK=qe(l("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function OK(e){return Ze("MuiChip",e)}const $K=nt("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),mn=$K,NK=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],LK=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:c}=e,u={root:["root",c,n&&"disabled",`size${de(r)}`,`color${de(o)}`,s&&"clickable",s&&`clickableColor${de(o)}`,a&&"deletable",a&&`deletableColor${de(o)}`,`${c}${de(o)}`],label:["label",`label${de(r)}`],avatar:["avatar",`avatar${de(r)}`,`avatarColor${de(o)}`],icon:["icon",`icon${de(r)}`,`iconColor${de(i)}`],deleteIcon:["deleteIcon",`deleteIcon${de(r)}`,`deleteIconColor${de(o)}`,`deleteIcon${de(c)}Color${de(o)}`]};return tt(u,OK,t)},DK=C("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:c}=n;return[{[`& .${mn.avatar}`]:t.avatar},{[`& .${mn.avatar}`]:t[`avatar${de(s)}`]},{[`& .${mn.avatar}`]:t[`avatarColor${de(r)}`]},{[`& .${mn.icon}`]:t.icon},{[`& .${mn.icon}`]:t[`icon${de(s)}`]},{[`& .${mn.icon}`]:t[`iconColor${de(o)}`]},{[`& .${mn.deleteIcon}`]:t.deleteIcon},{[`& .${mn.deleteIcon}`]:t[`deleteIcon${de(s)}`]},{[`& .${mn.deleteIcon}`]:t[`deleteIconColor${de(r)}`]},{[`& .${mn.deleteIcon}`]:t[`deleteIcon${de(c)}Color${de(r)}`]},t.root,t[`size${de(s)}`],t[`color${de(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${de(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${de(r)}`],t[c],t[`${c}${de(r)}`]]}})(({theme:e,ownerState:t})=>{const n=yt(e.palette.text.primary,.26),r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return N({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${mn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${mn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${mn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${mn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${mn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${mn.icon}`]:N({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&N({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${mn.deleteIcon}`]:N({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:n,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:yt(n,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:yt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>N({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>N({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${mn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${mn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${mn.avatar}`]:{marginLeft:4},[`& .${mn.avatarSmall}`]:{marginLeft:2},[`& .${mn.icon}`]:{marginLeft:4},[`& .${mn.iconSmall}`]:{marginLeft:2},[`& .${mn.deleteIcon}`]:{marginRight:5},[`& .${mn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:yt(e.palette[t.color].main,.7)}`,[`&.${mn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${mn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:yt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${mn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:yt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),MK=C("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${de(r)}`]]}})(({ownerState:e})=>N({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function f_(e){return e.key==="Backspace"||e.key==="Delete"}const BK=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:c,deleteIcon:u,disabled:d=!1,icon:p,label:f,onClick:h,onDelete:g,onKeyDown:v,onKeyUp:b,size:y="medium",variant:w="filled",tabIndex:S,skipFocusWhenDisabled:k=!1}=r,A=Fe(r,NK),T=m.useRef(null),R=On(T,n),P=W=>{W.stopPropagation(),g&&g(W)},_=W=>{W.currentTarget===W.target&&f_(W)&&W.preventDefault(),v&&v(W)},O=W=>{W.currentTarget===W.target&&(g&&f_(W)?g(W):W.key==="Escape"&&T.current&&T.current.blur()),b&&b(W)},$=a!==!1&&h?!0:a,z=$||g?Ui:c||"div",L=N({},r,{component:z,disabled:d,size:y,color:s,iconColor:m.isValidElement(p)&&p.props.color||s,onDelete:!!g,clickable:$,variant:w}),B=LK(L),Y=z===Ui?N({component:c||"div",focusVisibleClassName:B.focusVisible},g&&{disableRipple:!0}):{};let H=null;g&&(H=u&&m.isValidElement(u)?m.cloneElement(u,{className:Ae(u.props.className,B.deleteIcon),onClick:P}):l(IK,{className:Ae(B.deleteIcon),onClick:P}));let ee=null;o&&m.isValidElement(o)&&(ee=m.cloneElement(o,{className:Ae(B.avatar,o.props.className)}));let V=null;return p&&m.isValidElement(p)&&(V=m.cloneElement(p,{className:Ae(B.icon,p.props.className)})),x(DK,N({as:z,className:Ae(B.root,i),disabled:$&&d?!0:void 0,onClick:h,onKeyDown:_,onKeyUp:O,ref:R,tabIndex:k&&d?-1:S,ownerState:L},Y,A,{children:[ee||V,l(MK,{className:Ae(B.label),ownerState:L,children:f}),H]}))}),Os=BK;function Pl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const FK=m.createContext(void 0),h1=FK;function Za(){return m.useContext(h1)}function u6(e){return l(AW,N({},e,{defaultTheme:a1}))}function h_(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function VE(e,t=!1){return e&&(h_(e.value)&&e.value!==""||t&&h_(e.defaultValue)&&e.defaultValue!=="")}function zK(e){return e.startAdornment}function jK(e){return Ze("MuiInputBase",e)}const UK=nt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Qo=UK,WK=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],m1=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${de(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},g1=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},HK=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:f,startAdornment:h,type:g}=e,v={root:["root",`color${de(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",s&&"formControl",f==="small"&&"sizeSmall",d&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return tt(v,jK,t)},v1=C("div",{name:"MuiInputBase",slot:"Root",overridesResolver:m1})(({theme:e,ownerState:t})=>N({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Qo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&N({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),y1=C("input",{name:"MuiInputBase",slot:"Input",overridesResolver:g1})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=N({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return N({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Qo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Qo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),VK=l(u6,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),GK=m.forwardRef(function(t,n){var r;const o=rt({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:c,components:u={},componentsProps:d={},defaultValue:p,disabled:f,disableInjectingGlobalStyles:h,endAdornment:g,fullWidth:v=!1,id:b,inputComponent:y="input",inputProps:w={},inputRef:S,maxRows:k,minRows:A,multiline:T=!1,name:R,onBlur:P,onChange:_,onClick:O,onFocus:$,onKeyDown:z,onKeyUp:L,placeholder:B,readOnly:Y,renderSuffix:H,rows:ee,slotProps:V={},slots:W={},startAdornment:j,type:I="text",value:M}=o,J=Fe(o,WK),ae=w.value!=null?w.value:M,{current:Te}=m.useRef(ae!=null),he=m.useRef(),Ie=m.useCallback(Z=>{},[]),te=On(he,S,w.ref,Ie),[ie,le]=m.useState(!1),oe=Za(),Ne=Pl({props:o,muiFormControl:oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ne.focused=oe?oe.focused:ie,m.useEffect(()=>{!oe&&f&&ie&&(le(!1),P&&P())},[oe,f,ie,P]);const me=oe&&oe.onFilled,ke=oe&&oe.onEmpty,pe=m.useCallback(Z=>{VE(Z)?me&&me():ke&&ke()},[me,ke]);Ho(()=>{Te&&pe({value:ae})},[ae,pe,Te]);const it=Z=>{if(Ne.disabled){Z.stopPropagation();return}$&&$(Z),w.onFocus&&w.onFocus(Z),oe&&oe.onFocus?oe.onFocus(Z):le(!0)},Le=Z=>{P&&P(Z),w.onBlur&&w.onBlur(Z),oe&&oe.onBlur?oe.onBlur(Z):le(!1)},Ge=(Z,...X)=>{if(!Te){const Se=Z.target||he.current;if(Se==null)throw new Error(bl(1));pe({value:Se.value})}w.onChange&&w.onChange(Z,...X),_&&_(Z,...X)};m.useEffect(()=>{pe(he.current)},[]);const st=Z=>{he.current&&Z.currentTarget===Z.target&&he.current.focus(),O&&O(Z)};let Ye=y,lt=w;T&&Ye==="input"&&(ee?lt=N({type:void 0,minRows:ee,maxRows:ee},lt):lt=N({type:void 0,maxRows:k,minRows:A},lt),Ye=_q);const Lt=Z=>{pe(Z.animationName==="mui-auto-fill-cancel"?he.current:{value:"x"})};m.useEffect(()=>{oe&&oe.setAdornedStart(!!j)},[oe,j]);const Ft=N({},o,{color:Ne.color||"primary",disabled:Ne.disabled,endAdornment:g,error:Ne.error,focused:Ne.focused,formControl:oe,fullWidth:v,hiddenLabel:Ne.hiddenLabel,multiline:T,size:Ne.size,startAdornment:j,type:I}),be=HK(Ft),Oe=W.root||u.Root||v1,Qe=V.root||d.root||{},re=W.input||u.Input||y1;return lt=N({},lt,(r=V.input)!=null?r:d.input),x(m.Fragment,{children:[!h&&VK,x(Oe,N({},Qe,!Ua(Oe)&&{ownerState:N({},Ft,Qe.ownerState)},{ref:n,onClick:st},J,{className:Ae(be.root,Qe.className,c),children:[j,l(h1.Provider,{value:null,children:l(re,N({ownerState:Ft,"aria-invalid":Ne.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:p,disabled:Ne.disabled,id:b,onAnimationStart:Lt,name:R,placeholder:B,readOnly:Y,required:Ne.required,rows:ee,value:ae,onKeyDown:z,onKeyUp:L,type:I},lt,!Ua(re)&&{as:Ye,ownerState:N({},Ft,lt.ownerState)},{ref:te,className:Ae(be.input,lt.className),onBlur:Le,onChange:Ge,onFocus:it}))}),g,H?H(N({},Ne,{startAdornment:j})):null]}))]})}),b1=GK;function qK(e){return Ze("MuiInput",e)}const YK=N({},Qo,nt("MuiInput",["root","underline","input"])),qs=YK;function KK(e){return Ze("MuiOutlinedInput",e)}const XK=N({},Qo,nt("MuiOutlinedInput",["root","notchedOutline","input"])),Sa=XK;function JK(e){return Ze("MuiFilledInput",e)}const QK=N({},Qo,nt("MuiFilledInput",["root","underline","input"])),Zo=QK,d6=qe(l("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function ZK(e){return Ze("MuiAutocomplete",e)}const eX=nt("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),Zt=eX;var m_,g_;const tX=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],nX=e=>{const{classes:t,disablePortal:n,focused:r,fullWidth:o,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,popupOpen:c,size:u}=e,d={root:["root",r&&"focused",o&&"fullWidth",i&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${de(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return tt(d,ZK,t)},rX=C("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${Zt.tag}`]:t.tag},{[`& .${Zt.tag}`]:t[`tagSize${de(s)}`]},{[`& .${Zt.inputRoot}`]:t.inputRoot},{[`& .${Zt.input}`]:t.input},{[`& .${Zt.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>N({[`&.${Zt.focused} .${Zt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Zt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Zt.tag}`]:N({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Zt.inputRoot}`]:{flexWrap:"wrap",[`.${Zt.hasPopupIcon}&, .${Zt.hasClearIcon}&`]:{paddingRight:26+4},[`.${Zt.hasPopupIcon}.${Zt.hasClearIcon}&`]:{paddingRight:52+4},[`& .${Zt.input}`]:{width:0,minWidth:30}},[`& .${qs.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${qs.root}.${Qo.sizeSmall}`]:{[`& .${qs.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Sa.root}`]:{padding:9,[`.${Zt.hasPopupIcon}&, .${Zt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Zt.hasPopupIcon}.${Zt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Zt.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${Zt.endAdornment}`]:{right:9}},[`& .${Sa.root}.${Qo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Zt.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${Zo.root}`]:{paddingTop:19,paddingLeft:8,[`.${Zt.hasPopupIcon}&, .${Zt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Zt.hasPopupIcon}.${Zt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Zo.input}`]:{padding:"7px 4px"},[`& .${Zt.endAdornment}`]:{right:9}},[`& .${Zo.root}.${Qo.sizeSmall}`]:{paddingBottom:1,[`& .${Zo.input}`]:{padding:"2.5px 4px"}},[`& .${Qo.hiddenLabel}`]:{paddingTop:8},[`& .${Zo.root}.${Qo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Zt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Zo.root}.${Qo.hiddenLabel}.${Qo.sizeSmall}`]:{[`& .${Zt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Zt.input}`]:N({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),oX=C("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),iX=C(jt,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),aX=C(jt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>N({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>N({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),sX=C(f1,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>N({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),lX=C(Cr,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>N({},e.typography.body1,{overflow:"auto"})),cX=C("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),uX=C("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),dX=C("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Zt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Zt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Zt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Zt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),pX=C(PK,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),fX=C("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Zt.option}`]:{paddingLeft:24}}),hX=m.forwardRef(function(t,n){var r,o,i,a;const s=rt({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:u=!1,autoSelect:d=!1,blurOnSelect:p=!1,ChipProps:f,className:h,clearIcon:g=m_||(m_=l(c6,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:b=!1,clearText:y="Clear",closeText:w="Close",componentsProps:S={},defaultValue:k=s.multiple?[]:null,disableClearable:A=!1,disableCloseOnSelect:T=!1,disabled:R=!1,disabledItemsFocusable:P=!1,disableListWrap:_=!1,disablePortal:O=!1,filterSelectedOptions:$=!1,forcePopupIcon:z="auto",freeSolo:L=!1,fullWidth:B=!1,getLimitTagsText:Y=Gt=>`+${Gt}`,getOptionLabel:H=Gt=>{var sn;return(sn=Gt.label)!=null?sn:Gt},groupBy:ee,handleHomeEndKeys:V=!s.freeSolo,includeInputInList:W=!1,limitTags:j=-1,ListboxComponent:I="ul",ListboxProps:M,loading:J=!1,loadingText:ae="Loading…",multiple:Te=!1,noOptionsText:he="No options",openOnFocus:Ie=!1,openText:te="Open",PaperComponent:ie=Cr,PopperComponent:le=f1,popupIcon:oe=g_||(g_=l(d6,{})),readOnly:Ne=!1,renderGroup:me,renderInput:ke,renderOption:pe,renderTags:it,selectOnFocus:Le=!s.freeSolo,size:Ge="medium",slotProps:st={}}=s,Ye=Fe(s,tX),{getRootProps:lt,getInputProps:Lt,getInputLabelProps:Ft,getPopupIndicatorProps:be,getClearProps:Oe,getTagProps:Qe,getListboxProps:re,getOptionProps:Z,value:X,dirty:Se,id:Re,popupOpen:De,focused:bt,focusedTag:_t,anchorEl:zt,setAnchorEl:fn,inputValue:Ut,groupedOptions:Yt}=$V(N({},s,{componentName:"Autocomplete"})),nn=!A&&!R&&Se&&!Ne,Gn=(!L||z===!0)&&z!==!1,hn=N({},s,{disablePortal:O,focused:bt,fullWidth:B,hasClearIcon:nn,hasPopupIcon:Gn,inputFocused:_t===-1,popupOpen:De,size:Ge}),Kt=nX(hn);let lr;if(Te&&X.length>0){const Gt=sn=>N({className:Kt.tag,disabled:R},Qe(sn));it?lr=it(X,Gt,hn):lr=X.map((sn,or)=>l(Os,N({label:H(sn),size:Ge},Gt({index:or}),f)))}if(j>-1&&Array.isArray(lr)){const Gt=lr.length-j;!bt&&Gt>0&&(lr=lr.splice(0,j),lr.push(l("span",{className:Kt.tag,children:Y(Gt)},lr.length)))}const Oo=me||(Gt=>x("li",{children:[l(pX,{className:Kt.groupLabel,ownerState:hn,component:"div",children:Gt.group}),l(fX,{className:Kt.groupUl,ownerState:hn,children:Gt.children})]},Gt.key)),Xo=pe||((Gt,sn)=>l("li",N({},Gt,{children:H(sn)}))),Zr=(Gt,sn)=>{const or=Z({option:Gt,index:sn});return Xo(N({},or,{className:Kt.option}),Gt,{selected:or["aria-selected"],index:sn,inputValue:Ut})},$o=(r=st.clearIndicator)!=null?r:S.clearIndicator,wr=(o=st.paper)!=null?o:S.paper,No=(i=st.popper)!=null?i:S.popper,jr=(a=st.popupIndicator)!=null?a:S.popupIndicator;return x(m.Fragment,{children:[l(rX,N({ref:n,className:Ae(Kt.root,h),ownerState:hn},lt(Ye),{children:ke({id:Re,disabled:R,fullWidth:!0,size:Ge==="small"?"small":void 0,InputLabelProps:Ft(),InputProps:N({ref:fn,className:Kt.inputRoot,startAdornment:lr},(nn||Gn)&&{endAdornment:x(oX,{className:Kt.endAdornment,ownerState:hn,children:[nn?l(iX,N({},Oe(),{"aria-label":y,title:y,ownerState:hn},$o,{className:Ae(Kt.clearIndicator,$o==null?void 0:$o.className),children:g})):null,Gn?l(aX,N({},be(),{disabled:R,"aria-label":De?w:te,title:De?w:te,ownerState:hn},jr,{className:Ae(Kt.popupIndicator,jr==null?void 0:jr.className),children:oe})):null]})}),inputProps:N({className:Kt.input,disabled:R,readOnly:Ne},Lt())})})),zt?l(sX,N({as:le,disablePortal:O,style:{width:zt?zt.clientWidth:null},ownerState:hn,role:"presentation",anchorEl:zt,open:De},No,{className:Ae(Kt.popper,No==null?void 0:No.className),children:x(lX,N({ownerState:hn,as:ie},wr,{className:Ae(Kt.paper,wr==null?void 0:wr.className),children:[J&&Yt.length===0?l(cX,{className:Kt.loading,ownerState:hn,children:ae}):null,Yt.length===0&&!L&&!J?l(uX,{className:Kt.noOptions,ownerState:hn,role:"presentation",onMouseDown:Gt=>{Gt.preventDefault()},children:he}):null,Yt.length>0?l(dX,N({as:I,className:Kt.listbox,ownerState:hn},re(),M,{children:Yt.map((Gt,sn)=>ee?Oo({key:Gt.key,group:Gt.group,children:Gt.options.map((or,Nr)=>Zr(or,Gt.index+Nr))}):Zr(Gt,sn))})):null]}))})):null]})}),Ad=hX,mX=qe(l("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 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function gX(e){return Ze("MuiAvatar",e)}nt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const vX=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],yX=e=>{const{classes:t,variant:n,colorDefault:r}=e;return tt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},gX,t)},bX=C("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>N({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&N({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),wX=C("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),SX=C(mX,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function xX({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=m.useState(!1);return m.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const CX=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",imgProps:c,sizes:u,src:d,srcSet:p,variant:f="circular"}=r,h=Fe(r,vX);let g=null;const v=xX(N({},c,{src:d,srcSet:p})),b=d||p,y=b&&v!=="error",w=N({},r,{colorDefault:!y,component:s,variant:f}),S=yX(w);return y?g=l(wX,N({alt:o,src:d,srcSet:p,sizes:u,ownerState:w,className:S.img},c)):i!=null?g=i:b&&o?g=o[0]:g=l(SX,{ownerState:w,className:S.fallback}),l(bX,N({as:s,ownerState:w,className:Ae(S.root,a),ref:n},h,{children:g}))}),Rd=CX,EX=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],TX={entering:{opacity:1},entered:{opacity:1}},kX=m.forwardRef(function(t,n){const r=yn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:c,in:u,onEnter:d,onEntered:p,onEntering:f,onExit:h,onExited:g,onExiting:v,style:b,timeout:y=o,TransitionComponent:w=l1}=t,S=Fe(t,EX),k=m.useRef(null),A=On(k,s.ref,n),T=B=>Y=>{if(B){const H=k.current;Y===void 0?B(H):B(H,Y)}},R=T(f),P=T((B,Y)=>{HE(B);const H=xl({style:b,timeout:y,easing:c},{mode:"enter"});B.style.webkitTransition=r.transitions.create("opacity",H),B.style.transition=r.transitions.create("opacity",H),d&&d(B,Y)}),_=T(p),O=T(v),$=T(B=>{const Y=xl({style:b,timeout:y,easing:c},{mode:"exit"});B.style.webkitTransition=r.transitions.create("opacity",Y),B.style.transition=r.transitions.create("opacity",Y),h&&h(B)}),z=T(g);return l(w,N({appear:a,in:u,nodeRef:k,onEnter:P,onEntered:_,onEntering:R,onExit:$,onExited:z,onExiting:O,addEndListener:B=>{i&&i(k.current,B)},timeout:y},S,{children:(B,Y)=>m.cloneElement(s,N({style:N({opacity:0,visibility:B==="exited"&&!u?"hidden":void 0},TX[B],b,s.props.style),ref:A},Y))}))}),GE=kX;function AX(e){return Ze("MuiBackdrop",e)}nt("MuiBackdrop",["root","invisible"]);const RX=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],_X=e=>{const{classes:t,invisible:n}=e;return tt({root:["root",n&&"invisible"]},AX,t)},PX=C("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>N({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),IX=m.forwardRef(function(t,n){var r,o,i;const a=rt({props:t,name:"MuiBackdrop"}),{children:s,className:c,component:u="div",components:d={},componentsProps:p={},invisible:f=!1,open:h,slotProps:g={},slots:v={},TransitionComponent:b=GE,transitionDuration:y}=a,w=Fe(a,RX),S=N({},a,{component:u,invisible:f}),k=_X(S),A=(r=g.root)!=null?r:p.root;return l(b,N({in:h,timeout:y},w,{children:l(PX,N({"aria-hidden":!0},A,{as:(o=(i=v.root)!=null?i:d.Root)!=null?o:u,className:Ae(k.root,c,A==null?void 0:A.className),ownerState:N({},S,A==null?void 0:A.ownerState),classes:k,ref:n,children:s}))}))}),qE=IX,OX=i1(),$X=IH({defaultTheme:OX,defaultClassName:"MuiBox-root",generateClassName:pE.generate}),$e=$X,NX=qe(l("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),LX=C(Ui)(({theme:e})=>N({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":N({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":N({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:OR(e.palette.grey[200],.12)}:{backgroundColor:OR(e.palette.grey[600],.12)})})),DX=C(NX)({width:24,height:16});function MX(e){const t=e;return l("li",{children:l(LX,N({focusRipple:!0},e,{ownerState:t,children:l(DX,{ownerState:t})}))})}function BX(e){return Ze("MuiBreadcrumbs",e)}const FX=nt("MuiBreadcrumbs",["root","ol","li","separator"]),zX=FX,jX=["children","className","component","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],UX=e=>{const{classes:t}=e;return tt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},BX,t)},WX=C(se,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${zX.li}`]:t.li},t.root]})({}),HX=C("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),VX=C("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function GX(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,l(VX,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const qX=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",expandText:s="Show path",itemsAfterCollapse:c=1,itemsBeforeCollapse:u=1,maxItems:d=8,separator:p="/"}=r,f=Fe(r,jX),[h,g]=m.useState(!1),v=N({},r,{component:a,expanded:h,expandText:s,itemsAfterCollapse:c,itemsBeforeCollapse:u,maxItems:d,separator:p}),b=UX(v),y=m.useRef(null),w=k=>{const A=()=>{g(!0);const T=y.current.querySelector("a[href],button,[tabindex]");T&&T.focus()};return u+c>=k.length?k:[...k.slice(0,u),l(MX,{"aria-label":s,onClick:A},"ellipsis"),...k.slice(k.length-c,k.length)]},S=m.Children.toArray(o).filter(k=>m.isValidElement(k)).map((k,A)=>l("li",{className:b.li,children:k},`child-${A}`));return l(WX,N({ref:n,component:a,color:"text.secondary",className:Ae(b.root,i),ownerState:v},f,{children:l(HX,{className:b.ol,ref:y,ownerState:v,children:GX(h||d&&S.length<=d?S:w(S),b.separator,p,v)})}))}),YX=qX;function KX(e){return Ze("MuiButton",e)}const XX=nt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Km=XX,JX=m.createContext({}),QX=JX,ZX=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],eJ=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${de(t)}`,`size${de(o)}`,`${i}Size${de(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${de(o)}`],endIcon:["endIcon",`iconSize${de(o)}`]},c=tt(s,KX,a);return N({},a,c)},p6=e=>N({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),tJ=C(Ui,{shouldForwardProp:e=>Yo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${de(n.color)}`],t[`size${de(n.size)}`],t[`${n.variant}Size${de(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;return N({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":N({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":N({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Km.focusVisible}`]:N({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Km.disabled}`]:N({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${yt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Km.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Km.disabled}`]:{boxShadow:"none"}}),nJ=C("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${de(n.size)}`]]}})(({ownerState:e})=>N({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},p6(e))),rJ=C("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${de(n.size)}`]]}})(({ownerState:e})=>N({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},p6(e))),oJ=m.forwardRef(function(t,n){const r=m.useContext(QX),o=dE(r,t),i=rt({props:o,name:"MuiButton"}),{children:a,color:s="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:f=!1,endIcon:h,focusVisibleClassName:g,fullWidth:v=!1,size:b="medium",startIcon:y,type:w,variant:S="text"}=i,k=Fe(i,ZX),A=N({},i,{color:s,component:c,disabled:d,disableElevation:p,disableFocusRipple:f,fullWidth:v,size:b,type:w,variant:S}),T=eJ(A),R=y&&l(nJ,{className:T.startIcon,ownerState:A,children:y}),P=h&&l(rJ,{className:T.endIcon,ownerState:A,children:h});return x(tJ,N({ownerState:A,className:Ae(r.className,T.root,u),component:c,disabled:d,focusRipple:!f,focusVisibleClassName:Ae(T.focusVisible,g),ref:n,type:w},k,{classes:T,children:[R,a,P]}))}),Ve=oJ;function iJ(e){return Ze("MuiCard",e)}nt("MuiCard",["root"]);const aJ=["className","raised"],sJ=e=>{const{classes:t}=e;return tt({root:["root"]},iJ,t)},lJ=C(Cr,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),cJ=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=Fe(r,aJ),s=N({},r,{raised:i}),c=sJ(s);return l(lJ,N({className:Ae(c.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))}),f6=cJ;function uJ(e){return Ze("MuiCardActions",e)}nt("MuiCardActions",["root","spacing"]);const dJ=["disableSpacing","className"],pJ=e=>{const{classes:t,disableSpacing:n}=e;return tt({root:["root",!n&&"spacing"]},uJ,t)},fJ=C("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>N({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),hJ=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:i}=r,a=Fe(r,dJ),s=N({},r,{disableSpacing:o}),c=pJ(s);return l(fJ,N({className:Ae(c.root,i),ownerState:s,ref:n},a))}),mJ=hJ;function gJ(e){return Ze("PrivateSwitchBase",e)}nt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const vJ=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],yJ=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${de(o)}`],input:["input"]};return tt(i,gJ,t)},bJ=C(Ui)(({ownerState:e})=>N({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),wJ=C("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),SJ=m.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:c,disableFocusRipple:u=!1,edge:d=!1,icon:p,id:f,inputProps:h,inputRef:g,name:v,onBlur:b,onChange:y,onFocus:w,readOnly:S,required:k=!1,tabIndex:A,type:T,value:R}=t,P=Fe(t,vJ),[_,O]=la({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),$=Za(),z=W=>{w&&w(W),$&&$.onFocus&&$.onFocus(W)},L=W=>{b&&b(W),$&&$.onBlur&&$.onBlur(W)},B=W=>{if(W.nativeEvent.defaultPrevented)return;const j=W.target.checked;O(j),y&&y(W,j)};let Y=c;$&&typeof Y>"u"&&(Y=$.disabled);const H=T==="checkbox"||T==="radio",ee=N({},t,{checked:_,disabled:Y,disableFocusRipple:u,edge:d}),V=yJ(ee);return x(bJ,N({component:"span",className:Ae(V.root,a),centerRipple:!0,focusRipple:!u,disabled:Y,tabIndex:null,role:void 0,onFocus:z,onBlur:L,ownerState:ee,ref:n},P,{children:[l(wJ,N({autoFocus:r,checked:o,defaultChecked:s,className:V.input,disabled:Y,id:H?f:void 0,name:v,onChange:B,readOnly:S,ref:g,required:k,ownerState:ee,tabIndex:A,type:T},T==="checkbox"&&R===void 0?{}:{value:R},h)),_?i:p]}))}),YE=SJ,xJ=qe(l("path",{d:"M19 5v14H5V5h14m0-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-2z"}),"CheckBoxOutlineBlank"),CJ=qe(l("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),EJ=qe(l("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function TJ(e){return Ze("MuiCheckbox",e)}const kJ=nt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),$b=kJ,AJ=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],RJ=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${de(r)}`]},i=tt(o,TJ,t);return N({},t,i)},_J=C(YE,{shouldForwardProp:e=>Yo(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${de(n.color)}`]]}})(({theme:e,ownerState:t})=>N({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${$b.checked}, &.${$b.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${$b.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),PJ=l(CJ,{}),IJ=l(xJ,{}),OJ=l(EJ,{}),$J=m.forwardRef(function(t,n){var r,o;const i=rt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=PJ,color:s="primary",icon:c=IJ,indeterminate:u=!1,indeterminateIcon:d=OJ,inputProps:p,size:f="medium",className:h}=i,g=Fe(i,AJ),v=u?d:c,b=u?d:a,y=N({},i,{color:s,indeterminate:u,size:f}),w=RJ(y);return l(_J,N({type:"checkbox",inputProps:N({"data-indeterminate":u},p),icon:m.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:f}),checkedIcon:m.cloneElement(b,{fontSize:(o=b.props.fontSize)!=null?o:f}),ownerState:y,ref:n,className:Ae(w.root,h)},g,{classes:w}))}),pa=$J;function NJ(e){return Ze("MuiCircularProgress",e)}nt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const LJ=["className","color","disableShrink","size","style","thickness","value","variant"];let w1=e=>e,v_,y_,b_,w_;const Fs=44,DJ=Rl(v_||(v_=w1`
165
+ 0% {
166
+ transform: rotate(0deg);
167
+ }
168
+
169
+ 100% {
170
+ transform: rotate(360deg);
171
+ }
172
+ `)),MJ=Rl(y_||(y_=w1`
173
+ 0% {
174
+ stroke-dasharray: 1px, 200px;
175
+ stroke-dashoffset: 0;
176
+ }
177
+
178
+ 50% {
179
+ stroke-dasharray: 100px, 200px;
180
+ stroke-dashoffset: -15px;
181
+ }
182
+
183
+ 100% {
184
+ stroke-dasharray: 100px, 200px;
185
+ stroke-dashoffset: -125px;
186
+ }
187
+ `)),BJ=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${de(r)}`],svg:["svg"],circle:["circle",`circle${de(n)}`,o&&"circleDisableShrink"]};return tt(i,NJ,t)},FJ=C("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${de(n.color)}`]]}})(({ownerState:e,theme:t})=>N({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Ed(b_||(b_=w1`
188
+ animation: ${0} 1.4s linear infinite;
189
+ `),DJ)),zJ=C("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),jJ=C("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${de(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>N({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Ed(w_||(w_=w1`
190
+ animation: ${0} 1.4s ease-in-out infinite;
191
+ `),MJ)),UJ=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:c,thickness:u=3.6,value:d=0,variant:p="indeterminate"}=r,f=Fe(r,LJ),h=N({},r,{color:i,disableShrink:a,size:s,thickness:u,value:d,variant:p}),g=BJ(h),v={},b={},y={};if(p==="determinate"){const w=2*Math.PI*((Fs-u)/2);v.strokeDasharray=w.toFixed(3),y["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*w).toFixed(3)}px`,b.transform="rotate(-90deg)"}return l(FJ,N({className:Ae(g.root,o),style:N({width:s,height:s},b,c),ownerState:h,ref:n,role:"progressbar"},y,f,{children:l(zJ,{className:g.svg,ownerState:h,viewBox:`${Fs/2} ${Fs/2} ${Fs} ${Fs}`,children:l(jJ,{className:g.circle,style:v,ownerState:h,cx:Fs,cy:Fs,r:(Fs-u)/2,fill:"none",strokeWidth:u})})}))}),WJ=UJ,HJ=ZH({createStyledComponent:C("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${de(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>rt({props:e,name:"MuiContainer"})}),VJ=HJ,GJ=(e,t)=>N({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),qJ=e=>N({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),YJ=(e,t=!1)=>{var n,r;const o={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,c])=>{var u;o[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(u=c.palette)==null?void 0:u.mode}});let i=N({html:GJ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:N({margin:0},qJ(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},o);const a=(n=e.components)==null||(r=n.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function KJ(e){const t=rt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return x(m.Fragment,{children:[l(u6,{styles:o=>YJ(o,r)}),n]})}const XJ=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],JJ=e=>e.classes,QJ=C("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>N({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),ZJ=C(qE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),eQ=m.forwardRef(function(t,n){var r,o,i,a,s,c;const u=rt({name:"MuiModal",props:t}),{BackdropComponent:d=ZJ,BackdropProps:p,closeAfterTransition:f=!1,children:h,component:g,components:v={},componentsProps:b={},disableAutoFocus:y=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:k=!1,disableRestoreFocus:A=!1,disableScrollLock:T=!1,hideBackdrop:R=!1,keepMounted:P=!1,slotProps:_,slots:O,theme:$}=u,z=Fe(u,XJ),[L,B]=m.useState(!0),Y={closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:k,disableRestoreFocus:A,disableScrollLock:T,hideBackdrop:R,keepMounted:P},H=N({},u,Y,{exited:L}),ee=JJ(H),V=(r=(o=O==null?void 0:O.root)!=null?o:v.Root)!=null?r:QJ,W=(i=(a=O==null?void 0:O.backdrop)!=null?a:v.Backdrop)!=null?i:d,j=(s=_==null?void 0:_.root)!=null?s:b.root,I=(c=_==null?void 0:_.backdrop)!=null?c:b.backdrop;return l(yq,N({slots:{root:V,backdrop:W},slotProps:{root:()=>N({},qS(j,H),!Ua(V)&&{as:g,theme:$}),backdrop:()=>N({},p,qS(I,H))},onTransitionEnter:()=>B(!1),onTransitionExited:()=>B(!0),ref:n},z,{classes:ee},Y,{children:h}))}),Fh=eQ;function tQ(e){return Ze("MuiDialog",e)}const nQ=nt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Nb=nQ,rQ=m.createContext({}),h6=rQ,oQ=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],iQ=C(qE,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),aQ=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${de(n)}`],paper:["paper",`paperScroll${de(n)}`,`paperWidth${de(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return tt(a,tQ,t)},sQ=C(Fh,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),lQ=C("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${de(n.scroll)}`]]}})(({ownerState:e})=>N({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),cQ=C(Cr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${de(n.scroll)}`],t[`paperWidth${de(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>N({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${Nb.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Nb.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Nb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),uQ=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiDialog"}),o=yn(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:c,BackdropProps:u,children:d,className:p,disableEscapeKeyDown:f=!1,fullScreen:h=!1,fullWidth:g=!1,maxWidth:v="sm",onBackdropClick:b,onClose:y,open:w,PaperComponent:S=Cr,PaperProps:k={},scroll:A="paper",TransitionComponent:T=GE,transitionDuration:R=i,TransitionProps:P}=r,_=Fe(r,oQ),O=N({},r,{disableEscapeKeyDown:f,fullScreen:h,fullWidth:g,maxWidth:v,scroll:A}),$=aQ(O),z=m.useRef(),L=ee=>{z.current=ee.target===ee.currentTarget},B=ee=>{z.current&&(z.current=null,b&&b(ee),y&&y(ee,"backdropClick"))},Y=xd(s),H=m.useMemo(()=>({titleId:Y}),[Y]);return l(sQ,N({className:Ae($.root,p),closeAfterTransition:!0,components:{Backdrop:iQ},componentsProps:{backdrop:N({transitionDuration:R,as:c},u)},disableEscapeKeyDown:f,onClose:y,open:w,ref:n,onClick:B,ownerState:O},_,{children:l(T,N({appear:!0,in:w,timeout:R,role:"presentation"},P,{children:l(lQ,{className:Ae($.container),onMouseDown:L,ownerState:O,children:l(cQ,N({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":Y},k,{className:Ae($.paper,k.className),ownerState:O,children:l(h6.Provider,{value:H,children:d})}))})}))}))}),KE=uQ;function dQ(e){return Ze("MuiDialogActions",e)}nt("MuiDialogActions",["root","spacing"]);const pQ=["className","disableSpacing"],fQ=e=>{const{classes:t,disableSpacing:n}=e;return tt({root:["root",!n&&"spacing"]},dQ,t)},hQ=C("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>N({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),mQ=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=Fe(r,pQ),s=N({},r,{disableSpacing:i}),c=fQ(s);return l(hQ,N({className:Ae(c.root,o),ownerState:s,ref:n},a))}),gQ=mQ;function vQ(e){return Ze("MuiDialogContent",e)}nt("MuiDialogContent",["root","dividers"]);function yQ(e){return Ze("MuiDialogTitle",e)}const bQ=nt("MuiDialogTitle",["root"]),wQ=bQ,SQ=["className","dividers"],xQ=e=>{const{classes:t,dividers:n}=e;return tt({root:["root",n&&"dividers"]},vQ,t)},CQ=C("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>N({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${wQ.root} + &`]:{paddingTop:0}})),EQ=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=Fe(r,SQ),s=N({},r,{dividers:i}),c=xQ(s);return l(CQ,N({className:Ae(c.root,o),ownerState:s,ref:n},a))}),TQ=EQ,kQ=["className","id"],AQ=e=>{const{classes:t}=e;return tt({root:["root"]},yQ,t)},RQ=C(se,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),_Q=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,a=Fe(r,kQ),s=r,c=AQ(s),{titleId:u=i}=m.useContext(h6);return l(RQ,N({component:"h2",className:Ae(c.root,o),ownerState:s,ref:n,variant:"h6",id:u},a))}),PQ=_Q;function IQ(e){return Ze("MuiDivider",e)}const OQ=nt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),S_=OQ,$Q=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],NQ=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:c}=e;return tt({root:["root",t&&"absolute",c,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},IQ,r)},LQ=C("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>N({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:yt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({theme:e,ownerState:t})=>N({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}}),({theme:e,ownerState:t})=>N({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}}),({ownerState:e})=>N({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),DQ=C("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>N({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),MQ=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:s=i?"div":"hr",flexItem:c=!1,light:u=!1,orientation:d="horizontal",role:p=s!=="hr"?"separator":void 0,textAlign:f="center",variant:h="fullWidth"}=r,g=Fe(r,$Q),v=N({},r,{absolute:o,component:s,flexItem:c,light:u,orientation:d,role:p,textAlign:f,variant:h}),b=NQ(v);return l(LQ,N({as:s,className:Ae(b.root,a),role:p,ref:n,ownerState:v},g,{children:i?l(DQ,{className:b.wrapper,ownerState:v,children:i}):null}))}),To=MQ,BQ=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function FQ(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Bi(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=i.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,c=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),c=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+c-r.top}px)`:`translateY(${i.innerHeight+c-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function zQ(e){return typeof e=="function"?e():e}function Xm(e,t,n){const r=zQ(n),o=FQ(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const jQ=m.forwardRef(function(t,n){const r=yn(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:c,container:u,direction:d="down",easing:p=o,in:f,onEnter:h,onEntered:g,onEntering:v,onExit:b,onExited:y,onExiting:w,style:S,timeout:k=i,TransitionComponent:A=l1}=t,T=Fe(t,BQ),R=m.useRef(null),P=On(c.ref,R,n),_=V=>W=>{V&&(W===void 0?V(R.current):V(R.current,W))},O=_((V,W)=>{Xm(d,V,u),HE(V),h&&h(V,W)}),$=_((V,W)=>{const j=xl({timeout:k,style:S,easing:p},{mode:"enter"});V.style.webkitTransition=r.transitions.create("-webkit-transform",N({},j)),V.style.transition=r.transitions.create("transform",N({},j)),V.style.webkitTransform="none",V.style.transform="none",v&&v(V,W)}),z=_(g),L=_(w),B=_(V=>{const W=xl({timeout:k,style:S,easing:p},{mode:"exit"});V.style.webkitTransition=r.transitions.create("-webkit-transform",W),V.style.transition=r.transitions.create("transform",W),Xm(d,V,u),b&&b(V)}),Y=_(V=>{V.style.webkitTransition="",V.style.transition="",y&&y(V)}),H=V=>{a&&a(R.current,V)},ee=m.useCallback(()=>{R.current&&Xm(d,R.current,u)},[d,u]);return m.useEffect(()=>{if(f||d==="down"||d==="right")return;const V=bc(()=>{R.current&&Xm(d,R.current,u)}),W=Bi(R.current);return W.addEventListener("resize",V),()=>{V.clear(),W.removeEventListener("resize",V)}},[d,f,u]),m.useEffect(()=>{f||ee()},[f,ee]),l(A,N({nodeRef:R,onEnter:O,onEntered:z,onEntering:$,onExit:B,onExited:Y,onExiting:L,addEndListener:H,appear:s,in:f,timeout:k},T,{children:(V,W)=>m.cloneElement(c,N({ref:P,style:N({visibility:V==="exited"&&!f?"hidden":void 0},S,c.props.style)},W))}))}),UQ=jQ;function WQ(e){return Ze("MuiDrawer",e)}nt("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const HQ=["BackdropProps"],VQ=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],m6=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},GQ=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${de(n)}`,r!=="temporary"&&`paperAnchorDocked${de(n)}`]};return tt(o,WQ,t)},qQ=C(Fh,{name:"MuiDrawer",slot:"Root",overridesResolver:m6})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),x_=C("div",{shouldForwardProp:Yo,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:m6})({flex:"0 0 auto"}),YQ=C(Cr,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${de(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${de(n.anchor)}`]]}})(({theme:e,ownerState:t})=>N({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},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),g6={left:"right",right:"left",top:"down",bottom:"up"};function KQ(e){return["left","right"].indexOf(e)!==-1}function XQ(e,t){return e.direction==="rtl"&&KQ(t)?g6[t]:t}const JQ=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiDrawer"}),o=yn(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:c,className:u,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:f}={},onClose:h,open:g=!1,PaperProps:v={},SlideProps:b,TransitionComponent:y=UQ,transitionDuration:w=i,variant:S="temporary"}=r,k=Fe(r.ModalProps,HQ),A=Fe(r,VQ),T=m.useRef(!1);m.useEffect(()=>{T.current=!0},[]);const R=XQ(o,a),_=N({},r,{anchor:a,elevation:d,open:g,variant:S},A),O=GQ(_),$=l(YQ,N({elevation:S==="temporary"?d:0,square:!0},v,{className:Ae(O.paper,v.className),ownerState:_,children:c}));if(S==="permanent")return l(x_,N({className:Ae(O.root,O.docked,u),ownerState:_,ref:n},A,{children:$}));const z=l(y,N({in:g,direction:g6[R],timeout:w,appear:T.current},b,{children:$}));return S==="persistent"?l(x_,N({className:Ae(O.root,O.docked,u),ownerState:_,ref:n},A,{children:z})):l(qQ,N({BackdropProps:N({},s,f,{transitionDuration:w}),className:Ae(O.root,O.modal,u),open:g,ownerState:_,onClose:h,hideBackdrop:p,ref:n},A,k,{children:z}))}),QQ=JQ,ZQ=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],eZ=e=>{const{classes:t,disableUnderline:n}=e,o=tt({root:["root",!n&&"underline"],input:["input"]},JK,t);return N({},t,o)},tZ=C(v1,{shouldForwardProp:e=>Yo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...m1(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return N({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Zo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Zo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Zo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Zo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Zo.disabled}, .${Zo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Zo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&N({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),nZ=C(y1,{name:"MuiFilledInput",slot:"Input",overridesResolver:g1})(({theme:e,ownerState:t})=>N({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),v6=m.forwardRef(function(t,n){var r,o,i,a;const s=rt({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:p="input",multiline:f=!1,slotProps:h,slots:g={},type:v="text"}=s,b=Fe(s,ZQ),y=N({},s,{fullWidth:d,inputComponent:p,multiline:f,type:v}),w=eZ(s),S={root:{ownerState:y},input:{ownerState:y}},k=h??u?si(h??u,S):S,A=(r=(o=g.root)!=null?o:c.Root)!=null?r:tZ,T=(i=(a=g.input)!=null?a:c.Input)!=null?i:nZ;return l(b1,N({slots:{root:A,input:T},componentsProps:k,fullWidth:d,inputComponent:p,multiline:f,ref:n,type:v},b,{classes:w}))});v6.muiName="Input";const y6=v6;function rZ(e){return Ze("MuiFormControl",e)}nt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const oZ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],iZ=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${de(n)}`,r&&"fullWidth"]};return tt(o,rZ,t)},aZ=C("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>N({},t.root,t[`margin${de(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>N({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),sZ=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:f=!1,margin:h="none",required:g=!1,size:v="medium",variant:b="outlined"}=r,y=Fe(r,oZ),w=N({},r,{color:a,component:s,disabled:c,error:u,fullWidth:p,hiddenLabel:f,margin:h,required:g,size:v,variant:b}),S=iZ(w),[k,A]=m.useState(()=>{let L=!1;return o&&m.Children.forEach(o,B=>{if(!mf(B,["Input","Select"]))return;const Y=mf(B,["Select"])?B.props.input:B;Y&&zK(Y.props)&&(L=!0)}),L}),[T,R]=m.useState(()=>{let L=!1;return o&&m.Children.forEach(o,B=>{mf(B,["Input","Select"])&&VE(B.props,!0)&&(L=!0)}),L}),[P,_]=m.useState(!1);c&&P&&_(!1);const O=d!==void 0&&!c?d:P;let $;const z=m.useMemo(()=>({adornedStart:k,setAdornedStart:A,color:a,disabled:c,error:u,filled:T,focused:O,fullWidth:p,hiddenLabel:f,size:v,onBlur:()=>{_(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{_(!0)},registerEffect:$,required:g,variant:b}),[k,a,c,u,T,O,p,f,$,g,v,b]);return l(h1.Provider,{value:z,children:l(aZ,N({as:s,ownerState:w,className:Ae(S.root,i),ref:n},y,{children:o}))})}),$s=sZ;function lZ(e){return Ze("MuiFormControlLabel",e)}const cZ=nt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),Jm=cZ,uZ=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],dZ=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o}=e,i={root:["root",n&&"disabled",`labelPlacement${de(r)}`,o&&"error"],label:["label",n&&"disabled"]};return tt(i,lZ,t)},pZ=C("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Jm.label}`]:t.label},t.root,t[`labelPlacement${de(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>N({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Jm.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Jm.label}`]:{[`&.${Jm.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),fZ=m.forwardRef(function(t,n){var r;const o=rt({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:a={},control:s,disabled:c,disableTypography:u,label:d,labelPlacement:p="end",slotProps:f={}}=o,h=Fe(o,uZ),g=Za();let v=c;typeof v>"u"&&typeof s.props.disabled<"u"&&(v=s.props.disabled),typeof v>"u"&&g&&(v=g.disabled);const b={disabled:v};["checked","name","onChange","value","inputRef"].forEach(T=>{typeof s.props[T]>"u"&&typeof o[T]<"u"&&(b[T]=o[T])});const y=Pl({props:o,muiFormControl:g,states:["error"]}),w=N({},o,{disabled:v,labelPlacement:p,error:y.error}),S=dZ(w),k=(r=f.typography)!=null?r:a.typography;let A=d;return A!=null&&A.type!==se&&!u&&(A=l(se,N({component:"span"},k,{className:Ae(S.label,k==null?void 0:k.className),children:A}))),x(pZ,N({className:Ae(S.root,i),ownerState:w,ref:n},h,{children:[m.cloneElement(s,b),A]}))}),Mr=fZ;function hZ(e){return Ze("MuiFormGroup",e)}nt("MuiFormGroup",["root","row","error"]);const mZ=["className","row"],gZ=e=>{const{classes:t,row:n,error:r}=e;return tt({root:["root",n&&"row",r&&"error"]},hZ,t)},vZ=C("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>N({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),yZ=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,a=Fe(r,mZ),s=Za(),c=Pl({props:r,muiFormControl:s,states:["error"]}),u=N({},r,{row:i,error:c.error}),d=gZ(u);return l(vZ,N({className:Ae(d.root,o),ownerState:u,ref:n},a))}),bZ=yZ;function wZ(e){return Ze("MuiFormHelperText",e)}const SZ=nt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),C_=SZ;var E_;const xZ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],CZ=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:c}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${de(r)}`,n&&"contained",s&&"focused",a&&"filled",c&&"required"]};return tt(u,wZ,t)},EZ=C("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${de(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>N({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${C_.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${C_.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),TZ=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=Fe(r,xZ),c=Za(),u=Pl({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),d=N({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=CZ(d);return l(EZ,N({as:a,ownerState:d,className:Ae(p.root,i),ref:n},s,{children:o===" "?E_||(E_=l("span",{className:"notranslate",children:"​"})):o}))}),kZ=TZ;function AZ(e){return Ze("MuiFormLabel",e)}const RZ=nt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Sf=RZ,_Z=["children","className","color","component","disabled","error","filled","focused","required"],PZ=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,c={root:["root",`color${de(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return tt(c,AZ,t)},IZ=C("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>N({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>N({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Sf.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Sf.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Sf.error}`]:{color:(e.vars||e).palette.error.main}})),OZ=C("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Sf.error}`]:{color:(e.vars||e).palette.error.main}})),$Z=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=Fe(r,_Z),c=Za(),u=Pl({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),d=N({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=PZ(d);return x(IZ,N({as:a,ownerState:d,className:Ae(p.root,i),ref:n},s,{children:[o,u.required&&x(OZ,{ownerState:d,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),NZ=$Z,LZ=m.createContext(),T_=LZ;function DZ(e){return Ze("MuiGrid",e)}const MZ=[0,1,2,3,4,5,6,7,8,9,10],BZ=["column-reverse","column","row-reverse","row"],FZ=["nowrap","wrap-reverse","wrap"],wp=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],nh=nt("MuiGrid",["root","container","item","zeroMinWidth",...MZ.map(e=>`spacing-xs-${e}`),...BZ.map(e=>`direction-xs-${e}`),...FZ.map(e=>`wrap-xs-${e}`),...wp.map(e=>`grid-xs-${e}`),...wp.map(e=>`grid-sm-${e}`),...wp.map(e=>`grid-md-${e}`),...wp.map(e=>`grid-lg-${e}`),...wp.map(e=>`grid-xl-${e}`)]),zZ=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Lu(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function jZ({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Ky({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[o]:a;if(s==null)return r;const c=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const d=e.spacing(t.columnSpacing);if(d!=="0px"){const p=`calc(${c} + ${Lu(d)})`;u={flexBasis:p,maxWidth:p}}}i=N({flexBasis:c,flexGrow:0,maxWidth:c},u)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function UZ({theme:e,ownerState:t}){const n=Ky({values:t.direction,breakpoints:e.breakpoints.values});return Fi({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${nh.item}`]={maxWidth:"none"}),o})}function b6({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function WZ({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=Ky({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=b6({breakpoints:e.breakpoints.values,values:i})),o=Fi({theme:e},i,(s,c)=>{var u;const d=e.spacing(s);return d!=="0px"?{marginTop:`-${Lu(d)}`,[`& > .${nh.item}`]:{paddingTop:Lu(d)}}:(u=a)!=null&&u.includes(c)?{}:{marginTop:0,[`& > .${nh.item}`]:{paddingTop:0}}})}return o}function HZ({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=Ky({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=b6({breakpoints:e.breakpoints.values,values:i})),o=Fi({theme:e},i,(s,c)=>{var u;const d=e.spacing(s);return d!=="0px"?{width:`calc(100% + ${Lu(d)})`,marginLeft:`-${Lu(d)}`,[`& > .${nh.item}`]:{paddingLeft:Lu(d)}}:(u=a)!=null&&u.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${nh.item}`]:{paddingLeft:0}}})}return o}function VZ(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const GZ=C("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:c,breakpoints:u}=n;let d=[];r&&(d=VZ(a,u,t));const p=[];return u.forEach(f=>{const h=n[f];h&&p.push(t[`grid-${f}-${String(h)}`])}),[t.root,r&&t.container,i&&t.item,c&&t.zeroMinWidth,...d,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...p]}})(({ownerState:e})=>N({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),UZ,WZ,HZ,jZ);function qZ(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const YZ=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:c}=e;let u=[];n&&(u=qZ(i,c));const d=[];c.forEach(f=>{const h=e[f];h&&d.push(`grid-${f}-${String(h)}`)});const p={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...d]};return tt(p,DZ,t)},KZ=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiGrid"}),{breakpoints:o}=yn(),i=_E(r),{className:a,columns:s,columnSpacing:c,component:u="div",container:d=!1,direction:p="row",item:f=!1,rowSpacing:h,spacing:g=0,wrap:v="wrap",zeroMinWidth:b=!1}=i,y=Fe(i,zZ),w=h||g,S=c||g,k=m.useContext(T_),A=d?s||12:k,T={},R=N({},y);o.keys.forEach(O=>{y[O]!=null&&(T[O]=y[O],delete R[O])});const P=N({},i,{columns:A,container:d,direction:p,item:f,rowSpacing:w,columnSpacing:S,wrap:v,zeroMinWidth:b,spacing:g},T,{breakpoints:o.keys}),_=YZ(P);return l(T_.Provider,{value:A,children:l(GZ,N({ownerState:P,className:Ae(_.root,a),as:u,ref:n},R))})}),Wn=KZ,XZ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function tx(e){return`scale(${e}, ${e**2})`}const JZ={entering:{opacity:1,transform:tx(1)},entered:{opacity:1,transform:"none"}},Lb=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),w6=m.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:g,timeout:v="auto",TransitionComponent:b=l1}=t,y=Fe(t,XZ),w=m.useRef(),S=m.useRef(),k=yn(),A=m.useRef(null),T=On(A,i.ref,n),R=Y=>H=>{if(Y){const ee=A.current;H===void 0?Y(ee):Y(ee,H)}},P=R(d),_=R((Y,H)=>{HE(Y);const{duration:ee,delay:V,easing:W}=xl({style:g,timeout:v,easing:a},{mode:"enter"});let j;v==="auto"?(j=k.transitions.getAutoHeightDuration(Y.clientHeight),S.current=j):j=ee,Y.style.transition=[k.transitions.create("opacity",{duration:j,delay:V}),k.transitions.create("transform",{duration:Lb?j:j*.666,delay:V,easing:W})].join(","),c&&c(Y,H)}),O=R(u),$=R(h),z=R(Y=>{const{duration:H,delay:ee,easing:V}=xl({style:g,timeout:v,easing:a},{mode:"exit"});let W;v==="auto"?(W=k.transitions.getAutoHeightDuration(Y.clientHeight),S.current=W):W=H,Y.style.transition=[k.transitions.create("opacity",{duration:W,delay:ee}),k.transitions.create("transform",{duration:Lb?W:W*.666,delay:Lb?ee:ee||W*.333,easing:V})].join(","),Y.style.opacity=0,Y.style.transform=tx(.75),p&&p(Y)}),L=R(f),B=Y=>{v==="auto"&&(w.current=setTimeout(Y,S.current||0)),r&&r(A.current,Y)};return m.useEffect(()=>()=>{clearTimeout(w.current)},[]),l(b,N({appear:o,in:s,nodeRef:A,onEnter:_,onEntered:O,onEntering:P,onExit:z,onExited:L,onExiting:$,addEndListener:B,timeout:v==="auto"?null:v},y,{children:(Y,H)=>m.cloneElement(i,N({style:N({opacity:0,transform:tx(.75),visibility:Y==="exited"&&!s?"hidden":void 0},JZ[Y],g,i.props.style),ref:T},H))}))});w6.muiSupportAuto=!0;const nx=w6;function QZ(e,t,n,r,o){const[i,a]=m.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Ho(()=>{let s=!0;if(!n)return;const c=n(e),u=()=>{s&&a(c.matches)};return u(),c.addListener(u),()=>{s=!1,c.removeListener(u)}},[e,n]),i}const S6=Pf["useSyncExternalStore"];function ZZ(e,t,n,r,o){const i=m.useCallback(()=>t,[t]),a=m.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return i},[i,e,r,o,n]),[s,c]=m.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,p=>(d.addListener(p),()=>{d.removeListener(p)})]},[i,n,e]);return S6(c,s,a)}function tr(e,t={}){const n=PE(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=HN({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(S6!==void 0?ZZ:QZ)(c,o,i,a,s)}function eee(e){return Ze("MuiIcon",e)}nt("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tee=["baseClassName","className","color","component","fontSize"],nee=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${de(t)}`,`fontSize${de(n)}`]};return tt(o,eee,r)},ree=C("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${de(n.color)}`],t[`fontSize${de(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),x6=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiIcon"}),{baseClassName:o="material-icons",className:i,color:a="inherit",component:s="span",fontSize:c="medium"}=r,u=Fe(r,tee),d=N({},r,{baseClassName:o,color:a,component:s,fontSize:c}),p=nee(d);return l(ree,N({as:s,className:Ae(o,"notranslate",p.root,i),ownerState:d,"aria-hidden":!0,ref:n},u))});x6.muiName="Icon";const XE=x6,oee=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],iee=e=>{const{classes:t,disableUnderline:n}=e,o=tt({root:["root",!n&&"underline"],input:["input"]},qK,t);return N({},t,o)},aee=C(v1,{shouldForwardProp:e=>Yo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...m1(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),N({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${qs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${qs.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${qs.disabled}, .${qs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${qs.disabled}:before`]:{borderBottomStyle:"dotted"}})}),see=C(y1,{name:"MuiInput",slot:"Input",overridesResolver:g1})({}),C6=m.forwardRef(function(t,n){var r,o,i,a;const s=rt({props:t,name:"MuiInput"}),{disableUnderline:c,components:u={},componentsProps:d,fullWidth:p=!1,inputComponent:f="input",multiline:h=!1,slotProps:g,slots:v={},type:b="text"}=s,y=Fe(s,oee),w=iee(s),k={root:{ownerState:{disableUnderline:c}}},A=g??d?si(g??d,k):k,T=(r=(o=v.root)!=null?o:u.Root)!=null?r:aee,R=(i=(a=v.input)!=null?a:u.Input)!=null?i:see;return l(b1,N({slots:{root:T,input:R},slotProps:A,fullWidth:p,inputComponent:f,multiline:h,ref:n,type:b},y,{classes:w}))});C6.muiName="Input";const E6=C6;function lee(e){return Ze("MuiInputAdornment",e)}const cee=nt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),k_=cee;var A_;const uee=["children","className","component","disablePointerEvents","disableTypography","position","variant"],dee=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${de(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},pee=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${de(o)}`,a,r&&"hiddenLabel",i&&`size${de(i)}`]};return tt(s,lee,t)},fee=C("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:dee})(({theme:e,ownerState:t})=>N({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${k_.positionStart}&:not(.${k_.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),hee=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:c=!1,position:u,variant:d}=r,p=Fe(r,uee),f=Za()||{};let h=d;d&&f.variant,f&&!h&&(h=f.variant);const g=N({},r,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:u,variant:h}),v=pee(g);return l(h1.Provider,{value:null,children:l(fee,N({as:a,ownerState:g,className:Ae(v.root,i),ref:n},p,{children:typeof o=="string"&&!c?l(se,{color:"text.secondary",children:o}):x(m.Fragment,{children:[u==="start"?A_||(A_=l("span",{className:"notranslate",children:"​"})):null,o]})}))})}),JE=hee;function mee(e){return Ze("MuiInputLabel",e)}nt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const gee=["disableAnimation","margin","shrink","variant","className"],vee=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,u=tt({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",a],asterisk:[s&&"asterisk"]},mee,t);return N({},t,u)},yee=C(NZ,{shouldForwardProp:e=>Yo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Sf.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>N({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&N({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&N({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&N({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))),bee=m.forwardRef(function(t,n){const r=rt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=Fe(r,gee),c=Za();let u=i;typeof u>"u"&&c&&(u=c.filled||c.focused||c.adornedStart);const d=Pl({props:r,muiFormControl:c,states:["size","variant","required"]}),p=N({},r,{disableAnimation:o,formControl:c,shrink:u,size:d.size,variant:d.variant,required:d.required}),f=vee(p);return l(yee,N({"data-shrink":u,ownerState:p,ref:n,className:Ae(f.root,a)},s,{classes:f}))}),zh=bee;function wee(e){return Ze("MuiLinearProgress",e)}const See=nt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),R_=See,xee=["className","color","value","valueBuffer","variant"];let _d=e=>e,__,P_,I_,O_,$_,N_;const rx=4,Cee=Rl(__||(__=_d`
192
+ 0% {
193
+ left: -35%;
194
+ right: 100%;
195
+ }
196
+
197
+ 60% {
198
+ left: 100%;
199
+ right: -90%;
200
+ }
201
+
202
+ 100% {
203
+ left: 100%;
204
+ right: -90%;
205
+ }
206
+ `)),Eee=Rl(P_||(P_=_d`
207
+ 0% {
208
+ left: -200%;
209
+ right: 100%;
210
+ }
211
+
212
+ 60% {
213
+ left: 107%;
214
+ right: -8%;
215
+ }
216
+
217
+ 100% {
218
+ left: 107%;
219
+ right: -8%;
220
+ }
221
+ `)),Tee=Rl(I_||(I_=_d`
222
+ 0% {
223
+ opacity: 1;
224
+ background-position: 0 -23px;
225
+ }
226
+
227
+ 60% {
228
+ opacity: 0;
229
+ background-position: 0 -23px;
230
+ }
231
+
232
+ 100% {
233
+ opacity: 1;
234
+ background-position: -200px -23px;
235
+ }
236
+ `)),kee=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${de(r)}`,n],dashed:["dashed",`dashedColor${de(r)}`],bar1:["bar",`barColor${de(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${de(r)}`,n==="buffer"&&`color${de(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return tt(o,wee,t)},QE=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Sl(e.palette[t].main,.62):wl(e.palette[t].main,.5),Aee=C("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${de(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>N({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:QE(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),Ree=C("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${de(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=QE(t,e.color);return N({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Ed(O_||(O_=_d`
237
+ animation: ${0} 3s infinite linear;
238
+ `),Tee)),_ee=C("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${de(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>N({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${rx}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${rx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ed($_||($_=_d`
239
+ width: auto;
240
+ animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
241
+ `),Cee)),Pee=C("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${de(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>N({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:QE(t,e.color),transition:`transform .${rx}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Ed(N_||(N_=_d`
242
+ width: auto;
243
+ animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
244
+ `),Eee)),Iee=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:a,valueBuffer:s,variant:c="indeterminate"}=r,u=Fe(r,xee),d=N({},r,{color:i,variant:c}),p=kee(d),f=yn(),h={},g={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&a!==void 0){h["aria-valuenow"]=Math.round(a),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let v=a-100;f.direction==="rtl"&&(v=-v),g.bar1.transform=`translateX(${v}%)`}if(c==="buffer"&&s!==void 0){let v=(s||0)-100;f.direction==="rtl"&&(v=-v),g.bar2.transform=`translateX(${v}%)`}return x(Aee,N({className:Ae(p.root,o),ownerState:d,role:"progressbar"},h,{ref:n},u,{children:[c==="buffer"?l(Ree,{className:p.dashed,ownerState:d}):null,l(_ee,{className:p.bar1,ownerState:d,style:g.bar1}),c==="determinate"?null:l(Pee,{className:p.bar2,ownerState:d,style:g.bar2})]}))}),T6=Iee;function Oee(e){return Ze("MuiLink",e)}const $ee=nt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Nee=$ee,k6={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Lee=e=>k6[e]||e,Dee=({theme:e,ownerState:t})=>{const n=Lee(t.color),r=Xu(e,`palette.${n}`,!1)||t.color,o=Xu(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:yt(r,.4)},Mee=Dee,Bee=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Fee=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${de(o)}`,n==="button"&&"button",r&&"focusVisible"]};return tt(i,Oee,t)},zee=C(se,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${de(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>N({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&N({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Mee({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Nee.focusVisible}`]:{outline:"auto"}})),jee=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:s,onFocus:c,TypographyClasses:u,underline:d="always",variant:p="inherit",sx:f}=r,h=Fe(r,Bee),{isFocusVisibleRef:g,onBlur:v,onFocus:b,ref:y}=Ih(),[w,S]=m.useState(!1),k=On(n,y),A=_=>{v(_),g.current===!1&&S(!1),s&&s(_)},T=_=>{b(_),g.current===!0&&S(!0),c&&c(_)},R=N({},r,{color:i,component:a,focusVisible:w,underline:d,variant:p}),P=Fee(R);return l(zee,N({color:i,className:Ae(P.root,o),classes:u,component:a,onBlur:A,onFocus:T,ref:k,ownerState:R,variant:p,sx:[...Object.keys(k6).includes(i)?[]:[{color:i}],...Array.isArray(f)?f:[f]]},h))}),Gr=jee,Uee=m.createContext({}),Oi=Uee;function Wee(e){return Ze("MuiList",e)}nt("MuiList",["root","padding","dense","subheader"]);const Hee=["children","className","component","dense","disablePadding","subheader"],Vee=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return tt({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Wee,t)},Gee=C("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>N({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),qee=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:c=!1,subheader:u}=r,d=Fe(r,Hee),p=m.useMemo(()=>({dense:s}),[s]),f=N({},r,{component:a,dense:s,disablePadding:c}),h=Vee(f);return l(Oi.Provider,{value:p,children:x(Gee,N({as:a,className:Ae(h.root,i),ref:n,ownerState:f},d,{children:[u,o]}))})}),ca=qee;function Yee(e){return Ze("MuiListItem",e)}const Kee=nt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),uu=Kee;function Xee(e){return Ze("MuiListItemButton",e)}const Jee=nt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),du=Jee,Qee=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Zee=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ete=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e,u=tt({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},Xee,n);return N({},n,u)},tte=C(Ui,{shouldForwardProp:e=>Yo(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Zee})(({theme:e,ownerState:t})=>N({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"}},[`&.${du.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${du.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${du.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${du.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${du.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),nte=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:s,dense:c=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:p,selected:f=!1,className:h}=r,g=Fe(r,Qee),v=m.useContext(Oi),b=m.useMemo(()=>({dense:c||v.dense||!1,alignItems:o,disableGutters:u}),[o,v.dense,c,u]),y=m.useRef(null);Ho(()=>{i&&y.current&&y.current.focus()},[i]);const w=N({},r,{alignItems:o,dense:b.dense,disableGutters:u,divider:d,selected:f}),S=ete(w),k=On(y,n);return l(Oi.Provider,{value:b,children:l(tte,N({ref:k,href:g.href||g.to,component:(g.href||g.to)&&a==="div"?"a":a,focusVisibleClassName:Ae(S.focusVisible,p),ownerState:w,className:Ae(S.root,h)},g,{classes:S,children:s}))})}),rte=nte;function ote(e){return Ze("MuiListItemSecondaryAction",e)}nt("MuiListItemSecondaryAction",["root","disableGutters"]);const ite=["className"],ate=e=>{const{disableGutters:t,classes:n}=e;return tt({root:["root",t&&"disableGutters"]},ote,n)},ste=C("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>N({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),A6=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=Fe(r,ite),a=m.useContext(Oi),s=N({},r,{disableGutters:a.disableGutters}),c=ate(s);return l(ste,N({className:Ae(c.root,o),ownerState:s,ref:n},i))});A6.muiName="ListItemSecondaryAction";const lte=A6,cte=["className"],ute=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],dte=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},pte=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:c,hasSecondaryAction:u,selected:d}=e;return tt({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]},Yee,r)},fte=C("div",{name:"MuiListItem",slot:"Root",overridesResolver:dte})(({theme:e,ownerState:t})=>N({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&N({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${du.root}`]:{paddingRight:48}},{[`&.${uu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${uu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${uu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{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"}},[`&.${uu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),hte=C("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),mte=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:s,className:c,component:u,components:d={},componentsProps:p={},ContainerComponent:f="li",ContainerProps:{className:h}={},dense:g=!1,disabled:v=!1,disableGutters:b=!1,disablePadding:y=!1,divider:w=!1,focusVisibleClassName:S,secondaryAction:k,selected:A=!1,slotProps:T={},slots:R={}}=r,P=Fe(r.ContainerProps,cte),_=Fe(r,ute),O=m.useContext(Oi),$=m.useMemo(()=>({dense:g||O.dense||!1,alignItems:o,disableGutters:b}),[o,O.dense,g,b]),z=m.useRef(null);Ho(()=>{i&&z.current&&z.current.focus()},[i]);const L=m.Children.toArray(s),B=L.length&&mf(L[L.length-1],["ListItemSecondaryAction"]),Y=N({},r,{alignItems:o,autoFocus:i,button:a,dense:$.dense,disabled:v,disableGutters:b,disablePadding:y,divider:w,hasSecondaryAction:B,selected:A}),H=pte(Y),ee=On(z,n),V=R.root||d.Root||fte,W=T.root||p.root||{},j=N({className:Ae(H.root,W.className,c),disabled:v},_);let I=u||"li";return a&&(j.component=u||"div",j.focusVisibleClassName=Ae(uu.focusVisible,S),I=Ui),B?(I=!j.component&&!u?"div":I,f==="li"&&(I==="li"?I="div":j.component==="li"&&(j.component="div")),l(Oi.Provider,{value:$,children:x(hte,N({as:f,className:Ae(H.container,h),ref:ee,ownerState:Y},P,{children:[l(V,N({},W,!Ua(V)&&{as:I,ownerState:N({},Y,W.ownerState)},j,{children:L})),L.pop()]}))})):l(Oi.Provider,{value:$,children:x(V,N({},W,{as:I,ref:ee},!Ua(V)&&{ownerState:N({},Y,W.ownerState)},j,{children:[L,k&&l(lte,{children:k})]}))})}),Na=mte;function gte(e){return Ze("MuiListItemAvatar",e)}nt("MuiListItemAvatar",["root","alignItemsFlexStart"]);const vte=["className"],yte=e=>{const{alignItems:t,classes:n}=e;return tt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},gte,n)},bte=C("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>N({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),wte=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=Fe(r,vte),a=m.useContext(Oi),s=N({},r,{alignItems:a.alignItems}),c=yte(s);return l(bte,N({className:Ae(c.root,o),ownerState:s,ref:n},i))}),Zs=wte;function Ste(e){return Ze("MuiListItemIcon",e)}const xte=nt("MuiListItemIcon",["root","alignItemsFlexStart"]),L_=xte,Cte=["className"],Ete=e=>{const{alignItems:t,classes:n}=e;return tt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Ste,n)},Tte=C("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>N({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),kte=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=Fe(r,Cte),a=m.useContext(Oi),s=N({},r,{alignItems:a.alignItems}),c=Ete(s);return l(Tte,N({className:Ae(c.root,o),ownerState:s,ref:n},i))}),Du=kte;function Ate(e){return Ze("MuiListItemText",e)}const Rte=nt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Pv=Rte,_te=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Pte=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return tt({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Ate,t)},Ite=C("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pv.primary}`]:t.primary},{[`& .${Pv.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>N({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Ote=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:p}=r,f=Fe(r,_te),{dense:h}=m.useContext(Oi);let g=c??o,v=d;const b=N({},r,{disableTypography:a,inset:s,primary:!!g,secondary:!!v,dense:h}),y=Pte(b);return g!=null&&g.type!==se&&!a&&(g=l(se,N({variant:h?"body2":"body1",className:y.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:g}))),v!=null&&v.type!==se&&!a&&(v=l(se,N({variant:"body2",className:y.secondary,color:"text.secondary",display:"block"},p,{children:v}))),x(Ite,N({className:Ae(y.root,i),ownerState:b,ref:n},f,{children:[g,v]}))}),rn=Ote,$te=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Db(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function D_(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function R6(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Sp(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const c=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!R6(s,i)||c)s=o(e,s,n);else return s.focus(),!0}return!1}const Nte=m.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu"}=t,f=Fe(t,$te),h=m.useRef(null),g=m.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ho(()=>{o&&h.current.focus()},[o]),m.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,k)=>{const A=!h.current.style.width;if(S.clientHeight<h.current.clientHeight&&A){const T=`${sN(Zn(S))}px`;h.current.style[k.direction==="rtl"?"paddingLeft":"paddingRight"]=T,h.current.style.width=`calc(100% + ${T})`}return h.current}}),[]);const v=S=>{const k=h.current,A=S.key,T=Zn(k).activeElement;if(A==="ArrowDown")S.preventDefault(),Sp(k,T,u,c,Db);else if(A==="ArrowUp")S.preventDefault(),Sp(k,T,u,c,D_);else if(A==="Home")S.preventDefault(),Sp(k,null,u,c,Db);else if(A==="End")S.preventDefault(),Sp(k,null,u,c,D_);else if(A.length===1){const R=g.current,P=A.toLowerCase(),_=performance.now();R.keys.length>0&&(_-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&P!==R.keys[0]&&(R.repeating=!1)),R.lastTime=_,R.keys.push(P);const O=T&&!R.repeating&&R6(T,R);R.previousKeyMatched&&(O||Sp(k,T,!1,c,Db,R))?S.preventDefault():R.previousKeyMatched=!1}d&&d(S)},b=On(h,n);let y=-1;m.Children.forEach(a,(S,k)=>{m.isValidElement(S)&&(S.props.disabled||(p==="selectedMenu"&&S.props.selected||y===-1)&&(y=k))});const w=m.Children.map(a,(S,k)=>{if(k===y){const A={};return i&&(A.autoFocus=!0),S.props.tabIndex===void 0&&p==="selectedMenu"&&(A.tabIndex=0),m.cloneElement(S,A)}return S});return l(ca,N({role:"menu",ref:b,className:s,onKeyDown:v,tabIndex:o?0:-1},f,{children:w}))}),ZE=Nte;function Lte(e){return Ze("MuiPopover",e)}nt("MuiPopover",["root","paper"]);const Dte=["onEntering"],Mte=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function M_(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function B_(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function F_(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Mb(e){return typeof e=="function"?e():e}const Bte=e=>{const{classes:t}=e;return tt({root:["root"],paper:["paper"]},Lte,t)},Fte=C(Fh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zte=C(Cr,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),jte=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:f=8,marginThreshold:h=16,open:g,PaperProps:v={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:y=nx,transitionDuration:w="auto",TransitionProps:{onEntering:S}={}}=r,k=Fe(r.TransitionProps,Dte),A=Fe(r,Mte),T=m.useRef(),R=On(T,v.ref),P=N({},r,{anchorOrigin:a,anchorReference:c,elevation:f,marginThreshold:h,PaperProps:v,transformOrigin:b,TransitionComponent:y,transitionDuration:w,TransitionProps:k}),_=Bte(P),O=m.useCallback(()=>{if(c==="anchorPosition")return s;const j=Mb(i),M=(j&&j.nodeType===1?j:Zn(T.current).body).getBoundingClientRect();return{top:M.top+M_(M,a.vertical),left:M.left+B_(M,a.horizontal)}},[i,a.horizontal,a.vertical,s,c]),$=m.useCallback(j=>({vertical:M_(j,b.vertical),horizontal:B_(j,b.horizontal)}),[b.horizontal,b.vertical]),z=m.useCallback(j=>{const I={width:j.offsetWidth,height:j.offsetHeight},M=$(I);if(c==="none")return{top:null,left:null,transformOrigin:F_(M)};const J=O();let ae=J.top-M.vertical,Te=J.left-M.horizontal;const he=ae+I.height,Ie=Te+I.width,te=Bi(Mb(i)),ie=te.innerHeight-h,le=te.innerWidth-h;if(ae<h){const oe=ae-h;ae-=oe,M.vertical+=oe}else if(he>ie){const oe=he-ie;ae-=oe,M.vertical+=oe}if(Te<h){const oe=Te-h;Te-=oe,M.horizontal+=oe}else if(Ie>le){const oe=Ie-le;Te-=oe,M.horizontal+=oe}return{top:`${Math.round(ae)}px`,left:`${Math.round(Te)}px`,transformOrigin:F_(M)}},[i,c,O,$,h]),[L,B]=m.useState(g),Y=m.useCallback(()=>{const j=T.current;if(!j)return;const I=z(j);I.top!==null&&(j.style.top=I.top),I.left!==null&&(j.style.left=I.left),j.style.transformOrigin=I.transformOrigin,B(!0)},[z]),H=(j,I)=>{S&&S(j,I),Y()},ee=()=>{B(!1)};m.useEffect(()=>{g&&Y()}),m.useImperativeHandle(o,()=>g?{updatePosition:()=>{Y()}}:null,[g,Y]),m.useEffect(()=>{if(!g)return;const j=bc(()=>{Y()}),I=Bi(i);return I.addEventListener("resize",j),()=>{j.clear(),I.removeEventListener("resize",j)}},[i,g,Y]);let V=w;w==="auto"&&!y.muiSupportAuto&&(V=void 0);const W=p||(i?Zn(Mb(i)).body:void 0);return l(Fte,N({BackdropProps:{invisible:!0},className:Ae(_.root,d),container:W,open:g,ref:n,ownerState:P},A,{children:l(y,N({appear:!0,in:g,onEntering:H,onExited:ee,timeout:V},k,{children:l(zte,N({elevation:f},v,{ref:R,className:Ae(_.paper,v.className)},L?void 0:{style:N({},v.style,{opacity:0})},{ownerState:P,children:u}))}))}))}),e2=jte;function Ute(e){return Ze("MuiMenu",e)}nt("MuiMenu",["root","paper","list"]);const Wte=["onEntering"],Hte=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Vte={vertical:"top",horizontal:"right"},Gte={vertical:"top",horizontal:"left"},qte=e=>{const{classes:t}=e;return tt({root:["root"],paper:["paper"],list:["list"]},Ute,t)},Yte=C(e2,{shouldForwardProp:e=>Yo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Kte=C(Cr,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Xte=C(ZE,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Jte=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:c,open:u,PaperProps:d={},PopoverClasses:p,transitionDuration:f="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu"}=r,v=Fe(r.TransitionProps,Wte),b=Fe(r,Hte),y=yn(),w=y.direction==="rtl",S=N({},r,{autoFocus:o,disableAutoFocusItem:a,MenuListProps:s,onEntering:h,PaperProps:d,transitionDuration:f,TransitionProps:v,variant:g}),k=qte(S),A=o&&!a&&u,T=m.useRef(null),R=(O,$)=>{T.current&&T.current.adjustStyleForScrollbar(O,y),h&&h(O,$)},P=O=>{O.key==="Tab"&&(O.preventDefault(),c&&c(O,"tabKeyDown"))};let _=-1;return m.Children.map(i,(O,$)=>{m.isValidElement(O)&&(O.props.disabled||(g==="selectedMenu"&&O.props.selected||_===-1)&&(_=$))}),l(Yte,N({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Vte:Gte,PaperProps:N({component:Kte},d,{classes:N({},d.classes,{root:k.paper})}),className:k.root,open:u,ref:n,transitionDuration:f,TransitionProps:N({onEntering:R},v),ownerState:S},b,{classes:p,children:l(Xte,N({onKeyDown:P,actions:T,autoFocus:o&&(_===-1||a),autoFocusItem:A,variant:g},s,{className:Ae(k.list,s.className),children:i}))}))}),t2=Jte;function Qte(e){return Ze("MuiMenuItem",e)}const Zte=nt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),xp=Zte,ene=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],tne=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},nne=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,c=tt({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Qte,a);return N({},a,c)},rne=C(Ui,{shouldForwardProp:e=>Yo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:tne})(({theme:e,ownerState:t})=>N({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${S_.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${S_.inset}`]:{marginLeft:52},[`& .${Pv.root}`]:{marginTop:0,marginBottom:0},[`& .${Pv.inset}`]:{paddingLeft:36},[`& .${L_.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&N({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${L_.root} svg`]:{fontSize:"1.25rem"}}))),one=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:f}=r,h=Fe(r,ene),g=m.useContext(Oi),v=m.useMemo(()=>({dense:a||g.dense||!1,disableGutters:c}),[g.dense,a,c]),b=m.useRef(null);Ho(()=>{o&&b.current&&b.current.focus()},[o]);const y=N({},r,{dense:v.dense,divider:s,disableGutters:c}),w=nne(r),S=On(b,n);let k;return r.disabled||(k=p!==void 0?p:-1),l(Oi.Provider,{value:v,children:l(rne,N({ref:S,role:d,tabIndex:k,component:i,focusVisibleClassName:Ae(w.focusVisible,u),className:Ae(w.root,f)},h,{ownerState:y,classes:w}))})}),qa=one;function ine(e){return Ze("MuiNativeSelect",e)}const ane=nt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),n2=ane,sne=["className","disabled","IconComponent","inputRef","variant"],lne=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${de(n)}`,i&&"iconOpen",r&&"disabled"]};return tt(a,ine,t)},_6=({ownerState:e,theme:t})=>N({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":N({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${n2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),cne=C("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Yo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${n2.multiple}`]:t.multiple}]}})(_6),P6=({ownerState:e,theme:t})=>N({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${n2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),une=C("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${de(n.variant)}`],n.open&&t.iconOpen]}})(P6),dne=m.forwardRef(function(t,n){const{className:r,disabled:o,IconComponent:i,inputRef:a,variant:s="standard"}=t,c=Fe(t,sne),u=N({},t,{disabled:o,variant:s}),d=lne(u);return x(m.Fragment,{children:[l(cne,N({ownerState:u,className:Ae(d.select,r),disabled:o,ref:a||n},c)),t.multiple?null:l(une,{as:i,ownerState:u,className:d.icon})]})}),pne=dne;var z_;const fne=["children","classes","className","label","notched"],hne=C("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),mne=C("legend")(({ownerState:e,theme:t})=>N({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&N({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function gne(e){const{className:t,label:n,notched:r}=e,o=Fe(e,fne),i=n!=null&&n!=="",a=N({},e,{notched:r,withLabel:i});return l(hne,N({"aria-hidden":!0,className:t,ownerState:a},o,{children:l(mne,{ownerState:a,children:i?l("span",{children:n}):z_||(z_=l("span",{className:"notranslate",children:"​"}))})}))}const vne=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],yne=e=>{const{classes:t}=e,r=tt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},KK,t);return N({},t,r)},bne=C(v1,{shouldForwardProp:e=>Yo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:m1})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return N({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Sa.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Sa.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Sa.focused} .${Sa.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Sa.error} .${Sa.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Sa.disabled} .${Sa.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&N({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),wne=C(gne,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Sne=C(y1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:g1})(({theme:e,ownerState:t})=>N({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),I6=m.forwardRef(function(t,n){var r,o,i,a,s;const c=rt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:p="input",label:f,multiline:h=!1,notched:g,slots:v={},type:b="text"}=c,y=Fe(c,vne),w=yne(c),S=Za(),k=Pl({props:c,muiFormControl:S,states:["required"]}),A=N({},c,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:d,hiddenLabel:k.hiddenLabel,multiline:h,size:k.size,type:b}),T=(r=(o=v.root)!=null?o:u.Root)!=null?r:bne,R=(i=(a=v.input)!=null?a:u.Input)!=null?i:Sne;return l(b1,N({slots:{root:T,input:R},renderSuffix:P=>l(wne,{ownerState:A,className:w.notchedOutline,label:f!=null&&f!==""&&k.required?s||(s=x(m.Fragment,{children:[f," ","*"]})):f,notched:typeof g<"u"?g:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:d,inputComponent:p,multiline:h,ref:n,type:b},y,{classes:N({},w,{notchedOutline:null})}))});I6.muiName="Input";const O6=I6,xne=qe(l("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Cne=qe(l("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Ene=C("span")({position:"relative",display:"flex"}),Tne=C(xne)({transform:"scale(1)"}),kne=C(Cne)(({theme:e,ownerState:t})=>N({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function $6(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=N({},e,{checked:t});return x(Ene,{className:n.root,ownerState:o,children:[l(Tne,{fontSize:r,className:n.background,ownerState:o}),l(kne,{fontSize:r,className:n.dot,ownerState:o})]})}const Ane=m.createContext(void 0),N6=Ane;function Rne(){return m.useContext(N6)}function _ne(e){return Ze("MuiRadio",e)}const Pne=nt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),j_=Pne,Ine=["checked","checkedIcon","color","icon","name","onChange","size","className"],One=e=>{const{classes:t,color:n}=e,r={root:["root",`color${de(n)}`]};return N({},t,tt(r,_ne,t))},$ne=C(YE,{shouldForwardProp:e=>Yo(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${de(n.color)}`]]}})(({theme:e,ownerState:t})=>N({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${j_.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${j_.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function Nne(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const U_=l($6,{checked:!0}),W_=l($6,{}),Lne=m.forwardRef(function(t,n){var r,o;const i=rt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=U_,color:c="primary",icon:u=W_,name:d,onChange:p,size:f="medium",className:h}=i,g=Fe(i,Ine),v=N({},i,{color:c,size:f}),b=One(v),y=Rne();let w=a;const S=xv(p,y&&y.onChange);let k=d;return y&&(typeof w>"u"&&(w=Nne(y.value,i.value)),typeof k>"u"&&(k=y.name)),l($ne,N({type:"radio",icon:m.cloneElement(u,{fontSize:(r=W_.props.fontSize)!=null?r:f}),checkedIcon:m.cloneElement(s,{fontSize:(o=U_.props.fontSize)!=null?o:f}),ownerState:v,classes:b,name:k,checked:w,onChange:S,ref:n,className:Ae(b.root,h)},g))}),sc=Lne,Dne=["actions","children","defaultValue","name","onChange","value"],Mne=m.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:i,name:a,onChange:s,value:c}=t,u=Fe(t,Dne),d=m.useRef(null),[p,f]=la({controlled:c,default:i,name:"RadioGroup"});m.useImperativeHandle(r,()=>({focus:()=>{let b=d.current.querySelector("input:not(:disabled):checked");b||(b=d.current.querySelector("input:not(:disabled)")),b&&b.focus()}}),[]);const h=On(n,d),g=xd(a),v=m.useMemo(()=>({name:g,onChange(b){f(b.target.value),s&&s(b,b.target.value)},value:p}),[g,s,f,p]);return l(N6.Provider,{value:v,children:l(bZ,N({role:"radiogroup",ref:h},u,{children:o}))})}),r2=Mne;function Bne(e){return Ze("MuiSelect",e)}const Fne=nt("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Qm=Fne;var H_;const zne=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],jne=C("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Qm.select}`]:t.select},{[`&.${Qm.select}`]:t[n.variant]},{[`&.${Qm.multiple}`]:t.multiple}]}})(_6,{[`&.${Qm.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Une=C("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${de(n.variant)}`],n.open&&t.iconOpen]}})(P6),Wne=C("input",{shouldForwardProp:e=>OE(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function V_(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Hne(e){return e==null||typeof e=="string"&&!e.trim()}const Vne=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${de(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return tt(a,Bne,t)},Gne=m.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:f,IconComponent:h,inputRef:g,labelId:v,MenuProps:b={},multiple:y,name:w,onBlur:S,onChange:k,onClose:A,onFocus:T,onOpen:R,open:P,readOnly:_,renderValue:O,SelectDisplayProps:$={},tabIndex:z,value:L,variant:B="standard"}=t,Y=Fe(t,zne),[H,ee]=la({controlled:L,default:d,name:"Select"}),[V,W]=la({controlled:P,default:u,name:"Select"}),j=m.useRef(null),I=m.useRef(null),[M,J]=m.useState(null),{current:ae}=m.useRef(P!=null),[Te,he]=m.useState(),Ie=On(n,g),te=m.useCallback(X=>{I.current=X,X&&J(X)},[]),ie=M==null?void 0:M.parentNode;m.useImperativeHandle(Ie,()=>({focus:()=>{I.current.focus()},node:j.current,value:H}),[H]),m.useEffect(()=>{u&&V&&M&&!ae&&(he(a?null:ie.clientWidth),I.current.focus())},[M,a]),m.useEffect(()=>{i&&I.current.focus()},[i]),m.useEffect(()=>{if(!v)return;const X=Zn(I.current).getElementById(v);if(X){const Se=()=>{getSelection().isCollapsed&&I.current.focus()};return X.addEventListener("click",Se),()=>{X.removeEventListener("click",Se)}}},[v]);const le=(X,Se)=>{X?R&&R(Se):A&&A(Se),ae||(he(a?null:ie.clientWidth),W(X))},oe=X=>{X.button===0&&(X.preventDefault(),I.current.focus(),le(!0,X))},Ne=X=>{le(!1,X)},me=m.Children.toArray(s),ke=X=>{const Se=me.map(De=>De.props.value).indexOf(X.target.value);if(Se===-1)return;const Re=me[Se];ee(Re.props.value),k&&k(X,Re)},pe=X=>Se=>{let Re;if(Se.currentTarget.hasAttribute("tabindex")){if(y){Re=Array.isArray(H)?H.slice():[];const De=H.indexOf(X.props.value);De===-1?Re.push(X.props.value):Re.splice(De,1)}else Re=X.props.value;if(X.props.onClick&&X.props.onClick(Se),H!==Re&&(ee(Re),k)){const De=Se.nativeEvent||Se,bt=new De.constructor(De.type,De);Object.defineProperty(bt,"target",{writable:!0,value:{value:Re,name:w}}),k(bt,X)}y||le(!1,Se)}},it=X=>{_||[" ","ArrowUp","ArrowDown","Enter"].indexOf(X.key)!==-1&&(X.preventDefault(),le(!0,X))},Le=M!==null&&V,Ge=X=>{!Le&&S&&(Object.defineProperty(X,"target",{writable:!0,value:{value:H,name:w}}),S(X))};delete Y["aria-invalid"];let st,Ye;const lt=[];let Lt=!1;(VE({value:H})||f)&&(O?st=O(H):Lt=!0);const Ft=me.map((X,Se,Re)=>{var De,bt,_t,zt;if(!m.isValidElement(X))return null;let fn;if(y){if(!Array.isArray(H))throw new Error(bl(2));fn=H.some(Yt=>V_(Yt,X.props.value)),fn&&Lt&&lt.push(X.props.children)}else fn=V_(H,X.props.value),fn&&Lt&&(Ye=X.props.children);if(X.props.value===void 0)return m.cloneElement(X,{"aria-readonly":!0,role:"option"});const Ut=()=>{if(H)return fn;const Yt=Re.find(nn=>{var Gn;return(nn==null||(Gn=nn.props)==null?void 0:Gn.value)!==void 0&&nn.props.disabled!==!0});return X===Yt?!0:fn};return m.cloneElement(X,{"aria-selected":fn?"true":"false",onClick:pe(X),onKeyUp:Yt=>{Yt.key===" "&&Yt.preventDefault(),X.props.onKeyUp&&X.props.onKeyUp(Yt)},role:"option",selected:((De=Re[0])==null||(bt=De.props)==null?void 0:bt.value)===void 0||((_t=Re[0])==null||(zt=_t.props)==null?void 0:zt.disabled)===!0?Ut():fn,value:void 0,"data-value":X.props.value})});Lt&&(y?lt.length===0?st=null:st=lt.reduce((X,Se,Re)=>(X.push(Se),Re<lt.length-1&&X.push(", "),X),[]):st=Ye);let be=Te;!a&&ae&&M&&(be=ie.clientWidth);let Oe;typeof z<"u"?Oe=z:Oe=p?null:0;const Qe=$.id||(w?`mui-component-select-${w}`:void 0),re=N({},t,{variant:B,value:H,open:Le}),Z=Vne(re);return x(m.Fragment,{children:[l(jne,N({ref:te,tabIndex:Oe,role:"button","aria-disabled":p?"true":void 0,"aria-expanded":Le?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[v,Qe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:it,onMouseDown:p||_?null:oe,onBlur:Ge,onFocus:T},$,{ownerState:re,className:Ae($.className,Z.select,c),id:Qe,children:Hne(st)?H_||(H_=l("span",{className:"notranslate",children:"​"})):st})),l(Wne,N({value:Array.isArray(H)?H.join(","):H,name:w,ref:j,"aria-hidden":!0,onChange:ke,tabIndex:-1,disabled:p,className:Z.nativeInput,autoFocus:i,ownerState:re},Y)),l(Une,{as:h,className:Z.icon,ownerState:re}),l(t2,N({id:`menu-${w||""}`,anchorEl:ie,open:Le,onClose:Ne,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:N({"aria-labelledby":v,role:"listbox",disableListWrap:!0},b.MenuListProps),PaperProps:N({},b.PaperProps,{style:N({minWidth:be},b.PaperProps!=null?b.PaperProps.style:null)}),children:Ft}))]})}),qne=Gne;var G_,q_;const Yne=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Kne=e=>{const{classes:t}=e;return t},o2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Yo(e)&&e!=="variant",slot:"Root"},Xne=C(E6,o2)(""),Jne=C(O6,o2)(""),Qne=C(y6,o2)(""),L6=m.forwardRef(function(t,n){const r=rt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=d6,id:p,input:f,inputProps:h,label:g,labelId:v,MenuProps:b,multiple:y=!1,native:w=!1,onClose:S,onOpen:k,open:A,renderValue:T,SelectDisplayProps:R,variant:P="outlined"}=r,_=Fe(r,Yne),O=w?pne:qne,$=Za(),L=Pl({props:r,muiFormControl:$,states:["variant"]}).variant||P,B=f||{standard:G_||(G_=l(Xne,{})),outlined:l(Jne,{label:g}),filled:q_||(q_=l(Qne,{}))}[L],Y=N({},r,{variant:L,classes:a}),H=Kne(Y),ee=On(n,B.ref);return l(m.Fragment,{children:m.cloneElement(B,N({inputComponent:O,inputProps:N({children:i,IconComponent:d,variant:L,type:void 0,multiple:y},w?{id:p}:{autoWidth:o,defaultOpen:c,displayEmpty:u,labelId:v,MenuProps:b,onClose:S,onOpen:k,open:A,renderValue:T,SelectDisplayProps:N({id:p},R)},h,{classes:h?si(H,h.classes):H},f?f.props.inputProps:{})},y&&w&&L==="outlined"?{notched:!0}:{},{ref:ee,className:Ae(B.props.className,s)},!f&&{variant:L},_))})});L6.muiName="Select";const jh=L6,Zne=e=>!e||!Ua(e),ere=Zne;function tre(e){return Ze("MuiSlider",e)}const nre=nt("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),sa=nre,rre=e=>{const{open:t}=e;return{offset:Ae(t&&sa.valueLabelOpen),circle:sa.valueLabelCircle,label:sa.valueLabelLabel}};function ore(e){const{children:t,className:n,value:r}=e,o=rre(e);return t?m.cloneElement(t,{className:Ae(t.props.className)},x(m.Fragment,{children:[t.props.children,l("span",{className:Ae(o.offset,n),"aria-hidden":!0,children:l("span",{className:o.circle,children:l("span",{className:o.label,children:r})})})]})):null}const ire=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"],Y_=(e,t,n)=>(e-t)*100/(n-t);function K_(e){return e}const are=C("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${de(n.color)}`],n.size!=="medium"&&t[`size${de(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>N({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&N({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&N({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${sa.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${sa.dragging}`]:{[`& .${sa.thumb}, & .${sa.track}`]:{transition:"none"}}})),sre=C("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>N({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),lre=C("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Sl(e.palette[t.color].main,.62):wl(e.palette[t.color].main,.5);return N({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),cre=C("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${de(n.color)}`],n.size!=="medium"&&t[`thumbSize${de(n.size)}`]]}})(({theme:e,ownerState:t})=>N({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":N({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${sa.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:yt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${sa.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:yt(e.palette[t.color].main,.16)}`},[`&.${sa.disabled}`]:{"&:hover":{boxShadow:"none"}}})),ure=C(ore,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>N({[`&.${sa.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:"translateY(-100%) scale(0)",position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:"30px",top:"24px",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",right:"-20%",top:"25%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),dre=C("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>OE(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>N({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),pre=C("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>OE(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>N({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),fre=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:a,color:s,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${de(s)}`,c&&`size${de(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${de(c)}`,s&&`thumbColor${de(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return tt(u,tre,a)},hre=({children:e})=>e,mre=m.forwardRef(function(t,n){var r,o,i,a,s,c,u,d,p,f,h,g,v,b,y,w,S,k,A,T,R,P,_,O;const $=rt({props:t,name:"MuiSlider"}),L=yn().direction==="rtl",{"aria-label":B,"aria-valuetext":Y,"aria-labelledby":H,component:ee="span",components:V={},componentsProps:W={},color:j="primary",classes:I,className:M,disableSwap:J=!1,disabled:ae=!1,getAriaLabel:Te,getAriaValueText:he,marks:Ie=!1,max:te=100,min:ie=0,orientation:le="horizontal",size:oe="medium",step:Ne=1,scale:me=K_,slotProps:ke,slots:pe,track:it="normal",valueLabelDisplay:Le="off",valueLabelFormat:Ge=K_}=$,st=Fe($,ire),Ye=N({},$,{isRtl:L,max:te,min:ie,classes:I,disabled:ae,disableSwap:J,orientation:le,marks:Ie,color:j,size:oe,step:Ne,scale:me,track:it,valueLabelDisplay:Le,valueLabelFormat:Ge}),{axisProps:lt,getRootProps:Lt,getHiddenInputProps:Ft,getThumbProps:be,open:Oe,active:Qe,axis:re,focusedThumbIndex:Z,range:X,dragging:Se,marks:Re,values:De,trackOffset:bt,trackLeap:_t}=Tq(N({},Ye,{ref:n}));Ye.marked=Re.length>0&&Re.some(ye=>ye.label),Ye.dragging=Se,Ye.focusedThumbIndex=Z;const zt=fre(Ye),fn=(r=(o=pe==null?void 0:pe.root)!=null?o:V.Root)!=null?r:are,Ut=(i=(a=pe==null?void 0:pe.rail)!=null?a:V.Rail)!=null?i:sre,Yt=(s=(c=pe==null?void 0:pe.track)!=null?c:V.Track)!=null?s:lre,nn=(u=(d=pe==null?void 0:pe.thumb)!=null?d:V.Thumb)!=null?u:cre,Gn=(p=(f=pe==null?void 0:pe.valueLabel)!=null?f:V.ValueLabel)!=null?p:ure,hn=(h=(g=pe==null?void 0:pe.mark)!=null?g:V.Mark)!=null?h:dre,Kt=(v=(b=pe==null?void 0:pe.markLabel)!=null?b:V.MarkLabel)!=null?v:pre,lr=(y=(w=pe==null?void 0:pe.input)!=null?w:V.Input)!=null?y:"input",zr=(S=ke==null?void 0:ke.root)!=null?S:W.root,Oo=(k=ke==null?void 0:ke.rail)!=null?k:W.rail,Ko=(A=ke==null?void 0:ke.track)!=null?A:W.track,Xo=(T=ke==null?void 0:ke.thumb)!=null?T:W.thumb,Zr=(R=ke==null?void 0:ke.valueLabel)!=null?R:W.valueLabel,$o=(P=ke==null?void 0:ke.mark)!=null?P:W.mark,wr=(_=ke==null?void 0:ke.markLabel)!=null?_:W.markLabel,No=(O=ke==null?void 0:ke.input)!=null?O:W.input,jr=ra({elementType:fn,getSlotProps:Lt,externalSlotProps:zr,externalForwardedProps:st,additionalProps:N({},ere(fn)&&{as:ee}),ownerState:N({},Ye,zr==null?void 0:zr.ownerState),className:[zt.root,M]}),Gt=ra({elementType:Ut,externalSlotProps:Oo,ownerState:Ye,className:zt.rail}),sn=ra({elementType:Yt,externalSlotProps:Ko,additionalProps:{style:N({},lt[re].offset(bt),lt[re].leap(_t))},ownerState:N({},Ye,Ko==null?void 0:Ko.ownerState),className:zt.track}),or=ra({elementType:nn,getSlotProps:be,externalSlotProps:Xo,ownerState:N({},Ye,Xo==null?void 0:Xo.ownerState)}),Nr=ra({elementType:Gn,externalSlotProps:Zr,ownerState:N({},Ye,Zr==null?void 0:Zr.ownerState),className:zt.valueLabel}),bo=ra({elementType:hn,externalSlotProps:$o,ownerState:Ye,className:zt.mark}),wo=ra({elementType:Kt,externalSlotProps:wr,ownerState:Ye}),Qi=ra({elementType:lr,getSlotProps:Ft,externalSlotProps:No,ownerState:Ye});return x(fn,N({},jr,{children:[l(Ut,N({},Gt)),l(Yt,N({},sn)),Re.filter(ye=>ye.value>=ie&&ye.value<=te).map((ye,ue)=>{const Ke=Y_(ye.value,ie,te),ft=lt[re].offset(Ke);let Dt;return it===!1?Dt=De.indexOf(ye.value)!==-1:Dt=it==="normal"&&(X?ye.value>=De[0]&&ye.value<=De[De.length-1]:ye.value<=De[0])||it==="inverted"&&(X?ye.value<=De[0]||ye.value>=De[De.length-1]:ye.value>=De[0]),x(m.Fragment,{children:[l(hn,N({"data-index":ue},bo,!Ua(hn)&&{markActive:Dt},{style:N({},ft,bo.style),className:Ae(bo.className,Dt&&zt.markActive)})),ye.label!=null?l(Kt,N({"aria-hidden":!0,"data-index":ue},wo,!Ua(Kt)&&{markLabelActive:Dt},{style:N({},ft,wo.style),className:Ae(zt.markLabel,wo.className,Dt&&zt.markLabelActive),children:ye.label})):null]},ue)}),De.map((ye,ue)=>{const Ke=Y_(ye,ie,te),ft=lt[re].offset(Ke),Dt=Le==="off"?hre:Gn;return l(m.Fragment,{children:l(Dt,N({},!Ua(Dt)&&{valueLabelFormat:Ge,valueLabelDisplay:Le,value:typeof Ge=="function"?Ge(me(ye),ue):Ge,index:ue,open:Oe===ue||Qe===ue||Le==="on",disabled:ae},Nr,{children:l(nn,N({"data-index":ue,"data-focusvisible":Z===ue},or,{className:Ae(zt.thumb,or.className,Qe===ue&&zt.active,Z===ue&&zt.focusVisible),style:N({},ft,{pointerEvents:J&&Qe!==ue?"none":void 0},or.style),children:l(lr,N({"data-index":ue,"aria-label":Te?Te(ue):B,"aria-valuenow":me(ye),"aria-labelledby":H,"aria-valuetext":he?he(me(ye),ue):Y,value:De[ue]},Qi))}))}))},ue)})]}))}),gre=mre;function vre(e){return Ze("MuiTooltip",e)}const yre=nt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),La=yre,bre=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function wre(e){return Math.round(e*1e5)/1e5}const Sre=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${de(i.split("-")[0])}`],arrow:["arrow"]};return tt(a,vre,t)},xre=C(f1,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>N({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${La.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${La.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${La.arrow}`]:N({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${La.arrow}`]:N({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Cre=C("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${de(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>N({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:yt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${wre(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${La.popper}[data-popper-placement*="left"] &`]:N({transformOrigin:"right center"},t.isRtl?N({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):N({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${La.popper}[data-popper-placement*="right"] &`]:N({transformOrigin:"left center"},t.isRtl?N({marginRight:"14px"},t.touch&&{marginRight:"24px"}):N({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${La.popper}[data-popper-placement*="top"] &`]:N({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${La.popper}[data-popper-placement*="bottom"] &`]:N({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Ere=C("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:yt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Zm=!1,Bb=null,Cp={x:0,y:0};function eg(e,t){return n=>{t&&t(n),e(n)}}const Tre=m.forwardRef(function(t,n){var r,o,i,a,s,c,u,d,p,f,h,g,v,b,y,w,S,k,A;const T=rt({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:P,components:_={},componentsProps:O={},describeChild:$=!1,disableFocusListener:z=!1,disableHoverListener:L=!1,disableInteractive:B=!1,disableTouchListener:Y=!1,enterDelay:H=100,enterNextDelay:ee=0,enterTouchDelay:V=700,followCursor:W=!1,id:j,leaveDelay:I=0,leaveTouchDelay:M=1500,onClose:J,onOpen:ae,open:Te,placement:he="bottom",PopperComponent:Ie,PopperProps:te={},slotProps:ie={},slots:le={},title:oe,TransitionComponent:Ne=nx,TransitionProps:me}=T,ke=Fe(T,bre),pe=yn(),it=pe.direction==="rtl",[Le,Ge]=m.useState(),[st,Ye]=m.useState(null),lt=m.useRef(!1),Lt=B||W,Ft=m.useRef(),be=m.useRef(),Oe=m.useRef(),Qe=m.useRef(),[re,Z]=la({controlled:Te,default:!1,name:"Tooltip",state:"open"});let X=re;const Se=xd(j),Re=m.useRef(),De=m.useCallback(()=>{Re.current!==void 0&&(document.body.style.WebkitUserSelect=Re.current,Re.current=void 0),clearTimeout(Qe.current)},[]);m.useEffect(()=>()=>{clearTimeout(Ft.current),clearTimeout(be.current),clearTimeout(Oe.current),De()},[De]);const bt=Ct=>{clearTimeout(Bb),Zm=!0,Z(!0),ae&&!X&&ae(Ct)},_t=Dr(Ct=>{clearTimeout(Bb),Bb=setTimeout(()=>{Zm=!1},800+I),Z(!1),J&&X&&J(Ct),clearTimeout(Ft.current),Ft.current=setTimeout(()=>{lt.current=!1},pe.transitions.duration.shortest)}),zt=Ct=>{lt.current&&Ct.type!=="touchstart"||(Le&&Le.removeAttribute("title"),clearTimeout(be.current),clearTimeout(Oe.current),H||Zm&&ee?be.current=setTimeout(()=>{bt(Ct)},Zm?ee:H):bt(Ct))},fn=Ct=>{clearTimeout(be.current),clearTimeout(Oe.current),Oe.current=setTimeout(()=>{_t(Ct)},I)},{isFocusVisibleRef:Ut,onBlur:Yt,onFocus:nn,ref:Gn}=Ih(),[,hn]=m.useState(!1),Kt=Ct=>{Yt(Ct),Ut.current===!1&&(hn(!1),fn(Ct))},lr=Ct=>{Le||Ge(Ct.currentTarget),nn(Ct),Ut.current===!0&&(hn(!0),zt(Ct))},zr=Ct=>{lt.current=!0;const jn=P.props;jn.onTouchStart&&jn.onTouchStart(Ct)},Oo=zt,Ko=fn,Xo=Ct=>{zr(Ct),clearTimeout(Oe.current),clearTimeout(Ft.current),De(),Re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Qe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Re.current,zt(Ct)},V)},Zr=Ct=>{P.props.onTouchEnd&&P.props.onTouchEnd(Ct),De(),clearTimeout(Oe.current),Oe.current=setTimeout(()=>{_t(Ct)},M)};m.useEffect(()=>{if(!X)return;function Ct(jn){(jn.key==="Escape"||jn.key==="Esc")&&_t(jn)}return document.addEventListener("keydown",Ct),()=>{document.removeEventListener("keydown",Ct)}},[_t,X]);const $o=On(P.ref,Gn,Ge,n);!oe&&oe!==0&&(X=!1);const wr=m.useRef(),No=Ct=>{const jn=P.props;jn.onMouseMove&&jn.onMouseMove(Ct),Cp={x:Ct.clientX,y:Ct.clientY},wr.current&&wr.current.update()},jr={},Gt=typeof oe=="string";$?(jr.title=!X&&Gt&&!L?oe:null,jr["aria-describedby"]=X?Se:null):(jr["aria-label"]=Gt?oe:null,jr["aria-labelledby"]=X&&!Gt?Se:null);const sn=N({},jr,ke,P.props,{className:Ae(ke.className,P.props.className),onTouchStart:zr,ref:$o},W?{onMouseMove:No}:{}),or={};Y||(sn.onTouchStart=Xo,sn.onTouchEnd=Zr),L||(sn.onMouseOver=eg(Oo,sn.onMouseOver),sn.onMouseLeave=eg(Ko,sn.onMouseLeave),Lt||(or.onMouseOver=Oo,or.onMouseLeave=Ko)),z||(sn.onFocus=eg(lr,sn.onFocus),sn.onBlur=eg(Kt,sn.onBlur),Lt||(or.onFocus=lr,or.onBlur=Kt));const Nr=m.useMemo(()=>{var Ct;let jn=[{name:"arrow",enabled:!!st,options:{element:st,padding:4}}];return(Ct=te.popperOptions)!=null&&Ct.modifiers&&(jn=jn.concat(te.popperOptions.modifiers)),N({},te.popperOptions,{modifiers:jn})},[st,te]),bo=N({},T,{isRtl:it,arrow:R,disableInteractive:Lt,placement:he,PopperComponentProp:Ie,touch:lt.current}),wo=Sre(bo),Qi=(r=(o=le.popper)!=null?o:_.Popper)!=null?r:xre,ye=(i=(a=(s=le.transition)!=null?s:_.Transition)!=null?a:Ne)!=null?i:nx,ue=(c=(u=le.tooltip)!=null?u:_.Tooltip)!=null?c:Cre,Ke=(d=(p=le.arrow)!=null?p:_.Arrow)!=null?d:Ere,ft=Kp(Qi,N({},te,(f=ie.popper)!=null?f:O.popper,{className:Ae(wo.popper,te==null?void 0:te.className,(h=(g=ie.popper)!=null?g:O.popper)==null?void 0:h.className)}),bo),Dt=Kp(ye,N({},me,(v=ie.transition)!=null?v:O.transition),bo),Bn=Kp(ue,N({},(b=ie.tooltip)!=null?b:O.tooltip,{className:Ae(wo.tooltip,(y=(w=ie.tooltip)!=null?w:O.tooltip)==null?void 0:y.className)}),bo),zn=Kp(Ke,N({},(S=ie.arrow)!=null?S:O.arrow,{className:Ae(wo.arrow,(k=(A=ie.arrow)!=null?A:O.arrow)==null?void 0:k.className)}),bo);return x(m.Fragment,{children:[m.cloneElement(P,sn),l(Qi,N({as:Ie??f1,placement:he,anchorEl:W?{getBoundingClientRect:()=>({top:Cp.y,left:Cp.x,right:Cp.x,bottom:Cp.y,width:0,height:0})}:Le,popperRef:wr,open:Le?X:!1,id:Se,transition:!0},or,ft,{popperOptions:Nr,children:({TransitionProps:Ct})=>l(ye,N({timeout:pe.transitions.duration.shorter},Ct,Dt,{children:x(ue,N({},Bn,{children:[oe,R?l(Ke,N({},zn,{ref:Ye})):null]}))}))}))]})}),xt=Tre;function kre(e){return Ze("MuiSwitch",e)}const Are=nt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Co=Are,Rre=["className","color","edge","size","sx"],_re=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${de(n)}`,`size${de(r)}`],switchBase:["switchBase",`color${de(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=tt(s,kre,t);return N({},t,c)},Pre=C("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${de(n.edge)}`],t[`size${de(n.size)}`]]}})(({ownerState:e})=>N({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Co.thumb}`]:{width:16,height:16},[`& .${Co.switchBase}`]:{padding:4,[`&.${Co.checked}`]:{transform:"translateX(16px)"}}})),Ire=C(YE,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Co.input}`]:t.input},n.color!=="default"&&t[`color${de(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Co.checked}`]:{transform:"translateX(20px)"},[`&.${Co.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Co.checked} + .${Co.track}`]:{opacity:.5},[`&.${Co.disabled} + .${Co.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Co.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>N({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Co.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Co.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Sl(e.palette[t.color].main,.62):wl(e.palette[t.color].main,.55)}`}},[`&.${Co.checked} + .${Co.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Ore=C("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),$re=C("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Nre=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:c}=r,u=Fe(r,Rre),d=N({},r,{color:i,edge:a,size:s}),p=_re(d),f=l($re,{className:p.thumb,ownerState:d});return x(Pre,{className:Ae(p.root,o),sx:c,ownerState:d,children:[l(Ire,N({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:d},u,{classes:N({},p,{root:p.switchBase})})),l(Ore,{className:p.track,ownerState:d})]})}),fa=Nre;function Lre(e){return Ze("MuiTab",e)}const Dre=nt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),zl=Dre,Mre=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Bre=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:c}=e,u={root:["root",i&&a&&"labelIcon",`textColor${de(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return tt(u,Lre,t)},Fre=C(Ui,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${de(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>N({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${zl.iconWrapper}`]:N({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${zl.selected}`]:{opacity:1},[`&.${zl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${zl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${zl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${zl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${zl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),zre=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:c,iconPosition:u="top",indicator:d,label:p,onChange:f,onClick:h,onFocus:g,selected:v,selectionFollowsFocus:b,textColor:y="inherit",value:w,wrapped:S=!1}=r,k=Fe(r,Mre),A=N({},r,{disabled:i,disableFocusRipple:a,selected:v,icon:!!c,iconPosition:u,label:!!p,fullWidth:s,textColor:y,wrapped:S}),T=Bre(A),R=c&&p&&m.isValidElement(c)?m.cloneElement(c,{className:Ae(T.iconWrapper,c.props.className)}):c,P=O=>{!v&&f&&f(O,w),h&&h(O)},_=O=>{b&&!v&&f&&f(O,w),g&&g(O)};return x(Fre,N({focusRipple:!a,className:Ae(T.root,o),ref:n,role:"tab","aria-selected":v,disabled:i,onClick:P,onFocus:_,ownerState:A,tabIndex:v?0:-1},k,{children:[u==="top"||u==="start"?x(m.Fragment,{children:[R,p]}):x(m.Fragment,{children:[p,R]}),d]}))}),jre=zre,Ure=m.createContext(),D6=Ure;function Wre(e){return Ze("MuiTable",e)}nt("MuiTable",["root","stickyHeader"]);const Hre=["className","component","padding","size","stickyHeader"],Vre=e=>{const{classes:t,stickyHeader:n}=e;return tt({root:["root",n&&"stickyHeader"]},Wre,t)},Gre=C("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>N({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":N({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),X_="table",qre=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTable"}),{className:o,component:i=X_,padding:a="normal",size:s="medium",stickyHeader:c=!1}=r,u=Fe(r,Hre),d=N({},r,{component:i,padding:a,size:s,stickyHeader:c}),p=Vre(d),f=m.useMemo(()=>({padding:a,size:s,stickyHeader:c}),[a,s,c]);return l(D6.Provider,{value:f,children:l(Gre,N({as:i,role:i===X_?null:"table",ref:n,className:Ae(p.root,o),ownerState:d},u))})}),Yre=qre,Kre=m.createContext(),S1=Kre;function Xre(e){return Ze("MuiTableBody",e)}nt("MuiTableBody",["root"]);const Jre=["className","component"],Qre=e=>{const{classes:t}=e;return tt({root:["root"]},Xre,t)},Zre=C("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),eoe={variant:"body"},J_="tbody",toe=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTableBody"}),{className:o,component:i=J_}=r,a=Fe(r,Jre),s=N({},r,{component:i}),c=Qre(s);return l(S1.Provider,{value:eoe,children:l(Zre,N({className:Ae(c.root,o),as:i,ref:n,role:i===J_?null:"rowgroup",ownerState:s},a))})}),Wi=toe;function noe(e){return Ze("MuiTableCell",e)}const roe=nt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),ooe=roe,ioe=["align","className","component","padding","scope","size","sortDirection","variant"],aoe=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${de(r)}`,o!=="normal"&&`padding${de(o)}`,`size${de(i)}`]};return tt(s,noe,t)},soe=C("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${de(n.size)}`],n.padding!=="normal"&&t[`padding${de(n.padding)}`],n.align!=="inherit"&&t[`align${de(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>N({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
245
+ ${e.palette.mode==="light"?Sl(yt(e.palette.divider,1),.88):wl(yt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${ooe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),loe=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:c,size:u,sortDirection:d,variant:p}=r,f=Fe(r,ioe),h=m.useContext(D6),g=m.useContext(S1),v=g&&g.variant==="head";let b;a?b=a:b=v?"th":"td";let y=c;b==="td"?y=void 0:!y&&v&&(y="col");const w=p||g&&g.variant,S=N({},r,{align:o,component:b,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:d,stickyHeader:w==="head"&&h&&h.stickyHeader,variant:w}),k=aoe(S);let A=null;return d&&(A=d==="asc"?"ascending":"descending"),l(soe,N({as:b,ref:n,className:Ae(k.root,i),"aria-sort":A,scope:y,ownerState:S},f))}),M6=loe;function coe(e){return Ze("MuiTableHead",e)}nt("MuiTableHead",["root"]);const uoe=["className","component"],doe=e=>{const{classes:t}=e;return tt({root:["root"]},coe,t)},poe=C("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),foe={variant:"head"},Q_="thead",hoe=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTableHead"}),{className:o,component:i=Q_}=r,a=Fe(r,uoe),s=N({},r,{component:i}),c=doe(s);return l(S1.Provider,{value:foe,children:l(poe,N({as:i,className:Ae(c.root,o),ref:n,role:i===Q_?null:"rowgroup",ownerState:s},a))})}),moe=hoe,goe=qe(l("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),voe=qe(l("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function yoe(e){return Ze("MuiTableRow",e)}const boe=nt("MuiTableRow",["root","selected","hover","head","footer"]),Z_=boe,woe=["className","component","hover","selected"],Soe=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return tt({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},yoe,t)},xoe=C("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Z_.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Z_.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),eP="tr",Coe=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTableRow"}),{className:o,component:i=eP,hover:a=!1,selected:s=!1}=r,c=Fe(r,woe),u=m.useContext(S1),d=N({},r,{component:i,hover:a,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=Soe(d);return l(xoe,N({as:i,ref:n,className:Ae(p.root,o),role:i===eP?null:"row",ownerState:d},c))}),ui=Coe;function Eoe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Toe(e,t,n,r={},o=()=>{}){const{ease:i=Eoe,duration:a=300}=r;let s=null;const c=t[e];let u=!1;const d=()=>{u=!0},p=f=>{if(u){o(new Error("Animation cancelled"));return}s===null&&(s=f);const h=Math.min(1,(f-s)/a);if(t[e]=i(h)*(n-c)+c,h>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(p)};return c===n?(o(new Error("Element already at target position")),d):(requestAnimationFrame(p),d)}const koe=["onChange"],Aoe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Roe(e){const{onChange:t}=e,n=Fe(e,koe),r=m.useRef(),o=m.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return m.useEffect(()=>{const a=bc(()=>{const c=r.current;i(),c!==r.current&&t(r.current)}),s=Bi(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),m.useEffect(()=>{i(),t(r.current)},[t]),l("div",N({style:Aoe,ref:o},n))}function _oe(e){return Ze("MuiTabScrollButton",e)}const Poe=nt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ioe=Poe;var tP,nP;const Ooe=["className","direction","orientation","disabled"],$oe=e=>{const{classes:t,orientation:n,disabled:r}=e;return tt({root:["root",n,r&&"disabled"]},_oe,t)},Noe=C(Ui,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>N({width:40,flexShrink:0,opacity:.8,[`&.${Ioe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Loe=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTabScrollButton"}),{className:o,direction:i}=r,a=Fe(r,Ooe),c=yn().direction==="rtl",u=N({isRtl:c},r),d=$oe(u);return l(Noe,N({component:"div",className:Ae(d.root,o),ref:n,role:null,ownerState:u,tabIndex:null},a,{children:i==="left"?tP||(tP=l(goe,{fontSize:"small"})):nP||(nP=l(voe,{fontSize:"small"}))}))}),Doe=Loe;function Moe(e){return Ze("MuiTabs",e)}const Boe=nt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Fb=Boe,Foe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],rP=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,oP=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,tg=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},zoe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:c}=e;return tt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Moe,c)},joe=C("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Fb.scrollButtons}`]:t.scrollButtons},{[`& .${Fb.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>N({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Fb.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Uoe=C("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>N({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Woe=C("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>N({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Hoe=C("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>N({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Voe=C(Roe,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),iP={},Goe=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTabs"}),o=yn(),i=o.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:c,centered:u=!1,children:d,className:p,component:f="div",allowScrollButtonsMobile:h=!1,indicatorColor:g="primary",onChange:v,orientation:b="horizontal",ScrollButtonComponent:y=Doe,scrollButtons:w="auto",selectionFollowsFocus:S,TabIndicatorProps:k={},TabScrollButtonProps:A={},textColor:T="primary",value:R,variant:P="standard",visibleScrollbar:_=!1}=r,O=Fe(r,Foe),$=P==="scrollable",z=b==="vertical",L=z?"scrollTop":"scrollLeft",B=z?"top":"left",Y=z?"bottom":"right",H=z?"clientHeight":"clientWidth",ee=z?"height":"width",V=N({},r,{component:f,allowScrollButtonsMobile:h,indicatorColor:g,orientation:b,vertical:z,scrollButtons:w,textColor:T,variant:P,visibleScrollbar:_,fixed:!$,hideScrollbar:$&&!_,scrollableX:$&&!z,scrollableY:$&&z,centered:u&&!$,scrollButtonsHideMobile:!h}),W=zoe(V),[j,I]=m.useState(!1),[M,J]=m.useState(iP),[ae,Te]=m.useState({start:!1,end:!1}),[he,Ie]=m.useState({overflow:"hidden",scrollbarWidth:0}),te=new Map,ie=m.useRef(null),le=m.useRef(null),oe=()=>{const Z=ie.current;let X;if(Z){const Re=Z.getBoundingClientRect();X={clientWidth:Z.clientWidth,scrollLeft:Z.scrollLeft,scrollTop:Z.scrollTop,scrollLeftNormalized:mR(Z,o.direction),scrollWidth:Z.scrollWidth,top:Re.top,bottom:Re.bottom,left:Re.left,right:Re.right}}let Se;if(Z&&R!==!1){const Re=le.current.children;if(Re.length>0){const De=Re[te.get(R)];Se=De?De.getBoundingClientRect():null}}return{tabsMeta:X,tabMeta:Se}},Ne=Dr(()=>{const{tabsMeta:Z,tabMeta:X}=oe();let Se=0,Re;if(z)Re="top",X&&Z&&(Se=X.top-Z.top+Z.scrollTop);else if(Re=i?"right":"left",X&&Z){const bt=i?Z.scrollLeftNormalized+Z.clientWidth-Z.scrollWidth:Z.scrollLeft;Se=(i?-1:1)*(X[Re]-Z[Re]+bt)}const De={[Re]:Se,[ee]:X?X[ee]:0};if(isNaN(M[Re])||isNaN(M[ee]))J(De);else{const bt=Math.abs(M[Re]-De[Re]),_t=Math.abs(M[ee]-De[ee]);(bt>=1||_t>=1)&&J(De)}}),me=(Z,{animation:X=!0}={})=>{X?Toe(L,ie.current,Z,{duration:o.transitions.duration.standard}):ie.current[L]=Z},ke=Z=>{let X=ie.current[L];z?X+=Z:(X+=Z*(i?-1:1),X*=i&&lN()==="reverse"?-1:1),me(X)},pe=()=>{const Z=ie.current[H];let X=0;const Se=Array.from(le.current.children);for(let Re=0;Re<Se.length;Re+=1){const De=Se[Re];if(X+De[H]>Z){Re===0&&(X=Z);break}X+=De[H]}return X},it=()=>{ke(-1*pe())},Le=()=>{ke(pe())},Ge=m.useCallback(Z=>{Ie({overflow:null,scrollbarWidth:Z})},[]),st=()=>{const Z={};Z.scrollbarSizeListener=$?l(Voe,{onChange:Ge,className:Ae(W.scrollableX,W.hideScrollbar)}):null;const X=ae.start||ae.end,Se=$&&(w==="auto"&&X||w===!0);return Z.scrollButtonStart=Se?l(y,N({orientation:b,direction:i?"right":"left",onClick:it,disabled:!ae.start},A,{className:Ae(W.scrollButtons,A.className)})):null,Z.scrollButtonEnd=Se?l(y,N({orientation:b,direction:i?"left":"right",onClick:Le,disabled:!ae.end},A,{className:Ae(W.scrollButtons,A.className)})):null,Z},Ye=Dr(Z=>{const{tabsMeta:X,tabMeta:Se}=oe();if(!(!Se||!X)){if(Se[B]<X[B]){const Re=X[L]+(Se[B]-X[B]);me(Re,{animation:Z})}else if(Se[Y]>X[Y]){const Re=X[L]+(Se[Y]-X[Y]);me(Re,{animation:Z})}}}),lt=Dr(()=>{if($&&w!==!1){const{scrollTop:Z,scrollHeight:X,clientHeight:Se,scrollWidth:Re,clientWidth:De}=ie.current;let bt,_t;if(z)bt=Z>1,_t=Z<X-Se-1;else{const zt=mR(ie.current,o.direction);bt=i?zt<Re-De-1:zt>1,_t=i?zt>1:zt<Re-De-1}(bt!==ae.start||_t!==ae.end)&&Te({start:bt,end:_t})}});m.useEffect(()=>{const Z=bc(()=>{ie.current&&(Ne(),lt())}),X=Bi(ie.current);X.addEventListener("resize",Z);let Se;return typeof ResizeObserver<"u"&&(Se=new ResizeObserver(Z),Array.from(le.current.children).forEach(Re=>{Se.observe(Re)})),()=>{Z.clear(),X.removeEventListener("resize",Z),Se&&Se.disconnect()}},[Ne,lt]);const Lt=m.useMemo(()=>bc(()=>{lt()}),[lt]);m.useEffect(()=>()=>{Lt.clear()},[Lt]),m.useEffect(()=>{I(!0)},[]),m.useEffect(()=>{Ne(),lt()}),m.useEffect(()=>{Ye(iP!==M)},[Ye,M]),m.useImperativeHandle(c,()=>({updateIndicator:Ne,updateScrollButtons:lt}),[Ne,lt]);const Ft=l(Hoe,N({},k,{className:Ae(W.indicator,k.className),ownerState:V,style:N({},M,k.style)}));let be=0;const Oe=m.Children.map(d,Z=>{if(!m.isValidElement(Z))return null;const X=Z.props.value===void 0?be:Z.props.value;te.set(X,be);const Se=X===R;return be+=1,m.cloneElement(Z,N({fullWidth:P==="fullWidth",indicator:Se&&!j&&Ft,selected:Se,selectionFollowsFocus:S,onChange:v,textColor:T,value:X},be===1&&R===!1&&!Z.props.tabIndex?{tabIndex:0}:{}))}),Qe=Z=>{const X=le.current,Se=Zn(X).activeElement;if(Se.getAttribute("role")!=="tab")return;let De=b==="horizontal"?"ArrowLeft":"ArrowUp",bt=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&i&&(De="ArrowRight",bt="ArrowLeft"),Z.key){case De:Z.preventDefault(),tg(X,Se,oP);break;case bt:Z.preventDefault(),tg(X,Se,rP);break;case"Home":Z.preventDefault(),tg(X,null,rP);break;case"End":Z.preventDefault(),tg(X,null,oP);break}},re=st();return x(joe,N({className:Ae(W.root,p),ownerState:V,ref:n,as:f},O,{children:[re.scrollButtonStart,re.scrollbarSizeListener,x(Uoe,{className:W.scroller,ownerState:V,style:{overflow:he.overflow,[z?`margin${i?"Left":"Right"}`:"marginBottom"]:_?void 0:-he.scrollbarWidth},ref:ie,onScroll:Lt,children:[l(Woe,{"aria-label":a,"aria-labelledby":s,"aria-orientation":b==="vertical"?"vertical":null,className:W.flexContainer,ownerState:V,onKeyDown:Qe,ref:le,role:"tablist",children:Oe}),j&&Ft]}),re.scrollButtonEnd]}))}),qoe=Goe;function Yoe(e){return Ze("MuiTextField",e)}nt("MuiTextField",["root"]);const Koe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Xoe={standard:E6,filled:y6,outlined:O6},Joe=e=>{const{classes:t}=e;return tt({root:["root"]},Yoe,t)},Qoe=C($s,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zoe=m.forwardRef(function(t,n){const r=rt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:c="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:f,fullWidth:h=!1,helperText:g,id:v,InputLabelProps:b,inputProps:y,InputProps:w,inputRef:S,label:k,maxRows:A,minRows:T,multiline:R=!1,name:P,onBlur:_,onChange:O,onFocus:$,placeholder:z,required:L=!1,rows:B,select:Y=!1,SelectProps:H,type:ee,value:V,variant:W="outlined"}=r,j=Fe(r,Koe),I=N({},r,{autoFocus:i,color:c,disabled:d,error:p,fullWidth:h,multiline:R,required:L,select:Y,variant:W}),M=Joe(I),J={};W==="outlined"&&(b&&typeof b.shrink<"u"&&(J.notched=b.shrink),J.label=k),Y&&((!H||!H.native)&&(J.id=void 0),J["aria-describedby"]=void 0);const ae=xd(v),Te=g&&ae?`${ae}-helper-text`:void 0,he=k&&ae?`${ae}-label`:void 0,Ie=Xoe[W],te=l(Ie,N({"aria-describedby":Te,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:h,multiline:R,name:P,rows:B,maxRows:A,minRows:T,type:ee,value:V,id:ae,inputRef:S,onBlur:_,onChange:O,onFocus:$,placeholder:z,inputProps:y},J,w));return x(Qoe,N({className:Ae(M.root,s),disabled:d,error:p,fullWidth:h,ref:n,required:L,color:c,variant:W,ownerState:I},j,{children:[k!=null&&k!==""&&l(zh,N({htmlFor:ae,id:he},b,{children:k})),Y?l(jh,N({"aria-describedby":Te,id:ae,labelId:he,value:V,input:te},H,{children:a})):te,g&&l(kZ,N({id:Te},f,{children:g}))]}))}),pn=Zoe,B6=()=>({type:"success",title:"",text:"",components:[],show:!1,persist:!1}),eie=()=>{throw new Error("setToast called outside UIContext")},tie=()=>{throw new Error("setShowFeedback called outside UIContext")},nie=()=>{throw new Error("setMode called outside UIContext")},Il=Ce.createContext({toastData:B6(),setToast:eie,showFeedback:!1,setShowFeedback:tie,themeMode:"light",setThemeMode:nie});function rh(e){try{return rie(window.localStorage.getItem(e))}catch(t){console.warn(t)}}function td(e,t){try{window.localStorage.setItem(e,JSON.stringify(t,(n,r)=>r instanceof Set?[...r]:r))}catch(n){console.warn(n)}}function rie(e){try{return e?JSON.parse(e):void 0}catch(t){console.warn(t)}}const Je={grey:{900:"#202021",800:"#6E6E70",700:"#78787A",600:"#9F9FA1",500:"#BDBDBF",400:"#E1E1E3",300:"#EAEAED",200:"#F2F2F5",100:"#F7F7FA",50:"#FFFFFF"},action:{.54:"rgba(25, 24, 41, 0.54)",.32:"rgba(25, 24, 41, 0.32)",.12:"rgba(25, 24, 41, 0.12)",.08:"rgba(25, 24, 41, 0.08)",.05:"rgba(25, 24, 41, 0.05)"},purple:{950:"#4944a7",900:"#615BC2",800:"#6C65E5",700:"#817AFE",600:"#8C87EB",500:"#9D98EE",400:"#ADA9F1",300:"#BEBBF3",200:"#CECCF6",100:"#E4E3F9",50:"#F1F0FC"},red:{900:"#A6000E",800:"#D11525",700:"#D93644",600:"#E04C59",500:"#E04C59",400:"#F0616D",300:"#FEB0B7",200:"#FFD4D8",100:"#FFE5E7",50:"#FFF2F3"},orange:{900:"#A34C00",800:"#D76500",700:"#F28D00",600:"#FFAA33",500:"#FFC46F",400:"#FFCF8B",300:"#FFD9A3",200:"#FFEACC",100:"#FFF4E5",50:"#FFFCF5"},green:{900:"#305200",800:"#3B6600",700:"#4D8400",600:"#68A611",500:"#7FB435",400:"#99C35D",300:"#B0D182",200:"#CFE5AE",100:"#E4F0D3",50:"#F4FAEB"},blue:{900:"#163E59",800:"#0060A1",700:"#0071BD",600:"#007ACA",500:"#0087E0",400:"#1C98EB",300:"#5BB4F0",200:"#96D2FA",100:"#DCEEFA",50:"#EBF7FF"},darkblue:{1e3:"#091826",900:"#041c32",800:"#1d3247",700:"#28415c",600:"#1f3751",500:"#0e2840"}},oie=Object.fromEntries?Object.fromEntries:e=>{if(!e||!e[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");const t={};return Object.keys(e).forEach(n=>{const[r,o]=e[n];t[r]=o}),t};function Iv(e){return Object.keys(e)}function F6(e,t){if(!e)throw new Error(t)}function z6(e,t){return t}const i2=e=>{const t=e.length;let n=0,r="";for(;n<t;n++){const o=e[n];if(o==null)continue;let i;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=i2(o);else{F6(!z6(o,!1)),i="";for(const a in o)o[a]&&a&&(i&&(i+=" "),i+=a)}break}default:i=o}i&&(r&&(r+=" "),r+=i)}return r};function iie(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var aie={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function sie(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var lie=/[A-Z]|^ms/g,cie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,j6=function(t){return t.charCodeAt(1)===45},aP=function(t){return t!=null&&typeof t!="boolean"},zb=sie(function(e){return j6(e)?e:e.replace(lie,"-$&").toLowerCase()}),sP=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(cie,function(r,o,i){return ka={name:o,styles:i,next:ka},o})}return aie[t]!==1&&!j6(t)&&typeof n=="number"&&n!==0?n+"px":n};function oh(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ka={name:n.name,styles:n.styles,next:ka},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ka={name:r.name,styles:r.styles,next:ka},r=r.next;var o=n.styles+";";return o}return uie(e,t,n)}case"function":{if(e!==void 0){var i=ka,a=n(e);return ka=i,oh(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function uie(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=oh(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":aP(a)&&(r+=zb(i)+":"+sP(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)aP(a[s])&&(r+=zb(i)+":"+sP(i,a[s])+";");else{var c=oh(e,t,a);switch(i){case"animation":case"animationName":{r+=zb(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var lP=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ka,die=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";ka=void 0;var a=t[0];a==null||a.raw===void 0?(o=!1,i+=oh(r,n,a)):i+=a[0];for(var s=1;s<t.length;s++)i+=oh(r,n,t[s]),o&&(i+=a[s]);lP.lastIndex=0;for(var c="",u;(u=lP.exec(i))!==null;)c+="-"+u[1];var d=iie(i)+c;return{name:d,styles:i,next:ka}},pie=!0;function fie(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var hie=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||pie===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},mie=function(t,n,r){hie(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function gie(e,t){const n=m.useRef();return(!n.current||t.length!==n.current.prevDeps.length||n.current.prevDeps.map((r,o)=>r===t[o]).indexOf(!1)>=0)&&(n.current={v:e(),prevDeps:[...t]}),n.current.v}function vie(e){return e instanceof Object&&!("styles"in e)&&!("length"in e)&&!("__emotion_styles"in e)}const{createCssAndCx:yie}=(()=>{function e(n,r,o){const i=[],a=fie(n,i,o);return i.length<2?o:a+r(i)}function t(n){const{cache:r}=n,o=(...a)=>{const s=die(a,r.registered);mie(r,s,!1);const c=`${r.key}-${s.name}`;e:{const u=a[0];if(!vie(u))break e;cP.saveClassNameCSSObjectMapping(r,c,u)}return c};return{css:o,cx:(...a)=>{const s=i2(a),c=cP.fixClassName(r,s,o);return e(r.registered,o,c)}}}return{createCssAndCx:t}})();function bie(e){const{useCache:t}=e;function n(){const r=t(),{css:o,cx:i}=gie(()=>yie({cache:r}),[r]);return{css:o,cx:i}}return{useCssAndCx:n}}const cP=(()=>{const e=new WeakMap;return{saveClassNameCSSObjectMapping:(t,n,r)=>{let o=e.get(t);o===void 0&&(o=new Map,e.set(t,o)),o.set(n,r)},fixClassName:(()=>{function t(n){let r=!1;return n.map(([o,i])=>{if(i===void 0)return o;let a;if(r)a={"&&":i};else{a=o;for(const s in i)if(s.startsWith("@media")){r=!0;break}}return a})}return(n,r,o)=>{const i=e.get(n);return i2(t(r.split(" ").map(a=>[a,i==null?void 0:i.get(a)])).map(a=>typeof a=="string"?a:o(a)))}})()}})();function ng(e){if(!(e instanceof Object)||typeof e=="function")return e;const t=[];for(const n in e){const r=e[n],o=typeof r;if(!(o==="string"||o==="number"&&!isNaN(r)||o==="boolean"||r===void 0||r===null))return e;t.push(`${n}:${o}_${r}`)}return"xSqLiJdLMd9s"+t.join("|")}function uP(e,t,n){if(!(t instanceof Object))return e;const r={};return Iv(e).forEach(o=>r[o]=n(e[o],t[o])),Iv(t).forEach(o=>{if(o in e)return;const i=t[o];typeof i=="string"&&(r[o]=i)}),r}let wie=0;function U6(e){const{useTheme:t,cache:n}=e;function r(){var s;const c=VU(),u=xie(),d=(s=n??u)!==null&&s!==void 0?s:c;if(d===null)throw new Error(["In order to get SSR working with tss-react you need to explicitly provide an Emotion cache.","MUI users be aware: This is not an error strictly related to tss-react, with or without tss-react,","MUI needs an Emotion cache to be provided for SSR to work.","Here is the MUI documentation related to SSR setup: https://mui.com/material-ui/guides/server-rendering/","TSS provides helper that makes the process of setting up SSR easier: https://docs.tss-react.dev/ssr"].join(`
246
+ `));return d}const{useCssAndCx:o}=bie({useCache:r});function i(s){const{name:c,uniqId:u=wie++}=s??{},d=typeof c!="object"?c:Object.keys(c)[0];return function(p){const f=typeof p=="function"?p:()=>p;return function(g,v){var b,y;const w=v==null?void 0:v.props,S=t(),{css:k,cx:A}=o(),T=r();let R=m.useMemo(()=>{const _={},O=typeof Proxy<"u"&&new Proxy({},{get:(L,B)=>(typeof B=="symbol"&&F6(!1),_[B]=`${T.key}-${u}${d!==void 0?`-${d}`:""}-${B}-ref`)}),$=f(S,g,O||{}),z=oie(Iv($).map(L=>{const B=$[L];return B.label||(B.label=`${d!==void 0?`${d}-`:""}${L}`),[L,`${k(B)}${z6(L,L in _)?` ${_[L]}`:""}`]}));return Iv(_).forEach(L=>{L in z||(z[L]=_[L])}),z},[T,k,A,S,ng(g)]);const P=w==null?void 0:w.classes;R=m.useMemo(()=>uP(R,P,A),[R,ng(P),A]);{let _;try{_=d!==void 0?(y=(b=S.components)===null||b===void 0?void 0:b[d])===null||y===void 0?void 0:y.styleOverrides:void 0}catch{}const O=m.useMemo(()=>{if(!_)return;const $={};for(const z in _){const L=_[z];L instanceof Object&&($[z]=k(typeof L=="function"?L(Object.assign({theme:S,ownerState:v==null?void 0:v.ownerState},w)):L))}return $},[_===void 0?void 0:typeof _=="function"?_:JSON.stringify(_),ng(w),ng(v==null?void 0:v.ownerState),k]);R=m.useMemo(()=>uP(R,O,A),[R,O,A])}return{classes:R,theme:S,css:k,cx:A}}}}function a(){const s=t(),{css:c,cx:u}=o();return{theme:s,css:c,cx:u}}return{makeStyles:i,useStyles:a}}const Sie=m.createContext(void 0);function xie(){return m.useContext(Sie)}function dP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var pP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Cie(e){const{useTheme:t,cache:n}=e,{makeStyles:r}=U6({useTheme:t,cache:n});function o(i,a,s){const c=typeof i=="string"?(()=>{const h=i,g=function(v){var{children:b}=v,y=pP(v,["children"]);return m.createElement(h,y,b)};return Object.defineProperty(g,"name",{value:dP(h)}),g})():i,u=(()=>{{const{name:h}=s??{};if(h!==void 0)return typeof h!="object"?h:Object.keys(h)[0]}{const h=c.displayName;if(typeof h=="string"&&h!=="")return h}{const{name:h}=c;if(h)return h}})(),d=r(Object.assign(Object.assign({},s),{name:u}))(typeof a=="function"?(h,g,v)=>hP(a(h,g,v)):hP(a));function p(h){for(const g in h)if(g!=="root")return!0;return!1}const f=m.forwardRef(function(h,g){const{className:v,classes:b}=h,y=pP(h,["className","classes"]),{classes:w,cx:S}=d(h,{props:h}),k=S(w.root,v);return W6.set(w,Object.assign(Object.assign({},w),{root:k})),Ce.createElement(c,Object.assign({ref:g,className:p(w)?v:k},typeof i=="string"?{}:{classes:w},y))});return u!==void 0&&(f.displayName=`${dP(u)}WithStyles`,Object.defineProperty(f,"name",{value:f.displayName})),f}return o.getClasses=Eie,{withStyles:o}}const W6=new WeakMap,fP="getClasses should only be used in conjunction with withStyles";function Eie(e){const t=e.classes;if(t===void 0)throw new Error(fP);const n=W6.get(t);if(n===void 0)throw new Error(fP);return n}function hP(e){const t={},n={};return Object.keys(e).forEach(r=>(r.startsWith("@media")?n:t)[r]=e[r]),Object.keys(n).forEach(r=>{const o=n[r];Object.keys(o).forEach(i=>{var a;return t[i]=Object.assign(Object.assign({},(a=t[i])!==null&&a!==void 0?a:{}),{[r]:o[i]})})}),t}function Tie(e){return Object.assign(Object.assign({},U6(e)),Cie(e))}const{makeStyles:Ns,withStyles:kie,useStyles:bBe}=Tie({useTheme:yn}),Hi=e=>({"&:focus-visible":{outline:0,outlineStyle:"solid",outlineWidth:2,outlineOffset:2,outlineColor:e.palette.primary.main,borderRadius:"2px"}}),x1=e=>({"& > *":{marginTop:`${e.spacing(1)} !important`,marginBottom:`${e.spacing(1)} !important`}}),Aie=e=>({fontSize:e.fontSizes.mainHeader,fontWeight:"bold",marginBottom:e.spacing(1)}),H6={textAlign:"center"},V6={textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},Nc={display:"flex",alignItems:"center"},G6={display:"flex",flexDirection:"column"},Rie={alignItems:"center"},_ie={position:"relative"},wBe=e=>({borderRadius:`${e.shape.borderRadius}px`}),q6={opacity:"0",right:"40px",bottom:"40px",transform:"translateY(400px)",zIndex:1400,position:"fixed"},Y6={transform:"translateY(0)",opacity:"1",transition:"transform 0.6s ease, opacity 1s ease"},Pie={transform:"translateY(400px)",opacity:"0",transition:"transform 1.25s ease, opacity 1s ease"},Iie=e=>({opacity:"0",position:"fixed",transform:"translateY(-400px)"}),Oie={transform:"translateY(100px)",opacity:"1",transition:"transform 0.6s ease, opacity 1s ease"},$ie={transform:"translateY(-400px)",opacity:"0",transition:"transform 1.25s ease, opacity 1s ease"},Uh=Ns()(e=>({focusable:{"&:focus-visible":{outline:0,outlineStyle:"solid",outlineWidth:2,outlineOffset:2,outlineColor:e.palette.primary.main}},contentSpacingY:{"& > *":{marginTop:"0.5rem !important",marginBottom:"0.5rem !important"}},divider:{margin:"1rem 0",backgroundColor:e.palette.divider,height:"3px",width:"100%"},largeDivider:{margin:"2rem 0",backgroundColor:e.palette.divider,height:"3px",width:"100%"},bold:{fontWeight:"bold"},flexRow:{display:"flex",alignItems:"center"},flexColumn:{display:"flex",flexDirection:"column"},itemsCenter:{alignItems:"center"},justifyCenter:{justifyContent:"center"},flexWrap:{flexWrap:"wrap"},textCenter:{textAlign:"center"},fullWidth:{width:"100%"},fullHeight:{height:"100%"},title:{fontSize:e.fontSizes.mainHeader,fontWeight:"bold",marginBottom:"0.5rem"},error:{fontSize:e.fontSizes.smallBody,color:e.palette.error.main}})),jb={breakpoints:{values:{xs:0,sm:600,md:960,lg:1260,xl:1536}},boxShadows:{main:"0px 2px 4px rgba(129, 122, 254, 0.2)",card:"0px 2px 10px rgba(28, 25, 78, 0.12)",elevated:"0px 1px 20px rgba(45, 42, 89, 0.1)",popup:"0px 2px 6px rgba(0, 0, 0, 0.25)",primaryHeader:"0px 8px 24px rgba(97, 91, 194, 0.2)",separator:"0px 2px 4px rgba(32, 32, 33, 0.12)"},typography:{fontFamily:"Sen, Roboto, sans-serif",fontWeightBold:"700",fontWeightMedium:"700",allVariants:{lineHeight:1.4},button:{lineHeight:1.75},h1:{fontSize:"1.5rem",lineHeight:1.875},h2:{fontSize:`${20/16}rem`,fontWeight:"700"},h3:{fontSize:"1rem",fontWeight:"700"},caption:{fontSize:`${12/16}rem`}},fontSizes:{largeHeader:"2rem",mainHeader:"1.25rem",bodySize:"1rem",smallBody:`${14/16}rem`,smallerBody:`${12/16}rem`},fontWeight:{thin:300,medium:400,semi:700,bold:700},shape:{borderRadius:4,borderRadiusMedium:8,borderRadiusLarge:12,borderRadiusExtraLarge:20,tableRowHeight:64,tableRowHeightCompact:56,tableRowHeightDense:48},zIndex:{sticky:1400},palette:{common:{white:Je.grey[50],black:Je.grey[900]},text:{primary:Je.grey[900],secondary:Je.grey[800],disabled:Je.grey[600]},primary:{main:Je.purple[800],light:Je.purple[700],dark:Je.purple[900],contrastText:Je.grey[50]},secondary:{main:Je.purple[800],light:Je.purple[50],dark:Je.purple[900],border:Je.purple[300],contrastText:Je.purple[900]},info:{main:Je.blue[500],light:Je.blue[50],dark:Je.blue[800],border:Je.blue[200],contrastText:Je.blue[800]},success:{main:Je.green[600],light:Je.green[50],dark:Je.green[800],border:Je.green[300],contrastText:Je.green[800]},warning:{main:Je.orange[800],light:Je.orange[100],dark:Je.orange[900],border:Je.orange[500],contrastText:Je.orange[900]},error:{main:Je.red[700],light:Je.red[50],dark:Je.red[800],border:Je.red[300],contrastText:Je.red[800]},web:{main:"#1A4049",contrastText:Je.grey[50]},neutral:{main:Je.grey[700],light:Je.grey[100],dark:Je.grey[800],border:Je.grey[400],contrastText:Je.grey[800]},background:{paper:Je.grey[50],default:Je.grey[50],application:Je.grey[300],sidebar:Je.purple[800],alternative:Je.purple[800],elevation1:Je.grey[100],elevation2:Je.grey[200]},action:{active:Je.action[.54],hover:Je.action[.05],hoverOpacity:.05,selected:Je.action[.08],selectedOpacity:.08,disabled:Je.action[.32],disabledBackground:Je.action[.12],disabledOpacity:.38,focus:Je.action[.12],focusOpacity:.12,activatedOpacity:.12},divider:Je.grey[400],table:{headerBackground:Je.grey[200],headerHover:Je.grey[300],divider:Je.grey[300],rowHover:Je.grey[100]},highlight:Je.orange[200],spotlight:{border:"#463cfb",outline:"#6058f5",pulse:"#463cfb"},codebox:Je.action[.12],links:Je.purple[900],loginGradient:{from:Je.purple[800],to:Je.purple[950]},eventLog:{diffAdd:Je.green[800],diffSub:Je.red[800],edited:Je.grey[900]},seen:{unknown:Je.grey[100],recent:Je.green[100],inactive:Je.orange[200],abandoned:Je.red[200],primary:Je.purple[100]},envAccordion:{disabled:Je.grey[100],expanded:Je.grey[200]},grey:{100:Je.grey[100],600:Je.grey[800],700:Je.grey[800]}}},ua=i1({...jb,components:{MuiCssBaseline:{styleOverrides:{"#react-joyride-portal ~ .MuiDialog-root":{zIndex:1399},".skeleton":{"&::before":{backgroundColor:jb.palette.background.elevation1},"&::after":{background:"linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 100%, rgba(255, 255, 255, 0.5) 100%, rgba(255, 255, 255, 0))"}},a:{color:jb.palette.links}}},MuiLink:{styleOverrides:{root:({theme:e})=>({...Hi(e),color:e.palette.links,"&:hover":{textDecoration:"none"}})}},MuiBreadcrumbs:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,fontSize:"0.875rem","& a":{color:e.palette.links,textDecoration:"none","&:hover":{textDecoration:"underline"}}})}},MuiTableHead:{styleOverrides:{root:({theme:e})=>({"& th":{height:e.shape.tableRowHeightCompact,backgroundColor:e.palette.table.headerBackground,border:0,"&:first-of-type":{borderTopLeftRadius:e.shape.borderRadiusMedium,borderBottomLeftRadius:e.shape.borderRadiusMedium},"&:last-of-type":{borderTopRightRadius:e.shape.borderRadiusMedium,borderBottomRightRadius:e.shape.borderRadiusMedium}}})}},MuiTableRow:{styleOverrides:{root:({theme:e})=>({"&.MuiTableRow-root:hover":{background:e.palette.table.rowHover}})}},MuiTableCell:{styleOverrides:{root:({theme:e})=>({borderBottomColor:e.palette.table.divider})}},MuiAlert:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(2,3),borderRadius:e.shape.borderRadiusMedium,a:{color:"inherit"},"> .MuiAlert-icon":{padding:0,opacity:1,fontSize:"24px"},"> .MuiAlert-message":{padding:"3px 0 0 0"},"&.MuiAlert-standardInfo":{backgroundColor:e.palette.info.light,color:e.palette.info.dark,border:`1px solid ${e.palette.info.border}`,"& .MuiAlert-icon":{color:e.palette.info.main}},"&.MuiAlert-standardSuccess":{backgroundColor:e.palette.success.light,color:e.palette.success.dark,border:`1px solid ${e.palette.success.border}`,"& .MuiAlert-icon":{color:e.palette.success.main}},"&.MuiAlert-standardWarning":{backgroundColor:e.palette.warning.light,color:e.palette.warning.dark,border:`1px solid ${e.palette.warning.border}`,"& .MuiAlert-icon":{color:e.palette.warning.main}},"&.MuiAlert-standardError":{backgroundColor:e.palette.error.light,color:e.palette.error.dark,border:`1px solid ${e.palette.error.border}`,"& .MuiAlert-icon":{color:e.palette.error.main}}})}},MuiTabs:{styleOverrides:{root:({theme:e})=>({"& .MuiTabs-indicator":{height:"4px"},"& .MuiTabs-flexContainer":{minHeight:"70px",maxHeight:"70px"}})}},MuiTab:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,fontSize:"1rem",textTransform:"none",fontWeight:400,lineHeight:"1",minHeight:"62px","&:hover":{backgroundColor:e.palette.action.hover},"&.Mui-selected":{color:e.palette.text.primary,fontWeight:700},"& > span":{color:e.palette.primary.main},[e.breakpoints.down("md")]:{padding:"12px 0px"}})}},MuiAccordion:{styleOverrides:{root:({theme:e})=>({"&:first-of-type, &:last-of-type":{borderRadius:e.shape.borderRadiusLarge},"&.environment-accordion.Mui-expanded":{outline:`2px solid ${yt(e.palette.background.alternative,.6)}`,boxShadow:`0px 2px 8px ${yt(e.palette.primary.main,.2)}`}})}},MuiAccordionSummary:{styleOverrides:{root:{"& > .MuiAccordionSummary-content.Mui-expanded":{margin:"12px 0"},"&.Mui-expanded":{minHeight:"0"}}}},MuiSwitch:{styleOverrides:{root:({theme:e})=>({zIndex:1,".MuiSwitch-switchBase:not(.Mui-checked) .MuiTouchRipple-child":{color:e.palette.action.disabled}})}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-disabled":{opacity:.66}}}},MuiInputBase:{styleOverrides:{root:({theme:e})=>({backgroundColor:e.palette.background.paper})}},MuiAppBar:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary})}}}}),Gl={.54:"rgba(223, 222, 255, 0.54)",.32:"rgba(223, 222, 255, 0.32)",.12:"rgba(223, 222, 255, 0.12)",.08:"rgba(223, 222, 255, 0.08)",.05:"rgba(223, 222, 255, 0.05)"},rg={breakpoints:{values:{xs:0,sm:600,md:960,lg:1260,xl:1536}},boxShadows:{main:"0px 2px 4px rgba(129, 122, 254, 0.2)",card:"0px 2px 10px rgba(28, 25, 78, 0.12)",elevated:"0px 1px 20px rgba(45, 42, 89, 0.1)",popup:"0px 2px 6px rgba(0, 0, 0, 0.25)",primaryHeader:"0px 8px 24px rgba(97, 91, 194, 0.2)",separator:"0px 2px 4px rgba(32, 32, 33, 0.12)"},typography:{fontFamily:"Sen, Roboto, sans-serif",fontWeightBold:"700",fontWeightMedium:"700",allVariants:{lineHeight:1.4},button:{lineHeight:1.75},h1:{fontSize:"1.5rem",lineHeight:1.875},h2:{fontSize:`${20/16}rem`,fontWeight:"700"},h3:{fontSize:"1rem",fontWeight:"700"},caption:{fontSize:`${12/16}rem`}},fontSizes:{largeHeader:"2rem",mainHeader:"1.25rem",bodySize:"1rem",smallBody:`${14/16}rem`,smallerBody:`${12/16}rem`},fontWeight:{thin:300,medium:400,semi:700,bold:700},shape:{borderRadius:4,borderRadiusMedium:8,borderRadiusLarge:12,borderRadiusExtraLarge:20,tableRowHeight:64,tableRowHeightCompact:56,tableRowHeightDense:48},zIndex:{sticky:1400},palette:{common:{white:"#EEEEFC",black:"#A0A0B1"},text:{primary:"#EEEEFC",secondary:"#A0A0B1",disabled:"#888799"},primary:{main:"#9792ED",light:"#4C4992",dark:"#9792ED",contrastText:"#EEEEFC"},secondary:{main:"#9792ED",light:"#34325E",dark:"#EEEEFC",border:"#4C4992",contrastText:"#EEEEFC"},info:{main:"#a2bbe2",light:"#1A2641",dark:"#a2bbe2",border:"#1B407A",contrastText:"#EEEEFC"},success:{main:"#94ae6f",light:"#333D30",dark:"#94ae6f",border:"#3D600C",contrastText:"#EEEEFC"},warning:{main:"#bc7d21",light:"#3B302C",dark:"#bc7d21",contrastText:"#EEEEFC",border:"#6C4A19"},error:{main:"#ff6472",light:"#3F2835",dark:"#ff6472",border:"#8A3E45",contrastText:"#EEEEFC"},web:{main:"#1A4049",contrastText:"#EEEEFC"},neutral:{main:"#858699",light:"#2B2A3C",dark:"#EEEEFC",border:"#454360",contrastText:"#EEEEFC"},background:{paper:"#222130",default:"#222130",application:"#1A1924",sidebar:"#4C4992",alternative:"#4C4992",elevation1:"#2B2A3C",elevation2:"#2B2A3C"},action:{active:Gl[.54],hover:Gl[.05],hoverOpacity:.05,selected:Gl[.08],selectedOpacity:.08,disabled:Gl[.32],disabledBackground:Gl[.12],disabledOpacity:.38,focus:Gl[.12],focusOpacity:.12,activatedOpacity:.12},divider:"#39384C",table:{headerBackground:"#2B2A3C",headerHover:"#313045",divider:"#323144",rowHover:"#262536"},highlight:"rgba(255, 234, 204, 0.7)",spotlight:{border:"#8c89bf",outline:"#bcb9f3",pulse:"#bcb9f3"},codebox:"rgba(52, 50, 94, 0.3)",links:"#9792ED",loginGradient:{from:"#4C4992",to:"#4944a7"},eventLog:{diffAdd:"#77AB2E",diffSub:"#df626c",edited:"#EEEEFC"},seen:{unknown:"#2B2A3C",recent:"#4E6131",inactive:"#875D21",abandoned:"#8A3E45",primary:"#302E42"},envAccordion:{disabled:"#2B2A3C",expanded:"#1A1924"},grey:{100:"#888799",600:"#343348",700:"#343348"}}},Nie=i1({...rg,components:{MuiCssBaseline:{styleOverrides:{"#react-joyride-portal ~ .MuiDialog-root":{zIndex:1399},".skeleton":{"&::before":{backgroundColor:rg.palette.background.elevation1},"&::after":{background:"linear-gradient(90deg, rgba(223, 222, 255, 0) 0, rgba(223, 222, 255, 0.2) 100%, rgba(223, 222, 255, 0.5) 100%, rgba(223, 222, 255, 0))"}},a:{color:rg.palette.links},".dropdown-outline, .MuiAutocomplete-popper":{outline:`1px solid ${rg.palette.divider}`}}},MuiLink:{styleOverrides:{root:({theme:e})=>({...Hi(e),color:e.palette.links,"&:hover":{textDecoration:"none"}})}},MuiBreadcrumbs:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,fontSize:"0.875rem","& a":{color:e.palette.links,textDecoration:"none","&:hover":{textDecoration:"underline"}}})}},MuiTableHead:{styleOverrides:{root:({theme:e})=>({"& th":{height:e.shape.tableRowHeightCompact,backgroundColor:e.palette.table.headerBackground,border:0,"&:first-of-type":{borderTopLeftRadius:e.shape.borderRadiusMedium,borderBottomLeftRadius:e.shape.borderRadiusMedium},"&:last-of-type":{borderTopRightRadius:e.shape.borderRadiusMedium,borderBottomRightRadius:e.shape.borderRadiusMedium}}})}},MuiTableRow:{styleOverrides:{root:({theme:e})=>({"&.MuiTableRow-root:hover":{background:e.palette.table.rowHover}})}},MuiTableCell:{styleOverrides:{root:({theme:e})=>({borderBottomColor:e.palette.table.divider})}},MuiAlert:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(2,3),borderRadius:e.shape.borderRadiusMedium,a:{color:"inherit"},"> .MuiAlert-icon":{padding:0,opacity:1,fontSize:"24px"},"> .MuiAlert-message":{padding:"3px 0 0 0"},"&.MuiAlert-standardInfo":{backgroundColor:e.palette.info.light,color:e.palette.info.contrastText,border:`1px solid ${e.palette.info.border}`,"& .MuiAlert-icon":{color:e.palette.info.main}},"&.MuiAlert-standardSuccess":{backgroundColor:e.palette.success.light,color:e.palette.success.contrastText,border:`1px solid ${e.palette.success.border}`,"& .MuiAlert-icon":{color:e.palette.success.main}},"&.MuiAlert-standardWarning":{backgroundColor:e.palette.warning.light,color:e.palette.warning.contrastText,border:`1px solid ${e.palette.warning.border}`,"& .MuiAlert-icon":{color:e.palette.warning.main}},"&.MuiAlert-standardError":{backgroundColor:e.palette.error.light,color:e.palette.error.contrastText,border:`1px solid ${e.palette.error.border}`,"& .MuiAlert-icon":{color:e.palette.error.main}}})}},MuiTabs:{styleOverrides:{root:({theme:e})=>({"& .MuiTabs-indicator":{backgroundColor:e.palette.background.alternative,height:"4px"},"& .MuiTabs-flexContainer":{minHeight:"70px",maxHeight:"70px"}})}},MuiTab:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,fontSize:"1rem",textTransform:"none",fontWeight:400,lineHeight:"1",minHeight:"62px","&:hover":{backgroundColor:e.palette.action.hover},"&.Mui-selected":{color:e.palette.text.primary,fontWeight:700},"& > span":{color:e.palette.primary.main},[e.breakpoints.down("md")]:{padding:"12px 0px"}})}},MuiAccordion:{styleOverrides:{root:({theme:e})=>({"&:first-of-type, &:last-of-type":{borderRadius:e.shape.borderRadiusLarge},"&.environment-accordion.Mui-expanded":{outline:`2px solid ${yt(e.palette.background.alternative,.6)}`,boxShadow:`0px 2px 8px ${yt(e.palette.primary.main,.2)}`},"&.accordion-disabled":{outline:`1px solid ${yt("#39384C",.5)}`,backgroundColor:e.palette.background.application},"&.accordion-disabled.Mui-expanded .MuiAccordionSummary-root":{borderBottom:`1px solid ${e.palette.divider}`}})}},MuiAccordionSummary:{styleOverrides:{root:{"& > .MuiAccordionSummary-content.Mui-expanded":{margin:"12px 0"},"&.Mui-expanded":{minHeight:"0"}}}},MuiSwitch:{styleOverrides:{root:({theme:e})=>({zIndex:1,"&&& > .Mui-checked:hover":{backgroundColor:Gl[.08]},"&&& > .Mui-checked.Mui-disabled":{color:"#423F6E"}})}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-disabled":{opacity:.4}}}},MuiInputBase:{styleOverrides:{root:({theme:e})=>({backgroundColor:e.palette.background.paper})}},MuiAppBar:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary})}},MuiButton:{styleOverrides:{root:({theme:e})=>({"&:not(.Mui-disabled).MuiButton-containedPrimary":{backgroundColor:e.palette.background.alternative,"&:hover":{backgroundColor:e.palette.secondary.light}}})}},MuiIconButton:{styleOverrides:{root:({theme:e})=>({"&.operator-is-active svg":{fill:e.palette.background.application}})}},MuiOutlinedInput:{styleOverrides:{root:({theme:e})=>({fieldset:{borderColor:"#646382"},"&&&:hover fieldset":{borderColor:"#8B8BA7"},"&&&.Mui-focused fieldset":{borderColor:"#9792ED"},"&&&.Mui-disabled fieldset":{borderColor:"#47475D"}})}},MuiPopover:{styleOverrides:{root:({theme:e})=>({".MuiPopover-paper":{outline:`1px solid ${e.palette.divider}`}})}}}}),K6=()=>{const{themeMode:e,setThemeMode:t}=m.useContext(Il),n="unleash-theme";return{resolveTheme:()=>e==="light"?ua:Nie,onSetThemeMode:()=>{t(i=>i==="light"?(td(n,"dark"),"dark"):(td(n,"light"),"light"))},themeMode:e}},Lie=TW({key:"mui",prepend:!0}),Die=({children:e})=>{const{resolveTheme:t}=K6();return l(HU,{value:Lie,children:x(qH,{theme:t(),children:[l(KJ,{}),e]})})};var Mie=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),t.length!==n.length||t.some(function(r,o){return!Object.is(r,n[o])})},mP={error:null},gP=function(e){jE(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.state=mP,r.resetErrorBoundary=function(){for(var s,c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];r.props.onReset==null||(s=r.props).onReset.apply(s,u),r.reset()},r}t.getDerivedStateFromError=function(o){return{error:o}};var n=t.prototype;return n.reset=function(){this.setState(mP)},n.componentDidCatch=function(o,i){var a,s;(a=(s=this.props).onError)==null||a.call(s,o,i)},n.componentDidUpdate=function(o,i){var a=this.state.error,s=this.props.resetKeys;if(a!==null&&i.error!==null&&Mie(o.resetKeys,s)){var c,u;(c=(u=this.props).onResetKeysChange)==null||c.call(u,o.resetKeys,s),this.reset()}},n.render=function(){var o=this.state.error,i=this.props,a=i.fallbackRender,s=i.FallbackComponent,c=i.fallback;if(o!==null){var u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(m.isValidElement(c))return c;if(typeof a=="function")return a(u);if(s)return m.createElement(s,u);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(m.Component);const q=({condition:e,show:t,elseShow:n})=>{const r=i=>{const a=i();return a||(console.warn("Nothing was returned from your render function. Verify that you are returning a valid react component"),null)},o=i=>typeof i=="function";return e?o(t)?r(t):t:!e&&n?o(n)?r(n):n:null},Bie="NAVIGATE_TO_CREATE_FEATURE",SBe="NAVIGATE_TO_CREATE_GROUP",Fie="NAVIGATE_TO_CREATE_SEGMENT",xBe="CREATE_API_TOKEN_BUTTON",zie="CF_NAME_ID",jie="CF_TYPE_ID",Uie="CF_DESC_ID",Wie="CF_CREATE_BTN_ID",CBe="UG_NAME_ID",EBe="UG_DESC_ID",TBe="UG_USERS_ID",kBe="UG_CREATE_BTN_ID",ABe="UG_SAVE_BTN_ID",RBe="UG_EDIT_BTN_ID",_Be="UG_DELETE_BTN_ID",PBe="UG_EDIT_USERS_BTN_ID",IBe="UG_REMOVE_USER_BTN_ID",OBe="PROJECT_ENVIRONMENT_ACCORDION",$Be="PA_ASSIGN_BUTTON_ID",NBe="PA_USERS_GROUPS_ID",LBe="PA_ROLE_ID",DBe="PA_ASSIGN_CREATE_ID",MBe="PA_USERS_GROUPS_TITLE_ID",BBe="PA_EDIT_BUTTON_ID",FBe="PA_REMOVE_BUTTON_ID",Hie="SEGMENT_NAME_ID",Vie="SEGMENT_DESC_ID",Gie="SEGMENT_NEXT_BTN_ID",qie="SEGMENT_CREATE_BTN_ID",Yie="SEGMENT_SAVE_BTN_ID",Kie="SEGMENT_DELETE_BTN_ID",Xie="SEGMENT_DIALOG_NAME_ID",C1="LOGIN_EMAIL_ID",E1="LOGIN_BUTTON",X6="LOGIN_PASSWORD_ID",Jie="SSO_LOGIN_BUTTON",Qie="FORGOTTEN_PASSWORD_FIELD",Zie="INVALID_TOKEN_BUTTON",zBe="FEATURE_ENVIRONMENT_ACCORDION",vP="ADD_NEW_STRATEGY_ID",eae="ROLLOUT_SLIDER_ID",tae="DIALOGUE_CONFIRM_ID",nae="FLEXIBLE_STRATEGY_STICKINESS_ID",rae="FLEXIBLE_STRATEGY_GROUP_ID",J6="SELECT_ITEM_ID",oae="STRATEGY_INPUT_LIST",iae="ADD_TO_STRATEGY_INPUT_LIST",aae="STRATEGY_FORM_SUBMIT_ID",jBe="STRATEGY_FORM_REMOVE_ID",UBe="STRATEGY_FORM_COPY_ID",WBe="STRATEGY_REMOVE_MENU_BTN",HBe="MENU_STRATEGY_REMOVE",Q6="INPUT_ERROR_TEXT",sae="HEADER_USER_AVATAR",lae="SIDEBAR_MODAL_ID",cae="AUTH_PAGE_ID",uae="ANNOUNCER_ELEMENT_TEST_ID",a2="INSTANCE_STATUS_BAR_ID",dae="TOAST_TEXT",VBe="LARGE_NUMBER_PRETTIFIED",GBe="IMPORT_BUTTON",qBe="CODE_EDITOR_TAB",YBe="IMPORT_ENVIRONMENT",KBe="CODE_TEXT_FIELD",XBe="VALIDATE_BUTTON",JBe="IMPORT_CONFIGURATION_BUTTON",pae="SEARCH_INPUT",fae="BATCH_ACTIONS_BAR",hae="BATCH_SELECTED_COUNT",mae="BATCH_SELECT",QBe="MORE_BATCH_ACTIONS",gae=C(KE)(({theme:e,maxWidth:t})=>({"& .MuiDialog-paper":{borderRadius:e.shape.borderRadiusLarge,maxWidth:t?void 0:e.spacing(85),backgroundColor:"transparent"}})),vae=C(PQ)(({theme:e})=>({backgroundColor:e.palette.background.alternative,color:e.palette.primary.contrastText,padding:e.spacing(3.5,6),fontWeight:e.fontWeight.medium})),yae=C("div")(({theme:e})=>({padding:e.spacing(6),backgroundColor:e.palette.background.paper})),bae=C(TQ)(({theme:e})=>({padding:0,marginBottom:e.spacing(6)})),wae=C(gQ)(({theme:e})=>({gap:e.spacing(2),padding:0})),vr=({children:e,open:t,onClick:n,onClose:r,title:o,primaryButtonText:i,disabledPrimaryButton:a=!1,secondaryButtonText:s,maxWidth:c,fullWidth:u=!1,formId:d,permissionButton:p})=>x(gae,{open:t,onClose:r,fullWidth:u,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",maxWidth:c,children:[l(vae,{children:o}),x(yae,{children:[l(q,{condition:!!e,show:l(bae,{children:e})}),x(wae,{children:[l(q,{condition:!!p,show:p,elseShow:l(q,{condition:!!n,show:l(Ve,{form:d,color:"primary",variant:"contained",onClick:d?h=>{h.preventDefault(),n&&n(h)}:n,autoFocus:!d,disabled:a,"data-testid":tae,type:d?"submit":"button",children:i||"Yes, I'm sure"})})}),l(q,{condition:!!r,show:l(Ve,{onClick:r,children:s||"No, take me back"})})]})]})]}),Z6=m.createContext(null),br=()=>{const e=m.useContext(Z6);return{trackEvent:m.useCallback((n,r,o)=>{e!=null&&e.trackEvent?e.trackEvent(n,r,o):r!=null&&r.callback&&r.callback()},[e])}},yP=({error:e})=>{const t=pt(),{trackEvent:n}=br();return m.useEffect(()=>{var i;const{message:r,stack:o="unknown"}=e;n("unknown_ui_error",{props:{location:((i=window==null?void 0:window.location)==null?void 0:i.href)||"unknown",message:r,stack:o}})},[]),l($e,{sx:{backgroundColor:"neutral.light",height:"100%",p:4},children:x(vr,{open:!0,title:"Something went wrong",primaryButtonText:"Go back",onClick:()=>{var r;t("/"),(r=window==null?void 0:window.location)==null||r.reload()},secondaryButtonText:"Reload this page",onClose:()=>{var r;(r=window==null?void 0:window.location)==null||r.reload()},maxWidth:"xl",children:[l($e,{component:"pre",sx:{color:"error.main"},children:e.message}),l(q,{condition:!!e.stack,show:l($e,{component:"pre",sx:{color:"error.main"},children:e.stack})})]})})};var s2={},eL={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(eL);var An=eL.exports,Ub={};const Sae=VO(Lq);var bP;function Rn(){return bP||(bP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Sae}(Ub)),Ub}const _n=VO(d7);var xae=An;Object.defineProperty(s2,"__esModule",{value:!0});var xc=s2.default=void 0,Cae=xae(Rn()),Eae=_n,Tae=(0,Cae.default)((0,Eae.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");xc=s2.default=Tae;const tL=e=>m.createElement("svg",{width:35,height:35,viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M17.5 35C27.165 35 35 27.165 35 17.5S27.165 0 17.5 0 0 7.835 0 17.5 7.835 35 17.5 35Z",fill:"#1A4049"}),m.createElement("path",{d:"M15 10h-5v15h15V10h-5v10h-5V10Z",fill:"#fff"}),m.createElement("path",{d:"M20 20h5v5h-5v-5Z",fill:"#817AFE"})),ZBe="/static/logoBg-3fc9c711.svg",nL=e=>m.createElement("svg",{width:35,height:35,viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M17.5 35C27.165 35 35 27.165 35 17.5S27.165 0 17.5 0 0 7.835 0 17.5 7.835 35 17.5 35Z",fill:"#fff"}),m.createElement("path",{d:"M15 10h-5v15h15V10h-5v10h-5V10Z",fill:"#1A4049"}),m.createElement("path",{d:"M20 20h5v5h-5v-5Z",fill:"#817AFE"})),e8e="/static/logoWhiteBg-dacde9ce.svg",l2=({mounted:e,enter:t,start:n,leave:r,children:o,onStart:i,onEnd:a})=>{const[s,c]=m.useState(e),[u,d]=m.useState({}),p=m.useRef(null);return m.useEffect(()=>{(p.current!==e||p===null)&&(e?(c(!0),i==null||i(),setTimeout(()=>{d(t)},50)):(r||c(!1),d(r||{})))},[e,t,i,r]),l(q,{condition:s,show:l("div",{onTransitionEnd:()=>{e||(c(!1),a==null||a())},style:{...n,...u},children:o})})};function Ov(e){"@babel/helpers - typeof";return Ov=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ov(e)}function sr(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Or(e){sr(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ov(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ih(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function wP(e){sr(1,arguments);var t=Or(e);return t.setHours(0,0,0,0),t}var kae=864e5;function Aae(e,t){sr(2,arguments);var n=wP(e),r=wP(t),o=n.getTime()-ih(n),i=r.getTime()-ih(r);return Math.round((o-i)/kae)}function SP(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function rL(e,t){sr(2,arguments);var n=Or(e),r=Or(t),o=SP(n,r),i=Math.abs(Aae(n,r));n.setDate(n.getDate()-o*i);var a=+(SP(n,r)===-o),s=o*(i-a);return s===0?0:s}const oL="pnps",Rae=e=>{if(!e)return!1;if(e.length===0)return!0;const t=e.find(n=>n.feedbackId===oL);return t?t.neverShow?!1:t.given?rL(new Date,new Date(t.given))>182:!1:!0};var iL={exports:{}},aL={};/**
247
+ * @license React
248
+ * use-sync-external-store-shim.production.min.js
249
+ *
250
+ * Copyright (c) Facebook, Inc. and its affiliates.
251
+ *
252
+ * This source code is licensed under the MIT license found in the
253
+ * LICENSE file in the root directory of this source tree.
254
+ */var nd=m;function _ae(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pae=typeof Object.is=="function"?Object.is:_ae,Iae=nd.useState,Oae=nd.useEffect,$ae=nd.useLayoutEffect,Nae=nd.useDebugValue;function Lae(e,t){var n=t(),r=Iae({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return $ae(function(){o.value=n,o.getSnapshot=t,Wb(o)&&i({inst:o})},[e,n,t]),Oae(function(){return Wb(o)&&i({inst:o}),e(function(){Wb(o)&&i({inst:o})})},[e]),Nae(n),n}function Wb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pae(e,n)}catch{return!0}}function Dae(e,t){return t()}var Mae=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Dae:Lae;aL.useSyncExternalStore=nd.useSyncExternalStore!==void 0?nd.useSyncExternalStore:Mae;iL.exports=aL;var sL=iL.exports;const el=()=>{},ti=el(),Wg=Object,gn=e=>e===ti,Da=e=>typeof e=="function",Es=(e,t)=>({...e,...t}),Bae=e=>Da(e.then),og=new WeakMap;let Fae=0;const ah=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(Wg(e)===e&&!r&&n!=RegExp){if(o=og.get(e),o)return o;if(o=++Fae+"~",og.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=ah(e[i])+",";og.set(e,o)}if(n==Wg){o="#";const a=Wg.keys(e).sort();for(;!gn(i=a.pop());)gn(e[i])||(o+=i+":"+ah(e[i])+",");og.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},fs=new WeakMap,Hb={},ig={},c2="undefined",T1=typeof window!=c2,ox=typeof document!=c2,zae=()=>T1&&typeof window.requestAnimationFrame!=c2,lL=(e,t)=>{const n=fs.get(e);return[()=>!gn(t)&&e.get(t)||Hb,r=>{if(!gn(t)){const o=e.get(t);t in ig||(ig[t]=o),n[5](t,Es(o,r),o||Hb)}},n[6],()=>!gn(t)&&t in ig?ig[t]:!gn(t)&&e.get(t)||Hb]};let ix=!0;const jae=()=>ix,[ax,sx]=T1&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[el,el],Uae=()=>{const e=ox&&document.visibilityState;return gn(e)||e!=="hidden"},Wae=e=>(ox&&document.addEventListener("visibilitychange",e),ax("focus",e),()=>{ox&&document.removeEventListener("visibilitychange",e),sx("focus",e)}),Hae=e=>{const t=()=>{ix=!0,e()},n=()=>{ix=!1};return ax("online",t),ax("offline",n),()=>{sx("online",t),sx("offline",n)}},Vae={isOnline:jae,isVisible:Uae},Gae={initFocus:Wae,initReconnect:Hae},xP=!Ce.useId,sh=!T1||"Deno"in window,qae=e=>zae()?window.requestAnimationFrame(e):setTimeout(e,1),Hg=sh?m.useEffect:m.useLayoutEffect,Vb=typeof navigator<"u"&&navigator.connection,CP=!sh&&Vb&&(["slow-2g","2g"].includes(Vb.effectiveType)||Vb.saveData),u2=e=>{if(Da(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?ah(e):"",[e,t]};let Yae=0;const lx=()=>++Yae,cL=0,uL=1,dL=2,Kae=3;var Ep={__proto__:null,ERROR_REVALIDATE_EVENT:Kae,FOCUS_EVENT:cL,MUTATE_EVENT:dL,RECONNECT_EVENT:uL};async function pL(...e){const[t,n,r,o]=e,i=Es({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let c=i.optimisticData;const u=i.revalidate!==!1,d=h=>typeof s=="function"?s(h):s!==!1,p=i.throwOnError;if(Da(n)){const h=n,g=[],v=t.keys();for(const b of v)!/^\$(inf|sub)\$/.test(b)&&h(t.get(b)._k)&&g.push(b);return Promise.all(g.map(f))}return f(n);async function f(h){const[g]=u2(h);if(!g)return;const[v,b]=lL(t,g),[y,w,S,k]=fs.get(t),A=y[g],T=()=>u&&(delete S[g],delete k[g],A&&A[0])?A[0](dL).then(()=>v().data):v().data;if(e.length<3)return T();let R=r,P;const _=lx();w[g]=[_,0];const O=!gn(c),$=v(),z=$.data,L=$._c,B=gn(L)?z:L;if(O&&(c=Da(c)?c(B,z):c,b({data:c,_c:B})),Da(R))try{R=R(B)}catch(H){P=H}if(R&&Bae(R))if(R=await R.catch(H=>{P=H}),_!==w[g][0]){if(P)throw P;return R}else P&&O&&d(P)&&(a=!0,R=B,b({data:R,_c:ti}));a&&(P||(Da(a)&&(R=a(R,B)),b({data:R,error:ti,_c:ti}))),w[g][1]=lx();const Y=await T();if(b({_c:ti}),P){if(p)throw P;return}return a?Y:R}}const EP=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},fL=(e,t)=>{if(!fs.has(e)){const n=Es(Gae,t),r={},o=pL.bind(ti,e);let i=el;const a={},s=(d,p)=>{const f=a[d]||[];return a[d]=f,f.push(p),()=>f.splice(f.indexOf(p),1)},c=(d,p,f)=>{e.set(d,p);const h=a[d];if(h)for(const g of h)g(p,f)},u=()=>{if(!fs.has(e)&&(fs.set(e,[r,{},{},{},o,c,s]),!sh)){const d=n.initFocus(setTimeout.bind(ti,EP.bind(ti,r,cL))),p=n.initReconnect(setTimeout.bind(ti,EP.bind(ti,r,uL)));i=()=>{d&&d(),p&&p(),fs.delete(e)}}};return u(),[e,o,u,i]}return[e,fs.get(e)[4]]},Xae=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!gn(i)&&a>i||setTimeout(r,s,o)},Jae=(e,t)=>ah(e)==ah(t),[d2,Jr]=fL(new Map),hL=Es({onLoadingSlow:el,onSuccess:el,onError:el,onErrorRetry:Xae,onDiscarded:el,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:CP?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:CP?5e3:3e3,compare:Jae,isPaused:()=>!1,cache:d2,mutate:Jr,fallback:{}},Vae),mL=(e,t)=>{const n=Es(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=Es(o,a))}return n},cx=m.createContext({}),Qae=e=>{const{value:t}=e,n=m.useContext(cx),r=Da(t),o=m.useMemo(()=>r?t(n):t,[r,n,t]),i=m.useMemo(()=>r?o:mL(n,o),[r,n,o]),a=o&&o.provider,s=m.useRef(ti);a&&!s.current&&(s.current=fL(a(i.cache||d2),o));const c=s.current;return c&&(i.cache=c[0],i.mutate=c[1]),Hg(()=>{if(c)return c[2]&&c[2](),c[3]},[]),m.createElement(cx.Provider,Es(e,{value:i}))},gL=T1&&window.__SWR_DEVTOOLS_USE__,Zae=gL?window.__SWR_DEVTOOLS_USE__:[],ese=()=>{gL&&(window.__SWR_DEVTOOLS_REACT__=Ce)},vL=e=>Da(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],tse=()=>Es(hL,m.useContext(cx)),nse=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=u2(t),[,,,s]=fs.get(d2),c=s[a];return gn(c)?n(...i):(delete s[a],c)}),r),rse=Zae.concat(nse),ose=e=>function(...n){const r=tse(),[o,i,a]=vL(n),s=mL(r,a);let c=e;const{use:u}=s,d=(u||[]).concat(rse);for(let p=d.length;p--;)c=d[p](c);return c(o,i||s.fetcher||null,s)},ise=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}},t8e=(e,t)=>(...n)=>{const[r,o,i]=vL(n),a=(i.use||[]).concat(t);return e(r,o,{...i,use:a})};ese();const TP=Ce.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Gb={dedupe:!0},ase=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:p,keepPreviousData:f}=n,[h,g,v,b]=fs.get(r),[y,w]=u2(e),S=m.useRef(!1),k=m.useRef(!1),A=m.useRef(y),T=m.useRef(t),R=m.useRef(n),P=()=>R.current,_=()=>P().isVisible()&&P().isOnline(),[O,$,z,L]=lL(r,y),B=m.useRef({}).current,Y=gn(a)?n.fallback[y]:a,H=(Ne,me)=>{for(const ke in B){const pe=ke;if(pe==="data"){if(!o(Ne[pe],me[pe])&&(!gn(Ne[pe])||!o(Te,me[pe])))return!1}else if(me[pe]!==Ne[pe])return!1}return!0},ee=m.useMemo(()=>{const Ne=(()=>!y||!t?!1:gn(s)?P().isPaused()||i?!1:gn(c)?!0:c:s)(),me=st=>{const Ye=Es(st);return delete Ye._k,Ne?{isValidating:!0,isLoading:!0,...Ye}:Ye},ke=O(),pe=L(),it=me(ke),Le=ke===pe?it:me(pe);let Ge=it;return[()=>{const st=me(O());return H(st,Ge)?(Ge.data=st.data,Ge.isLoading=st.isLoading,Ge.isValidating=st.isValidating,Ge.error=st.error,Ge):(Ge=st,st)},()=>Le]},[r,y]),V=sL.useSyncExternalStore(m.useCallback(Ne=>z(y,(me,ke)=>{H(ke,me)||Ne()}),[r,y]),ee[0],ee[1]),W=!S.current,j=h[y]&&h[y].length>0,I=V.data,M=gn(I)?Y:I,J=V.error,ae=m.useRef(M),Te=f?gn(I)?ae.current:I:M,he=(()=>j&&!gn(J)?!1:W&&!gn(s)?s:P().isPaused()?!1:i?gn(M)?!1:c:gn(M)||c)(),Ie=!!(y&&t&&W&&he),te=gn(V.isValidating)?Ie:V.isValidating,ie=gn(V.isLoading)?Ie:V.isLoading,le=m.useCallback(async Ne=>{const me=T.current;if(!y||!me||k.current||P().isPaused())return!1;let ke,pe,it=!0;const Le=Ne||{},Ge=!v[y]||!Le.dedupe,st=()=>xP?!k.current&&y===A.current&&S.current:y===A.current,Ye={isValidating:!1,isLoading:!1},lt=()=>{$(Ye)},Lt=()=>{const be=v[y];be&&be[1]===pe&&delete v[y]},Ft={isValidating:!0};gn(O().data)&&(Ft.isLoading=!0);try{if(Ge&&($(Ft),n.loadingTimeout&&gn(O().data)&&setTimeout(()=>{it&&st()&&P().onLoadingSlow(y,n)},n.loadingTimeout),v[y]=[me(w),lx()]),[ke,pe]=v[y],ke=await ke,Ge&&setTimeout(Lt,n.dedupingInterval),!v[y]||v[y][1]!==pe)return Ge&&st()&&P().onDiscarded(y),!1;Ye.error=ti;const be=g[y];if(!gn(be)&&(pe<=be[0]||pe<=be[1]||be[1]===0))return lt(),Ge&&st()&&P().onDiscarded(y),!1;const Oe=O().data;Ye.data=o(Oe,ke)?Oe:ke,Ge&&st()&&P().onSuccess(ke,y,n)}catch(be){Lt();const Oe=P(),{shouldRetryOnError:Qe}=Oe;Oe.isPaused()||(Ye.error=be,Ge&&st()&&(Oe.onError(be,y,Oe),(Qe===!0||Da(Qe)&&Qe(be))&&_()&&Oe.onErrorRetry(be,y,Oe,re=>{const Z=h[y];Z&&Z[0]&&Z[0](Ep.ERROR_REVALIDATE_EVENT,re)},{retryCount:(Le.retryCount||0)+1,dedupe:!0})))}return it=!1,lt(),!0},[y,r]),oe=m.useCallback((...Ne)=>pL(r,A.current,...Ne),[]);if(Hg(()=>{T.current=t,R.current=n,gn(I)||(ae.current=I)}),Hg(()=>{if(!y)return;const Ne=le.bind(ti,Gb);let me=0;const pe=ise(y,h,(it,Le={})=>{if(it==Ep.FOCUS_EVENT){const Ge=Date.now();P().revalidateOnFocus&&Ge>me&&_()&&(me=Ge+P().focusThrottleInterval,Ne())}else if(it==Ep.RECONNECT_EVENT)P().revalidateOnReconnect&&_()&&Ne();else{if(it==Ep.MUTATE_EVENT)return le();if(it==Ep.ERROR_REVALIDATE_EVENT)return le(Le)}});return k.current=!1,A.current=y,S.current=!0,$({_k:w}),he&&(gn(M)||sh?Ne():qae(Ne)),()=>{k.current=!0,pe()}},[y]),Hg(()=>{let Ne;function me(){const pe=Da(u)?u(O().data):u;pe&&Ne!==-1&&(Ne=setTimeout(ke,pe))}function ke(){!O().error&&(d||P().isVisible())&&(p||P().isOnline())?le(Gb).then(me):me()}return me(),()=>{Ne&&(clearTimeout(Ne),Ne=-1)}},[u,d,p,y]),m.useDebugValue(Te),i&&gn(M)&&y){if(!xP&&sh)throw new Error("Fallback data is required when using suspense in SSR.");T.current=t,R.current=n,k.current=!1;const Ne=b[y];if(!gn(Ne)){const me=oe(Ne);TP(me)}if(gn(J)){const me=le(Gb);gn(Te)||(me.status="fulfilled",me.value=!0),TP(me)}else throw J}return{mutate:oe,get data(){return B.data=!0,Te},get error(){return B.error=!0,J},get isValidating(){return B.isValidating=!0,te},get isLoading(){return B.isLoading=!0,ie}}},sse=Wg.defineProperty(Qae,"defaultValue",{value:hL}),Pn=ose(ase),Rt=(e,t=ri)=>p2(t,e),oa=(e,t=ri)=>p2(t,e),lse=(e=cse())=>e==="::baseUriPath::"?"":p2(e),p2=(...e)=>["",...e].join("/").replace(/\/+$/g,"").replace(/\/+/g,"/"),cse=()=>{const e=document.querySelector('meta[name="baseUriPath"]');return(e==null?void 0:e.content)??""},ri=lse(),Wh=()=>{const{data:e,error:t}=Pn(ux,use,dse),n=m.useCallback(()=>{Jr(ux).catch(console.warn)},[]);return{data:e,refetchAuth:n,loading:!t&&!e,error:t}},use=()=>fetch(ux).then(e=>e.json()),dse={revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:15e3},ux=Rt("api/admin/user"),f2=()=>{const e=Wh();return{feedback:e.data&&"feedback"in e.data?e.data.feedback:void 0,refetchFeedback:e.refetchAuth,loading:e.loading,error:e.error}},yL=()=>{const{refetchFeedback:e}=f2(),t=Rt("api/admin/feedback"),n=m.useCallback(async o=>{await kP("POST",t,o),await e()},[t,e]),r=m.useCallback(async o=>{const i=`${t}/${o.feedbackId}`;await kP("PUT",i,o),await e()},[t,e]);return{createFeedback:n,updateFeedback:r}},kP=async(e,t,n)=>{await fetch(t,{method:e,headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})},Pd=({darkmode:e,lightmode:t})=>{const{themeMode:n}=m.useContext(Il);return l(q,{condition:n==="dark",show:e,elseShow:t})},pse=C("h3")(({theme:e})=>({margin:0,color:e.palette.text.primary,marginLeft:e.spacing(1)})),fse=({openUrl:e})=>{const{showFeedback:t,setShowFeedback:n}=m.useContext(Il),{createFeedback:r,updateFeedback:o}=yL(),{feedback:i}=f2(),[a,s]=m.useState(!1),c=yn(),u=oL,d=tr(c.breakpoints.down("sm")),p=m.useMemo(()=>({start:{...Iie(),zIndex:c.zIndex.tooltip,right:c.spacing(4),top:c.spacing(2),left:"auto",maxWidth:"400px",...d&&{right:c.spacing(3),left:c.spacing(3),top:c.spacing(5),display:"flex",maxWidth:"600px"}},enter:Oie,leave:$ie}),[c,d]),f=async()=>{try{await r({feedbackId:u})}catch(g){console.warn(g),n(!1)}window.open(e,"_blank"),setTimeout(()=>{n(!1)},200)},h=async()=>{try{await o({feedbackId:u,neverShow:!0})}catch(g){console.warn(g),n(!1)}setTimeout(()=>{n(!1)},100)};return Rae(i)?l(l2,{mounted:t,start:p.start,enter:p.enter,leave:p.leave,children:l($e,{className:"dropdown-outline",sx:{borderRadius:`${c.shape.borderRadiusLarge}px`,backgroundColor:c.palette.background.paper,zIndex:9999,boxShadow:c.boxShadows.elevated,padding:c.spacing(4),flexGrow:1},children:x($e,{sx:{display:"flex",flexDirection:"column",rowGap:c.spacing(1.5),position:"relative"},children:[l(xt,{title:"Close",arrow:!0,children:l(jt,{sx:g=>({position:"absolute",right:g.spacing(-4),top:g.spacing(-4)}),onClick:()=>n(!1),size:"large",children:l(xc,{})})}),x($e,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[l(Pd,{darkmode:l(nL,{}),lightmode:l(tL,{})}),l(pse,{children:"Unleash feedback"})]}),l(q,{condition:a,show:l("p",{children:"Alright, apologies for the disruption. Have a nice day!"}),elseShow:x("p",{children:["Hi. Do you have 2 minutes to help us improve Unleash?"," "]})}),l($e,{sx:{textAlign:"right",marginTop:c.spacing(2.5)},children:l(q,{condition:a,show:l(Ve,{variant:"outlined",onClick:h,children:"Don't show again"}),elseShow:x(ve,{children:[l(Ve,{variant:"contained",color:"primary",onClick:f,children:"Yes, no problem"}),l(Ve,{sx:{marginLeft:g=>g.spacing(2)},onClick:()=>s(!0),children:"Not now"})]})})})]})})}):null};var h2={},hse=An;Object.defineProperty(h2,"__esModule",{value:!0});var bL=h2.default=void 0,mse=hse(Rn()),gse=_n,vse=(0,mse.default)((0,gse.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");bL=h2.default=vse;var m2={},yse=An;Object.defineProperty(m2,"__esModule",{value:!0});var wL=m2.default=void 0,bse=yse(Rn()),wse=_n,Sse=(0,bse.default)((0,wse.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-.61l-2.01-1.58zM12 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.6z"}),"Settings");wL=m2.default=Sse;var g2={},xse=An;Object.defineProperty(g2,"__esModule",{value:!0});var SL=g2.default=void 0,Cse=xse(Rn()),Ese=_n,Tse=(0,Cse.default)((0,Ese.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");SL=g2.default=Tse;var v2={},kse=An;Object.defineProperty(v2,"__esModule",{value:!0});var xL=v2.default=void 0,Ase=kse(Rn()),Rse=_n,_se=(0,Ase.default)((0,Rse.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");xL=v2.default=_se;const Pse=C(Rd)(({theme:e})=>({width:e.spacing(3.5),height:e.spacing(3.5),margin:"auto",backgroundColor:e.palette.secondary.light,color:e.palette.text.primary,fontSize:e.fontSizes.smallerBody,fontWeight:e.fontWeight.bold})),y2=({user:e,src:t,title:n,onMouseEnter:r,onMouseLeave:o,className:i,sx:a,children:s,...c})=>{!n&&!r&&e&&(n=`${(e==null?void 0:e.name)||(e==null?void 0:e.email)||(e==null?void 0:e.username)} (id: ${e==null?void 0:e.id})`),!t&&e&&(t=e==null?void 0:e.imageUrl);let u;return!s&&e&&(u=(e==null?void 0:e.name)||(e==null?void 0:e.email)||(e==null?void 0:e.username),u&&u.includes(" ")?u=`${u.split(" ")[0][0]}${u.split(" ")[1][0]}`.toUpperCase():u&&(u=u[0].toUpperCase())),l(Pse,{className:i,sx:a,...c,"data-loading":!0,alt:"Gravatar",src:t,title:n,onMouseEnter:r,onMouseLeave:o,children:l(q,{condition:!!u,show:u,elseShow:s})})},Ise=C(Cr)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(3),borderRadius:e.shape.borderRadiusMedium,boxShadow:e.boxShadows.popup,position:"absolute",zIndex:5e3,minWidth:e.spacing(37.5),right:0,[e.breakpoints.down("md")]:{width:"100%",padding:"1rem"}})),Ose=C("div")(({theme:e})=>({alignSelf:"flex-start",display:"flex",alignItems:"center",marginBottom:e.spacing(2)})),$se=C(y2)(({theme:e})=>({width:e.spacing(4.75),height:e.spacing(4.75),marginRight:e.spacing(1.5)})),Nse=C(se)(({theme:e})=>({color:e.palette.text.secondary})),CL=C(Gr)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),padding:0,color:e.palette.links,fontWeight:e.fontWeight.medium,"&:hover, &:focus":{textDecoration:"underline"},"& svg":{fontSize:e.spacing(2.25)}})),Lse=C(CL)(({theme:e})=>({alignSelf:"flex-start"})),Dse=C(Ve)(({theme:e})=>({width:"100%",height:e.spacing(5)})),AP=C("div")(({theme:e})=>({width:"100%",height:"1px",backgroundColor:e.palette.divider,margin:e.spacing(3,0)})),Mse=({id:e,showProfile:t,setShowProfile:n,profile:r})=>l(q,{condition:t,show:x(Ise,{className:"dropdown-outline",id:e,children:[x(Ose,{children:[l($se,{user:r}),x("div",{children:[l(se,{children:r.name||r.username}),l(Nse,{variant:"body2",children:r.email})]})]}),l(CL,{component:an,to:"/profile",underline:"hover",onClick:()=>n(!1),children:"View profile settings"}),l(AP,{}),x(Lse,{component:"a",href:"https://www.getunleash.io/privacy-policy",underline:"hover",rel:"noopener noreferrer",target:"_blank",children:["Privacy Policy ",l(xL,{})]}),l(AP,{}),l("form",{method:"POST",action:`${ri}/logout`,children:l(Dse,{type:"submit",variant:"outlined",color:"primary",children:"Log out"})})]})}),Cl=(e="useId")=>m.useMemo(()=>`${e}-${Bse++}`,[e]);let Bse=0;const Fse=C(y2)(({theme:e})=>({width:e.spacing(4.5),height:e.spacing(4.5)})),zse=C("div")(({theme:e})=>({position:"relative"})),jse=C(Ve)(({theme:e})=>({...Hi(e),...Nc,...Rie,color:"inherit",padding:e.spacing(.5,2),"&:hover":{backgroundColor:"transparent"}})),Use=C(SL)(({theme:e})=>({color:e.palette.neutral.main})),Wse=({profile:e})=>{const[t,n]=m.useState(!1),r=Cl();return l(qN,{onClickAway:()=>n(!1),children:x(zse,{children:[x(jse,{onClick:()=>n(o=>!o),"aria-controls":t?r:void 0,"aria-expanded":t,color:"secondary",disableRipple:!0,children:[l(Fse,{user:e,"data-testid":sae}),l(Use,{})]}),l(Mse,{id:r,showProfile:t,setShowProfile:n,profile:e})]})})},vi=()=>{const e=Wh();return{user:e.data&&"user"in e.data?e.data.user:void 0,refetchUser:e.refetchAuth,loading:e.loading,error:e.error}},RP=()=>{const{user:e}=vi();return e?l(Wse,{profile:e}):null};var b2={},Hse=An;Object.defineProperty(b2,"__esModule",{value:!0});var w2=b2.default=void 0,Vse=Hse(Rn()),_P=_n,Gse=(0,Vse.default)([(0,_P.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-1zm0 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.5v11.5z"},"0"),(0,_P.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-.99zM13 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.83zm4.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-.24z"},"1")],"MenuBook");w2=b2.default=Gse;const EL=e=>m.createElement("svg",{id:"bg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 653.4 251.24",...e},m.createElement("defs",null,m.createElement("style",null,".cls-1{fill:#1a4049;}.cls-2{fill:#fff;}.cls-3{fill:#817afe;}")),m.createElement("circle",{className:"cls-1",cx:125.62,cy:125.62,r:80}),m.createElement("polygon",{className:"cls-2",points:"137.05 91.33 137.05 114.19 137.05 137.05 159.9 137.05 159.9 114.19 159.9 91.33 137.05 91.33"}),m.createElement("polygon",{className:"cls-2",points:"114.19 114.19 114.19 91.33 91.33 91.33 91.33 114.19 91.33 137.05 91.33 159.9 114.19 159.9 137.05 159.9 137.05 137.05 114.19 137.05 114.19 114.19"}),m.createElement("polygon",{className:"cls-2",points:"137.05 91.33 137.05 114.19 137.05 137.05 159.9 137.05 159.9 114.19 159.9 91.33 137.05 91.33"}),m.createElement("polygon",{className:"cls-2",points:"114.19 114.19 114.19 91.33 91.33 91.33 91.33 114.19 91.33 137.05 91.33 159.9 114.19 159.9 137.05 159.9 137.05 137.05 114.19 137.05 114.19 114.19"}),m.createElement("rect",{className:"cls-3",x:137.05,y:137.05,width:22.86,height:22.86}),m.createElement("path",{className:"cls-1",d:"M251.58,139.13V112.77h11.93v25.06c0,7.36,3.91,12.2,11.27,12.2s11.27-4.84,11.27-12.2V112.77h12v26.36c0,12.67-8.48,21.8-23.1,21.8C260.06,160.93,251.58,151.8,251.58,139.13Z"}),m.createElement("path",{className:"cls-1",d:"M321.91,159.9H310.08V112.77h11.83v7.92a17.93,17.93,0,0,1,15.65-9c11.83,0,19.66,8.67,19.66,20.68V159.9h-12V134.75c0-7.45-4.38-12.39-11.46-12.39s-11.83,5-11.83,12.39Z"}),m.createElement("path",{className:"cls-1",d:"M369.42,91.34h11.92V159.9H369.42Z"}),m.createElement("path",{className:"cls-1",d:"M441.24,137v1.3H403.79c.47,7.36,5.87,13,13.69,13,7.55,0,10.62-3.82,11.46-5.12h11.74c-.75,4.84-7.17,15-23.2,15-15.27,0-25.61-10.61-25.61-24.77,0-14.63,10.24-24.78,24.68-24.78S441.24,121.62,441.24,137Zm-37.08-6.9h24.6c-1.77-6-6.15-9.31-12.21-9.31C410.12,120.78,405.65,124.23,404.16,130.09Z"}),m.createElement("path",{className:"cls-1",d:"M467.78,130.37h15.47c0-5.68-4.29-9.31-11.27-9.31-6.62,0-9,3.54-9.78,4.75h-12c1-4.94,6.89-14.25,21.8-14.25,14.62,0,22.73,7.64,22.73,18.81V146.3c0,2.89,1,4,3.72,4.29v9.59h-3.72c-6.06-.09-9.69-2.33-11-6.52-2.23,3.45-7.26,7.27-15.27,7.27-11.09,0-19.47-6.24-19.47-15.93S456.14,130.37,467.78,130.37Zm15.47,12.11v-4H469.74c-5.59,0-9,2-9,6.33,0,4.57,4.29,7.27,10.25,7.27C477.66,152.08,483.25,148.82,483.25,142.48Z"}),m.createElement("path",{className:"cls-1",d:"M523.12,140.62c-10.34-.74-17.33-5.59-17.33-14.72,0-8.85,8.1-14.44,20.77-14.44,17,0,21.8,8.76,23.1,13.32H537.09c-.84-1-3.54-4.28-10.62-4.28-5.68,0-8.66,1.86-8.66,4.75,0,2.61,2,4.29,6.7,4.94l8,.84c12.77,1.11,18,6,18,15.27,0,8.85-7.36,14.91-21.8,14.91-17.51,0-23.19-10.16-24.12-14.53h12.76c.47,1.11,3.35,5.31,11.36,5.31,6.62,0,9.69-2.24,9.69-5.22s-1.67-4.66-7-5.31C528.05,141.18,526.38,141,523.12,140.62Z"}),m.createElement("path",{className:"cls-1",d:"M571.55,159.9H559.72V91.34h11.83v29.35a17.93,17.93,0,0,1,15.65-9c11.83,0,19.66,8.67,19.66,20.68V159.9h-12V134.75c0-7.45-4.38-12.39-11.46-12.39s-11.83,5-11.83,12.39Z"})),TL=e=>m.createElement("svg",{id:"bg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 653.4 251.24",...e},m.createElement("defs",null,m.createElement("style",null,".cls-1{fill:#fff;}.cls-2{fill:#1a4049;}.cls-3{fill:#817afe;}")),m.createElement("circle",{className:"cls-1",cx:125.62,cy:125.62,r:80}),m.createElement("polygon",{className:"cls-1",points:"137.05 91.33 137.05 114.19 137.05 137.05 159.9 137.05 159.9 114.19 159.9 91.33 137.05 91.33"}),m.createElement("polygon",{className:"cls-1",points:"114.19 114.19 114.19 91.33 91.33 91.33 91.33 114.19 91.33 137.05 91.33 159.9 114.19 159.9 137.05 159.9 137.05 137.05 114.19 137.05 114.19 114.19"}),m.createElement("polygon",{className:"cls-2",points:"137.05 91.33 137.05 114.19 137.05 137.05 159.9 137.05 159.9 114.19 159.9 91.33 137.05 91.33"}),m.createElement("polygon",{className:"cls-2",points:"114.19 114.19 114.19 91.33 91.33 91.33 91.33 114.19 91.33 137.05 91.33 159.9 114.19 159.9 137.05 159.9 137.05 137.05 114.19 137.05 114.19 114.19"}),m.createElement("rect",{className:"cls-3",x:137.05,y:137.05,width:22.86,height:22.86}),m.createElement("path",{className:"cls-1",d:"M251.58,139.13V112.77h11.93v25.06c0,7.36,3.91,12.2,11.27,12.2s11.27-4.84,11.27-12.2V112.77h12v26.36c0,12.67-8.48,21.8-23.1,21.8C260.06,160.93,251.58,151.8,251.58,139.13Z"}),m.createElement("path",{className:"cls-1",d:"M321.91,159.9H310.08V112.77h11.83v7.92a17.93,17.93,0,0,1,15.65-9c11.83,0,19.66,8.67,19.66,20.68V159.9h-12V134.75c0-7.45-4.38-12.39-11.46-12.39s-11.83,5-11.83,12.39Z"}),m.createElement("path",{className:"cls-1",d:"M369.42,91.34h11.92V159.9H369.42Z"}),m.createElement("path",{className:"cls-1",d:"M441.24,137v1.3H403.79c.47,7.36,5.87,13,13.69,13,7.55,0,10.62-3.82,11.46-5.12h11.74c-.75,4.84-7.17,15-23.2,15-15.27,0-25.61-10.61-25.61-24.77,0-14.63,10.24-24.78,24.68-24.78S441.24,121.62,441.24,137Zm-37.08-6.9h24.6c-1.77-6-6.15-9.31-12.21-9.31C410.12,120.78,405.65,124.23,404.16,130.09Z"}),m.createElement("path",{className:"cls-1",d:"M467.78,130.37h15.47c0-5.68-4.29-9.31-11.27-9.31-6.62,0-9,3.54-9.78,4.75h-12c1-4.94,6.89-14.25,21.8-14.25,14.62,0,22.73,7.64,22.73,18.81V146.3c0,2.89,1,4,3.72,4.29v9.59h-3.72c-6.06-.09-9.69-2.33-11-6.52-2.23,3.45-7.26,7.27-15.27,7.27-11.09,0-19.47-6.24-19.47-15.93S456.14,130.37,467.78,130.37Zm15.47,12.11v-4H469.74c-5.59,0-9,2-9,6.33,0,4.57,4.29,7.27,10.25,7.27C477.66,152.08,483.25,148.82,483.25,142.48Z"}),m.createElement("path",{className:"cls-1",d:"M523.12,140.62c-10.34-.74-17.33-5.59-17.33-14.72,0-8.85,8.1-14.44,20.77-14.44,17,0,21.8,8.76,23.1,13.32H537.09c-.84-1-3.54-4.28-10.62-4.28-5.68,0-8.66,1.86-8.66,4.75,0,2.61,2,4.29,6.7,4.94l8,.84c12.77,1.11,18,6,18,15.27,0,8.85-7.36,14.91-21.8,14.91-17.51,0-23.19-10.16-24.12-14.53h12.76c.47,1.11,3.35,5.31,11.36,5.31,6.62,0,9.69-2.24,9.69-5.22s-1.67-4.66-7-5.31C528.05,141.18,526.38,141,523.12,140.62Z"}),m.createElement("path",{className:"cls-1",d:"M571.55,159.9H559.72V91.34h11.83v29.35a17.93,17.93,0,0,1,15.65-9c11.83,0,19.66,8.67,19.66,20.68V159.9h-12V134.75c0-7.45-4.38-12.39-11.46-12.39s-11.83,5-11.83,12.39Z"}));var S2={},qse=An;Object.defineProperty(S2,"__esModule",{value:!0});var kL=S2.default=void 0;Xse(m);var Yse=qse(Rn()),Kse=_n;function AL(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(AL=function(r){return r?n:t})(e)}function Xse(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=AL(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}var Jse=(0,Yse.default)((0,Kse.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");kL=S2.default=Jse;var x2={},Qse=An;Object.defineProperty(x2,"__esModule",{value:!0});var RL=x2.default=void 0,Zse=Qse(Rn()),ele=_n,tle=(0,Zse.default)((0,ele.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z"}),"LibraryBooks");RL=x2.default=tle;var C2={},nle=An;Object.defineProperty(C2,"__esModule",{value:!0});var _L=C2.default=void 0,rle=nle(Rn()),ole=_n,ile=(0,rle.default)((0,ole.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"ExitToApp");_L=C2.default=ile;const ale=C(Na)({minWidth:"150px",height:"100%",width:"100%",margin:"0",padding:"0"}),sle=C(an)(({theme:e})=>({textDecoration:"none",alignItems:"center",display:"flex",color:"inherit",height:"100%",width:"100%","&&":{color:e.palette.text.primary,padding:e.spacing(1,2)}})),lle=C("span")(({theme:e})=>({width:"12.5px",height:"12.5px",display:"block",backgroundColor:e.palette.primary.main,marginRight:"1rem",borderRadius:"2px"})),PP=({path:e,text:t,handleClose:n})=>l(ale,{onClick:()=>{n()},children:x(Gr,{style:{textDecoration:"none"},component:sle,to:e,underline:"hover",children:[l(lle,{}),t]})}),cle="_drawer_cxqms_1",ule="_drawerTitle_cxqms_6",dle="_drawerContainer_cxqms_13",ple="_drawerTitleLogo_cxqms_17",fle="_drawerTitleText_cxqms_22",hle="_drawerList_cxqms_27",mle="_iconLinkList_cxqms_28",gle="_iconLink_cxqms_28",vle="_navigationLink_cxqms_42",yle="_navigationLinkActive_cxqms_50",ble="_navigationIcon_cxqms_56",wle="_iconGitHub_cxqms_61",ea={drawer:cle,drawerTitle:ule,drawerContainer:dle,drawerTitleLogo:ple,drawerTitleText:fle,drawerList:hle,iconLinkList:mle,iconLink:gle,navigationLink:vle,navigationLinkActive:yle,navigationIcon:ble,iconGitHub:wle},Sle=C("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"start","& svg":{width:"100%",height:"100%",maxHeight:e.spacing(8),padding:e.spacing(.5)}})),xle=({links:e=[],flags:t={},open:n=!1,toggleDrawer:r,routes:o})=>{const i=()=>e.map(a=>{let s=null;return a.value==="GitHub"?s=l(kL,{className:ea.navigationIcon}):a.value==="Documentation"&&(s=l(RL,{className:ea.navigationIcon})),x("a",{href:a.href,rel:"noopener noreferrer",target:"_blank",className:ea.iconLink,children:[s,a.value]},a.value)});return l(QQ,{className:ea.drawer,open:n,anchor:"left",onClose:r,style:{zIndex:ua.zIndex.snackbar+1},children:x("nav",{id:"header-drawer",className:ea.drawerContainer,children:[l(Sle,{children:l(an,{to:"/",className:ea.drawerTitle,"aria-label":"Home",onClick:()=>r(),children:l(Pd,{darkmode:l(TL,{"aria-label":"Unleash logo"}),lightmode:l(EL,{"aria-label":"Unleash logo"})})})}),l(To,{}),l(ca,{className:ea.drawerList,children:o.mobileRoutes.map(a=>l(PP,{handleClose:()=>r(),path:a.path,text:a.title},a.path))}),l(To,{}),l(ca,{className:ea.drawerList,children:o.adminRoutes.map(a=>l(PP,{handleClose:()=>r(),path:a.path,text:a.title},a.path))}),l(To,{}),x("div",{className:ea.iconLinkList,children:[i(),x("a",{className:ea.iconLink,href:`${ri}/logout`,children:[l(_L,{className:ea.navigationIcon}),"Sign out"]})]})]})})},ha=qe(l("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Cle=qe(l("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"}),"AddToPhotos"),Ele=qe(l("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3z"}),"Adjust"),Tle=qe(l("path",{d:"M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"}),"Apps"),kle=qe(l("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),Ale=qe(l("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),$v=qe(l("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),PL=qe(l("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),IL=qe(l("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"CircleOutlined"),Rle=qe(l("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"}),"Clear"),k1=qe(l("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"),OL=qe(l("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 12 19 6.41z"}),"CloseOutlined"),$L=qe(l("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79 4 4h.5c1.38 0 2.5 1.12 2.5 2.5S17.88 16 16.5 16z"}),"CloudCircle"),_le=qe(l("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkModeOutlined"),vo=qe(l("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),Ple=qe(l("path",{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5h-4z"}),"DeviceHub"),NL=qe(l("path",{d:"M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.92V22c5-.47 8.53-4 9-9h-3.03c-.43 3-2.97 5.49-5.97 5.92z"}),"DonutLarge"),Ile=qe(l("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download"),Ole=qe(l("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicator"),di=qe(l("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.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.75 1.83-1.83z"}),"Edit"),$le=qe(l("path",{d:"M12 7c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1s-1-.45-1-1V8c0-.55.45-1 1-1zm-.01-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm1-3h-2v-2h2v2z"}),"ErrorOutlineRounded"),LL=qe(l("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),DL=qe(l("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"}),"Extension"),Nle=qe(l("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord"),ML=qe(l("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy"),Lle=qe(l("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),Dle=qe(l("path",{d:"m14.4 6-.24-1.2c-.09-.46-.5-.8-.98-.8H6c-.55 0-1 .45-1 1v15c0 .55.45 1 1 1s1-.45 1-1v-6h5.6l.24 1.2c.09.47.5.8.98.8H19c.55 0 1-.45 1-1V7c0-.55-.45-1-1-1h-4.6z"}),"FlagRounded"),Mle=qe(l("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"),Nv=qe(l("path",{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"}),"HelpOutline"),Ble=qe(l("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info"),xf=qe(l("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined"),dx=qe(l("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown"),px=qe(l("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDownOutlined"),Fle=qe(l("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),zle=qe(l("path",{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"}),"Label"),BL=qe(l("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"Launch"),jle=qe(l("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z"}),"LibraryBooks"),Ule=qe(l("path",{d:"M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"}),"LightModeOutlined"),Wle=qe(l("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link"),Hle=qe(l("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock"),Vle=qe(l("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),Gle=qe(l("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}),"Pause"),IP=qe(l("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 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person"),qle=qe(l("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),Yle=qe(l("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonChecked"),OP=qe(l("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3zm1-4.3h-2V7h2v6z"}),"Report"),E2=qe(l("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 19l-4.99-5zm-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 14z"}),"Search"),T2=qe(l("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),k2=qe(l("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder"),Kle=qe(l("path",{d:"M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2z"}),"Timeline"),Xle=qe(l("path",{d:"M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zM7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"ToggleOffOutlined"),Jle=qe(l("path",{d:"m19.07 4.93-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07z"}),"TrackChanges"),FL=qe(l("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"}),"Undo"),Qle=qe(l("path",{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"}),"UnfoldMoreOutlined"),zL=qe(l("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),jL=qe(l("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),Zle=qe(l("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5-.59 1.22-1.42 2.27-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02-1.38 0-2.5-1.12-2.5-2.5 0-.05.01-.08.01-.13zm-3.4-3.4 1.75 1.75c-.23.55-.36 1.15-.36 1.78 0 2.48 2.02 4.5 4.5 4.5.63 0 1.23-.13 1.77-.36l.98.98c-.88.24-1.8.38-2.75.38-3.79 0-7.17-2.13-8.82-5.5.7-1.43 1.72-2.61 2.93-3.53z"}),"VisibilityOffOutlined"),ece=qe(l("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z"}),"VisibilityOutlined"),tce=qe(l("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning"),UL=qe([l("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2z"},"0"),l("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")],"WarningAmber"),$P={name:"Unleash",version:"3.x",slogan:"The enterprise ready feature toggle service.",flags:{P:!1,RE:!1,EEA:!1,SE:!1,T:!1,UNLEASH_CLOUD:!1,UG:!1},links:[{value:"Documentation",icon:jle,href:"https://docs.getunleash.io/docs?source=oss",title:"User documentation"},{value:"GitHub",icon:"c_github",href:"https://github.com/Unleash",title:"Source code on GitHub"}],networkViewEnabled:!1},A2=400,Hh=200,nce=201,WL=404,HL=403,VL=401;class R2 extends Error{constructor(n=VL){super("Authentication required");as(this,"statusCode");this.name="AuthenticationError",this.statusCode=n}}class rce extends Error{constructor(n=HL,r={}){var o;super((o=r.details)!=null&&o.length?r.details[0].message:"You cannot perform this action");as(this,"statusCode");as(this,"body");this.name="ForbiddenError",this.statusCode=n,this.body=r}}class _2 extends Error{constructor(n=A2,r={}){var o;super((o=r.details)!=null&&o.length?r.details[0].message:"Bad request");as(this,"statusCode");as(this,"body");this.name="BadRequestError",this.statusCode=n,this.body=r}}class P2 extends Error{constructor(n=WL){super("The requested resource could not be found.");as(this,"statusCode");this.name="NotFoundError",this.statusCode=n}}class GL extends Error{constructor(n,r,o){super(`An error occurred while trying to get ${n}.`);as(this,"status");as(this,"body");this.name="ResponseError",this.status=r,this.body=o}}const fx={Accept:"application/json","Content-Type":"application/json"},bn=e=>async t=>{if(!t.ok)throw new GL(e,t.status,await oce(t));return t},oce=async e=>{try{return await e.json()}catch{return e.statusText}},It=()=>{const e=Rt("api/admin/ui-config"),{data:t,error:n,mutate:r}=Pn(e,ice),o=m.useCallback(()=>{var c,u;return!((u=(c=t==null?void 0:t.versionInfo)==null?void 0:c.current)!=null&&u.enterprise)},[t]),i=m.useCallback(()=>{var c;return((c=t==null?void 0:t.environment)==null?void 0:c.toLowerCase())==="pro"},[t]),a=m.useCallback(()=>{var c,u,d;return((c=t==null?void 0:t.environment)==null?void 0:c.toLowerCase())!=="pro"&&!!((d=(u=t==null?void 0:t.versionInfo)==null?void 0:u.current)!=null&&d.enterprise)},[t]);return{uiConfig:m.useMemo(()=>({...$P,...t,flags:{...$P.flags,...t==null?void 0:t.flags}}),[t]),loading:!n&&!t,error:n,refetch:r,isOss:o,isPro:i,isEnterprise:a}},ice=e=>fetch(e).then(bn("configuration")).then(t=>t.json()),ace=C(an)(({theme:e})=>({textDecoration:"none",alignItems:"center",display:"flex",color:"inherit",height:"100%",width:"100%","&&":{padding:e.spacing(1,2)}})),sce=C("span")(({theme:e})=>({width:"12.5px",height:"12.5px",display:"block",backgroundColor:e.palette.primary.main,marginRight:e.spacing(2),borderRadius:"2px"})),NP=({options:e,id:t,handleClose:n,anchorEl:r,style:o})=>l(t2,{id:t,onClose:n,anchorEl:r,open:!!r,style:o,children:e.map(i=>x(qa,{component:ace,to:i.path,onClick:n,children:[l(sce,{}),i.title]},i.path))});var qL={exports:{}},hx={exports:{}};(function(e,t){(function(n,r){r(t,m)})(ki,function(n,r){function o(E,D,F,U,Q,K,ne){try{var ge=E[K](ne),we=ge.value}catch(Ee){return void F(Ee)}ge.done?D(we):Promise.resolve(we).then(U,Q)}function i(E){return function(){var D=this,F=arguments;return new Promise(function(U,Q){var K=E.apply(D,F);function ne(we){o(K,U,Q,ne,ge,"next",we)}function ge(we){o(K,U,Q,ne,ge,"throw",we)}ne(void 0)})}}function a(){return(a=Object.assign||function(E){for(var D=1;D<arguments.length;D++){var F=arguments[D];for(var U in F)Object.prototype.hasOwnProperty.call(F,U)&&(E[U]=F[U])}return E}).apply(this,arguments)}function s(E,D){if(E==null)return{};var F,U,Q={},K=Object.keys(E);for(U=0;U<K.length;U++)F=K[U],D.indexOf(F)>=0||(Q[F]=E[F]);return Q}function c(E){var D=function(F,U){if(typeof F!="object"||F===null)return F;var Q=F[Symbol.toPrimitive];if(Q!==void 0){var K=Q.call(F,U||"default");if(typeof K!="object")return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return(U==="string"?String:Number)(F)}(E,"string");return typeof D=="symbol"?D:String(D)}r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r;var u={init:"init"},d=function(E){var D=E.value;return D===void 0?"":D},p=function(){return r.createElement(r.Fragment,null," ")},f={Cell:d,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function h(){for(var E=arguments.length,D=new Array(E),F=0;F<E;F++)D[F]=arguments[F];return D.reduce(function(U,Q){var K=Q.style,ne=Q.className;return U=a({},U,{},s(Q,["style","className"])),K&&(U.style=U.style?a({},U.style||{},{},K||{}):K),ne&&(U.className=U.className?U.className+" "+ne:ne),U.className===""&&delete U.className,U},{})}var g=function(E,D){return D===void 0&&(D={}),function(F){return F===void 0&&(F={}),[].concat(E,[F]).reduce(function(U,Q){return function K(ne,ge,we){return typeof ge=="function"?K({},ge(ne,we)):Array.isArray(ge)?h.apply(void 0,[ne].concat(ge)):h(ne,ge)}(U,Q,a({},D,{userProps:F}))},{})}},v=function(E,D,F,U){return F===void 0&&(F={}),E.reduce(function(Q,K){return K(Q,F)},D)},b=function(E,D,F){return F===void 0&&(F={}),E.forEach(function(U){U(D,F)})};function y(E,D,F,U){E.findIndex(function(Q){return Q.pluginName===F}),D.forEach(function(Q){E.findIndex(function(K){return K.pluginName===Q})})}function w(E,D){return typeof E=="function"?E(D):E}function S(E){var D=r.useRef();return D.current=E,r.useCallback(function(){return D.current},[])}var k=typeof document<"u"?r.useLayoutEffect:r.useEffect;function A(E,D){var F=r.useRef(!1);k(function(){F.current&&E(),F.current=!0},D)}function T(E,D,F){return F===void 0&&(F={}),function(U,Q){Q===void 0&&(Q={});var K=typeof U=="string"?D[U]:U;if(K===void 0)throw console.info(D),new Error("Renderer Error ☝️");return R(K,a({},E,{column:D},F,{},Q))}}function R(E,D){return function(U){return typeof U=="function"&&(Q=Object.getPrototypeOf(U)).prototype&&Q.prototype.isReactComponent;var Q}(F=E)||typeof F=="function"||function(U){return typeof U=="object"&&typeof U.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(U.$$typeof.description)}(F)?r.createElement(E,D):E;var F}function P(E,D,F){return F===void 0&&(F=0),E.map(function(U){return O(U=a({},U,{parent:D,depth:F})),U.columns&&(U.columns=P(U.columns,U,F+1)),U})}function _(E){return H(E,"columns")}function O(E){var D=E.id,F=E.accessor,U=E.Header;if(typeof F=="string"){D=D||F;var Q=F.split(".");F=function(K){return function(ne,ge,we){if(!ge)return ne;var Ee,We=typeof ge=="function"?ge:JSON.stringify(ge),Be=L.get(We)||function(){var ze=function(Pe){return function je(Xe,ot){if(ot===void 0&&(ot=[]),Array.isArray(Xe))for(var mt=0;mt<Xe.length;mt+=1)je(Xe[mt],ot);else ot.push(Xe);return ot}(Pe).map(function(je){return String(je).replace(".","_")}).join(".").replace(M,".").replace(J,"").split(".")}(ge);return L.set(We,ze),ze}();try{Ee=Be.reduce(function(ze,Pe){return ze[Pe]},ne)}catch{}return Ee!==void 0?Ee:we}(K,Q)}}if(!D&&typeof U=="string"&&U&&(D=U),!D&&E.columns)throw console.error(E),new Error('A column ID (or unique "Header" value) is required!');if(!D)throw console.error(E),new Error("A column ID (or string accessor) is required!");return Object.assign(E,{id:D,accessor:F}),E}function $(E,D){if(!D)throw new Error;return Object.assign(E,a({Header:p,Footer:p},f,{},D,{},E)),Object.assign(E,{originalWidth:E.width}),E}function z(E,D,F){F===void 0&&(F=function(){return{}});for(var U=[],Q=E,K=0,ne=function(){return K++},ge=function(){var we={headers:[]},Ee=[],We=Q.some(function(Be){return Be.parent});Q.forEach(function(Be){var ze,Pe=[].concat(Ee).reverse()[0];We&&(Be.parent?ze=a({},Be.parent,{originalId:Be.parent.id,id:Be.parent.id+"_"+ne(),headers:[Be]},F(Be)):ze=$(a({originalId:Be.id+"_placeholder",id:Be.id+"_placeholder_"+ne(),placeholderOf:Be,headers:[Be]},F(Be)),D),Pe&&Pe.originalId===ze.originalId?Pe.headers.push(Be):Ee.push(ze)),we.headers.push(Be)}),U.push(we),Q=Ee};Q.length;)ge();return U.reverse()}var L=new Map;function B(){for(var E=arguments.length,D=new Array(E),F=0;F<E;F++)D[F]=arguments[F];for(var U=0;U<D.length;U+=1)if(D[U]!==void 0)return D[U]}function Y(E){if(typeof E=="function")return E}function H(E,D){var F=[];return function U(Q){Q.forEach(function(K){K[D]?U(K[D]):F.push(K)})}(E),F}function ee(E,D){var F=D.manualExpandedKey,U=D.expanded,Q=D.expandSubRows,K=Q===void 0||Q,ne=[];return E.forEach(function(ge){return function we(Ee,We){We===void 0&&(We=!0),Ee.isExpanded=Ee.original&&Ee.original[F]||U[Ee.id],Ee.canExpand=Ee.subRows&&!!Ee.subRows.length,We&&ne.push(Ee),Ee.subRows&&Ee.subRows.length&&Ee.isExpanded&&Ee.subRows.forEach(function(Be){return we(Be,K)})}(ge)}),ne}function V(E,D,F){return Y(E)||D[E]||F[E]||F.text}function W(E,D,F){return E?E(D,F):D===void 0}function j(){throw new Error("React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.")}var I=null,M=/\[/g,J=/\]/g,ae=function(E){return a({role:"table"},E)},Te=function(E){return a({role:"rowgroup"},E)},he=function(E,D){var F=D.column;return a({key:"header_"+F.id,colSpan:F.totalVisibleHeaderCount,role:"columnheader"},E)},Ie=function(E,D){var F=D.column;return a({key:"footer_"+F.id,colSpan:F.totalVisibleHeaderCount},E)},te=function(E,D){return a({key:"headerGroup_"+D.index,role:"row"},E)},ie=function(E,D){return a({key:"footerGroup_"+D.index},E)},le=function(E,D){return a({key:"row_"+D.row.id,role:"row"},E)},oe=function(E,D){var F=D.cell;return a({key:"cell_"+F.row.id+"_"+F.column.id,role:"cell"},E)};function Ne(){return{useOptions:[],stateReducers:[],useControlledState:[],columns:[],columnsDeps:[],allColumns:[],allColumnsDeps:[],accessValue:[],materializedColumns:[],materializedColumnsDeps:[],useInstanceAfterData:[],visibleColumns:[],visibleColumnsDeps:[],headerGroups:[],headerGroupsDeps:[],useInstanceBeforeDimensions:[],useInstance:[],prepareRow:[],getTableProps:[ae],getTableBodyProps:[Te],getHeaderGroupProps:[te],getFooterGroupProps:[ie],getHeaderProps:[he],getFooterProps:[Ie],getRowProps:[le],getCellProps:[oe],useFinalInstance:[]}}u.resetHiddenColumns="resetHiddenColumns",u.toggleHideColumn="toggleHideColumn",u.setHiddenColumns="setHiddenColumns",u.toggleHideAllColumns="toggleHideAllColumns";var me=function(E){E.getToggleHiddenProps=[ke],E.getToggleHideAllColumnsProps=[pe],E.stateReducers.push(it),E.useInstanceBeforeDimensions.push(Le),E.headerGroupsDeps.push(function(D,F){var U=F.instance;return[].concat(D,[U.state.hiddenColumns])}),E.useInstance.push(Ge)};me.pluginName="useColumnVisibility";var ke=function(E,D){var F=D.column;return[E,{onChange:function(U){F.toggleHidden(!U.target.checked)},style:{cursor:"pointer"},checked:F.isVisible,title:"Toggle Column Visible"}]},pe=function(E,D){var F=D.instance;return[E,{onChange:function(U){F.toggleHideAllColumns(!U.target.checked)},style:{cursor:"pointer"},checked:!F.allColumnsHidden&&!F.state.hiddenColumns.length,title:"Toggle All Columns Hidden",indeterminate:!F.allColumnsHidden&&F.state.hiddenColumns.length}]};function it(E,D,F,U){if(D.type===u.init)return a({hiddenColumns:[]},E);if(D.type===u.resetHiddenColumns)return a({},E,{hiddenColumns:U.initialState.hiddenColumns||[]});if(D.type===u.toggleHideColumn){var Q=(D.value!==void 0?D.value:!E.hiddenColumns.includes(D.columnId))?[].concat(E.hiddenColumns,[D.columnId]):E.hiddenColumns.filter(function(K){return K!==D.columnId});return a({},E,{hiddenColumns:Q})}return D.type===u.setHiddenColumns?a({},E,{hiddenColumns:w(D.value,E.hiddenColumns)}):D.type===u.toggleHideAllColumns?a({},E,{hiddenColumns:(D.value!==void 0?D.value:!E.hiddenColumns.length)?U.allColumns.map(function(K){return K.id}):[]}):void 0}function Le(E){var D=E.headers,F=E.state.hiddenColumns;r.useRef(!1).current;var U=0;D.forEach(function(Q){return U+=function K(ne,ge){ne.isVisible=ge&&!F.includes(ne.id);var we=0;return ne.headers&&ne.headers.length?ne.headers.forEach(function(Ee){return we+=K(Ee,ne.isVisible)}):we=ne.isVisible?1:0,ne.totalVisibleHeaderCount=we,we}(Q,!0)})}function Ge(E){var D=E.columns,F=E.flatHeaders,U=E.dispatch,Q=E.allColumns,K=E.getHooks,ne=E.state.hiddenColumns,ge=E.autoResetHiddenColumns,we=ge===void 0||ge,Ee=S(E),We=Q.length===ne.length,Be=r.useCallback(function(ot,mt){return U({type:u.toggleHideColumn,columnId:ot,value:mt})},[U]),ze=r.useCallback(function(ot){return U({type:u.setHiddenColumns,value:ot})},[U]),Pe=r.useCallback(function(ot){return U({type:u.toggleHideAllColumns,value:ot})},[U]),je=g(K().getToggleHideAllColumnsProps,{instance:Ee()});F.forEach(function(ot){ot.toggleHidden=function(mt){U({type:u.toggleHideColumn,columnId:ot.id,value:mt})},ot.getToggleHiddenProps=g(K().getToggleHiddenProps,{instance:Ee(),column:ot})});var Xe=S(we);A(function(){Xe()&&U({type:u.resetHiddenColumns})},[U,D]),Object.assign(E,{allColumnsHidden:We,toggleHideColumn:Be,setHiddenColumns:ze,toggleHideAllColumns:Pe,getToggleHideAllColumnsProps:je})}var st={},Ye={},lt=function(E,D,F){return E},Lt=function(E,D){return E.subRows||[]},Ft=function(E,D,F){return""+(F?[F.id,D].join("."):D)},be=function(E){return E};function Oe(E){var D=E.initialState,F=D===void 0?st:D,U=E.defaultColumn,Q=U===void 0?Ye:U,K=E.getSubRows,ne=K===void 0?Lt:K,ge=E.getRowId,we=ge===void 0?Ft:ge,Ee=E.stateReducer,We=Ee===void 0?lt:Ee,Be=E.useControlledState,ze=Be===void 0?be:Be;return a({},s(E,["initialState","defaultColumn","getSubRows","getRowId","stateReducer","useControlledState"]),{initialState:F,defaultColumn:Q,getSubRows:ne,getRowId:we,stateReducer:We,useControlledState:ze})}function Qe(E,D){D===void 0&&(D=0);var F=0,U=0,Q=0,K=0;return E.forEach(function(ne){var ge=ne.headers;if(ne.totalLeft=D,ge&&ge.length){var we=Qe(ge,D),Ee=we[0],We=we[1],Be=we[2],ze=we[3];ne.totalMinWidth=Ee,ne.totalWidth=We,ne.totalMaxWidth=Be,ne.totalFlexWidth=ze}else ne.totalMinWidth=ne.minWidth,ne.totalWidth=Math.min(Math.max(ne.minWidth,ne.width),ne.maxWidth),ne.totalMaxWidth=ne.maxWidth,ne.totalFlexWidth=ne.canResize?ne.totalWidth:0;ne.isVisible&&(D+=ne.totalWidth,F+=ne.totalMinWidth,U+=ne.totalWidth,Q+=ne.totalMaxWidth,K+=ne.totalFlexWidth)}),[F,U,Q,K]}function re(E){var D=E.data,F=E.rows,U=E.flatRows,Q=E.rowsById,K=E.column,ne=E.getRowId,ge=E.getSubRows,we=E.accessValueHooks,Ee=E.getInstance;D.forEach(function(We,Be){return function ze(Pe,je,Xe,ot,mt){Xe===void 0&&(Xe=0);var Bt=Pe,ht=ne(Pe,je,ot),He=Q[ht];if(He)He.subRows&&He.originalSubRows.forEach(function(ct,kt){return ze(ct,kt,Xe+1,He)});else if((He={id:ht,original:Bt,index:je,depth:Xe,cells:[{}]}).cells.map=j,He.cells.filter=j,He.cells.forEach=j,He.cells[0].getCellProps=j,He.values={},mt.push(He),U.push(He),Q[ht]=He,He.originalSubRows=ge(Pe,je),He.originalSubRows){var Ot=[];He.originalSubRows.forEach(function(ct,kt){return ze(ct,kt,Xe+1,He,Ot)}),He.subRows=Ot}K.accessor&&(He.values[K.id]=K.accessor(Pe,je,He,mt,D)),He.values[K.id]=v(we,He.values[K.id],{row:He,column:K,instance:Ee()})}(We,Be,0,void 0,F)})}u.resetExpanded="resetExpanded",u.toggleRowExpanded="toggleRowExpanded",u.toggleAllRowsExpanded="toggleAllRowsExpanded";var Z=function(E){E.getToggleAllRowsExpandedProps=[X],E.getToggleRowExpandedProps=[Se],E.stateReducers.push(Re),E.useInstance.push(De),E.prepareRow.push(bt)};Z.pluginName="useExpanded";var X=function(E,D){var F=D.instance;return[E,{onClick:function(U){F.toggleAllRowsExpanded()},style:{cursor:"pointer"},title:"Toggle All Rows Expanded"}]},Se=function(E,D){var F=D.row;return[E,{onClick:function(){F.toggleRowExpanded()},style:{cursor:"pointer"},title:"Toggle Row Expanded"}]};function Re(E,D,F,U){if(D.type===u.init)return a({expanded:{}},E);if(D.type===u.resetExpanded)return a({},E,{expanded:U.initialState.expanded||{}});if(D.type===u.toggleAllRowsExpanded){var Q=D.value,K=U.rowsById,ne=Object.keys(K).length===Object.keys(E.expanded).length;if(Q!==void 0?Q:!ne){var ge={};return Object.keys(K).forEach(function(je){ge[je]=!0}),a({},E,{expanded:ge})}return a({},E,{expanded:{}})}if(D.type===u.toggleRowExpanded){var we,Ee=D.id,We=D.value,Be=E.expanded[Ee],ze=We!==void 0?We:!Be;if(!Be&&ze)return a({},E,{expanded:a({},E.expanded,(we={},we[Ee]=!0,we))});if(Be&&!ze){var Pe=E.expanded;return Pe[Ee],a({},E,{expanded:s(Pe,[Ee].map(c))})}return E}}function De(E){var D=E.data,F=E.rows,U=E.rowsById,Q=E.manualExpandedKey,K=Q===void 0?"expanded":Q,ne=E.paginateExpandedRows,ge=ne===void 0||ne,we=E.expandSubRows,Ee=we===void 0||we,We=E.autoResetExpanded,Be=We===void 0||We,ze=E.getHooks,Pe=E.plugins,je=E.state.expanded,Xe=E.dispatch;y(Pe,["useSortBy","useGroupBy","usePivotColumns","useGlobalFilter"],"useExpanded");var ot=S(Be),mt=!!(Object.keys(U).length&&Object.keys(je).length);mt&&Object.keys(U).some(function(Xt){return!je[Xt]})&&(mt=!1),A(function(){ot()&&Xe({type:u.resetExpanded})},[Xe,D]);var Bt=r.useCallback(function(Xt,wt){Xe({type:u.toggleRowExpanded,id:Xt,value:wt})},[Xe]),ht=r.useCallback(function(Xt){return Xe({type:u.toggleAllRowsExpanded,value:Xt})},[Xe]),He=r.useMemo(function(){return ge?ee(F,{manualExpandedKey:K,expanded:je,expandSubRows:Ee}):F},[ge,F,K,je,Ee]),Ot=r.useMemo(function(){return function(Xt){var wt=0;return Object.keys(Xt).forEach(function(Et){var un=Et.split(".");wt=Math.max(wt,un.length)}),wt}(je)},[je]),ct=S(E),kt=g(ze().getToggleAllRowsExpandedProps,{instance:ct()});Object.assign(E,{preExpandedRows:F,expandedRows:He,rows:He,expandedDepth:Ot,isAllRowsExpanded:mt,toggleRowExpanded:Bt,toggleAllRowsExpanded:ht,getToggleAllRowsExpandedProps:kt})}function bt(E,D){var F=D.instance.getHooks,U=D.instance;E.toggleRowExpanded=function(Q){return U.toggleRowExpanded(E.id,Q)},E.getToggleRowExpandedProps=g(F().getToggleRowExpandedProps,{instance:U,row:E})}var _t=function(E,D,F){return E=E.filter(function(U){return D.some(function(Q){var K=U.values[Q];return String(K).toLowerCase().includes(String(F).toLowerCase())})})};_t.autoRemove=function(E){return!E};var zt=function(E,D,F){return E.filter(function(U){return D.some(function(Q){var K=U.values[Q];return K===void 0||String(K).toLowerCase()===String(F).toLowerCase()})})};zt.autoRemove=function(E){return!E};var fn=function(E,D,F){return E.filter(function(U){return D.some(function(Q){var K=U.values[Q];return K===void 0||String(K)===String(F)})})};fn.autoRemove=function(E){return!E};var Ut=function(E,D,F){return E.filter(function(U){return D.some(function(Q){return U.values[Q].includes(F)})})};Ut.autoRemove=function(E){return!E||!E.length};var Yt=function(E,D,F){return E.filter(function(U){return D.some(function(Q){var K=U.values[Q];return K&&K.length&&F.every(function(ne){return K.includes(ne)})})})};Yt.autoRemove=function(E){return!E||!E.length};var nn=function(E,D,F){return E.filter(function(U){return D.some(function(Q){var K=U.values[Q];return K&&K.length&&F.some(function(ne){return K.includes(ne)})})})};nn.autoRemove=function(E){return!E||!E.length};var Gn=function(E,D,F){return E.filter(function(U){return D.some(function(Q){var K=U.values[Q];return F.includes(K)})})};Gn.autoRemove=function(E){return!E||!E.length};var hn=function(E,D,F){return E.filter(function(U){return D.some(function(Q){return U.values[Q]===F})})};hn.autoRemove=function(E){return E===void 0};var Kt=function(E,D,F){return E.filter(function(U){return D.some(function(Q){return U.values[Q]==F})})};Kt.autoRemove=function(E){return E==null};var lr=function(E,D,F){var U=F||[],Q=U[0],K=U[1];if((Q=typeof Q=="number"?Q:-1/0)>(K=typeof K=="number"?K:1/0)){var ne=Q;Q=K,K=ne}return E.filter(function(ge){return D.some(function(we){var Ee=ge.values[we];return Ee>=Q&&Ee<=K})})};lr.autoRemove=function(E){return!E||typeof E[0]!="number"&&typeof E[1]!="number"};var zr=Object.freeze({__proto__:null,text:_t,exactText:zt,exactTextCase:fn,includes:Ut,includesAll:Yt,includesSome:nn,includesValue:Gn,exact:hn,equals:Kt,between:lr});u.resetFilters="resetFilters",u.setFilter="setFilter",u.setAllFilters="setAllFilters";var Oo=function(E){E.stateReducers.push(Ko),E.useInstance.push(Xo)};function Ko(E,D,F,U){if(D.type===u.init)return a({filters:[]},E);if(D.type===u.resetFilters)return a({},E,{filters:U.initialState.filters||[]});if(D.type===u.setFilter){var Q=D.columnId,K=D.filterValue,ne=U.allColumns,ge=U.filterTypes,we=ne.find(function(Xe){return Xe.id===Q});if(!we)throw new Error("React-Table: Could not find a column with id: "+Q);var Ee=V(we.filter,ge||{},zr),We=E.filters.find(function(Xe){return Xe.id===Q}),Be=w(K,We&&We.value);return W(Ee.autoRemove,Be,we)?a({},E,{filters:E.filters.filter(function(Xe){return Xe.id!==Q})}):a({},E,We?{filters:E.filters.map(function(Xe){return Xe.id===Q?{id:Q,value:Be}:Xe})}:{filters:[].concat(E.filters,[{id:Q,value:Be}])})}if(D.type===u.setAllFilters){var ze=D.filters,Pe=U.allColumns,je=U.filterTypes;return a({},E,{filters:w(ze,E.filters).filter(function(Xe){var ot=Pe.find(function(mt){return mt.id===Xe.id});return!W(V(ot.filter,je||{},zr).autoRemove,Xe.value,ot)})})}}function Xo(E){var D=E.data,F=E.rows,U=E.flatRows,Q=E.rowsById,K=E.allColumns,ne=E.filterTypes,ge=E.manualFilters,we=E.defaultCanFilter,Ee=we!==void 0&&we,We=E.disableFilters,Be=E.state.filters,ze=E.dispatch,Pe=E.autoResetFilters,je=Pe===void 0||Pe,Xe=r.useCallback(function(ct,kt){ze({type:u.setFilter,columnId:ct,filterValue:kt})},[ze]),ot=r.useCallback(function(ct){ze({type:u.setAllFilters,filters:ct})},[ze]);K.forEach(function(ct){var kt=ct.id,Xt=ct.accessor,wt=ct.defaultCanFilter,Et=ct.disableFilters;ct.canFilter=Xt?B(Et!==!0&&void 0,We!==!0&&void 0,!0):B(wt,Ee,!1),ct.setFilter=function(Pt){return Xe(ct.id,Pt)};var un=Be.find(function(Pt){return Pt.id===kt});ct.filterValue=un&&un.value});var mt=r.useMemo(function(){if(ge||!Be.length)return[F,U,Q];var ct=[],kt={};return[function Xt(wt,Et){Et===void 0&&(Et=0);var un=wt;return(un=Be.reduce(function(Pt,ln){var tn=ln.id,Dn=ln.value,vt=K.find(function(cr){return cr.id===tn});if(!vt)return Pt;Et===0&&(vt.preFilteredRows=Pt);var Qt=V(vt.filter,ne||{},zr);return Qt?(vt.filteredRows=Qt(Pt,[tn],Dn),vt.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+vt.id+"."),Pt)},wt)).forEach(function(Pt){ct.push(Pt),kt[Pt.id]=Pt,Pt.subRows&&(Pt.subRows=Pt.subRows&&Pt.subRows.length>0?Xt(Pt.subRows,Et+1):Pt.subRows)}),un}(F),ct,kt]},[ge,Be,F,U,Q,K,ne]),Bt=mt[0],ht=mt[1],He=mt[2];r.useMemo(function(){K.filter(function(ct){return!Be.find(function(kt){return kt.id===ct.id})}).forEach(function(ct){ct.preFilteredRows=Bt,ct.filteredRows=Bt})},[Bt,Be,K]);var Ot=S(je);A(function(){Ot()&&ze({type:u.resetFilters})},[ze,ge?null:D]),Object.assign(E,{preFilteredRows:F,preFilteredFlatRows:U,preFilteredRowsById:Q,filteredRows:Bt,filteredFlatRows:ht,filteredRowsById:He,rows:Bt,flatRows:ht,rowsById:He,setFilter:Xe,setAllFilters:ot})}Oo.pluginName="useFilters",u.resetGlobalFilter="resetGlobalFilter",u.setGlobalFilter="setGlobalFilter";var Zr=function(E){E.stateReducers.push($o),E.useInstance.push(wr)};function $o(E,D,F,U){if(D.type===u.resetGlobalFilter)return a({},E,{globalFilter:U.initialState.globalFilter||void 0});if(D.type===u.setGlobalFilter){var Q=D.filterValue,K=U.userFilterTypes,ne=V(U.globalFilter,K||{},zr),ge=w(Q,E.globalFilter);return W(ne.autoRemove,ge)?(E.globalFilter,s(E,["globalFilter"])):a({},E,{globalFilter:ge})}}function wr(E){var D=E.data,F=E.rows,U=E.flatRows,Q=E.rowsById,K=E.allColumns,ne=E.filterTypes,ge=E.globalFilter,we=E.manualGlobalFilter,Ee=E.state.globalFilter,We=E.dispatch,Be=E.autoResetGlobalFilter,ze=Be===void 0||Be,Pe=E.disableGlobalFilter,je=r.useCallback(function(He){We({type:u.setGlobalFilter,filterValue:He})},[We]),Xe=r.useMemo(function(){if(we||Ee===void 0)return[F,U,Q];var He=[],Ot={},ct=V(ge,ne||{},zr);if(!ct)return console.warn("Could not find a valid 'globalFilter' option."),F;K.forEach(function(Xt){var wt=Xt.disableGlobalFilter;Xt.canFilter=B(wt!==!0&&void 0,Pe!==!0&&void 0,!0)});var kt=K.filter(function(Xt){return Xt.canFilter===!0});return[function Xt(wt){return(wt=ct(wt,kt.map(function(Et){return Et.id}),Ee)).forEach(function(Et){He.push(Et),Ot[Et.id]=Et,Et.subRows=Et.subRows&&Et.subRows.length?Xt(Et.subRows):Et.subRows}),wt}(F),He,Ot]},[we,Ee,ge,ne,K,F,U,Q,Pe]),ot=Xe[0],mt=Xe[1],Bt=Xe[2],ht=S(ze);A(function(){ht()&&We({type:u.resetGlobalFilter})},[We,we?null:D]),Object.assign(E,{preGlobalFilteredRows:F,preGlobalFilteredFlatRows:U,preGlobalFilteredRowsById:Q,globalFilteredRows:ot,globalFilteredFlatRows:mt,globalFilteredRowsById:Bt,rows:ot,flatRows:mt,rowsById:Bt,setGlobalFilter:je,disableGlobalFilter:Pe})}function No(E,D){return D.reduce(function(F,U){return F+(typeof U=="number"?U:0)},0)}Zr.pluginName="useGlobalFilter";var jr=Object.freeze({__proto__:null,sum:No,min:function(E){var D=E[0]||0;return E.forEach(function(F){typeof F=="number"&&(D=Math.min(D,F))}),D},max:function(E){var D=E[0]||0;return E.forEach(function(F){typeof F=="number"&&(D=Math.max(D,F))}),D},minMax:function(E){var D=E[0]||0,F=E[0]||0;return E.forEach(function(U){typeof U=="number"&&(D=Math.min(D,U),F=Math.max(F,U))}),D+".."+F},average:function(E){return No(0,E)/E.length},median:function(E){if(!E.length)return null;var D=Math.floor(E.length/2),F=[].concat(E).sort(function(U,Q){return U-Q});return E.length%2!=0?F[D]:(F[D-1]+F[D])/2},unique:function(E){return Array.from(new Set(E).values())},uniqueCount:function(E){return new Set(E).size},count:function(E){return E.length}}),Gt=[],sn={};u.resetGroupBy="resetGroupBy",u.setGroupBy="setGroupBy",u.toggleGroupBy="toggleGroupBy";var or=function(E){E.getGroupByToggleProps=[Nr],E.stateReducers.push(bo),E.visibleColumnsDeps.push(function(D,F){var U=F.instance;return[].concat(D,[U.state.groupBy])}),E.visibleColumns.push(wo),E.useInstance.push(ye),E.prepareRow.push(ue)};or.pluginName="useGroupBy";var Nr=function(E,D){var F=D.header;return[E,{onClick:F.canGroupBy?function(U){U.persist(),F.toggleGroupBy()}:void 0,style:{cursor:F.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function bo(E,D,F,U){if(D.type===u.init)return a({groupBy:[]},E);if(D.type===u.resetGroupBy)return a({},E,{groupBy:U.initialState.groupBy||[]});if(D.type===u.setGroupBy)return a({},E,{groupBy:D.value});if(D.type===u.toggleGroupBy){var Q=D.columnId,K=D.value,ne=K!==void 0?K:!E.groupBy.includes(Q);return a({},E,ne?{groupBy:[].concat(E.groupBy,[Q])}:{groupBy:E.groupBy.filter(function(ge){return ge!==Q})})}}function wo(E,D){var F=D.instance.state.groupBy,U=F.map(function(K){return E.find(function(ne){return ne.id===K})}).filter(Boolean),Q=E.filter(function(K){return!F.includes(K.id)});return(E=[].concat(U,Q)).forEach(function(K){K.isGrouped=F.includes(K.id),K.groupedIndex=F.indexOf(K.id)}),E}var Qi={};function ye(E){var D=E.data,F=E.rows,U=E.flatRows,Q=E.rowsById,K=E.allColumns,ne=E.flatHeaders,ge=E.groupByFn,we=ge===void 0?Ke:ge,Ee=E.manualGroupBy,We=E.aggregations,Be=We===void 0?Qi:We,ze=E.plugins,Pe=E.state.groupBy,je=E.dispatch,Xe=E.autoResetGroupBy,ot=Xe===void 0||Xe,mt=E.disableGroupBy,Bt=E.defaultCanGroupBy,ht=E.getHooks;y(ze,["useColumnOrder","useFilters"],"useGroupBy");var He=S(E);K.forEach(function(vt){var Qt=vt.accessor,cr=vt.defaultGroupBy,So=vt.disableGroupBy;vt.canGroupBy=Qt?B(vt.canGroupBy,So!==!0&&void 0,mt!==!0&&void 0,!0):B(vt.canGroupBy,cr,Bt,!1),vt.canGroupBy&&(vt.toggleGroupBy=function(){return E.toggleGroupBy(vt.id)}),vt.Aggregated=vt.Aggregated||vt.Cell});var Ot=r.useCallback(function(vt,Qt){je({type:u.toggleGroupBy,columnId:vt,value:Qt})},[je]),ct=r.useCallback(function(vt){je({type:u.setGroupBy,value:vt})},[je]);ne.forEach(function(vt){vt.getGroupByToggleProps=g(ht().getGroupByToggleProps,{instance:He(),header:vt})});var kt=r.useMemo(function(){if(Ee||!Pe.length)return[F,U,Q,Gt,sn,U,Q];var vt=Pe.filter(function(Ur){return K.find(function(Bs){return Bs.id===Ur})}),Qt=[],cr={},So=[],St={},Xn=[],Tr={},xo=function Ur(Bs,is,$k){if(is===void 0&&(is=0),is===vt.length)return Bs.map(function(Cm){return a({},Cm,{depth:is})});var Q0=vt[is],U8=we(Bs,Q0);return Object.entries(U8).map(function(Cm,W8){var Nk=Cm[0],Em=Cm[1],Tm=Q0+":"+Nk,Lk=Ur(Em,is+1,Tm=$k?$k+">"+Tm:Tm),Dk=is?H(Em,"leafRows"):Em,H8=function(wi,Z0,G8){var km={};return K.forEach(function(kr){if(vt.includes(kr.id))km[kr.id]=Z0[0]?Z0[0].values[kr.id]:null;else{var Mk=typeof kr.aggregate=="function"?kr.aggregate:Be[kr.aggregate]||jr[kr.aggregate];if(Mk){var q8=Z0.map(function(Am){return Am.values[kr.id]}),Y8=wi.map(function(Am){var eb=Am.values[kr.id];if(!G8&&kr.aggregateValue){var Bk=typeof kr.aggregateValue=="function"?kr.aggregateValue:Be[kr.aggregateValue]||jr[kr.aggregateValue];if(!Bk)throw console.info({column:kr}),new Error("React Table: Invalid column.aggregateValue option for column listed above");eb=Bk(eb,Am,kr)}return eb});km[kr.id]=Mk(Y8,q8)}else{if(kr.aggregate)throw console.info({column:kr}),new Error("React Table: Invalid column.aggregate option for column listed above");km[kr.id]=null}}}),km}(Dk,Em,is),V8={id:Tm,isGrouped:!0,groupByID:Q0,groupByVal:Nk,values:H8,subRows:Lk,leafRows:Dk,depth:is,index:W8};return Lk.forEach(function(wi){Qt.push(wi),cr[wi.id]=wi,wi.isGrouped?(So.push(wi),St[wi.id]=wi):(Xn.push(wi),Tr[wi.id]=wi)}),V8})}(F);return xo.forEach(function(Ur){Qt.push(Ur),cr[Ur.id]=Ur,Ur.isGrouped?(So.push(Ur),St[Ur.id]=Ur):(Xn.push(Ur),Tr[Ur.id]=Ur)}),[xo,Qt,cr,So,St,Xn,Tr]},[Ee,Pe,F,U,Q,K,Be,we]),Xt=kt[0],wt=kt[1],Et=kt[2],un=kt[3],Pt=kt[4],ln=kt[5],tn=kt[6],Dn=S(ot);A(function(){Dn()&&je({type:u.resetGroupBy})},[je,Ee?null:D]),Object.assign(E,{preGroupedRows:F,preGroupedFlatRow:U,preGroupedRowsById:Q,groupedRows:Xt,groupedFlatRows:wt,groupedRowsById:Et,onlyGroupedFlatRows:un,onlyGroupedRowsById:Pt,nonGroupedFlatRows:ln,nonGroupedRowsById:tn,rows:Xt,flatRows:wt,rowsById:Et,toggleGroupBy:Ot,setGroupBy:ct})}function ue(E){E.allCells.forEach(function(D){var F;D.isGrouped=D.column.isGrouped&&D.column.id===E.groupByID,D.isPlaceholder=!D.isGrouped&&D.column.isGrouped,D.isAggregated=!D.isGrouped&&!D.isPlaceholder&&((F=E.subRows)==null?void 0:F.length)})}function Ke(E,D){return E.reduce(function(F,U,Q){var K=""+U.values[D];return F[K]=Array.isArray(F[K])?F[K]:[],F[K].push(U),F},{})}var ft=/([0-9]+)/gm;function Dt(E,D){return E===D?0:E>D?1:-1}function Bn(E,D,F){return[E.values[F],D.values[F]]}function zn(E){return typeof E=="number"?isNaN(E)||E===1/0||E===-1/0?"":String(E):typeof E=="string"?E:""}var Ct=Object.freeze({__proto__:null,alphanumeric:function(E,D,F){var U=Bn(E,D,F),Q=U[0],K=U[1];for(Q=zn(Q),K=zn(K),Q=Q.split(ft).filter(Boolean),K=K.split(ft).filter(Boolean);Q.length&&K.length;){var ne=Q.shift(),ge=K.shift(),we=parseInt(ne,10),Ee=parseInt(ge,10),We=[we,Ee].sort();if(isNaN(We[0])){if(ne>ge)return 1;if(ge>ne)return-1}else{if(isNaN(We[1]))return isNaN(we)?-1:1;if(we>Ee)return 1;if(Ee>we)return-1}}return Q.length-K.length},datetime:function(E,D,F){var U=Bn(E,D,F),Q=U[0],K=U[1];return Dt(Q=Q.getTime(),K=K.getTime())},basic:function(E,D,F){var U=Bn(E,D,F);return Dt(U[0],U[1])},string:function(E,D,F){var U=Bn(E,D,F),Q=U[0],K=U[1];for(Q=Q.split("").filter(Boolean),K=K.split("").filter(Boolean);Q.length&&K.length;){var ne=Q.shift(),ge=K.shift(),we=ne.toLowerCase(),Ee=ge.toLowerCase();if(we>Ee)return 1;if(Ee>we)return-1;if(ne>ge)return 1;if(ge>ne)return-1}return Q.length-K.length},number:function(E,D,F){var U=Bn(E,D,F),Q=U[0],K=U[1],ne=/[^0-9.]/gi;return Dt(Q=Number(String(Q).replace(ne,"")),K=Number(String(K).replace(ne,"")))}});u.resetSortBy="resetSortBy",u.setSortBy="setSortBy",u.toggleSortBy="toggleSortBy",u.clearSortBy="clearSortBy",f.sortType="alphanumeric",f.sortDescFirst=!1;var jn=function(E){E.getSortByToggleProps=[E0],E.stateReducers.push(T0),E.useInstance.push(k0)};jn.pluginName="useSortBy";var E0=function(E,D){var F=D.instance,U=D.column,Q=F.isMultiSortEvent,K=Q===void 0?function(ne){return ne.shiftKey}:Q;return[E,{onClick:U.canSort?function(ne){ne.persist(),U.toggleSortBy(void 0,!F.disableMultiSort&&K(ne))}:void 0,style:{cursor:U.canSort?"pointer":void 0},title:U.canSort?"Toggle SortBy":void 0}]};function T0(E,D,F,U){if(D.type===u.init)return a({sortBy:[]},E);if(D.type===u.resetSortBy)return a({},E,{sortBy:U.initialState.sortBy||[]});if(D.type===u.clearSortBy)return a({},E,{sortBy:E.sortBy.filter(function(He){return He.id!==D.columnId})});if(D.type===u.setSortBy)return a({},E,{sortBy:D.sortBy});if(D.type===u.toggleSortBy){var Q,K=D.columnId,ne=D.desc,ge=D.multi,we=U.allColumns,Ee=U.disableMultiSort,We=U.disableSortRemove,Be=U.disableMultiRemove,ze=U.maxMultiSortColCount,Pe=ze===void 0?Number.MAX_SAFE_INTEGER:ze,je=E.sortBy,Xe=we.find(function(He){return He.id===K}).sortDescFirst,ot=je.find(function(He){return He.id===K}),mt=je.findIndex(function(He){return He.id===K}),Bt=ne!=null,ht=[];return(Q=!Ee&&ge?ot?"toggle":"add":mt!==je.length-1||je.length!==1?"replace":ot?"toggle":"replace")!="toggle"||We||Bt||ge&&Be||!(ot&&ot.desc&&!Xe||!ot.desc&&Xe)||(Q="remove"),Q==="replace"?ht=[{id:K,desc:Bt?ne:Xe}]:Q==="add"?(ht=[].concat(je,[{id:K,desc:Bt?ne:Xe}])).splice(0,ht.length-Pe):Q==="toggle"?ht=je.map(function(He){return He.id===K?a({},He,{desc:Bt?ne:!ot.desc}):He}):Q==="remove"&&(ht=je.filter(function(He){return He.id!==K})),a({},E,{sortBy:ht})}}function k0(E){var D=E.data,F=E.rows,U=E.flatRows,Q=E.allColumns,K=E.orderByFn,ne=K===void 0?hm:K,ge=E.sortTypes,we=E.manualSortBy,Ee=E.defaultCanSort,We=E.disableSortBy,Be=E.flatHeaders,ze=E.state.sortBy,Pe=E.dispatch,je=E.plugins,Xe=E.getHooks,ot=E.autoResetSortBy,mt=ot===void 0||ot;y(je,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var Bt=r.useCallback(function(wt){Pe({type:u.setSortBy,sortBy:wt})},[Pe]),ht=r.useCallback(function(wt,Et,un){Pe({type:u.toggleSortBy,columnId:wt,desc:Et,multi:un})},[Pe]),He=S(E);Be.forEach(function(wt){var Et=wt.accessor,un=wt.canSort,Pt=wt.disableSortBy,ln=wt.id,tn=Et?B(Pt!==!0&&void 0,We!==!0&&void 0,!0):B(Ee,un,!1);wt.canSort=tn,wt.canSort&&(wt.toggleSortBy=function(vt,Qt){return ht(wt.id,vt,Qt)},wt.clearSortBy=function(){Pe({type:u.clearSortBy,columnId:wt.id})}),wt.getSortByToggleProps=g(Xe().getSortByToggleProps,{instance:He(),column:wt});var Dn=ze.find(function(vt){return vt.id===ln});wt.isSorted=!!Dn,wt.sortedIndex=ze.findIndex(function(vt){return vt.id===ln}),wt.isSortedDesc=wt.isSorted?Dn.desc:void 0});var Ot=r.useMemo(function(){if(we||!ze.length)return[F,U];var wt=[],Et=ze.filter(function(un){return Q.find(function(Pt){return Pt.id===un.id})});return[function un(Pt){var ln=ne(Pt,Et.map(function(tn){var Dn=Q.find(function(cr){return cr.id===tn.id});if(!Dn)throw new Error("React-Table: Could not find a column with id: "+tn.id+" while sorting");var vt=Dn.sortType,Qt=Y(vt)||(ge||{})[vt]||Ct[vt];if(!Qt)throw new Error("React-Table: Could not find a valid sortType of '"+vt+"' for column '"+tn.id+"'.");return function(cr,So){return Qt(cr,So,tn.id,tn.desc)}}),Et.map(function(tn){var Dn=Q.find(function(vt){return vt.id===tn.id});return Dn&&Dn.sortInverted?tn.desc:!tn.desc}));return ln.forEach(function(tn){wt.push(tn),tn.subRows&&tn.subRows.length!==0&&(tn.subRows=un(tn.subRows))}),ln}(F),wt]},[we,ze,F,U,Q,ne,ge]),ct=Ot[0],kt=Ot[1],Xt=S(mt);A(function(){Xt()&&Pe({type:u.resetSortBy})},[we?null:D]),Object.assign(E,{preSortedRows:F,preSortedFlatRows:U,sortedRows:ct,sortedFlatRows:kt,rows:ct,flatRows:kt,setSortBy:Bt,toggleSortBy:ht})}function hm(E,D,F){return[].concat(E).sort(function(U,Q){for(var K=0;K<D.length;K+=1){var ne=D[K],ge=F[K]===!1||F[K]==="desc",we=ne(U,Q);if(we!==0)return ge?-we:we}return F[0]?U.index-Q.index:Q.index-U.index})}u.resetPage="resetPage",u.gotoPage="gotoPage",u.setPageSize="setPageSize";var mm=function(E){E.stateReducers.push(A0),E.useInstance.push(gm)};function A0(E,D,F,U){if(D.type===u.init)return a({pageSize:10,pageIndex:0},E);if(D.type===u.resetPage)return a({},E,{pageIndex:U.initialState.pageIndex||0});if(D.type===u.gotoPage){var Q=U.pageCount,K=U.page,ne=w(D.pageIndex,E.pageIndex),ge=!1;return ne>E.pageIndex?ge=Q===-1?K.length>=E.pageSize:ne<Q:ne<E.pageIndex&&(ge=ne>-1),ge?a({},E,{pageIndex:ne}):E}if(D.type===u.setPageSize){var we=D.pageSize,Ee=E.pageSize*E.pageIndex;return a({},E,{pageIndex:Math.floor(Ee/we),pageSize:we})}}function gm(E){var D=E.rows,F=E.autoResetPage,U=F===void 0||F,Q=E.manualExpandedKey,K=Q===void 0?"expanded":Q,ne=E.plugins,ge=E.pageCount,we=E.paginateExpandedRows,Ee=we===void 0||we,We=E.expandSubRows,Be=We===void 0||We,ze=E.state,Pe=ze.pageSize,je=ze.pageIndex,Xe=ze.expanded,ot=ze.globalFilter,mt=ze.filters,Bt=ze.groupBy,ht=ze.sortBy,He=E.dispatch,Ot=E.data,ct=E.manualPagination;y(ne,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var kt=S(U);A(function(){kt()&&He({type:u.resetPage})},[He,ct?null:Ot,ot,mt,Bt,ht]);var Xt=ct?ge:Math.ceil(D.length/Pe),wt=r.useMemo(function(){return Xt>0?[].concat(new Array(Xt)).fill(null).map(function(Qt,cr){return cr}):[]},[Xt]),Et=r.useMemo(function(){var Qt;if(ct)Qt=D;else{var cr=Pe*je,So=cr+Pe;Qt=D.slice(cr,So)}return Ee?Qt:ee(Qt,{manualExpandedKey:K,expanded:Xe,expandSubRows:Be})},[Be,Xe,K,ct,je,Pe,Ee,D]),un=je>0,Pt=Xt===-1?Et.length>=Pe:je<Xt-1,ln=r.useCallback(function(Qt){He({type:u.gotoPage,pageIndex:Qt})},[He]),tn=r.useCallback(function(){return ln(function(Qt){return Qt-1})},[ln]),Dn=r.useCallback(function(){return ln(function(Qt){return Qt+1})},[ln]),vt=r.useCallback(function(Qt){He({type:u.setPageSize,pageSize:Qt})},[He]);Object.assign(E,{pageOptions:wt,pageCount:Xt,page:Et,canPreviousPage:un,canNextPage:Pt,gotoPage:ln,previousPage:tn,nextPage:Dn,setPageSize:vt})}mm.pluginName="usePagination",u.resetPivot="resetPivot",u.togglePivot="togglePivot";var Ll=function(E){E.getPivotToggleProps=[Xd],E.stateReducers.push(R0),E.useInstanceAfterData.push(_0),E.allColumns.push(P0),E.accessValue.push(I0),E.materializedColumns.push(O0),E.materializedColumnsDeps.push($0),E.visibleColumns.push(Jd),E.visibleColumnsDeps.push(N0),E.useInstance.push(L0),E.prepareRow.push(D0)};Ll.pluginName="usePivotColumns";var vm=[],Xd=function(E,D){var F=D.header;return[E,{onClick:F.canPivot?function(U){U.persist(),F.togglePivot()}:void 0,style:{cursor:F.canPivot?"pointer":void 0},title:"Toggle Pivot"}]};function R0(E,D,F,U){if(D.type===u.init)return a({pivotColumns:vm},E);if(D.type===u.resetPivot)return a({},E,{pivotColumns:U.initialState.pivotColumns||vm});if(D.type===u.togglePivot){var Q=D.columnId,K=D.value,ne=K!==void 0?K:!E.pivotColumns.includes(Q);return a({},E,ne?{pivotColumns:[].concat(E.pivotColumns,[Q])}:{pivotColumns:E.pivotColumns.filter(function(ge){return ge!==Q})})}}function _0(E){E.allColumns.forEach(function(D){D.isPivotSource=E.state.pivotColumns.includes(D.id)})}function P0(E,D){var F=D.instance;return E.forEach(function(U){U.isPivotSource=F.state.pivotColumns.includes(U.id),U.uniqueValues=new Set}),E}function I0(E,D){var F=D.column;return F.uniqueValues&&E!==void 0&&F.uniqueValues.add(E),E}function O0(E,D){var F=D.instance,U=F.allColumns,Q=F.state;if(!Q.pivotColumns.length||!Q.groupBy||!Q.groupBy.length)return E;var K=Q.pivotColumns.map(function(we){return U.find(function(Ee){return Ee.id===we})}).filter(Boolean),ne=U.filter(function(we){return!we.isPivotSource&&!Q.groupBy.includes(we.id)&&!Q.pivotColumns.includes(we.id)}),ge=_(function we(Ee,We,Be){Ee===void 0&&(Ee=0),Be===void 0&&(Be=[]);var ze=K[Ee];return ze?Array.from(ze.uniqueValues).sort().map(function(Pe){var je=a({},ze,{Header:ze.PivotHeader||typeof ze.header=="string"?ze.Header+": "+Pe:Pe,isPivotGroup:!0,parent:We,depth:Ee,id:We?We.id+"."+ze.id+"."+Pe:ze.id+"."+Pe,pivotValue:Pe});return je.columns=we(Ee+1,je,[].concat(Be,[function(Xe){return Xe.values[ze.id]===Pe}])),je}):ne.map(function(Pe){return a({},Pe,{canPivot:!1,isPivoted:!0,parent:We,depth:Ee,id:""+(We?We.id+"."+Pe.id:Pe.id),accessor:function(je,Xe,ot){if(Be.every(function(mt){return mt(ot)}))return ot.values[Pe.id]}})})}());return[].concat(E,ge)}function $0(E,D){var F=D.instance.state,U=F.pivotColumns,Q=F.groupBy;return[].concat(E,[U,Q])}function Jd(E,D){var F=D.instance.state;return E=E.filter(function(U){return!U.isPivotSource}),F.pivotColumns.length&&F.groupBy&&F.groupBy.length&&(E=E.filter(function(U){return U.isGrouped||U.isPivoted})),E}function N0(E,D){var F=D.instance;return[].concat(E,[F.state.pivotColumns,F.state.groupBy])}function L0(E){var D=E.columns,F=E.allColumns,U=E.flatHeaders,Q=E.getHooks,K=E.plugins,ne=E.dispatch,ge=E.autoResetPivot,we=ge===void 0||ge,Ee=E.manaulPivot,We=E.disablePivot,Be=E.defaultCanPivot;y(K,["useGroupBy"],"usePivotColumns");var ze=S(E);F.forEach(function(je){var Xe=je.accessor,ot=je.defaultPivot,mt=je.disablePivot;je.canPivot=Xe?B(je.canPivot,mt!==!0&&void 0,We!==!0&&void 0,!0):B(je.canPivot,ot,Be,!1),je.canPivot&&(je.togglePivot=function(){return E.togglePivot(je.id)}),je.Aggregated=je.Aggregated||je.Cell}),U.forEach(function(je){je.getPivotToggleProps=g(Q().getPivotToggleProps,{instance:ze(),header:je})});var Pe=S(we);A(function(){Pe()&&ne({type:u.resetPivot})},[ne,Ee?null:D]),Object.assign(E,{togglePivot:function(je,Xe){ne({type:u.togglePivot,columnId:je,value:Xe})}})}function D0(E){E.allCells.forEach(function(D){D.isPivoted=D.column.isPivoted})}u.resetSelectedRows="resetSelectedRows",u.toggleAllRowsSelected="toggleAllRowsSelected",u.toggleRowSelected="toggleRowSelected",u.toggleAllPageRowsSelected="toggleAllPageRowsSelected";var ym=function(E){E.getToggleRowSelectedProps=[M0],E.getToggleAllRowsSelectedProps=[B0],E.getToggleAllPageRowsSelectedProps=[F0],E.stateReducers.push(bm),E.useInstance.push(z0),E.prepareRow.push(j0)};ym.pluginName="useRowSelect";var M0=function(E,D){var F=D.instance,U=D.row,Q=F.manualRowSelectedKey,K=Q===void 0?"isSelected":Q;return[E,{onChange:function(ne){U.toggleRowSelected(ne.target.checked)},style:{cursor:"pointer"},checked:!(!U.original||!U.original[K])||U.isSelected,title:"Toggle Row Selected",indeterminate:U.isSomeSelected}]},B0=function(E,D){var F=D.instance;return[E,{onChange:function(U){F.toggleAllRowsSelected(U.target.checked)},style:{cursor:"pointer"},checked:F.isAllRowsSelected,title:"Toggle All Rows Selected",indeterminate:!!(!F.isAllRowsSelected&&Object.keys(F.state.selectedRowIds).length)}]},F0=function(E,D){var F=D.instance;return[E,{onChange:function(U){F.toggleAllPageRowsSelected(U.target.checked)},style:{cursor:"pointer"},checked:F.isAllPageRowsSelected,title:"Toggle All Current Page Rows Selected",indeterminate:!!(!F.isAllPageRowsSelected&&F.page.some(function(U){var Q=U.id;return F.state.selectedRowIds[Q]}))}]};function bm(E,D,F,U){if(D.type===u.init)return a({selectedRowIds:{}},E);if(D.type===u.resetSelectedRows)return a({},E,{selectedRowIds:U.initialState.selectedRowIds||{}});if(D.type===u.toggleAllRowsSelected){var Q=D.value,K=U.isAllRowsSelected,ne=U.rowsById,ge=U.nonGroupedRowsById,we=ge===void 0?ne:ge,Ee=Q!==void 0?Q:!K,We=Object.assign({},E.selectedRowIds);return Ee?Object.keys(we).forEach(function(ln){We[ln]=!0}):Object.keys(we).forEach(function(ln){delete We[ln]}),a({},E,{selectedRowIds:We})}if(D.type===u.toggleRowSelected){var Be=D.id,ze=D.value,Pe=U.rowsById,je=U.selectSubRows,Xe=je===void 0||je,ot=U.getSubRows,mt=E.selectedRowIds[Be],Bt=ze!==void 0?ze:!mt;if(mt===Bt)return E;var ht=a({},E.selectedRowIds);return function ln(tn){var Dn=Pe[tn];if(Dn&&(Dn.isGrouped||(Bt?ht[tn]=!0:delete ht[tn]),Xe&&ot(Dn)))return ot(Dn).forEach(function(vt){return ln(vt.id)})}(Be),a({},E,{selectedRowIds:ht})}if(D.type===u.toggleAllPageRowsSelected){var He=D.value,Ot=U.page,ct=U.rowsById,kt=U.selectSubRows,Xt=kt===void 0||kt,wt=U.isAllPageRowsSelected,Et=U.getSubRows,un=He!==void 0?He:!wt,Pt=a({},E.selectedRowIds);return Ot.forEach(function(ln){return function tn(Dn){var vt=ct[Dn];if(vt.isGrouped||(un?Pt[Dn]=!0:delete Pt[Dn]),Xt&&Et(vt))return Et(vt).forEach(function(Qt){return tn(Qt.id)})}(ln.id)}),a({},E,{selectedRowIds:Pt})}return E}function z0(E){var D=E.data,F=E.rows,U=E.getHooks,Q=E.plugins,K=E.rowsById,ne=E.nonGroupedRowsById,ge=ne===void 0?K:ne,we=E.autoResetSelectedRows,Ee=we===void 0||we,We=E.state.selectedRowIds,Be=E.selectSubRows,ze=Be===void 0||Be,Pe=E.dispatch,je=E.page,Xe=E.getSubRows;y(Q,["useFilters","useGroupBy","useSortBy","useExpanded","usePagination"],"useRowSelect");var ot=r.useMemo(function(){var Et=[];return F.forEach(function(un){var Pt=ze?function ln(tn,Dn,vt){if(Dn[tn.id])return!0;var Qt=vt(tn);if(Qt&&Qt.length){var cr=!0,So=!1;return Qt.forEach(function(St){So&&!cr||(ln(St,Dn,vt)?So=!0:cr=!1)}),!!cr||!!So&&null}return!1}(un,We,Xe):!!We[un.id];un.isSelected=!!Pt,un.isSomeSelected=Pt===null,Pt&&Et.push(un)}),Et},[F,ze,We,Xe]),mt=!!(Object.keys(ge).length&&Object.keys(We).length),Bt=mt;mt&&Object.keys(ge).some(function(Et){return!We[Et]})&&(mt=!1),mt||je&&je.length&&je.some(function(Et){var un=Et.id;return!We[un]})&&(Bt=!1);var ht=S(Ee);A(function(){ht()&&Pe({type:u.resetSelectedRows})},[Pe,D]);var He=r.useCallback(function(Et){return Pe({type:u.toggleAllRowsSelected,value:Et})},[Pe]),Ot=r.useCallback(function(Et){return Pe({type:u.toggleAllPageRowsSelected,value:Et})},[Pe]),ct=r.useCallback(function(Et,un){return Pe({type:u.toggleRowSelected,id:Et,value:un})},[Pe]),kt=S(E),Xt=g(U().getToggleAllRowsSelectedProps,{instance:kt()}),wt=g(U().getToggleAllPageRowsSelectedProps,{instance:kt()});Object.assign(E,{selectedFlatRows:ot,isAllRowsSelected:mt,isAllPageRowsSelected:Bt,toggleRowSelected:ct,toggleAllRowsSelected:He,getToggleAllRowsSelectedProps:Xt,getToggleAllPageRowsSelectedProps:wt,toggleAllPageRowsSelected:Ot})}function j0(E,D){var F=D.instance;E.toggleRowSelected=function(U){return F.toggleRowSelected(E.id,U)},E.getToggleRowSelectedProps=g(F.getHooks().getToggleRowSelectedProps,{instance:F,row:E})}var Dl=function(E){return{}},ns=function(E){return{}};u.setRowState="setRowState",u.setCellState="setCellState",u.resetRowState="resetRowState";var Qd=function(E){E.stateReducers.push(rs),E.useInstance.push(U0),E.prepareRow.push(W0)};function rs(E,D,F,U){var Q=U.initialRowStateAccessor,K=Q===void 0?Dl:Q,ne=U.initialCellStateAccessor,ge=ne===void 0?ns:ne,we=U.rowsById;if(D.type===u.init)return a({rowState:{}},E);if(D.type===u.resetRowState)return a({},E,{rowState:U.initialState.rowState||{}});if(D.type===u.setRowState){var Ee,We=D.rowId,Be=D.value,ze=E.rowState[We]!==void 0?E.rowState[We]:K(we[We]);return a({},E,{rowState:a({},E.rowState,(Ee={},Ee[We]=w(Be,ze),Ee))})}if(D.type===u.setCellState){var Pe,je,Xe,ot,mt,Bt=D.rowId,ht=D.columnId,He=D.value,Ot=E.rowState[Bt]!==void 0?E.rowState[Bt]:K(we[Bt]),ct=(Ot==null||(Pe=Ot.cellState)==null?void 0:Pe[ht])!==void 0?Ot.cellState[ht]:ge((je=we[Bt])==null||(Xe=je.cells)==null?void 0:Xe.find(function(kt){return kt.column.id===ht}));return a({},E,{rowState:a({},E.rowState,(mt={},mt[Bt]=a({},Ot,{cellState:a({},Ot.cellState||{},(ot={},ot[ht]=w(He,ct),ot))}),mt))})}}function U0(E){var D=E.autoResetRowState,F=D===void 0||D,U=E.data,Q=E.dispatch,K=r.useCallback(function(we,Ee){return Q({type:u.setRowState,rowId:we,value:Ee})},[Q]),ne=r.useCallback(function(we,Ee,We){return Q({type:u.setCellState,rowId:we,columnId:Ee,value:We})},[Q]),ge=S(F);A(function(){ge()&&Q({type:u.resetRowState})},[U]),Object.assign(E,{setRowState:K,setCellState:ne})}function W0(E,D){var F=D.instance,U=F.initialRowStateAccessor,Q=U===void 0?Dl:U,K=F.initialCellStateAccessor,ne=K===void 0?ns:K,ge=F.state.rowState;E&&(E.state=ge[E.id]!==void 0?ge[E.id]:Q(E),E.setState=function(we){return F.setRowState(E.id,we)},E.cells.forEach(function(we){E.state.cellState||(E.state.cellState={}),we.state=E.state.cellState[we.column.id]!==void 0?E.state.cellState[we.column.id]:ne(we),we.setState=function(Ee){return F.setCellState(E.id,we.column.id,Ee)}}))}Qd.pluginName="useRowState",u.resetColumnOrder="resetColumnOrder",u.setColumnOrder="setColumnOrder";var wm=function(E){E.stateReducers.push(H0),E.visibleColumnsDeps.push(function(D,F){var U=F.instance;return[].concat(D,[U.state.columnOrder])}),E.visibleColumns.push(V0),E.useInstance.push(G0)};function H0(E,D,F,U){return D.type===u.init?a({columnOrder:[]},E):D.type===u.resetColumnOrder?a({},E,{columnOrder:U.initialState.columnOrder||[]}):D.type===u.setColumnOrder?a({},E,{columnOrder:w(D.columnOrder,E.columnOrder)}):void 0}function V0(E,D){var F=D.instance.state.columnOrder;if(!F||!F.length)return E;for(var U=[].concat(F),Q=[].concat(E),K=[],ne=function(){var ge=U.shift(),we=Q.findIndex(function(Ee){return Ee.id===ge});we>-1&&K.push(Q.splice(we,1)[0])};Q.length&&U.length;)ne();return[].concat(K,Q)}function G0(E){var D=E.dispatch;E.setColumnOrder=r.useCallback(function(F){return D({type:u.setColumnOrder,columnOrder:F})},[D])}wm.pluginName="useColumnOrder",f.canResize=!0,u.columnStartResizing="columnStartResizing",u.columnResizing="columnResizing",u.columnDoneResizing="columnDoneResizing",u.resetResize="resetResize";var Zd=function(E){E.getResizerProps=[os],E.getHeaderProps.push({style:{position:"relative"}}),E.stateReducers.push(q0),E.useInstance.push(Y0),E.useInstanceBeforeDimensions.push(Sm)},os=function(E,D){var F=D.instance,U=D.header,Q=F.dispatch,K=function(ne,ge){var we=!1;if(ne.type==="touchstart"){if(ne.touches&&ne.touches.length>1)return;we=!0}var Ee,We,Be=function(ht){var He=[];return function Ot(ct){ct.columns&&ct.columns.length&&ct.columns.map(Ot),He.push(ct)}(ht),He}(ge).map(function(ht){return[ht.id,ht.totalWidth]}),ze=we?Math.round(ne.touches[0].clientX):ne.clientX,Pe=function(){window.cancelAnimationFrame(Ee),Ee=null,Q({type:u.columnDoneResizing})},je=function(){window.cancelAnimationFrame(Ee),Ee=null,Q({type:u.columnResizing,clientX:We})},Xe=function(ht){We=ht,Ee||(Ee=window.requestAnimationFrame(je))},ot={mouse:{moveEvent:"mousemove",moveHandler:function(ht){return Xe(ht.clientX)},upEvent:"mouseup",upHandler:function(ht){document.removeEventListener("mousemove",ot.mouse.moveHandler),document.removeEventListener("mouseup",ot.mouse.upHandler),Pe()}},touch:{moveEvent:"touchmove",moveHandler:function(ht){return ht.cancelable&&(ht.preventDefault(),ht.stopPropagation()),Xe(ht.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(ht){document.removeEventListener(ot.touch.moveEvent,ot.touch.moveHandler),document.removeEventListener(ot.touch.upEvent,ot.touch.moveHandler),Pe()}}},mt=we?ot.touch:ot.mouse,Bt=!!function(){if(typeof I=="boolean")return I;var ht=!1;try{var He={get passive(){return ht=!0,!1}};window.addEventListener("test",null,He),window.removeEventListener("test",null,He)}catch{ht=!1}return I=ht}()&&{passive:!1};document.addEventListener(mt.moveEvent,mt.moveHandler,Bt),document.addEventListener(mt.upEvent,mt.upHandler,Bt),Q({type:u.columnStartResizing,columnId:ge.id,columnWidth:ge.totalWidth,headerIdWidths:Be,clientX:ze})};return[E,{onMouseDown:function(ne){return ne.persist()||K(ne,U)},onTouchStart:function(ne){return ne.persist()||K(ne,U)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function q0(E,D){if(D.type===u.init)return a({columnResizing:{columnWidths:{}}},E);if(D.type===u.resetResize)return a({},E,{columnResizing:{columnWidths:{}}});if(D.type===u.columnStartResizing){var F=D.clientX,U=D.columnId,Q=D.columnWidth,K=D.headerIdWidths;return a({},E,{columnResizing:a({},E.columnResizing,{startX:F,headerIdWidths:K,columnWidth:Q,isResizingColumn:U})})}if(D.type===u.columnResizing){var ne=D.clientX,ge=E.columnResizing,we=ge.startX,Ee=ge.columnWidth,We=ge.headerIdWidths,Be=(ne-we)/Ee,ze={};return(We===void 0?[]:We).forEach(function(Pe){var je=Pe[0],Xe=Pe[1];ze[je]=Math.max(Xe+Xe*Be,0)}),a({},E,{columnResizing:a({},E.columnResizing,{columnWidths:a({},E.columnResizing.columnWidths,{},ze)})})}return D.type===u.columnDoneResizing?a({},E,{columnResizing:a({},E.columnResizing,{startX:null,isResizingColumn:null})}):void 0}Zd.pluginName="useResizeColumns";var Sm=function(E){var D=E.flatHeaders,F=E.disableResizing,U=E.getHooks,Q=E.state.columnResizing,K=S(E);D.forEach(function(ne){var ge=B(ne.disableResizing!==!0&&void 0,F!==!0&&void 0,!0);ne.canResize=ge,ne.width=Q.columnWidths[ne.id]||ne.originalWidth||ne.width,ne.isResizing=Q.isResizingColumn===ne.id,ge&&(ne.getResizerProps=g(U().getResizerProps,{instance:K(),header:ne}))})};function Y0(E){var D=E.plugins,F=E.dispatch,U=E.autoResetResize,Q=U===void 0||U,K=E.columns;y(D,["useAbsoluteLayout"],"useResizeColumns");var ne=S(Q);A(function(){ne()&&F({type:u.resetResize})},[K]);var ge=r.useCallback(function(){return F({type:u.resetResize})},[F]);Object.assign(E,{resetResizing:ge})}var Ml={position:"absolute",top:0},ep=function(E){E.getTableBodyProps.push(Gc),E.getRowProps.push(Gc),E.getHeaderGroupProps.push(Gc),E.getFooterGroupProps.push(Gc),E.getHeaderProps.push(function(D,F){var U=F.column;return[D,{style:a({},Ml,{left:U.totalLeft+"px",width:U.totalWidth+"px"})}]}),E.getCellProps.push(function(D,F){var U=F.cell;return[D,{style:a({},Ml,{left:U.column.totalLeft+"px",width:U.column.totalWidth+"px"})}]}),E.getFooterProps.push(function(D,F){var U=F.column;return[D,{style:a({},Ml,{left:U.totalLeft+"px",width:U.totalWidth+"px"})}]})};ep.pluginName="useAbsoluteLayout";var Gc=function(E,D){return[E,{style:{position:"relative",width:D.instance.totalColumnsWidth+"px"}}]},tp={display:"inline-block",boxSizing:"border-box"},qc=function(E,D){return[E,{style:{display:"flex",width:D.instance.totalColumnsWidth+"px"}}]},xm=function(E){E.getRowProps.push(qc),E.getHeaderGroupProps.push(qc),E.getFooterGroupProps.push(qc),E.getHeaderProps.push(function(D,F){var U=F.column;return[D,{style:a({},tp,{width:U.totalWidth+"px"})}]}),E.getCellProps.push(function(D,F){var U=F.cell;return[D,{style:a({},tp,{width:U.column.totalWidth+"px"})}]}),E.getFooterProps.push(function(D,F){var U=F.column;return[D,{style:a({},tp,{width:U.totalWidth+"px"})}]})};function Bl(E){E.getTableProps.push(K0),E.getRowProps.push(Fl),E.getHeaderGroupProps.push(Fl),E.getFooterGroupProps.push(Fl),E.getHeaderProps.push(X0),E.getCellProps.push(J0),E.getFooterProps.push(G)}xm.pluginName="useBlockLayout",Bl.pluginName="useFlexLayout";var K0=function(E,D){return[E,{style:{minWidth:D.instance.totalColumnsMinWidth+"px"}}]},Fl=function(E,D){return[E,{style:{display:"flex",flex:"1 0 auto",minWidth:D.instance.totalColumnsMinWidth+"px"}}]},X0=function(E,D){var F=D.column;return[E,{style:{boxSizing:"border-box",flex:F.totalFlexWidth?F.totalFlexWidth+" 0 auto":void 0,minWidth:F.totalMinWidth+"px",width:F.totalWidth+"px"}}]},J0=function(E,D){var F=D.cell;return[E,{style:{boxSizing:"border-box",flex:F.column.totalFlexWidth+" 0 auto",minWidth:F.column.totalMinWidth+"px",width:F.column.totalWidth+"px"}}]},G=function(E,D){var F=D.column;return[E,{style:{boxSizing:"border-box",flex:F.totalFlexWidth?F.totalFlexWidth+" 0 auto":void 0,minWidth:F.totalMinWidth+"px",width:F.totalWidth+"px"}}]};function ce(E){E.stateReducers.push(eo),E.getTableProps.push(_e),E.getHeaderProps.push(dt),E.getRowProps.push(Er)}u.columnStartResizing="columnStartResizing",u.columnResizing="columnResizing",u.columnDoneResizing="columnDoneResizing",u.resetResize="resetResize",ce.pluginName="useGridLayout";var _e=function(E,D){var F=D.instance;return[E,{style:{display:"grid",gridTemplateColumns:F.visibleColumns.map(function(U){var Q;return F.state.gridLayout.columnWidths[U.id]?F.state.gridLayout.columnWidths[U.id]+"px":(Q=F.state.columnResizing)!=null&&Q.isResizingColumn?F.state.gridLayout.startWidths[U.id]+"px":typeof U.width=="number"?U.width+"px":U.width}).join(" ")}}]},dt=function(E,D){var F=D.column;return[E,{id:"header-cell-"+F.id,style:{position:"sticky",gridColumn:"span "+F.totalVisibleHeaderCount}}]},Er=function(E,D){var F=D.row;return F.isExpanded?[E,{style:{gridColumn:"1 / "+(F.cells.length+1)}}]:[E,{}]};function eo(E,D,F,U){if(D.type===u.init)return a({gridLayout:{columnWidths:{}}},E);if(D.type===u.resetResize)return a({},E,{gridLayout:{columnWidths:{}}});if(D.type===u.columnStartResizing){var Q=D.columnId,K=D.headerIdWidths,ne=so(Q);if(ne!==void 0){var ge=U.visibleColumns.reduce(function(He,Ot){var ct;return a({},He,((ct={})[Ot.id]=so(Ot.id),ct))},{}),we=U.visibleColumns.reduce(function(He,Ot){var ct;return a({},He,((ct={})[Ot.id]=Ot.minWidth,ct))},{}),Ee=U.visibleColumns.reduce(function(He,Ot){var ct;return a({},He,((ct={})[Ot.id]=Ot.maxWidth,ct))},{}),We=K.map(function(He){var Ot=He[0];return[Ot,so(Ot)]});return a({},E,{gridLayout:a({},E.gridLayout,{startWidths:ge,minWidths:we,maxWidths:Ee,headerIdGridWidths:We,columnWidth:ne})})}return E}if(D.type===u.columnResizing){var Be=D.clientX,ze=E.columnResizing.startX,Pe=E.gridLayout,je=Pe.columnWidth,Xe=Pe.minWidths,ot=Pe.maxWidths,mt=Pe.headerIdGridWidths,Bt=(Be-ze)/je,ht={};return(mt===void 0?[]:mt).forEach(function(He){var Ot=He[0],ct=He[1];ht[Ot]=Math.min(Math.max(Xe[Ot],ct+ct*Bt),ot[Ot])}),a({},E,{gridLayout:a({},E.gridLayout,{columnWidths:a({},E.gridLayout.columnWidths,{},ht)})})}return D.type===u.columnDoneResizing?a({},E,{gridLayout:a({},E.gridLayout,{startWidths:{},minWidths:{},maxWidths:{}})}):void 0}function so(E){var D,F=(D=document.getElementById("header-cell-"+E))==null?void 0:D.offsetWidth;if(F!==void 0)return F}n._UNSTABLE_usePivotColumns=Ll,n.actions=u,n.defaultColumn=f,n.defaultGroupByFn=Ke,n.defaultOrderByFn=hm,n.defaultRenderer=d,n.emptyRenderer=p,n.ensurePluginOrder=y,n.flexRender=R,n.functionalUpdate=w,n.loopHooks=b,n.makePropGetter=g,n.makeRenderer=T,n.reduceHooks=v,n.safeUseLayoutEffect=k,n.useAbsoluteLayout=ep,n.useAsyncDebounce=function(E,D){D===void 0&&(D=0);var F=r.useRef({}),U=S(E),Q=S(D);return r.useCallback(function(){var K=i(regeneratorRuntime.mark(function ne(){var ge,we,Ee,We=arguments;return regeneratorRuntime.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:for(ge=We.length,we=new Array(ge),Ee=0;Ee<ge;Ee++)we[Ee]=We[Ee];return F.current.promise||(F.current.promise=new Promise(function(ze,Pe){F.current.resolve=ze,F.current.reject=Pe})),F.current.timeout&&clearTimeout(F.current.timeout),F.current.timeout=setTimeout(i(regeneratorRuntime.mark(function ze(){return regeneratorRuntime.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return delete F.current.timeout,Pe.prev=1,Pe.t0=F.current,Pe.next=5,U().apply(void 0,we);case 5:Pe.t1=Pe.sent,Pe.t0.resolve.call(Pe.t0,Pe.t1),Pe.next=12;break;case 9:Pe.prev=9,Pe.t2=Pe.catch(1),F.current.reject(Pe.t2);case 12:return Pe.prev=12,delete F.current.promise,Pe.finish(12);case 15:case"end":return Pe.stop()}},ze,null,[[1,9,12,15]])})),Q()),Be.abrupt("return",F.current.promise);case 5:case"end":return Be.stop()}},ne)}));return function(){return K.apply(this,arguments)}}(),[U,Q])},n.useBlockLayout=xm,n.useColumnOrder=wm,n.useExpanded=Z,n.useFilters=Oo,n.useFlexLayout=Bl,n.useGetLatest=S,n.useGlobalFilter=Zr,n.useGridLayout=ce,n.useGroupBy=or,n.useMountedLayoutEffect=A,n.usePagination=mm,n.useResizeColumns=Zd,n.useRowSelect=ym,n.useRowState=Qd,n.useSortBy=jn,n.useTable=function(E){for(var D=arguments.length,F=new Array(D>1?D-1:0),U=1;U<D;U++)F[U-1]=arguments[U];E=Oe(E),F=[me].concat(F);var Q=r.useRef({}),K=S(Q.current);Object.assign(K(),a({},E,{plugins:F,hooks:Ne()})),F.filter(Boolean).forEach(function(St){St(K().hooks)});var ne=S(K().hooks);K().getHooks=ne,delete K().hooks,Object.assign(K(),v(ne().useOptions,Oe(E)));var ge=K(),we=ge.data,Ee=ge.columns,We=ge.initialState,Be=ge.defaultColumn,ze=ge.getSubRows,Pe=ge.getRowId,je=ge.stateReducer,Xe=ge.useControlledState,ot=S(je),mt=r.useCallback(function(St,Xn){if(!Xn.type)throw console.info({action:Xn}),new Error("Unknown Action 👆");return[].concat(ne().stateReducers,Array.isArray(ot())?ot():[ot()]).reduce(function(Tr,xo){return xo(Tr,Xn,St,K())||Tr},St)},[ne,ot,K]),Bt=r.useReducer(mt,void 0,function(){return mt(We,{type:u.init})}),ht=Bt[0],He=Bt[1],Ot=v([].concat(ne().useControlledState,[Xe]),ht,{instance:K()});Object.assign(K(),{state:Ot,dispatch:He});var ct=r.useMemo(function(){return P(v(ne().columns,Ee,{instance:K()}))},[ne,K,Ee].concat(v(ne().columnsDeps,[],{instance:K()})));K().columns=ct;var kt=r.useMemo(function(){return v(ne().allColumns,_(ct),{instance:K()}).map(O)},[ct,ne,K].concat(v(ne().allColumnsDeps,[],{instance:K()})));K().allColumns=kt;var Xt=r.useMemo(function(){for(var St=[],Xn=[],Tr={},xo=[].concat(kt);xo.length;){var Ur=xo.shift();re({data:we,rows:St,flatRows:Xn,rowsById:Tr,column:Ur,getRowId:Pe,getSubRows:ze,accessValueHooks:ne().accessValue,getInstance:K})}return[St,Xn,Tr]},[kt,we,Pe,ze,ne,K]),wt=Xt[0],Et=Xt[1],un=Xt[2];Object.assign(K(),{rows:wt,initialRows:[].concat(wt),flatRows:Et,rowsById:un}),b(ne().useInstanceAfterData,K());var Pt=r.useMemo(function(){return v(ne().visibleColumns,kt,{instance:K()}).map(function(St){return $(St,Be)})},[ne,kt,K,Be].concat(v(ne().visibleColumnsDeps,[],{instance:K()})));kt=r.useMemo(function(){var St=[].concat(Pt);return kt.forEach(function(Xn){St.find(function(Tr){return Tr.id===Xn.id})||St.push(Xn)}),St},[kt,Pt]),K().allColumns=kt;var ln=r.useMemo(function(){return v(ne().headerGroups,z(Pt,Be),K())},[ne,Pt,Be,K].concat(v(ne().headerGroupsDeps,[],{instance:K()})));K().headerGroups=ln;var tn=r.useMemo(function(){return ln.length?ln[0].headers:[]},[ln]);K().headers=tn,K().flatHeaders=ln.reduce(function(St,Xn){return[].concat(St,Xn.headers)},[]),b(ne().useInstanceBeforeDimensions,K());var Dn=Pt.filter(function(St){return St.isVisible}).map(function(St){return St.id}).sort().join("_");Pt=r.useMemo(function(){return Pt.filter(function(St){return St.isVisible})},[Pt,Dn]),K().visibleColumns=Pt;var vt=Qe(tn),Qt=vt[0],cr=vt[1],So=vt[2];return K().totalColumnsMinWidth=Qt,K().totalColumnsWidth=cr,K().totalColumnsMaxWidth=So,b(ne().useInstance,K()),[].concat(K().flatHeaders,K().allColumns).forEach(function(St){St.render=T(K(),St),St.getHeaderProps=g(ne().getHeaderProps,{instance:K(),column:St}),St.getFooterProps=g(ne().getFooterProps,{instance:K(),column:St})}),K().headerGroups=r.useMemo(function(){return ln.filter(function(St,Xn){return St.headers=St.headers.filter(function(Tr){return Tr.headers?function xo(Ur){return Ur.filter(function(Bs){return Bs.headers?xo(Bs.headers):Bs.isVisible}).length}(Tr.headers):Tr.isVisible}),!!St.headers.length&&(St.getHeaderGroupProps=g(ne().getHeaderGroupProps,{instance:K(),headerGroup:St,index:Xn}),St.getFooterGroupProps=g(ne().getFooterGroupProps,{instance:K(),headerGroup:St,index:Xn}),!0)})},[ln,K,ne]),K().footerGroups=[].concat(K().headerGroups).reverse(),K().prepareRow=r.useCallback(function(St){St.getRowProps=g(ne().getRowProps,{instance:K(),row:St}),St.allCells=kt.map(function(Xn){var Tr=St.values[Xn.id],xo={column:Xn,row:St,value:Tr};return xo.getCellProps=g(ne().getCellProps,{instance:K(),cell:xo}),xo.render=T(K(),Xn,{row:St,cell:xo,value:Tr}),xo}),St.cells=Pt.map(function(Xn){return St.allCells.find(function(Tr){return Tr.column.id===Xn.id})}),b(ne().prepareRow,St,{instance:K()})},[ne,K,kt,Pt]),K().getTableProps=g(ne().getTableProps,{instance:K()}),K().getTableBodyProps=g(ne().getTableBodyProps,{instance:K()}),b(ne().useFinalInstance,K()),K()},Object.defineProperty(n,"__esModule",{value:!0})})})(hx,hx.exports);var lce=hx.exports;qL.exports=lce;var Jt=qL.exports;const cce=()=>{throw new Error("setAnnouncement called outside AnnouncerContext")},I2=Ce.createContext({setAnnouncement:cce}),uce=C(M6,{shouldForwardProp:e=>e!=="isFlex"&&e!=="isSortable"&&e!=="isFlexGrow"})(({theme:e,isFlex:t,isSortable:n,isFlexGrow:r})=>({position:"relative",fontWeight:e.typography.fontWeightRegular,...t&&{justifyContent:"stretch",alignItems:"center",display:"flex",flexShrink:0,"& > *":{flexGrow:1}},...n&&{padding:0,"&:hover, &:focus":{backgroundColor:e.palette.table.headerHover,"& svg":{color:"inherit"}}},...r&&{flexGrow:1}})),dce=C("button",{shouldForwardProp:e=>e!=="isSorted"})(({theme:e,isSorted:t})=>({...Hi(e),all:"unset",whiteSpace:"nowrap",width:"100%",position:"relative",zIndex:1,":hover, :focus, &:focus-visible, &:active":{".hover-only":{display:"inline-block"}},display:"flex",boxSizing:"inherit",cursor:"pointer",...t&&{fontWeight:e.typography.fontWeightBold}})),pce=C("span")(({theme:e})=>({display:"flex",flexDirection:"column",flexShrink:1,minWidth:0,"::after":{fontWeight:"bold",display:"inline-block",height:0,content:"attr(data-text)",visibility:"hidden",overflow:"hidden"}})),fce=C("span")(({theme:e})=>({padding:e.spacing(2),visibility:"hidden",display:"flex",alignItems:"center",width:"100%"})),hce=C("span")(({theme:e})=>({padding:e.spacing(2),position:"absolute",display:"flex",alignItems:"center",width:"100%",height:"100%",".hover-only":{display:"none"},"& > span":{minWidth:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflowX:"hidden",overflowY:"visible"}}));var YL={exports:{}};/*!
255
+ Copyright (c) 2018 Jed Watson.
256
+ Licensed under the MIT License (MIT), see
257
+ http://jedwatson.github.io/classnames
258
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var s=n.apply(null,i);s&&r.push(s)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var c in i)t.call(i,c)&&i[c]&&r.push(c)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(YL);var mce=YL.exports;const $i=Yr(mce),qb=e=>({marginLeft:e.spacing(.25),marginRight:e.spacing(-.5),fontSize:e.fontSizes.mainHeader,verticalAlign:"middle"}),LP=({isSorted:e,isDesc:t=!1,className:n})=>l(q,{condition:!!e,show:l(q,{condition:!!t,show:l(dx,{sx:r=>({...qb(r)}),className:n,fontSize:"inherit"}),elseShow:l(Fle,{sx:r=>({...qb(r)}),className:n,fontSize:"inherit"})}),elseShow:l(Qle,{sx:r=>({...qb(r)}),className:$i(n,"hover-only"),fontSize:"inherit"})}),gce=({children:e,isSortable:t=!0,isSorted:n=!1,isDescending:r,width:o,minWidth:i,maxWidth:a,align:s,ariaTitle:c,isFlex:u,isFlexGrow:d,onClick:p=()=>{}})=>{const{setAnnouncement:f}=m.useContext(I2),[h,g]=m.useState(""),v=m.useRef(null),b=n?r?"descending":"ascending":void 0,y=S=>{p(S),f(`Sorted${c?` by ${c} `:""}, ${r?"ascending":"descending"}`)},w=m.useMemo(()=>{switch(s){case"left":return{justifyContent:"flex-start",textAlign:"left"};case"center":return{justifyContent:"center",textAlign:"center"};case"right":return{justifyContent:"flex-end",textAlign:"right"};default:return}},[s]);return m.useEffect(()=>{(()=>{var A,T;const k=c&&v.current&&((A=v==null?void 0:v.current)==null?void 0:A.offsetWidth)<((T=v==null?void 0:v.current)==null?void 0:T.scrollWidth)?`${e}`:"";k!==h&&g(k)})()},[g,c]),l(uce,{component:"th","aria-sort":b,style:{width:o,minWidth:i,maxWidth:a},isFlex:u,isFlexGrow:d,isSortable:t,children:l(q,{condition:t,show:l(xt,{title:h,arrow:!0,children:x(dce,{isSorted:n,type:"button",onClick:y,children:[x(fce,{style:w,"aria-hidden":!0,children:[l(pce,{tabIndex:-1,"data-text":e,children:e}),l(LP,{isSorted:n,isDesc:r})]}),x(hce,{style:w,children:[l("span",{ref:v,tabIndex:-1,children:l("span",{children:e})}),l(LP,{isSorted:n,isDesc:r,className:"sort-arrow"})]})]})}),elseShow:l("div",{style:w,children:e})})})},Vi=({headerGroups:e,className:t,flex:n})=>l(moe,{className:t,children:e.map(r=>l(ui,{...r.getHeaderGroupProps(),children:r.headers.map(o=>{const i=o.render("Header");return l(gce,{...o.getHeaderProps(o.canSort?o.getSortByToggleProps():void 0),ariaTitle:typeof i=="string"?i:void 0,isSortable:!!o.canSort,isSorted:o.isSorted,isDescending:o.isSortedDesc,maxWidth:o.maxWidth,minWidth:o.minWidth,width:o.width,isFlex:n,isFlexGrow:!!o.minWidth,align:o.align,children:i})})}))}),Gi=({rowHeight:e="auto",...t})=>l(Yre,{sx:{position:"relative","& tbody tr":{height:n=>({auto:"auto",standard:n.shape.tableRowHeight,compact:n.shape.tableRowHeightCompact,dense:n.shape.tableRowHeightDense})[e]??e}},...t}),vce=C(M6)(({theme:e})=>({padding:0})),pi=m.forwardRef(({className:e,...t},n)=>l(vce,{...t,ref:n})),ar=({children:e})=>l($e,{sx:{border:t=>`2px dashed ${t.palette.divider}`,p:8,textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",mt:2,width:"100%"},children:e}),yce=(e,t=40,n=5,r)=>{const o=r||window,[i,a]=m.useState(Math.floor((o instanceof HTMLElement?o.scrollTop:o.pageYOffset)/e));return m.useEffect(()=>{const s=()=>{requestAnimationFrame(()=>{a(Math.floor((o instanceof HTMLElement?o.scrollTop:o.pageYOffset)/(e*n))*n)})};return s(),o.addEventListener("scroll",s,{passive:!0}),()=>{o.removeEventListener("scroll",s)}},[e,n,o]),[i-t,i+t]},A1=({rowHeight:e,headerGroups:t,rows:n,prepareRow:r,parentRef:o})=>{const i=yn(),a=m.useMemo(()=>e||i.shape.tableRowHeight,[e,i.shape.tableRowHeight]),[s,c]=yce(a,40,5,o==null?void 0:o.current),u=m.useMemo(()=>a*n.length+i.shape.tableRowHeightCompact,[a,n.length,i.shape.tableRowHeightCompact]);return x(Gi,{role:"table",rowHeight:a,style:{height:u},children:[l(Vi,{headerGroups:t,flex:!0}),l(Wi,{role:"rowgroup",sx:{"& tr":{position:"absolute",width:"100%","&:hover":{".show-row-hover":{opacity:1}}},"& tr td":{alignItems:"center",display:"flex",flexShrink:0,"& > *":{flexGrow:1}}},children:n.map((d,p)=>{const f=p*a+i.shape.tableRowHeightCompact;return p<s||p>c?null:(r(d),m.createElement(ui,{hover:!0,...d.getRowProps({style:{display:"flex",top:f}}),key:d.id},d.cells.map(g=>l(pi,{...g.getCellProps({style:{flex:g.column.minWidth?"1 0 auto":void 0}}),children:g.render("Cell")}))))})})]})},bce=e=>fetch(e).then(bn("Feature toggle")).then(t=>t.json()),O2=()=>{const{data:e,error:t,mutate:n}=Pn(Rt("api/admin/features"),bce,{refreshInterval:15e3});return{features:e==null?void 0:e.features,loading:!t&&!e,refetchFeatures:n,error:t}},KL=m.createContext(""),Ls=KL.Provider,Ol=()=>({searchQuery:m.useContext(KL)}),DP=e=>{let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(d!==t){const p=t;t=u?d:Object.assign({},t,d),n.forEach(f=>f(t,p))}},o=()=>t,s={setState:r,getState:o,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return t=e(r,o,s),s},wce=e=>e?DP(e):DP;var XL={exports:{}},JL={};/**
259
+ * @license React
260
+ * use-sync-external-store-shim/with-selector.production.min.js
261
+ *
262
+ * Copyright (c) Facebook, Inc. and its affiliates.
263
+ *
264
+ * This source code is licensed under the MIT license found in the
265
+ * LICENSE file in the root directory of this source tree.
266
+ */var R1=m,Sce=sL;function xce(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Cce=typeof Object.is=="function"?Object.is:xce,Ece=Sce.useSyncExternalStore,Tce=R1.useRef,kce=R1.useEffect,Ace=R1.useMemo,Rce=R1.useDebugValue;JL.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=Tce(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Ace(function(){function c(h){if(!u){if(u=!0,d=h,h=r(h),o!==void 0&&a.hasValue){var g=a.value;if(o(g,h))return p=g}return p=h}if(g=p,Cce(d,h))return g;var v=r(h);return o!==void 0&&o(g,v)?g:(d=h,p=v)}var u=!1,d,p,f=n===void 0?null:n;return[function(){return c(t())},f===null?void 0:function(){return c(f())}]},[t,n,r,o]);var s=Ece(e,i[0],i[1]);return kce(function(){a.hasValue=!0,a.value=s},[s]),Rce(s),s};XL.exports=JL;var _ce=XL.exports;const Pce=Yr(_ce),{useSyncExternalStoreWithSelector:Ice}=Pce;function Oce(e,t=e.getState,n){const r=Ice(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return m.useDebugValue(r),r}const MP=e=>{const t=typeof e=="function"?wce(e):e,n=(r,o)=>Oce(t,r,o);return Object.assign(n,t),n},$ce=e=>e?MP(e):MP;var Nce=$ce;const Lce=e=>{const t=Nce(()=>e),n=(r,o)=>{t.setState(i=>{return{[r]:(a=i[r],s=o,typeof s=="function"?s(a):s)};var a,s})};return{useGlobalState:r=>{const o=m.useCallback(i=>i[r],[r]);return[t(o),m.useCallback(i=>n(r,i),[r])]},getGlobalState:r=>t.getState()[r],setGlobalState:n,subscribe:(r,o)=>{t.subscribe((i,a)=>{i[r]!==a[r]&&o(i[r])})}}},$2=(e,t)=>{const n=Lce({[e]:rh(e)??t}),r=o=>{const i=n.getGlobalState(e),a=o instanceof Function?o(i):o;n.setGlobalState(e,a),td(e,a)};return()=>[n.useGlobalState(e)[0],r]},es=()=>{const[e,t]=Mce();return{locationSettings:e,setLocationSettings:t}},Dce=()=>({locale:navigator.language}),Mce=$2(`${ri}:useLocationSettings:v1`,Dce()),_1=(e,t)=>new Date(e).toLocaleString(t,{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}),n8e=(e,t)=>new Date(e).toLocaleString(t,{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}),rd=(e,t)=>new Date(e).toLocaleString(t,{day:"2-digit",month:"2-digit",year:"numeric"}),r8e=(e,t)=>new Date(e).toLocaleString(t,{hour:"2-digit",minute:"2-digit"});function El(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Bce(e,t){sr(2,arguments);var n=Or(e).getTime(),r=El(t);return new Date(n+r)}var Fce={};function Vh(){return Fce}function zce(e,t){sr(2,arguments);var n=Or(e),r=Or(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var QL=6e4,ZL=36e5,o8e=1e3;function jce(e){return sr(1,arguments),e instanceof Date||Ov(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function N2(e){if(sr(1,arguments),!jce(e)&&typeof e!="number")return!1;var t=Or(e);return!isNaN(Number(t))}function Uce(e,t){sr(2,arguments);var n=El(t);return Bce(e,-n)}var Wce=864e5;function Hce(e){sr(1,arguments);var t=Or(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/Wce)+1}function Lv(e){sr(1,arguments);var t=1,n=Or(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function e9(e){sr(1,arguments);var t=Or(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=Lv(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=Lv(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Vce(e){sr(1,arguments);var t=e9(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Lv(n);return r}var Gce=6048e5;function qce(e){sr(1,arguments);var t=Or(e),n=Lv(t).getTime()-Vce(t).getTime();return Math.round(n/Gce)+1}function Dv(e,t){var n,r,o,i,a,s,c,u;sr(1,arguments);var d=Vh(),p=El((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Or(e),h=f.getUTCDay(),g=(h<p?7:0)+h-p;return f.setUTCDate(f.getUTCDate()-g),f.setUTCHours(0,0,0,0),f}function t9(e,t){var n,r,o,i,a,s,c,u;sr(1,arguments);var d=Or(e),p=d.getUTCFullYear(),f=Vh(),h=El((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:f.firstWeekContainsDate)!==null&&r!==void 0?r:(c=f.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(p+1,0,h),g.setUTCHours(0,0,0,0);var v=Dv(g,t),b=new Date(0);b.setUTCFullYear(p,0,h),b.setUTCHours(0,0,0,0);var y=Dv(b,t);return d.getTime()>=v.getTime()?p+1:d.getTime()>=y.getTime()?p:p-1}function Yce(e,t){var n,r,o,i,a,s,c,u;sr(1,arguments);var d=Vh(),p=El((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=t9(e,t),h=new Date(0);h.setUTCFullYear(f,0,p),h.setUTCHours(0,0,0,0);var g=Dv(h,t);return g}var Kce=6048e5;function Xce(e,t){sr(1,arguments);var n=Or(e),r=Dv(n,t).getTime()-Yce(n,t).getTime();return Math.round(r/Kce)+1}function In(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Jce={y:function(t,n){var r=t.getUTCFullYear(),o=r>0?r:1-r;return In(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):In(r+1,2)},d:function(t,n){return In(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return In(t.getUTCHours()%12||12,n.length)},H:function(t,n){return In(t.getUTCHours(),n.length)},m:function(t,n){return In(t.getUTCMinutes(),n.length)},s:function(t,n){return In(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return In(i,n.length)}};const zs=Jce;var nu={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qce={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return zs.y(t,n)},Y:function(t,n,r,o){var i=t9(t,o),a=i>0?i:1-i;if(n==="YY"){var s=a%100;return In(s,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):In(a,n.length)},R:function(t,n){var r=e9(t);return In(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return In(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return In(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return In(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return zs.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return In(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=Xce(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):In(i,n.length)},I:function(t,n,r){var o=qce(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):In(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):zs.d(t,n)},D:function(t,n,r){var o=Hce(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):In(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return In(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return In(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return In(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=nu.noon:o===0?i=nu.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=nu.evening:o>=12?i=nu.afternoon:o>=4?i=nu.morning:i=nu.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return zs.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):zs.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):In(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):In(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):zs.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):zs.s(t,n)},S:function(t,n){return zs.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return FP(a);case"XXXX":case"XX":return ql(a);case"XXXXX":case"XXX":default:return ql(a,":")}},x:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"x":return FP(a);case"xxxx":case"xx":return ql(a);case"xxxxx":case"xxx":default:return ql(a,":")}},O:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+BP(a,":");case"OOOO":default:return"GMT"+ql(a,":")}},z:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+BP(a,":");case"zzzz":default:return"GMT"+ql(a,":")}},t:function(t,n,r,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return In(a,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,a=i.getTime();return In(a,n.length)}};function BP(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+In(i,2)}function FP(e,t){if(e%60===0){var n=e>0?"-":"+";return n+In(Math.abs(e)/60,2)}return ql(e,t)}function ql(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=In(Math.floor(o/60),2),a=In(o%60,2);return r+i+n+a}const Zce=Qce;var zP=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},n9=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},eue=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return zP(t,n);var a;switch(o){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",zP(o,n)).replace("{{time}}",n9(i,n))},tue={p:n9,P:eue};const nue=tue;var rue=["D","DD"],oue=["YY","YYYY"];function iue(e){return rue.indexOf(e)!==-1}function aue(e){return oue.indexOf(e)!==-1}function jP(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var sue={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},lue=function(t,n,r){var o,i=sue[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const cue=lue;function Yb(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var uue={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},due={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},pue={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fue={date:Yb({formats:uue,defaultWidth:"full"}),time:Yb({formats:due,defaultWidth:"full"}),dateTime:Yb({formats:pue,defaultWidth:"full"})};const hue=fue;var mue={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},gue=function(t,n,r,o){return mue[t]};const vue=gue;function Tp(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[c]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return o[u]}}var yue={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},bue={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},wue={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Sue={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},xue={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Cue={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Eue=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Tue={ordinalNumber:Eue,era:Tp({values:yue,defaultWidth:"wide"}),quarter:Tp({values:bue,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Tp({values:wue,defaultWidth:"wide"}),day:Tp({values:Sue,defaultWidth:"wide"}),dayPeriod:Tp({values:xue,defaultWidth:"wide",formattingValues:Cue,defaultFormattingWidth:"wide"})};const kue=Tue;function kp(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Rue(s,function(p){return p.test(a)}):Aue(s,function(p){return p.test(a)}),u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;var d=t.slice(a.length);return{value:u,rest:d}}}function Aue(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Rue(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function _ue(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(o.length);return{value:a,rest:s}}}var Pue=/^(\d+)(th|st|nd|rd)?/i,Iue=/\d+/i,Oue={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},$ue={any:[/^b/i,/^(a|c)/i]},Nue={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Lue={any:[/1/i,/2/i,/3/i,/4/i]},Due={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Mue={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Bue={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Fue={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},zue={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},jue={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Uue={ordinalNumber:_ue({matchPattern:Pue,parsePattern:Iue,valueCallback:function(t){return parseInt(t,10)}}),era:kp({matchPatterns:Oue,defaultMatchWidth:"wide",parsePatterns:$ue,defaultParseWidth:"any"}),quarter:kp({matchPatterns:Nue,defaultMatchWidth:"wide",parsePatterns:Lue,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:kp({matchPatterns:Due,defaultMatchWidth:"wide",parsePatterns:Mue,defaultParseWidth:"any"}),day:kp({matchPatterns:Bue,defaultMatchWidth:"wide",parsePatterns:Fue,defaultParseWidth:"any"}),dayPeriod:kp({matchPatterns:zue,defaultMatchWidth:"any",parsePatterns:jue,defaultParseWidth:"any"})};const Wue=Uue;var Hue={code:"en-US",formatDistance:cue,formatLong:hue,formatRelative:vue,localize:kue,match:Wue,options:{weekStartsOn:0,firstWeekContainsDate:1}};const r9=Hue;var Vue=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Gue=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,que=/^'([^]*?)'?$/,Yue=/''/g,Kue=/[a-zA-Z]/;function lh(e,t,n){var r,o,i,a,s,c,u,d,p,f,h,g,v,b,y,w,S,k;sr(2,arguments);var A=String(t),T=Vh(),R=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:T.locale)!==null&&r!==void 0?r:r9,P=El((i=(a=(s=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&a!==void 0?a:(p=T.locale)===null||p===void 0||(f=p.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=El((h=(g=(v=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(y=n.locale)===null||y===void 0||(w=y.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&v!==void 0?v:T.weekStartsOn)!==null&&g!==void 0?g:(S=T.locale)===null||S===void 0||(k=S.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&h!==void 0?h:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!R.localize)throw new RangeError("locale must contain localize property");if(!R.formatLong)throw new RangeError("locale must contain formatLong property");var O=Or(e);if(!N2(O))throw new RangeError("Invalid time value");var $=ih(O),z=Uce(O,$),L={firstWeekContainsDate:P,weekStartsOn:_,locale:R,_originalDate:O},B=A.match(Gue).map(function(Y){var H=Y[0];if(H==="p"||H==="P"){var ee=nue[H];return ee(Y,R.formatLong)}return Y}).join("").match(Vue).map(function(Y){if(Y==="''")return"'";var H=Y[0];if(H==="'")return Xue(Y);var ee=Zce[H];if(ee)return!(n!=null&&n.useAdditionalWeekYearTokens)&&aue(Y)&&jP(Y,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&iue(Y)&&jP(Y,t,String(e)),ee(z,Y,R.localize,L);if(H.match(Kue))throw new RangeError("Format string contains an unescaped latin alphabet character `"+H+"`");return Y}).join("");return B}function Xue(e){var t=e.match(que);return t?t[1].replace(Yue,"'"):e}function o9(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Jue(e){return o9({},e)}var UP=1e3*60,Mv=60*24,WP=Mv*30,HP=Mv*365;function Que(e,t,n){var r,o,i;sr(2,arguments);var a=Vh(),s=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:a.locale)!==null&&r!==void 0?r:r9;if(!s.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var c=zce(e,t);if(isNaN(c))throw new RangeError("Invalid time value");var u=o9(Jue(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:c}),d,p;c>0?(d=Or(t),p=Or(e)):(d=Or(e),p=Or(t));var f=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),h;if(f==="floor")h=Math.floor;else if(f==="ceil")h=Math.ceil;else if(f==="round")h=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var g=p.getTime()-d.getTime(),v=g/UP,b=ih(p)-ih(d),y=(g-b)/UP,w=n==null?void 0:n.unit,S;if(w?S=String(w):v<1?S="second":v<60?S="minute":v<Mv?S="hour":y<WP?S="day":y<HP?S="month":S="year",S==="second"){var k=h(g/1e3);return s.formatDistance("xSeconds",k,u)}else if(S==="minute"){var A=h(v);return s.formatDistance("xMinutes",A,u)}else if(S==="hour"){var T=h(v/60);return s.formatDistance("xHours",T,u)}else if(S==="day"){var R=h(y/Mv);return s.formatDistance("xDays",R,u)}else if(S==="month"){var P=h(y/WP);return P===12&&w!=="month"?s.formatDistance("xYears",1,u):s.formatDistance("xMonths",P,u)}else if(S==="year"){var _=h(y/HP);return s.formatDistance("xYears",_,u)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function Zue(e,t){return sr(1,arguments),Que(e,Date.now(),t)}function ede(e){return sr(1,arguments),Or(e).getTime()<Date.now()}function Gh(e,t){var n;sr(1,arguments);var r=El((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=ode(e),i;if(o.date){var a=ide(o.date,r);i=ade(a.restDateString,a.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),c=0,u;if(o.time&&(c=sde(o.time),isNaN(c)))return new Date(NaN);if(o.timezone){if(u=lde(o.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(s+c),p=new Date(0);return p.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),p.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),p}return new Date(s+c+u)}var ag={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},tde=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,nde=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,rde=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ode(e){var t={},n=e.split(ag.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ag.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ag.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var o=ag.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function ide(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function ade(e,t){if(t===null)return new Date(NaN);var n=e.match(tde);if(!n)return new Date(NaN);var r=!!n[4],o=Ap(n[1]),i=Ap(n[2])-1,a=Ap(n[3]),s=Ap(n[4]),c=Ap(n[5])-1;if(r)return fde(t,s,c)?cde(t,s,c):new Date(NaN);var u=new Date(0);return!dde(t,i,a)||!pde(t,o)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(o,a)),u)}function Ap(e){return e?parseInt(e):1}function sde(e){var t=e.match(nde);if(!t)return NaN;var n=Kb(t[1]),r=Kb(t[2]),o=Kb(t[3]);return hde(n,r,o)?n*ZL+r*QL+o*1e3:NaN}function Kb(e){return e&&parseFloat(e.replace(",","."))||0}function lde(e){if(e==="Z")return 0;var t=e.match(rde);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return mde(r,o)?n*(r*ZL+o*QL):NaN}function cde(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var ude=[31,null,31,30,31,30,31,31,30,31,30,31];function i9(e){return e%400===0||e%4===0&&e%100!==0}function dde(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(ude[t]||(i9(e)?29:28))}function pde(e,t){return t>=1&&t<=(i9(e)?366:365)}function fde(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function hde(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function mde(e,t){return t>=0&&t<=59}const gde=C($e,{shouldForwardProp:e=>e!=="lineClamp"})(({theme:e,lineClamp:t})=>({padding:e.spacing(1,2),display:"-webkit-box",overflow:t?"hidden":"auto",WebkitLineClamp:t||"none",WebkitBoxOrient:"vertical",wordBreak:"break-all",[e.breakpoints.down("sm")]:{wordBreak:"normal"}})),Hn=({value:e,children:t,lineClamp:n,sx:r,"data-testid":o})=>l(gde,{lineClamp:n,sx:r,children:l("span",{"data-loading":"true","data-testid":o,children:t??e})}),ch=({value:e})=>{const{locationSettings:t}=es(),n=e?e instanceof Date?rd(e,t.locale):rd(Gh(e),t.locale):void 0;return l(Hn,{lineClamp:1,children:n})};function L2(e,t){return new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t)}const vde=C("span")(({theme:e})=>({"&>mark":{backgroundColor:e.palette.highlight}})),Ya=({search:e,children:t,caseSensitive:n})=>{if(!t)return null;if(!e)return l(ve,{children:t});const r=L2(e,n?"g":"gi"),o=t.split(r),i=o.map((a,s)=>s<o.length-1?x(m.Fragment,{children:[a,l("mark",{children:e})]},s):a);return l(vde,{children:i})},a9=e=>({paddingTop:e.spacing(1.5),paddingBottom:e.spacing(1.5),paddingLeft:e.spacing(2),paddingRight:e.spacing(2),display:"flex",alignItems:"center",minHeight:"62px"}),yde=C("div")(({theme:e})=>a9(e)),VP=C(Gr)(({theme:e})=>({...a9(e),"&:hover, &:focus":{textDecoration:"none","& > div > span:first-of-type":{textDecoration:"underline"}}})),bde=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",wordBreak:"break-all"})),wde=C("span")(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical"})),Sde=C("span")(({theme:e})=>({color:e.palette.text.secondary,textDecoration:"none",fontSize:"inherit",WebkitLineClamp:1,lineClamp:1,overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical"})),Ts=({title:e,to:t,onClick:n,subtitle:r,children:o})=>{const{searchQuery:i}=Ol(),a=x(bde,{children:[x(wde,{"data-loading":!0,style:{WebkitLineClamp:r?1:2,lineClamp:r?1:2},children:[l(Ya,{search:i,children:e}),o]}),l(q,{condition:!!r,show:l(ve,{children:l(Sde,{"data-loading":!0,children:l(Ya,{search:i,children:r})})})})]});return t?l(VP,{component:an,to:t,underline:"hover",children:a}):n?l(VP,{onClick:n,underline:"hover",children:a}):l(yde,{children:a})};function sg(e){const t=new Date(e);if(!Number.isNaN(t.valueOf()))return t;const n=String(e).match(/\d+/g);if(n==null||n.length<=2)return t;{const[r,o,...i]=n.map(c=>parseInt(c)),a=[r,o-1,...i];return new Date(Date.UTC(...a))}}function GP(e,t,n){const r=e!==1?t+"s":t;return e+" "+r+" "+n}function mx(){return mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mx.apply(this,arguments)}const Jp=60,Qp=Jp*60,Mu=Qp*24,lg=Mu*7,qP=Mu*30,YP=Mu*365;function P1({date:e,formatter:t=GP,component:n="time",live:r=!0,minPeriod:o=0,maxPeriod:i=lg,title:a,now:s=()=>Date.now(),...c}){const[u,d]=m.useState(s());m.useEffect(()=>{if(!r)return;const A=(()=>{const T=sg(e).valueOf();if(!T)return console.warn("[react-timeago] Invalid Date provided"),0;const R=Math.round(Math.abs(u-T)/1e3),P=R<Jp?1e3:R<Qp?1e3*Jp:R<Mu?1e3*Qp:1e3*lg,_=Math.min(Math.max(P,o*1e3),i*1e3);return _?setTimeout(()=>{d(s())},_):0})();return()=>{A&&clearTimeout(A)}},[e,r,i,o,s,u]);const p=n,f=sg(e).valueOf();if(!f)return null;const h=Math.round(Math.abs(u-f)/1e3),g=f<u?"ago":"from now",[v,b]=h<Jp?[Math.round(h),"second"]:h<Qp?[Math.round(h/Jp),"minute"]:h<Mu?[Math.round(h/Qp),"hour"]:h<lg?[Math.round(h/Mu),"day"]:h<qP?[Math.round(h/lg),"week"]:h<YP?[Math.round(h/qP),"month"]:[Math.round(h/YP),"year"],y=typeof a>"u"?typeof e=="string"?e:sg(e).toISOString().substr(0,16).replace("T"," "):a,w=p==="time"?{...c,dateTime:sg(e).toISOString()}:c,S=GP.bind(null,v,b,g);return m.createElement(p,mx({},w,{title:y}),t(v,b,g,f,S,s))}function xde(e){switch(e){case"second":return"s";case"minute":return"m";case"hour":return"h";case"day":return"D";case"week":return"W";case"month":return"M";case"year":return"Y";default:return""}}const Cde=()=>{const e=yn();return t=>{switch(t){case"second":return e.palette.seen.recent;case"minute":return e.palette.seen.recent;case"hour":return e.palette.seen.recent;case"day":return e.palette.seen.recent;case"week":return e.palette.seen.inactive;case"month":return e.palette.seen.abandoned;case"year":return e.palette.seen.abandoned;default:return e.palette.seen.unknown}}},Ede=C("div")(({theme:e})=>({display:"flex",padding:e.spacing(1.5)})),Tde=C("div")(({theme:e})=>({width:"38px",height:"38px",background:e.palette.background.paper,borderRadius:`${e.shape.borderRadius}px`,textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.body2.fontSize,margin:"0 auto"})),KP=({unit:e,tooltip:t,children:n})=>{const r=Cde();return l(Ede,{children:l(xt,{title:t,arrow:!0,describeChild:!0,children:l(Tde,{style:{background:r(e)},"data-loading":!0,children:n})})})},s9=({value:e})=>l(q,{condition:!!e,show:l(P1,{date:e,title:"",live:!1,formatter:(t,n,r)=>x(KP,{tooltip:`Last usage reported ${t} ${n}${t!==1?"s":""} ${r}`,unit:n,children:[t,xde(n)]})}),elseShow:l(KP,{tooltip:"No usage reported from connected applications",children:"–"})}),kde="experiment",Ade="release",Rde="operational",_de="kill-switch",Pde="permission";var D2={},Ide=An;Object.defineProperty(D2,"__esModule",{value:!0});var gx=D2.default=void 0,Ode=Ide(Rn()),$de=_n,Nde=(0,Ode.default)((0,$de.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Loop");gx=D2.default=Nde;var M2={},Lde=An;Object.defineProperty(M2,"__esModule",{value:!0});var l9=M2.default=void 0,Dde=Lde(Rn()),Mde=_n,Bde=(0,Dde.default)((0,Mde.jsx)("path",{d:"M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2z"}),"Timeline");l9=M2.default=Bde;var B2={},Fde=An;Object.defineProperty(B2,"__esModule",{value:!0});var F2=B2.default=void 0,zde=Fde(Rn()),jde=_n,Ude=(0,zde.default)((0,jde.jsx)("path",{d:"M13 3h-2v10h2V3zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"}),"PowerSettingsNew");F2=B2.default=Ude;var z2={},Wde=An;Object.defineProperty(z2,"__esModule",{value:!0});var c9=z2.default=void 0,Hde=Wde(Rn()),Vde=_n,Gde=(0,Hde.default)((0,Vde.jsx)("path",{d:"M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"}),"PanTool");c9=z2.default=Gde;var j2={},qde=An;Object.defineProperty(j2,"__esModule",{value:!0});var u9=j2.default=void 0,Yde=qde(Rn()),Kde=_n,Xde=(0,Yde.default)((0,Kde.jsx)("path",{d:"m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"}),"Build");u9=j2.default=Xde;const d9=e=>{switch(e){case Ade:return gx;case kde:return l9;case _de:return F2;case Rde:return u9;case Pde:return c9;default:return gx}},qh=(e={})=>{const t=async()=>{const c=Rt("api/admin/feature-types");return(await fetch(c,{method:"GET"}).then(bn("Feature types"))).json()},n="api/admin/feature-types",{data:r,error:o}=Pn(n,t,e),[i,a]=m.useState(!o&&!r),s=()=>{Jr(n)};return m.useEffect(()=>{a(!o&&!r)},[r,o]),{featureTypes:(r==null?void 0:r.types)||[],error:o,loading:i,refetch:s}},Jde=C("div")(({theme:e})=>({padding:e.spacing(1.5),display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),p9=({value:e})=>{const{featureTypes:t}=qh(),n=d9(e),o=`This is a "${t.filter(i=>i.id===e).map(i=>i.name)||e}" toggle`;return l(Jde,{children:l(xt,{arrow:!0,title:o,describeChild:!0,children:l(n,{"data-loading":!0})})})},Qde=({row:e})=>l(Ts,{title:e.original.name,subtitle:e.original.description,to:`/projects/${e.original.project}/features/${e.original.name}`}),f9=e=>{const{setAnnouncement:t}=m.useContext(I2);m.useEffect(()=>{if(e)return document.title=e,()=>{document.title=XP}},[e]),m.useEffect(()=>{e&&e!==XP&&t(`Navigated to ${e}`)},[t,e])},XP="Unleash",Zde=C(To)(({theme:e})=>({height:"100%",borderColor:e.palette.divider,width:"1px",display:"inline-block",marginLeft:e.spacing(2),marginRight:e.spacing(2),padding:e.spacing(.5,0),verticalAlign:"middle"})),epe=C("div")(()=>({display:"flex",flexDirection:"column"})),tpe=C("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative"})),npe=C("div")(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginRight:e.spacing(2)})),rpe=C(se)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,fontWeight:"normal",lineHeight:e.spacing(5)})),ope=C("div")(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-end",alignItems:"center",gap:e.spacing(1)})),h9=({title:e,titleElement:t,actions:n,subtitle:r,variant:o,loading:i,className:a="",secondary:s,children:c})=>{const u=$i({skeleton:i});return f9(s?"":e),x(epe,{children:[x(tpe,{children:[x(npe,{className:$i(u),"data-loading":!0,children:[l(rpe,{variant:o||s?"h2":"h1",className:$i(a),children:t||e}),r&&l("small",{children:r})]}),l(q,{condition:!!n,show:l(ope,{children:n})})]}),c]})},ipe=({sx:e})=>l(Zde,{orientation:"vertical",variant:"middle",sx:e});h9.Divider=ipe;const Tn=h9,ape=Ns()(e=>({headerPadding:{padding:e.spacing(2,4)},bodyContainer:{padding:e.spacing(4),[e.breakpoints.down("md")]:{padding:e.spacing(2)},overflowX:"auto"},paddingDisabled:{padding:"0"},borderDisabled:{border:"none"}})),I1=(e,t="[data-loading=true]")=>{const n=m.createRef();return m.useLayoutEffect(()=>{n.current&&n.current.querySelectorAll(t).forEach(o=>{e?o.classList.add("skeleton"):o.classList.remove("skeleton")})},[e,n]),n},spe=C("div")(({theme:e})=>({borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:e.palette.divider,[e.breakpoints.down("md")]:{padding:e.spacing(3,2)}})),lpe=C(Cr)(({theme:e})=>({borderRadius:e.shape.borderRadiusLarge,boxShadow:"none"})),cpe=({children:e,isLoading:t})=>{const n=I1(t);return l("div",{ref:n,"aria-busy":t,"aria-live":"polite",children:e})},yr=({children:e,header:t,disablePadding:n=!1,disableBorder:r=!1,bodyClass:o="",headerClass:i="",isLoading:a=!1,disableLoading:s=!1,className:c,...u})=>{const{classes:d}=ape(),p=$i("header",i||d.headerPadding,{[d.paddingDisabled]:n,[d.borderDisabled]:r}),f=$i("body",o||d.bodyContainer,{[d.paddingDisabled]:n,[d.borderDisabled]:r}),g=x(lpe,{...u,...r?{elevation:0}:{},className:$i(c),children:[l(q,{condition:!!t,show:l(spe,{className:p,children:l(q,{condition:typeof t=="string",show:l(Tn,{title:t}),elseShow:t})})}),l("div",{className:f,children:e})]});return s?g:l(cpe,{isLoading:a,children:g})},Lc=(e,t)=>{const n=`${ri}:${e}:localStorage:v2`;return{value:(()=>{const i=rh(n);return i===void 0?t:i})(),setValue:i=>{if(i instanceof Function){const a=rh(n),s=i(a??t);return td(n,s),s}return td(n,i),i}}},ma=(e={})=>{const t=()=>{const c=Rt("api/admin/projects");return fetch(c,{method:"GET"}).then(bn("Projects")).then(u=>u.json())},n="api/admin/projects",{data:r,error:o}=Pn(n,t,e),[i,a]=m.useState(!o&&!r),s=()=>{Jr(n)};return m.useEffect(()=>{a(!o&&!r)},[r,o]),{projects:(r==null?void 0:r.projects)||[],error:o,loading:i,refetch:s}},Vg="default",upe=()=>{var n;const{projects:e=[]}=ma(),t=e.find(r=>r.id===Vg);return(t==null?void 0:t.id)||((n=e[0])==null?void 0:n.id)},Bv=(e,t)=>`/projects/${e}/features/${t}`,dpe=(e,t)=>{const n=`/projects/${e}/create-toggle`;let r;return t&&(r=Object.keys(t).reduce((o,i)=>(o+=`${i}=${t[i]}`,o),"")),r?`${n}?${r}`:n},ppe=(e,t)=>t?`/projects/${e}/settings`:`/projects/${e}/edit`,fpe=e=>{const t=upe(),n=e.project==="*"||!e.project?t:e.project;if(n)return{path:dpe(n),projectId:n}},hpe=C("div")(({theme:e})=>({overflow:"auto",padding:e.spacing(1,1.5)})),mpe=C(({className:e,maxWidth:t,maxHeight:n,fontSize:r,...o})=>l(xt,{...o,title:l(hpe,{children:o.title}),classes:{popper:e}}),{shouldForwardProp:e=>e!=="maxWidth"&&e!=="maxHeight"&&e!=="fontSize"})(({theme:e,maxWidth:t=e.spacing(37.5),maxHeight:n=e.spacing(37.5),fontSize:r=e.fontSizes.smallerBody})=>({maxWidth:t,[`& .${La.tooltip}`]:{display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,padding:0,borderRadius:e.shape.borderRadiusMedium,boxShadow:e.shadows[2],color:e.palette.text.primary,fontWeight:e.fontWeight.medium,maxWidth:"inherit",border:`1px solid ${e.palette.divider}`,maxHeight:n,fontSize:r},[`& .${La.arrow}`]:{"&:before":{border:`1px solid ${e.palette.divider}`},color:e.palette.background.paper}})),Dc=e=>e.title?l(mpe,{...e,children:e.children}):e.children,Id=({title:e,children:t,variant:n="default",titleComponent:r,...o})=>!e&&!r?t:n==="custom"?l(Dc,{...o,title:e||r,arrow:!0,children:t}):l(xt,{...o,title:e||r,arrow:!0,children:t}),vx="Access denied",O1=(e,t)=>e?t:t?`${t} (${vx})`:vx,gpe=()=>{throw new Error("hasAccess called outside AccessContext")},_o=Ce.createContext({isAdmin:!1,hasAccess:gpe}),yi="ADMIN",uh="CREATE_FEATURE",U2="UPDATE_FEATURE",m9="DELETE_FEATURE",Fv="CREATE_STRATEGY",dh="UPDATE_STRATEGY",vpe="DELETE_STRATEGY",JP="UPDATE_APPLICATION",zv="CREATE_CONTEXT_FIELD",g9="UPDATE_CONTEXT_FIELD",ype="DELETE_CONTEXT_FIELD",QP="CREATE_PROJECT",yx="UPDATE_PROJECT",bpe="DELETE_PROJECT",wpe="DELETE_TAG_TYPE",ph="UPDATE_TAG_TYPE",v9="CREATE_ADDON",bx="UPDATE_ADDON",Spe="DELETE_ADDON",xpe="DELETE_ENVIRONMENT",wx="UPDATE_ENVIRONMENT",y9="CREATE_FEATURE_STRATEGY",$1="UPDATE_FEATURE_STRATEGY",Cpe="DELETE_FEATURE_STRATEGY",Epe="UPDATE_FEATURE_ENVIRONMENT",b9="UPDATE_FEATURE_ENVIRONMENT_VARIANTS",i8e="MOVE_FEATURE_TOGGLE",N1="CREATE_SEGMENT",W2="UPDATE_SEGMENT",Tpe="DELETE_SEGMENT",a8e="APPLY_CHANGE_REQUEST",s8e="APPROVE_CHANGE_REQUEST",w9="SKIP_CHANGE_REQUEST",l8e="CREATE_PROJECT_API_TOKEN",H2="UPDATE_PROJECT_SEGMENT",Mc=(e,t,n,r,o={})=>{const i=Pn(e?n:null,r,o);return{...i,error:e?i.error:void 0,data:e?i.data:t}},kpe=e=>{const{isEnterprise:t}=It(),{data:n,error:r,mutate:o}=Mc(!!e&&t(),[],Rt(`api/admin/projects/${e}/change-requests/config`),Ape);return{data:n||[],loading:!r&&!n,refetchChangeRequestConfig:o,error:r}},Ape=e=>fetch(e).then(bn("Request changes")).then(t=>t.json()),Bc=e=>{const{data:t}=kpe(e),n=L1(e),r=Ce.useCallback(a=>n(w9,a)?!1:t.some(c=>c.environment===a&&c.changeRequestEnabled),[JSON.stringify(t)]),o=Ce.useCallback(a=>t.some(s=>s.environment===a&&s.changeRequestEnabled),[JSON.stringify(t)]),i=Ce.useCallback(()=>t.some(a=>a.changeRequestEnabled),[JSON.stringify(t)]);return{isChangeRequestConfigured:r,isChangeRequestConfiguredInAnyEnv:i,isChangeRequestConfiguredForReview:o}},Rpe=(e,t)=>{let n=e.data&&"permissions"in e.data?e.data.permissions:void 0;return n&&(t!=null&&t.maintenanceMode)&&(n=n.filter(r=>r.permission==="ADMIN")),n},V2=()=>{const e=Wh(),{uiConfig:t}=It();return{permissions:Rpe(e,t),refetchPermissions:e.refetchAuth,loading:e.loading,error:e.error}},S9=e=>{const t=()=>{const r=Rt(`api/admin/projects/${e}`);return fetch(r,{method:"GET"}).then(bn("Project overview")).then(o=>o.json())},n=`api/admin/projects/${e}`;return{fetcher:t,KEY:n}},_pe={features:[],environments:[],name:"",health:0,members:0,version:"1",description:"Default",favorite:!1,mode:"open",defaultStickiness:"default",stats:{archivedCurrentWindow:0,archivedPastWindow:0,avgTimeToProdCurrentWindow:0,createdCurrentWindow:0,createdPastWindow:0,projectActivityCurrentWindow:0,projectActivityPastWindow:0,projectMembersAddedCurrentWindow:0}},od=(e,t={})=>{const{KEY:n,fetcher:r}=S9(e),{data:o,error:i,mutate:a}=Pn(n,r,t),s=m.useCallback(()=>{a()},[a]);return{project:o||_pe,loading:!i&&!o,error:i,refetch:s}},c8e=e=>od(e).project.name||e,L1=e=>{const{hasAccess:t}=m.useContext(_o),n=(o,i,a)=>i&&a?t(o,i,a):i?t(o,i):t(o),r=(o,i,a)=>Array.isArray(o)?o.some(s=>n(s,i,a)):n(o,i,a);return(o,i)=>r(o,e,i)},u8e=e=>{const{isChangeRequestConfigured:t}=Bc(e),n=L1(e);return(r,o)=>t(o)||n(r,o)},Ppe=[y9,$1,Cpe,Epe,b9],Ipe=(e,t)=>e.filter(n=>t.includes(n)).length>0,Ope=e=>{const{permissions:t}=V2();return t?t.find(r=>r.project===e):!1},$pe=e=>{const t=Ope(e),{project:n}=od(e);return n.mode==="protected"?t:!0},Npe=e=>Ipe(Ppe,[].concat(e)),Lpe=(e,t,n)=>{const{isChangeRequestConfigured:r}=Bc(t),o=r(n),i=$pe(t);return o&&i&&Npe(e)},id=(e,t,n)=>{const r=L1(t);return Lpe(e,t,n)||r(e,n)},D1=(e,t,n)=>L1(t)(e,n),Dpe=(e,t,n)=>!e&&!n?l(Hle,{titleAccess:"Locked"}):t||null,Mpe=Ce.forwardRef((e,t)=>{const n=id(e.permission,e.projectId,e.environmentId);return l(x9,{...e,access:n,ref:t})}),Bpe=Ce.forwardRef((e,t)=>{const n=D1(e.permission,e.projectId,e.environmentId);return l(x9,{...e,access:n,ref:t})}),x9=Ce.forwardRef(({permission:e,access:t,variant:n="contained",color:r="primary",onClick:o,children:i,disabled:a,projectId:s,environmentId:c,tooltipProps:u,hideLockIcon:d,...p},f)=>{const h=Cl(),g=Dpe(t,p.endIcon,d);return l(Id,{...u,title:O1(t,u==null?void 0:u.title),arrow:!0,children:l("span",{id:h,children:l(Ve,{ref:f,onClick:o,disabled:a||!t,"aria-labelledby":h,variant:n,color:r,...p,endIcon:g,children:i})})})}),Po=Ce.forwardRef((e,t)=>typeof e.projectId<"u"&&typeof e.environmentId<"u"?l(Mpe,{...e,environmentId:e.environmentId,projectId:e.projectId,ref:t}):l(Bpe,{...e,ref:t})),Fpe=e=>{const t=D1(e.permission,e.projectId,e.environmentId);return l(C9,{...e,access:t})},zpe=e=>{const t=id(e.permission,e.projectId,e.environmentId);return l(C9,{...e,access:t})},C9=({access:e,permission:t,projectId:n,children:r,environmentId:o,tooltipProps:i,disabled:a,...s})=>{const c=Cl();return l(Id,{...i,title:O1(e,i==null?void 0:i.title),arrow:!0,onClick:u=>u.preventDefault(),children:l("div",{id:c,children:l(jt,{...s,disabled:!e||a,"aria-labelledby":c,size:"large",children:r})})})},$r=e=>typeof e.projectId<"u"&&typeof e.environmentId<"u"?l(zpe,{...e,projectId:e.projectId,environmentId:e.environmentId}):l(Fpe,{...e}),jpe=({loading:e,filter:t})=>{const n=tr("(max-width:800px)"),r=fpe(t),o=pt();return r?l(q,{condition:n,show:l($r,{permission:uh,projectId:r.projectId,component:an,to:r.path,size:"large",tooltipProps:{title:"Create feature toggle"},children:l(ha,{})}),elseShow:l(Po,{onClick:()=>{o(r.path)},permission:uh,projectId:r.projectId,color:"primary",variant:"contained","data-testid":Bie,className:$i({skeleton:e}),children:"New feature toggle"})}):null},Upe=e=>({color:e.palette.error.dark,fontSize:"inherit"}),Wpe=e=>({color:e.palette.success.dark,fontSize:"inherit"}),Hpe=C($e)(({theme:e})=>({padding:e.spacing(1.5,2)})),Vpe=({value:e})=>l(Hpe,{children:l(q,{condition:!!e,show:l(se,{component:"span",sx:Upe,"data-loading":!0,children:"Stale"}),elseShow:l(se,{component:"span",sx:Wpe,"data-loading":!0,children:"Active"})})}),Yh=(e,t,n)=>{const r=m.useCallback(a=>E9(e)(a),[e]),o=m.useCallback(()=>({data:n,searchValue:t,columns:e}),[n,t,e]);return{data:m.useMemo(()=>{if(!t)return n;const a=Gpe(e,t,n);return qpe(e,r(t),a)},[e,t,n,r]),getSearchText:r,getSearchContext:o}},Gpe=(e,t,n)=>{let r=n;return k9(e).filter(o=>T9(t,o.filterName)).forEach(o=>{const i=A9(o.filterName,t);r=r.filter(a=>o.filterBy?o.filterBy(a,i):Ype(jv(o,a),i))}),r},qpe=(e,t,n)=>{const r=e.filter(o=>o.searchable&&o.accessor);return n.filter(o=>r.some(i=>i.searchBy?i.searchBy(o,t):Kpe(jv(i,o),t)))},Ype=(e,t)=>t.some(n=>(e==null?void 0:e.toLowerCase())===(n==null?void 0:n.toLowerCase())),Kpe=(e,t)=>e==null?void 0:e.toLowerCase().includes(t==null?void 0:t.toLowerCase()),E9=e=>{const t=e.filter(r=>r.filterName).map(r=>r.filterName),n=r=>t.some(o=>T9(r,o));return r=>r.split(" ").filter(o=>!n(o)).join(" ")},T9=(e,t)=>new RegExp(`${t}:\\w+`).test(e),k9=e=>e.filter(t=>t.filterName&&t.accessor),jv=(e,t)=>{const n=typeof e.accessor=="function"?e.accessor(t):e.accessor.includes(".")?e.accessor.split(".").reduce((r,o)=>r==null?void 0:r[o],t):t[e.accessor];return e.filterParsing?e.filterParsing(n):n},A9=(e,t)=>{var n,r;return((r=(n=t==null?void 0:t.split(`${e}:`)[1])==null?void 0:n.split(" ")[0])==null?void 0:r.split(",").filter(o=>o))??[]},ZP=C("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.primary})),e5=C("span")(({theme:e})=>({backgroundColor:e.palette.background.elevation2,color:e.palette.text.primary,padding:e.spacing(0,.5),borderRadius:e.spacing(.5)})),Xpe=({filters:e,getSearchContext:t,searchableColumnsString:n})=>{const r=t(),i=E9(r.columns)(r.searchValue),a=e.filter(s=>s.values.length>0);return x(ve,{children:[l(q,{condition:!!i,show:x(ve,{children:[l(ZP,{children:"Searching for:"}),x("p",{children:[l(e5,{children:i})," ",n?` in ${n}`:""]})]})}),l(q,{condition:a.length>0,show:x(ve,{children:[l(ZP,{children:"Filtering by:"}),a.map(s=>x("p",{children:[l(e5,{children:s.values.join(",")})," ","in ",s.header,". Options:"," ",s.options.join(", ")]},s.name))]})})]})},Jpe=C("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.primary})),t5=C("span")(({theme:e})=>({backgroundColor:e.palette.background.elevation2,color:e.palette.text.primary,padding:e.spacing(0,.5),borderRadius:e.spacing(.5)})),Qpe=({filters:e,getSearchContext:t,searchableColumnsString:n})=>x(ve,{children:[l(Jpe,{children:e.length>0?"Filter your search with operators like:":`Start typing to search${n?` in ${n}`:"..."}`}),e.map(r=>x("p",{children:["Filter by ",r.header,":"," ",x(t5,{children:[r.name,":",r.options[0]]}),l(q,{condition:r.options.length>1,show:x(ve,{children:[" or ",x(t5,{children:[r.name,":",r.options.slice(0,2).join(",")]})]})})]},r.name))]}),Zpe=e=>Math.floor(Math.random()*e.length),efe=C(Cr)(({theme:e})=>({position:"absolute",width:"100%",left:0,top:"20px",zIndex:2,padding:e.spacing(4,1.5,1.5),borderBottomLeftRadius:e.spacing(1),borderBottomRightRadius:e.spacing(1),boxShadow:"0px 8px 20px rgba(33, 33, 33, 0.15)",fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary,wordBreak:"break-word"})),tfe=C($e)(({theme:e})=>({display:"flex",gap:e.spacing(2)})),nfe=C(Lle)(({theme:e})=>({color:e.palette.text.secondary})),rfe=C(To)(({theme:e})=>({border:`1px dashed ${e.palette.divider}`,margin:e.spacing(1.5,0)})),ofe=C("span")(({theme:e})=>({backgroundColor:e.palette.background.elevation2,color:e.palette.text.primary,padding:e.spacing(0,.5),borderRadius:e.spacing(.5)})),ife=({getSearchContext:e})=>{const t=e(),n=m.useMemo(()=>Zpe(t.data),[t.data]),r=k9(t.columns).map(s=>{const c=t.data.map(u=>jv(s,u));return{name:s.filterName,header:s.Header??s.filterName,options:[...new Set(c)].sort((u,d)=>u.localeCompare(d)),suggestedOption:c[n]??`example-${s.filterName}`,values:A9(s.filterName,t.searchValue)}}).sort((s,c)=>s.name.localeCompare(c.name)),o=t.columns.filter(s=>s.searchable&&s.accessor),i=o.map(s=>s.Header??s.accessor).join(", "),a=t.data.length&&o.length?jv(o[0],t.data[n]):"example-search-text";return x(efe,{className:"dropdown-outline",children:[x(tfe,{children:[l(nfe,{}),l($e,{children:l(q,{condition:!!t.searchValue,show:l(Xpe,{filters:r,getSearchContext:e,searchableColumnsString:i}),elseShow:l(Qpe,{filters:r,getSearchContext:e,searchableColumnsString:i})})})]}),l(rfe,{}),l(q,{condition:r.length>0,show:"Combine filters and search."}),x("p",{children:["Example:"," ",x(ofe,{children:[r.map(s=>x("span",{children:[s.name,":",s.suggestedOption," "]},s.name)),l("span",{children:a})]})]})]})},afe=()=>{const[e,t]=m.useState();return m.useEffect(()=>{var r;const n=((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.platform)||(navigator==null?void 0:navigator.platform)||"unknown";t(n.toLowerCase().includes("mac")||n==="iPhone"||n==="iPad")},[]),e},n5=({key:e,modifiers:t=[],preventDefault:n=!1},r)=>{const o=afe();m.useEffect(()=>{const s=c=>{if(e===c.key){if(t.includes("ctrl")){if(o){if(!c.metaKey)return}else if(!c.ctrlKey)return}t.includes("alt")&&!c.altKey||t.includes("shift")&&!c.shiftKey||(n&&c.preventDefault(),r())}};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[o,e,t,n,r]);const i=m.useMemo(()=>t.map(s=>({ctrl:o?"⌘":"Ctrl",alt:"Alt",shift:"Shift"})[s]),[o,t]);return m.useMemo(()=>[...i,`${e[0].toUpperCase()}${e.slice(1)}`].join("+"),[i,e])},sfe=C("div")(({theme:e})=>({display:"flex",flexGrow:1,alignItems:"center",position:"relative",backgroundColor:e.palette.background.paper,maxWidth:"400px",[e.breakpoints.down("md")]:{marginTop:e.spacing(1),maxWidth:"100%"}})),lfe=C("div")(({theme:e})=>({display:"flex",alignItems:"center",backgroundColor:e.palette.background.elevation1,border:`1px solid ${e.palette.neutral.border}`,borderRadius:e.shape.borderRadiusExtraLarge,padding:"3px 5px 3px 12px",width:"100%",zIndex:3,"&:focus-within":{borderColor:e.palette.primary.main,boxShadow:e.boxShadows.main}})),cfe=C(b1)(({theme:e})=>({width:"100%",backgroundColor:e.palette.background.elevation1})),ufe=C(k1)(({theme:e})=>({color:e.palette.neutral.main,fontSize:e.typography.body1.fontSize})),ko=({initialValue:e="",onChange:t,className:n,placeholder:r,hasFilters:o,disabled:i,getSearchContext:a,containerStyles:s,debounceTime:c=200})=>{const u=m.useRef(),[d,p]=m.useState(!1),[f,h]=m.useState(e),g=Jt.useAsyncDebounce(t,c),v=w=>{g(w),h(w)},b=n5({modifiers:["ctrl"],key:"k",preventDefault:!0},()=>{var w,S;document.activeElement===u.current?(w=u.current)==null||w.blur():(S=u.current)==null||S.focus()});n5({key:"Escape"},()=>{var w;document.activeElement===u.current&&((w=u.current)==null||w.blur())});const y=`${r??"Search"} (${b})`;return x(sfe,{style:s,children:[x(lfe,{className:n,children:[l(E2,{sx:{mr:1,color:w=>w.palette.action.disabled}}),l(cfe,{inputRef:u,placeholder:y,inputProps:{"aria-label":y,"data-testid":pae},value:f,onChange:w=>v(w.target.value),onFocus:()=>p(!0),onBlur:()=>p(!1),disabled:i}),l($e,{sx:{width:w=>w.spacing(4)},children:l(q,{condition:!!f,show:l(xt,{title:"Clear search query",arrow:!0,children:l(jt,{size:"small",onClick:()=>{var w;v(""),(w=u.current)==null||w.focus()},sx:{padding:w=>w.spacing(1)},children:l(ufe,{})})})})})]}),l(q,{condition:!!o&&d,show:l(ife,{getSearchContext:a})})]})},dfe=C(Gr,{shouldForwardProp:e=>e!=="highlighted"})(({theme:e,highlighted:t})=>({backgroundColor:t?e.palette.highlight:"transparent",color:e.palette.text.primary,textDecorationColor:e.palette.text.disabled,textDecorationStyle:"dashed",textUnderlineOffset:e.spacing(.5)})),Kh=({tooltip:e,highlighted:t,tooltipProps:n,children:r,...o})=>l(Dc,{title:e,...n,arrow:!0,children:l(dfe,{tabIndex:0,highlighted:t,...o,children:r})}),pfe=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallerBody})),ffe=({row:e,value:t})=>{var r,o,i;const{searchQuery:n}=Ol();return!e.original.tags||e.original.tags.length===0?l(Hn,{}):l(Hn,{children:l(Kh,{highlighted:n.length>0&&t.toLowerCase().includes(n.toLowerCase()),tooltip:l(ve,{children:(r=e.original.tags)==null?void 0:r.map(a=>l(pfe,{children:l(Ya,{search:n,children:`${a.type}:${a.value}`})},a.type+a.value))}),children:((o=e.original.tags)==null?void 0:o.length)===1?"1 tag":`${(i=e.original.tags)==null?void 0:i.length} tags`})})},qo={date:(e,t,n,r)=>{var a,s;const o=new Date(((a=e==null?void 0:e.values)==null?void 0:a[n])||0),i=new Date(((s=t==null?void 0:t.values)==null?void 0:s[n])||0);return(i==null?void 0:i.getTime())-(o==null?void 0:o.getTime())},boolean:(e,t,n,r)=>{var a,s;const o=(a=e==null?void 0:e.values)==null?void 0:a[n],i=(s=t==null?void 0:t.values)==null?void 0:s[n];return o===i?0:o?1:-1},alphanumeric:(e,t,n,r)=>{var a,s;const o=`${((a=e==null?void 0:e.values)==null?void 0:a[n])||""}`.toLowerCase(),i=`${((s=t==null?void 0:t.values)==null?void 0:s[n])||""}`.toLowerCase();return o==null?void 0:o.localeCompare(i)},playgroundResultState:(e,t,n,r)=>{var a,s;const o=(a=e==null?void 0:e.values)==null?void 0:a[n],i=(s=t==null?void 0:t.values)==null?void 0:s[n];return o===i?0:o==="true"?1:i==="true"||o==="false"?-1:i==="false"?1:0},numericZeroLast:(e,t,n,r)=>{var a,s;let o=parseInt(`${((a=e==null?void 0:e.values)==null?void 0:a[n])||0}`,10)||Number.MAX_SAFE_INTEGER,i=parseInt(`${((s=t==null?void 0:t.values)==null?void 0:s[n])||0}`,10)||Number.MAX_SAFE_INTEGER;return o-i}},hfe=Object.assign({},...Object.entries(qo).map(([e,t])=>({[e]:(n,r,o,i)=>{var a,s,c,u;return(a=n==null?void 0:n.original)!=null&&a.favorite&&!((s=r==null?void 0:r.original)!=null&&s.favorite)?i?1:-1:!((c=n==null?void 0:n.original)!=null&&c.favorite)&&((u=r==null?void 0:r.original)!=null&&u.favorite)?i?-1:1:t(n,r,o,i)}}))),mfe=(e=!1)=>{const[t,n]=m.useState(e),{trackEvent:r}=br(),o=a=>{r("favorite",{props:{eventType:`features ${a?"":"un"}pinned `}}),n(a)},i=m.useMemo(()=>t?hfe:qo,[t]);return{isFavoritesPinned:t,onChangeIsFavoritePinned:o,sortTypes:i}},$t=()=>{const{setToast:e}=m.useContext(Il),t=()=>e(o=>({...o,show:!1})),n=m.useCallback((o,i)=>{e({title:"Something went wrong",text:o,type:"error",show:!0,autoHideDuration:12e3,...i})},[e]);return{setToastData:m.useCallback(o=>{o.persist?e({...o,show:!0}):e({autoHideDuration:6e3,...o,show:!0})},[e]),setToastApiError:n,hideToast:t}},gt=e=>e instanceof Error?e.message||e.toString():typeof e=="string"?e:"Unknown error",Vn=({handleBadRequest:e,handleNotFound:t,handleForbidden:n,handleUnauthorized:r,propagateErrors:o=!1})=>{const[i,a]=m.useState({}),[s,c]=m.useState(!1),u=m.useCallback(async(f,h)=>{var g;if(f.status===A2){if(e)return e(a,f,h);if(a(v=>({...v,badRequest:"Bad request format"})),o){const v=await f.json();throw new _2(f.status,v)}}if(f.status===WL){if(t)return t(a,f,h);if(a(v=>({...v,notFound:"Could not find the requested resource"})),o)throw new P2(f.status)}if(f.status===VL){if(r)return r(a,f,h);if(a(v=>({...v,unauthorized:vx})),o)throw new R2(f.status)}if(f.status===HL){if(n)return n(a,f,h);if(a(v=>({...v,forbidden:"This operation is forbidden"})),o){const v=await f.json();throw new rce(f.status,v)}}if(f.status>399){const v=await f.json();if(((g=v==null?void 0:v.details)==null?void 0:g.length)>0&&o){const b=v.details[0];if(o)throw new Error(b.message||b.msg);return b}if((v==null?void 0:v.length)>0&&o){const b=v[0];throw new Error(b.message||b.msg)}if(o)throw new Error("Action could not be performed")}},[e,n,t,r,o]),d=m.useCallback(async(f,h,g=!0)=>{g&&c(!0);try{const v=await f();return c(!1),v.status>299&&await u(v,h),v.status===Hh&&a({}),v}catch(v){throw c(!1),v}},[u]),p=m.useCallback((f,h,g="")=>{const v={headers:fx,credentials:"include"};return{caller:()=>fetch(Rt(f),{...v,...h}),id:g}},[]);return{loading:s,makeRequest:d,createRequest:p,errors:i}},gfe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0}),{setToastData:o,setToastApiError:i}=$t(),{trackEvent:a}=br(),s=m.useCallback(async(u,d)=>{const p=`api/admin/projects/${u}/features/${d}/favorites`,f=t(p,{method:"POST"},"addFavoriteFeature");try{await e(f.caller,f.id),o({title:"Toggle added to favorites",type:"success"}),a("favorite",{props:{eventType:"feature favorited"}})}catch(h){i(gt(h))}},[t,e]),c=m.useCallback(async(u,d)=>{const p=`api/admin/projects/${u}/features/${d}/favorites`,f=t(p,{method:"DELETE"},"removeFavoriteFeature");try{await e(f.caller,f.id),o({title:"Toggle removed from favorites",type:"success"}),a("favorite",{props:{eventType:"feature unfavorited"}})}catch(h){i(gt(h))}},[t,e]);return{favorite:s,unfavorite:c,errors:n,loading:r}},vfe=C($e)(({theme:e})=>({paddingLeft:e.spacing(1.25)})),R9=C(jt)(({theme:e})=>({color:e.palette.primary.main,padding:e.spacing(1.25)})),yfe=C(R9)({opacity:0}),bfe=({value:e,onClick:t})=>l(vfe,{children:l(q,{condition:!!e,show:l(R9,{onClick:t,size:"small",children:l(T2,{fontSize:"small"})}),elseShow:l(yfe,{className:"show-row-hover",onClick:t,size:"small",children:l(k2,{fontSize:"small"})})})}),wfe=({isActive:e=!1,onClick:t})=>{const[n,r]=m.useState(e);return l(Id,{title:n?"Unpin favorite features from the top":"Pin favorite features to the top",children:l(jt,{sx:{mx:-.75,display:"flex",alignItems:"center",justifyContent:"center",padding:1.25},onClick:()=>{r(!n),t(!n)},size:"small",children:l(q,{condition:n,show:l(T2,{fontSize:"small"}),elseShow:l(k2,{fontSize:"small"})})})})},Sfe=()=>{const{value:e,setValue:t}=Lc("global:v1",{});return{value:e,setValue:t}},Od=(e,t,n)=>{m.useEffect(()=>{const r=e.filter(({condition:i})=>i).flatMap(({columns:i})=>i),o=e.flatMap(({columns:i})=>i).filter(i=>!r.includes(i));t(i=>[...new Set([...i,...r].filter(a=>!o.includes(a)))])},[...e.map(({condition:r})=>r),t,n])};var G2={},xfe=An;Object.defineProperty(G2,"__esModule",{value:!0});var _9=G2.default=void 0,Cfe=xfe(Rn()),Efe=_n,Tfe=(0,Cfe.default)((0,Efe.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"FileDownload");_9=G2.default=Tfe;const $d=()=>{const{data:e,error:t,mutate:n}=Pn(Rt("api/admin/environments"),kfe),r=m.useMemo(()=>e||[],[e]),o=m.useCallback(async()=>{await n()},[n]),i=m.useCallback(async a=>{await n(a,!1)},[n]);return{environments:r,refetchEnvironments:o,mutateEnvironments:i,loading:!t&&!e,error:t}},kfe=async e=>(await fetch(e).then(bn("Environments")).then(n=>n.json())).environments.sort((n,r)=>n.sortOrder-r.sortOrder),Nd=({name:e,value:t="",label:n="",options:r,onChange:o,id:i,disabled:a=!1,className:s,classes:c,fullWidth:u,...d})=>x($s,{variant:"outlined",size:"small",classes:c,fullWidth:u,children:[l(zh,{htmlFor:i,children:n}),l(jh,{name:e,disabled:a,onChange:f=>{f.preventDefault(),o(String(f.target.value))},className:s,label:n,id:i,value:t,IconComponent:px,...d,children:r.map(f=>l(qa,{sx:f.sx,value:f.key,title:f.title||"","data-testid":`${J6}-${f.label}`,disabled:f.disabled,children:f.label},f.key))})]}),Afe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0}),{trackEvent:o}=br();return{loading:r,errors:n,createExport:async a=>{const c=t("api/admin/features-batch/export",{method:"POST",body:JSON.stringify(a)});try{const u=await e(c.caller,c.id);return o("export_import",{props:{eventType:"features exported"}}),u}catch(u){throw u}}}},Rfe=C(Nd)(({theme:e})=>({minWidth:"250px",marginTop:e.spacing(2)})),_fe=({showExportDialog:e,data:t,onClose:n,onConfirm:r,environments:o})=>{const[i,a]=m.useState(o[0]),{createExport:s}=Afe(),c=m.createRef(),{setToastApiError:u}=$t(),d=()=>o.map(h=>({key:h,label:h})),p=h=>{var w,S;const g=document.createElement("a");(w=c.current)==null||w.appendChild(g),g.style.display="display: none";const v=new Blob([JSON.stringify(h)],{type:"application/json"}),b=window.URL.createObjectURL(v);g.href=b;const y=new Date;g.download=`${y.toISOString()}-export.json`,g.click(),window.URL.revokeObjectURL(b),(S=c.current)==null||S.removeChild(g)};return l(vr,{open:e,title:"Export feature toggle configuration",onClose:n,onClick:async()=>{try{const h={features:t.map(b=>b.name),environment:i},v=await(await s(h)).json();p(v),n(),r==null||r()}catch(h){u(gt(h))}},primaryButtonText:"Export selection",secondaryButtonText:"Cancel",children:x($e,{ref:c,children:["The current search filter will be used to export feature toggles. Currently ",t.length," feature toggles will be exported.",l("br",{}),l("br",{}),l(se,{children:"Select which environment to export feature toggle configuration from:"}),l(Rfe,{options:d(),value:i,onChange:h=>a(h)})]})})},P9=Array(15).fill({name:"Name of the feature",description:"Short description of the feature",type:"-",createdAt:new Date(2022,1,1),project:"projectID"}),Pfe={id:"createdAt"},{value:r5,setValue:Ife}=Lc("FeatureToggleListTable:v1",Pfe),Ofe=()=>{var V,W;const e=yn(),{environments:t}=$d(),n=t.filter(j=>j.enabled).map(j=>j.name),r=tr(e.breakpoints.down("md")),o=tr(e.breakpoints.down("lg")),[i,a]=m.useState(!1),{features:s=[],loading:c,refetchFeatures:u}=O2(),[d,p]=Sd(),{uiConfig:f}=It(),[h]=m.useState(()=>({sortBy:[{id:d.get("sort")||r5.id,desc:d.has("order")?d.get("order")==="desc":r5.desc}],hiddenColumns:["description"],globalFilter:d.get("search")||""})),{value:g,setValue:v}=Sfe(),{isFavoritesPinned:b,sortTypes:y,onChangeIsFavoritePinned:w}=mfe(d.has("favorites")?d.get("favorites")==="true":g.favorites),[S,k]=m.useState(h.globalFilter),{favorite:A,unfavorite:T}=gfe(),R=m.useCallback(async j=>{j!=null&&j.favorite?await T(j.project,j.name):await A(j.project,j.name),u()},[A,u,T]),P=m.useMemo(()=>[{Header:l(wfe,{isActive:b,onClick:w}),accessor:"favorite",Cell:({row:{original:j}})=>l(bfe,{value:j==null?void 0:j.favorite,onClick:()=>R(j)}),maxWidth:50,disableSortBy:!0},{Header:"Seen",accessor:"lastSeenAt",Cell:s9,sortType:"date",align:"center",maxWidth:85},{Header:"Type",accessor:"type",Cell:p9,align:"center",maxWidth:85},{Header:"Name",accessor:"name",minWidth:150,Cell:Qde,sortType:"alphanumeric",searchable:!0},{id:"tags",Header:"Tags",accessor:j=>{var I;return((I=j.tags)==null?void 0:I.map(({type:M,value:J})=>`${M}:${J}`).join(`
267
+ `))||""},Cell:ffe,width:80,searchable:!0},{Header:"Created",accessor:"createdAt",Cell:ch,sortType:"date",maxWidth:150},{Header:"Project ID",accessor:"project",Cell:({value:j})=>l(Ts,{title:j,to:`/projects/${j}`}),sortType:"alphanumeric",maxWidth:150,filterName:"project",searchable:!0},{Header:"State",accessor:"stale",Cell:Vpe,sortType:"boolean",maxWidth:120,filterName:"state",filterParsing:j=>j?"stale":"active"},{accessor:"description",Header:"Description",searchable:!0}],[b]),{data:_,getSearchText:O,getSearchContext:$}=Yh(P,S,s),z=m.useMemo(()=>(_==null?void 0:_.length)===0&&c?P9:_,[_,c]),{headerGroups:L,rows:B,prepareRow:Y,state:{sortBy:H},setHiddenColumns:ee}=Jt.useTable({columns:P,data:z,initialState:h,sortTypes:y,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0},Jt.useSortBy,Jt.useFlexLayout);return Od([{condition:!s.some(({tags:j})=>j==null?void 0:j.length),columns:["tags"]},{condition:r,columns:["type","createdAt","tags"]},{condition:o,columns:["lastSeenAt","stale"]}],ee,P),m.useEffect(()=>{const j={};j.sort=H[0].id,H[0].desc&&(j.order="desc"),S&&(j.search=S),b&&(j.favorites="true"),p(j,{replace:!0}),Ife({id:H[0].id,desc:H[0].desc||!1}),v(I=>({...I,favorites:!!b}))},[H,S,p,b]),t.length>0?x(yr,{isLoading:c,header:l(Tn,{title:`Feature toggles (${B.length<z.length?`${B.length} of ${z.length}`:z.length})`,actions:x(ve,{children:[l(q,{condition:!r,show:x(ve,{children:[l(ko,{initialValue:S,onChange:k,hasFilters:!0,getSearchContext:$}),l(Tn.Divider,{})]})}),l(Gr,{component:an,to:"/archive",underline:"always",sx:{marginRight:2,...Hi(e)},children:"View archive"}),l(q,{condition:!!((V=f==null?void 0:f.flags)!=null&&V.featuresExportImport),show:l(xt,{title:"Export current selection",arrow:!0,children:l(jt,{onClick:()=>a(!0),sx:j=>({marginRight:j.spacing(2)}),children:l(_9,{})})})}),l(jpe,{loading:!1,filter:{query:"",project:"default"}})]}),children:l(q,{condition:r,show:l(ko,{initialValue:S,onChange:k,hasFilters:!0,getSearchContext:$})})}),children:[l(Ls,{value:O(S),children:l(A1,{rows:B,headerGroups:L,prepareRow:Y})}),l(q,{condition:B.length===0,show:l(q,{condition:(S==null?void 0:S.length)>0,show:x(ar,{children:["No feature toggles found matching “",S,"”"]}),elseShow:l(ar,{children:"No feature toggles available. Get started by adding a new feature toggle."})})}),l(q,{condition:!!((W=f==null?void 0:f.flags)!=null&&W.featuresExportImport),show:l(_fe,{showExportDialog:i,data:z,onClose:()=>a(!1),environments:n})})]}):null},Ld=()=>{const{data:e,error:t}=Pn(Sx,$fe),n=m.useCallback(()=>{Jr(Sx).catch(console.warn)},[]);return{strategies:(e==null?void 0:e.strategies)||Lfe,refetchStrategies:n,loading:!t&&!e,error:t}},$fe=()=>fetch(Sx).then(bn("Strategy types")).then(e=>e.json()),Nfe={deprecated:!1,name:"flexibleRollout",displayName:"Gradual rollout",editable:!1,description:"Roll out to a percentage of your userbase, and ensure that the experience is the same for the user on each visit.",parameters:[{name:"rollout",type:"percentage",description:"",required:!1},{name:"stickiness",type:"string",description:"Used to defined stickiness",required:!0},{name:"groupId",type:"string",description:"",required:!0}]},Lfe=[Nfe],Sx=Rt("api/admin/strategies"),Dfe=Rt("api/admin/metrics/applications"),I9=(e={})=>{const t=async()=>fetch(Dfe,{method:"GET"}).then(bn("Applications data")).then(c=>c.json()),n="api/admin/metrics/applications",{data:r,error:o}=Pn(n,t,{...e}),[i,a]=m.useState(!o&&!r),s=()=>{Jr(n)};return m.useEffect(()=>{a(!o&&!r)},[r,o]),{applications:(r==null?void 0:r.applications)||[],error:o,loading:i,refetchApplications:s,APPLICATIONS_CACHE_KEY:n}},Mfe="_truncate_19sq2_2",Bfe="_fullwidth_19sq2_8",Ffe="_sectionPadding_19sq2_12",zfe="_horisontalScroll_19sq2_16",jfe="_listLink_19sq2_25",Ufe="_hideLt920_19sq2_36",Wfe="_hideLt600_19sq2_41",Hfe="_dataTableHeader_19sq2_45",Vfe="_titleText_19sq2_50",Gfe="_actions_19sq2_55",qfe="_switchWithLabel_19sq2_59",Yfe="_label_19sq2_62",Kfe="_emptyState_19sq2_71",Xfe="_toggleName_19sq2_79",Jfe="_toolbar_19sq2_84",Qfe="_toolbarButton_19sq2_90",Zfe="_error_19sq2_97",ehe="_headerTitle_19sq2_101",the="_listItem_19sq2_106",nhe="_section_19sq2_12",rhe="_contentPadding_19sq2_114",ohe="_contentSpacing_19sq2_118",ihe="_searchField_19sq2_122",Bu={truncate:Mfe,fullwidth:Bfe,sectionPadding:Ffe,horisontalScroll:zfe,listLink:jfe,hideLt920:Ufe,hideLt600:Wfe,dataTableHeader:Hfe,titleText:Vfe,actions:Gfe,switchWithLabel:qfe,label:Yfe,switch:"_switch_19sq2_59",emptyState:Kfe,toggleName:Xfe,toolbar:Jfe,toolbarButton:Qfe,error:Zfe,headerTitle:ehe,listItem:the,section:nhe,contentPadding:rhe,contentSpacing:ohe,searchField:ihe},q2=({apps:e})=>l(ca,{children:l(q,{condition:e.length>0,show:e.map(({appName:t,description:n,icon:r})=>x(Na,{className:Bu.listItem,children:[l(Zs,{children:l(Rd,{children:l(q,{condition:r,show:l(XE,{children:r}),elseShow:l(Tle,{})},`avatar_conditional_${t}`)})}),l(rn,{primary:l(an,{to:`/applications/${encodeURIComponent(t)}`,className:[Bu.listLink,Bu.truncate].join(" "),children:t}),secondary:n||"No description"})]},t))})});q2.propTypes={apps:fe.array.isRequired};fe.string,fe.any;fe.string,fe.func.isRequired,fe.string;fe.string,fe.object;const ahe=Ce.forwardRef(({icon:e,label:t,disabled:n,...r},o)=>x(qa,{disabled:n,style:{display:"flex",alignItems:"center"},...r,children:[l(e,{}),t]}));ahe.propTypes={icon:fe.object,label:fe.string,disabled:fe.bool};const she="_deprecated_nqviu_10",lhe="_formButtons_nqviu_14",che="_header_nqviu_18",uhe="_formContainer_nqviu_32",dhe="_inset_nqviu_38",phe="_parameter_menu_nqviu_42",fhe="_listcontainer_nqviu_52",hhe="_listItem_nqviu_56",mhe={"non-style-button":"_non-style-button_nqviu_1",deprecated:she,formButtons:lhe,header:che,formContainer:uhe,inset:dhe,parameter_menu:phe,listcontainer:fhe,listItem:hhe},ghe=({toggles:e})=>l(ca,{style:{textAlign:"left"},className:Bu.truncate,children:l(q,{condition:e.length>0,show:e.map(({name:t,description:n="-",enabled:r})=>x(Na,{children:[l(Zs,{children:l(q,{condition:!!r,show:l(xt,{title:"Enabled",arrow:!0,children:l(qle,{"aria-hidden":!1})}),elseShow:l(xt,{title:"Disabled",arrow:!0,children:l(Gle,{"aria-hidden":!1})})})}),l(rn,{primary:l(an,{to:`/features/view/${t}`,children:t},t),secondary:n})]},t))})}),vhe=({strategy:e,applications:t,toggles:n})=>{const r=yn(),{parameters:o=[]}=e,i=a=>a.length>0?a.map(({name:s,type:c,description:u,required:d},p)=>x(Na,{children:[l(q,{condition:d,show:l(Zs,{children:l(xt,{title:"Required parameter",arrow:!0,children:l(ha,{"aria-hidden":!1})})}),elseShow:l(Zs,{children:l(xt,{title:"Optional parameter",arrow:!0,children:l(Yle,{"aria-hidden":!1})})})}),l(rn,{primary:x("div",{children:[s," ",x("small",{children:["(",c,")"]})]}),secondary:u})]},`${s}-${p}`)):l(Na,{children:"No params"});return l("div",{className:mhe.listcontainer,children:x(Wn,{container:!0,children:[l(q,{condition:e.deprecated,show:l(Wn,{item:!0,children:l("h5",{style:{color:r.palette.error.main},children:"Deprecated"})})}),x(Wn,{item:!0,sm:12,md:12,children:[l("h6",{children:"Parameters"}),l("hr",{}),l(ca,{children:i(o)})]}),x(Wn,{item:!0,sm:12,md:n.length>0?6:12,children:[l("h6",{children:"Applications using this strategy"}),l("hr",{}),l(q2,{apps:t})]}),l(q,{condition:n.length>0,show:()=>x(Wn,{item:!0,sm:12,md:6,children:[l("h6",{children:"Toggles using this strategy"}),l("hr",{}),l(ghe,{toggles:n})]})})]})})},Ka=e=>J$()[e],nr=e=>{const t=Ka(e);if(!t)throw new Error(`Missing required path param: ${e}`);return t},yhe=()=>{const e=nr("name"),{strategies:t}=Ld(),{features:n=[]}=O2(),{applications:r}=I9(),o=pt(),i=n.filter(c=>{var u;return(u=c==null?void 0:c.environments)==null?void 0:u.flatMap(d=>d.strategies).some(d=>d&&d.name===e)}),a=t.find(c=>c.name===e),s=()=>{o(`/strategies/${e}/edit`)};return a?l(yr,{header:l(Tn,{title:a==null?void 0:a.name,subtitle:a==null?void 0:a.description,actions:l(q,{condition:a.editable,show:l($r,{permission:dh,"data-loading":!0,onClick:s,tooltipProps:{title:"Edit strategy"},children:l(di,{})})})}),children:l(Wn,{container:!0,children:l(Wn,{item:!0,xs:12,sm:12,children:l(vhe,{strategy:a,toggles:i,applications:r})})})}):null},bhe=C($e)(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",padding:e.spacing(0,1.5)})),whe=C(To)(({theme:e})=>({borderColor:e.palette.divider,height:e.spacing(3),margin:e.spacing(0,2)})),She=()=>l(whe,{orientation:"vertical",variant:"middle"}),O9=({children:e})=>l(bhe,{children:e});O9.Divider=She;const da=O9;var Y2={},xhe=An;Object.defineProperty(Y2,"__esModule",{value:!0});var $9=Y2.default=void 0,Che=xhe(Rn()),Ehe=_n,The=(0,Che.default)((0,Ehe.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),"LocationOn");$9=Y2.default=The;var K2={},khe=An;Object.defineProperty(K2,"__esModule",{value:!0});var N9=K2.default=void 0,Ahe=khe(Rn()),Rhe=_n,_he=(0,Ahe.default)((0,Rhe.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 3zm-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 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 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.5z"}),"People");N9=K2.default=_he;var X2={},Phe=An;Object.defineProperty(X2,"__esModule",{value:!0});var L9=X2.default=void 0,Ihe=Phe(Rn()),Ohe=_n,$he=(0,Ihe.default)((0,Ohe.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 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language");L9=X2.default=$he;var J2={},Nhe=An;Object.defineProperty(J2,"__esModule",{value:!0});var D9=J2.default=void 0,Lhe=Nhe(Rn()),Dhe=_n,Mhe=(0,Lhe.default)((0,Dhe.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"Code");D9=J2.default=Mhe;const Bhe=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.584 10H22a2 2 0 1 1 0 4h-5.416a5.001 5.001 0 0 1-9.168 0H2a2 2 0 1 1 0-4h5.416a5.001 5.001 0 0 1 9.168 0Z"})),ks=e=>Uhe[e]??e,Fhe=e=>l(JS,{...e,component:t=>l(Bhe,{...t}),inheritViewBox:!0}),zhe=e=>{switch(e){case"default":return F2;case"remoteAddress":return L9;case"flexibleRollout":return Fhe;case"userWithId":return N9;case"applicationHostname":return $9;default:return D9}},jhe=({strategyName:e})=>{const t=yn(),n=zhe(e);return l(n,{style:{color:t.palette.neutral.main}})},Uhe={applicationHostname:"Hosts",default:"Standard",flexibleRollout:"Gradual rollout",gradualRolloutRandom:"Randomized",gradualRolloutSessionId:"Sessions",gradualRolloutUserId:"Users",remoteAddress:"IPs",userWithId:"UserIDs"},Rp="api/admin/strategies",Q2=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0}),o=m.useCallback(async u=>{const d=t(Rp,{method:"POST",body:JSON.stringify(u)});return e(d.caller,d.id)},[t,e]),i=m.useCallback(async u=>{const d=`${Rp}/${u.name}`,p=t(d,{method:"PUT",body:JSON.stringify(u)});try{return await e(p.caller,p.id)}catch(f){throw f}},[t,e]),a=m.useCallback(async u=>{const d=`${Rp}/${u.name}`,p=t(d,{method:"DELETE"});try{return await e(p.caller,p.id)}catch(f){throw f}},[t,e]),s=m.useCallback(async u=>{const d=`${Rp}/${u.name}/deprecate`,p=t(d,{method:"POST"});try{return await e(p.caller,p.id)}catch(f){throw f}},[t,e]),c=m.useCallback(async u=>{const d=`${Rp}/${u.name}/reactivate`,p=t(d,{method:"POST"});try{return await e(p.caller,p.id)}catch(f){throw f}},[t,e]);return{createStrategy:o,updateStrategy:i,removeStrategy:a,deprecateStrategy:s,reactivateStrategy:c,errors:n,loading:r}},Whe=Ce.forwardRef((e,t)=>{const n=id(e.permission,e.projectId,e.environmentId);return l(M9,{...e,access:n,ref:t})}),Hhe=Ce.forwardRef((e,t)=>{const n=D1(e.permission,e.projectId,e.environmentId);return l(M9,{...e,access:n,ref:t})}),M9=Ce.forwardRef((e,t)=>{const{access:n,permission:r,tooltip:o,disabled:i,projectId:a,environmentId:s,checked:c,onChange:u,...d}=e;return l(Id,{title:O1(n,o),arrow:!0,children:l("span",{"data-loading":!0,children:l(fa,{"data-testid":"toggle-switch",onChange:u,disabled:i||!n,checked:c,ref:t,...d})})})}),B9=Ce.forwardRef((e,t)=>typeof e.projectId<"u"&&typeof e.environmentId<"u"?l(Whe,{...e,projectId:e.projectId,environmentId:e.environmentId,ref:t}):l(Hhe,{...e,ref:t})),Vhe=({deprecated:e,disabled:t,onToggle:n})=>{const r=()=>{n(e)},o=Cl(),i=D1(dh),a=m.useMemo(()=>i?t?"You cannot disable default strategy":e?"Excluded from strategy list":"Included in strategy list":"",[e,t,i]);return l(xt,{title:a,describeChild:!0,arrow:!0,children:l("div",{id:o,children:l(B9,{checked:!e,permission:dh,onClick:r,disabled:t,inputProps:{"aria-labelledby":o}})})})},Ghe=({strategy:e,onClick:t})=>{const n=Cl();return l(q,{condition:e==null?void 0:e.editable,show:l($r,{onClick:t,permission:dh,tooltipProps:{title:"Edit strategy"},children:l(di,{})}),elseShow:l(xt,{title:"You cannot edit a built-in strategy",arrow:!0,children:l("div",{id:n,children:l(jt,{disabled:!0,size:"large",children:l(di,{"aria-labelledby":n})})})})})},qhe=({strategy:e,onClick:t})=>{const n=Cl();return l(q,{condition:e==null?void 0:e.editable,show:l($r,{onClick:t,permission:vpe,tooltipProps:{title:"Delete strategy"},children:l(vo,{})}),elseShow:l(xt,{title:"You cannot delete a built-in strategy",arrow:!0,children:l("div",{id:n,children:l(jt,{disabled:!0,size:"large",children:l(vo,{"aria-labelledby":n})})})})})},Yhe=C("div")(({theme:e,color:t="neutral",icon:n})=>({display:"inline-flex",alignItems:"center",padding:e.spacing(n?.375:.625,1),borderRadius:e.shape.borderRadius,fontSize:e.fontSizes.smallerBody,fontWeight:e.fontWeight.bold,lineHeight:1,...t==="disabled"?{color:e.palette.text.secondary,background:e.palette.background.paper,border:`1px solid ${e.palette.divider}`}:{backgroundColor:e.palette[t].light,color:e.palette[t].contrastText,border:`1px solid ${e.palette[t].border}`}})),Khe=C("div")(({theme:e,color:t="neutral",iconRight:n=!1})=>({display:"flex",color:t==="disabled"?e.palette.action.disabled:e.palette[t].main,margin:n?e.spacing(0,0,0,.5):e.spacing(0,.5,0,0)})),o5=(e,t,n=!1)=>l(Khe,{color:e,iconRight:n,children:l(q,{condition:!!(t!=null&&t.props.sx),show:t,elseShow:()=>m.cloneElement(t,{sx:{fontSize:"16px"}})})}),qt=m.forwardRef(({as:e="div",color:t="neutral",icon:n,iconRight:r,className:o,sx:i,children:a,...s},c)=>x(Yhe,{as:e,tabIndex:0,color:t,icon:n,className:o,sx:i,...s,ref:c,children:[l(q,{condition:!!n&&!r,show:o5(t,n)}),a,l(q,{condition:!!n&&!!r,show:o5(t,n,!0)})]})),i5=C("span")(({theme:e})=>({display:"inline-grid",alignItems:"center",outline:0,cursor:"pointer","&:is(:focus-visible, :active) > *, &:hover > *":{outlineStyle:"solid",outlineWidth:2,outlineOffset:0,outlineColor:e.palette.primary.main,borderRadius:"100%",color:e.palette.primary.main},"& svg":{fontSize:e.fontSizes.mainHeader,color:e.palette.action.active,marginLeft:e.spacing(.5)}})),Xa=({tooltip:e,htmlTooltip:t,placement:n,children:r})=>t?l(Dc,{title:e,placement:n,arrow:!0,children:l(i5,{tabIndex:0,"aria-label":"Help",children:r??l(Nv,{})})}):l(xt,{title:e,placement:n,arrow:!0,children:l(i5,{tabIndex:0,"aria-label":"Help",children:r??l(Nv,{})})}),Xb=({children:e})=>l(se,{component:"span",variant:"body2",sx:t=>({marginBottom:t.spacing(2)}),children:e}),F9=({alert:e})=>{const t=x(ve,{children:[l(Xb,{children:"We recommend you to use the predefined strategies like Gradual rollout with constraints instead of creating a custom strategy."}),x(Xb,{children:["If you decide to create a custom strategy be aware of:",x("ul",{children:[l("li",{children:"They require writing custom code and deployments for each SDK you’re using."}),l("li",{children:"Differing implementation in each SDK will cause toggles to evaluate differently"}),l("li",{children:"Requires a lot of configuration in both Unleash admin UI and the SDK."})]})]}),l(Xb,{children:"Constraints don’t have these problems. They’re configured once in the admin UI and behave in the same way in each SDK without further configuration."})]});return e?l(Vt,{severity:"info",sx:n=>({marginBottom:n.spacing(3)}),children:t}):l($e,{sx:n=>({maxWidth:"720px",padding:n.spacing(4,2),margin:"0 auto"}),children:t})},Xhe=()=>{const e=tr("(max-width:700px)"),t=pt();return l(q,{condition:e,show:l($r,{"data-testid":vP,onClick:()=>t("/strategies/create"),permission:Fv,size:"large",tooltipProps:{title:"New custom strategy"},children:l(ha,{})}),elseShow:l(Po,{onClick:()=>t("/strategies/create"),color:"primary",permission:Fv,"data-testid":vP,children:"New custom strategy"})})},Jhe=C($e)(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(2)})),Qhe=C(qt)(({theme:e})=>({marginLeft:e.spacing(1),display:"inline-block"})),Zhe=C(se)(({theme:e})=>({display:"flex",fontSize:e.fontSizes.mainHeader})),z9=({title:e,description:t,link:n})=>x(Zhe,{children:[e,l(Xa,{htmlTooltip:!0,tooltip:x(ve,{children:[l(se,{variant:"body2",component:"p",sx:r=>({marginBottom:r.spacing(1)}),children:t}),l(Gr,{href:n,target:"_blank",variant:"body2",children:"Read more in the documentation"})]})})]}),eme=()=>x($e,{sx:e=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:e.spacing(1.5)}),children:[l(z9,{title:"Custom strategies",description:"Custom activation strategies let you define your own activation strategies to use with Unleash.",link:"https://docs.getunleash.io/reference/custom-activation-strategies"}),l(Xhe,{})]}),tme=()=>l($e,{children:l(z9,{title:"Predefined strategies",description:"Activation strategies let you enable a feature only for a specified audience. Different strategies use different parameters. Predefined strategies are bundled with Unleash.",link:"https://docs.getunleash.io/reference/activation-strategies"})}),nme=()=>{const e=pt(),[t,n]=m.useState({show:!1,title:"",onConfirm:()=>{}}),{strategies:r,refetchStrategies:o,loading:i}=Ld(),{removeStrategy:a,deprecateStrategy:s,reactivateStrategy:c}=Q2(),{setToastData:u,setToastApiError:d}=$t(),p=m.useMemo(()=>{if(i){const L=Array(5).fill({name:"Context name",description:"Context description when loading"});return{all:L,predefined:L,custom:L}}const z=r.map(({name:L,description:B,editable:Y,deprecated:H})=>({name:L,description:B,editable:Y,deprecated:H}));return{all:z,predefined:z.filter(L=>!L.editable),custom:z.filter(L=>L.editable)}},[r,i]),f=m.useCallback(z=>L=>{n(L?{show:!0,title:"Really reactivate strategy?",onConfirm:async()=>{try{await c(z),o(),u({type:"success",title:"Success",text:"Strategy reactivated successfully"})}catch(B){d(gt(B))}}}:{show:!0,title:"Really deprecate strategy?",onConfirm:async()=>{try{await s(z),o(),u({type:"success",title:"Success",text:"Strategy deprecated successfully"})}catch(B){d(gt(B))}}})},[s,c,o,d,u]),h=m.useCallback(z=>{n({show:!0,title:"Really delete strategy?",onConfirm:async()=>{try{await a(z),o(),u({type:"success",title:"Success",text:"Strategy deleted successfully"})}catch(L){d(gt(L))}}})},[a,o,d,u]),g=m.useCallback(z=>{e(`/strategies/${z.name}/edit`)},[e]),v=m.useMemo(()=>[{id:"Icon",Cell:()=>l($e,{"data-loading":!0,sx:{pl:3,pr:1,display:"flex",alignItems:"center"},children:l(DL,{color:"disabled"})})},{id:"Name",Header:"Name",accessor:z=>ks(z.name),width:"90%",Cell:({row:{original:{name:z,description:L,deprecated:B}}})=>l(Ts,{"data-loading":!0,title:ks(z),subtitle:L,to:`/strategies/${z}`,children:l(q,{condition:B,show:()=>l(Qhe,{color:"disabled",children:"Disabled"})})}),sortType:"alphanumeric"},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:z}})=>x(da,{children:[l(Vhe,{deprecated:z.deprecated,onToggle:f(z)}),l(q,{condition:z.editable,show:x(ve,{children:[l(da.Divider,{}),l(Ghe,{strategy:z,onClick:()=>g(z)}),l(qhe,{strategy:z,onClick:()=>h(z)})]})})]}),width:150,minWidth:120,disableSortBy:!0},{accessor:"description",disableSortBy:!0},{accessor:"sortOrder",sortType:"number"}],[f,g,h]),b=m.useMemo(()=>({sortBy:[{id:"Name",desc:!1}],hiddenColumns:["description","sortOrder"]}),[]),{getTableProps:y,getTableBodyProps:w,headerGroups:S,rows:k,prepareRow:A}=Jt.useTable({columns:v,data:p.predefined,initialState:b,sortTypes:qo,autoResetSortBy:!1,disableSortRemove:!0},Jt.useSortBy),{getTableProps:T,getTableBodyProps:R,headerGroups:P,rows:_,prepareRow:O}=Jt.useTable({columns:v,data:p.custom,initialState:b,sortTypes:qo,autoResetSortBy:!1,disableSortRemove:!0},Jt.useSortBy),$=()=>{t==null||t.onConfirm(),n(z=>({...z,show:!1}))};return x(Jhe,{children:[x(yr,{isLoading:i,header:l(Tn,{children:l(tme,{})}),children:[x($e,{children:[x(Gi,{...y(),children:[l(Vi,{headerGroups:S}),l(Wi,{...w(),children:k.map(z=>(A(z),l(ui,{hover:!0,...z.getRowProps(),children:z.cells.map(L=>l(pi,{...L.getCellProps(),children:L.render("Cell")}))})))})]}),l(q,{condition:k.length===0,show:l(ar,{children:"No strategies available."})})]}),l(vr,{open:t.show,onClick:$,title:t==null?void 0:t.title,onClose:()=>n(z=>({...z,show:!1}))})]}),x(yr,{isLoading:i,header:l(Tn,{children:l(eme,{})}),children:[x($e,{children:[x(Gi,{...T(),children:[l(Vi,{headerGroups:P}),l(Wi,{...R(),children:_.map(z=>(O(z),l(ui,{hover:!0,...z.getRowProps(),children:z.cells.map(L=>l(pi,{...L.getCellProps(),children:L.render("Cell")}))})))})]}),l(q,{condition:_.length===0,show:l(F9,{})})]}),l(vr,{open:t.show,onClick:$,title:t==null?void 0:t.title,onClose:()=>n(z=>({...z,show:!1}))})]})]})},M1=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0});return{createTag:async c=>{const d=t("api/admin/tag-types",{method:"POST",body:JSON.stringify(c)});try{return await e(d.caller,d.id)}catch(p){throw p}},validateTagName:async c=>{const d=t("api/admin/tag-types/validate",{method:"POST",body:JSON.stringify({name:c})});try{return await e(d.caller,d.id)}catch(p){throw p}},updateTagType:async(c,u)=>{const d=`api/admin/tag-types/${c}`,p=t(d,{method:"PUT",body:JSON.stringify(u)});try{return await e(p.caller,p.id)}catch(f){throw f}},deleteTagType:async c=>{const u=`api/admin/tag-types/${c}`,d=t(u,{method:"DELETE"});try{return await e(d.caller,d.id)}catch(p){throw p}},errors:n,loading:r}},rme=(e={})=>{const t=async()=>{const c=Rt("api/admin/tag-types");return(await fetch(c,{method:"GET"}).then(bn("Tag types"))).json()},n="api/admin/tag-types",{data:r,error:o}=Pn(n,t,e),[i,a]=m.useState(!o&&!r),s=()=>{Jr(n)};return m.useEffect(()=>{a(!o&&!r)},[r,o]),{tagTypes:(r==null?void 0:r.tagTypes)||[],error:o,loading:i,refetch:s}},ome=()=>{const e=pt(),t=tr("(max-width:700px)");return l(q,{condition:t,show:l($r,{onClick:()=>e("/tag-types/create"),size:"large",permission:ph,children:l(ha,{})}),elseShow:l(Po,{permission:ph,onClick:()=>e("/tag-types/create"),children:"New tag type"})})},ime=()=>{const[e,t]=m.useState({open:!1}),n=pt(),{deleteTagType:r}=M1(),{tagTypes:o,refetch:i,loading:a}=rme(),{setToastData:s,setToastApiError:c}=$t(),u=m.useMemo(()=>a?Array(5).fill({name:"Tag type name",description:"Tag type description when loading"}):o.map(({name:k,description:A})=>({name:k,description:A})),[o,a]),d=m.useMemo(()=>[{id:"Icon",Cell:()=>l($e,{"data-loading":!0,sx:{pl:2,pr:1,display:"flex",alignItems:"center"},children:l(zle,{color:"disabled"})}),disableGlobalFilter:!0},{Header:"Name",accessor:"name",width:"90%",Cell:({row:{original:{name:k,description:A}}})=>l(Ts,{"data-loading":!0,title:k,subtitle:A}),sortType:"alphanumeric"},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:k}})=>x($e,{sx:{display:"flex",justifyContent:"flex-end"},"data-loading":!0,children:[l($r,{onClick:()=>n(`/tag-types/edit/${k.name}`),permission:ph,tooltipProps:{title:"Edit tag type"},children:l(di,{})}),l($r,{permission:wpe,tooltipProps:{title:"Delete tag type"},onClick:()=>t({open:!0,name:k.name}),children:l(vo,{})})]}),width:150,disableGlobalFilter:!0,disableSortBy:!0},{accessor:"description",disableSortBy:!0}],[n]),p=m.useMemo(()=>({sortBy:[{id:"name",desc:!1}],hiddenColumns:["description"]}),[]),{getTableProps:f,getTableBodyProps:h,headerGroups:g,rows:v,prepareRow:b,state:{globalFilter:y},setGlobalFilter:w}=Jt.useTable({columns:d,data:u,initialState:p,sortTypes:qo,autoResetGlobalFilter:!1,autoResetSortBy:!1,disableSortRemove:!0},Jt.useGlobalFilter,Jt.useSortBy),S=async()=>{try{e.name&&(await r(e.name),i(),t({open:!1}),s({type:"success",show:!0,title:"Successfully deleted tag type."}))}catch(k){c(gt(k))}};return x(yr,{isLoading:a,header:l(Tn,{title:`Tag types (${v.length})`,actions:x(ve,{children:[l(ko,{initialValue:y,onChange:w}),l(Tn.Divider,{}),l(ome,{})]})}),children:[l(Ls,{value:y,children:x(Gi,{...f(),children:[l(Vi,{headerGroups:g}),l(Wi,{...h(),children:v.map(k=>(b(k),l(ui,{hover:!0,...k.getRowProps(),children:k.cells.map(A=>l(pi,{...A.getCellProps(),children:A.render("Cell")}))})))})]})}),l(q,{condition:v.length===0,show:l(q,{condition:(y==null?void 0:y.length)>0,show:x(ar,{children:["No tags found matching “",y,"”"]}),elseShow:l(ar,{children:"No tags available. Get started by adding one."})})}),l(vr,{title:"Really delete Tag type?",open:e.open,onClick:S,onClose:()=>{t({open:!1})}})]})},B1=(e={})=>{const t=async()=>{const c=Rt("api/admin/addons");return(await fetch(c,{method:"GET"}).then(bn("Addons"))).json()},n="api/admin/addons",{data:r,error:o}=Pn(n,t,e),[i,a]=m.useState(!o&&!r),s=m.useCallback(()=>{Jr(n)},[n]);return m.useEffect(()=>{a(!o&&!r)},[r,o]),{addons:(r==null?void 0:r.addons)||[],providers:(r==null?void 0:r.providers)||[],error:o,loading:i,refetchAddons:s}},j9=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0}),o="api/admin/addons",i=async c=>{const d=t(o,{method:"POST",body:JSON.stringify(c)});return e(d.caller,d.id)},a=async c=>{const u=`${o}/${c}`,d=t(u,{method:"DELETE"});return await e(d.caller,d.id)},s=m.useCallback(async c=>{const u=`${o}/${c.id}`,d=t(u,{method:"PUT",body:JSON.stringify(c)});return e(d.caller,d.id)},[t,e]);return{createAddon:i,updateAddon:s,removeAddon:a,errors:n,loading:r}},Xh=({icon:e})=>l($e,{sx:{pl:2,pr:1,display:"flex",alignItems:"center"},children:e}),ame="/static/slack-c0af31c6.svg",sme="/static/jira-d9eb9af9.svg",lme="/static/webhooks-ffa904ac.svg",cme="/static/teams-62e72076.svg",ume="/static/datadog-591b6a73.svg",_p={width:"32.5px",height:"32.5px",marginRight:"16px"},U9=({name:e})=>{switch(e){case"slack":case"slack-app":return l("img",{style:_p,alt:"Slack logo",src:oa(ame)});case"jira-comment":return l("img",{style:_p,alt:"JIRA logo",src:oa(sme)});case"webhook":return l("img",{style:_p,alt:"Generic Webhook logo",src:oa(lme)});case"teams":return l("img",{style:_p,alt:"Microsoft Teams logo",src:oa(cme)});case"datadog":return l("img",{style:_p,alt:"Datadog logo",src:oa(ume)});default:return l(Rd,{children:l(Ple,{})})}},dme=e=>{const[t,n]=m.useState(e),r=m.useCallback(()=>n(e),[e]);return m.useEffect(()=>{n(e)},[e]),[t,n,r]},pme=({toggleAddon:e,setShowDelete:t,setDeletedAddon:n,original:r})=>{const o=pt(),[i,a,s]=dme(r.enabled),c=()=>{a(!i),e(r).catch(s)};return x(da,{children:[l(xt,{title:i?`Disable addon ${r.provider}`:`Enable addon ${r.provider}`,arrow:!0,describeChild:!0,children:l(B9,{permission:bx,checked:i,onClick:c})}),l(da.Divider,{}),l($r,{permission:bx,tooltipProps:{title:"Edit Addon"},onClick:()=>o(`/addons/edit/${r.id}`),children:l(di,{})}),l($r,{permission:Spe,tooltipProps:{title:"Remove Addon"},onClick:()=>{n(r),t(!0)},children:l(vo,{})})]})},fme=C($e)(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",wordBreak:"break-word",padding:e.spacing(1,2)})),hme=C("span")(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"1",lineClamp:"1"})),mme=C("span")(({theme:e})=>({color:e.palette.text.secondary,overflow:"hidden",textOverflow:"ellipsis",fontSize:"inherit",WebkitLineClamp:"1",lineClamp:"1",display:"-webkit-box",WebkitBoxOrient:"vertical"})),bs=({value:e,subtitle:t,afterTitle:n})=>{const{searchQuery:r}=Ol();return x(fme,{children:[x(hme,{style:{WebkitLineClamp:t?1:2,lineClamp:t?1:2},"data-loading":!0,children:[l(Ya,{search:r,children:e}),n]}),l(q,{condition:!!t,show:()=>l(mme,{"data-loading":!0,children:l(Ya,{search:r,children:t})})})]})},gme=C(qt)(({theme:e})=>({cursor:"pointer",marginLeft:e.spacing(1)})),W9=({provider:e})=>l(bs,{value:e.displayName,subtitle:e.description,afterTitle:l(q,{condition:!!e.deprecated,show:l(Dc,{title:e.deprecated,arrow:!0,children:l(gme,{color:"neutral",children:"Deprecated"})})})}),vme=()=>{const{refetchAddons:e,addons:t,providers:n,loading:r}=B1(),{updateAddon:o,removeAddon:i}=j9(),{setToastData:a,setToastApiError:s}=$t(),[c,u]=m.useState(!1),[d,p]=m.useState({id:0,provider:"",description:"",enabled:!1,events:[],parameters:{}}),f=m.useMemo(()=>r?Array(5).fill({name:"Addon name",description:"Addon description when loading"}):t.map(R=>({...R})),[t,r]),h=m.useCallback(async R=>{try{await o({...R,enabled:!R.enabled}),e(),a({type:"success",title:"Success",text:R.enabled?"Addon is now disabled":"Addon is now enabled"})}catch(P){throw s(gt(P)),P}},[s,e,a,o]),g=m.useMemo(()=>[{accessor:"id",Cell:({row:{original:{provider:R}}})=>l(Xh,{icon:l(U9,{name:R})}),disableSortBy:!0},{Header:"Name",accessor:"provider",width:"90%",Cell:({row:{original:{provider:R,description:P}}})=>l(W9,{provider:{...n.find(({name:_})=>_===R)||{displayName:R},description:P}}),sortType:"alphanumeric"},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:R}})=>l(pme,{setShowDelete:u,toggleAddon:h,setDeletedAddon:p,original:R},R.id),width:150,disableSortBy:!0},{accessor:"description",disableSortBy:!0}],[h]),v=m.useMemo(()=>({sortBy:[{id:"provider",desc:!1},{id:"id",desc:!1}],hiddenColumns:["description"]}),[]),{getTableProps:b,getTableBodyProps:y,headerGroups:w,rows:S,prepareRow:k,state:{globalFilter:A}}=Jt.useTable({columns:g,data:f,initialState:v,sortTypes:qo,autoResetGlobalFilter:!1,autoResetSortBy:!1,disableSortRemove:!0},Jt.useSortBy),T=async R=>{try{await i(R.id),e(),a({type:"success",title:"Success",text:"Deleted addon successfully"})}catch(P){s(gt(P))}};return x(yr,{isLoading:r,header:l(Tn,{title:`Configured addons (${S.length})`}),sx:R=>({marginBottom:R.spacing(2)}),children:[x(Gi,{...b(),children:[l(Vi,{headerGroups:w}),l(Wi,{...y(),children:S.map(R=>(k(R),l(ui,{hover:!0,...R.getRowProps(),children:R.cells.map(P=>l(pi,{...P.getCellProps(),padding:"none",children:P.render("Cell")}))})))})]}),l(q,{condition:S.length===0,show:l(q,{condition:(A==null?void 0:A.length)>0,show:x(ar,{children:["No addons found matching “",A,"”"]}),elseShow:l(ar,{children:"No addons configured"})})}),l(vr,{open:c,onClick:()=>{T(d),u(!1)},onClose:()=>{u(!1)},title:"Confirm deletion",children:l("div",{children:"Are you sure you want to delete this Addon?"})})]})},yme=({provider:e})=>{const t=pt();return l(Po,{permission:v9,variant:"outlined",onClick:()=>{t(`/addons/create/${e.name}`)},children:"Configure"})},bme=({providers:e,loading:t})=>{const n=m.useMemo(()=>t?Array(5).fill({name:"Provider name",description:"Provider description when loading"}):e.map(({name:p,displayName:f,description:h,deprecated:g,installation:v})=>({name:p,displayName:f,description:h,deprecated:g,installation:v})),[e,t]),r=m.useMemo(()=>[{id:"Icon",Cell:({row:{original:{name:p}}})=>l(Xh,{icon:l(U9,{name:p})})},{Header:"Name",accessor:"name",width:"90%",Cell:({row:{original:p}})=>l(W9,{provider:p}),sortType:"alphanumeric"},{id:"Actions",align:"center",Cell:({row:{original:p}})=>l(da,{children:l(yme,{provider:p})}),width:150,disableSortBy:!0},{accessor:"description",disableSortBy:!0}],[]),o=m.useMemo(()=>({sortBy:[{id:"name",desc:!1}],hiddenColumns:["description"]}),[]),{getTableProps:i,getTableBodyProps:a,headerGroups:s,rows:c,prepareRow:u,state:{globalFilter:d}}=Jt.useTable({columns:r,data:n,initialState:o,sortTypes:qo,autoResetGlobalFilter:!1,autoResetSortBy:!1,disableSortRemove:!0},Jt.useSortBy);return x(yr,{isLoading:t,header:l(Tn,{title:`Available addons (${c.length})`}),children:[x(Gi,{...i(),children:[l(Vi,{headerGroups:s}),l(Wi,{...a(),children:c.map(p=>(u(p),l(ui,{hover:!0,...p.getRowProps(),children:p.cells.map(f=>l(pi,{...f.getCellProps(),children:f.render("Cell")}))})))})]}),l(q,{condition:c.length===0,show:l(q,{condition:(d==null?void 0:d.length)>0,show:x(ar,{children:["No providers found matching “",d,"”"]}),elseShow:l(ar,{children:"No providers available."})})})]})},wme=()=>{const{providers:e,addons:t,loading:n}=B1();return x(ve,{children:[l(q,{condition:t.length>0,show:l(vme,{})}),l(bme,{loading:n,providers:e})]})},Fc=()=>new URLSearchParams(Ro().search),Sme=({children:e,from:t,to:n,style:r,...o})=>l("div",{style:{background:`linear-gradient(${t}, ${n})`,height:"100%",width:"100%",position:"relative",...r},...o,children:e}),xme=e=>m.createElement("svg",{id:"bg",width:"100%",height:"100%",viewBox:"0 0 622 318",fill:"none",...e},m.createElement("defs",null,m.createElement("style",null,".cls-1{fill:#fff;}.cls-2{fill:#1a4049;}.cls-3{fill:#817afe;}")),m.createElement("circle",{className:"cls-1",cx:125.62,cy:125.62,r:80}),m.createElement("polygon",{className:"cls-1",points:"137.05 91.33 137.05 114.19 137.05 137.05 159.9 137.05 159.9 114.19 159.9 91.33 137.05 91.33"}),m.createElement("polygon",{className:"cls-1",points:"114.19 114.19 114.19 91.33 91.33 91.33 91.33 114.19 91.33 137.05 91.33 159.9 114.19 159.9 137.05 159.9 137.05 137.05 114.19 137.05 114.19 114.19"}),m.createElement("polygon",{className:"cls-2",points:"137.05 91.33 137.05 114.19 137.05 137.05 159.9 137.05 159.9 114.19 159.9 91.33 137.05 91.33"}),m.createElement("polygon",{className:"cls-2",points:"114.19 114.19 114.19 91.33 91.33 91.33 91.33 114.19 91.33 137.05 91.33 159.9 114.19 159.9 137.05 159.9 137.05 137.05 114.19 137.05 114.19 114.19"}),m.createElement("rect",{className:"cls-3",x:137.05,y:137.05,width:22.86,height:22.86}),m.createElement("path",{className:"cls-1",d:"M251.58,139.13V112.77h11.93v25.06c0,7.36,3.91,12.2,11.27,12.2s11.27-4.84,11.27-12.2V112.77h12v26.36c0,12.67-8.48,21.8-23.1,21.8C260.06,160.93,251.58,151.8,251.58,139.13Z"}),m.createElement("path",{className:"cls-1",d:"M321.91,159.9H310.08V112.77h11.83v7.92a17.93,17.93,0,0,1,15.65-9c11.83,0,19.66,8.67,19.66,20.68V159.9h-12V134.75c0-7.45-4.38-12.39-11.46-12.39s-11.83,5-11.83,12.39Z"}),m.createElement("path",{className:"cls-1",d:"M369.42,91.34h11.92V159.9H369.42Z"}),m.createElement("path",{className:"cls-1",d:"M441.24,137v1.3H403.79c.47,7.36,5.87,13,13.69,13,7.55,0,10.62-3.82,11.46-5.12h11.74c-.75,4.84-7.17,15-23.2,15-15.27,0-25.61-10.61-25.61-24.77,0-14.63,10.24-24.78,24.68-24.78S441.24,121.62,441.24,137Zm-37.08-6.9h24.6c-1.77-6-6.15-9.31-12.21-9.31C410.12,120.78,405.65,124.23,404.16,130.09Z"}),m.createElement("path",{className:"cls-1",d:"M467.78,130.37h15.47c0-5.68-4.29-9.31-11.27-9.31-6.62,0-9,3.54-9.78,4.75h-12c1-4.94,6.89-14.25,21.8-14.25,14.62,0,22.73,7.64,22.73,18.81V146.3c0,2.89,1,4,3.72,4.29v9.59h-3.72c-6.06-.09-9.69-2.33-11-6.52-2.23,3.45-7.26,7.27-15.27,7.27-11.09,0-19.47-6.24-19.47-15.93S456.14,130.37,467.78,130.37Zm15.47,12.11v-4H469.74c-5.59,0-9,2-9,6.33,0,4.57,4.29,7.27,10.25,7.27C477.66,152.08,483.25,148.82,483.25,142.48Z"}),m.createElement("path",{className:"cls-1",d:"M523.12,140.62c-10.34-.74-17.33-5.59-17.33-14.72,0-8.85,8.1-14.44,20.77-14.44,17,0,21.8,8.76,23.1,13.32H537.09c-.84-1-3.54-4.28-10.62-4.28-5.68,0-8.66,1.86-8.66,4.75,0,2.61,2,4.29,6.7,4.94l8,.84c12.77,1.11,18,6,18,15.27,0,8.85-7.36,14.91-21.8,14.91-17.51,0-23.19-10.16-24.12-14.53h12.76c.47,1.11,3.35,5.31,11.36,5.31,6.62,0,9.69-2.24,9.69-5.22s-1.67-4.66-7-5.31C528.05,141.18,526.38,141,523.12,140.62Z"}),m.createElement("path",{className:"cls-1",d:"M571.55,159.9H559.72V91.34h11.83v29.35a17.93,17.93,0,0,1,15.65-9c11.83,0,19.66,8.67,19.66,20.68V159.9h-12V134.75c0-7.45-4.38-12.39-11.46-12.39s-11.83,5-11.83,12.39Z"})),Cme=C(Sme)(({theme:e})=>({display:"flex",justifyContent:"center",borderTopLeftRadius:e.shape.borderRadiusLarge,[e.breakpoints.down("md")]:{borderTopLeftRadius:e.shape.borderRadiusLarge,borderTopRightRadius:e.shape.borderRadiusLarge},[e.breakpoints.down("sm")]:{borderTopLeftRadius:"0",borderTopRightRadius:"0"}})),Eme=C("div")(({theme:e})=>({padding:e.spacing(12,8),color:e.palette.common.white,position:"relative",textAlign:"right",[e.breakpoints.down("md")]:{padding:e.spacing(6,4)},[e.breakpoints.down("sm")]:{padding:e.spacing(6,2)}})),Tme=C(se)(({theme:e})=>({color:e.palette.common.white,marginBottom:e.spacing(2),fontSize:e.spacing(4),marginTop:e.spacing(10),[e.breakpoints.down("md")]:{display:"none"}})),kme=C(se)(({theme:e})=>({[e.breakpoints.down("md")]:{display:"none"},fontSize:e.spacing(4),fontWeight:"normal"})),Ame=C("div")(({theme:e})=>({position:"absolute",[e.breakpoints.up("md")]:{bottom:"-50px",left:"-50px",display:"flex",flexDirection:"column"},[e.breakpoints.down("md")]:{top:"9px"}})),H9=e=>({width:"200px",[e.breakpoints.up("md")]:{width:"240px",height:"200px"}}),Rme=C(xme)(({theme:e})=>({...H9(e)})),_me=C(nL)(({theme:e})=>({...H9(e)})),V9=({title:e})=>{const t=yn(),n=tr(t.breakpoints.down("md"));return x(Cme,{from:t.palette.loginGradient.from,to:t.palette.loginGradient.to,children:[x(Eme,{children:[l(Tme,{variant:"h1",children:e}),l(kme,{children:"Committed to creating new ways of developing software"})]}),l(Ame,{children:l(q,{condition:n,show:l(Rme,{"aria-label":"Unleash logo"}),elseShow:l(_me,{"aria-label":"Unleash logo"})})})]})},Pme=C("div")(({theme:e})=>({padding:e.spacing(11),background:e.palette.background.application,display:"flex",[e.breakpoints.down("md")]:{flexDirection:"column"},[e.breakpoints.down("sm")]:{padding:"0"},minHeight:"100vh"})),Ime=C("header")(({theme:e})=>({width:"40%",borderRadius:e.shape.borderRadius,[e.breakpoints.down("md")]:{borderRadius:"0",width:"100%",minHeight:"auto"}})),Ome=C("main")(({theme:e})=>({width:"60%",flex:"1",borderTopRightRadius:e.shape.borderRadiusLarge,borderBottomRightRadius:e.shape.borderRadiusLarge,backgroundColor:e.palette.background.paper,position:"relative",[e.breakpoints.down("md")]:{borderTopRightRadius:"0",borderBottomLeftRadius:e.shape.borderRadiusLarge,borderBottomRightRadius:e.shape.borderRadiusLarge,width:"100%",position:"static",minHeight:"auto"},[e.breakpoints.down("sm")]:{borderRadius:"0"}})),$me=C("div")(({theme:e})=>({display:"flex",justifyContent:"center",height:"100%",padding:e.spacing(12,6),[e.breakpoints.down("md")]:{padding:e.spacing(4,4)},[e.breakpoints.down("sm")]:{padding:e.spacing(4,2)}})),F1=({children:e,BannerComponent:t})=>{let n=l(V9,{title:"Unleash"});return t&&(n=t),x(Pme,{children:[l(Ime,{children:n}),l(Ome,{children:l($me,{children:e})})]})},Nme="unsecure",G9="demo",Lme="password",Dme="enterprise-hosted",Mme="_container_wn392_1",Bme="_button_wn392_10",a5={container:Mme,button:Bme},z1=()=>{const{makeRequest:e,errors:t,loading:n}=Vn({propagateErrors:!0});return{passwordAuth:(i,a,s)=>{const c={caller:()=>fetch(i,{headers:fx,method:"POST",body:JSON.stringify({username:a,password:s})}),id:"passwordAuth"};return e(c.caller,c.id)},emailAuth:(i,a)=>{const s={caller:()=>fetch(i,{headers:fx,method:"POST",body:JSON.stringify({email:a})}),id:"emailAuth"};return e(s.caller,s.id)},errors:t,loading:n}},Fme=({authDetails:e,redirect:t})=>{const[n,r]=m.useState(""),{refetchUser:o}=vi(),{emailAuth:i}=z1(),a=pt(),{setToastApiError:s}=$t(),c=async d=>{d.preventDefault();try{await i(e.path,n),o(),a(t,{replace:!0})}catch(p){s(gt(p))}},u=d=>{const p=d.target.value;r(p)};return l("form",{onSubmit:c,children:x("div",{className:a5.container,children:[l("p",{children:e.message}),x("p",{children:["This instance of Unleash is not set up with a secure authentication provider. You can read more about"," ",l("a",{href:"https://github.com/Unleash/unleash/blob/master/docs/securing-unleash.md",target:"_blank",rel:"noreferrer",children:"securing Unleash on GitHub"})]}),l(pn,{value:n,onChange:u,inputProps:{"data-testid":"email-input-field"},size:"small",variant:"outlined",label:"Email",name:"email",id:"email",required:!0,type:"email","data-testid":C1,autoFocus:!0}),l("br",{}),l("div",{children:l(Ve,{type:"submit",variant:"contained",color:"primary",className:a5.button,"data-testid":E1,children:"Sign in"})})]})})},zme=({authDetails:e})=>x("div",{children:[l("p",{children:e.message}),l(mJ,{style:{textAlign:"center"},children:l("a",{href:e.path,style:{width:"100%"},children:l(Ve,{variant:"contained",color:"primary",style:{width:"150px",margin:"0 auto"},children:"Sign In"})})})]}),jme=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"46px",height:"46px",viewBox:"0 0 46 46",...e},m.createElement("defs",null,m.createElement("filter",{x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"objectBoundingBox",id:"filter-1"},m.createElement("feOffset",{dx:0,dy:1,in:"SourceAlpha",result:"shadowOffsetOuter1"}),m.createElement("feGaussianBlur",{stdDeviation:.5,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),m.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.168 0",in:"shadowBlurOuter1",type:"matrix",result:"shadowMatrixOuter1"}),m.createElement("feOffset",{dx:0,dy:0,in:"SourceAlpha",result:"shadowOffsetOuter2"}),m.createElement("feGaussianBlur",{stdDeviation:.5,in:"shadowOffsetOuter2",result:"shadowBlurOuter2"}),m.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.084 0",in:"shadowBlurOuter2",type:"matrix",result:"shadowMatrixOuter2"}),m.createElement("feMerge",null,m.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),m.createElement("feMergeNode",{in:"shadowMatrixOuter2"}),m.createElement("feMergeNode",{in:"SourceGraphic"}))),m.createElement("rect",{id:"path-2",x:0,y:0,width:40,height:40,rx:2})),m.createElement("g",{id:"Google-Button",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},m.createElement("g",{id:"9-PATCH",transform:"translate(-608.000000, -160.000000)"}),m.createElement("g",{id:"btn_google_light_normal",transform:"translate(-1.000000, -1.000000)"},m.createElement("g",{id:"button",transform:"translate(4.000000, 4.000000)",filter:"url(#filter-1)"},m.createElement("g",{id:"button-bg"},m.createElement("use",{fill:"#FFFFFF",fillRule:"evenodd"}),m.createElement("use",{fill:"none"}),m.createElement("use",{fill:"none"}),m.createElement("use",{fill:"none"}))),m.createElement("g",{id:"logo_googleg_48dp",transform:"translate(15.000000, 15.000000)"},m.createElement("path",{d:"M17.64,9.20454545 C17.64,8.56636364 17.5827273,7.95272727 17.4763636,7.36363636 L9,7.36363636 L9,10.845 L13.8436364,10.845 C13.635,11.97 13.0009091,12.9231818 12.0477273,13.5613636 L12.0477273,15.8195455 L14.9563636,15.8195455 C16.6581818,14.2527273 17.64,11.9454545 17.64,9.20454545 L17.64,9.20454545 Z",id:"Shape",fill:"#000"}),m.createElement("path",{d:"M9,18 C11.43,18 13.4672727,17.1940909 14.9563636,15.8195455 L12.0477273,13.5613636 C11.2418182,14.1013636 10.2109091,14.4204545 9,14.4204545 C6.65590909,14.4204545 4.67181818,12.8372727 3.96409091,10.71 L0.957272727,10.71 L0.957272727,13.0418182 C2.43818182,15.9831818 5.48181818,18 9,18 L9,18 Z",id:"Shape",fill:"#000"}),m.createElement("path",{d:"M3.96409091,10.71 C3.78409091,10.17 3.68181818,9.59318182 3.68181818,9 C3.68181818,8.40681818 3.78409091,7.83 3.96409091,7.29 L3.96409091,4.95818182 L0.957272727,4.95818182 C0.347727273,6.17318182 0,7.54772727 0,9 C0,10.4522727 0.347727273,11.8268182 0.957272727,13.0418182 L3.96409091,10.71 L3.96409091,10.71 Z",id:"Shape",fill:"#000"}),m.createElement("path",{d:"M9,3.57954545 C10.3213636,3.57954545 11.5077273,4.03363636 12.4404545,4.92545455 L15.0218182,2.34409091 C13.4631818,0.891818182 11.4259091,0 9,0 C5.48181818,0 2.43818182,2.01681818 0.957272727,4.95818182 L3.96409091,7.29 C4.67181818,5.16272727 6.65590909,3.57954545 9,3.57954545 L9,3.57954545 Z",id:"Shape",fill:"#000"}),m.createElement("path",{d:"M0,0 L18,0 L18,18 L0,18 L0,0 Z",id:"Shape"})),m.createElement("g",{id:"handles_square"}))));var Z2={},Ume=An;Object.defineProperty(Z2,"__esModule",{value:!0});var q9=Z2.default=void 0,Wme=Ume(Rn()),Hme=_n,Vme=(0,Wme.default)((0,Hme.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9z"}),"LockRounded");q9=Z2.default=Vme;const eT=({options:e})=>{const{classes:t}=Uh();return l(ve,{children:e==null?void 0:e.map(n=>l("div",{className:$i(t.flexColumn,t.contentSpacingY),children:l(Ve,{color:"primary","data-loading":!0,variant:"outlined",href:n.path,size:"small","data-testid":`${Jie}-${n.type}`,style:{height:"40px"},startIcon:l(q,{condition:n.type==="google",show:l(jme,{style:{height:"35px",width:"35px"}}),elseShow:l(q9,{style:{height:"25px",width:"25px"}})}),children:n.message})},n.type))})},Gme=C("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",margin:e.spacing(2,"auto")})),s5=C("span")(({theme:e})=>({width:"80px",height:"3px",backgroundColor:e.palette.divider,borderRadius:e.shape.borderRadius})),qme=C(se)(({theme:e})=>({textAlign:"center",display:"block",margin:e.spacing(0,2)})),j1=({text:e,...t})=>x(Gme,{...t,children:[l(s5,{}),l(qme,{variant:"body2",children:e}),l(s5,{})]}),dc=({...e})=>{const[t,n]=m.useState(!1);return l(pn,{variant:"outlined",size:"small",type:t?"text":"password",InputProps:{style:{paddingRight:"0px"},endAdornment:l(JE,{position:"end",children:l(jt,{onClick:()=>{n(!t)},onMouseDown:s=>{s.preventDefault()},size:"large",children:l(t?zL:jL,{titleAccess:"Toggle password visibility"})})})},...e})},Yme=C(Vt)(({theme:e})=>({color:e.palette.error.main,marginBottom:e.spacing(1)})),Kme=C("div")(({theme:e})=>({...x1(e),display:"flex",flexDirection:"column"})),Xme=({authDetails:e,redirect:t})=>{const n=pt(),{refetchUser:r}=vi(),o=Fc(),[i,a]=m.useState(o.get("email")||""),[s,c]=m.useState(""),{passwordAuth:u}=z1(),[d,p]=m.useState({}),f=async v=>{if(v.preventDefault(),i||p(b=>({...b,usernameError:"This is a required field"})),s||p(b=>({...b,passwordError:"This is a required field"})),!(!s||!i))try{await u(e.path,i,s),r(),n(t,{replace:!0})}catch(b){b instanceof P2||b instanceof _2?(p(y=>({...y,apiError:"Invalid login details"})),c(""),a("")):b instanceof R2?p({apiError:"Invalid password and username combination."}):p({apiError:"Unknown error while trying to authenticate."})}},h=()=>{const{usernameError:v,passwordError:b,apiError:y}=d;return l(q,{condition:!e.defaultHidden,show:x("form",{onSubmit:f,children:[l(q,{condition:!!y,show:l(Yme,{severity:"error",children:y})}),x(Kme,{children:[l(pn,{label:"Username or email",name:"username",id:"username",type:"text",onChange:w=>a(w.target.value),value:i,error:!!v,helperText:v,autoComplete:"username","data-testid":C1,variant:"outlined",size:"small",autoFocus:!0}),l(dc,{label:"Password",onChange:w=>c(w.target.value),name:"password",id:"password",value:s,error:!!b,helperText:b,autoComplete:"off","data-testid":X6}),l(Ve,{variant:"contained",color:"primary",type:"submit",style:{width:"150px",margin:"1rem auto"},"data-testid":E1,children:"Sign in"})]})]})})},{options:g=[]}=e;return l(ve,{children:l(q,{condition:g.length>0,show:x(ve,{children:[l(eT,{options:g}),l(q,{condition:!e.defaultHidden,show:l(j1,{text:"Or sign in with username"})}),h()]}),elseShow:h()})})},Jme=C(se)(({theme:e})=>({color:e.palette.error.main})),Qme=C("div")(({theme:e})=>({...x1(e),display:"flex",flexDirection:"column"})),Zme=C(Ve)(({theme:e})=>({width:"150px",margin:e.spacing(2,"auto",0,"auto"),display:"block",textAlign:"center"})),ege=({authDetails:e,redirect:t})=>{const{refetchUser:n}=vi(),r=pt(),o=Fc(),{passwordAuth:i}=z1(),[a,s]=m.useState(o.get("email")||""),[c,u]=m.useState(""),[d,p]=m.useState({}),f=async y=>{if(y.preventDefault(),a||p(w=>({...w,usernameError:"This is a required field"})),c||p(w=>({...w,passwordError:"This is a required field"})),!(!c||!a))try{await i(e.path,a,c),n(),r(t,{replace:!0})}catch(w){w instanceof P2||w instanceof _2?(p(S=>({...S,apiError:"Invalid login details"})),u(""),s("")):p({apiError:"Unknown error while trying to authenticate."})}},{usernameError:h,passwordError:g,apiError:v}=d,{options:b=[]}=e;return x(ve,{children:[l(q,{condition:b.length>0,show:x(ve,{children:[l(eT,{options:b}),l(j1,{text:"or signin with username"})]})}),l(q,{condition:!e.defaultHidden,show:x("form",{onSubmit:f,children:[l(Jme,{variant:"subtitle2",children:v}),x(Qme,{children:[l(pn,{label:"Username or email",name:"username",id:"username",type:"text",onChange:y=>s(y.target.value),value:a,error:!!h,helperText:h,variant:"outlined",size:"small","data-testid":C1}),l(dc,{label:"Password",onChange:y=>u(y.target.value),name:"password",id:"password",value:c,error:!!g,helperText:g,autoComplete:"current-password","data-testid":X6}),l(Wn,{container:!0,children:l(Zme,{variant:"contained",color:"primary",type:"submit","data-testid":E1,children:"Sign in"})})]})]})})]})},tge="_container_abcn7_1",nge="_emailField_abcn7_9",rge="_form_abcn7_13",oge="_logo_abcn7_17",ige="_button_abcn7_24",Pp={container:tge,emailField:nge,form:rge,logo:oge,button:ige},age=e=>m.createElement("svg",{width:52,height:52,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("circle",{cx:26,cy:26,r:26,fill:"white"}),m.createElement("rect",{x:15,y:15,width:7,height:22,fill:"#1A4049"}),m.createElement("rect",{x:30,y:15,width:7,height:22,fill:"#1A4049"}),m.createElement("path",{d:"M37 30L37 37L15 37L15 30L37 30Z",fill:"#1A4049"}),m.createElement("rect",{x:30,y:30,width:7,height:7,fill:"#817AFE"})),sge=({authDetails:e,redirect:t})=>{const[n,r]=m.useState(""),o=pt(),{refetchUser:i}=vi(),{emailAuth:a}=z1(),{setToastApiError:s}=$t(),c=async d=>{d.preventDefault();try{await a(e.path,n),i(),o(t,{replace:!0})}catch(p){s(gt(p))}},u=d=>{const p=d.target.value;r(p)};return x("form",{onSubmit:c,children:[l(age,{className:Pp.logo,"aria-label":"Unleash logo"}),x("div",{className:Pp.container,children:[l("h2",{children:"Access the Unleash demo instance"}),l("p",{children:"No further data or Credit Card required"}),x("div",{className:Pp.form,children:[l(pn,{value:n,className:Pp.emailField,onChange:u,inputProps:{"data-testid":"email-input-field"},size:"small",variant:"outlined",label:"Email",name:"email",id:"email","data-testid":C1,required:!0,type:"email"}),l(Ve,{type:"submit",variant:"contained",color:"primary",className:Pp.button,"data-testid":E1,children:"Sign in"})]}),x("p",{children:["By accessing our demo instance, you agree to the Unleash ",l("a",{href:"https://www.unleash-hosted.com/tos/",target:"_blank",rel:"noreferrer",children:"Customer Terms of Service"})," ","and ",l("a",{href:"https://www.unleash-hosted.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:"Privacy Policy"})]})]})]})},lge=C("div")(({theme:e})=>({margin:"auto auto 0 auto",width:"230px",[e.breakpoints.down("md")]:{marginTop:e.spacing(2)}})),cge=C(an)(({theme:e})=>({fontWeight:"bold",textAlign:"center"})),uge=C(se)(({theme:e})=>({fontWeight:"bold",marginBottom:e.spacing(1)})),dge=C("a")(({theme:e})=>({fontWeight:"bold",textAlign:"center"})),l5=()=>x(lge,{children:[l(cge,{to:"/forgotten-password",children:l(uge,{variant:"body2",children:"Forgot password?"})}),x(se,{variant:"body2",children:["Don't have an account?"," ",l(dge,{href:"https://www.getunleash.io/plans",target:"_blank",rel:"noopener noreferrer",children:"Sign up"})]})]}),Dd=()=>{const e=Wh();return{authDetails:e.data&&"type"in e.data?e.data:void 0,refetchAuthDetails:e.refetchAuth,loading:e.loading,error:e.error}},pge=({redirect:e,invited:t=!1})=>{const{authDetails:n}=Dd(),o=Fc().get("errorMsg"),{trackEvent:i}=br();if(m.useEffect(()=>{t&&i("invite",{props:{eventType:"user created"}})},[t,i]),!n)return null;let a;return n.type===Lme?a=x(ve,{children:[l(Xme,{authDetails:n,redirect:e}),l(q,{condition:!n.defaultHidden,show:l(l5,{})})]}):n.type===Nme?a=l(Fme,{authDetails:n,redirect:e}):n.type===G9?a=l(sge,{authDetails:n,redirect:e}):n.type===Dme?a=x(ve,{children:[l(ege,{authDetails:n,redirect:e}),l(q,{condition:!n.defaultHidden,show:l(l5,{})})]}):a=l(zme,{authDetails:n}),x(ve,{children:[l("div",{style:{maxWidth:"350px"},"data-testid":cae,children:l(q,{condition:!!o,show:l(Vt,{severity:"error",children:o})})}),a]})},fge=e=>{const t=new URL(decodeURIComponent(e),window.location.protocol+"//"+window.location.host);return{pathname:t.pathname,search:t.search}},hge=C("div")(({theme:e})=>({display:"flex",flexDirection:"column"})),mge=C("h2")(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(2),textAlign:"center"})),gge=()=>{const{authDetails:e}=Dd(),{user:t}=vi(),n=Fc(),r=n.get("reset")==="true",o=n.get("invited")==="true",i=n.get("redirect")||"/";return t?l($c,{to:fge(i),replace:!0}):l(F1,{children:x(hge,{children:[l(q,{condition:r,show:x(Vt,{severity:"success",sx:{mb:4},children:[l(_v,{children:"Success"}),"You successfully reset your password."]})}),l(q,{condition:o,show:x(Vt,{severity:"success",sx:{mb:4},children:[l(_v,{children:"Success"}),"Your account has been created."]})}),l(q,{condition:(e==null?void 0:e.type)!==G9,show:l(mge,{children:"Log in to continue the great work"})}),l(pge,{redirect:i,invited:o})]})})},vge="P",yge="EEA",Jb="SE",bge="UG",wge=e=>()=>{if(!e)return Promise.resolve({name:Y9});const t=Rt(`auth/reset/validate?token=${e}`);return fetch(t,{method:"GET"}).then(n=>n.json())},Y9="InvalidTokenError",Sge="UsedTokenError",K9=(e={})=>{const t=Fc(),n=t.get("token")||"",[r,o]=m.useState(n),i=wge(r),a=`auth/reset/validate?token=${r}`,{data:s,error:c}=Pn(a,i,e),[u,d]=m.useState(!c&&!s),p=()=>{const h=t.get("token")||"";o(h)};m.useEffect(()=>{d(!c&&!s)},[s,c]);const f=!(!u&&(s==null?void 0:s.name)===Y9||(s==null?void 0:s.name)===Sge);return{token:r,data:s,error:c,loading:u,isValidToken:f,setLoading:d,retry:p}},xge=(e,t)=>()=>{if(!e)return Promise.resolve(!1);const n=Rt(t);return fetch(n,{method:"GET"}).then(r=>r.status===Hh)},X9=(e={})=>{const n=Fc().get("invite")||"",r=`/invite/${n}/validate`,{data:o,error:i}=Pn(r,xge(n,r),e),[a,s]=m.useState(!i&&!o);return m.useEffect(()=>{s(!i&&o===void 0)},[o,i]),{secret:n,isValid:o,error:i,loading:a}},c5="api/admin/invite-link/tokens",Cge=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0}),o=m.useCallback(async s=>{const c=t(c5,{method:"POST",body:JSON.stringify(s)});return await e(c.caller,c.id)},[t,e]),i=m.useCallback(async(s,c)=>{const u=t(`${c5}/${s}`,{method:"PUT",body:JSON.stringify({...c.expiresAt?{expiresAt:c.expiresAt}:{},...c.enabled!==void 0?{enabled:c.enabled}:{}})});return await e(u.caller,u.id)},[t,e]),a=m.useCallback(async(s,c)=>{const u=t(`/invite/${s}/signup`,{method:"POST",body:JSON.stringify(c)});return await e(u.caller,u.id)},[t,e]);return{createToken:o,updateToken:i,addUser:a,errors:n,loading:r}},J9=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0});return{resetPassword:m.useCallback(i=>{const a=t("auth/reset/password",{method:"POST",body:JSON.stringify(i)});return e(a.caller,a.id)},[t,e]),errors:n,loading:r}},Ege="The password must be at least 10 characters long.",Tge="The password must contain at least one number.",kge="The password must contain at least one special character.",Age="The password must contain at least one uppercase letter.",Rge="The password must contain at least one lowercase letter.",_ge="The password may not contain sequences of three or more repeated characters.",Q9="The password must be at least 10 characters long and must include an uppercase letter, a lowercase letter, a number, and a symbol.",Pge=C(se)(({theme:e})=>({marginBottom:"0",display:"flex",alignItems:"center",gap:"1ch"})),Ige=C("div")(({theme:e})=>({backgroundColor:e.palette.background.elevation2,borderRadius:e.shape.borderRadius,position:"relative",maxWidth:"350px",color:e.palette.text.secondary,padding:e.spacing(.5,0,1.5)})),Oge=C("div")(({theme:e})=>({display:"flex",padding:e.spacing(1)})),js=C("div")(({theme:e})=>({width:"95px",margin:e.spacing(0,.5),display:"flex",justifyContent:"center"})),$ge=C("div")(({theme:e})=>({backgroundColor:e.palette.neutral.light,height:"1px",width:"100%"})),Nge=C("div")(({theme:e})=>({display:"flex",padding:e.spacing(1)})),Lge=C(Vt)(({theme:e})=>({marginTop:e.spacing(1),bottom:"0",position:"absolute"})),cg=C("div",{shouldForwardProp:e=>e!=="error"})(({theme:e,error:t})=>({width:"50px",borderRadius:e.shape.borderRadius,height:"6px",backgroundColor:t?e.palette.error.main:e.palette.primary.main})),Z9=({password:e,callback:t,style:n={}})=>{const[r,o]=m.useState(!0),[i,a]=m.useState(!0),[s,c]=m.useState(!0),[u,d]=m.useState(!0),[p,f]=m.useState(!1),h=m.useCallback(()=>{const w=Rt("auth/reset/validate-password");return fetch(w,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({password:e})})},[e]),g=m.useCallback(()=>{b(!1)},[]),v=m.useCallback(async()=>{if(!e){b(!0);return}if(e.length<3){d(!0);return}try{const w=await h();if(w.status===A2){const S=await w.json();y(S),t(!1)}w.status===Hh&&(g(),f(!1),t(!0))}catch{console.log("An exception was caught and handled")}},[h,t,e,g]);m.useEffect(()=>{v()},[e,v]);const b=w=>{o(w),a(w),c(w),d(w)},y=w=>{const S=w.details[0].validationErrors;S.includes(Tge)?a(!0):a(!1),S.includes(kge)?c(!0):c(!1),S.includes(Ege)?d(!0):d(!1),S.includes(Rge)||S.includes(Age)?o(!0):o(!1),S.includes(_ge)?f(!0):f(!1)};return x(ve,{children:[x(Pge,{variant:"body2","data-loading":!0,children:["Please set a strong password",l(Xa,{tooltip:Q9})]}),x(Ige,{style:{...n},children:[x(Oge,{children:[l(js,{children:l(se,{variant:"body2","data-loading":!0,children:"Length"})}),l(js,{children:l(se,{variant:"body2","data-loading":!0,children:"Casing"})}),l(js,{children:l(se,{variant:"body2","data-loading":!0,children:"Number"})}),l(js,{children:l(se,{variant:"body2","data-loading":!0,children:"Symbol"})})]}),l($ge,{}),x(Nge,{children:[l(js,{children:l(cg,{error:u,"data-loading":!0})}),l(js,{children:l(cg,{error:r,"data-loading":!0})})," ",l(js,{children:l(cg,{error:i,"data-loading":!0})}),l(js,{children:l(cg,{error:s,"data-loading":!0})})]}),l(q,{condition:p,show:l(Lge,{severity:"error",children:"You may not repeat three characters in a row."})})]})]})};var tT={},Dge=An;Object.defineProperty(tT,"__esModule",{value:!0});var eD=tT.default=void 0,Mge=Dge(Rn()),Bge=_n,Fge=(0,Mge.default)((0,Bge.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");eD=tT.default=Fge;const zge=C("div")(({theme:e})=>({position:"relative",paddingTop:e.spacing(.5)})),jge=C(se,{shouldForwardProp:e=>e!=="matchingPasswords"})(({theme:e,matchingPasswords:t})=>({position:"absolute",bottom:"-8px",display:"flex",alignItems:"center",color:t?e.palette.primary.main:e.palette.error.main})),Uge=C(eD)(({theme:e})=>({marginRight:"5px"})),tD=({started:e,matchingPasswords:t})=>l(zge,{children:l(q,{condition:e,show:x(jge,{variant:"body2","data-loading":!0,matchingPasswords:t,children:[l(Uge,{})," ",l(q,{condition:t,show:l(se,{children:" Passwords match"}),elseShow:l(se,{children:" Passwords do not match"})})]})})}),Wge=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",position:"relative","& > *":{marginTop:`${e.spacing(1)} !important`,marginBottom:`${e.spacing(1)} !important`}})),Hge=C(Ve)(({theme:e})=>({width:"150px",margin:e.spacing(2,"auto"),display:"block"})),nD=({onSubmit:e})=>{const[t,n]=m.useState(""),[r,o]=m.useState(!1),[i,a]=m.useState(""),[s,c]=m.useState(!1),[u,d]=m.useState(!1),p=s&&u,f=m.useCallback(d,[d]);return m.useEffect(()=>{t||d(!1),c(t===i)},[t,i]),x(Wge,{onSubmit:v=>{v.preventDefault(),p&&e(t)},children:[l(dc,{placeholder:"Password",value:t||"",onChange:v=>n(v.target.value),onFocus:()=>o(!0),autoComplete:"new-password","data-loading":!0}),l(dc,{value:i||"",placeholder:"Confirm password",onChange:v=>a(v.target.value),autoComplete:"new-password","data-loading":!0}),l(q,{condition:r,show:l(Z9,{password:t,callback:f,style:{marginBottom:"1rem"}})}),l(tD,{started:!!(t&&i),matchingPasswords:s}),l(Hge,{variant:"contained",color:"primary",type:"submit","data-loading":!0,disabled:!p,children:"Submit"})]})},rD=()=>{const{authDetails:e}=Dd(),{classes:t}=Uh(),n=(e==null?void 0:e.defaultHidden)===!0,{secret:r}=X9();return x("div",{className:$i(t.contentSpacingY,t.flexColumn,t.itemsCenter),children:[l(se,{variant:"h2",className:t.title,children:"Invalid token"}),l(q,{condition:n,show:x(ve,{children:[l(se,{variant:"subtitle1",children:"Your instance does not support password authentication. Use correct work email to access your account."}),l(Ve,{variant:"contained",color:"primary",component:an,to:"/login",children:"Login"})]}),elseShow:l(q,{condition:!!r,show:l(se,{variant:"subtitle1",children:"Provided invite link is invalid or expired. Please request a new URL in order to create your account."}),elseShow:x(ve,{children:[l(se,{variant:"subtitle1",children:"Your token has either been used to reset your password, or it has expired. Please request a new reset password URL in order to reset your password."}),l(Ve,{variant:"contained",color:"primary",component:an,to:"/forgotten-password","data-testid":Zie,children:"Reset password"})]})})})]})},u5=({children:e,loading:t,title:n})=>{const r=I1(t||!1);return l("div",{ref:r,children:l(F1,{showMenu:!1,BannerComponent:l(V9,{title:"Unleash"}),children:x($e,{sx:{width:["100%","350px"]},children:[l(q,{condition:!!n,show:l(se,{component:"h2",sx:{fontSize:o=>o.fontSizes.mainHeader,marginBottom:2,textAlign:"center",fontWeight:o=>o.fontWeight.bold},children:n})}),e]})})})},oD=()=>x(Vt,{severity:"error","data-loading":!0,children:[l(_v,{children:"Unable to reset password"}),"Something went wrong when attempting to update your password. This could be due to unstable internet connectivity. If retrying the request does not work, please try again later."]}),Vge=()=>{var P,_;const{authDetails:e}=Dd(),{setToastApiError:t}=$t(),n=pt(),[r,o]=m.useState(!1),[i,a]=m.useState(""),[s,c]=m.useState(""),{token:u,data:d,loading:p,isValidToken:f}=K9(),{secret:h,loading:g,isValid:v}=X9(),{addUser:b,loading:y}=Cge(),{resetPassword:w,loading:S}=J9(),k=(e==null?void 0:e.defaultHidden)===!0,A=async O=>{try{(await b(h,{name:s,email:i,password:O})).status===nce?n("/login?invited=true"):t("Couldn't create user. Check if your invite link is valid.")}catch($){t(gt($))}},T=async O=>{try{(await w({token:u,password:O})).status===Hh?n("/login?reset=true"):o(!0)}catch{o(!0)}},R=O=>{v?A(O):T(O)};return!f&&!v?l(u5,{loading:p||g,children:l(rD,{})}):x(u5,{loading:p||g||y||S,title:k?"Connect your account and start your journey":"Enter your personal details and start your journey",children:[l(q,{condition:d==null?void 0:d.createdBy,show:x(se,{variant:"body1","data-loading":!0,sx:{textAlign:"center",mb:2},children:[d==null?void 0:d.createdBy,l("br",{})," has invited you to join Unleash."]})}),x(se,{color:"text.secondary",children:["We suggest using"," ",l(se,{component:"strong",fontWeight:"bold",children:"the email you use for work"}),"."]}),l(q,{condition:!!((P=e==null?void 0:e.options)!=null&&P.length),show:l($e,{sx:{mt:2},children:l(eT,{options:e==null?void 0:e.options})})}),l(q,{condition:!!((_=e==null?void 0:e.options)!=null&&_.length)&&!k,show:l(j1,{text:"or sign-up with an email address","data-loading":!0})}),l(q,{condition:!k,show:x(ve,{children:[l(q,{condition:d==null?void 0:d.email,show:()=>l(se,{"data-loading":!0,variant:"body1",sx:{my:1},children:"Your username is"})}),l(pn,{"data-loading":!0,type:"email",value:f?(d==null?void 0:d.email)||"":i,id:"email",label:"Email",variant:"outlined",size:"small",sx:{my:1},disabled:f,fullWidth:!0,required:!0,onChange:O=>{f||a(O.target.value)}}),l(q,{condition:!!v,show:()=>l(pn,{"data-loading":!0,value:s,id:"username",label:"Full name",variant:"outlined",size:"small",sx:{my:1},fullWidth:!0,required:!0,onChange:O=>{c(O.target.value)}})}),l(se,{variant:"body1","data-loading":!0,sx:{mt:2},children:"Set a password for your account."}),l(q,{condition:r&&f,show:l(oD,{})}),l(nD,{onSubmit:R})]})})]})},Gge=C("div")(({theme:e})=>({width:"350px",maxWidth:"350px",[e.breakpoints.down("sm")]:{width:"100%"}})),qge=C(se)(({theme:e})=>({fontWeight:"bold",fontSize:e.spacing(2.5),marginBottom:e.spacing(2)})),Yge=()=>{const{token:e,loading:t,isValidToken:n}=K9(),{resetPassword:r,loading:o}=J9(),{authDetails:i}=Dd(),a=I1(t||o),s=pt(),[c,u]=m.useState(!1),d=(i==null?void 0:i.defaultHidden)===!0;return l("div",{ref:a,children:l(F1,{children:l(Gge,{children:l(q,{condition:!n||d,show:l(rD,{}),elseShow:x(ve,{children:[l(qge,{variant:"h2","data-loading":!0,children:"Reset password"}),l(q,{condition:c,show:l(oD,{})}),l(nD,{onSubmit:async f=>{try{(await r({token:e,password:f})).status===Hh?(s("/login?reset=true"),u(!1)):u(!0)}catch{u(!0)}}})]})})})})})},Kge=C("div")(({theme:e})=>({...x1,...G6,width:"350px",[e.breakpoints.down("sm")]:{width:"100%"}})),Xge=C("strong")(({theme:e})=>({display:"block",margin:e.spacing(1,0)})),Jge=C(Ve)(({theme:e})=>({width:"150px",margin:e.spacing(2,"auto")})),Qge=C("h2")(({theme:e})=>({...Aie(e),...H6})),Zge=C("form")(({theme:e})=>({...x1(e),...G6})),eve=C(se)(({theme:e})=>({...H6})),tve=()=>{const[e,t]=m.useState(""),[n,r]=m.useState(!1),[o,i]=m.useState(!1),[a,s]=m.useState(""),c=I1(o);return l(F1,{children:x(Kge,{ref:c,children:[l(Qge,{"data-loading":!0,children:"Forgotten password"}),l(q,{condition:n,show:x(Vt,{severity:"success","data-loading":!0,children:[l(_v,{children:"Attempted to send email"}),"We've attempted to send a reset password email to:",l(Xge,{children:a}),"If you did not receive an email, please verify that you typed in the correct email, and contact your administrator to make sure that you are in the system."]})}),x(Zge,{onSubmit:async d=>{d.preventDefault(),i(!0),s(e);const p=Rt("auth/reset/password-email");await fetch(p,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({email:e})}),r(!0),i(!1)},children:[l(eve,{variant:"body1","data-loading":!0,children:"Please provide your email address. If it exists in the system we'll send a new reset link."}),l(pn,{variant:"outlined",size:"small",placeholder:"email",type:"email","data-loading":!0,"data-testid":Qie,value:e,onChange:d=>{t(d.target.value)}}),l(Jge,{variant:"contained",type:"submit","data-loading":!0,color:"primary",disabled:o,children:l(q,{condition:!n,show:l("span",{children:"Submit"}),elseShow:l("span",{children:"Try again"})})}),l(j1,{text:"Or log in"}),l(Ve,{type:"submit","data-loading":!0,variant:"outlined",disabled:o,component:an,to:"/login",sx:d=>({width:"150px",margin:d.spacing(2,"auto")}),children:"Log in"})]})]})})};var nT={},nve=An;Object.defineProperty(nT,"__esModule",{value:!0});var rT=nT.default=void 0,rve=nve(Rn()),ove=_n,ive=(0,rve.default)((0,ove.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");rT=nT.default=ive;const ave=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0}),{setToastData:o,setToastApiError:i}=$t(),{trackEvent:a}=br(),s=m.useCallback(async u=>{const d=`api/admin/projects/${u}/favorites`,p=t(d,{method:"POST"},"addFavoriteProject");try{await e(p.caller,p.id),o({title:"Project added to favorites",type:"success"}),a("favorite",{props:{eventType:"project favorited"}})}catch(f){i(gt(f))}},[t,e]),c=m.useCallback(async u=>{const d=`api/admin/projects/${u}/favorites`,p=t(d,{method:"DELETE"},"removeFavoriteProject");try{await e(p.caller,p.id),o({title:"Project removed from favorites",type:"success"}),a("favorite",{props:{eventType:"project unfavorited"}})}catch(f){i(gt(f))}},[t,e]);return{favorite:s,unfavorite:c,errors:n,loading:r}},sve=({isFavorite:e,size:t="large",...n})=>l(Id,{title:e?"Remove from favorites":"Add to favorites",children:l(jt,{size:t,"data-loading":!0,...n,children:l(q,{condition:e,show:l(T2,{color:"primary",sx:{fontSize:r=>t==="medium"?r.spacing(2):r.spacing(3)}}),elseShow:l(k2,{color:"primary",sx:{fontSize:r=>t==="medium"?r.spacing(2):r.spacing(3)}})})})}),Jh=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0});return{createProject:async T=>{const P=t("api/admin/projects",{method:"POST",body:JSON.stringify(T)});try{return await e(P.caller,P.id)}catch(_){throw _}},validateId:async T=>{const P=t("api/admin/projects/validate",{method:"POST",body:JSON.stringify({id:T})});try{return await e(P.caller,P.id)}catch(_){throw _}},editProject:async(T,R)=>{const P=`api/admin/projects/${T}`,_=t(P,{method:"PUT",body:JSON.stringify(R)});try{return await e(_.caller,_.id)}catch(O){throw O}},deleteProject:async T=>{const R=`api/admin/projects/${T}`,P=t(R,{method:"DELETE"});try{return await e(P.caller,P.id)}catch(_){throw _}},addEnvironmentToProject:async(T,R)=>{const P=`api/admin/projects/${T}/environments`,_=t(P,{method:"POST",body:JSON.stringify({environment:R})});try{return await e(_.caller,_.id)}catch(O){throw O}},removeEnvironmentFromProject:async(T,R)=>{const P=`api/admin/projects/${T}/environments/${R}`,_=t(P,{method:"DELETE"});try{return await e(_.caller,_.id)}catch(O){throw O}},addAccessToProject:async(T,R,P)=>{const _=`api/admin/projects/${T}/role/${R}/access`,O=t(_,{method:"POST",body:JSON.stringify(P)});try{return await e(O.caller,O.id)}catch($){throw $}},removeUserFromRole:async(T,R,P)=>{const _=`api/admin/projects/${T}/users/${P}/roles/${R}`,O=t(_,{method:"DELETE"});try{return await e(O.caller,O.id)}catch($){throw $}},removeGroupFromRole:async(T,R,P)=>{const _=`api/admin/projects/${T}/groups/${P}/roles/${R}`,O=t(_,{method:"DELETE"});try{return await e(O.caller,O.id)}catch($){throw $}},changeUserRole:(T,R,P)=>{const _=`api/admin/projects/${T}/users/${P}/roles/${R}`,O=t(_,{method:"PUT"});return e(O.caller,O.id)},changeGroupRole:(T,R,P)=>{const _=`api/admin/projects/${T}/groups/${P}/roles/${R}`,O=t(_,{method:"PUT"});return e(O.caller,O.id)},archiveFeatures:async(T,R)=>{const P=`api/admin/projects/${T}/archive`,_=t(P,{method:"POST",body:JSON.stringify({features:R})});return e(_.caller,_.id)},reviveFeatures:async(T,R)=>{const P=`api/admin/projects/${T}/revive`,_=t(P,{method:"POST",body:JSON.stringify({features:R})});return e(_.caller,_.id)},staleFeatures:async(T,R,P=!0)=>{const _={features:R,stale:P},O=`api/admin/projects/${T}/stale`,$=t(O,{method:"POST",body:JSON.stringify(_)});return e($.caller,$.id)},deleteFeature:async T=>{const R=`api/admin/archive/${T}`,P=t(R,{method:"DELETE"});return e(P.caller,P.id)},deleteFeatures:async(T,R)=>{const P=`api/admin/projects/${T}/delete`,_=t(P,{method:"POST",body:JSON.stringify({features:R})});return e(_.caller,_.id)},searchProjectUser:async T=>{const R=`api/admin/user-admin/search?q=${T}`,P=t(R,{method:"GET"});try{return await e(P.caller,P.id)}catch(_){throw _}},updateDefaultStrategy:async(T,R,P)=>{const _=`api/admin/projects/${T}/environments/${R}/default-strategy`,O=t(_,{method:"POST",body:JSON.stringify(P)});return e(O.caller,O.id)},errors:n,loading:r}},lve=({open:e,onClose:t,project:n,onSuccess:r})=>{const{deleteProject:o}=Jh(),{refetch:i}=ma(),{setToastData:a,setToastApiError:s}=$t();return l(vr,{open:e,onClick:async u=>{u.preventDefault();try{await o(n),i(),a({title:"Deleted project",type:"success",text:"Successfully deleted project"}),r==null||r()}catch(d){s(gt(d))}t(u)},onClose:t,title:"Really delete project"})},cve=e=>m.createElement("svg",{width:88,height:40,viewBox:"0 0 88 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("rect",{width:9,height:39,fill:"#635DC5"}),m.createElement("rect",{x:13,width:10,height:39,fill:"#635DC5"}),m.createElement("rect",{x:27,y:6,width:9,height:33,fill:"#635DC5"}),m.createElement("rect",{x:40,y:12,width:9,height:27,fill:"#635DC5"}),m.createElement("rect",{x:52,y:15,width:9,height:24,fill:"#635DC5"}),m.createElement("rect",{x:65.0752,y:15.2578,width:9.2957,height:23.9101,fill:"#635DC5"}),m.createElement("rect",{x:78.355,y:19.0352,width:9.2957,height:20.1348,fill:"#635DC5"})),uve=C(f6)(({theme:e})=>({padding:e.spacing(1,2,2,2),width:"220px",height:"204px",display:"flex",flexDirection:"column",justifyContent:"space-between",margin:e.spacing(1),boxShadow:"none",border:`1px solid ${e.palette.divider}`,[e.breakpoints.down("sm")]:{justifyContent:"center"},"&:hover":{transition:"background-color 0.2s ease-in-out",backgroundColor:e.palette.neutral.light}})),dve=C("div")(()=>({...Nc,width:"100%"})),pve=C("h2")(({theme:e})=>({fontWeight:"normal",fontSize:e.fontSizes.bodySize,lineClamp:2,display:"-webkit-box",boxOrient:"vertical",textOverflow:"ellipsis",overflow:"hidden",alignItems:"flex-start"})),fve=C($e)(()=>({...Nc,marginRight:"auto"})),hve=C(di)(({theme:e})=>({color:e.palette.neutral.main,marginRight:e.spacing(1)})),mve=C(vo)(({theme:e})=>({color:e.palette.neutral.main,marginRight:e.spacing(1)})),gve=C(cve)(({theme:e})=>({margin:e.spacing(2,"auto"),width:"80px",display:"block",fill:"red"})),vve=C("div")(({theme:e})=>({display:"flex",justifyContent:"space-between",fontSize:e.fontSizes.smallerBody})),Qb=C("div")(()=>({textAlign:"center"})),Zb=C("p")(({theme:e})=>({color:e.palette.primary.dark,fontWeight:"bold"})),d5=({name:e,featureCount:t,health:n,memberCount:r,onHover:o,id:i,isFavorite:a=!1})=>{const{hasAccess:s}=m.useContext(_o),{isOss:c,uiConfig:u}=It(),[d,p]=m.useState(null),[f,h]=m.useState(!1),g=pt(),{favorite:v,unfavorite:b}=ave(),{refetch:y}=ma(),w=A=>{A.preventDefault(),p(A.currentTarget)},S=s(bpe,i)&&i!==Vg;return x(uve,{onMouseEnter:o,children:[x(dve,{"data-loading":!0,children:[x(fve,{children:[l(sve,{onClick:async A=>{A.preventDefault(),a?await b(i):await v(i),y()},isFavorite:a,size:"medium",sx:{ml:-1}}),l(pve,{children:e})]}),l($r,{style:{transform:"translateX(7px)"},permission:yx,hidden:c(),projectId:i,"data-loading":!0,onClick:w,tooltipProps:{title:"Options"},children:l(rT,{})}),x(t2,{id:"project-card-menu",open:!!d,anchorEl:d,style:{top:0,left:-100},onClick:A=>{A.preventDefault()},onClose:A=>{A.preventDefault(),p(null)},children:[x(qa,{onClick:A=>{A.preventDefault(),g(ppe(i,!!u.flags.newProjectLayout))},children:[l(hve,{}),"Edit project"]}),l(q,{condition:!u.flags.newProjectLayout,show:x(qa,{onClick:A=>{A.preventDefault(),h(!0)},disabled:!S,children:[l(mve,{}),i===Vg&&!S?"You can't delete the default project":"Delete project"]})})]})]}),l("div",{"data-loading":!0,children:l(gve,{})}),x(vve,{children:[x(Qb,{children:[l(Zb,{"data-loading":!0,children:t}),l("p",{"data-loading":!0,children:"toggles"})]}),x(Qb,{children:[x(Zb,{"data-loading":!0,children:[n,"%"]}),l("p",{"data-loading":!0,children:"health"})]}),l(q,{condition:i!==Vg,show:x(Qb,{children:[l(Zb,{"data-loading":!0,children:r}),l("p",{"data-loading":!0,children:"members"})]})})]}),l(lve,{project:i,open:f,onClose:A=>{A.preventDefault(),p(null),h(!1)}})]})},yve=[{id:"loading1",name:"loading1",memberCount:1,health:95,featureCount:4,createdAt:"",description:""},{id:"loading2",name:"loading2",memberCount:1,health:95,featureCount:4,createdAt:"",description:""},{id:"loading3",name:"loading3",memberCount:1,health:95,featureCount:4,createdAt:"",description:""},{id:"loading4",name:"loading4",memberCount:1,health:95,featureCount:4,createdAt:"",description:""}],iD=({Icon:e,onClick:t,maxWidth:n,disabled:r=!1,children:o,permission:i,environmentId:a,projectId:s,endIcon:c,...u})=>{const d=tr(`(max-width:${n})`);return l(q,{condition:d,show:l($r,{disabled:r,onClick:t,permission:i,projectId:s,environmentId:a,"data-loading":!0,...u,children:l(e,{})}),elseShow:l(Po,{onClick:t,permission:i,projectId:s,color:"primary",variant:"contained",disabled:r,environmentId:a,endIcon:c,"data-loading":!0,...u,children:o})})},bve=({className:e,onClick:t,text:n,...r})=>l(Vt,{className:e||"",action:l(Ve,{color:"inherit",size:"small",onClick:t,children:"TRY AGAIN"}),severity:"error",...r,children:n}),aD=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M11.2608 0.811331C11.6574 0.375976 12.3426 0.375977 12.7392 0.811332L14.0529 2.25322C14.316 2.54202 14.7233 2.65114 15.0955 2.53259L16.9542 1.94073C17.5154 1.76203 18.1087 2.10458 18.2345 2.67993L18.6513 4.58549C18.7347 4.96716 19.0328 5.26527 19.4145 5.34875L21.3201 5.7655C21.8954 5.89133 22.238 6.48465 22.0593 7.04583L21.4674 8.90447C21.3489 9.27675 21.458 9.68397 21.7468 9.9471L23.1887 11.2608C23.624 11.6574 23.624 12.3426 23.1887 12.7392L21.7468 14.0529C21.458 14.316 21.3489 14.7233 21.4674 15.0955L22.0593 16.9542C22.238 17.5154 21.8954 18.1087 21.3201 18.2345L19.4145 18.6513C19.0328 18.7347 18.7347 19.0328 18.6513 19.4145L18.2345 21.3201C18.1087 21.8954 17.5154 22.238 16.9542 22.0593L15.0955 21.4674C14.7233 21.3489 14.316 21.458 14.0529 21.7468L12.7392 23.1887C12.3426 23.624 11.6574 23.624 11.2608 23.1887L9.9471 21.7468C9.68397 21.458 9.27675 21.3489 8.90447 21.4674L7.04583 22.0593C6.48465 22.238 5.89133 21.8954 5.7655 21.3201L5.34875 19.4145C5.26527 19.0328 4.96716 18.7347 4.58549 18.6513L2.67993 18.2345C2.10458 18.1087 1.76203 17.5154 1.94073 16.9542L2.53259 15.0955C2.65114 14.7233 2.54202 14.316 2.25322 14.0529L0.811331 12.7392C0.375976 12.3426 0.375977 11.6574 0.811332 11.2608L2.25322 9.9471C2.54202 9.68397 2.65114 9.27675 2.53259 8.90447L1.94073 7.04583C1.76203 6.48465 2.10458 5.89133 2.67993 5.7655L4.58549 5.34875C4.96716 5.26527 5.26527 4.96716 5.34875 4.58549L5.7655 2.67993C5.89133 2.10458 6.48465 1.76203 7.04583 1.94073L8.90447 2.53259C9.27675 2.65114 9.68397 2.54202 9.9471 2.25322L11.2608 0.811331Z",fill:"#1A4049"}),m.createElement("path",{d:"M10.4351 7.3042H7.30469V16.6955H16.696V7.3042H13.5656V13.5651H10.4351V7.3042Z",fill:"white"}),m.createElement("path",{d:"M13.5664 13.5649H16.6968V16.6954H13.5664V13.5649Z",fill:"#817AFE"})),sD=e=>m.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.739.811a1 1 0 0 0-1.479 0L9.947 2.253a1 1 0 0 1-1.043.28L7.045 1.94a1 1 0 0 0-1.28.739l-.417 1.906a1 1 0 0 1-.763.763l-1.906.417a1 1 0 0 0-.739 1.28l.592 1.859a1 1 0 0 1-.28 1.042L.812 11.261a1 1 0 0 0 0 1.478l1.442 1.314a1 1 0 0 1 .28 1.043l-.593 1.858a1 1 0 0 0 .74 1.28l1.905.417a1 1 0 0 1 .763.764l.417 1.905a1 1 0 0 0 1.28.74l1.859-.592a1 1 0 0 1 1.043.279l1.313 1.442a1 1 0 0 0 1.479 0l1.313-1.442a1 1 0 0 1 1.043-.28l1.859.592a1 1 0 0 0 1.28-.739l.417-1.905a1 1 0 0 1 .763-.764l1.906-.416a1 1 0 0 0 .739-1.28l-.592-1.86a1 1 0 0 1 .28-1.042l1.441-1.314a1 1 0 0 0 0-1.478l-1.442-1.314a1 1 0 0 1-.279-1.042l.592-1.86a1 1 0 0 0-.74-1.28l-1.905-.416a1 1 0 0 1-.763-.763l-.417-1.906a1 1 0 0 0-1.28-.74l-1.859.593a1 1 0 0 1-1.043-.28L12.74.811ZM7 7h3.434v6.565h3.13V7h3.436v10H7V7Z",fill:"#E2E1F5"}),m.createElement("path",{d:"M13.565 13.565H17V17h-3.435v-3.435Z",fill:"#817AFE"})),wve=C($e,{shouldForwardProp:e=>e!=="tooltip"})(({theme:e,tooltip:t})=>({display:"flex",flexDirection:"column",alignItems:t?"start":"center",textAlign:t?"left":"center",backgroundColor:t?"transparent":e.palette.background.elevation2,borderRadius:t?0:e.shape.borderRadiusLarge,padding:t?e.spacing(1,.5):e.spacing(7.5,1)})),Sve=C(se)(({theme:e})=>({display:"inline-flex",alignItems:"center",fontWeight:e.fontWeight.bold,gap:e.spacing(1)})),p5=C("div",{shouldForwardProp:e=>e!=="tooltip"})(({theme:e,tooltip:t})=>({margin:t?e.spacing(1,0):e.spacing(3,0,5,0)})),ew=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallBody})),f5=C("div")(()=>({display:"flex"})),h5=C(Gr)(({theme:e})=>({fontSize:e.fontSizes.smallBody})),xve={"adding-new-projects":{plan:"Pro & Enterprise",url:"",label:"Adding new projects"},access:{plan:"Pro & Enterprise",url:"https://docs.getunleash.io/reference/rbac",label:"Access"},"change-requests":{plan:"Enterprise",url:"https://docs.getunleash.io/reference/change-requests",label:"Change Requests"},segments:{plan:"Pro & Enterprise",url:"https://docs.getunleash.io/reference/segments",label:"Segments"}},Cve="https://www.getunleash.io/plans",Eve=({feature:e,tooltip:t})=>{const{url:n,plan:r,label:o}=xve[e],i=br(),a=()=>{i.trackEvent("upgrade_plan_clicked",{props:{feature:o}})},c=x(ve,{children:[n?l(h5,{href:n,target:"_blank",rel:"noreferrer",children:o}):o," is a feature available for the"," ",l("strong",{children:r})," ",r==="Pro & Enterprise"?"plans":"plan"]}),u=`${Cve}?feature=${e}`;return x(wve,{tooltip:t,children:[x(Sve,{children:[l(Pd,{darkmode:l(sD,{}),lightmode:l(aD,{})}),`${r} feature`]}),l(q,{condition:!!t,show:x(ve,{children:[l(p5,{tooltip:!0,children:x(ew,{children:[c,". You need to upgrade your plan if you want to use it"]})}),l(f5,{children:l(h5,{href:u,target:"_blank",rel:"noreferrer",onClick:a,children:"Upgrade now"})})]}),elseShow:x(ve,{children:[x(p5,{children:[l(ew,{children:c}),l(ew,{children:"You need to upgrade your plan if you want to use it"})]}),l(f5,{children:l(Ve,{variant:"outlined",href:u,target:"_blank",rel:"noreferrer",onClick:a,children:"Upgrade now"})})]})})]})},Tve=C("div")(({theme:e})=>({display:"flex",flexWrap:"wrap",[e.breakpoints.down("sm")]:{justifyContent:"center"}})),kve=C(bve)(({theme:e})=>({maxWidth:"400px",marginBottom:e.spacing(2)})),Ave=C(an)(({theme:e})=>({color:"inherit",textDecoration:"none",border:"none",padding:"0",background:"transparent",fontFamily:e.typography.fontFamily,pointer:"cursor"})),Rve="NAVIGATE_TO_CREATE_PROJECT";function _ve(e,t){return e?{disabled:!0,tooltip:{titleComponent:l(Eve,{feature:"adding-new-projects",tooltip:!0}),sx:{maxWidth:"320px"},variant:"custom"},endIcon:l(Pd,{darkmode:l(sD,{}),lightmode:l(aD,{})})}:t?{tooltip:{title:"Click to create a new project"},disabled:!1}:{tooltip:{title:"You do not have permission to create new projects"},disabled:!0}}const Pve=()=>{const{hasAccess:e}=m.useContext(_o),t=pt(),{projects:n,loading:r,error:o,refetch:i}=ma(),[a,s]=m.useState({}),{isOss:c}=It(),u=tr(ua.breakpoints.down("md")),[d,p]=Sd(),[f,h]=m.useState(d.get("search")||"");m.useEffect(()=>{const S={};f&&(S.search=f),p(S,{replace:!0})},[f,p]);const g=m.useMemo(()=>{const S=L2(f,"i");return(f?n.filter(k=>S.test(k.name)):n).sort((k,A)=>k!=null&&k.favorite&&!(A!=null&&A.favorite)?-1:!(k!=null&&k.favorite)&&(A!=null&&A.favorite)?1:0)},[n,f]),v=S=>{if(a[S])return;const{KEY:k,fetcher:A}=S9(S);Jr(k,A),s(T=>({...T,[S]:!0}))},b=_ve(c(),e(QP)),y=()=>l(kve,{onClick:i,text:"Error fetching projects"});let w=g.length<n.length?`${g.length} of ${n.length}`:n.length;return x(yr,{isLoading:r,header:l(Tn,{title:`Projects (${w})`,actions:x(ve,{children:[l(q,{condition:!u,show:x(ve,{children:[l(ko,{initialValue:f,onChange:h}),l(Tn.Divider,{})]})}),l(iD,{Icon:ha,endIcon:b.endIcon,onClick:()=>t("/projects/create"),maxWidth:"700px",permission:QP,disabled:b.disabled,tooltipProps:b.tooltip,"data-testid":Rve,children:"New project"})]}),children:l(q,{condition:u,show:l(ko,{initialValue:f,onChange:h})})}),children:[l(q,{condition:o,show:y()}),l(Tve,{children:l(q,{condition:g.length<1&&!r,show:l(q,{condition:(f==null?void 0:f.length)>0,show:x(ar,{children:["No projects found matching “",f,"”"]}),elseShow:l(ar,{children:"No projects available."})}),elseShow:l(q,{condition:r,show:()=>yve.map(S=>l(d5,{"data-loading":!0,onHover:()=>{},name:S.name,id:S.id,memberCount:2,health:95,featureCount:4},S.id)),elseShow:()=>g.map(S=>l(Ave,{to:`/projects/${S.id}`,children:l(d5,{onHover:()=>v(S.id),name:S.name,memberCount:S.memberCount??0,health:S.health,id:S.id,featureCount:S.featureCount,isFavorite:S.favorite})},S.id))})})})]})},Ive=()=>l($c,{to:"/archive",replace:!0}),Md=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0});return{validateEnvName:async f=>{const g=t("api/admin/environments/validate",{method:"POST",body:JSON.stringify({name:f})},"validateEnvName");try{return await e(g.caller,g.id,!1)}catch(v){throw v}},createEnvironment:async f=>{const g=t("api/admin/environments",{method:"POST",body:JSON.stringify(f)},"createEnvironment");try{return await e(g.caller,g.id)}catch(v){throw v}},errors:n,loading:r,deleteEnvironment:async f=>{const h=`api/admin/environments/${f}`,g=t(h,{method:"DELETE"},"deleteEnvironment");try{return await e(g.caller,g.id)}catch(v){throw v}},updateEnvironment:async(f,h)=>{const g=`api/admin/environments/update/${f}`,v=t(g,{method:"PUT",body:JSON.stringify(h)},"updateEnvironment");try{return await e(v.caller,v.id)}catch(b){throw b}},cloneEnvironment:async(f,h)=>{const g=`api/admin/environments/${f}/clone`,v=t(g,{method:"POST",body:JSON.stringify(h)},"cloneEnvironment");return await e(v.caller,v.id)},changeSortOrder:async f=>{const g=t("api/admin/environments/sort-order",{method:"PUT",body:JSON.stringify(f)},"changeSortOrder");try{return await e(g.caller,g.id)}catch(v){throw v}},toggleEnvironmentOff:async f=>{const h=`api/admin/environments/${f}/off`,g=t(h,{method:"POST"},"toggleEnvironmentOff");try{return await e(g.caller,g.id)}catch(v){throw v}},toggleEnvironmentOn:async f=>{const h=`api/admin/environments/${f}/on`,g=t(h,{method:"POST"},"toggleEnvironmentOn");try{return await e(g.caller,g.id)}catch(v){throw v}}}},Ove=e=>e.reduce((t,n,r)=>(t[n.name]=r+1,t),{}),lD=(e="",t="development")=>{const[n,r]=m.useState(e),[o,i]=m.useState(t),[a,s]=m.useState({});m.useEffect(()=>{r(e)},[e]),m.useEffect(()=>{i(t)},[t]);const{validateEnvName:c}=Md();return{name:n,setName:r,type:o,setType:i,getEnvPayload:()=>({name:n,type:o}),validateEnvironmentName:async()=>{if(n.length===0)return s(f=>({...f,name:"Environment name can not be empty"})),!1;try{return await c(n),!0}catch(f){return s(h=>({...h,name:gt(f)})),!1}},clearErrors:()=>{s({})},errors:a}},$ve=Ns()(e=>({helperText:{position:"absolute",bottom:"-1rem",whiteSpace:"nowrap",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis"}})),Nve=C("div")({position:"relative"}),rr=({label:e,placeholder:t,error:n,errorText:r,style:o,className:i,value:a,onChange:s,...c})=>{const{classes:u}=$ve();return l(Nve,{"data-loading":!0,children:l(pn,{size:"small",variant:"outlined",label:e,placeholder:t,error:n,helperText:r,style:o,className:i||"",value:a,onChange:s,FormHelperTextProps:{"data-testid":Q6,title:r,classes:{root:u.helperText}},...c})})},Lve=C(r2)({flexDirection:"row"}),m5=C("div")({display:"flex",flexDirection:"column"}),cD=({onChange:e,value:t})=>l($s,{component:"fieldset",children:x(Lve,{"data-loading":!0,value:t,onChange:e,children:[x(m5,{children:[l(Mr,{value:"development",label:"Development",control:l(sc,{})}),l(Mr,{value:"test",label:"Test",control:l(sc,{})})]}),x(m5,{children:[l(Mr,{value:"preproduction",label:"Pre production",control:l(sc,{})}),l(Mr,{value:"production",label:"Production",control:l(sc,{})})]})]})}),Uv={FIX:"fix",VARIABLE:"variable"},tw=e=>t=>t.flag?!!e.flags[t.flag]:t.configFlag?!!e[t.configFlag]:!0,Dve=()=>{window.scrollTo(0,0)},As=e=>e&&e.trim?e.trim():e,Mve=e=>{const t=new Date(e);return lh(t,"yyyy-MM-dd")+"T"+lh(t,"HH:mm")},uD=e=>{const t=new Date(e);if(N2(t))return t},Bve=e=>e/10;function d8e(e,t){if(e.length===0)return[];const n=e.reduce(({remainingPercentage:a,variableVariantCount:s},c)=>(c.weight&&c.weightType===Uv.FIX?a-=Number(c.weight):s+=1,{remainingPercentage:a,variableVariantCount:s}),{remainingPercentage:t,variableVariantCount:0}),{remainingPercentage:r,variableVariantCount:o}=n;if(r<0)throw new Error("The traffic distribution total must equal 100%");if(!o)throw new Error("There must be at least one variable variant");const i=parseInt(String(r/o));return e.map(a=>(a.weightType!==Uv.FIX&&(a.weight=i),a))}function g5(e,t){if(e.length===0)return[];const{remainingPercentage:n,variableVariantCount:r}=e.reduce(({remainingPercentage:i,variableVariantCount:a},s)=>(s.weight&&s.weightType===Uv.FIX?i-=Number(s.weight):a+=1,{remainingPercentage:i,variableVariantCount:a}),{remainingPercentage:t,variableVariantCount:0}),o=parseInt(String(n/r));return e.map(i=>(i.weightType!==Uv.FIX&&(i.weight=o),i))}const Fve=C("form")({display:"flex",flexDirection:"column",height:"100%"}),zve=C("h3")({fontWeight:"normal",marginTop:"0"}),jve=C("div")({maxWidth:"440px"}),v5=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),Uve=C(rr)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),Wve=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end"})),Hve=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),dD=({children:e,handleSubmit:t,handleCancel:n,name:r,type:o,setName:i,setType:a,validateEnvironmentName:s,errors:c,mode:u,clearErrors:d})=>x(Fve,{onSubmit:t,children:[l(zve,{children:"Environment information"}),x(jve,{children:[l(v5,{children:"What is your environment name? (Can't be changed later)"}),l(Uve,{label:"Environment name",value:r,onChange:p=>i(As(p.target.value)),error:!!c.name,errorText:c.name,onFocus:()=>d(),onBlur:s,disabled:u==="Edit",autoFocus:!0}),l(v5,{children:"What type of environment do you want to create?"}),l(cD,{onChange:p=>a(p.currentTarget.value),value:o})]}),x(Wve,{children:[e,l(Hve,{onClick:n,children:"Cancel"})]})]}),Vve=C("div")(({theme:e})=>({backgroundColor:e.palette.codebox,padding:e.spacing(2),borderRadius:e.shape.borderRadiusMedium,position:"relative",maxHeight:"500px",overflow:"auto"})),Gve=C("pre")(({theme:e})=>({margin:0,wordBreak:"break-all",whiteSpace:"pre-wrap",color:e.palette.common.white,fontSize:e.fontSizes.smallBody})),qve=({text:e})=>l(Vve,{children:l(Gve,{children:e})}),Yve="/static/unleashLogoIconDarkAlpha-de056a82.gif",Kve=C("div")(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",backgroundColor:e.palette.background.paper})),Xve=C("img")(({theme:e})=>({width:"100px",height:"100px"})),fh=()=>l(Kve,{role:"alert","aria-label":"Loading",children:l(Xve,{src:oa(Yve),alt:""})});var Jve=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},Qve=Jve,y5={"text/plain":"Text","text/html":"Url",default:"Text"},Zve="Copy to clipboard: #{key}, Enter";function eye(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function tye(e,t){var n,r,o,i,a,s,c=!1;t||(t={}),n=t.debug||!1;try{o=Qve(),i=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=y5[t.format]||y5.default;window.clipboardData.setData(p,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),a.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(p){n&&console.error("unable to copy using clipboardData: ",p),n&&console.error("falling back to prompt"),r=eye("message"in t?t.message:Zve),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),o()}return c}var nye=tye;const pD=Yr(nye),rye=e=>m.createElement("svg",{width:48,height:50,viewBox:"0 0 48 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M0.5 0.000193412C11 2.00019 17 9 18 18C19 27 23.5 31.5 30.5 34C37.5 36.5 47.34 41.4 48 49.5L48 12.0012C48 5.37332 42.6309 0.000381623 36.003 0.000366343C24.1359 0.000338986 8.66406 -0.000263908 0.5 0.000193412Z",fill:"#6C65E5"})),fD="36%",oye=C("section",{shouldForwardProp:e=>e!=="modal"})(({theme:e,modal:t})=>({minHeight:t?"100vh":"80vh",borderRadius:t?0:e.spacing(2),width:"100%",display:"flex",margin:"0 auto",overflow:t?"unset":"hidden",[e.breakpoints.down(1100)]:{flexDirection:"column",minHeight:0}})),iye=C("div")(({theme:e})=>_ie),aye=C("div",{shouldForwardProp:e=>e!=="disablePadding"})(({theme:e,disablePadding:t})=>({backgroundColor:e.palette.background.paper,display:"flex",flexDirection:"column",flexGrow:1,padding:t?0:e.spacing(6),[e.breakpoints.down("lg")]:{padding:t?0:e.spacing(4)},[e.breakpoints.down(1100)]:{width:"100%"},[e.breakpoints.down(500)]:{padding:t?0:e.spacing(4,2)}})),sye=C("h1")(({theme:e})=>({marginBottom:e.fontSizes.mainHeader,fontWeight:"normal"})),lye=C(To)(({theme:e})=>({opacity:.3,marginBottom:e.spacing(.5)})),cye=C("h2")(({theme:e})=>({color:e.palette.common.white,marginBottom:e.spacing(2),display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:e.fontWeight.bold,fontSize:e.fontSizes.bodySize})),uye=C(ML)(({theme:e})=>({fill:e.palette.primary.contrastText})),dye=C("div")(()=>({zIndex:1,position:"absolute",right:-3,top:-3})),pye=C(rye)(()=>({width:"75px",height:"75px"})),fye=C(jt)(()=>({position:"absolute",zIndex:400,right:0})),hye=C(Ble)(({theme:e})=>({fill:e.palette.primary.contrastText})),mye=C("aside")(({theme:e})=>({backgroundColor:e.palette.background.sidebar,padding:e.spacing(4),flexGrow:0,flexShrink:0,width:fD,[e.breakpoints.down(1100)]:{width:"100%",color:"red"},[e.breakpoints.down(500)]:{padding:e.spacing(4,2)}})),gye=C("p")(({theme:e})=>({color:e.palette.common.white,zIndex:1,position:"relative"})),vye=C("div")(({theme:e})=>({margin:e.spacing(3,0),display:"flex",alignItems:"center"})),yye=C(w2)(({theme:e})=>({marginRight:e.spacing(1),color:e.palette.primary.contrastText})),bye=C("a")(({theme:e})=>({color:e.palette.primary.contrastText,display:"block","&:hover":{textDecoration:"none"}})),Fr=({title:e,description:t,children:n,documentationLink:r,documentationLinkLabel:o,loading:i,modal:a,formatApiCode:s,disablePadding:c})=>{const{setToastData:u}=$t(),d=tr("(max-width:1099px)");return x(oye,{modal:a,children:[l(q,{condition:d,show:l(iye,{children:l(wye,{description:t,documentationLink:r,documentationLinkLabel:o})})}),x(aye,{disablePadding:c,children:[l(q,{condition:i||!1,show:l(fh,{}),elseShow:x(ve,{children:[l(q,{condition:e!==void 0,show:l(sye,{children:e})}),n]})})," "]}),l(q,{condition:!d,show:x(hD,{description:t,documentationLink:r,documentationLinkLabel:o,children:[l(lye,{}),x(cye,{children:["API Command"," ",l(xt,{title:"Copy command",arrow:!0,children:l(jt,{onClick:()=>{pD(s())?u({title:"Successfully copied the command",text:"The command should now be automatically copied to your clipboard",autoHideDuration:6e3,type:"success",show:!0}):u({title:"Could not copy the command",text:"Sorry, but we could not copy the command.",autoHideDuration:6e3,type:"error",show:!0})},size:"large",children:l(uye,{})})})]}),l(qve,{text:s()})]})})]})},wye=({description:e,documentationLink:t,documentationLinkLabel:n})=>{const[r,o]=m.useState(!1);return x(ve,{children:[l(dye,{children:l(pye,{})}),l(xt,{title:"Toggle help",arrow:!0,children:l(fye,{onClick:()=>o(i=>!i),size:"large",children:l(hye,{})})}),l(s6,{in:r,timeout:500,children:l(hD,{description:e,documentationLink:t,documentationLinkLabel:n})})]})},hD=({description:e,children:t,documentationLink:n,documentationLinkLabel:r="Learn more"})=>x(mye,{children:[l(gye,{children:e}),x(vye,{children:[l(yye,{}),l(bye,{href:n,rel:"noopener noreferrer",target:"_blank",children:r})]}),t]}),Bd=({name:e,...t})=>x(Po,{type:"submit",...t,children:["Create ",e]}),oT=(e={})=>{const t=()=>{const c=Rt("api/admin/permissions");return fetch(c,{method:"GET"}).then(bn("Project permissions")).then(u=>u.json())},n="api/admin/permissions",{data:r,error:o}=Pn(n,t,e),[i,a]=m.useState(!o&&!r),s=()=>{Jr(n)};return m.useEffect(()=>{a(!o&&!r)},[r,o]),{permissions:(r==null?void 0:r.permissions)||{root:[],project:[],environments:[]},error:o,loading:i,refetch:s}},yo=-1,Wv=50,Sye=()=>{const{setToastApiError:e,setToastData:t}=$t(),{uiConfig:n}=It(),r=pt(),{environments:o}=$d(),i=o.length<Wv,{createEnvironment:a,loading:s}=Md(),{refetch:c}=oT(),{name:u,setName:d,type:p,setType:f,getEnvPayload:h,validateEnvironmentName:g,clearErrors:v,errors:b}=lD(),y=async k=>{if(k.preventDefault(),v(),await g()){const T=h();try{await a(T),c(),t({title:"Environment created",type:"success",confetti:!0}),r("/environments")}catch(R){e(gt(R))}}},w=()=>`curl --location --request POST '${n.unleashUrl}/api/admin/environments' \\
268
+ --header 'Authorization: INSERT_API_KEY' \\
269
+ --header 'Content-Type: application/json' \\
270
+ --data-raw '${JSON.stringify(h(),void 0,2)}'`,S=()=>{r(yo)};return l(q,{condition:i,show:l(Fr,{loading:s,title:"Create environment",description:`Environments allow you to manage your
271
+ product lifecycle from local development
272
+ through production. Your projects and
273
+ feature toggles are accessible in all your
274
+ environments, but they can take different
275
+ configurations per environment. This means
276
+ that you can enable a feature toggle in a
277
+ development or test environment without
278
+ enabling the feature toggle in the
279
+ production environment.`,documentationLink:"https://docs.getunleash.io/reference/environments",documentationLinkLabel:"Environments documentation",formatApiCode:w,children:l(dD,{errors:b,handleSubmit:y,handleCancel:S,validateEnvironmentName:g,name:u,type:p,setName:d,setType:f,mode:"Create",clearErrors:v,children:l(Bd,{name:"environment",permission:yi})})}),elseShow:l(ve,{children:x(yr,{header:l(Tn,{title:"Create environment"}),children:[l(Vt,{severity:"error",children:x("p",{children:["Currently Unleash does not support more than"," ",Wv," environments. If you need more please reach out."]})}),l("br",{}),l(Ve,{onClick:S,variant:"contained",color:"primary",children:"Go back"})]})})})},zc=({...e})=>l(Po,{type:"submit",...e,children:"Save"}),xye={name:"",type:"",createdAt:"",sortOrder:0,enabled:!1,protected:!1},Cye=(e,t={})=>{const n=async()=>{const u=Rt(`api/admin/environments/${e}`);return fetch(u,{method:"GET"}).then(bn("Environment data")).then(d=>d.json())},r=`api/admin/environments/${e}`,{data:o,error:i}=Pn(r,n,{...t}),[a,s]=m.useState(!i&&!o),c=()=>{Jr(r)};return m.useEffect(()=>{s(!i&&!o)},[o,i]),{environment:o||xye,error:i,loading:a,refetch:c,FEATURE_CACHE_KEY:r}},Eye=()=>{const{uiConfig:e}=It(),{setToastData:t,setToastApiError:n}=$t(),r=nr("id"),{environment:o}=Cye(r),{updateEnvironment:i}=Md(),a=pt(),{name:s,type:c,setName:u,setType:d,errors:p,clearErrors:f}=lD(o.name,o.type),{refetch:h}=oT(),g=()=>({type:c,sortOrder:o.sortOrder});return l(Fr,{title:"Edit environment",description:`Environments allow you to manage your
280
+ product lifecycle from local development
281
+ through production. Your projects and
282
+ feature toggles are accessible in all your
283
+ environments, but they can take different
284
+ configurations per environment. This means
285
+ that you can enable a feature toggle in a
286
+ development or test environment without
287
+ enabling the feature toggle in the
288
+ production environment.`,documentationLink:"https://docs.getunleash.io/reference/environments",documentationLinkLabel:"Environments documentation",formatApiCode:()=>`curl --location --request PUT '${e.unleashUrl}/api/admin/environments/update/${r}' \\
289
+ --header 'Authorization: INSERT_API_KEY' \\
290
+ --header 'Content-Type: application/json' \\
291
+ --data-raw '${JSON.stringify(g(),void 0,2)}'`,children:l(dD,{handleSubmit:async w=>{w.preventDefault();try{await i(r,g()),h(),a("/environments"),t({type:"success",title:"Successfully updated environment."})}catch(S){n(gt(S))}},handleCancel:()=>{a(yo)},name:s,type:c,setName:u,setType:d,mode:"Edit",errors:p,clearErrors:f,children:l(zc,{permission:yi})})})},U1=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0}),o="api/admin/context";return{createContext:async u=>{const p=t(o,{method:"POST",body:JSON.stringify(u)});try{return await e(p.caller,p.id)}catch(f){throw f}},validateContextName:async u=>{const d=`${o}/validate`,p=t(d,{method:"POST",body:JSON.stringify({name:u})});try{return await e(p.caller,p.id)}catch(f){throw f}},updateContext:async u=>{const d=`${o}/${u.name}`,p=t(d,{method:"PUT",body:JSON.stringify(u)});try{return await e(p.caller,p.id)}catch(f){throw f}},removeContext:async u=>{const d=`${o}/${u}`,p=t(d,{method:"DELETE"});try{return await e(p.caller,p.id)}catch(f){throw f}},errors:n,loading:r}},Tye=(e,t={})=>{const n=async()=>{const u=Rt(`api/admin/context/${e}`);return fetch(u,{method:"GET"}).then(bn("Context data")).then(d=>d.json())},r=`api/admin/context/${e}`,{data:o,error:i}=Pn(r,n,{...t}),[a,s]=m.useState(!i&&!o),c=()=>{Jr(r)};return m.useEffect(()=>{s(!i&&!o)},[o,i]),{context:o||{name:"",description:"",legalValues:[],stickiness:!1},error:i,loading:a,refetch:c,FEATURE_CACHE_KEY:r}},kye=C("li")(({theme:e})=>({display:"grid",lineHeight:1.25,gridTemplateColumns:"1fr auto",alignSelf:"start",alignItems:"start",gap:e.spacing(1),padding:e.spacing(1),background:e.palette.background.elevation2,borderRadius:e.shape.borderRadius,wordBreak:"break-word"})),Aye=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallBody})),Rye=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallerBody,color:e.palette.neutral.main})),_ye=C("button")(({theme:e})=>({all:"unset",lineHeight:.1,paddingTop:"1px",display:"block",cursor:"pointer","& svg":{fontSize:e.fontSizes.bodySize,opacity:.5},"&:hover svg, &:focus-visible svg":{opacity:.75}})),Pye=({label:e,description:t,onRemove:n})=>x(kye,{children:[x("div",{children:[l(Aye,{children:e}),l(q,{condition:!!t,show:()=>l(Rye,{children:t})})]}),l(_ye,{onClick:n,children:l(Ale,{titleAccess:"Remove"})})]}),Iye=C("ul")(({theme:e})=>({listStyleType:"none",display:"flex",flexWrap:"wrap",gap:e.spacing(1),padding:0,margin:0,marginBottom:"1rem !important"})),Oye=Iye,$ye=({strategyDefinition:e})=>l("p",{children:e==null?void 0:e.description}),Nye=kie(gre,e=>({root:{height:8},thumb:{height:24,width:24,backgroundColor:e.palette.background.paper,border:"2px solid currentColor"},active:{},valueLabel:{},track:{height:8,borderRadius:e.shape.borderRadius},rail:{height:8,borderRadius:e.shape.borderRadius}})),Lye=Ns()(e=>({slider:{width:"100%",maxWidth:"100%"},margin:{height:e.spacing(3)}})),Dye=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"},{value:100,label:"100%"}],mD=({name:e,value:t,onChange:n,disabled:r=!1})=>{const{classes:o}=Lye(),i=a=>`${a}%`;return x("div",{className:o.slider,children:[l(se,{id:"discrete-slider-always",variant:"h3",gutterBottom:!0,component:"h3",children:e}),l(Nye,{min:0,max:100,value:t,getAriaValueText:i,"aria-labelledby":"discrete-slider-always",step:1,"data-testid":eae,marks:Dye,onChange:n,valueLabelDisplay:"on",disabled:r})]})},Cf=e=>{const t=Number(pl(e));return Number.isFinite(t)?t:0},pl=e=>String(e??"").trim(),tl=e=>pl(e).split(",").map(t=>t.trim()).filter(Boolean),Qh=({name:e,value:t="",label:n="",options:r,onChange:o,id:i,disabled:a=!1,className:s,classes:c,...u})=>x($s,{variant:"outlined",size:"small",classes:c,children:[l(zh,{htmlFor:i,children:n}),l(jh,{name:e,disabled:a,onChange:o,className:s,label:n,id:i,value:t,...u,children:(()=>r.map(p=>l(qa,{value:p.key,title:p.title||"","data-testid":`${J6}-${p.label}`,children:p.label},p.key)))()})]}),ts=(e={revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0})=>{const t=()=>{const s=Rt("api/admin/context");return fetch(s,{method:"GET"}).then(bn("Context variables")).then(c=>c.json())},n="api/admin/context",{data:r,mutate:o,error:i,isValidating:a}=Pn(n,t,e);return{context:r||[],error:i,loading:a&&!i&&!r,refetchUnleashContext:o}},Mye="random",Bye="default",gD=({label:e,editable:t,value:n,onChange:r,dataTestId:o})=>{const{context:i}=ts(),a=yn(),c=(()=>{const u=i.filter(d=>d.stickiness).map(d=>({key:d.name,label:d.name}));return!u.find(d=>d.key==="default")&&!i.find(d=>d.name===Bye)&&u.push({key:"default",label:"default"}),!u.find(d=>d.key==="random")&&!i.find(d=>d.name===Mye)&&u.push({key:"random",label:"random"}),n&&!u.find(d=>d.key===n)&&u.push({key:n,label:n}),u})();return l(Qh,{id:"stickiness-select",name:"stickiness",label:e,options:c,value:n,disabled:!t,"data-testid":o,onChange:r,style:{width:"inherit",minWidth:"100%",marginBottom:a.spacing(2)}})},Fye="default",vD=e=>{const{project:t,loading:n,error:r}=od(e);return{defaultStickiness:t.defaultStickiness?t.defaultStickiness:Fye,mode:t.mode,loading:n,error:r}},zye=({updateParameter:e,parameters:t,editable:n=!0})=>{const r=nr("projectId"),{defaultStickiness:o,loading:i}=vD(r),{pathname:a}=Ro(),s=a.includes("default-strategy"),c=f=>h=>{e(f,h)},u=(f,h)=>{e("rollout",h.toString())},d=t.rollout!==void 0?Cf(t.rollout):100,p=m.useMemo(()=>t.stickiness===""&&!i?o:pl(t.stickiness),[i,t.stickiness]);return t.stickiness===""&&c("stickiness")(p),m.useEffect(()=>{s&&!t.groupId&&c("groupId")("")},[s]),i?l(fh,{}):x("div",{children:[l(mD,{name:"Rollout",value:d,disabled:!n,onChange:u}),l("br",{}),x("div",{children:[x(se,{variant:"subtitle2",style:{marginBottom:"1rem",display:"flex",gap:"1ch"},component:"h2",children:["Stickiness",l(Xa,{tooltip:"Stickiness defines what parameter should be used to ensure that your users get consistency in features. By default unleash will use the first value present in the context in the order of userId, sessionId and random."})]}),l(gD,{label:"Stickiness",value:p,editable:n,dataTestId:nae,onChange:f=>c("stickiness")(f.target.value)})," ",l("br",{}),l("br",{}),x(se,{variant:"subtitle2",style:{marginBottom:"1rem",display:"flex",gap:"1ch"},component:"h2",children:["GroupId",l(Xa,{tooltip:"GroupId is used to ensure that different toggles will hash differently for the same user. The groupId defaults to feature toggle name, but you can override it to correlate rollout of multiple feature toggles."})]}),l(rr,{label:"groupId",id:"groupId-input",value:pl(t.groupId),disabled:!n,onChange:f=>c("groupId")(f.target.value),"data-testid":rae})]})]})},Ra=({text:e,maxWidth:t,maxLength:n,className:r,...o})=>l(q,{condition:((e==null?void 0:e.length)??0)>n,show:l(xt,{title:e,arrow:!0,children:l("span",{"data-loading":!0,className:r,style:{maxWidth:`${t}px`,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"inline-block",verticalAlign:"middle"},...o,children:e})}),elseShow:l("span",{className:r,children:e})}),jye=C("div")(({theme:e})=>({display:"grid",gap:e.spacing(1)})),Uye=C("div")(({theme:e})=>({display:"flex",gap:e.spacing(1),flexWrap:"wrap"})),Wye=C("div")(({theme:e})=>({display:"flex",gap:e.spacing(1),alignItems:"start"})),yD=({name:e,list:t,setConfig:n,disabled:r,errors:o})=>{const[i,a]=m.useState(""),s="Enter",c=h=>{d(h)},u=h=>{(h==null?void 0:h.key)===s&&(d(h),h.preventDefault(),h.stopPropagation())},d=h=>{h.preventDefault();const g=h.target.value;if(g){const v=g.split(/,\s*/).filter(b=>!t.includes(b));if(v.length>0){const b=t.concat(v).filter(y=>y);n(e,b.join(","))}a("")}},p=h=>{t[h]=null,n(e,t.length===1?"":t.filter(Boolean).join(","))},f=h=>{a(h.currentTarget.value)};return x(jye,{children:[x(se,{variant:"subtitle2",component:"h2",children:["List of ",e]}),l(q,{condition:t.length>0,show:l(Uye,{children:t.map((h,g)=>l(Os,{label:l(Ra,{maxWidth:"300",text:h,maxLength:50}),onDelete:r?void 0:()=>p(g),title:"Remove value"},g+h))})}),l(q,{condition:!r,show:x(Wye,{children:[l(pn,{error:!!o.getFormError(e),helperText:o.getFormError(e),name:"input_field",variant:"outlined",label:"Add items",id:"input-add-items",value:i,size:"small",placeholder:"",onBlur:c,onChange:f,onKeyDown:u,"data-testid":oae}),l(Ve,{onClick:d,"data-testid":iae,variant:"outlined",color:"secondary",startIcon:l(ha,{}),children:"Add"})]})})]})},Hye=({editable:e,parameters:t,updateParameter:n,errors:r})=>l("div",{children:l(yD,{name:"userIds",list:tl(t.userIds),disabled:!e,setConfig:n,errors:r})}),Ip=({text:e})=>e?l($e,{sx:t=>({color:t.palette.text.secondary,fontSize:t.fontSizes.smallerBody,marginTop:t.spacing(1)}),children:e}):null,Vye=({definition:e,parameters:t,updateParameter:n,editable:r,errors:o})=>{const{type:i,name:a,description:s,required:c}=e,u=t[a],d=o.getFormError(a),p=c?`${a} * `:a,f=y=>{n(a,y.target.value)},h=y=>{n(a,pl(y.target.value))},g=(y,w)=>{n(a,w.toString())},v=(y,w)=>{n(a,String(w))},b=(y,w)=>{n(y,tl(w).join(","))};if(i==="percentage")return x("div",{children:[l(mD,{name:a,onChange:g,disabled:!r,value:Cf(t[a]),minLabel:"off",maxLabel:"on"}),l(Ip,{text:s})]});if(i==="list")return x("div",{children:[l(yD,{name:a,list:tl(t[a]),disabled:!r,setConfig:b,errors:o}),l(Ip,{text:s})]});if(i==="number")return x("div",{children:[l(pn,{error:!!d,helperText:d,variant:"outlined",size:"small","aria-required":c,style:{width:"100%"},disabled:!r,label:p,onChange:f,value:u}),l(Ip,{text:s})]});if(i==="boolean"){const w=pl(t[a])==="true";return x("div",{children:[l(Mr,{label:a,control:l(fa,{name:a,onChange:v,checked:w})}),l(Ip,{text:s})]})}return x("div",{children:[l(pn,{rows:1,placeholder:"",variant:"outlined",size:"small",style:{width:"100%"},"aria-required":c,disabled:!r,error:!!d,helperText:d,name:a,label:p,onChange:h,value:pl(t[a])}),l(Ip,{text:s})]})},Gye=Xr("div")(({theme:e})=>({display:"grid",gap:e.spacing(4)})),qye=({parameters:e,strategyDefinition:t,updateParameter:n,editable:r,errors:o})=>!t||t.parameters.length===0?null:l(Gye,{children:t.parameters.map((i,a)=>l("div",{children:l(Vye,{definition:i,parameters:e,updateParameter:n,editable:r,errors:o})},a))});function ia(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ad(e){return!!e&&!!e[fi]}function Cc(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===t1e}(e)||Array.isArray(e)||!!e[k5]||!!(!((t=e.constructor)===null||t===void 0)&&t[k5])||iT(e)||aT(e))}function hh(e,t,n){n===void 0&&(n=!1),Fd(e)===0?(n?Object.keys:dT)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Fd(e){var t=e[fi];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:iT(e)?2:aT(e)?3:0}function xx(e,t){return Fd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Yye(e,t){return Fd(e)===2?e.get(t):e[t]}function bD(e,t,n){var r=Fd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Kye(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function iT(e){return Zye&&e instanceof Map}function aT(e){return e1e&&e instanceof Set}function Yl(e){return e.o||e.t}function sT(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=n1e(e);delete t[fi];for(var n=dT(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function lT(e,t){return t===void 0&&(t=!1),cT(e)||ad(e)||!Cc(e)||(Fd(e)>1&&(e.set=e.add=e.clear=e.delete=Xye),Object.freeze(e),t&&hh(e,function(n,r){return lT(r,!0)},!0)),e}function Xye(){ia(2)}function cT(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ha(e){var t=r1e[e];return t||ia(18,e),t}function b5(){return mh}function nw(e,t){t&&(Ha("Patches"),e.u=[],e.s=[],e.v=t)}function Hv(e){Cx(e),e.p.forEach(Jye),e.p=null}function Cx(e){e===mh&&(mh=e.l)}function w5(e){return mh={p:[],l:mh,h:e,m:!0,_:0}}function Jye(e){var t=e[fi];t.i===0||t.i===1?t.j():t.g=!0}function rw(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Ha("ES5").S(t,e,r),r?(n[fi].P&&(Hv(t),ia(4)),Cc(e)&&(e=Vv(t,e),t.l||Gv(t,e)),t.u&&Ha("Patches").M(n[fi].t,e,t.u,t.s)):e=Vv(t,n,[]),Hv(t),t.u&&t.v(t.u,t.s),e!==wD?e:void 0}function Vv(e,t,n){if(cT(t))return t;var r=t[fi];if(!r)return hh(t,function(s,c){return S5(e,r,t,s,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Gv(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=sT(r.k):r.o,i=o,a=!1;r.i===3&&(i=new Set(o),o.clear(),a=!0),hh(i,function(s,c){return S5(e,r,o,s,c,n,a)}),Gv(e,o,!1),n&&e.u&&Ha("Patches").N(r,n,e.u,e.s)}return r.o}function S5(e,t,n,r,o,i,a){if(ad(o)){var s=Vv(e,o,i&&t&&t.i!==3&&!xx(t.R,r)?i.concat(r):void 0);if(bD(n,r,s),!ad(s))return;e.m=!1}else a&&n.add(o);if(Cc(o)&&!cT(o)){if(!e.h.D&&e._<1)return;Vv(e,o),t&&t.A.l||Gv(e,o)}}function Gv(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&lT(t,n)}function ow(e,t){var n=e[fi];return(n?Yl(n):e)[t]}function x5(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ex(e){e.P||(e.P=!0,e.l&&Ex(e.l))}function iw(e){e.o||(e.o=sT(e.t))}function Tx(e,t,n){var r=iT(t)?Ha("MapSet").F(t,n):aT(t)?Ha("MapSet").T(t,n):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:b5(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=s,u=kx;a&&(c=[s],u=Zp);var d=Proxy.revocable(c,u),p=d.revoke,f=d.proxy;return s.k=f,s.j=p,f}(t,n):Ha("ES5").J(t,n);return(n?n.A:b5()).p.push(r),r}function Qye(e){return ad(e)||ia(22,e),function t(n){if(!Cc(n))return n;var r,o=n[fi],i=Fd(n);if(o){if(!o.P&&(o.i<4||!Ha("ES5").K(o)))return o.t;o.I=!0,r=C5(n,i),o.I=!1}else r=C5(n,i);return hh(r,function(a,s){o&&Yye(o.t,a)===s||bD(r,a,t(s))}),i===3?new Set(r):r}(e)}function C5(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return sT(e)}var E5,mh,uT=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Zye=typeof Map<"u",e1e=typeof Set<"u",T5=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",wD=uT?Symbol.for("immer-nothing"):((E5={})["immer-nothing"]=!0,E5),k5=uT?Symbol.for("immer-draftable"):"__$immer_draftable",fi=uT?Symbol.for("immer-state"):"__$immer_state",t1e=""+Object.prototype.constructor,dT=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,n1e=Object.getOwnPropertyDescriptors||function(e){var t={};return dT(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},r1e={},kx={get:function(e,t){if(t===fi)return e;var n=Yl(e);if(!xx(n,t))return function(o,i,a){var s,c=x5(i,a);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!Cc(r)?r:r===ow(e.t,t)?(iw(e),e.o[t]=Tx(e.A.h,r,e)):r},has:function(e,t){return t in Yl(e)},ownKeys:function(e){return Reflect.ownKeys(Yl(e))},set:function(e,t,n){var r=x5(Yl(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=ow(Yl(e),t),i=o==null?void 0:o[fi];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Kye(n,o)&&(n!==void 0||xx(e.t,t)))return!0;iw(e),Ex(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return ow(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,iw(e),Ex(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Yl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){ia(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ia(12)}},Zp={};hh(kx,function(e,t){Zp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Zp.deleteProperty=function(e,t){return Zp.set.call(this,e,t,void 0)},Zp.set=function(e,t,n){return kx.set.call(this,e[0],t,n,e[0])};var o1e=function(){function e(n){var r=this;this.O=T5,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var c=r;return function(v){var b=this;v===void 0&&(v=s);for(var y=arguments.length,w=Array(y>1?y-1:0),S=1;S<y;S++)w[S-1]=arguments[S];return c.produce(v,function(k){var A;return(A=i).call.apply(A,[b,k].concat(w))})}}var u;if(typeof i!="function"&&ia(6),a!==void 0&&typeof a!="function"&&ia(7),Cc(o)){var d=w5(r),p=Tx(r,o,void 0),f=!0;try{u=i(p),f=!1}finally{f?Hv(d):Cx(d)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(v){return nw(d,a),rw(v,d)},function(v){throw Hv(d),v}):(nw(d,a),rw(u,d))}if(!o||typeof o!="object"){if((u=i(o))===void 0&&(u=o),u===wD&&(u=void 0),r.D&&lT(u,!0),a){var h=[],g=[];Ha("Patches").M(o,u,h,g),a(h,g)}return u}ia(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(u){for(var d=arguments.length,p=Array(d>1?d-1:0),f=1;f<d;f++)p[f-1]=arguments[f];return r.produceWithPatches(u,function(h){return o.apply(void 0,[h].concat(p))})};var a,s,c=r.produce(o,i,function(u,d){a=u,s=d});return typeof Promise<"u"&&c instanceof Promise?c.then(function(u){return[u,a,s]}):[c,a,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Cc(n)||ia(8),ad(n)&&(n=Qye(n));var r=w5(this),o=Tx(this,n,void 0);return o[fi].C=!0,Cx(r),o},t.finishDraft=function(n,r){var o=n&&n[fi],i=o.A;return nw(i,r),rw(void 0,i)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!T5&&ia(20),this.O=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=Ha("Patches").$;return ad(n)?a(n,r):this.produce(n,function(s){return a(s,r)})},e}(),hi=new o1e,i1e=hi.produce;hi.produceWithPatches.bind(hi);hi.setAutoFreeze.bind(hi);hi.setUseProxies.bind(hi);hi.applyPatches.bind(hi);hi.createDraft.bind(hi);hi.finishDraft.bind(hi);const Ri=i1e,a1e=({hasAccess:e,strategy:t,strategyDefinition:n,setStrategy:r,validateParameter:o,errors:i})=>{const{context:a}=ts(),s=(c,u)=>{r(Ri(d=>{d.parameters=d.parameters??{},d.parameters[c]=u})),o(c,u)};switch(t.name){case"default":return l($ye,{strategyDefinition:n});case"flexibleRollout":return l(zye,{context:a,parameters:t.parameters??{},updateParameter:s,editable:e});case"userWithId":return l(Hye,{parameters:t.parameters??{},updateParameter:s,editable:e,errors:i});default:return l(qye,{strategyDefinition:n,parameters:t.parameters??{},updateParameter:s,editable:e,errors:i})}},s1e={environments:[],name:"",type:"",stale:!1,archived:!1,createdAt:"",lastSeenAt:"",project:"",variants:[],description:"",favorite:!1,impressionData:!1},Rs=(e,t,n)=>{const r=c1e(e,t),{data:o,error:i,mutate:a}=Pn(["useFeature",r],()=>l1e(r),n),s=m.useCallback(()=>{a().catch(console.warn)},[a]);return{feature:(o==null?void 0:o.body)||s1e,refetchFeature:s,loading:!i&&!o,status:o==null?void 0:o.status,error:i}},l1e=async e=>{const t=await fetch(e);return t.status===404?{status:404}:(t.ok||await bn("Feature toggle data")(t),{status:t.status,body:await t.json()})},c1e=(e,t)=>Rt(`api/admin/projects/${e}/features/${t}?variantEnvironments=true`),u1e=({projectId:e,featureId:t,environmentId:n,children:r})=>{const o=MT(e,t),{feature:i}=Rs(e,t),a=l(an,{to:o,children:"feature toggle page"});return l(q,{condition:d1e(i,n),show:r,elseShow:x(Vt,{severity:"warning",children:["This feature toggle is currently disabled in the"," ",l("strong",{children:n})," environment. Any changes made here will not take effect until the toggle has been enabled on the ",a,"."]})})},d1e=(e,t)=>{const n=e.environments.find(r=>r.name===t);return n?n.enabled:!1},pT="NOT_IN",W1="IN",fT="STR_ENDS_WITH",hT="STR_STARTS_WITH",mT="STR_CONTAINS",gT="NUM_EQ",vT="NUM_GT",yT="NUM_GTE",bT="NUM_LT",wT="NUM_LTE",H1="DATE_AFTER",ST="DATE_BEFORE",xT="SEMVER_EQ",CT="SEMVER_GT",ET="SEMVER_LT",p1e=[W1,pT,mT,hT,fT,gT,vT,yT,bT,wT,ST,H1,xT,CT,ET],ws=[mT,hT,fT],pc=[W1,pT],Fu=[gT,vT,yT,bT,wT],Ni=[ST,H1],zu=[xT,CT,ET],SD=[...zu,...Ni,...Fu];[...ws,...pc];const f1e=[...ws,...Ni,...SD],Mn=(e,t)=>e.some(n=>n===t),xD=()=>x(Vt,{severity:"warning",children:["Remember to update your Unleash client! New operators require new SDK versions. ",l(h1e,{}),"."]}),h1e=()=>l("a",{href:"https://docs.getunleash.io/reference/strategy-constraints#strategy-constraint-operators",target:"_blank",rel:"noreferrer",children:"Read more"}),m1e=C("div")(({theme:e})=>({padding:e.spacing(2)})),g1e=C("div")(({theme:e})=>({display:"flex",alignItems:"center",marginTop:e.spacing(2),borderTop:`1px solid ${e.palette.divider}`,width:"100%",padding:e.spacing(2)})),v1e=C("div")({marginLeft:"auto"}),y1e=C(Ve)(({theme:e})=>({marginRight:e.spacing(1),minWidth:"125px"})),b1e=C(Ve)(({theme:e})=>({marginLeft:e.spacing(1),minWidth:"125px"})),w1e=({localConstraint:e,children:t,triggerTransition:n,setAction:r,onSubmit:o})=>x(ve,{children:[x(m1e,{children:[l(q,{condition:Mn(f1e,e.operator),show:l(xD,{})}),t]}),l(g1e,{children:x(v1e,{children:[l(y1e,{type:"button",onClick:o,variant:"contained",color:"primary","data-testid":"CONSTRAINT_SAVE_BUTTON",children:"Save"}),l(b1e,{onClick:()=>{r(JD),n()},children:"Cancel"})]})})]}),CD=({compact:e})=>l($e,{sx:{backgroundColor:"primary.light",p:e?"1px":"2px",borderRadius:"50%",width:e?"18px":"24px",height:e?"18px":"24px",marginRight:"13px"},children:l(Jle,{sx:t=>({fill:t.palette.common.white,display:"block",width:e?t.spacing(2):t.spacing(2.5),height:e?t.spacing(2):t.spacing(2.5)})})}),S1e=(e,t)=>{const n=`To satisfy this constraint, values passed into the SDK as ${t} must`;if(e===W1)return`${n} include:`;if(e===pT)return`${n} not include:`;if(e===fT)return`${n} end with:`;if(e===hT)return`${n} start with:`;if(e===mT)return`${n} contain:`;if(e===gT)return`${n} match:`;if(e===vT)return`${n} be greater than:`;if(e===yT)return`${n} be greater than or equal to:`;if(e===bT)return`${n} be less than:`;if(e===wT)return`${n} be less than or equal to:`;if(e===H1)return`${n} be after the following date`;if(e===ST)return`${n} be before the following date:`;if(e===xT)return`${n} match the following version:`;if(e===CT)return`${n} be greater than the following version:`;if(e===ET)return`${n} be less than the following version:`},Ax=e=>x1e[e],x1e={IN:"is one of",NOT_IN:"is not one of",STR_CONTAINS:"is a string that contains",STR_STARTS_WITH:"is a string that starts with",STR_ENDS_WITH:"is a string that ends with",NUM_EQ:"is a number equal to",NUM_GT:"is a number greater than",NUM_GTE:"is a number greater than or equal to",NUM_LT:"is a number less than",NUM_LTE:"is a number less than or equal to",DATE_BEFORE:"is a date before",DATE_AFTER:"is a date after",SEMVER_EQ:"is a SemVer equal to",SEMVER_GT:"is a SemVer greater than",SEMVER_LT:"is a SemVer less than"},C1e=C("div")(({theme:e})=>({lineHeight:1.1,marginTop:-2,marginBottom:-10})),A5=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallBody})),R5=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallerBody,color:e.palette.neutral.main,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"})),E1e=C($s)(({theme:e})=>({[e.breakpoints.between(1101,1365)]:{width:"170px",marginRight:e.spacing(.5)}})),T1e=C(qa,{shouldForwardProp:e=>e!=="separator"})(({theme:e,separator:t})=>t?{position:"relative",overflow:"visible",marginTop:e.spacing(2),"&:before":{content:'""',display:"block",position:"absolute",top:e.spacing(-1),left:0,right:0,borderTop:"1px solid",borderTopColor:e.palette.divider}}:{}),k1e=C("div")(({theme:e})=>({lineHeight:1.2})),A1e=({options:e,value:t,onChange:n})=>{const[r,o]=m.useState(!1);return x(E1e,{variant:"outlined",size:"small",fullWidth:!0,children:[l(zh,{htmlFor:"operator-select",children:"Operator"}),l(jh,{id:"operator-select",name:"operator",label:"Operator",value:t,open:r,onOpen:()=>o(!0),onClose:()=>o(!1),onChange:s=>{n(s.target.value)},renderValue:()=>x(C1e,{children:[l(A5,{children:t}),l(R5,{children:Ax(t)})]}),children:e.map(s=>l(T1e,{value:s,separator:R1e(e,s),children:x(k1e,{children:[l(A5,{children:s}),l(R5,{children:Ax(s)})]})},s))})]})},R1e=(e,t)=>t===e[0]?!1:_1e.some(n=>n[0]===t),_1e=[pc,ws,Fu,Ni,zu],gh="currentTime",ED=e=>p1e.filter(t=>!(Mn(Ni,t)&&e!==gh||!Mn(Ni,t)&&e===gh)),TD=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0033 3C10.6666 3 9.62387 4.15704 9.76236 5.48654L10.6238 13.7567C10.6974 14.4633 11.293 15 12.0033 15C12.7137 15 13.3093 14.4633 13.3829 13.7567L14.2443 5.48655C14.3828 4.15704 13.34 3 12.0033 3ZM12.0033 17C11.0368 17 10.2533 17.7835 10.2533 18.75C10.2533 19.7165 11.0368 20.5 12.0033 20.5C12.9698 20.5 13.7533 19.7165 13.7533 18.75C13.7533 17.7835 12.9698 17 12.0033 17Z"})),P1e=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.10831 2.60839C3.71687 2.23054 3.09322 2.23475 2.70696 2.62102C2.31643 3.01154 2.31643 3.64471 2.70696 4.03523L10.414 11.7423L10.6238 13.7566C10.6974 14.4631 11.293 14.9998 12.0033 14.9998C12.4551 14.9998 12.8605 14.7827 13.1147 14.4429L19.6775 21.0058C20.068 21.3963 20.7012 21.3963 21.0917 21.0058C21.478 20.6195 21.4822 19.9959 21.1044 19.6044C21.1001 19.6003 21.0958 19.5961 21.0916 19.5919L4.12102 2.62132C4.11674 2.61704 4.1125 2.61273 4.10831 2.60839ZM13.8264 9.4983L14.2443 5.4864C14.3828 4.15689 13.34 2.99985 12.0033 2.99985C10.6859 2.99985 9.65401 4.12375 9.7571 5.42898L13.8264 9.4983ZM12.0033 16.9998C11.0368 16.9998 10.2533 17.7834 10.2533 18.7498C10.2533 19.7163 11.0368 20.4998 12.0033 20.4998C12.9698 20.4998 13.7533 19.7163 13.7533 18.7498C13.7533 17.7834 12.9698 16.9998 12.0033 16.9998Z"})),kD=Xr(jt)(({theme:e})=>({width:"28px",minWidth:"28px",maxWidth:"28px",height:"auto",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,padding:"0 1px 0",marginRight:"1rem","&:hover":{background:e.palette.background.application},[e.breakpoints.between(1101,1365)]:{marginRight:"0.5rem",alignItems:"center"}})),AD=Xr(jt)(({theme:e})=>({width:"28px",minWidth:"28px",maxWidth:"28px",color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,borderRadius:e.shape.borderRadius,marginRight:"1rem",padding:"0 1px 0","&:hover":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main},[e.breakpoints.between(1101,1365)]:{marginRight:"0.5rem",alignItems:"center"}})),I1e=({localConstraint:e,setInvertedOperator:t})=>l(xt,{title:e.inverted?"Remove negation":"Negate operator",arrow:!0,children:l($e,{sx:{display:"flex",alignItems:"stretch"},children:l(q,{condition:!!e.inverted,show:l(AD,{className:"operator-is-active",onClick:t,disableRipple:!0,children:l(TD,{})}),elseShow:l(kD,{onClick:t,disableRipple:!0,children:l(P1e,{})})})})}),RD=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M5 18C5 18.55 5.45 19 6 19H18C18.55 19 19 18.55 19 18C19 17.45 18.55 17 18 17H6C5.45 17 5 17.45 5 18ZM9.5 12.8H14.5L15.16 14.4C15.31 14.76 15.66 15 16.05 15C16.74 15 17.2 14.29 16.93 13.66L13.05 4.69C12.87 4.27 12.46 4 12 4C11.54 4 11.13 4.27 10.95 4.69L7.07 13.66C6.8 14.29 7.27 15 7.96 15C8.35 15 8.7 14.76 8.85 14.4L9.5 12.8ZM12 5.98L13.87 11H10.13L12 5.98Z"})),O1e=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.10831 2.60839C3.71687 2.23054 3.09322 2.23475 2.70696 2.62102C2.31643 3.01154 2.31643 3.64471 2.70696 4.03523L8.65871 9.98698L7.07 13.6598C6.8 14.2898 7.27 14.9998 7.96 14.9998C8.35 14.9998 8.7 14.7598 8.85 14.3998L9.5 12.7998H11.4716L15.6716 16.9998H6C5.45 16.9998 5 17.4498 5 17.9998C5 18.5498 5.45 18.9998 6 18.9998H17.6716L19.6775 21.0058C20.068 21.3963 20.7012 21.3963 21.0917 21.0058C21.478 20.6195 21.4822 19.9959 21.1044 19.6044C21.1001 19.6003 21.0958 19.5961 21.0916 19.5919L4.12102 2.62132C4.11674 2.61704 4.1125 2.61273 4.10831 2.60839ZM16.1235 11.7954L13.05 4.68985C12.87 4.26985 12.46 3.99985 12 3.99985C11.54 3.99985 11.13 4.26985 10.95 4.68985L10.3666 6.03851L11.5408 7.21265L12 5.97985L13.0045 8.67635L16.1235 11.7954Z"})),$1e=({localConstraint:e,setCaseInsensitive:t})=>l(xt,{title:e.caseInsensitive?"Make it case sensitive":"Make it case insensitive",arrow:!0,children:l($e,{sx:{display:"flex",alignItems:"stretch"},children:l(q,{condition:!!e.caseInsensitive,show:l(kD,{onClick:t,disableRipple:!0,children:l(O1e,{})}),elseShow:l(AD,{className:"operator-is-active",onClick:t,disableRipple:!0,children:l(RD,{})})})})}),N1e=C("div")(({theme:e})=>({marginLeft:"auto",whiteSpace:"nowrap",[e.breakpoints.down("sm")]:{display:"none"}})),_D=({onEdit:e,onDelete:t,disableDelete:n=!1,disableEdit:r=!1})=>{const o=e&&(a=>{a.stopPropagation(),e()}),i=t&&(a=>{a.stopPropagation(),t()});return x(N1e,{children:[l(q,{condition:!!o&&!r,show:l(xt,{title:"Edit constraint",arrow:!0,children:l(jt,{type:"button",onClick:o,disabled:r,children:l(di,{})})})}),l(q,{condition:!!i&&!n,show:l(xt,{title:"Delete constraint",arrow:!0,children:l(jt,{type:"button",onClick:i,disabled:n,children:l(vo,{})})})})]})},L1e=C("div")(({theme:e})=>({display:"flex",alignItems:"center",width:"100%",[e.breakpoints.down("sm")]:{flexDirection:"column",alignItems:"center",position:"relative"}})),D1e=C("div")(({theme:e})=>({display:"flex",alignItems:"center",[e.breakpoints.down(770)]:{flexDirection:"column"}})),M1e=C("div")(({theme:e})=>({[e.breakpoints.down(770)]:{marginTop:e.spacing(2)},display:"inline-flex"})),B1e=C("div")(({theme:e})=>({marginRight:e.spacing(2),width:"200px",[e.breakpoints.between(1101,1365)]:{width:"170px",marginRight:e.spacing(1)}})),F1e=C(Nd)(({theme:e})=>({marginRight:e.spacing(2),width:"200px",[e.breakpoints.between(1101,1365)]:{width:"170px",marginRight:e.spacing(1)}})),z1e=C("p")(({theme:e})=>({maxWidth:"400px",fontSize:e.fontSizes.smallBody,[e.breakpoints.down("xl")]:{display:"none"}})),j1e=({compact:e,localConstraint:t,setLocalConstraint:n,setContextName:r,setOperator:o,onDelete:i,setInvertedOperator:a,setCaseInsensitive:s})=>{const{context:c}=ts(),{contextName:u,operator:d}=t,[p,f]=m.useState(!1),{uiConfig:h}=It(),g=!!h.flags.caseInsensitiveInOperators;if(m.useEffect(()=>{u===gh&&!Mn(Ni,d)?n(y=>({...y,operator:H1,value:new Date().toISOString()})):u!==gh&&Mn(Ni,d)&&o(W1),Mn(ws,d)||Mn(pc,d)&&g?f(!0):f(!1)},[u,o,d,n,g]),!c)return null;const v=c.map(y=>({key:y.name,label:y.name})),b=y=>{Mn(ws,y)||Mn(pc,y)&&g?f(!0):f(!1),Mn(Ni,y)?n(w=>({...w,operator:y,value:new Date().toISOString()})):o(y)};return x(L1e,{children:[l(CD,{}),x(D1e,{children:[l("div",{children:l(F1e,{id:"context-field-select",name:"contextName",label:"Context Field",autoFocus:!0,options:v,value:u||"",onChange:r})}),x(M1e,{children:[l(I1e,{localConstraint:t,setInvertedOperator:a}),l(B1e,{children:l(A1e,{options:ED(u),value:d,onChange:b})}),l(q,{condition:p,show:l($1e,{localConstraint:t,setCaseInsensitive:s})})]})]}),l(q,{condition:!e,show:l(z1e,{children:S1e(d,u)})}),l(_D,{onDelete:i,disableEdit:!0})]})},_5=e=>Ri(e,t=>{Mn(SD,e.operator)?delete t.values:delete t.value}),zd=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0}),o=async A=>{const R=t("api/admin/features/validate",{method:"POST",body:JSON.stringify({name:A})});try{return await e(R.caller,R.id)}catch(P){throw P}},i=async A=>{const R=t("api/admin/constraints/validate",{method:"POST",body:JSON.stringify(A)});await e(R.caller,R.id)},a=async(A,T)=>{const R=`/api/admin/projects/${A}/features`,P=t(R,{method:"POST",body:JSON.stringify(T)});await e(P.caller,P.id)},s=m.useCallback(async(A,T,R,P=!1)=>{const _=`api/admin/projects/${A}/features/${T}/environments/${R}/on?shouldActivateDisabledStrategies=${P}`,O=t(_,{method:"POST"},"toggleFeatureEnvironmentOn");try{return await e(O.caller,O.id)}catch($){throw $}},[t,e]),c=m.useCallback(async(A,T,R,P=!1)=>{const _=`api/admin/projects/${A}/bulk_features/environments/${R}/on?shouldActivateDisabledStrategies=${P}`,O=t(_,{method:"POST",body:JSON.stringify({features:T})},"bulkToggleFeaturesEnvironmentOn");try{return await e(O.caller,O.id)}catch($){throw $}},[t,e]),u=m.useCallback(async(A,T,R,P=!1)=>{const _=`api/admin/projects/${A}/bulk_features/environments/${R}/off?shouldActivateDisabledStrategies=${P}`,O=t(_,{method:"POST",body:JSON.stringify({features:T})},"bulkToggleFeaturesEnvironmentOff");try{return await e(O.caller,O.id)}catch($){throw $}},[t,e]),d=m.useCallback(async(A,T,R)=>{const P=`api/admin/projects/${A}/features/${T}/environments/${R}/off`,_=t(P,{method:"POST"},"toggleFeatureEnvironmentOff");try{return await e(_.caller,_.id)}catch(O){throw O}},[t,e]);return{validateFeatureToggleName:o,validateConstraint:i,createFeatureToggle:a,changeFeatureProject:async(A,T,R)=>{const P=`api/admin/projects/${A}/features/${T}/changeProject`,_=t(P,{method:"POST",body:JSON.stringify({newProjectId:R})});try{return await e(_.caller,_.id)}catch(O){throw O}},errors:n,toggleFeatureEnvironmentOn:s,toggleFeatureEnvironmentOff:d,addTagToFeature:async(A,T)=>{const R=`api/admin/features/${A}/tags`,P=t(R,{method:"POST",body:JSON.stringify({...T})});try{return await e(P.caller,P.id)}catch(_){throw _}},deleteTagFromFeature:async(A,T,R)=>{const P=`api/admin/features/${A}/tags/${T}/${R}`,_=t(P,{method:"DELETE"});try{return await e(_.caller,_.id)}catch(O){throw O}},updateFeatureTags:async(A,T)=>{const R=`api/admin/features/${A}/tags`,P=t(R,{method:"PUT",body:JSON.stringify({...T})});try{return await e(P.caller,P.id)}catch(_){throw _}},archiveFeatureToggle:async(A,T)=>{const R=`api/admin/projects/${A}/features/${T}`,P=t(R,{method:"DELETE"});try{return await e(P.caller,P.id)}catch(_){throw _}},patchFeatureToggle:async(A,T,R)=>{const P=`api/admin/projects/${A}/features/${T}`,_=t(P,{method:"PATCH",body:JSON.stringify(R)});try{return await e(_.caller,_.id)}catch(O){throw O}},patchFeatureVariants:async(A,T,R)=>{const P=`api/admin/projects/${A}/features/${T}/variants`,_=t(P,{method:"PATCH",body:JSON.stringify(R)});try{return await e(_.caller,_.id)}catch(O){throw O}},patchFeatureEnvironmentVariants:async(A,T,R,P)=>{const _=`api/admin/projects/${A}/features/${T}/environments/${R}/variants`,O=t(_,{method:"PATCH",body:JSON.stringify(P)});try{return await e(O.caller,O.id)}catch($){throw $}},overrideVariantsInEnvironments:async(A,T,R,P)=>{const _=`api/admin/projects/${A}/features/${T}/variants-batch`,O=t(_,{method:"PUT",body:JSON.stringify({variants:R,environments:P})});try{return await e(O.caller,O.id)}catch($){throw $}},cloneFeatureToggle:async(A,T,R)=>{const P=`api/admin/projects/${A}/features/${T}/clone`,_=t(P,{method:"POST",body:JSON.stringify(R)});try{return await e(_.caller,_.id)}catch(O){throw O}},loading:r,bulkToggleFeaturesEnvironmentOn:c,bulkToggleFeaturesEnvironmentOff:u}};var Rx={exports:{}};const U1e="2.0.0",PD=256,W1e=Number.MAX_SAFE_INTEGER||9007199254740991,H1e=16,V1e=PD-6,G1e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var V1={MAX_LENGTH:PD,MAX_SAFE_COMPONENT_LENGTH:H1e,MAX_SAFE_BUILD_LENGTH:V1e,MAX_SAFE_INTEGER:W1e,RELEASE_TYPES:G1e,SEMVER_SPEC_VERSION:U1e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const q1e=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var G1=q1e;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=V1,i=G1;t=e.exports={};const a=t.re=[],s=t.safeRe=[],c=t.src=[],u=t.t={};let d=0;const p="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[p,r]],h=v=>{for(const[b,y]of f)v=v.split(`${b}*`).join(`${b}{0,${y}}`).split(`${b}+`).join(`${b}{1,${y}}`);return v},g=(v,b,y)=>{const w=h(b),S=d++;i(v,S,b),u[v]=S,c[S]=b,a[S]=new RegExp(b,y?"g":void 0),s[S]=new RegExp(w,y?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),g("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),g("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${p}+`),g("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),g("FULL",`^${c[u.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),g("LOOSE",`^${c[u.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),g("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),g("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),g("COERCERTL",c[u.COERCE],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Rx,Rx.exports);var Zh=Rx.exports;const Y1e=Object.freeze({loose:!0}),K1e=Object.freeze({}),X1e=e=>e?typeof e!="object"?Y1e:e:K1e;var TT=X1e;const P5=/^[0-9]+$/,ID=(e,t)=>{const n=P5.test(e),r=P5.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},J1e=(e,t)=>ID(t,e);var OD={compareIdentifiers:ID,rcompareIdentifiers:J1e};const ug=G1,{MAX_LENGTH:I5,MAX_SAFE_INTEGER:dg}=V1,{safeRe:O5,t:$5}=Zh,Q1e=TT,{compareIdentifiers:ru}=OD;let Z1e=class wa{constructor(t,n){if(n=Q1e(n),t instanceof wa){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>I5)throw new TypeError(`version is longer than ${I5} characters`);ug("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?O5[$5.LOOSE]:O5[$5.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>dg||this.major<0)throw new TypeError("Invalid major version");if(this.minor>dg||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>dg||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const i=+o;if(i>=0&&i<dg)return i}return o}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(ug("SemVer.compare",this.version,this.options,t),!(t instanceof wa)){if(typeof t=="string"&&t===this.version)return 0;t=new wa(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof wa||(t=new wa(t,this.options)),ru(this.major,t.major)||ru(this.minor,t.minor)||ru(this.patch,t.patch)}comparePre(t){if(t instanceof wa||(t=new wa(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],o=t.prerelease[n];if(ug("prerelease compare",n,r,o),r===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(r===void 0)return-1;if(r===o)continue;return ru(r,o)}while(++n)}compareBuild(t){t instanceof wa||(t=new wa(t,this.options));let n=0;do{const r=this.build[n],o=t.build[n];if(ug("prerelease compare",n,r,o),r===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(r===void 0)return-1;if(r===o)continue;return ru(r,o)}while(++n)}inc(t,n,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const o=Number(r)?1:0;if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[o];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(n){let i=[n,o];r===!1&&(i=[n]),ru(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var Io=Z1e;const N5=Io,e0e=(e,t,n=!1)=>{if(e instanceof N5)return e;try{return new N5(e,t)}catch(r){if(!n)return null;throw r}};var jd=e0e;const t0e=jd,n0e=(e,t)=>{const n=t0e(e,t);return n?n.version:null};var r0e=n0e;const o0e=jd,i0e=(e,t)=>{const n=o0e(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var a0e=i0e;const L5=Io,s0e=(e,t,n,r,o)=>{typeof n=="string"&&(o=r,r=n,n=void 0);try{return new L5(e instanceof L5?e.version:e,n).inc(t,r,o).version}catch{return null}};var l0e=s0e;const D5=jd,c0e=(e,t)=>{const n=D5(e,null,!0),r=D5(t,null,!0),o=n.compare(r);if(o===0)return null;const i=o>0,a=i?n:r,s=i?r:n,c=!!a.prerelease.length;if(!!s.prerelease.length&&!c)return!s.patch&&!s.minor?"major":a.patch?"patch":a.minor?"minor":"major";const d=c?"pre":"";return n.major!==r.major?d+"major":n.minor!==r.minor?d+"minor":n.patch!==r.patch?d+"patch":"prerelease"};var u0e=c0e;const d0e=Io,p0e=(e,t)=>new d0e(e,t).major;var f0e=p0e;const h0e=Io,m0e=(e,t)=>new h0e(e,t).minor;var g0e=m0e;const v0e=Io,y0e=(e,t)=>new v0e(e,t).patch;var b0e=y0e;const w0e=jd,S0e=(e,t)=>{const n=w0e(e,t);return n&&n.prerelease.length?n.prerelease:null};var x0e=S0e;const M5=Io,C0e=(e,t,n)=>new M5(e,n).compare(new M5(t,n));var ga=C0e;const E0e=ga,T0e=(e,t,n)=>E0e(t,e,n);var k0e=T0e;const A0e=ga,R0e=(e,t)=>A0e(e,t,!0);var _0e=R0e;const B5=Io,P0e=(e,t,n)=>{const r=new B5(e,n),o=new B5(t,n);return r.compare(o)||r.compareBuild(o)};var kT=P0e;const I0e=kT,O0e=(e,t)=>e.sort((n,r)=>I0e(n,r,t));var $0e=O0e;const N0e=kT,L0e=(e,t)=>e.sort((n,r)=>N0e(r,n,t));var D0e=L0e;const M0e=ga,B0e=(e,t,n)=>M0e(e,t,n)>0;var q1=B0e;const F0e=ga,z0e=(e,t,n)=>F0e(e,t,n)<0;var AT=z0e;const j0e=ga,U0e=(e,t,n)=>j0e(e,t,n)===0;var $D=U0e;const W0e=ga,H0e=(e,t,n)=>W0e(e,t,n)!==0;var ND=H0e;const V0e=ga,G0e=(e,t,n)=>V0e(e,t,n)>=0;var RT=G0e;const q0e=ga,Y0e=(e,t,n)=>q0e(e,t,n)<=0;var _T=Y0e;const K0e=$D,X0e=ND,J0e=q1,Q0e=RT,Z0e=AT,ebe=_T,tbe=(e,t,n,r)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return K0e(e,n,r);case"!=":return X0e(e,n,r);case">":return J0e(e,n,r);case">=":return Q0e(e,n,r);case"<":return Z0e(e,n,r);case"<=":return ebe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var LD=tbe;const nbe=Io,rbe=jd,{safeRe:pg,t:fg}=Zh,obe=(e,t)=>{if(e instanceof nbe)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(pg[fg.COERCE]);else{let r;for(;(r=pg[fg.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),pg[fg.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;pg[fg.COERCERTL].lastIndex=-1}return n===null?null:rbe(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var ibe=obe,aw,F5;function abe(){return F5||(F5=1,aw=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),aw}var sbe=vn;vn.Node=Ec;vn.create=vn;function vn(e){var t=this;if(t instanceof vn||(t=new vn),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(o){t.push(o)});else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}vn.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t};vn.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};vn.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};vn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)cbe(this,arguments[e]);return this.length};vn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)ube(this,arguments[e]);return this.length};vn.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};vn.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};vn.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;n!==null;r++)e.call(t,n.value,r,this),n=n.next};vn.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;n!==null;r--)e.call(t,n.value,r,this),n=n.prev};vn.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value};vn.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value};vn.prototype.map=function(e,t){t=t||this;for(var n=new vn,r=this.head;r!==null;)n.push(e.call(t,r.value,this)),r=r.next;return n};vn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new vn,r=this.tail;r!==null;)n.push(e.call(t,r.value,this)),r=r.prev;return n};vn.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=0;r!==null;o++)n=e(n,r.value,o),r=r.next;return n};vn.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;r!==null;o--)n=e(n,r.value,o),r=r.prev;return n};vn.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e};vn.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e};vn.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new vn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,o=this.head;o!==null&&r<e;r++)o=o.next;for(;o!==null&&r<t;r++,o=o.next)n.push(o.value);return n};vn.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new vn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,o=this.tail;o!==null&&r>t;r--)o=o.prev;for(;o!==null&&r>e;r--,o=o.prev)n.push(o.value);return n};vn.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;o!==null&&r<e;r++)o=o.next;for(var i=[],r=0;o&&r<t;r++)i.push(o.value),o=this.removeNode(o);o===null&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var r=0;r<n.length;r++)o=lbe(this,o,n[r]);return i};vn.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};function lbe(e,t,n){var r=t===e.head?new Ec(n,null,t,e):new Ec(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function cbe(e,t){e.tail=new Ec(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function ube(e,t){e.head=new Ec(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Ec(e,t,n,r){if(!(this instanceof Ec))return new Ec(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{abe()(vn)}catch{}const dbe=sbe,Zl=Symbol("max"),ds=Symbol("length"),ou=Symbol("lengthCalculator"),Ef=Symbol("allowStale"),lc=Symbol("maxAge"),ls=Symbol("dispose"),z5=Symbol("noDisposeOnSet"),Vr=Symbol("lruList"),ta=Symbol("cache"),DD=Symbol("updateAgeOnGet"),sw=()=>1;class pbe{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Zl]=t.max||1/0;const n=t.length||sw;if(this[ou]=typeof n!="function"?sw:n,this[Ef]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[lc]=t.maxAge||0,this[ls]=t.dispose,this[z5]=t.noDisposeOnSet||!1,this[DD]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Zl]=t||1/0,Op(this)}get max(){return this[Zl]}set allowStale(t){this[Ef]=!!t}get allowStale(){return this[Ef]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[lc]=t,Op(this)}get maxAge(){return this[lc]}set lengthCalculator(t){typeof t!="function"&&(t=sw),t!==this[ou]&&(this[ou]=t,this[ds]=0,this[Vr].forEach(n=>{n.length=this[ou](n.value,n.key),this[ds]+=n.length})),Op(this)}get lengthCalculator(){return this[ou]}get length(){return this[ds]}get itemCount(){return this[Vr].length}rforEach(t,n){n=n||this;for(let r=this[Vr].tail;r!==null;){const o=r.prev;j5(this,t,r,n),r=o}}forEach(t,n){n=n||this;for(let r=this[Vr].head;r!==null;){const o=r.next;j5(this,t,r,n),r=o}}keys(){return this[Vr].toArray().map(t=>t.key)}values(){return this[Vr].toArray().map(t=>t.value)}reset(){this[ls]&&this[Vr]&&this[Vr].length&&this[Vr].forEach(t=>this[ls](t.key,t.value)),this[ta]=new Map,this[Vr]=new dbe,this[ds]=0}dump(){return this[Vr].map(t=>qv(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[Vr]}set(t,n,r){if(r=r||this[lc],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const o=r?Date.now():0,i=this[ou](n,t);if(this[ta].has(t)){if(i>this[Zl])return ju(this,this[ta].get(t)),!1;const c=this[ta].get(t).value;return this[ls]&&(this[z5]||this[ls](t,c.value)),c.now=o,c.maxAge=r,c.value=n,this[ds]+=i-c.length,c.length=i,this.get(t),Op(this),!0}const a=new fbe(t,n,i,o,r);return a.length>this[Zl]?(this[ls]&&this[ls](t,n),!1):(this[ds]+=a.length,this[Vr].unshift(a),this[ta].set(t,this[Vr].head),Op(this),!0)}has(t){if(!this[ta].has(t))return!1;const n=this[ta].get(t).value;return!qv(this,n)}get(t){return lw(this,t,!0)}peek(t){return lw(this,t,!1)}pop(){const t=this[Vr].tail;return t?(ju(this,t),t.value):null}del(t){ju(this,this[ta].get(t))}load(t){this.reset();const n=Date.now();for(let r=t.length-1;r>=0;r--){const o=t[r],i=o.e||0;if(i===0)this.set(o.k,o.v);else{const a=i-n;a>0&&this.set(o.k,o.v,a)}}}prune(){this[ta].forEach((t,n)=>lw(this,n,!1))}}const lw=(e,t,n)=>{const r=e[ta].get(t);if(r){const o=r.value;if(qv(e,o)){if(ju(e,r),!e[Ef])return}else n&&(e[DD]&&(r.value.now=Date.now()),e[Vr].unshiftNode(r));return o.value}},qv=(e,t)=>{if(!t||!t.maxAge&&!e[lc])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[lc]&&n>e[lc]},Op=e=>{if(e[ds]>e[Zl])for(let t=e[Vr].tail;e[ds]>e[Zl]&&t!==null;){const n=t.prev;ju(e,t),t=n}},ju=(e,t)=>{if(t){const n=t.value;e[ls]&&e[ls](n.key,n.value),e[ds]-=n.length,e[ta].delete(n.key),e[Vr].removeNode(t)}};class fbe{constructor(t,n,r,o,i){this.key=t,this.value=n,this.length=r,this.now=o,this.maxAge=i||0}}const j5=(e,t,n,r)=>{let o=n.value;qv(e,o)&&(ju(e,n),e[Ef]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};var hbe=pbe,cw,U5;function va(){if(U5)return cw;U5=1;class e{constructor(B,Y){if(Y=r(Y),B instanceof e)return B.loose===!!Y.loose&&B.includePrerelease===!!Y.includePrerelease?B:new e(B.raw,Y);if(B instanceof o)return this.raw=B.value,this.set=[[B]],this.format(),this;if(this.options=Y,this.loose=!!Y.loose,this.includePrerelease=!!Y.includePrerelease,this.raw=B.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(H=>this.parseRange(H.trim())).filter(H=>H.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const H=this.set[0];if(this.set=this.set.filter(ee=>!g(ee[0])),this.set.length===0)this.set=[H];else if(this.set.length>1){for(const ee of this.set)if(ee.length===1&&v(ee[0])){this.set=[ee];break}}}this.format()}format(){return this.range=this.set.map(B=>B.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(B){const H=((this.options.includePrerelease&&f)|(this.options.loose&&h))+":"+B,ee=n.get(H);if(ee)return ee;const V=this.options.loose,W=V?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];B=B.replace(W,$(this.options.includePrerelease)),i("hyphen replace",B),B=B.replace(s[c.COMPARATORTRIM],u),i("comparator trim",B),B=B.replace(s[c.TILDETRIM],d),i("tilde trim",B),B=B.replace(s[c.CARETTRIM],p),i("caret trim",B);let j=B.split(" ").map(ae=>y(ae,this.options)).join(" ").split(/\s+/).map(ae=>O(ae,this.options));V&&(j=j.filter(ae=>(i("loose invalid filter",ae,this.options),!!ae.match(s[c.COMPARATORLOOSE])))),i("range list",j);const I=new Map,M=j.map(ae=>new o(ae,this.options));for(const ae of M){if(g(ae))return[ae];I.set(ae.value,ae)}I.size>1&&I.has("")&&I.delete("");const J=[...I.values()];return n.set(H,J),J}intersects(B,Y){if(!(B instanceof e))throw new TypeError("a Range is required");return this.set.some(H=>b(H,Y)&&B.set.some(ee=>b(ee,Y)&&H.every(V=>ee.every(W=>V.intersects(W,Y)))))}test(B){if(!B)return!1;if(typeof B=="string")try{B=new a(B,this.options)}catch{return!1}for(let Y=0;Y<this.set.length;Y++)if(z(this.set[Y],B,this.options))return!0;return!1}}cw=e;const t=hbe,n=new t({max:1e3}),r=TT,o=Y1(),i=G1,a=Io,{safeRe:s,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:p}=Zh,{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:h}=V1,g=L=>L.value==="<0.0.0-0",v=L=>L.value==="",b=(L,B)=>{let Y=!0;const H=L.slice();let ee=H.pop();for(;Y&&H.length;)Y=H.every(V=>ee.intersects(V,B)),ee=H.pop();return Y},y=(L,B)=>(i("comp",L,B),L=A(L,B),i("caret",L),L=S(L,B),i("tildes",L),L=R(L,B),i("xrange",L),L=_(L,B),i("stars",L),L),w=L=>!L||L.toLowerCase()==="x"||L==="*",S=(L,B)=>L.trim().split(/\s+/).map(Y=>k(Y,B)).join(" "),k=(L,B)=>{const Y=B.loose?s[c.TILDELOOSE]:s[c.TILDE];return L.replace(Y,(H,ee,V,W,j)=>{i("tilde",L,H,ee,V,W,j);let I;return w(ee)?I="":w(V)?I=`>=${ee}.0.0 <${+ee+1}.0.0-0`:w(W)?I=`>=${ee}.${V}.0 <${ee}.${+V+1}.0-0`:j?(i("replaceTilde pr",j),I=`>=${ee}.${V}.${W}-${j} <${ee}.${+V+1}.0-0`):I=`>=${ee}.${V}.${W} <${ee}.${+V+1}.0-0`,i("tilde return",I),I})},A=(L,B)=>L.trim().split(/\s+/).map(Y=>T(Y,B)).join(" "),T=(L,B)=>{i("caret",L,B);const Y=B.loose?s[c.CARETLOOSE]:s[c.CARET],H=B.includePrerelease?"-0":"";return L.replace(Y,(ee,V,W,j,I)=>{i("caret",L,ee,V,W,j,I);let M;return w(V)?M="":w(W)?M=`>=${V}.0.0${H} <${+V+1}.0.0-0`:w(j)?V==="0"?M=`>=${V}.${W}.0${H} <${V}.${+W+1}.0-0`:M=`>=${V}.${W}.0${H} <${+V+1}.0.0-0`:I?(i("replaceCaret pr",I),V==="0"?W==="0"?M=`>=${V}.${W}.${j}-${I} <${V}.${W}.${+j+1}-0`:M=`>=${V}.${W}.${j}-${I} <${V}.${+W+1}.0-0`:M=`>=${V}.${W}.${j}-${I} <${+V+1}.0.0-0`):(i("no pr"),V==="0"?W==="0"?M=`>=${V}.${W}.${j}${H} <${V}.${W}.${+j+1}-0`:M=`>=${V}.${W}.${j}${H} <${V}.${+W+1}.0-0`:M=`>=${V}.${W}.${j} <${+V+1}.0.0-0`),i("caret return",M),M})},R=(L,B)=>(i("replaceXRanges",L,B),L.split(/\s+/).map(Y=>P(Y,B)).join(" ")),P=(L,B)=>{L=L.trim();const Y=B.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return L.replace(Y,(H,ee,V,W,j,I)=>{i("xRange",L,H,ee,V,W,j,I);const M=w(V),J=M||w(W),ae=J||w(j),Te=ae;return ee==="="&&Te&&(ee=""),I=B.includePrerelease?"-0":"",M?ee===">"||ee==="<"?H="<0.0.0-0":H="*":ee&&Te?(J&&(W=0),j=0,ee===">"?(ee=">=",J?(V=+V+1,W=0,j=0):(W=+W+1,j=0)):ee==="<="&&(ee="<",J?V=+V+1:W=+W+1),ee==="<"&&(I="-0"),H=`${ee+V}.${W}.${j}${I}`):J?H=`>=${V}.0.0${I} <${+V+1}.0.0-0`:ae&&(H=`>=${V}.${W}.0${I} <${V}.${+W+1}.0-0`),i("xRange return",H),H})},_=(L,B)=>(i("replaceStars",L,B),L.trim().replace(s[c.STAR],"")),O=(L,B)=>(i("replaceGTE0",L,B),L.trim().replace(s[B.includePrerelease?c.GTE0PRE:c.GTE0],"")),$=L=>(B,Y,H,ee,V,W,j,I,M,J,ae,Te,he)=>(w(H)?Y="":w(ee)?Y=`>=${H}.0.0${L?"-0":""}`:w(V)?Y=`>=${H}.${ee}.0${L?"-0":""}`:W?Y=`>=${Y}`:Y=`>=${Y}${L?"-0":""}`,w(M)?I="":w(J)?I=`<${+M+1}.0.0-0`:w(ae)?I=`<${M}.${+J+1}.0-0`:Te?I=`<=${M}.${J}.${ae}-${Te}`:L?I=`<${M}.${J}.${+ae+1}-0`:I=`<=${I}`,`${Y} ${I}`.trim()),z=(L,B,Y)=>{for(let H=0;H<L.length;H++)if(!L[H].test(B))return!1;if(B.prerelease.length&&!Y.includePrerelease){for(let H=0;H<L.length;H++)if(i(L[H].semver),L[H].semver!==o.ANY&&L[H].semver.prerelease.length>0){const ee=L[H].semver;if(ee.major===B.major&&ee.minor===B.minor&&ee.patch===B.patch)return!0}return!1}return!0};return cw}var uw,W5;function Y1(){if(W5)return uw;W5=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(d,p){if(p=n(p),d instanceof t){if(d.loose===!!p.loose)return d;d=d.value}d=d.trim().split(/\s+/).join(" "),a("comparator",d,p),this.options=p,this.loose=!!p.loose,this.parse(d),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(d){const p=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],f=d.match(p);if(!f)throw new TypeError(`Invalid comparator: ${d}`);this.operator=f[1]!==void 0?f[1]:"",this.operator==="="&&(this.operator=""),f[2]?this.semver=new s(f[2],this.options.loose):this.semver=e}toString(){return this.value}test(d){if(a("Comparator.test",d,this.options.loose),this.semver===e||d===e)return!0;if(typeof d=="string")try{d=new s(d,this.options)}catch{return!1}return i(d,this.operator,this.semver,this.options)}intersects(d,p){if(!(d instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(d.value,p).test(this.value):d.operator===""?d.value===""?!0:new c(this.value,p).test(d.semver):(p=n(p),p.includePrerelease&&(this.value==="<0.0.0-0"||d.value==="<0.0.0-0")||!p.includePrerelease&&(this.value.startsWith("<0.0.0")||d.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&d.operator.startsWith(">")||this.operator.startsWith("<")&&d.operator.startsWith("<")||this.semver.version===d.semver.version&&this.operator.includes("=")&&d.operator.includes("=")||i(this.semver,"<",d.semver,p)&&this.operator.startsWith(">")&&d.operator.startsWith("<")||i(this.semver,">",d.semver,p)&&this.operator.startsWith("<")&&d.operator.startsWith(">")))}}uw=t;const n=TT,{safeRe:r,t:o}=Zh,i=LD,a=G1,s=Io,c=va();return uw}const mbe=va(),gbe=(e,t,n)=>{try{t=new mbe(t,n)}catch{return!1}return t.test(e)};var K1=gbe;const vbe=va(),ybe=(e,t)=>new vbe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var bbe=ybe;const wbe=Io,Sbe=va(),xbe=(e,t,n)=>{let r=null,o=null,i=null;try{i=new Sbe(t,n)}catch{return null}return e.forEach(a=>{i.test(a)&&(!r||o.compare(a)===-1)&&(r=a,o=new wbe(r,n))}),r};var Cbe=xbe;const Ebe=Io,Tbe=va(),kbe=(e,t,n)=>{let r=null,o=null,i=null;try{i=new Tbe(t,n)}catch{return null}return e.forEach(a=>{i.test(a)&&(!r||o.compare(a)===1)&&(r=a,o=new Ebe(r,n))}),r};var Abe=kbe;const dw=Io,Rbe=va(),H5=q1,_be=(e,t)=>{e=new Rbe(e,t);let n=new dw("0.0.0");if(e.test(n)||(n=new dw("0.0.0-0"),e.test(n)))return n;n=null;for(let r=0;r<e.set.length;++r){const o=e.set[r];let i=null;o.forEach(a=>{const s=new dw(a.semver.version);switch(a.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!i||H5(s,i))&&(i=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!n||H5(n,i))&&(n=i)}return n&&e.test(n)?n:null};var Pbe=_be;const Ibe=va(),Obe=(e,t)=>{try{return new Ibe(e,t).range||"*"}catch{return null}};var $be=Obe;const Nbe=Io,MD=Y1(),{ANY:Lbe}=MD,Dbe=va(),Mbe=K1,V5=q1,G5=AT,Bbe=_T,Fbe=RT,zbe=(e,t,n,r)=>{e=new Nbe(e,r),t=new Dbe(t,r);let o,i,a,s,c;switch(n){case">":o=V5,i=Bbe,a=G5,s=">",c=">=";break;case"<":o=G5,i=Fbe,a=V5,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Mbe(e,t,r))return!1;for(let u=0;u<t.set.length;++u){const d=t.set[u];let p=null,f=null;if(d.forEach(h=>{h.semver===Lbe&&(h=new MD(">=0.0.0")),p=p||h,f=f||h,o(h.semver,p.semver,r)?p=h:a(h.semver,f.semver,r)&&(f=h)}),p.operator===s||p.operator===c||(!f.operator||f.operator===s)&&i(e,f.semver))return!1;if(f.operator===c&&a(e,f.semver))return!1}return!0};var PT=zbe;const jbe=PT,Ube=(e,t,n)=>jbe(e,t,">",n);var Wbe=Ube;const Hbe=PT,Vbe=(e,t,n)=>Hbe(e,t,"<",n);var Gbe=Vbe;const q5=va(),qbe=(e,t,n)=>(e=new q5(e,n),t=new q5(t,n),e.intersects(t,n));var Ybe=qbe;const Kbe=K1,Xbe=ga;var Jbe=(e,t,n)=>{const r=[];let o=null,i=null;const a=e.sort((d,p)=>Xbe(d,p,n));for(const d of a)Kbe(d,t,n)?(i=d,o||(o=d)):(i&&r.push([o,i]),i=null,o=null);o&&r.push([o,null]);const s=[];for(const[d,p]of r)d===p?s.push(d):!p&&d===a[0]?s.push("*"):p?d===a[0]?s.push(`<=${p}`):s.push(`${d} - ${p}`):s.push(`>=${d}`);const c=s.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t};const Y5=va(),IT=Y1(),{ANY:pw}=IT,$p=K1,OT=ga,Qbe=(e,t,n={})=>{if(e===t)return!0;e=new Y5(e,n),t=new Y5(t,n);let r=!1;e:for(const o of e.set){for(const i of t.set){const a=ewe(o,i,n);if(r=r||a!==null,a)continue e}if(r)return!1}return!0},Zbe=[new IT(">=0.0.0-0")],K5=[new IT(">=0.0.0")],ewe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===pw){if(t.length===1&&t[0].semver===pw)return!0;n.includePrerelease?e=Zbe:e=K5}if(t.length===1&&t[0].semver===pw){if(n.includePrerelease)return!0;t=K5}const r=new Set;let o,i;for(const h of e)h.operator===">"||h.operator===">="?o=X5(o,h,n):h.operator==="<"||h.operator==="<="?i=J5(i,h,n):r.add(h.semver);if(r.size>1)return null;let a;if(o&&i){if(a=OT(o.semver,i.semver,n),a>0)return null;if(a===0&&(o.operator!==">="||i.operator!=="<="))return null}for(const h of r){if(o&&!$p(h,String(o),n)||i&&!$p(h,String(i),n))return null;for(const g of t)if(!$p(h,String(g),n))return!1;return!0}let s,c,u,d,p=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,f=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1;p&&p.prerelease.length===1&&i.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(const h of t){if(d=d||h.operator===">"||h.operator===">=",u=u||h.operator==="<"||h.operator==="<=",o){if(f&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===f.major&&h.semver.minor===f.minor&&h.semver.patch===f.patch&&(f=!1),h.operator===">"||h.operator===">="){if(s=X5(o,h,n),s===h&&s!==o)return!1}else if(o.operator===">="&&!$p(o.semver,String(h),n))return!1}if(i){if(p&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===p.major&&h.semver.minor===p.minor&&h.semver.patch===p.patch&&(p=!1),h.operator==="<"||h.operator==="<="){if(c=J5(i,h,n),c===h&&c!==i)return!1}else if(i.operator==="<="&&!$p(i.semver,String(h),n))return!1}if(!h.operator&&(i||o)&&a!==0)return!1}return!(o&&u&&!i&&a!==0||i&&d&&!o&&a!==0||f||p)},X5=(e,t,n)=>{if(!e)return t;const r=OT(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},J5=(e,t,n)=>{if(!e)return t;const r=OT(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var twe=Qbe;const fw=Zh,Q5=V1,nwe=Io,Z5=OD,rwe=jd,owe=r0e,iwe=a0e,awe=l0e,swe=u0e,lwe=f0e,cwe=g0e,uwe=b0e,dwe=x0e,pwe=ga,fwe=k0e,hwe=_0e,mwe=kT,gwe=$0e,vwe=D0e,ywe=q1,bwe=AT,wwe=$D,Swe=ND,xwe=RT,Cwe=_T,Ewe=LD,Twe=ibe,kwe=Y1(),Awe=va(),Rwe=K1,_we=bbe,Pwe=Cbe,Iwe=Abe,Owe=Pbe,$we=$be,Nwe=PT,Lwe=Wbe,Dwe=Gbe,Mwe=Ybe,Bwe=Jbe,Fwe=twe;var zwe={parse:rwe,valid:owe,clean:iwe,inc:awe,diff:swe,major:lwe,minor:cwe,patch:uwe,prerelease:dwe,compare:pwe,rcompare:fwe,compareLoose:hwe,compareBuild:mwe,sort:gwe,rsort:vwe,gt:ywe,lt:bwe,eq:wwe,neq:Swe,gte:xwe,lte:Cwe,cmp:Ewe,coerce:Twe,Comparator:kwe,Range:Awe,satisfies:Rwe,toComparators:_we,maxSatisfying:Pwe,minSatisfying:Iwe,minVersion:Owe,validRange:$we,outside:Nwe,gtr:Lwe,ltr:Dwe,intersects:Mwe,simplifyRange:Bwe,subset:Fwe,SemVer:nwe,re:fw.re,src:fw.src,tokens:fw.t,SEMVER_SPEC_VERSION:Q5.SEMVER_SPEC_VERSION,RELEASE_TYPES:Q5.RELEASE_TYPES,compareIdentifiers:Z5.compareIdentifiers,rcompareIdentifiers:Z5.rcompareIdentifiers};const e3=Yr(zwe),jwe=e=>()=>{const t=Number(e);return typeof t!="number"||Number.isNaN(t)?[!1,"Value must be a number"]:[!0,""]},Uwe=e=>()=>{const t=[!1,"Values must be a list of strings"];return!Array.isArray(e)||!e.every(n=>typeof n=="string")?t:[!0,""]},Wwe=e=>()=>{const t=e3.clean(e)===e;return!e3.valid(e)||!t?[!1,"Value is not a valid semver. For example 1.2.4"]:[!0,""]},Hwe=e=>()=>N2(Gh(e))?[!0,""]:[!1,"Value must be a valid date matching RFC3339"],hg=e=>!!e&&Array.isArray(e)&&e.length>0,_x="IN_OPERATORS_LEGAL_VALUES",BD="STRING_OPERATORS_LEGAL_VALUES",FD="NUM_OPERATORS_LEGAL_VALUES",zD="SEMVER_OPERATORS_LEGAL_VALUES",jD="DATE_OPERATORS_SINGLE_VALUE",UD="IN_OPERATORS_FREETEXT",WD="STRING_OPERATORS_FREETEXT",HD="NUM_OPERATORS_SINGLE_VALUE",VD="SEMVER_OPERATORS_SINGLE_VALUE",t3="NUMBER_VALIDATOR",n3="SEMVER_VALIDATOR",hw="STRING_ARRAY_VALIDATOR",r3="DATE_VALIDATOR",Vwe=({contextDefinition:e,localConstraint:t})=>{const[n,r]=m.useState(_x),[o,i]=m.useState(hw),[a,s]=m.useState(""),c=m.useCallback(()=>{hg(e.legalValues)&&Mn(pc,t.operator)?r(_x):hg(e.legalValues)&&Mn(ws,t.operator)?r(BD):hg(e.legalValues)&&Mn(Fu,t.operator)?r(FD):hg(e.legalValues)&&Mn(zu,t.operator)?r(zD):Mn(Ni,t.operator)?r(jD):Mn(pc,t.operator)?r(UD):Mn(ws,t.operator)?r(WD):Mn(Fu,t.operator)?r(HD):Mn(zu,t.operator)&&r(VD)},[t,e]),u=()=>{switch(o){case t3:return jwe(t.value);case hw:return Uwe(t.values||[]);case n3:return Wwe(t.value||"");case r3:return Hwe(t.value||"")}},d=m.useCallback(p=>{Mn(Fu,p)&&i(t3),Mn([...ws,...pc],p)&&i(hw),Mn(zu,p)&&i(n3),Mn(Ni,p)&&i(r3)},[i]);return m.useEffect(()=>{d(t.operator)},[t.operator,t.value,t.values,d]),m.useEffect(()=>{c()},[e,t,c]),{input:n,error:a,validator:u(),setError:s}},Gwe=C("h3")(({theme:e})=>({fontSize:e.fontSizes.bodySize,fontWeight:e.typography.fontWeightRegular,marginTop:e.spacing(2),marginBottom:e.spacing(.5)})),em=({children:e,...t})=>l(Gwe,{...t,children:e});function o3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function vh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o3(Object(n),!0).forEach(function(r){X1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function X1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qwe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ywe(e,t){if(e==null)return{};var n=qwe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kwe(e,t){return Xwe(e)||Jwe(e,t)||Qwe(e,t)||Zwe()}function Xwe(e){if(Array.isArray(e))return e}function Jwe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,s=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function Qwe(e,t){if(e){if(typeof e=="string")return i3(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i3(e,t)}}function i3(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
292
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var eSe={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BQ:"Caribbean Netherlands",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos Islands",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cabo Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czechia",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Réunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena, Ascension and Tristan da Cunha",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Eswatini",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Türkiye",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States of America",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands (UK)",VI:"Virgin Islands (US)",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"},tSe={"Africa/Abidjan":{u:0,c:["CI","BF","GH","GM","GN","IS","ML","MR","SH","SL","SN","TG"]},"Africa/Accra":{a:"Africa/Abidjan",c:["GH"],r:1},"Africa/Addis_Ababa":{a:"Africa/Nairobi",c:["ET"],r:1},"Africa/Algiers":{u:60,c:["DZ"]},"Africa/Asmara":{a:"Africa/Nairobi",c:["ER"],r:1},"Africa/Asmera":{a:"Africa/Nairobi",c:["ER"],r:1},"Africa/Bamako":{a:"Africa/Abidjan",c:["ML"],r:1},"Africa/Bangui":{a:"Africa/Lagos",c:["CF"],r:1},"Africa/Banjul":{a:"Africa/Abidjan",c:["GM"],r:1},"Africa/Bissau":{u:0,c:["GW"]},"Africa/Blantyre":{a:"Africa/Maputo",c:["MW"],r:1},"Africa/Brazzaville":{a:"Africa/Lagos",c:["CG"],r:1},"Africa/Bujumbura":{a:"Africa/Maputo",c:["BI"],r:1},"Africa/Cairo":{u:120,d:180,c:["EG"]},"Africa/Casablanca":{u:60,d:0,c:["MA"]},"Africa/Ceuta":{u:60,d:120,c:["ES"]},"Africa/Conakry":{a:"Africa/Abidjan",c:["GN"],r:1},"Africa/Dakar":{a:"Africa/Abidjan",c:["SN"],r:1},"Africa/Dar_es_Salaam":{a:"Africa/Nairobi",c:["TZ"],r:1},"Africa/Djibouti":{a:"Africa/Nairobi",c:["DJ"],r:1},"Africa/Douala":{a:"Africa/Lagos",c:["CM"],r:1},"Africa/El_Aaiun":{u:60,d:0,c:["EH"]},"Africa/Freetown":{a:"Africa/Abidjan",c:["SL"],r:1},"Africa/Gaborone":{a:"Africa/Maputo",c:["BW"],r:1},"Africa/Harare":{a:"Africa/Maputo",c:["ZW"],r:1},"Africa/Johannesburg":{u:120,c:["ZA","LS","SZ"]},"Africa/Juba":{u:120,c:["SS"]},"Africa/Kampala":{a:"Africa/Nairobi",c:["UG"],r:1},"Africa/Khartoum":{u:120,c:["SD"]},"Africa/Kigali":{a:"Africa/Maputo",c:["RW"],r:1},"Africa/Kinshasa":{a:"Africa/Lagos",c:["CD"],r:1},"Africa/Lagos":{u:60,c:["NG","AO","BJ","CD","CF","CG","CM","GA","GQ","NE"]},"Africa/Libreville":{a:"Africa/Lagos",c:["GA"],r:1},"Africa/Lome":{a:"Africa/Abidjan",c:["TG"],r:1},"Africa/Luanda":{a:"Africa/Lagos",c:["AO"],r:1},"Africa/Lubumbashi":{a:"Africa/Maputo",c:["CD"],r:1},"Africa/Lusaka":{a:"Africa/Maputo",c:["ZM"],r:1},"Africa/Malabo":{a:"Africa/Lagos",c:["GQ"],r:1},"Africa/Maputo":{u:120,c:["MZ","BI","BW","CD","MW","RW","ZM","ZW"]},"Africa/Maseru":{a:"Africa/Johannesburg",c:["LS"],r:1},"Africa/Mbabane":{a:"Africa/Johannesburg",c:["SZ"],r:1},"Africa/Mogadishu":{a:"Africa/Nairobi",c:["SO"],r:1},"Africa/Monrovia":{u:0,c:["LR"]},"Africa/Nairobi":{u:180,c:["KE","DJ","ER","ET","KM","MG","SO","TZ","UG","YT"]},"Africa/Ndjamena":{u:60,c:["TD"]},"Africa/Niamey":{a:"Africa/Lagos",c:["NE"],r:1},"Africa/Nouakchott":{a:"Africa/Abidjan",c:["MR"],r:1},"Africa/Ouagadougou":{a:"Africa/Abidjan",c:["BF"],r:1},"Africa/Porto-Novo":{a:"Africa/Lagos",c:["BJ"],r:1},"Africa/Sao_Tome":{u:0,c:["ST"]},"Africa/Timbuktu":{a:"Africa/Abidjan",c:["ML"],r:1},"Africa/Tripoli":{u:120,c:["LY"]},"Africa/Tunis":{u:60,c:["TN"]},"Africa/Windhoek":{u:120,c:["NA"]},"America/Adak":{u:-600,d:-540,c:["US"]},"America/Anchorage":{u:-540,d:-480,c:["US"]},"America/Anguilla":{a:"America/Puerto_Rico",c:["AI"],r:1},"America/Antigua":{a:"America/Puerto_Rico",c:["AG"],r:1},"America/Araguaina":{u:-180,c:["BR"]},"America/Argentina/Buenos_Aires":{u:-180,c:["AR"]},"America/Argentina/Catamarca":{u:-180,c:["AR"]},"America/Argentina/ComodRivadavia":{a:"America/Argentina/Catamarca",r:1},"America/Argentina/Cordoba":{u:-180,c:["AR"]},"America/Argentina/Jujuy":{u:-180,c:["AR"]},"America/Argentina/La_Rioja":{u:-180,c:["AR"]},"America/Argentina/Mendoza":{u:-180,c:["AR"]},"America/Argentina/Rio_Gallegos":{u:-180,c:["AR"]},"America/Argentina/Salta":{u:-180,c:["AR"]},"America/Argentina/San_Juan":{u:-180,c:["AR"]},"America/Argentina/San_Luis":{u:-180,c:["AR"]},"America/Argentina/Tucuman":{u:-180,c:["AR"]},"America/Argentina/Ushuaia":{u:-180,c:["AR"]},"America/Aruba":{a:"America/Puerto_Rico",c:["AW"],r:1},"America/Asuncion":{u:-240,d:-180,c:["PY"]},"America/Atikokan":{a:"America/Panama",c:["CA"],r:1},"America/Atka":{a:"America/Adak",r:1},"America/Bahia":{u:-180,c:["BR"]},"America/Bahia_Banderas":{u:-360,c:["MX"]},"America/Barbados":{u:-240,c:["BB"]},"America/Belem":{u:-180,c:["BR"]},"America/Belize":{u:-360,c:["BZ"]},"America/Blanc-Sablon":{a:"America/Puerto_Rico",c:["CA"],r:1},"America/Boa_Vista":{u:-240,c:["BR"]},"America/Bogota":{u:-300,c:["CO"]},"America/Boise":{u:-420,d:-360,c:["US"]},"America/Buenos_Aires":{a:"America/Argentina/Buenos_Aires",r:1},"America/Cambridge_Bay":{u:-420,d:-360,c:["CA"]},"America/Campo_Grande":{u:-240,c:["BR"]},"America/Cancun":{u:-300,c:["MX"]},"America/Caracas":{u:-240,c:["VE"]},"America/Catamarca":{a:"America/Argentina/Catamarca",r:1},"America/Cayenne":{u:-180,c:["GF"]},"America/Cayman":{a:"America/Panama",c:["KY"],r:1},"America/Chicago":{u:-360,d:-300,c:["US"]},"America/Chihuahua":{u:-360,c:["MX"]},"America/Ciudad_Juarez":{u:-420,d:-360,c:["MX"]},"America/Coral_Harbour":{a:"America/Panama",c:["CA"],r:1},"America/Cordoba":{a:"America/Argentina/Cordoba",r:1},"America/Costa_Rica":{u:-360,c:["CR"]},"America/Creston":{a:"America/Phoenix",c:["CA"],r:1},"America/Cuiaba":{u:-240,c:["BR"]},"America/Curacao":{a:"America/Puerto_Rico",c:["CW"],r:1},"America/Danmarkshavn":{u:0,c:["GL"]},"America/Dawson":{u:-420,c:["CA"]},"America/Dawson_Creek":{u:-420,c:["CA"]},"America/Denver":{u:-420,d:-360,c:["US"]},"America/Detroit":{u:-300,d:-240,c:["US"]},"America/Dominica":{a:"America/Puerto_Rico",c:["DM"],r:1},"America/Edmonton":{u:-420,d:-360,c:["CA"]},"America/Eirunepe":{u:-300,c:["BR"]},"America/El_Salvador":{u:-360,c:["SV"]},"America/Ensenada":{a:"America/Tijuana",r:1},"America/Fort_Nelson":{u:-420,c:["CA"]},"America/Fort_Wayne":{a:"America/Indiana/Indianapolis",r:1},"America/Fortaleza":{u:-180,c:["BR"]},"America/Glace_Bay":{u:-240,d:-180,c:["CA"]},"America/Godthab":{a:"America/Nuuk",r:1},"America/Goose_Bay":{u:-240,d:-180,c:["CA"]},"America/Grand_Turk":{u:-300,d:-240,c:["TC"]},"America/Grenada":{a:"America/Puerto_Rico",c:["GD"],r:1},"America/Guadeloupe":{a:"America/Puerto_Rico",c:["GP"],r:1},"America/Guatemala":{u:-360,c:["GT"]},"America/Guayaquil":{u:-300,c:["EC"]},"America/Guyana":{u:-240,c:["GY"]},"America/Halifax":{u:-240,d:-180,c:["CA"]},"America/Havana":{u:-300,d:-240,c:["CU"]},"America/Hermosillo":{u:-420,c:["MX"]},"America/Indiana/Indianapolis":{u:-300,d:-240,c:["US"]},"America/Indiana/Knox":{u:-360,d:-300,c:["US"]},"America/Indiana/Marengo":{u:-300,d:-240,c:["US"]},"America/Indiana/Petersburg":{u:-300,d:-240,c:["US"]},"America/Indiana/Tell_City":{u:-360,d:-300,c:["US"]},"America/Indiana/Vevay":{u:-300,d:-240,c:["US"]},"America/Indiana/Vincennes":{u:-300,d:-240,c:["US"]},"America/Indiana/Winamac":{u:-300,d:-240,c:["US"]},"America/Indianapolis":{a:"America/Indiana/Indianapolis",r:1},"America/Inuvik":{u:-420,d:-360,c:["CA"]},"America/Iqaluit":{u:-300,d:-240,c:["CA"]},"America/Jamaica":{u:-300,c:["JM"]},"America/Jujuy":{a:"America/Argentina/Jujuy",r:1},"America/Juneau":{u:-540,d:-480,c:["US"]},"America/Kentucky/Louisville":{u:-300,d:-240,c:["US"]},"America/Kentucky/Monticello":{u:-300,d:-240,c:["US"]},"America/Knox_IN":{a:"America/Indiana/Knox",r:1},"America/Kralendijk":{a:"America/Puerto_Rico",c:["BQ"],r:1},"America/La_Paz":{u:-240,c:["BO"]},"America/Lima":{u:-300,c:["PE"]},"America/Los_Angeles":{u:-480,d:-420,c:["US"]},"America/Louisville":{a:"America/Kentucky/Louisville",r:1},"America/Lower_Princes":{a:"America/Puerto_Rico",c:["SX"],r:1},"America/Maceio":{u:-180,c:["BR"]},"America/Managua":{u:-360,c:["NI"]},"America/Manaus":{u:-240,c:["BR"]},"America/Marigot":{a:"America/Puerto_Rico",c:["MF"],r:1},"America/Martinique":{u:-240,c:["MQ"]},"America/Matamoros":{u:-360,d:-300,c:["MX"]},"America/Mazatlan":{u:-420,c:["MX"]},"America/Mendoza":{a:"America/Argentina/Mendoza",r:1},"America/Menominee":{u:-360,d:-300,c:["US"]},"America/Merida":{u:-360,c:["MX"]},"America/Metlakatla":{u:-540,d:-480,c:["US"]},"America/Mexico_City":{u:-360,c:["MX"]},"America/Miquelon":{u:-180,d:-120,c:["PM"]},"America/Moncton":{u:-240,d:-180,c:["CA"]},"America/Monterrey":{u:-360,c:["MX"]},"America/Montevideo":{u:-180,c:["UY"]},"America/Montreal":{a:"America/Toronto",c:["CA"],r:1},"America/Montserrat":{a:"America/Puerto_Rico",c:["MS"],r:1},"America/Nassau":{a:"America/Toronto",c:["BS"],r:1},"America/New_York":{u:-300,d:-240,c:["US"]},"America/Nipigon":{a:"America/Toronto",c:["CA"],r:1},"America/Nome":{u:-540,d:-480,c:["US"]},"America/Noronha":{u:-120,c:["BR"]},"America/North_Dakota/Beulah":{u:-360,d:-300,c:["US"]},"America/North_Dakota/Center":{u:-360,d:-300,c:["US"]},"America/North_Dakota/New_Salem":{u:-360,d:-300,c:["US"]},"America/Nuuk":{u:-120,c:["GL"]},"America/Ojinaga":{u:-360,d:-300,c:["MX"]},"America/Panama":{u:-300,c:["PA","CA","KY"]},"America/Pangnirtung":{a:"America/Iqaluit",r:1},"America/Paramaribo":{u:-180,c:["SR"]},"America/Phoenix":{u:-420,c:["US","CA"]},"America/Port-au-Prince":{u:-300,d:-240,c:["HT"]},"America/Port_of_Spain":{a:"America/Puerto_Rico",c:["TT"],r:1},"America/Porto_Acre":{a:"America/Rio_Branco",r:1},"America/Porto_Velho":{u:-240,c:["BR"]},"America/Puerto_Rico":{u:-240,c:["PR","AG","CA","AI","AW","BL","BQ","CW","DM","GD","GP","KN","LC","MF","MS","SX","TT","VC","VG","VI"]},"America/Punta_Arenas":{u:-180,c:["CL"]},"America/Rainy_River":{a:"America/Winnipeg",r:1},"America/Rankin_Inlet":{u:-360,d:-300,c:["CA"]},"America/Recife":{u:-180,c:["BR"]},"America/Regina":{u:-360,c:["CA"]},"America/Resolute":{u:-360,d:-300,c:["CA"]},"America/Rio_Branco":{u:-300,c:["BR"]},"America/Rosario":{a:"America/Argentina/Cordoba",r:1},"America/Santa_Isabel":{a:"America/Tijuana",r:1},"America/Santarem":{u:-180,c:["BR"]},"America/Santiago":{u:-240,d:-180,c:["CL"]},"America/Santo_Domingo":{u:-240,c:["DO"]},"America/Sao_Paulo":{u:-180,c:["BR"]},"America/Scoresbysund":{u:-60,d:0,c:["GL"]},"America/Shiprock":{a:"America/Denver",r:1},"America/Sitka":{u:-540,d:-480,c:["US"]},"America/St_Barthelemy":{a:"America/Puerto_Rico",c:["BL"],r:1},"America/St_Johns":{u:-210,d:-150,c:["CA"]},"America/St_Kitts":{a:"America/Puerto_Rico",c:["KN"],r:1},"America/St_Lucia":{a:"America/Puerto_Rico",c:["LC"],r:1},"America/St_Thomas":{a:"America/Puerto_Rico",c:["VI"],r:1},"America/St_Vincent":{a:"America/Puerto_Rico",c:["VC"],r:1},"America/Swift_Current":{u:-360,c:["CA"]},"America/Tegucigalpa":{u:-360,c:["HN"]},"America/Thule":{u:-240,d:-180,c:["GL"]},"America/Thunder_Bay":{a:"America/Toronto",c:["CA"],r:1},"America/Tijuana":{u:-480,d:-420,c:["MX"]},"America/Toronto":{u:-300,d:-240,c:["CA","BS"]},"America/Tortola":{a:"America/Puerto_Rico",c:["VG"],r:1},"America/Vancouver":{u:-480,d:-420,c:["CA"]},"America/Virgin":{a:"America/Puerto_Rico",c:["VI"],r:1},"America/Whitehorse":{u:-420,c:["CA"]},"America/Winnipeg":{u:-360,d:-300,c:["CA"]},"America/Yakutat":{u:-540,d:-480,c:["US"]},"America/Yellowknife":{a:"America/Edmonton",r:1},"Antarctica/Casey":{u:660,c:["AQ"]},"Antarctica/Davis":{u:420,c:["AQ"]},"Antarctica/DumontDUrville":{a:"Pacific/Port_Moresby",c:["AQ"],r:1},"Antarctica/Macquarie":{u:600,d:660,c:["AU"]},"Antarctica/Mawson":{u:300,c:["AQ"]},"Antarctica/McMurdo":{a:"Pacific/Auckland",c:["AQ"],r:1},"Antarctica/Palmer":{u:-180,c:["AQ"]},"Antarctica/Rothera":{u:-180,c:["AQ"]},"Antarctica/South_Pole":{a:"Pacific/Auckland",c:["AQ"],r:1},"Antarctica/Syowa":{a:"Asia/Riyadh",c:["AQ"],r:1},"Antarctica/Troll":{u:0,d:120,c:["AQ"]},"Antarctica/Vostok":{a:"Asia/Urumqi",c:["AQ"],r:1},"Arctic/Longyearbyen":{a:"Europe/Berlin",c:["SJ"],r:1},"Asia/Aden":{a:"Asia/Riyadh",c:["YE"],r:1},"Asia/Almaty":{u:360,c:["KZ"]},"Asia/Amman":{u:180,c:["JO"]},"Asia/Anadyr":{u:720,c:["RU"]},"Asia/Aqtau":{u:300,c:["KZ"]},"Asia/Aqtobe":{u:300,c:["KZ"]},"Asia/Ashgabat":{u:300,c:["TM"]},"Asia/Ashkhabad":{a:"Asia/Ashgabat",r:1},"Asia/Atyrau":{u:300,c:["KZ"]},"Asia/Baghdad":{u:180,c:["IQ"]},"Asia/Bahrain":{a:"Asia/Qatar",c:["BH"],r:1},"Asia/Baku":{u:240,c:["AZ"]},"Asia/Bangkok":{u:420,c:["TH","CX","KH","LA","VN"]},"Asia/Barnaul":{u:420,c:["RU"]},"Asia/Beirut":{u:120,d:180,c:["LB"]},"Asia/Bishkek":{u:360,c:["KG"]},"Asia/Brunei":{a:"Asia/Kuching",c:["BN"],r:1},"Asia/Calcutta":{a:"Asia/Kolkata",r:1},"Asia/Chita":{u:540,c:["RU"]},"Asia/Choibalsan":{u:480,c:["MN"]},"Asia/Chongqing":{a:"Asia/Shanghai",r:1},"Asia/Chungking":{a:"Asia/Shanghai",r:1},"Asia/Colombo":{u:330,c:["LK"]},"Asia/Dacca":{a:"Asia/Dhaka",r:1},"Asia/Damascus":{u:180,c:["SY"]},"Asia/Dhaka":{u:360,c:["BD"]},"Asia/Dili":{u:540,c:["TL"]},"Asia/Dubai":{u:240,c:["AE","OM","RE","SC","TF"]},"Asia/Dushanbe":{u:300,c:["TJ"]},"Asia/Famagusta":{u:120,d:180,c:["CY"]},"Asia/Gaza":{u:120,d:180,c:["PS"]},"Asia/Harbin":{a:"Asia/Shanghai",r:1},"Asia/Hebron":{u:120,d:180,c:["PS"]},"Asia/Ho_Chi_Minh":{u:420,c:["VN"]},"Asia/Hong_Kong":{u:480,c:["HK"]},"Asia/Hovd":{u:420,c:["MN"]},"Asia/Irkutsk":{u:480,c:["RU"]},"Asia/Istanbul":{a:"Europe/Istanbul",r:1},"Asia/Jakarta":{u:420,c:["ID"]},"Asia/Jayapura":{u:540,c:["ID"]},"Asia/Jerusalem":{u:120,d:180,c:["IL"]},"Asia/Kabul":{u:270,c:["AF"]},"Asia/Kamchatka":{u:720,c:["RU"]},"Asia/Karachi":{u:300,c:["PK"]},"Asia/Kashgar":{a:"Asia/Urumqi",c:["CN"],r:1},"Asia/Kathmandu":{u:345,c:["NP"]},"Asia/Katmandu":{a:"Asia/Kathmandu",r:1},"Asia/Khandyga":{u:540,c:["RU"]},"Asia/Kolkata":{u:330,c:["IN"]},"Asia/Krasnoyarsk":{u:420,c:["RU"]},"Asia/Kuala_Lumpur":{a:"Asia/Singapore",c:["MY"],r:1},"Asia/Kuching":{u:480,c:["MY","BN"]},"Asia/Kuwait":{a:"Asia/Riyadh",c:["KW"],r:1},"Asia/Macao":{a:"Asia/Macau",r:1},"Asia/Macau":{u:480,c:["MO"]},"Asia/Magadan":{u:660,c:["RU"]},"Asia/Makassar":{u:480,c:["ID"]},"Asia/Manila":{u:480,c:["PH"]},"Asia/Muscat":{a:"Asia/Dubai",c:["OM"],r:1},"Asia/Nicosia":{u:120,d:180,c:["CY"]},"Asia/Novokuznetsk":{u:420,c:["RU"]},"Asia/Novosibirsk":{u:420,c:["RU"]},"Asia/Omsk":{u:360,c:["RU"]},"Asia/Oral":{u:300,c:["KZ"]},"Asia/Phnom_Penh":{a:"Asia/Bangkok",c:["KH"],r:1},"Asia/Pontianak":{u:420,c:["ID"]},"Asia/Pyongyang":{u:540,c:["KP"]},"Asia/Qatar":{u:180,c:["QA","BH"]},"Asia/Qostanay":{u:360,c:["KZ"]},"Asia/Qyzylorda":{u:300,c:["KZ"]},"Asia/Rangoon":{a:"Asia/Yangon",c:["MM"],r:1},"Asia/Riyadh":{u:180,c:["SA","AQ","KW","YE"]},"Asia/Saigon":{a:"Asia/Ho_Chi_Minh",r:1},"Asia/Sakhalin":{u:660,c:["RU"]},"Asia/Samarkand":{u:300,c:["UZ"]},"Asia/Seoul":{u:540,c:["KR"]},"Asia/Shanghai":{u:480,c:["CN"]},"Asia/Singapore":{u:480,c:["SG","MY"]},"Asia/Srednekolymsk":{u:660,c:["RU"]},"Asia/Taipei":{u:480,c:["TW"]},"Asia/Tashkent":{u:300,c:["UZ"]},"Asia/Tbilisi":{u:240,c:["GE"]},"Asia/Tehran":{u:210,c:["IR"]},"Asia/Tel_Aviv":{a:"Asia/Jerusalem",r:1},"Asia/Thimbu":{a:"Asia/Thimphu",r:1},"Asia/Thimphu":{u:360,c:["BT"]},"Asia/Tokyo":{u:540,c:["JP"]},"Asia/Tomsk":{u:420,c:["RU"]},"Asia/Ujung_Pandang":{a:"Asia/Makassar",r:1},"Asia/Ulaanbaatar":{u:480,c:["MN"]},"Asia/Ulan_Bator":{a:"Asia/Ulaanbaatar",r:1},"Asia/Urumqi":{u:360,c:["CN","AQ"]},"Asia/Ust-Nera":{u:600,c:["RU"]},"Asia/Vientiane":{a:"Asia/Bangkok",c:["LA"],r:1},"Asia/Vladivostok":{u:600,c:["RU"]},"Asia/Yakutsk":{u:540,c:["RU"]},"Asia/Yangon":{u:390,c:["MM","CC"]},"Asia/Yekaterinburg":{u:300,c:["RU"]},"Asia/Yerevan":{u:240,c:["AM"]},"Atlantic/Azores":{u:-60,d:0,c:["PT"]},"Atlantic/Bermuda":{u:-240,d:-180,c:["BM"]},"Atlantic/Canary":{u:0,d:60,c:["ES"]},"Atlantic/Cape_Verde":{u:-60,c:["CV"]},"Atlantic/Faeroe":{a:"Atlantic/Faroe",r:1},"Atlantic/Faroe":{u:0,d:60,c:["FO"]},"Atlantic/Jan_Mayen":{a:"Europe/Berlin",c:["SJ"],r:1},"Atlantic/Madeira":{u:0,d:60,c:["PT"]},"Atlantic/Reykjavik":{a:"Africa/Abidjan",c:["IS"],r:1},"Atlantic/South_Georgia":{u:-120,c:["GS"]},"Atlantic/St_Helena":{a:"Africa/Abidjan",c:["SH"],r:1},"Atlantic/Stanley":{u:-180,c:["FK"]},"Australia/ACT":{a:"Australia/Sydney",r:1},"Australia/Adelaide":{u:570,d:630,c:["AU"]},"Australia/Brisbane":{u:600,c:["AU"]},"Australia/Broken_Hill":{u:570,d:630,c:["AU"]},"Australia/Canberra":{a:"Australia/Sydney",r:1},"Australia/Currie":{a:"Australia/Hobart",r:1},"Australia/Darwin":{u:570,c:["AU"]},"Australia/Eucla":{u:525,c:["AU"]},"Australia/Hobart":{u:600,d:660,c:["AU"]},"Australia/LHI":{a:"Australia/Lord_Howe",r:1},"Australia/Lindeman":{u:600,c:["AU"]},"Australia/Lord_Howe":{u:630,d:660,c:["AU"]},"Australia/Melbourne":{u:600,d:660,c:["AU"]},"Australia/NSW":{a:"Australia/Sydney",r:1},"Australia/North":{a:"Australia/Darwin",r:1},"Australia/Perth":{u:480,c:["AU"]},"Australia/Queensland":{a:"Australia/Brisbane",r:1},"Australia/South":{a:"Australia/Adelaide",r:1},"Australia/Sydney":{u:600,d:660,c:["AU"]},"Australia/Tasmania":{a:"Australia/Hobart",r:1},"Australia/Victoria":{a:"Australia/Melbourne",r:1},"Australia/West":{a:"Australia/Perth",r:1},"Australia/Yancowinna":{a:"Australia/Broken_Hill",r:1},"Brazil/Acre":{a:"America/Rio_Branco",r:1},"Brazil/DeNoronha":{a:"America/Noronha",r:1},"Brazil/East":{a:"America/Sao_Paulo",r:1},"Brazil/West":{a:"America/Manaus",r:1},CET:{u:60,d:120},CST6CDT:{u:-360,d:-300},"Canada/Atlantic":{a:"America/Halifax",r:1},"Canada/Central":{a:"America/Winnipeg",r:1},"Canada/Eastern":{a:"America/Toronto",c:["CA"],r:1},"Canada/Mountain":{a:"America/Edmonton",r:1},"Canada/Newfoundland":{a:"America/St_Johns",r:1},"Canada/Pacific":{a:"America/Vancouver",r:1},"Canada/Saskatchewan":{a:"America/Regina",r:1},"Canada/Yukon":{a:"America/Whitehorse",r:1},"Chile/Continental":{a:"America/Santiago",r:1},"Chile/EasterIsland":{a:"Pacific/Easter",r:1},Cuba:{a:"America/Havana",r:1},EET:{u:120,d:180},EST:{u:-300},EST5EDT:{u:-300,d:-240},Egypt:{a:"Africa/Cairo",r:1},Eire:{a:"Europe/Dublin",r:1},"Etc/GMT":{u:0},"Etc/GMT+0":{a:"Etc/GMT",r:1},"Etc/GMT+1":{u:-60},"Etc/GMT+10":{u:-600},"Etc/GMT+11":{u:-660},"Etc/GMT+12":{u:-720},"Etc/GMT+2":{u:-120},"Etc/GMT+3":{u:-180},"Etc/GMT+4":{u:-240},"Etc/GMT+5":{u:-300},"Etc/GMT+6":{u:-360},"Etc/GMT+7":{u:-420},"Etc/GMT+8":{u:-480},"Etc/GMT+9":{u:-540},"Etc/GMT-0":{a:"Etc/GMT",r:1},"Etc/GMT-1":{u:60},"Etc/GMT-10":{u:600},"Etc/GMT-11":{u:660},"Etc/GMT-12":{u:720},"Etc/GMT-13":{u:780},"Etc/GMT-14":{u:840},"Etc/GMT-2":{u:120},"Etc/GMT-3":{u:180},"Etc/GMT-4":{u:240},"Etc/GMT-5":{u:300},"Etc/GMT-6":{u:360},"Etc/GMT-7":{u:420},"Etc/GMT-8":{u:480},"Etc/GMT-9":{u:540},"Etc/GMT0":{a:"Etc/GMT",r:1},"Etc/Greenwich":{a:"Etc/GMT",r:1},"Etc/UCT":{a:"Etc/UTC",r:1},"Etc/UTC":{u:0},"Etc/Universal":{a:"Etc/UTC",r:1},"Etc/Zulu":{a:"Etc/UTC",r:1},"Europe/Amsterdam":{a:"Europe/Brussels",c:["NL"],r:1},"Europe/Andorra":{u:60,d:120,c:["AD"]},"Europe/Astrakhan":{u:240,c:["RU"]},"Europe/Athens":{u:120,d:180,c:["GR"]},"Europe/Belfast":{a:"Europe/London",c:["GB"],r:1},"Europe/Belgrade":{u:60,d:120,c:["RS","BA","HR","ME","MK","SI"]},"Europe/Berlin":{u:60,d:120,c:["DE","DK","NO","SE","SJ"]},"Europe/Bratislava":{a:"Europe/Prague",c:["SK"],r:1},"Europe/Brussels":{u:60,d:120,c:["BE","LU","NL"]},"Europe/Bucharest":{u:120,d:180,c:["RO"]},"Europe/Budapest":{u:60,d:120,c:["HU"]},"Europe/Busingen":{a:"Europe/Zurich",c:["DE"],r:1},"Europe/Chisinau":{u:120,d:180,c:["MD"]},"Europe/Copenhagen":{a:"Europe/Berlin",c:["DK"],r:1},"Europe/Dublin":{u:60,d:0,c:["IE"]},"Europe/Gibraltar":{u:60,d:120,c:["GI"]},"Europe/Guernsey":{a:"Europe/London",c:["GG"],r:1},"Europe/Helsinki":{u:120,d:180,c:["FI","AX"]},"Europe/Isle_of_Man":{a:"Europe/London",c:["IM"],r:1},"Europe/Istanbul":{u:180,c:["TR"]},"Europe/Jersey":{a:"Europe/London",c:["JE"],r:1},"Europe/Kaliningrad":{u:120,c:["RU"]},"Europe/Kiev":{a:"Europe/Kyiv",r:1},"Europe/Kirov":{u:180,c:["RU"]},"Europe/Kyiv":{u:120,d:180,c:["UA"]},"Europe/Lisbon":{u:0,d:60,c:["PT"]},"Europe/Ljubljana":{a:"Europe/Belgrade",c:["SI"],r:1},"Europe/London":{u:0,d:60,c:["GB","GG","IM","JE"]},"Europe/Luxembourg":{a:"Europe/Brussels",c:["LU"],r:1},"Europe/Madrid":{u:60,d:120,c:["ES"]},"Europe/Malta":{u:60,d:120,c:["MT"]},"Europe/Mariehamn":{a:"Europe/Helsinki",c:["AX"],r:1},"Europe/Minsk":{u:180,c:["BY"]},"Europe/Monaco":{a:"Europe/Paris",c:["MC"],r:1},"Europe/Moscow":{u:180,c:["RU"]},"Europe/Nicosia":{a:"Asia/Nicosia",r:1},"Europe/Oslo":{a:"Europe/Berlin",c:["NO"],r:1},"Europe/Paris":{u:60,d:120,c:["FR","MC"]},"Europe/Podgorica":{a:"Europe/Belgrade",c:["ME"],r:1},"Europe/Prague":{u:60,d:120,c:["CZ","SK"]},"Europe/Riga":{u:120,d:180,c:["LV"]},"Europe/Rome":{u:60,d:120,c:["IT","SM","VA"]},"Europe/Samara":{u:240,c:["RU"]},"Europe/San_Marino":{a:"Europe/Rome",c:["SM"],r:1},"Europe/Sarajevo":{a:"Europe/Belgrade",c:["BA"],r:1},"Europe/Saratov":{u:240,c:["RU"]},"Europe/Simferopol":{u:180,c:["RU","UA"]},"Europe/Skopje":{a:"Europe/Belgrade",c:["MK"],r:1},"Europe/Sofia":{u:120,d:180,c:["BG"]},"Europe/Stockholm":{a:"Europe/Berlin",c:["SE"],r:1},"Europe/Tallinn":{u:120,d:180,c:["EE"]},"Europe/Tirane":{u:60,d:120,c:["AL"]},"Europe/Tiraspol":{a:"Europe/Chisinau",r:1},"Europe/Ulyanovsk":{u:240,c:["RU"]},"Europe/Uzhgorod":{a:"Europe/Kyiv",r:1},"Europe/Vaduz":{a:"Europe/Zurich",c:["LI"],r:1},"Europe/Vatican":{a:"Europe/Rome",c:["VA"],r:1},"Europe/Vienna":{u:60,d:120,c:["AT"]},"Europe/Vilnius":{u:120,d:180,c:["LT"]},"Europe/Volgograd":{u:180,c:["RU"]},"Europe/Warsaw":{u:60,d:120,c:["PL"]},"Europe/Zagreb":{a:"Europe/Belgrade",c:["HR"],r:1},"Europe/Zaporozhye":{a:"Europe/Kyiv",r:1},"Europe/Zurich":{u:60,d:120,c:["CH","DE","LI"]},Factory:{u:0},GB:{a:"Europe/London",c:["GB"],r:1},"GB-Eire":{a:"Europe/London",c:["GB"],r:1},GMT:{a:"Etc/GMT",r:1},"GMT+0":{a:"Etc/GMT",r:1},"GMT-0":{a:"Etc/GMT",r:1},GMT0:{a:"Etc/GMT",r:1},Greenwich:{a:"Etc/GMT",r:1},HST:{u:-600},Hongkong:{a:"Asia/Hong_Kong",r:1},Iceland:{a:"Africa/Abidjan",c:["IS"],r:1},"Indian/Antananarivo":{a:"Africa/Nairobi",c:["MG"],r:1},"Indian/Chagos":{u:360,c:["IO"]},"Indian/Christmas":{a:"Asia/Bangkok",c:["CX"],r:1},"Indian/Cocos":{a:"Asia/Yangon",c:["CC"],r:1},"Indian/Comoro":{a:"Africa/Nairobi",c:["KM"],r:1},"Indian/Kerguelen":{a:"Indian/Maldives",c:["TF"],r:1},"Indian/Mahe":{a:"Asia/Dubai",c:["SC"],r:1},"Indian/Maldives":{u:300,c:["MV","TF"]},"Indian/Mauritius":{u:240,c:["MU"]},"Indian/Mayotte":{a:"Africa/Nairobi",c:["YT"],r:1},"Indian/Reunion":{a:"Asia/Dubai",c:["RE"],r:1},Iran:{a:"Asia/Tehran",r:1},Israel:{a:"Asia/Jerusalem",r:1},Jamaica:{a:"America/Jamaica",r:1},Japan:{a:"Asia/Tokyo",r:1},Kwajalein:{a:"Pacific/Kwajalein",r:1},Libya:{a:"Africa/Tripoli",r:1},MET:{u:60,d:120},MST:{u:-420},MST7MDT:{u:-420,d:-360},"Mexico/BajaNorte":{a:"America/Tijuana",r:1},"Mexico/BajaSur":{a:"America/Mazatlan",r:1},"Mexico/General":{a:"America/Mexico_City",r:1},NZ:{a:"Pacific/Auckland",c:["NZ"],r:1},"NZ-CHAT":{a:"Pacific/Chatham",r:1},Navajo:{a:"America/Denver",r:1},PRC:{a:"Asia/Shanghai",r:1},PST8PDT:{u:-480,d:-420},"Pacific/Apia":{u:780,c:["WS"]},"Pacific/Auckland":{u:720,d:780,c:["NZ","AQ"]},"Pacific/Bougainville":{u:660,c:["PG"]},"Pacific/Chatham":{u:765,d:825,c:["NZ"]},"Pacific/Chuuk":{a:"Pacific/Port_Moresby",c:["FM"],r:1},"Pacific/Easter":{u:-360,d:-300,c:["CL"]},"Pacific/Efate":{u:660,c:["VU"]},"Pacific/Enderbury":{a:"Pacific/Kanton",r:1},"Pacific/Fakaofo":{u:780,c:["TK"]},"Pacific/Fiji":{u:720,c:["FJ"]},"Pacific/Funafuti":{a:"Pacific/Tarawa",c:["TV"],r:1},"Pacific/Galapagos":{u:-360,c:["EC"]},"Pacific/Gambier":{u:-540,c:["PF"]},"Pacific/Guadalcanal":{u:660,c:["SB","FM"]},"Pacific/Guam":{u:600,c:["GU","MP"]},"Pacific/Honolulu":{u:-600,c:["US"]},"Pacific/Johnston":{a:"Pacific/Honolulu",r:1},"Pacific/Kanton":{u:780,c:["KI"]},"Pacific/Kiritimati":{u:840,c:["KI"]},"Pacific/Kosrae":{u:660,c:["FM"]},"Pacific/Kwajalein":{u:720,c:["MH"]},"Pacific/Majuro":{a:"Pacific/Tarawa",c:["MH"],r:1},"Pacific/Marquesas":{u:-570,c:["PF"]},"Pacific/Midway":{a:"Pacific/Pago_Pago",c:["UM"],r:1},"Pacific/Nauru":{u:720,c:["NR"]},"Pacific/Niue":{u:-660,c:["NU"]},"Pacific/Norfolk":{u:660,d:720,c:["NF"]},"Pacific/Noumea":{u:660,c:["NC"]},"Pacific/Pago_Pago":{u:-660,c:["AS","UM"]},"Pacific/Palau":{u:540,c:["PW"]},"Pacific/Pitcairn":{u:-480,c:["PN"]},"Pacific/Pohnpei":{a:"Pacific/Guadalcanal",c:["FM"],r:1},"Pacific/Ponape":{a:"Pacific/Guadalcanal",c:["FM"],r:1},"Pacific/Port_Moresby":{u:600,c:["PG","AQ","FM"]},"Pacific/Rarotonga":{u:-600,c:["CK"]},"Pacific/Saipan":{a:"Pacific/Guam",c:["MP"],r:1},"Pacific/Samoa":{a:"Pacific/Pago_Pago",c:["AS"],r:1},"Pacific/Tahiti":{u:-600,c:["PF"]},"Pacific/Tarawa":{u:720,c:["KI","MH","TV","UM","WF"]},"Pacific/Tongatapu":{u:780,c:["TO"]},"Pacific/Truk":{a:"Pacific/Port_Moresby",c:["FM"],r:1},"Pacific/Wake":{a:"Pacific/Tarawa",c:["UM"],r:1},"Pacific/Wallis":{a:"Pacific/Tarawa",c:["WF"],r:1},"Pacific/Yap":{a:"Pacific/Port_Moresby",c:["FM"],r:1},Poland:{a:"Europe/Warsaw",r:1},Portugal:{a:"Europe/Lisbon",r:1},ROC:{a:"Asia/Taipei",r:1},ROK:{a:"Asia/Seoul",r:1},Singapore:{a:"Asia/Singapore",c:["SG"],r:1},Turkey:{a:"Europe/Istanbul",r:1},UCT:{a:"Etc/UTC",r:1},"US/Alaska":{a:"America/Anchorage",r:1},"US/Aleutian":{a:"America/Adak",r:1},"US/Arizona":{a:"America/Phoenix",c:["US"],r:1},"US/Central":{a:"America/Chicago",r:1},"US/East-Indiana":{a:"America/Indiana/Indianapolis",r:1},"US/Eastern":{a:"America/New_York",r:1},"US/Hawaii":{a:"Pacific/Honolulu",r:1},"US/Indiana-Starke":{a:"America/Indiana/Knox",r:1},"US/Michigan":{a:"America/Detroit",r:1},"US/Mountain":{a:"America/Denver",r:1},"US/Pacific":{a:"America/Los_Angeles",r:1},"US/Samoa":{a:"Pacific/Pago_Pago",c:["AS"],r:1},UTC:{a:"Etc/UTC",r:1},Universal:{a:"Etc/UTC",r:1},"W-SU":{a:"Europe/Moscow",r:1},WET:{u:0,d:60},Zulu:{a:"Etc/UTC",r:1}},tm={countries:eSe,timezones:tSe},mw;function nSe(e,t){var n=e.countries[t];if(!n)return null;var r=rSe(e)[t]||{};return{id:t,name:n,timezones:r.current||[],allTimezones:r.all||[]}}function rSe(e){return mw||(mw=oSe(e)),mw}function oSe(e){return Object.keys(e.timezones).reduce(function(t,n){var r=e.timezones[n],o=r.c,i=r.a,a=e.timezones[i]||{},s=o||a.c;return s&&s.forEach(function(c){t[c]||Object.assign(t,X1({},c,{current:[],all:[]})),r.r===void 0&&t[c].current.push(n),t[c].all.push(n)}),t},{})}function iSe(e,t){var n=e.timezones[t];if(!n)return null;var r=n.a,o=r===void 0?null:r,i=o?e.timezones[o]:{},a=vh(vh({},i),e.timezones[t]),s=a.c||[],c=a.u,u=Number.isInteger(a.d)?a.d:c,d={name:t,countries:s,utcOffset:c,utcOffsetStr:a3(c),dstOffset:u,dstOffsetStr:a3(u),aliasOf:o};return n.r&&(d.deprecated=!0),d}function a3(e){var t=Math.floor(e/60),n=e%60,r=e<0?"-":"+";return"".concat(r).concat(s3(t),":").concat(s3(n))}function s3(e){var t=Math.abs(e),n=t<10?"0":"";return"".concat(n).concat(t)}var aSe=["allTimezones"],sSe=Object.keys(tm.timezones).length,Px={},Tf={},GD=0;function lSe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(tm.countries).reduce(function(t,n){return Object.assign(t,X1({},n,J1(n,e)))},{})}function cSe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return sSe!==GD&&Object.keys(tm.timezones).forEach(Q1),hSe(Tf,e)}function J1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Px[e]||uSe(nSe(tm,e)),mSe(Px[e],t)}function uSe(e){e&&(Px[e.id]=e)}function Q1(e){return Tf[e]||dSe(iSe(tm,e)),Tf[e]?vh({},Tf[e]):null}function dSe(e){e&&(Tf[e.name]=e,GD=Object.keys(e).length)}function qD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Q1(e)||{},r=n.countries||[];return r.map(function(o){return J1(o,t)})}function pSe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=qD(e,t),r=Kwe(n,1),o=r[0];return o||null}function fSe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=J1(e,t);if(!n)return null;var r=n.timezones||[];return r.map(Q1)}function hSe(e,t){var n=t||{},r=n.deprecated;return r===!0?e:Object.keys(e).reduce(function(o,i){return e[i].deprecated||Object.assign(o,X1({},i,e[i])),o},{})}function mSe(e,t){if(!e)return null;var n=t||{},r=n.deprecated;e.allTimezones;var o=Ywe(e,aSe),i=r?e.allTimezones:e.timezones;return vh(vh({},o),{},{timezones:i})}var gSe={getCountry:J1,getTimezone:Q1,getAllCountries:lSe,getAllTimezones:cSe,getTimezonesForCountry:fSe,getCountriesForTimezone:qD,getCountryForTimezone:pSe};const vSe=C("div")(({theme:e})=>({display:"flex",flexDirection:"row",marginBottom:e.spacing(1),alignItems:"center",gap:e.spacing(1)})),ySe=({setValue:e,value:t,error:n,setError:r})=>{const o=Object.values(gSe.getAllTimezones({deprecated:!1})).map(u=>({key:u.name,label:`${u.name}`,utcOffset:u.utcOffsetStr})),{timeZone:i}=Intl.DateTimeFormat().resolvedOptions(),[a,s]=m.useState(t||""),c=m.useMemo(()=>{const u=o.find(d=>d.key===i);return u!=null?`${u.key} (UTC ${u.utcOffset})`:"The time shown is in your local time zone according to your browser."},[o,i]);return t?x(ve,{children:[l(em,{children:"Select a date"}),x(vSe,{children:[l(rr,{id:"date",label:"Date",type:"datetime-local",value:Mve(a),onChange:u=>{r("");const d=uD(u.target.value),p=d==null?void 0:d.toISOString();p&&s(p),p&&e(p)},InputLabelProps:{shrink:!0},error:!!n,errorText:n,required:!0}),l("p",{children:c})]})]}):null},YD=Ns()(e=>({valueChip:{margin:"0 0.5rem 0.5rem 0"},chipValue:{whiteSpace:"pre"},inputContainer:{display:"flex",alignItems:"center",[e.breakpoints.down(700)]:{flexDirection:"column",alignItems:"flex-start"}},inputInnerContainer:{minWidth:"300px",[e.breakpoints.down(700)]:{minWidth:"100%"}},input:{width:"100%",margin:"1rem 0"},button:{marginLeft:"1rem",[e.breakpoints.down(700)]:{marginLeft:0,marginBottom:"0.5rem"}},valuesContainer:{marginTop:"1rem"}})),bSe="Enter",l3=({values:e,removeValue:t,setValues:n,error:r,setError:o})=>{const[i,a]=m.useState(""),{classes:s}=YD(),c=d=>{d.key===bSe&&(d.preventDefault(),u())},u=()=>{const d=SSe([...e,...tl(i)]);d.length===0?o("values cannot be empty"):d.some(p=>p.length>100)?o("values cannot be longer than 100 characters"):(o(""),a(""),n(d))};return x("div",{children:[l(em,{style:{marginBottom:0},children:"Set values (maximum 100 char length per value)"}),x("div",{className:s.inputContainer,children:[l("div",{className:s.inputInnerContainer,children:l(rr,{onKeyPress:c,label:"Values",name:"values",value:i,onFocus:()=>{o("")},onChange:d=>a(d.target.value),placeholder:"value1, value2, value3...",className:s.input,error:!!r,errorText:r,"data-testid":"CONSTRAINT_VALUES_INPUT"})}),l(Ve,{className:s.button,variant:"outlined",color:"primary",onClick:()=>u(),"data-testid":"CONSTRAINT_VALUES_ADD_BUTTON",children:"Add values"})]}),l("div",{className:s.valuesContainer,children:l(wSe,{values:e,removeValue:t})})]})},wSe=({values:e,removeValue:t})=>{const{classes:n}=YD();return l(ve,{children:e.map((r,o)=>l(Os,{label:l(Ra,{text:r,maxLength:35,maxWidth:"100",className:n.chipValue}),onDelete:()=>t(o),className:n.valueChip},`${r}-${o}`))})},SSe=e=>Array.from(new Set(e)),$T=({filter:e,setFilter:t})=>x("div",{style:{display:"flex",alignItems:"center"},children:[l("div",{style:{width:"300px"},children:l(pn,{label:"Search",name:"search",value:e,onChange:n=>t(n.target.value),placeholder:"Filter values",style:{width:"100%",margin:"1rem 0"},variant:"outlined",size:"small",InputProps:{startAdornment:l(JE,{position:"start",children:l(E2,{})})}})}),l(q,{condition:!!e,show:l(Os,{style:{marginLeft:"1rem"},label:`filter active: ${e}`,onDelete:()=>t("")})})]}),xSe=Ns()(e=>({container:{display:"inline-block",wordBreak:"break-word"},value:{lineHeight:1.33,fontSize:e.fontSizes.smallBody},description:{lineHeight:1.33,fontSize:e.fontSizes.smallerBody,color:e.palette.action.active}})),KD=({legal:e,control:t})=>{const{classes:n}=xSe();return l("div",{className:n.container,children:l(Mr,{value:e.value,control:t,label:x(ve,{children:[l("div",{className:n.value,children:e.value}),l("div",{className:n.description,children:e.description})]})})})},XD=(e,t)=>e.filter(n=>n.value.includes(t)),c3=e=>e.reduce((t,n)=>(t[n]||(t[n]=!0),t),{}),u3=({legalValues:e,values:t,setValues:n,error:r,setError:o})=>{const[i,a]=m.useState(""),s=XD(e,i),[c,u]=m.useState(()=>c3(t)),{classes:d}=Uh();m.useEffect(()=>{u(c3(t))},[t,u]);const p=f=>{if(o(""),c[f]){const h=t.findIndex(v=>v===f),g=[...t];g.splice(h,1),n(g);return}n([...t,f])};return x(ve,{children:[l(em,{children:"Select values from a predefined set"}),l(q,{condition:e.length>100,show:l($T,{filter:i,setFilter:a})}),s.map(f=>l(KD,{legal:f,control:l(pa,{checked:!!c[f.value],onChange:()=>p(f.value),name:f.value,color:"primary"})},f.value)),l(q,{condition:!!r,show:l("p",{className:d.error,children:r})})]})},d3=({setValue:e,value:t,type:n,legalValues:r,error:o,setError:i})=>{const[a,s]=m.useState(""),{classes:c}=Uh(),u=XD(r,a);return x(ve,{children:[x(em,{children:["Add a single ",n.toLowerCase()," value"]}),l(q,{condition:r.length>100,show:l($T,{filter:a,setFilter:s})}),l(q,{condition:!!r.length,show:l($s,{component:"fieldset",children:l(r2,{"aria-label":"selected-value",name:"selected",value:t,onChange:d=>{i(""),e(d.target.value)},children:u.map(d=>l(KD,{legal:d,control:l(sc,{})},d.value))})}),elseShow:l("p",{children:"No valid legal values available for this operator."})}),l(q,{condition:!!o,show:l("p",{className:c.error,children:o})})]})},CSe=Ns()(e=>({singleValueContainer:{maxWidth:"300px",marginTop:"-1rem"},singleValueInput:{width:"100%",margin:"1rem 0"}})),p3=({setValue:e,value:t,type:n,error:r,setError:o})=>{const{classes:i}=CSe();return x(ve,{children:[x(em,{children:["Add a single ",n.toLowerCase()," value"]}),l("div",{className:i.singleValueContainer,children:l(rr,{label:n,name:"value",value:t||"",onChange:a=>{o(""),e(a.target.value.trim())},onFocus:()=>o(""),placeholder:`Enter a single ${n} value`,className:i.singleValueInput,error:!!r,errorText:r})})]})},ESe=({input:e,contextDefinition:t,localConstraint:n,setValue:r,setValues:o,setError:i,removeValue:a,error:s})=>l(ve,{children:(()=>{var u;switch(e){case _x:return l(u3,{legalValues:t.legalValues||[],values:n.values||[],setValues:o,error:s,setError:i});case BD:return l(ve,{children:l(u3,{legalValues:t.legalValues||[],values:n.values||[],setValues:o,error:s,setError:i})});case FD:return l(ve,{children:l(d3,{setValue:r,value:n.value,type:"number",legalValues:((u=t.legalValues)==null?void 0:u.filter(d=>Number(d.value)))||[],error:s,setError:i})});case zD:return l(ve,{children:l(d3,{setValue:r,value:n.value,type:"semver",legalValues:t.legalValues||[],error:s,setError:i})});case jD:return l(ySe,{value:n.value,setValue:r,error:s,setError:i});case UD:return l(l3,{values:n.values||[],removeValue:a,setValues:o,error:s,setError:i});case WD:return l(ve,{children:l(l3,{values:n.values||[],removeValue:a,setValues:o,error:s,setError:i})});case HD:return l(p3,{setValue:r,value:n.value,type:"number",error:s,setError:i});case VD:return l(p3,{setValue:r,value:n.value,type:"semver",error:s,setError:i})}})()}),JD="cancel",f3="save",h3=(e,t)=>e.find(r=>r.name===t)||{name:"",description:"",createdAt:"",sortOrder:1,stickiness:!1},TSe=C("div")({padding:0,margin:0,width:"100%"}),kSe=C(c1)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadiusMedium,backgroundColor:e.palette.background.elevation1,boxShadow:"none",margin:0,"& .expanded":{"&:before":{opacity:"0 !important"}}})),ASe=C(p1)(({theme:e})=>({border:"none",padding:e.spacing(.5,3),"&:hover .valuesExpandLabel":{textDecoration:"underline"}})),RSe=C(u1)(({theme:e})=>({borderTop:`1px dashed ${e.palette.divider}`,display:"flex",flexDirection:"column",padding:0})),_Se=({constraint:e,compact:t,onCancel:n,onSave:r,onDelete:o})=>{const[i,a]=m.useState(_5(e)),{context:s}=ts(),[c,u]=m.useState(h3(s,i.contextName)),{validateConstraint:d}=zd(),[p,f]=m.useState(!1),[h,g]=m.useState("");m.useEffect(()=>{f(!0)},[]),m.useEffect(()=>{u(h3(s,i.contextName))},[i.contextName,s]);const v=m.useCallback(L=>{a(B=>({...B,contextName:L,values:[],value:""}))},[]),b=m.useCallback(L=>{a(B=>({...B,operator:L,values:[],value:""}))},[]),y=m.useCallback(L=>{a(B=>({...B,values:L}))},[]),w=m.useCallback(L=>{a(B=>({...B,value:L}))},[]),S=()=>{a(L=>({...L,inverted:!L.inverted}))},k=m.useCallback(()=>{a(L=>({...L,caseInsensitive:!L.caseInsensitive}))},[]),A=m.useCallback(L=>{const B=[...i.values];B.splice(L,1),y(B)},[i,y]),T=()=>{f(!1)},R=()=>{const L=Array.isArray(i.values)&&i.values.length>0,B=!!i.value;return L||B?($(""),!0):($("You must provide a value for the constraint"),!1)},P=async()=>{if(!R())return;const[B,Y]=O();if(B||$(Y),B)try{await d(i),$(""),g(f3),T();return}catch(H){$(gt(H))}},{input:_,validator:O,setError:$,error:z}=Vwe({contextDefinition:c,localConstraint:i});return m.useEffect(()=>{$(""),a(L=>_5(L))},[i.operator,i.contextName,$]),l(TSe,{children:x(kSe,{expanded:p,TransitionProps:{onExited:()=>{h===JD?(g(""),n()):h===f3&&(g(""),r(i))}},children:[l(ASe,{children:l(j1e,{localConstraint:i,setLocalConstraint:a,setContextName:v,setOperator:b,action:h,compact:t,setInvertedOperator:S,setCaseInsensitive:k,onDelete:o})}),l(RSe,{children:l(w1e,{localConstraint:i,setValues:y,setValue:w,triggerTransition:T,setAction:g,onSubmit:P,children:l(ESe,{setValues:y,setValue:w,setError:$,localConstraint:i,input:_,error:z,contextDefinition:c,removeValue:A})})})]})})},QD=(e,t)=>e.value&&e.contextName===gh?_1(e.value,t.locale):e.value,PSe=C(Ra)({whiteSpace:"pre"}),ISe=C(Os)(({theme:e})=>({margin:e.spacing(0,1,1,0)})),OSe=({values:e})=>{const[t,n]=m.useState("");return!e||e.length===0?null:x(ve,{children:[l(q,{condition:e.length>20,show:l($T,{filter:t,setFilter:n})}),e.filter(r=>r.includes(t)).map((r,o)=>l(ISe,{label:l(PSe,{maxWidth:"400",text:r,maxLength:50})},`${r}-${o}`))]})},$Se=C("div")(({theme:e})=>({display:"flex",alignItems:"center",[e.breakpoints.down(600)]:{flexDirection:"column"}})),NSe=C("p")(({theme:e})=>({marginRight:e.spacing(1.5),[e.breakpoints.down(600)]:{marginBottom:e.spacing(1.5),marginRight:0}})),LSe=C(Os)(({theme:e})=>({margin:e.spacing(0,1,1,0)})),DSe=({value:e,operator:t})=>e?x($Se,{children:[x(NSe,{children:["Value must be ",t]})," ",l(LSe,{label:l(Ra,{maxWidth:"400",text:e,maxLength:50})})]}):null,MSe=C("div")(({theme:e})=>({padding:e.spacing(2,0),maxHeight:"400px",overflowY:"auto"})),BSe=({constraint:e})=>{const{locationSettings:t}=es();return l("div",{children:x(MSe,{children:[l(OSe,{values:e.values}),l(DSe,{value:QD(e,t),operator:e.operator})]})})},FSe=C("div")(({theme:e})=>({padding:e.spacing(.5,1.5),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.elevation2,lineHeight:1.25})),zSe=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallBody,lineHeight:17/14})),jSe=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallerBody,color:e.palette.neutral.main})),USe=({constraint:e,hasPrefix:t})=>{const n=e.operator,r=Ax(e.operator);return x(FSe,{style:{borderTopLeftRadius:t?0:void 0,borderBottomLeftRadius:t?0:void 0,paddingLeft:t?0:void 0},children:[l(zSe,{children:n}),l(jSe,{children:r})]})},ZD=C("div")(({theme:e})=>({backgroundColor:e.palette.background.elevation2,width:24,display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"stretch",color:e.palette.primary.main,marginLeft:e.spacing(1),borderRadius:e.shape.borderRadius})),WSe=C(ZD)(()=>({marginLeft:0,borderTopRightRadius:0,borderBottomRightRadius:0})),m3=m.forwardRef(({isPrefix:e,...t},n)=>l(q,{condition:!!e,show:()=>l(WSe,{ref:n,...t}),elseShow:()=>l(ZD,{ref:n,...t})})),HSe=C("div")(({theme:e})=>({display:"flex",alignItems:"stretch",margin:"auto 0"})),VSe=C("div")(({theme:e})=>({minWidth:"152px",position:"relative",[e.breakpoints.down("sm")]:{paddingRight:0}})),GSe=({constraint:e})=>x(HSe,{children:[l(q,{condition:!!e.inverted,show:l(xt,{title:"Operator is negated",arrow:!0,children:l($e,{sx:{display:"flex"},children:l(m3,{isPrefix:!0,children:l(TD,{})})})})}),l(VSe,{children:l(USe,{constraint:e,hasPrefix:!!e.inverted})}),l(q,{condition:!e.caseInsensitive&&Mn(ws,e.operator),show:l(xt,{title:"Case sensitive is active",arrow:!0,children:l(m3,{children:l(RD,{})})})})]}),qSe=C(Os)(({theme:e})=>({margin:"auto 0",marginLeft:e.spacing(1),[e.breakpoints.down("sm")]:{margin:e.spacing(1,0)}})),YSe=C("div")(({theme:e})=>({display:"flex",alignItems:"stretch",margin:"auto 0"})),KSe=({constraint:e,allowExpand:t})=>{const{locationSettings:n}=es();return m.useEffect(()=>{t(!1)},[t]),l(YSe,{children:l(qSe,{label:QD(e,n)})})},XSe=C("span")(({theme:e})=>({display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",wordBreak:"break-word",fontSize:e.fontSizes.smallBody,margin:"auto 0",[e.breakpoints.down("sm")]:{margin:e.spacing(1,0),textAlign:"center"}})),JSe=C("div")(({theme:e})=>({display:"flex",alignItems:"stretch",margin:"auto 0"})),QSe=C("div")(({theme:e})=>({display:"flex",justifyContent:"stretch",margin:"auto 0",flexDirection:"column",marginLeft:e.spacing(1),[e.breakpoints.down("sm")]:{marginLeft:0}})),ZSe=C("p")(({theme:e})=>({fontSize:e.fontSizes.smallBody,marginTop:e.spacing(.5),color:e.palette.links,[e.breakpoints.down("sm")]:{textAlign:"center"}})),exe=({constraint:e,expanded:t,allowExpand:n,maxLength:r})=>{var s;const[o,i]=m.useState(!1),a=m.useMemo(()=>{var c;return(c=e==null?void 0:e.values)==null?void 0:c.map(u=>u).join(", ")},[e]);return m.useEffect(()=>{a&&(n(((a==null?void 0:a.length)??0)>r),i(((a==null?void 0:a.length)??0)>r))},[a,r,n,i]),l(JSe,{children:x(QSe,{children:[l(XSe,{children:a}),l(q,{condition:o,show:l(ZSe,{className:"valuesExpandLabel",children:t?"View less":`View all (${(s=e==null?void 0:e.values)==null?void 0:s.length})`})})]})})},txe=C("span")(({theme:e})=>({display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",maxWidth:"100px",minWidth:"100px",marginRight:"10px",marginTop:"auto",marginBottom:"auto",wordBreak:"break-word",fontSize:e.fontSizes.smallBody,[e.breakpoints.down(710)]:{textAlign:"center",padding:e.spacing(1,0),marginRight:"inherit",maxWidth:"inherit"}})),nxe=C("div")(({theme:e})=>({display:"flex",width:"100%",justifyContent:"space-between",borderRadius:e.spacing(1)})),rxe=C("div")(({theme:e})=>({display:"flex",alignItems:"stretch",marginLeft:e.spacing(1),[e.breakpoints.down("sm")]:{marginLeft:0,flexDirection:"column",alignItems:"center",width:"100%"}})),oxe=({constraint:e,singleValue:t,allowExpand:n,expanded:r,maxLength:o=112})=>l(nxe,{children:x(rxe,{children:[l(xt,{title:e.contextName,arrow:!0,children:l(txe,{children:e.contextName})}),l(GSe,{constraint:e}),l(q,{condition:t,show:l(KSe,{constraint:e,allowExpand:n}),elseShow:l(exe,{constraint:e,expanded:r,allowExpand:n,maxLength:o})})]})}),ixe=Xr("div")(({theme:e})=>({display:"flex",alignItems:"center",width:"100%",[e.breakpoints.down("sm")]:{flexDirection:"column",alignItems:"center",position:"relative"}})),axe=({constraint:e,onEdit:t,onDelete:n,singleValue:r,allowExpand:o,expanded:i,compact:a})=>x(ixe,{children:[l(CD,{compact:a}),l(oxe,{constraint:e,singleValue:r,allowExpand:o,expanded:i}),l(_D,{onEdit:t,onDelete:n})]}),sxe=C(c1)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadiusMedium,backgroundColor:"transparent",boxShadow:"none",margin:0,"&:before":{opacity:"0"}})),lxe=C(p1)(({theme:e})=>({"& .root":{border:"none",padding:e.spacing(.5,3),"&:hover .valuesExpandLabel":{textDecoration:"underline"}}})),cxe=C(u1)(({theme:e})=>({borderTop:`1px dashed ${e.palette.divider}`,display:"flex",flexDirection:"column"})),uxe=C("div")({display:"flex",flexDirection:"column",width:"100%"}),dxe=({constraint:e,onEdit:t,onDelete:n,sx:r=void 0,compact:o=!1,renderAfter:i})=>{const[a,s]=m.useState(!0),[c,u]=m.useState(!1),d=Mn([...zu,...Fu,...Ni],e.operator);return x(sxe,{expanded:c,sx:r,children:[l(lxe,{expandIcon:null,onClick:()=>{a&&u(!c)},sx:{cursor:a?"pointer":"default!important","&:hover":{cursor:a?"pointer":"default!important"}},children:x(uxe,{children:[l(axe,{constraint:e,onEdit:t,onDelete:n,singleValue:d,allowExpand:s,expanded:c,compact:o}),i]})}),l(cxe,{children:l(BSe,{constraint:e})})]})},pxe=({constraint:e,compact:t=!1,editing:n,onEdit:r,onCancel:o,onDelete:i,onSave:a})=>e?l(q,{condition:!!(n&&a),show:l(_Se,{constraint:e,onCancel:o,onSave:a,onDelete:i,compact:t}),elseShow:l(dxe,{constraint:e,onEdit:r,onDelete:i})}):null,fxe=e=>{const t=m.useRef(e??new WeakMap),[,n]=m.useState(0),r=m.useCallback((i,a)=>{t.current.set(i,a),n(s=>s+1)},[]),o=m.useCallback(i=>t.current.get(i),[]);return m.useMemo(()=>({set:r,get:o}),[r,o])},eM=e=>(gw.has(e)||(g3++,gw.set(e,g3)),gw.get(e)),gw=new WeakMap;let g3=0;const hxe=e=>{const t=ED(e)[0],n=Mn(Ni,t)?new Date().toISOString():"";return{contextName:e,operator:t,value:n,values:[],caseInsensitive:!1,inverted:!1}},tM=C("div")(({theme:e})=>({padding:e.spacing(.75,1),color:e.palette.text.primary,fontSize:e.fontSizes.smallerBody,backgroundColor:e.palette.background.elevation2,borderRadius:e.shape.borderRadius,position:"absolute",zIndex:e.zIndex.fab,top:"50%",left:e.spacing(2),transform:"translateY(-50%)",lineHeight:1})),mxe=C(tM)(({theme:e})=>({top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:e.palette.seen.primary,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(.75,1.5)})),NT=({text:e})=>{const t=yn();return l($e,{sx:{height:t.spacing(e==="AND"?1:1.5),position:"relative",width:"100%"},children:l(q,{condition:e==="AND",show:()=>l(tM,{children:e}),elseShow:()=>l(mxe,{children:e})})})},nM="constraintAccordionListId",gxe=C("div")({width:"100%",display:"flex",flexDirection:"column"}),vxe=C(xt)(({theme:e})=>({marginLeft:e.spacing(.75),height:e.spacing(1.5)})),yxe=C(Nv)(({theme:e})=>({fill:e.palette.action.active,[e.breakpoints.down(860)]:{display:"none"}})),bxe=C("p")(({theme:e})=>({marginBottom:e.spacing(1),color:e.palette.text.secondary})),wxe=C("div")(({theme:e})=>({marginTop:e.spacing(1),marginBottom:e.spacing(1),color:e.palette.text.primary,display:"flex"})),Z1=m.forwardRef(({constraints:e,setConstraints:t,showCreateButton:n,showLabel:r=!0},o)=>{const i=fxe(),{context:a}=ts(),s=t&&(h=>{const g=hxe(h);i.set(g,{editing:!0,new:!0}),t(v=>[...v,g])});m.useImperativeHandle(o,()=>({addConstraint:s}));const c=s&&(()=>{s(a[0].name)}),u=t&&(h=>{i.set(h,{editing:!0})}),d=t&&(h=>{const g=e[h];i.set(g,{}),t(Ri(v=>{v.splice(h,1)}))}),p=t&&((h,g)=>{i.set(g,{}),t(Ri(v=>{v[h]=g}))}),f=h=>{var v;const g=e[h];(v=i.get(g))!=null&&v.new&&(d==null||d(h)),i.set(g,{})};return a.length===0?null:x(gxe,{id:nM,children:[l(q,{condition:e&&e.length>0&&r,show:l(bxe,{children:"Constraints"})}),e.map((h,g)=>{var v;return x(m.Fragment,{children:[l(q,{condition:g>0,show:l(NT,{text:"AND"})}),l(pxe,{constraint:h,onEdit:u&&u.bind(null,h),onCancel:f.bind(null,g),onDelete:d&&d.bind(null,g),onSave:p&&p.bind(null,g),editing:!!((v=i.get(h))!=null&&v.editing),compact:!0})]},eM(h))}),l(q,{condition:!!(n&&c),show:x("div",{children:[x(wxe,{children:[l("p",{children:"Add any number of constraints"}),l(vxe,{title:"View constraints documentation",arrow:!0,children:l("a",{href:"https://docs.getunleash.io/reference/strategy-constraints",target:"_blank",rel:"noopener noreferrer",children:l(yxe,{})})})]}),l(Ve,{type:"button",onClick:c,variant:"outlined",color:"primary","data-testid":"ADD_CONSTRAINT_BUTTON",children:"Add constraint"})]})})]})}),Sxe=({projectId:e,environmentId:t,strategy:n,setStrategy:r})=>{const o=m.useMemo(()=>n.constraints??[],[n]),i=c=>{r(u=>({...u,constraints:c instanceof Function?c(o):c}))},a=id(y9,e,t),s=id($1,e,t);return l(Z1,{constraints:o,setConstraints:s?i:void 0,showCreateButton:a})},v3=e=>{const t=Array.isArray(e.values)&&e.values.length>0,n=!!e.value;return t||n},LT=e=>{const t=!!(e&&e.length===0),[n,r]=m.useState(t),{validateConstraint:o}=zd();return m.useEffect(()=>{if(!e)return;if(e.find(s=>!v3(s))){r(!1);return}const a=e.filter(v3).map(s=>o(s));Promise.all(a).then(()=>r(!0)).catch(()=>r(!1))},[JSON.stringify(e)]),n},$l=e=>{var s;const{uiConfig:t}=It(),n=Rt(e?`api/admin/segments/strategies/${e}`:"api/admin/segments"),{data:r,error:o,mutate:i}=Mc(!!((s=t.flags)!=null&&s.SE),[],n,()=>xxe(n),{refreshInterval:15*1e3}),a=m.useCallback(()=>{i().catch(console.warn)},[i]);return{segments:r,refetchSegments:a,loading:!o&&!r,error:o}},xxe=async e=>fetch(e).then(bn("Segments")).then(t=>t.json()).then(t=>t.segments),Cxe=Ns()(e=>({inputRoot:{height:48,borderTopLeftRadius:0,borderBottomLeftRadius:0,borderTopRightRadius:50,borderBottomRightRadius:50,"& fieldset":{borderColor:e.palette.divider,borderLeftColor:"transparent"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:1}}})),Exe=C("div")(({theme:e})=>({display:"flex",alignItems:"center",borderRadius:e.spacing(2),'& .MuiInputLabel-root[data-shrink="false"]':{top:3}})),Txe=C("div",{shouldForwardProp:e=>!e.startsWith("$")})(({theme:e,$disabled:t})=>({background:t?e.palette.primary.light:e.palette.primary.main,height:"48px",width:"48px",display:"flex",alignItems:"center",justifyContent:"center",paddingLeft:6,borderTopLeftRadius:"40px",borderBottomLeftRadius:"40px",color:e.palette.primary.contrastText})),kxe=C(Ad)({flex:1}),rM=({label:e,options:t,value:n=[],onChange:r,disabled:o})=>{const{classes:i}=Cxe(),a=s=>l(pn,{...s,variant:"outlined",label:e});return x(Exe,{children:[l(Txe,{$disabled:!!o,"aria-hidden":!0,children:l(E2,{})}),l(kxe,{classes:{inputRoot:i.inputRoot},options:t,value:n,popupIcon:l(kle,{titleAccess:"Toggle"}),onChange:(s,c)=>r(c||[]),renderInput:a,getOptionLabel:s=>s.label,disabled:o,size:"small",multiple:!0})]})},Axe=C("span")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(.5),paddingInlineStart:e.spacing(2),paddingInlineEnd:e.spacing(1),paddingBlockStart:e.spacing(.5),paddingBlockEnd:e.spacing(.5),borderRadius:"100rem",background:e.palette.primary.main,color:e.palette.primary.contrastText})),y3=C("button")(({theme:e})=>({all:"unset",height:e.spacing(2),cursor:"pointer"})),Rxe=C(an)(({theme:e})=>({marginRight:e.spacing(1),color:"inherit",textDecoration:"none"})),vw=e=>({fontSize:e.fontSizes.bodySize}),_xe=({segment:e,setSegments:t,preview:n,setPreview:r})=>{const o=()=>{t(c=>c.filter(u=>u.id!==e.id)),r(c=>c===e?void 0:c)},i=()=>{r(c=>c===e?void 0:e)},a=l(q,{condition:e===n,show:l(jL,{titleAccess:"Hide",sx:vw}),elseShow:l(zL,{titleAccess:"Show",sx:vw})}),s=e===n?"Hide segment constraints":"Preview segment constraints";return x(Axe,{children:[l(Rxe,{to:`/segments/edit/${e.id}`,target:"_blank",rel:"noreferrer",children:e.name}),l(xt,{title:s,arrow:!0,children:l(y3,{type:"button",onClick:i,"aria-expanded":e===n,"aria-controls":nM,children:a})}),l(xt,{title:"Remove segment",arrow:!0,children:l(y3,{type:"button",onClick:o,children:l(Rle,{titleAccess:"Remove",sx:vw})})})]})},Pxe=C(c1)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadiusMedium,backgroundColor:e.palette.background.paper,boxShadow:"none",margin:0,transition:"all 0.1s ease","&:before":{opacity:"0 !important"},"&.Mui-expanded":{backgroundColor:e.palette.neutral.light}})),Ixe=C(p1)(({theme:e})=>({margin:e.spacing(0,.5),fontSize:e.typography.body2.fontSize,".MuiAccordionSummary-content":{display:"flex",alignItems:"center"}})),Oxe=C(an)(({theme:e})=>({textDecoration:"none",marginLeft:e.spacing(1),"&:hover":{textDecoration:"underline"}})),oM=({segment:e,isExpanded:t,headerContent:n,constraintList:r})=>{var a;const[o,i]=m.useState(t||!1);return x(Pxe,{expanded:o,children:[x(Ixe,{id:`segment-accordion-${e.id}`,children:[l(NL,{color:"secondary",sx:{mr:1}}),l("span",{children:"Segment:"}),l(Oxe,{to:`/segments/edit/${e.id}`,children:e.name}),l(q,{condition:!!n,show:n}),l(q,{condition:!t,show:l(Ve,{size:"small",variant:"outlined",onClick:()=>i(s=>!s),sx:{my:0,ml:"auto",fontSize:s=>s.typography.body2.fontSize},children:o?"Close preview":"Preview"})})]}),l(u1,{sx:{pt:0},children:l(q,{condition:!!r,show:r,elseShow:l(q,{condition:(((a=e==null?void 0:e.constraints)==null?void 0:a.length)||0)>0,show:l(Z1,{constraints:e.constraints,showLabel:!1}),elseShow:l(se,{children:"This segment has no constraints."})})})})]})},$xe=C("div")(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(1)})),Nxe=C("p")(({theme:e})=>({color:e.palette.text.secondary})),Lxe=C("p")(({theme:e})=>({fontSize:e.fontSizes.smallerBody,padding:e.spacing(.75,1),display:"block",marginTop:"auto",marginBottom:"auto",alignItems:"center",borderRadius:e.shape.borderRadius,lineHeight:1,color:e.palette.text.primary,backgroundColor:e.palette.background.elevation2})),Dxe=({segments:e,setSegments:t})=>{const[n,r]=m.useState(),o=e.length-1;return e.length===0?null:x(ve,{children:[l(q,{condition:e&&e.length>0,show:l(Nxe,{children:"Selected Segments"})}),l($xe,{children:e.map((i,a)=>x(m.Fragment,{children:[l(_xe,{segment:i,setSegments:t,preview:n,setPreview:r}),l(q,{condition:a<o,show:l(Lxe,{children:"AND"})})]},i.id))}),l(q,{condition:!!n,show:()=>l(oM,{segment:n,isExpanded:!0})})]})},jc=()=>{const{uiConfig:e}=It();return{segmentValuesLimit:e.segmentValuesLimit,strategySegmentsLimit:e.strategySegmentsLimit}},Mxe=()=>{const{segmentValuesLimit:e}=jc();return typeof e>"u"?null:x(Vt,{severity:"info",children:["A segment can have"," ",x("a",{href:"https://docs.getunleash.io/reference/segments#segment-limits",target:"_blank",rel:"noreferrer",children:["at most ",e," across all of its contraints"]}),". ",l(iM,{})]})},Bxe=e=>{const{segmentValuesLimit:t}=jc();return typeof t>"u"?null:x(Vt,{severity:"error",children:["A segment can have"," ",x("a",{href:"https://docs.getunleash.io/reference/segments#segment-limits",target:"_blank",rel:"noreferrer",children:["at most ",t," across all of its contraints"]}),". This segment has ",e.values," ",e.values===1?"value":"values","."]})},Fxe=()=>{const{strategySegmentsLimit:e}=jc();return typeof e>"u"?null:x(Vt,{severity:"warning",children:["You can't apply more than ",e," segments to a strategy. ",l(iM,{})]})},iM=()=>x(ve,{children:[l("a",{href:"https://slack.unleash.run",target:"_blank",rel:"noreferrer",children:"Get in touch"})," ","if you'd like to increase this limit."]}),aM="https://docs.getunleash.io/reference/segments",zxe=C(To)(({theme:e})=>({fontSize:e.fontSizes.smallBody})),jxe=({segments:e,setSegments:t,projectId:n})=>{const{segments:r}=$l(),{strategySegmentsLimit:o}=jc(),i=!!(o&&e.length>=o);if(!r||r.length===0)return null;const c=r.filter(({project:d})=>!d||d===n).filter(d=>!e.find(p=>p.id===d.id)).map(d=>({value:String(d.id),label:d.name}));return x(ve,{children:[l(se,{component:"h3",sx:{m:0},variant:"h3",children:"Segmentation"}),i&&l(Fxe,{}),l("p",{children:"Add a predefined segment to constrain this feature toggle:"}),l(rM,{label:"Select segments",options:c,onChange:([d])=>{const p=r.find(f=>String(f.id)===d.value);p&&t(f=>[...f,p])},disabled:i}),l(Dxe,{segments:e,setSegments:t}),l(zxe,{})]})},Uxe=(e,t)=>{const{type:n,required:r}=e;if(!(n!=="string"&&n!=="list"&&n!=="number")){if(r&&(typeof t>"u"||t===""))return"Field is required";if(n==="number"&&!Wxe(t))return"Not a valid number."}},Wxe=e=>typeof e>"u"||e===""||/^\d+$/.test(String(e)),DT=e=>{const{data:t,error:n,mutate:r}=Pn(e?Rt(`api/admin/strategies/${e}`):null,Hxe),o=m.useCallback(()=>{r().catch(console.warn)},[r]);return{strategyDefinition:t,refetchStrategy:o,loading:!n&&!t,error:n}},Hxe=e=>fetch(e).then(bn("Strategy")).then(t=>t.json()),Vxe=({environment:e})=>x(Vt,{severity:"info",children:[l("strong",{children:"Change requests"})," are enabled",e?` for ${e}`:"",". Your changes needs to be approved before they will be live. All the changes you do now will be added into a draft that you can submit for review."]}),Gxe="production",qxe=({open:e,onClose:t,onClick:n,label:r,loading:o})=>{const[i,a]=sM(),s=()=>{a(c=>({hide:!c.hide}))};return x(vr,{title:"Changing production environment!",primaryButtonText:r,disabledPrimaryButton:o,secondaryButtonText:"Cancel",onClick:n,onClose:t,open:e,children:[l(Vt,{severity:"error",children:"WARNING. You are about to make changes to a production environment. These changes will affect your customers."}),l("p",{style:{marginTop:"1rem"},children:"Are you sure you want to proceed?"}),l(Mr,{label:"Don't show again",control:l(pa,{checked:i.hide,onChange:s})})]})},Yxe=(e,t)=>{const[n]=sM(),r=e.environments.find(o=>o.name===t);return n.hide?!1:(r==null?void 0:r.type)===Gxe},Kxe="useFeatureStrategyProdGuardSettings:v2",sM=$2(Kxe,{hide:!1}),Xxe=e=>({changeRequestInReviewOrApproved:n=>e?e.some(r=>r.environment===n&&Mn(["In review","Approved"],r.state)):!1,alert:l(Vt,{sx:{margin:"1rem 0"},severity:"warning",children:"You currently have a change request in review for this environment. Adding a new change will add the change to the existing change request, and all existing approvals will be reset. Are you sure you want to continue?"})}),Jxe=(e,t,n,r={})=>{const{isEnterprise:o}=It();return Mc(o(),e,t,n,r)},Qxe=e=>fetch(e).then(bn("ChangeRequest")).then(t=>t.json()),e0=e=>{const{data:t,error:n,mutate:r}=Jxe([],Rt(`api/admin/projects/${e}/change-requests/pending`),Qxe);return{data:t,loading:!n&&!t,refetch:r,error:n}},Zxe=({title:e,setTitle:t})=>x($e,{sx:{paddingBottom:n=>n.spacing(2)},children:[l(se,{sx:{paddingBottom:n=>n.spacing(2)},children:"What would you like to call this strategy? (optional)"}),l(rr,{label:"Strategy title",id:"title-input",value:e,onChange:n=>t(n.target.value),sx:{width:"100%"}})]}),eCe=({enabled:e,onToggleEnabled:t})=>l(Mr,{control:l(fa,{name:"enabled",onChange:t,checked:e}),label:"Enabled – This strategy will be used when evaluating feature toggles."}),tCe=({values:e=[],updateValues:t,placeholder:n="",error:r,...o})=>{const i=s=>{const u=s.target.value.split(/,\s?/).map(d=>d.trim());t(u)},a=s=>{if(s.key==="Backspace"){const c=s.target.value;if(c.endsWith(", ")){s.preventDefault();const u=c.slice(0,-2);t(u.split(/,\s*/))}}};return l(pn,{...o,error:r,placeholder:n,value:e?e.join(", "):"",onKeyDown:a,onChange:i,style:{width:"100%"},variant:"outlined",size:"small"})},nCe=C("div")(({theme:e})=>({display:"flex",alignItems:"center",rowGap:e.spacing(1.5),marginBottom:e.spacing(2),[e.breakpoints.down("sm")]:{flexDirection:"column","& > div, .MuiInputBase-root":{width:"100%",alignItems:"flex-start"}}})),rCe=C(Qh)(({theme:e})=>({marginRight:e.spacing(10),[e.breakpoints.up("sm")]:{minWidth:e.spacing(20)}})),oCe=C("div")(({theme:e})=>({width:"100%",gap:e.spacing(1.5),display:"flex"})),iCe=C(tCe)(()=>({width:"100%"})),aCe=C(pn)(()=>({width:"100%"})),sCe=({overrides:e,overridesDispatch:t})=>{const{context:n}=ts(),r=n.map(({name:a})=>({key:a,label:a})),o=a=>s=>{t({type:"UPDATE_VALUES_AT",payload:[a,s]})},i=a=>(s,c)=>{s==null||s.preventDefault(),t({type:"UPDATE_VALUES_AT",payload:[a,c||[]]})};return l(ve,{children:e.map((a,s)=>{var p;const c=n.find(({name:f})=>f===a.contextName),u=((p=c==null?void 0:c.legalValues)==null?void 0:p.map(({value:f})=>f))||[],d=a.values.filter(f=>u.includes(f));return x(nCe,{children:[l(rCe,{id:"override-context-name",name:"contextName",label:"Context Field","data-testid":"context_field",value:a.contextName,options:r,onChange:f=>t({type:"UPDATE_TYPE_AT",payload:[s,f.target.value]})}),x(oCe,{children:[l(q,{condition:!!(u&&u.length>0),show:l(Ad,{multiple:!0,id:`override-select-${s}`,isOptionEqualToValue:(f,h)=>f===h,options:u,onChange:i(s),getOptionLabel:f=>f,value:d,style:{width:"100%"},filterSelectedOptions:!0,size:"small",renderInput:f=>l(aCe,{...f,variant:"outlined",label:"Legal values"})}),elseShow:l(iCe,{label:"Values (v1, v2, ...)",name:"values",placeholder:"",values:a.values,updateValues:o(s),"data-testid":"OVERRIDE_VALUES"})}),l(xt,{title:"Remove",arrow:!0,children:l(jt,{onClick:f=>{f.preventDefault(),t({type:"REMOVE",payload:s})},children:l(vo,{})})})]})]},`override=${s}`)})})},lCe=(e,t)=>{switch(t.type){case"SET":return t.payload;case"CLEAR":return[];case"ADD":return[...e,t.payload];case"REMOVE":return e.filter((a,s)=>s!==t.payload);case"UPDATE_VALUES_AT":const[n,r]=t.payload;return e.map((a,s)=>s===n?{...a,values:r}:a);case"UPDATE_TYPE_AT":const[o,i]=t.payload;return e.map((a,s)=>s===o?{...a,contextName:i}:a)}},cCe=(e=[])=>m.useReducer(lCe,e);var cs=(e=>(e.FIX="fix",e.VARIABLE="variable",e))(cs||{});const uCe=C("div")(({theme:e})=>({position:"relative",backgroundColor:e.palette.neutral.light,display:"flex",flexDirection:"column",padding:e.spacing(3),marginBottom:e.spacing(3),borderRadius:e.shape.borderRadiusLarge})),dCe=C(xt)(({theme:e})=>({position:"absolute",top:e.spacing(2),right:e.spacing(2)})),lM=C("p")(({theme:e})=>({fontSize:e.fontSizes.smallBody})),b3=C(lM)(({theme:e})=>({display:"flex",color:e.palette.text.primary,marginTop:e.spacing(1),marginBottom:e.spacing(2)})),pCe=C("p")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary,marginBottom:e.spacing(2)})),fCe=C(Mr)(({theme:e})=>({marginBottom:e.spacing(1),"& > span":{fontSize:e.fontSizes.smallBody},[e.breakpoints.down("sm")]:{marginTop:e.spacing(1),marginBottom:e.spacing(1.5)}})),hCe=C("div")(({theme:e})=>({width:"100%",gap:e.spacing(1.5),display:"flex","& > div":{width:"100%"}})),w3=C(rr)(()=>({width:"100%"})),mCe=C("div")(({theme:e})=>({marginLeft:e.spacing(3)})),gCe=C(rr)(({theme:e})=>({width:e.spacing(24),[e.breakpoints.down("sm")]:{width:"100%"}})),vCe=C("div")(({theme:e})=>({marginTop:e.spacing(3),flexGrow:1})),cM=C("div")(({theme:e})=>({display:"flex",rowGap:e.spacing(1.5),marginBottom:e.spacing(2),[e.breakpoints.down("sm")]:{flexDirection:"column","& > div, .MuiInputBase-root":{width:"100%"}}})),yCe=C(cM)({alignItems:"end",justifyContent:"space-between"}),bCe=C(Qh)(({theme:e})=>({marginRight:e.spacing(10),[e.breakpoints.up("sm")]:{minWidth:e.spacing(20)}})),wCe=C(Ve)(({theme:e})=>({marginTop:e.spacing(-1),marginLeft:e.spacing(-1)})),SCe=[{key:"string",label:"string"},{key:"json",label:"json"},{key:"csv",label:"csv"}],xCe={type:"string",value:""},CCe=({variant:e,variants:t,updateVariant:n,removeVariant:r,error:o,disableOverrides:i=!1})=>{const[a,s]=m.useState(e.name),[c,u]=m.useState(e.weightType===cs.FIX),[d,p]=m.useState(String(e.weight/10)),[f,h]=m.useState(e.payload||xCe),[g,v]=cCe("overrides"in e?e.overrides||[]:[]),{context:b}=ts(),[y,w]=m.useState({}),S=H=>{w(ee=>({...ee,[H]:void 0}))},k=(H,ee)=>{w(V=>({...V,[H]:ee}))};m.useEffect(()=>{S("percentage"),o!=null&&o.includes("%")&&k("percentage","Total weight must equal 100%")},[o]);const A=!e.new,T=t.filter(({id:H,weightType:ee})=>H!==e.id&&ee===cs.VARIABLE).length>0,R=H=>{const ee=H.weightType===cs.VARIABLE,V=t.some(j=>j.weightType===cs.FIX),W=t.filter(j=>j.weightType===cs.VARIABLE).length===1;return V&&W&&ee},P=H=>{S("name"),L(H,e.id)||k("name","A variant with that name already exists for this environment."),s(H.trim())},_=H=>{(H===""||B(H))&&p(H)},O=H=>{Y(H)||k("payload","Invalid JSON.")},$=()=>{b.length>0&&v({type:"ADD",payload:{contextName:b[0].name,values:[]}})},z=H=>!!H.length,L=(H,ee)=>A||!t.some(V=>V.name===H&&V.id!==ee),B=H=>{if(!c)return!0;if(H===""||H.match(/\.[0-9]{2,}$/))return!1;const ee=Number(H);return ee>=0&&ee<=100},Y=H=>{try{return H.type==="json"&&JSON.parse(H.value),!0}catch{return!1}};return m.useEffect(()=>{const H={...e,name:a,weight:Number(c?d:100)*10,weightType:c?cs.FIX:cs.VARIABLE,stickiness:(t==null?void 0:t.length)>0?t[0].stickiness:"default",payload:f.value?f:void 0,isValid:z(a)&&L(a,e.id)&&B(d)&&Y(f)&&!o};i||(H.overrides=g.map(ee=>({contextName:ee.contextName,values:ee.values})).filter(ee=>ee.values&&ee.values.length>0)),n(H)},[a,c,d,f,g]),m.useEffect(()=>{c||p(String(e.weight/10))},[e.weight]),x(uCe,{"data-testid":"VARIANT",children:[l(dCe,{arrow:!0,title:R(e)?"You need to have at least one variable variant":"Delete variant",children:l("div",{children:l(jt,{"data-testid":`VARIANT_DELETE_BUTTON_${e.name}`,onClick:()=>r(e.id),disabled:R(e),children:l(vo,{})})})}),x(yCe,{children:[x(vCe,{children:[l(lM,{children:"Variant name"}),l(pCe,{children:"This will be used to identify the variant in your code"}),l(w3,{id:`variant-name-input-${e.id}`,"data-testid":"VARIANT_NAME_INPUT",label:"Variant name",error:!!y.name,errorText:y.name,value:a,onChange:H=>P(H.target.value),disabled:A,required:!0})]}),l(q,{condition:T,show:x(mCe,{children:[l(fCe,{label:"Custom percentage",control:l(fa,{"data-testid":"VARIANT_WEIGHT_CHECK",checked:c,onChange:H=>u(H.target.checked)})}),l(gCe,{"data-testid":"VARIANT_WEIGHT_INPUT",type:"number",label:"Variant weight",error:!!y.percentage,errorText:y.percentage,value:d,onChange:H=>_(H.target.value),required:c,disabled:!c,"aria-valuemin":0,"aria-valuemax":100,InputProps:{endAdornment:l(JE,{position:"end",children:"%"})}})]})})]}),x(b3,{children:["Payload",l(Xa,{tooltip:"Passed along with the the variant object."})]}),x(cM,{children:[l(bCe,{id:"variant-payload-type",name:"type",label:"Type",value:f.type,options:SCe,onChange:H=>{S("payload"),h(ee=>({...ee,type:H.target.value}))}}),l(hCe,{children:l(w3,{id:"variant-payload-value",name:"variant-payload-value",label:"Value",multiline:f.type!=="string",rows:f.type==="string"?1:4,value:f.value,onChange:H=>{S("payload"),h(ee=>({...ee,value:H.target.value}))},placeholder:f.type==="json"?'{ "hello": "world" }':"",onBlur:()=>O(f),error:!!y.payload,errorText:y.payload})})]}),i?null:x(ve,{children:[x(b3,{children:["Overrides",l(Xa,{tooltip:"Here you can specify which users should get this variant."})]}),l(sCe,{overrides:g,overridesDispatch:v}),l("div",{children:l(wCe,{onClick:$,variant:"text",color:"primary","data-testid":"VARIANT_ADD_OVERRIDE_BUTTON",children:"Add override"})})]})]})};let mg;const ECe=new Uint8Array(16);function TCe(){if(!mg&&(mg=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!mg))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return mg(ECe)}const to=[];for(let e=0;e<256;++e)to.push((e+256).toString(16).slice(1));function kCe(e,t=0){return(to[e[t+0]]+to[e[t+1]]+to[e[t+2]]+to[e[t+3]]+"-"+to[e[t+4]]+to[e[t+5]]+"-"+to[e[t+6]]+to[e[t+7]]+"-"+to[e[t+8]]+to[e[t+9]]+"-"+to[e[t+10]]+to[e[t+11]]+to[e[t+12]]+to[e[t+13]]+to[e[t+14]]+to[e[t+15]]).toLowerCase()}const ACe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),S3={randomUUID:ACe};function x3(e,t,n){if(S3.randomUUID&&!t&&!e)return S3.randomUUID();e=e||{};const r=e.random||(e.rng||TCe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return kCe(r)}const Ix=e=>{const t=new URLSearchParams(window.location.search).get(e);if(!t)throw new Error(`Missing required query param: ${e}`);return t},RCe=C("div")({display:"flex",flexDirection:"column"}),_Ce=({strategy:e,setStrategy:t})=>{const n=nr("projectId"),r=Ix("environmentId"),[o,i]=m.useState([]),a=e!=null&&e.parameters&&"stickiness"in(e==null?void 0:e.parameters)?String(e.parameters.stickiness):"default";m.useEffect(()=>{i((e.variants||[]).map(u=>({...u,new:!1,isValid:!0,id:x3(),overrides:[]})))},[]),m.useEffect(()=>{t(u=>({...u,variants:o.map(d=>({stickiness:a,name:d.name,weight:d.weight,payload:d.payload,weightType:d.weightType}))}))},[a,JSON.stringify(o)]);const s=(u,d)=>{i(p=>g5(p.map(f=>f.id===d?u:f),1e3))},c=()=>{const u=x3();i(d=>[...d,{name:"",weightType:cs.VARIABLE,weight:0,stickiness:a,new:!0,isValid:!1,id:u}])};return x(ve,{children:[l(se,{component:"h3",sx:{m:0},variant:"h3",children:"Variants"}),l(RCe,{children:o.map(u=>l(CCe,{disableOverrides:!0,variant:u,variants:o,updateVariant:d=>s(d,u.id),removeVariant:()=>i(d=>g5(d.filter(p=>p.id!==u.id),1e3))},u.id))}),l(Po,{onClick:c,variant:"outlined",permission:b9,projectId:n,environmentId:r,children:"Add variant"})]})},PCe=C("form")(({theme:e})=>({display:"grid",gap:e.spacing(2)})),Np=C("hr")(({theme:e})=>({width:"100%",height:"1px",margin:e.spacing(2,0),border:"none",background:e.palette.background.elevation2})),ICe=C("div")(({theme:e})=>({display:"flex",justifyContent:"end",gap:e.spacing(2),paddingBottom:e.spacing(10)})),uM=({projectId:e,feature:t,environmentId:n,permission:r,onSubmit:o,onCancel:i,loading:a,strategy:s,setStrategy:c,segments:u,setSegments:d,errors:p,isChangeRequest:f})=>{var ee;const[h,g]=m.useState(!1),v=LT(s.constraints),b=Yxe(t,n),y=id(r,e,n),{strategyDefinition:w}=DT(s==null?void 0:s.name),{data:S}=e0(t.project),{changeRequestInReviewOrApproved:k,alert:A}=Xxe(S),T=k(n||""),R=T?"Add to existing change request":"Add change to draft",P=pt(),{uiConfig:_,error:O,loading:$}=It();if(O)throw O;if($||!w)return null;const z=V=>w.parameters.find(W=>W.name===V),L=(V,W)=>{const j=Uxe(z(V),W);return j?(p.setFormError(V,j),!1):(p.removeFormError(V),!0)},B=()=>w.parameters.map(V=>V.name).map(V=>{var W;return L(V,(W=s.parameters)==null?void 0:W[V])}).every(Boolean),Y=()=>{P(MT(t.project,t.name))};return x(PCe,{onSubmit:async V=>{V.preventDefault(),B()&&(b&&!f?g(!0):o())},children:[l(q,{condition:T,show:A,elseShow:l(q,{condition:!!f,show:l(Vxe,{environment:n})})}),l(u1e,{projectId:t.project,featureId:t.name,environmentId:n,children:l(q,{condition:!!f,show:x(Vt,{severity:"success",children:["This feature toggle is currently enabled in the"," ",l("strong",{children:n})," environment. Any changes made here will be available to users as soon as these changes are approved and applied."]}),elseShow:x(Vt,{severity:"success",children:["This feature toggle is currently enabled in the"," ",l("strong",{children:n})," environment. Any changes made here will be available to users as soon as you hit ",l("strong",{children:"save"}),"."]})})}),l(Np,{}),l(Zxe,{title:s.title||"",setTitle:V=>{c(W=>({...W,title:V}))}}),l(q,{condition:!!_.flags.SE,show:l(jxe,{segments:u,setSegments:d,projectId:e})}),l(Sxe,{projectId:t.project,environmentId:n,strategy:s,setStrategy:c}),l(Np,{}),l(a1e,{strategy:s,strategyDefinition:w,setStrategy:c,validateParameter:L,errors:p,hasAccess:y}),l(Np,{}),l(q,{condition:!!((ee=_==null?void 0:_.flags)!=null&&ee.strategyVariant)&&s.parameters!=null&&"stickiness"in s.parameters,show:l(_Ce,{strategy:s,setStrategy:c})}),l(Np,{}),l(eCe,{enabled:!(s!=null&&s.disabled),onToggleEnabled:()=>c(V=>({...V,disabled:!V.disabled}))}),l(Np,{}),x(ICe,{children:[l(Po,{permission:r,projectId:t.project,environmentId:n,variant:"contained",color:"primary",type:"submit",disabled:a||!v||p.hasFormErrors(),"data-testid":aae,children:f?R:"Save strategy"}),l(Ve,{type:"button",color:"primary",onClick:i||Y,disabled:a,children:"Cancel"}),l(qxe,{open:h,onClose:()=>g(!1),onClick:o,loading:a,label:"Save strategy"})]})]})},OCe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0});return{addStrategyToFeature:async(u,d,p,f)=>{const h=`api/admin/projects/${u}/features/${d}/environments/${p}/strategies`,g=t(h,{method:"POST",body:JSON.stringify(f)},"addStrategyToFeature");return(await e(g.caller,g.id)).json()},updateStrategyOnFeature:async(u,d,p,f,h)=>{const g=`api/admin/projects/${u}/features/${d}/environments/${p}/strategies/${f}`,v=t(g,{method:"PUT",body:JSON.stringify(h)},"updateStrategyOnFeature");await e(v.caller,v.id)},deleteStrategyFromFeature:async(u,d,p,f)=>{const h=`api/admin/projects/${u}/features/${d}/environments/${p}/strategies/${f}`,g=t(h,{method:"DELETE"},"deleteStrategyFromFeature");await e(g.caller,g.id)},setStrategiesSortOrder:async(u,d,p,f)=>{const h=`api/admin/projects/${u}/features/${d}/environments/${p}/strategies/set-sort-order`,g=t(h,{method:"POST",body:JSON.stringify(f)},"setStrategiesSortOrderOnFeature");await e(g.caller,g.id)},setStrategyDisabledState:async(u,d,p,f,h)=>{const g=`api/admin/projects/${u}/features/${d}/environments/${p}/strategies/${f}`,v=t(g,{method:"PATCH",body:JSON.stringify([{path:"/disabled",value:h,op:"replace"}])},"setStrategyDisabledState");await e(v.caller,v.id)},loading:r,errors:n}},dM=()=>{const[e,t]=m.useState({}),n=m.useCallback(a=>e[a],[e]),r=m.useCallback((a,s)=>{t(Ri(c=>{c[a]=s}))},[t]),o=m.useCallback(a=>{t(Ri(s=>{delete s[a]}))},[t]),i=m.useCallback(()=>Object.values(e).some(Boolean),[e]);return{getFormError:n,setFormError:r,removeFormError:o,hasFormErrors:i}},$Ce=(e,t)=>{const n=t.parameters.map(r=>r.name);return Object.fromEntries(Object.entries(e).sort((r,o)=>n.indexOf(r[0])-n.indexOf(o[0])))};var C3=Object.prototype.hasOwnProperty;function E3(e,t,n){for(n of e.keys())if(kf(n,t))return n}function kf(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&kf(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=E3(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=E3(t,o),!o)||!kf(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(C3.call(e,n)&&++r&&!C3.call(t,n)||!(n in t)||!kf(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var pM={exports:{}};(function(e,t){(function(n,r){var o=r(n);e.exports=o})(ki,function(n){var r=["N","E","A","D"];function o(P,_){P.super_=_,P.prototype=Object.create(_.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}})}function i(P,_){Object.defineProperty(this,"kind",{value:P,enumerable:!0}),_&&_.length&&Object.defineProperty(this,"path",{value:_,enumerable:!0})}function a(P,_,O){a.super_.call(this,"E",P),Object.defineProperty(this,"lhs",{value:_,enumerable:!0}),Object.defineProperty(this,"rhs",{value:O,enumerable:!0})}o(a,i);function s(P,_){s.super_.call(this,"N",P),Object.defineProperty(this,"rhs",{value:_,enumerable:!0})}o(s,i);function c(P,_){c.super_.call(this,"D",P),Object.defineProperty(this,"lhs",{value:_,enumerable:!0})}o(c,i);function u(P,_,O){u.super_.call(this,"A",P),Object.defineProperty(this,"index",{value:_,enumerable:!0}),Object.defineProperty(this,"item",{value:O,enumerable:!0})}o(u,i);function d(P,_,O){var $=P.slice((O||_)+1||P.length);return P.length=_<0?P.length+_:_,P.push.apply(P,$),P}function p(P){var _=typeof P;return _!=="object"?_:P===Math?"math":P===null?"null":Array.isArray(P)?"array":Object.prototype.toString.call(P)==="[object Date]"?"date":typeof P.toString=="function"&&/^\/.*\//.test(P.toString())?"regexp":"object"}function f(P){var _=0;if(P.length===0)return _;for(var O=0;O<P.length;O++){var $=P.charCodeAt(O);_=(_<<5)-_+$,_=_&_}return _}function h(P){var _=0,O=p(P);if(O==="array"){P.forEach(function(Y){_+=h(Y)});var $="[type: array, hash: "+_+"]";return _+f($)}if(O==="object"){for(var z in P)if(P.hasOwnProperty(z)){var L="[ type: object, key: "+z+", value hash: "+h(P[z])+"]";_+=f(L)}return _}var B="[ type: "+O+" ; value: "+P+"]";return _+f(B)}function g(P,_,O,$,z,L,B,Y){O=O||[],z=z||[],B=B||[];var H=z.slice(0);if(typeof L<"u"&&L!==null){if($){if(typeof $=="function"&&$(H,L))return;if(typeof $=="object"){if($.prefilter&&$.prefilter(H,L))return;if($.normalize){var ee=$.normalize(H,L,P,_);ee&&(P=ee[0],_=ee[1])}}}H.push(L)}p(P)==="regexp"&&p(_)==="regexp"&&(P=P.toString(),_=_.toString());var V=typeof P,W=typeof _,j,I,M,J,ae=V!=="undefined"||B&&B.length>0&&B[B.length-1].lhs&&Object.getOwnPropertyDescriptor(B[B.length-1].lhs,L),Te=W!=="undefined"||B&&B.length>0&&B[B.length-1].rhs&&Object.getOwnPropertyDescriptor(B[B.length-1].rhs,L);if(!ae&&Te)O.push(new s(H,_));else if(!Te&&ae)O.push(new c(H,P));else if(p(P)!==p(_))O.push(new a(H,P,_));else if(p(P)==="date"&&P-_!==0)O.push(new a(H,P,_));else if(V==="object"&&P!==null&&_!==null){for(j=B.length-1;j>-1;--j)if(B[j].lhs===P){J=!0;break}if(J)P!==_&&O.push(new a(H,P,_));else{if(B.push({lhs:P,rhs:_}),Array.isArray(P)){for(Y&&(P.sort(function(te,ie){return h(te)-h(ie)}),_.sort(function(te,ie){return h(te)-h(ie)})),j=_.length-1,I=P.length-1;j>I;)O.push(new u(H,j,new s(void 0,_[j--])));for(;I>j;)O.push(new u(H,I,new c(void 0,P[I--])));for(;j>=0;--j)g(P[j],_[j],O,$,H,j,B,Y)}else{var he=Object.keys(P),Ie=Object.keys(_);for(j=0;j<he.length;++j)M=he[j],J=Ie.indexOf(M),J>=0?(g(P[M],_[M],O,$,H,M,B,Y),Ie[J]=null):g(P[M],void 0,O,$,H,M,B,Y);for(j=0;j<Ie.length;++j)M=Ie[j],M&&g(void 0,_[M],O,$,H,M,B,Y)}B.length=B.length-1}}else P!==_&&(V==="number"&&isNaN(P)&&isNaN(_)||O.push(new a(H,P,_)))}function v(P,_,O,$,z){var L=[];if(g(P,_,L,$,null,null,null,z),O)for(var B=0;B<L.length;++B)O(L[B]);return L}function b(P,_,O,$,z,L,B){return g(P,_,O,$,z,L,B,!0)}function y(P,_,O,$){var z=$?function(B){B&&$.push(B)}:void 0,L=v(P,_,z,O);return $||(L.length?L:void 0)}function w(P,_,O,$){var z=$?function(B){B&&$.push(B)}:void 0,L=v(P,_,z,O,!0);return $||(L.length?L:void 0)}function S(P,_,O){if(O.path&&O.path.length){var $=P[_],z,L=O.path.length-1;for(z=0;z<L;z++)$=$[O.path[z]];switch(O.kind){case"A":S($[O.path[z]],O.index,O.item);break;case"D":delete $[O.path[z]];break;case"E":case"N":$[O.path[z]]=O.rhs;break}}else switch(O.kind){case"A":S(P[_],O.index,O.item);break;case"D":P=d(P,_);break;case"E":case"N":P[_]=O.rhs;break}return P}function k(P,_,O){if(typeof O>"u"&&_&&~r.indexOf(_.kind)&&(O=_),P&&O&&O.kind){for(var $=P,z=-1,L=O.path?O.path.length-1:0;++z<L;)typeof $[O.path[z]]>"u"&&($[O.path[z]]=typeof O.path[z+1]<"u"&&typeof O.path[z+1]=="number"?[]:{}),$=$[O.path[z]];switch(O.kind){case"A":O.path&&typeof $[O.path[z]]>"u"&&($[O.path[z]]=[]),S(O.path?$[O.path[z]]:$,O.index,O.item);break;case"D":delete $[O.path[z]];break;case"E":case"N":$[O.path[z]]=O.rhs;break}}}function A(P,_,O){if(O.path&&O.path.length){var $=P[_],z,L=O.path.length-1;for(z=0;z<L;z++)$=$[O.path[z]];switch(O.kind){case"A":A($[O.path[z]],O.index,O.item);break;case"D":$[O.path[z]]=O.lhs;break;case"E":$[O.path[z]]=O.lhs;break;case"N":delete $[O.path[z]];break}}else switch(O.kind){case"A":A(P[_],O.index,O.item);break;case"D":P[_]=O.lhs;break;case"E":P[_]=O.lhs;break;case"N":P=d(P,_);break}return P}function T(P,_,O){if(P&&_&&O&&O.kind){var $=P,z,L;for(L=O.path.length-1,z=0;z<L;z++)typeof $[O.path[z]]>"u"&&($[O.path[z]]={}),$=$[O.path[z]];switch(O.kind){case"A":A($[O.path[z]],O.index,O.item);break;case"D":$[O.path[z]]=O.lhs;break;case"E":$[O.path[z]]=O.lhs;break;case"N":delete $[O.path[z]];break}}}function R(P,_,O){if(P&&_){var $=function(z){(!O||O(P,_,z))&&k(P,_,z)};v(P,_,$)}}return Object.defineProperties(y,{diff:{value:y,enumerable:!0},orderIndependentDiff:{value:w,enumerable:!0},observableDiff:{value:v,enumerable:!0},orderIndependentObservableDiff:{value:b,enumerable:!0},orderIndepHash:{value:h,enumerable:!0},applyDiff:{value:R,enumerable:!0},applyChange:{value:k,enumerable:!0},revertChange:{value:T,enumerable:!0},isConflict:{value:function(){return typeof $conflict<"u"},enumerable:!0}}),y.DeepDiff=y,n&&(n.DeepDiff=y),y})})(pM);var NCe=pM.exports;const LCe={A:" ",E:" ",D:"-",N:"+"},t0=({entry:e,sort:t=(n,r)=>n.key.localeCompare(r.key)})=>{const n=kd(),r={A:{color:n.palette.eventLog.edited},E:{color:n.palette.eventLog.edited},D:{color:n.palette.eventLog.diffSub},N:{color:n.palette.eventLog.diffAdd}},o=e.data&&e.preData?NCe.diff(e.preData,e.data):void 0,i=(c,u)=>{let d;return c.lhs!==void 0?d=x("div",{style:r.D,children:["- ",u,": ",JSON.stringify(c.lhs)]}):c.rhs!==void 0&&(d=x("div",{style:r.N,children:["+ ",u,": ",JSON.stringify(c.rhs)]})),d},a=(c,u)=>{var f;let d;const p=((f=c.path)==null?void 0:f.join("."))??c.index;if(c.item)d=i(c.item,p);else if(c.lhs!==void 0&&c.rhs!==void 0)d=x("div",{children:[x("div",{style:r.D,children:["- ",p,": ",JSON.stringify(c.lhs)]}),x("div",{style:r.N,children:["+ ",p,": ",JSON.stringify(c.rhs)]})]});else{const h=JSON.stringify(c.rhs||c.item);d=x("div",{style:r[c.kind],children:[LCe[c.kind]," ",p,h?`: ${h}`:c.kind==="D"?" (deleted)":""]})}return{key:p.toString(),value:l("div",{children:d},u),index:u}};let s;if(o)s=o.map(a).sort(t).map(({value:c})=>c);else{const c=e.data||e.preData;s=[l("div",{style:e.data?r.N:r.D,children:JSON.stringify(c,null,2)},0)]}return l("pre",{style:{overflowX:"auto",overflowY:"hidden"},tabIndex:0,children:l("code",{children:s.length===0?"(no changes)":s})})},DCe=({refresh:e,show:t,afterSubmitAction:n,data:r,cache:o})=>{const i=yn(),a=tr(i.breakpoints.down("sm")),s=m.useMemo(()=>{const c={...q6,padding:`${i.spacing(3)} ${i.spacing(4)}`,boxShadow:i.boxShadows.elevated,borderRadius:i.shape.borderRadiusLarge,backgroundColor:i.palette.background.paper,maxWidth:i.spacing(75),zIndex:i.zIndex.mobileStepper};return a?{...c,right:0,left:0,bottom:0,borderRadius:0}:c},[i,a]);return x(l2,{mounted:t,start:s,enter:Y6,children:[l(se,{variant:"h5",sx:{my:2,mb:2},children:"Your data is stale"}),l(se,{variant:"body1",sx:{my:2,mb:3},children:"The data you have been working on is stale, would you like to refresh your data? This may happen if someone has been making changes to the data while you were working."}),l(t0,{entry:{preData:o,data:r}}),l(Ve,{sx:{mb:2},variant:"contained",color:"primary",onClick:()=>{e(),n()},children:"Refresh data"})]})},MCe=({unleashGetter:e,dataKey:t="",refetchFunctionKey:n="",options:r={},params:o=[""]})=>{const i=e(...o,{refreshInterval:5,...r});return{data:i[t],refetch:i[n]}},fM=(e,t,n,r)=>{const{data:o,refetch:i}=MCe(e),[a,s]=m.useState(t||null),[c,u]=m.useState(!1),d=f=>{u(!1),s(f)},p=f=>f&&(r&&typeof r=="function"?r(f):f);return m.useEffect(()=>{a===null&&s(t)},[t]),m.useEffect(()=>{if(!a||!o)return;kf(p(a),p(o))||u(!0)},[o]),{data:a,refetch:i,staleDataNotification:l(DCe,{cache:p(a),data:p(o),refresh:()=>d(o),show:c,afterSubmitAction:n.afterSubmitAction}),forceRefreshCache:d}},hM=e=>{const t={...e};return delete t.lastSeenAt,t},nm=()=>{const{trackEvent:e}=br(),{makeRequest:t,createRequest:n,errors:r,loading:o}=Vn({propagateErrors:!0});return{addChange:async(h,g,v)=>{e("change_request",{props:{eventType:"change added"}});const b=`api/admin/projects/${h}/environments/${g}/change-requests`,y=n(b,{method:"POST",body:JSON.stringify(v)});try{return(await t(y.caller,y.id)).json()}catch(w){throw w}},editChange:async(h,g,v,b)=>{const y=`api/admin/projects/${h}/change-requests/${g}/changes/${v}`,w=n(y,{method:"PUT",body:JSON.stringify(b)});try{return await t(w.caller,w.id)}catch(S){throw S}},changeState:async(h,g,v)=>{e("change_request",{props:{eventType:v.state}});const b=`api/admin/projects/${h}/change-requests/${g}/state`,y=n(b,{method:"PUT",body:JSON.stringify(v)});try{return(await t(y.caller,y.id)).json()}catch(w){throw w}},discardChange:async(h,g,v)=>{const b=`api/admin/projects/${h}/change-requests/${g}/changes/${v}`,y=n(b,{method:"DELETE"});try{return await t(y.caller,y.id)}catch(w){throw w}},updateChangeRequestEnvironmentConfig:async({project:h,enabled:g,environment:v,requiredApprovals:b})=>{const y=`api/admin/projects/${h}/environments/${v}/change-requests/config`,w=n(y,{method:"PUT",body:JSON.stringify({changeRequestsEnabled:g,requiredApprovals:b})});try{return await t(w.caller,w.id)}catch(S){throw S}},discardDraft:async(h,g)=>{const v=`api/admin/projects/${h}/change-requests/${g}`,b=n(v,{method:"DELETE"});try{return await t(b.caller,b.id)}catch(y){throw y}},addComment:async(h,g,v)=>{e("change_request",{props:{eventType:"comment added"}});const b=`/api/admin/projects/${h}/change-requests/${g}/comments`,y=n(b,{method:"POST",body:JSON.stringify({text:v})});try{return await t(y.caller,y.id)}catch(w){throw w}},updateTitle:async(h,g,v)=>{e("change_request",{props:{eventType:"title updated"}});const b=`api/admin/projects/${h}/change-requests/${g}/title`,y=n(b,{method:"PUT",body:JSON.stringify({title:v})});try{await t(y.caller,y.id)}catch(w){throw w}},errors:r,loading:o}},BCe=()=>{const[e,t]=m.useState(""),{trackEvent:n}=br();return{setPreviousTitle:t,trackTitle:(o="")=>{o===e&&n("strategyTitle",{props:{action:"none",on:"edit"}}),e===""&&o!==""&&n("strategyTitle",{props:{action:"added",on:"edit"}}),e!==""&&o===""&&n("strategyTitle",{props:{action:"removed",on:"edit"}}),e!==""&&o!==""&&o!==e&&n("strategyTitle",{props:{action:"edited",on:"edit"}})}}},p8e=()=>{const e=nr("projectId"),t=nr("featureId"),n=Ix("environmentId"),r=Ix("strategyId"),[o,i]=m.useState({}),[a,s]=m.useState([]),{updateStrategyOnFeature:c,loading:u}=OCe(),{strategyDefinition:d}=DT(o.name),{setToastData:p,setToastApiError:f}=$t(),h=dM(),{uiConfig:g}=It(),{unleashUrl:v}=g,b=pt(),{addChange:y}=nm(),{isChangeRequestConfigured:w}=Bc(e),{refetch:S}=e0(e),{setPreviousTitle:k}=BCe(),{feature:A,refetchFeature:T}=Rs(e,t),R=m.useRef(A),{data:P,staleDataNotification:_,forceRefreshCache:O}=fM({unleashGetter:Rs,params:[e,t],dataKey:"feature",refetchFunctionKey:"refetchFeature",options:{}},A,{afterSubmitAction:T},hM);m.useEffect(()=>{R.current.name===""&&A.name&&(O(A),R.current=A)},[A]);const{segments:$,refetchSegments:z}=$l(r);m.useEffect(()=>{const V=P==null?void 0:P.environments.flatMap(W=>W.strategies).find(W=>W.id===r);i(W=>({...W,...V})),k((V==null?void 0:V.title)||"")},[r,P]),m.useEffect(()=>{$&&s($)},[JSON.stringify($)]);const L=g!=null&&g.flags.SE?a:[],B=FCe(o,L),Y=async V=>{await c(e,t,n,r,V),await z(),p({title:"Strategy updated",type:"success",confetti:!0})},H=async V=>{await y(e,n,{action:"updateStrategy",feature:t,payload:{...V,id:r}}),p({title:"Change added to draft",type:"success",confetti:!0}),S()},ee=async()=>{try{w(n)?await H(B):await Y(B),T(),b(MT(e,t))}catch(V){f(gt(V))}};return!o.id||!d||!P?null:x(Fr,{modal:!0,title:ks(o.name??""),description:jCe,documentationLink:UCe,documentationLinkLabel:WCe,formatApiCode:()=>zCe(e,t,n,r,B,d,v),children:[l(uM,{projectId:e,feature:P,strategy:o,setStrategy:i,segments:a,setSegments:s,environmentId:n,onSubmit:ee,loading:u,permission:$1,errors:h,isChangeRequest:w(n)}),_]})},FCe=(e,t)=>({name:e.name,title:e.title,constraints:e.constraints??[],parameters:e.parameters??{},variants:e.variants??[],segments:t.map(n=>n.id),disabled:e.disabled??!1}),MT=(e,t)=>`/projects/${e}/features/${t}`,BT=(e,t,n,r)=>{const o=new URLSearchParams({environmentId:n,strategyId:r});return`/projects/${e}/features/${t}/strategies/edit?${o}`},zCe=(e,t,n,r,o,i,a)=>{if(!a)return"";const s={...o,parameters:$Ce(o.parameters??{},i)},c=`${a}/api/admin/projects/${e}/features/${t}/environments/${n}/strategies/${r}`,u=JSON.stringify(s,void 0,2);return`curl --location --request PUT '${c}' \\
293
+ --header 'Authorization: INSERT_API_KEY' \\
294
+ --header 'Content-Type: application/json' \\
295
+ --data-raw '${u}'`},jCe=`
296
+ An activation strategy will only run when a feature toggle is enabled and provides a way to control who will get access to the feature.
297
+ If any of a feature toggle's activation strategies returns true, the user will get access.
298
+ `,UCe="https://docs.getunleash.io/reference/activation-strategies",WCe="Strategies documentation",HCe=e=>{const t=Rt(`api/admin/context/${e}/strategies`),{data:n,error:r}=Mc(e,[],t,()=>VCe(t)),o=m.useCallback(()=>{Jr(t).catch(console.warn)},[t]);return{strategies:(n==null?void 0:n.strategies)||[],refetchUsedSegments:o,loading:!r&&!n,error:r}},VCe=e=>fetch(e,{method:"GET"}).then(bn("Strategies by context")).then(t=>t.json()),GCe=C("ul")(({theme:e})=>({listStyle:"none",paddingLeft:0})),qCe=C(Vt)(({theme:e})=>({marginTop:e.spacing(1)})),YCe=({contextName:e})=>{const{strategies:t}=HCe(e),{projects:n}=ma(),{trackEvent:r}=br(),o=()=>{r("context-usage",{props:{eventType:"context usage viewed"}})},i=Array.from(new Set(t.map(({projectId:s})=>s).filter(Boolean))),a=l(GCe,{children:i.map(s=>{var c;return x("li",{onClick:o,children:[l(an,{to:`/projects/${s}`,target:"_blank",rel:"noreferrer",children:((c=n.find(({id:u})=>u===s))==null?void 0:c.name)??s}),l("ul",{children:t==null?void 0:t.filter(u=>u.projectId===s).map(u=>l("li",{children:x(an,{to:BT(u.projectId,u.featureName,u.environment,u.id),target:"_blank",rel:"noreferrer",children:[u.featureName," ",KCe(u)]})},u.id))})]},s)})});return i.length>0?x(qCe,{severity:"info",children:["Usage of this context field:",a]}):null},KCe=e=>e.strategyName?`(${ks(e.strategyName)})`:"",XCe="Enter",JCe=C("form")({display:"flex",flexDirection:"column",height:"100%"}),QCe=C("div")({maxWidth:"470px"}),yw=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),T3=e=>({width:"100%",marginBottom:e.spacing(2)}),ZCe=C("div")(({theme:e})=>({display:"grid",gridTemplateColumns:"1fr auto",gap:e.spacing(1),marginBottom:e.spacing(2)})),eEe=C("p")(({theme:e})=>({marginBottom:e.spacing(.5)})),tEe=C("div")({display:"flex",alignItems:"center",marginLeft:"-9px"}),nEe=C("div")({marginTop:"auto",display:"flex",justifyContent:"flex-end"}),rEe=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),mM=({children:e,handleSubmit:t,onCancel:n,contextName:r,contextDesc:o,legalValues:i,stickiness:a,setContextName:s,setContextDesc:c,setLegalValues:u,setStickiness:d,errors:p,mode:f,validateContext:h,setErrors:g,clearErrors:v})=>{const[b,y]=m.useState(""),[w,S]=m.useState(""),[k,A]=m.useState(!1),T=w.trim()&&!b.trim(),R=i.some(L=>L.value.trim()===b.trim());m.useEffect(()=>{g(L=>({...L,tag:T?"Value cannot be empty":R?"Duplicate value":void 0}))},[g,T,R]);const P=L=>{L.preventDefault(),t(L)},_=L=>{L.key===XCe&&(L.preventDefault(),k?$():t(L))},O=(L,B)=>L.value.toLowerCase().localeCompare(B.value.toLowerCase()),$=()=>{const L={value:b.trim(),description:w.trim()};L.value&&!R&&(y(""),S(""),u(B=>[...B,L].sort(O)))},z=L=>{u(B=>B.filter(Y=>Y.value!==L.value))};return x(JCe,{onSubmit:P,children:[x(QCe,{children:[l(yw,{children:"What is your context name?"}),l(rr,{sx:T3,label:"Context name",value:r,disabled:f==="Edit",onChange:L=>s(L.target.value.trim()),error:!!p.name,errorText:p.name,onFocus:()=>v("name"),onBlur:h,autoFocus:!0}),l(yw,{children:"What is this context for?"}),l(pn,{sx:T3,label:"Context description (optional)",variant:"outlined",multiline:!0,maxRows:4,value:o,size:"small",onChange:L=>c(L.target.value)}),l(yw,{children:"Which values do you want to allow?"}),x(ZCe,{children:[l(pn,{label:"Legal value (optional)",name:"value",sx:{gridColumn:1},value:b,error:!!p.tag,helperText:p.tag,variant:"outlined",size:"small",onChange:L=>y(L.target.value),onKeyPress:L=>_(L),onBlur:()=>A(!1),onFocus:()=>A(!0),inputProps:{maxLength:100}}),l(pn,{label:"Value description (optional)",sx:{gridColumn:1},value:w,variant:"outlined",size:"small",onChange:L=>S(L.target.value),onKeyPress:L=>_(L),onBlur:()=>A(!1),onFocus:()=>A(!0),inputProps:{maxLength:100}}),l(Ve,{sx:{gridColumn:2},startIcon:l(ha,{}),onClick:$,variant:"outlined",color:"primary",disabled:!b.trim()||R,children:"Add"})]}),l(Oye,{children:i.map(L=>l(Pye,{label:L.value,description:L.description,onRemove:()=>z(L)},L.value))}),l(eEe,{children:"Custom stickiness"}),x("p",{children:["By enabling stickiness on this context field you can use it together with the flexible-rollout strategy. This will guarantee a consistent behavior for specific values of this context field. PS! Not all client SDK's support this feature yet!"," ",l(Gr,{href:"https://docs.getunleash.io/reference/stickiness",target:"_blank",rel:"noreferrer",children:"Read more"})]}),x(tEe,{children:[l(fa,{checked:a,value:a,onChange:()=>d(!a)}),l(se,{children:a?"On":"Off"})]}),l(YCe,{contextName:r})]}),x(nEe,{children:[e,l(rEe,{onClick:n,children:"Cancel"})]})]})},gM=(e="",t="",n=[],r=!1)=>{const[o,i]=m.useState(e),[a,s]=m.useState(t),[c,u]=m.useState(n),[d,p]=m.useState(r),[f,h]=m.useState({}),{validateContextName:g}=U1();return m.useEffect(()=>{i(e)},[e]),m.useEffect(()=>{s(t)},[t]),m.useEffect(()=>{u(n)},[n.length]),m.useEffect(()=>{p(r)},[r]),{contextName:o,contextDesc:a,legalValues:c,stickiness:d,setContextName:i,setContextDesc:s,setLegalValues:u,setStickiness:p,getContextPayload:()=>({name:o,description:a,legalValues:c,stickiness:d}),validateContext:async()=>{if(o.length===0)return h(w=>({...w,name:"Name can not be empty."})),!1;try{return await g(o),!0}catch(w){return h(S=>({...S,name:gt(w)})),!1}},setErrors:h,clearErrors:w=>{h(w?S=>({...S,[w]:void 0}):{})},errors:f}},oEe=()=>{m.useEffect(()=>{Dve()},[]);const{uiConfig:e}=It(),{setToastData:t,setToastApiError:n}=$t(),r=nr("name"),{context:o,refetch:i}=Tye(r),{updateContext:a,loading:s}=U1(),c=pt(),{contextName:u,contextDesc:d,legalValues:p,stickiness:f,setContextName:h,setContextDesc:g,setLegalValues:v,setStickiness:b,getContextPayload:y,clearErrors:w,setErrors:S,errors:k}=gM(o==null?void 0:o.name,o==null?void 0:o.description,o==null?void 0:o.legalValues,o==null?void 0:o.stickiness);return l(Fr,{loading:s,title:"Edit context",description:`Context fields are a basic building block used in Unleash to control roll-out.
299
+ They can be used together with strategy constraints as part of the activation strategy evaluation.`,documentationLink:"https://docs.getunleash.io/reference/unleash-context#custom-context-fields",documentationLinkLabel:"Context fields documentation",formatApiCode:()=>`curl --location --request PUT '${e.unleashUrl}/api/admin/context/${r}' \\
300
+ --header 'Authorization: INSERT_API_KEY' \\
301
+ --header 'Content-Type: application/json' \\
302
+ --data-raw '${JSON.stringify(y(),void 0,2)}'`,children:l(mM,{errors:k,handleSubmit:async P=>{P.preventDefault();const _=y();try{await a(_),i(),c("/context"),t({title:"Context information updated",type:"success"})}catch(O){n(gt(O))}},onCancel:()=>{c(yo)},contextName:u,setContextName:h,contextDesc:d,setContextDesc:g,legalValues:p,setLegalValues:v,stickiness:f,setStickiness:b,mode:"Edit",setErrors:S,clearErrors:w,children:l(zc,{permission:g9})})})},vM=(e="",t="")=>{const[n,r]=m.useState(e),[o,i]=m.useState(t),[a,s]=m.useState({}),{validateTagName:c}=M1();return m.useEffect(()=>{r(e)},[e]),m.useEffect(()=>{i(t)},[t]),{tagName:n,tagDesc:o,setTagName:r,setTagDesc:i,getTagPayload:()=>({name:n,description:o}),clearErrors:()=>{s({})},validateNameUniqueness:async()=>{if(n.length===0)return s(f=>({...f,name:"Name can not be empty."})),!1;if(n.length<2)return s(f=>({...f,name:"Tag name length must be at least 2 characters long"})),!1;try{return await c(n),!0}catch(f){return s(h=>({...h,name:gt(f)})),!1}},errors:a}},iEe="Edit",f8e="Create",aEe=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%"})),sEe=C("div")(({theme:e})=>({maxWidth:"400px"})),k3=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),lEe=C(rr)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),cEe=C(pn)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),uEe=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end"})),dEe=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),yM=({children:e,handleSubmit:t,handleCancel:n,tagName:r,tagDesc:o,setTagName:i,setTagDesc:a,errors:s,mode:c,validateNameUniqueness:u,clearErrors:d})=>x(aEe,{onSubmit:t,children:[x(sEe,{children:[l(k3,{children:"What is your tag name?"}),l(lEe,{label:"Tag name",value:r,onChange:p=>i(As(p.target.value)),error:!!s.name,errorText:s.name,onFocus:()=>d(),disabled:c===iEe,onBlur:u,autoFocus:!0}),l(k3,{children:"What is this tag for?"}),l(cEe,{label:"Tag description",variant:"outlined",multiline:!0,maxRows:4,value:o,onChange:p=>a(p.target.value)})]}),x(uEe,{children:[e,l(dEe,{onClick:n,children:"Cancel"})]})]}),pEe=(e,t={})=>{const n=async()=>{const u=Rt(`api/admin/tag-types/${e}`);return fetch(u,{method:"GET"}).then(bn("Tag data")).then(d=>d.json())},r=`api/admin/tag-types/${e}`,{data:o,error:i}=Pn(r,n,{...t}),[a,s]=m.useState(!i&&!o),c=()=>{Jr(r)};return m.useEffect(()=>{s(!i&&!o)},[o,i]),{tagType:(o==null?void 0:o.tagType)||{name:"",description:""},error:i,loading:a,refetch:c,FEATURE_CACHE_KEY:r}},fEe=()=>{const{setToastData:e,setToastApiError:t}=$t(),{uiConfig:n}=It(),r=pt(),o=nr("name"),{tagType:i}=pEe(o),{tagName:a,tagDesc:s,setTagName:c,setTagDesc:u,getTagPayload:d,errors:p,clearErrors:f}=vM(i==null?void 0:i.name,i==null?void 0:i.description),{updateTagType:h,loading:g}=M1();return l(Fr,{loading:g,title:"Edit tag type",description:"Tag types allow you to group tags together in the management UI",documentationLink:"https://docs.getunleash.io/",documentationLinkLabel:"Tags documentation",formatApiCode:()=>`curl --location --request PUT '${n.unleashUrl}/api/admin/tag-types/${o}' \\
303
+ --header 'Authorization: INSERT_API_KEY' \\
304
+ --header 'Content-Type: application/json' \\
305
+ --data-raw '${JSON.stringify(d(),void 0,2)}'`,children:l(yM,{errors:p,handleSubmit:async w=>{w.preventDefault(),f();const S=d();try{await h(a,S),r("/tag-types"),e({title:"Tag type updated",type:"success"})}catch(k){t(gt(k))}},handleCancel:()=>{r(yo)},tagName:a,setTagName:c,tagDesc:s,setTagDesc:u,mode:"Edit",clearErrors:f,children:l(zc,{permission:ph})})})},hEe=()=>{const{setToastData:e,setToastApiError:t}=$t(),{uiConfig:n}=It(),r=pt(),{tagName:o,tagDesc:i,setTagName:a,setTagDesc:s,getTagPayload:c,validateNameUniqueness:u,errors:d,clearErrors:p}=vM(),{createTag:f,loading:h}=M1();return l(Fr,{loading:h,title:"Create tag type",description:"Tag types allow you to group tags together in the management UI",documentationLink:"https://docs.getunleash.io/reference/tags",documentationLinkLabel:"Tags documentation",formatApiCode:()=>`curl --location --request POST '${n.unleashUrl}/api/admin/tag-types' \\
306
+ --header 'Authorization: INSERT_API_KEY' \\
307
+ --header 'Content-Type: application/json' \\
308
+ --data-raw '${JSON.stringify(c(),void 0,2)}'`,children:l(yM,{errors:d,handleSubmit:async y=>{if(y.preventDefault(),p(),await u()){const S=c();try{await f(S),r("/tag-types"),e({title:"Tag type created",confetti:!0,type:"success"})}catch(k){t(gt(k))}}},handleCancel:()=>{r(yo)},tagName:o,setTagName:a,tagDesc:i,setTagDesc:s,mode:"Create",clearErrors:p,validateNameUniqueness:u,children:l(Bd,{name:"type",permission:ph})})})},A3=C(se)(({theme:e})=>({fontWeight:e.fontWeight.bold,display:" inline"})),R3=C(se)(({theme:e})=>({display:" inline",color:e.palette.text.secondary})),mEe=()=>l(Xa,{htmlTooltip:!0,tooltip:x(ve,{children:[x($e,{children:[l(A3,{children:"open: "}),l(R3,{children:"everyone can submit change requests"})]}),x($e,{sx:{mt:2},children:[l(A3,{children:"protected: "}),l(R3,{children:"only admins and project members can submit change requests"})]})]})}),gEe=()=>l(Xa,{htmlTooltip:!0,tooltip:l($e,{children:"Enforce an upper limit of the number of feature toggles that may be created for this project. You can create unlimited feature toggle if there is no limit set."})}),vEe="PROJECT_STICKINESS_SELECT",yEe="PROJECT_ID_INPUT",bEe="PROJECT_NAME_INPUT",wEe="PROJECT_DESCRIPTION_INPUT",SEe=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%",paddingBottom:e.spacing(4)})),xEe=C("div")(()=>({maxWidth:"400px"})),gg=C("p")(({theme:e})=>({marginBottom:e.spacing(1),marginRight:e.spacing(1)})),CEe=C("div")(({theme:e})=>({color:e.palette.text.secondary,fontSize:e.fontSizes.smallerBody,lineHeight:1.25,paddingBottom:e.spacing(1)})),bw=C(rr)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2),paddingRight:e.spacing(1)})),EEe=C(pn)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),TEe=C(Qh)(({theme:e})=>({marginBottom:e.spacing(2),minWidth:"200px"})),kEe=C("div")(()=>({marginTop:"auto",display:"flex",justifyContent:"flex-end"})),AEe=C("div")(()=>({display:"flex",alignItems:"center"})),REe=({children:e,handleSubmit:t,projectId:n,projectName:r,projectDesc:o,projectStickiness:i,projectMode:a,featureLimit:s,featureCount:c,setProjectId:u,setProjectName:d,setProjectDesc:p,setProjectStickiness:f,setProjectMode:h,setFeatureLimit:g,errors:v,mode:b,validateProjectId:y,clearErrors:w})=>{const{uiConfig:S}=It();return x(SEe,{onSubmit:t,children:[x(xEe,{children:[l(gg,{children:"What is your project Id?"}),l(bw,{label:"Project Id",value:n,onChange:k=>u(As(k.target.value)),error:!!v.id,errorText:v.id,onFocus:()=>w(),onBlur:y,disabled:b==="Edit","data-testid":yEe,autoFocus:!0,required:!0}),l(gg,{children:"What is your project name?"}),l(bw,{label:"Project name",value:r,onChange:k=>d(k.target.value),error:!!v.name,errorText:v.name,onFocus:()=>w(),"data-testid":bEe,required:!0}),l(gg,{children:"What is your project description?"}),l(EEe,{label:"Project description",variant:"outlined",multiline:!0,maxRows:4,value:o,onChange:k=>p(k.target.value),"data-testid":wEe}),l(q,{condition:f!=null,show:x(ve,{children:[l(gg,{children:"What is the default stickiness for the project?"}),l(gD,{label:"Stickiness",value:i,"data-testid":vEe,onChange:k=>f&&f(k.target.value),editable:!0})]})}),x(ve,{children:[x($e,{sx:{display:"flex",alignItems:"center",marginBottom:1,gap:1},children:[l("p",{children:"What is your project collaboration mode?"}),l(mEe,{})]}),l(TEe,{id:"project-mode",value:a,label:"Project collaboration mode",name:"Project collaboration mode",onChange:k=>{h==null||h(k.target.value)},options:[{key:"open",label:"open"},{key:"protected",label:"protected"}]})]}),l(q,{condition:!!S.flags.newProjectLayout,show:x(ve,{children:[x($e,{sx:{display:"flex",alignItems:"center",marginBottom:1,gap:1},children:[l("p",{children:"Feature toggles limit?"}),l(gEe,{})]}),l(CEe,{children:"Leave it empty if you don’t want to add a limit"}),x(AEe,{children:[l(bw,{label:"Limit",name:"value",type:"number",value:s,onChange:k=>g(k.target.value)}),l(q,{condition:c!==void 0&&!!s,show:x($e,{children:["(",c," of ",s," ","used)"]})})]})]})})]}),l(kEe,{children:e})]})},bM="default",_Ee=(e="",t="",n="",r=bM,o="open",i="")=>{const[a,s]=m.useState(e),[c,u]=m.useState(t),[d,p]=m.useState(n),[f,h]=m.useState(r),[g,v]=m.useState(o),[b,y]=m.useState(i),[w,S]=m.useState({}),{validateId:k}=Jh();m.useEffect(()=>{s(e)},[e]),m.useEffect(()=>{u(t)},[t]),m.useEffect(()=>{p(n)},[n]),m.useEffect(()=>{v(o)},[o]),m.useEffect(()=>{y(i)},[i]),m.useEffect(()=>{h(r)},[r]);const A=()=>({id:a,name:c,description:d,defaultStickiness:f,featureLimit:T(),mode:g}),T=()=>{if(b!=="")return Number(b)};return{projectId:a,projectName:c,projectDesc:d,projectStickiness:f,projectMode:g,featureLimit:b,setProjectId:s,setProjectName:u,setProjectDesc:p,setProjectStickiness:h,setProjectMode:v,setFeatureLimit:y,getProjectPayload:A,validateName:()=>c.length===0?(S(O=>({...O,name:"Name can not be empty."})),!1):!0,validateProjectId:async()=>{if(a.length===0)return S(O=>({...O,id:"Id can not be empty."})),!1;try{return await k(A().id),!0}catch(O){return S($=>({...$,id:gt(O)})),!1}},clearErrors:()=>{S({})},errors:w}},PEe="EDIT_PROJECT_BTN",IEe=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),OEe=()=>{const{uiConfig:e}=It(),{setToastData:t,setToastApiError:n}=$t(),{hasAccess:r}=m.useContext(_o),o=nr("projectId"),{project:i}=od(o),{defaultStickiness:a}=vD(o),s=pt(),{trackEvent:c}=br(),{projectId:u,projectName:d,projectDesc:p,projectStickiness:f,projectMode:h,setProjectId:g,setProjectName:v,setProjectDesc:b,setProjectStickiness:y,setProjectMode:w,getProjectPayload:S,clearErrors:k,validateProjectId:A,validateName:T,errors:R}=_Ee(o,i.name,i.description,a,i.mode),P=()=>`curl --location --request PUT '${e.unleashUrl}/api/admin/projects/${o}' \\
309
+ --header 'Authorization: INSERT_API_KEY' \\
310
+ --header 'Content-Type: application/json' \\
311
+ --data-raw '${JSON.stringify(S(),void 0,2)}'`,{refetch:_}=od(o),{editProject:O,loading:$}=Jh(),z=async Y=>{Y.preventDefault();const H=S();if(T())try{await O(o,H),_(),s(`/projects/${o}`),t({title:"Project information updated",type:"success"}),f!==bM&&c("project_stickiness_set")}catch(V){n(gt(V))}},L=()=>{s(yo)},B=!r(yx,u)&&l(Vt,{severity:"error",sx:{mb:4},children:"You do not have the required permissions to edit this project."});return x(Fr,{loading:$,title:"Edit project",description:"Projects allows you to group feature toggles together in the management UI.",documentationLink:"https://docs.getunleash.io/reference/projects",documentationLinkLabel:"Projects documentation",formatApiCode:P,children:[B,x(REe,{errors:R,handleSubmit:z,projectId:u,setProjectId:g,projectName:d,projectMode:h,setProjectName:v,projectStickiness:f,setProjectStickiness:y,setProjectMode:w,setFeatureLimit:()=>{},featureLimit:"",projectDesc:p,setProjectDesc:b,mode:"Edit",clearErrors:k,validateProjectId:A,children:[l(zc,{permission:yx,projectId:u,"data-testid":PEe})," ",l(IEe,{onClick:L,children:"Cancel"})]})]})},$Ee=({editable:e,value:t,id:n,label:r,onChange:o,...i})=>{const{featureTypes:a}=qh(),s=a.map(c=>({key:c.id,label:c.name,title:c.description}));return s.some(c=>c.key===t)||s.push({key:t,label:t}),l(ve,{children:l(Nd,{disabled:!e,options:s,value:t,onChange:o,label:r,id:n,...i})})},NEe=(e=[],t)=>{let n=!1;const r=e.reduce((o,i)=>(i.permission===yi&&(n=!0),i.project&&i.permission===t&&(o[i.project]=t),o),{});return o=>n||!!r[o]},LEe=({enabled:e,value:t,onChange:n,filter:r,...o})=>{const{projects:i}=ma();if(!e)return null;const a=c=>({key:c.id,label:c.name,title:c.description});let s;return r?s=i.filter(c=>r(c.id)).map(a):s=i.map(a),t&&!s.find(c=>c.key===t)&&s.push({key:t,label:t}),l(Nd,{label:"Project",options:s,value:t,onChange:n,...o})},DEe=C("form")({display:"flex",flexDirection:"column",height:"100%"}),MEe=C("div")({maxWidth:"400px"}),vg=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),_3=C(rr)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),BEe=C($s)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),P3=e=>({marginBottom:e.spacing(2),minWidth:"400px",[e.breakpoints.down("sm")]:{minWidth:"379px"}}),FEe=C("p")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary,top:"-13px",position:"relative"})),zEe=C("div")({marginTop:"auto",display:"flex",justifyContent:"flex-end"}),jEe=C("div")(({theme:e})=>({display:"flex",alignItems:"center",marginTop:e.spacing(1)})),UEe=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),WEe=e=>({margin:e.spacing(1,0)}),wM=({children:e,type:t,name:n,description:r,project:o,setType:i,setName:a,setDescription:s,setProject:c,validateToggleName:u,setImpressionData:d,impressionData:p,handleSubmit:f,handleCancel:h,errors:g,mode:v,clearErrors:b})=>{const{featureTypes:y}=qh(),w=pt(),{permissions:S}=V2(),k=v!=="Edit",A=()=>{var T;return(T=y.find(R=>R.id===t))==null?void 0:T.description};return x(DEe,{onSubmit:f,children:[x(MEe,{children:[l(vg,{children:"What would you like to call your toggle?"}),l(_3,{autoFocus:!0,disabled:v==="Edit",label:"Name",id:"feature-toggle-name",error:!!g.name,errorText:g.name,onFocus:()=>b(),value:n,onChange:T=>a(As(T.target.value)),"data-testid":zie,onBlur:u}),l(vg,{children:"What kind of feature toggle do you want?"}),l($Ee,{sx:P3,value:t,onChange:i,label:"Toggle type",id:"feature-type-select",editable:!0,"data-testid":jie,IconComponent:px}),l(FEe,{children:A()}),l(q,{condition:k,show:l(vg,{children:"In which project do you want to save the toggle?"})}),l(LEe,{value:o,onChange:T=>{c(T),w(`/projects/${T}/create-toggle`,{replace:!0})},enabled:k,filter:NEe(S,uh),IconComponent:px,sx:P3}),l(vg,{children:"How would you describe your feature toggle?"}),l(_3,{multiline:!0,rows:4,label:"Description",placeholder:"A short description of the feature toggle",value:r,"data-testid":Uie,onChange:T=>s(T.target.value)}),x(BEe,{children:[l(se,{variant:"subtitle1",sx:WEe,"data-loading":!0,component:"h2",children:"Impression Data"}),x("p",{children:["When you enable impression data for a feature toggle, your client SDKs will emit events you can listen for every time this toggle gets triggered. Learn more in"," ",l(Gr,{target:"_blank",rel:"noopener noreferrer",href:"https://docs.getunleash.io/advanced/impression_data",children:"the impression data documentation"})]}),l(jEe,{children:l(Mr,{labelPlacement:"start",style:{marginLeft:0},control:l(fa,{name:"impressionData",onChange:()=>d(!p),checked:p}),label:"Enable impression data"})})]})]}),x(zEe,{children:[e,l(UEe,{onClick:h,children:"Cancel"})]})]})},SM=(e="",t="release",n="default",r="",o=!1)=>{const i=nr("projectId"),a=Fc(),{validateFeatureToggleName:s}=zd(),c=a.get("name"),[u,d]=m.useState(t),[p,f]=m.useState(c||e),[h,g]=m.useState(i||n),[v,b]=m.useState(r),[y,w]=m.useState(o),[S,k]=m.useState({});return m.useEffect(()=>{d(t)},[t]),m.useEffect(()=>{p||f(c||e)},[p,e,c]),m.useEffect(()=>{g(i||n)},[n,i]),m.useEffect(()=>{b(r)},[r]),m.useEffect(()=>{w(o)},[o]),{type:u,setType:d,name:p,setName:f,project:h,setProject:g,description:v,setDescription:b,impressionData:y,setImpressionData:w,getTogglePayload:()=>({type:u,name:p,description:v,impressionData:y}),validateToggleName:async()=>{if(p.length===0)return k(P=>({...P,name:"Name can not be empty."})),!1;try{return await s(p),!0}catch(P){return k(_=>({..._,name:gt(P)})),!1}},clearErrors:()=>{k({})},errors:S}},HEe=C(Vt)(({theme:e})=>({marginBottom:e.spacing(2)})),VEe=(e,t)=>e!=null&&e<=t,GEe=()=>{const{setToastData:e,setToastApiError:t}=$t(),{setShowFeedback:n}=m.useContext(Il),{uiConfig:r}=It(),o=pt(),{type:i,setType:a,name:s,setName:c,project:u,setProject:d,description:p,setDescription:f,validateToggleName:h,impressionData:g,setImpressionData:v,getTogglePayload:b,clearErrors:y,errors:w}=SM(),{project:S}=od(u),{createFeatureToggle:k,loading:A}=zd(),T=async O=>{if(O.preventDefault(),y(),await h()){const z=b();try{await k(u,z),o(`/projects/${u}/features/${s}`),e({title:"Toggle created successfully",text:"Now you can start using your toggle.",confetti:!0,type:"success"}),n(!0)}catch(L){t(gt(L))}}},R=()=>`curl --location --request POST '${r.unleashUrl}/api/admin/projects/${u}/features' \\
312
+ --header 'Authorization: INSERT_API_KEY' \\
313
+ --header 'Content-Type: application/json' \\
314
+ --data-raw '${JSON.stringify(b(),void 0,2)}'`,P=()=>{o(yo)},_=VEe(S.featureLimit,S.features.length)&&!!r.flags.newProjectLayout;return x(Fr,{loading:A,title:"Create feature toggle",description:`Feature toggles support different use cases, each with their own specific needs such as simple static routing or more complex routing.
315
+ The feature toggle is disabled when created and you decide when to enable`,documentationLink:"https://docs.getunleash.io/reference/feature-toggle-types",documentationLinkLabel:"Feature toggle types documentation",formatApiCode:R,children:[l(q,{condition:_,show:x(HEe,{severity:"error",children:[l("strong",{children:"Feature toggle project limit reached. "})," ","To be able to create more feature toggles in this project please increase the feature toggle upper limit in the project settings."]})}),l(wM,{type:i,name:s,project:u,description:p,setType:a,setName:c,setProject:d,setDescription:f,validateToggleName:h,setImpressionData:v,impressionData:g,errors:w,handleSubmit:T,handleCancel:P,mode:"Create",clearErrors:y,children:l(Bd,{name:"feature toggle",disabled:_,permission:uh,projectId:u,"data-testid":Wie})})]})};/*!
316
+ * https://github.com/Starcounter-Jack/JSON-Patch
317
+ * (c) 2017-2022 Joachim Wester
318
+ * MIT licensed
319
+ */var qEe=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),YEe=Object.prototype.hasOwnProperty;function Ox(e,t){return YEe.call(e,t)}function $x(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);var r=[];for(var o in e)Ox(e,o)&&r.push(o);return r}function oi(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Nx(e){for(var t=0,n=e.length,r;t<n;){if(r=e.charCodeAt(t),r>=48&&r<=57){t++;continue}return!1}return!0}function Kl(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function xM(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Lx(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(Lx(e[t]))return!0}else if(typeof e=="object"){for(var r=$x(e),o=r.length,i=0;i<o;i++)if(Lx(e[r[i]]))return!0}}return!1}function I3(e,t){var n=[e];for(var r in t){var o=typeof t[r]=="object"?JSON.stringify(t[r],null,2):t[r];typeof o<"u"&&n.push(r+": "+o)}return n.join(`
320
+ `)}var CM=function(e){qEe(t,e);function t(n,r,o,i,a){var s=this.constructor,c=e.call(this,I3(n,{name:r,index:o,operation:i,tree:a}))||this;return c.name=r,c.index=o,c.operation=i,c.tree=a,Object.setPrototypeOf(c,s.prototype),c.message=I3(n,{name:r,index:o,operation:i,tree:a}),c}return t}(Error),fr=CM,KEe=oi,bu={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=Yv(n,this.path);r&&(r=oi(r));var o=fc(n,{op:"remove",path:this.from}).removed;return fc(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=Yv(n,this.from);return fc(n,{op:"add",path:this.path,value:oi(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:yh(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},XEe={add:function(e,t,n){return Nx(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){var r=e.splice(t,1);return{newDocument:n,removed:r[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:bu.move,copy:bu.copy,test:bu.test,_get:bu._get};function Yv(e,t){if(t=="")return e;var n={op:"_get",path:t};return fc(e,n),n.value}function fc(e,t,n,r,o,i){if(n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!0),i===void 0&&(i=0),n&&(typeof n=="function"?n(t,0,e,t.path):Kv(t,0)),t.path===""){var a={newDocument:e};if(t.op==="add")return a.newDocument=t.value,a;if(t.op==="replace")return a.newDocument=t.value,a.removed=e,a;if(t.op==="move"||t.op==="copy")return a.newDocument=Yv(e,t.from),t.op==="move"&&(a.removed=e),a;if(t.op==="test"){if(a.test=yh(e,t.value),a.test===!1)throw new fr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}else{if(t.op==="remove")return a.removed=e,a.newDocument=null,a;if(t.op==="_get")return t.value=e,a;if(n)throw new fr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}}else{r||(e=oi(e));var s=t.path||"",c=s.split("/"),u=e,d=1,p=c.length,f=void 0,h=void 0,g=void 0;for(typeof n=="function"?g=n:g=Kv;;){if(h=c[d],h&&h.indexOf("~")!=-1&&(h=xM(h)),o&&(h=="__proto__"||h=="prototype"&&d>0&&c[d-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&f===void 0&&(u[h]===void 0?f=c.slice(0,d).join("/"):d==p-1&&(f=t.path),f!==void 0&&g(t,0,e,f)),d++,Array.isArray(u)){if(h==="-")h=u.length;else{if(n&&!Nx(h))throw new fr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);Nx(h)&&(h=~~h)}if(d>=p){if(n&&t.op==="add"&&h>u.length)throw new fr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);var a=XEe[t.op].call(t,u,h,e);if(a.test===!1)throw new fr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(d>=p){var a=bu[t.op].call(t,u,h,e);if(a.test===!1)throw new fr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(u=u[h],n&&d<p&&(!u||typeof u!="object"))throw new fr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}}function FT(e,t,n,r,o){if(r===void 0&&(r=!0),o===void 0&&(o=!0),n&&!Array.isArray(t))throw new fr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=oi(e));for(var i=new Array(t.length),a=0,s=t.length;a<s;a++)i[a]=fc(e,t[a],n,!0,o,a),e=i[a].newDocument;return i.newDocument=e,i}function JEe(e,t,n){var r=fc(e,t);if(r.test===!1)throw new fr("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function Kv(e,t,n,r){if(typeof e!="object"||e===null||Array.isArray(e))throw new fr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(bu[e.op]){if(typeof e.path!="string")throw new fr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new fr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new fr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new fr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Lx(e.value))throw new fr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,i=r.split("/").length;if(o!==i+1&&o!==i)throw new fr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new fr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var a={op:"_get",path:e.from,value:void 0},s=EM([a],n);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new fr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new fr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function EM(e,t,n){try{if(!Array.isArray(e))throw new fr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)FT(oi(t),oi(e),n||!0);else{n=n||Kv;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(o){if(o instanceof fr)return o;throw o}}function yh(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=Array.isArray(e),r=Array.isArray(t),o,i,a;if(n&&r){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!yh(e[o],t[o]))return!1;return!0}if(n!=r)return!1;var s=Object.keys(e);if(i=s.length,i!==Object.keys(t).length)return!1;for(o=i;o--!==0;)if(!t.hasOwnProperty(s[o]))return!1;for(o=i;o--!==0;)if(a=s[o],!yh(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}const QEe=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:fr,_areEquals:yh,applyOperation:fc,applyPatch:FT,applyReducer:JEe,deepClone:KEe,getValueByPointer:Yv,validate:EM,validator:Kv},Symbol.toStringTag,{value:"Module"}));/*!
321
+ * https://github.com/Starcounter-Jack/JSON-Patch
322
+ * (c) 2017-2021 Joachim Wester
323
+ * MIT license
324
+ */var zT=new WeakMap,ZEe=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),e2e=function(){function e(t,n){this.callback=t,this.observer=n}return e}();function t2e(e){return zT.get(e)}function n2e(e,t){return e.observers.get(t)}function r2e(e,t){e.observers.delete(t.callback)}function o2e(e,t){t.unobserve()}function i2e(e,t){var n=[],r,o=t2e(e);if(!o)o=new ZEe(e),zT.set(e,o);else{var i=n2e(o,t);r=i&&i.observer}if(r)return r;if(r={},o.value=oi(e),t){r.callback=t,r.next=null;var a=function(){Dx(r)},s=function(){clearTimeout(r.next),r.next=setTimeout(a)};typeof window<"u"&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return r.patches=n,r.object=e,r.unobserve=function(){Dx(r),clearTimeout(r.next),r2e(o,r),typeof window<"u"&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},o.observers.set(t,new e2e(t,r)),r}function Dx(e,t){t===void 0&&(t=!1);var n=zT.get(e.object);jT(n.value,e.object,e.patches,"",t),e.patches.length&&FT(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function jT(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var i=$x(t),a=$x(e),s=!1,c=a.length-1;c>=0;c--){var u=a[c],d=e[u];if(Ox(t,u)&&!(t[u]===void 0&&d!==void 0&&Array.isArray(t)===!1)){var p=t[u];typeof d=="object"&&d!=null&&typeof p=="object"&&p!=null&&Array.isArray(d)===Array.isArray(p)?jT(d,p,n,r+"/"+Kl(u),o):d!==p&&(o&&n.push({op:"test",path:r+"/"+Kl(u),value:oi(d)}),n.push({op:"replace",path:r+"/"+Kl(u),value:oi(p)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Kl(u),value:oi(d)}),n.push({op:"remove",path:r+"/"+Kl(u)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!s&&i.length==a.length))for(var c=0;c<i.length;c++){var u=i[c];!Ox(e,u)&&t[u]!==void 0&&n.push({op:"add",path:r+"/"+Kl(u),value:oi(t[u])})}}}function TM(e,t,n){n===void 0&&(n=!1);var r=[];return jT(e,t,r,"",n),r}const a2e=Object.freeze(Object.defineProperty({__proto__:null,compare:TM,generate:Dx,observe:i2e,unobserve:o2e},Symbol.toStringTag,{value:"Module"}));Object.assign({},QEe,a2e,{JsonPatchError:CM,deepClone:oi,escapePathComponent:Kl,unescapePathComponent:xM});const s2e=()=>{const e=nr("projectId"),t=nr("featureId"),{setToastData:n,setToastApiError:r}=$t(),{uiConfig:o}=It(),i=pt(),{patchFeatureToggle:a,loading:s}=zd(),{feature:c}=Rs(e,t),{type:u,setType:d,name:p,setName:f,project:h,setProject:g,description:v,setDescription:b,impressionData:y,setImpressionData:w,clearErrors:S,errors:k}=SM(c==null?void 0:c.name,c==null?void 0:c.type,c==null?void 0:c.project,c==null?void 0:c.description,c==null?void 0:c.impressionData),A=()=>{const _={...c,type:u,description:v,impressionData:y};return TM(c,_)};return l(Fr,{loading:s,title:"Edit Feature toggle",description:`Feature toggles support different use cases, each with their own specific needs such as simple static routing or more complex routing.
325
+ The feature toggle is disabled when created and you decide when to enable`,documentationLink:"https://docs.getunleash.io/reference/feature-toggle-types",documentationLinkLabel:"Feature toggle types documentation",formatApiCode:()=>`curl --location --request PATCH '${o.unleashUrl}/api/admin/projects/${e}/features/${t}' \\
326
+ --header 'Authorization: INSERT_API_KEY' \\
327
+ --header 'Content-Type: application/json' \\
328
+ --data-raw '${JSON.stringify(A(),void 0,2)}'`,children:l(wM,{type:u,name:p,project:h,description:v,setType:d,setName:f,setProject:g,setDescription:b,errors:k,handleSubmit:async _=>{_.preventDefault(),S();const O=A();try{await a(h,t,O),i(`/projects/${h}/features/${p}`),n({title:"Toggle updated successfully",type:"success"})}catch($){r(gt($))}},handleCancel:()=>{i(yo)},impressionData:y,setImpressionData:w,mode:"Edit",clearErrors:S,children:l(zc,{permission:U2,projectId:h})})})},UT=(e,t={})=>{const n=Rt(`api/admin/metrics/applications/${e}`),r=async()=>fetch(n,{method:"GET"}).then(bn("Application")).then(d=>d.json()),o=`api/admin/metrics/applications/${e}`,{data:i,error:a}=Pn(o,r,{...t}),[s,c]=m.useState(!a&&!i),u=()=>{Jr(o)};return m.useEffect(()=>{c(!a&&!i)},[i,a]),{application:i||{appName:e,color:"",createdAt:"2022-02-02T21:04:00.268Z",descriotion:"",instances:[],strategies:[],seenToggles:[],url:""},error:a,loading:s,refetchApplication:u,APPLICATION_CACHE_KEY:o}},l2e=()=>{const{hasAccess:e}=m.useContext(_o),t=nr("name"),{application:n}=UT(t),{locationSettings:r}=es(),{instances:o,strategies:i,seenToggles:a}=n,s=({createUrl:u,name:d,permission:p})=>l(q,{condition:e(p),show:x(Na,{children:[l(Zs,{children:l(OP,{style:{color:"red"}})}),l(rn,{primary:l(an,{to:`${u}`,children:d}),secondary:"Missing, want to create?"})]},`not_found_${d}`),elseShow:x(Na,{children:[l(Zs,{children:l(OP,{})}),l(rn,{primary:d,secondary:`Could not find feature toggle with name ${d}`})]},`not_found_${d}`)},`not_found_conditional_${d}`),c=({viewUrl:u,name:d,description:p,Icon:f,i:h})=>x(Na,{children:[l(Zs,{children:l(f,{})}),l(rn,{primary:l(an,{to:`${u}/${d}`,style:{wordBreak:"break-all"},children:d}),secondary:p})]},`found_${d}-${h}`);return x(Wn,{container:!0,style:{margin:0},children:[x(Wn,{item:!0,xl:6,md:6,xs:12,children:[l(se,{variant:"subtitle1",style:{padding:"1rem 0"},children:"Toggles"}),l(To,{}),l(ca,{children:a.map(({name:u,description:d,notFound:p,project:f},h)=>l(q,{condition:p,show:s({createUrl:`/projects/default/create-toggle?name=${u}`,name:u,permission:uh}),elseShow:c({viewUrl:Bv(f,u),name:u,description:d,Icon:Dle,i:h})},`toggle_conditional_${u}`))})]}),x(Wn,{item:!0,xl:6,md:6,xs:12,children:[l(se,{variant:"subtitle1",style:{padding:"1rem 0"},children:"Implemented strategies"}),l(To,{}),l(ca,{children:i.map(({name:u,description:d,notFound:p},f)=>l(q,{condition:p,show:s({createUrl:"/strategies/create",name:u,permission:Fv}),elseShow:c({viewUrl:"/strategies",name:u,Icon:DL,description:d,i:f})},`strategies_conditional_${u}`))})]}),x(Wn,{item:!0,xl:12,md:12,children:[x(se,{variant:"subtitle1",style:{padding:"1rem 0"},children:[o.length," Instances registered"]}),l(To,{}),l(ca,{children:o.map(({instanceId:u,clientIp:d,lastSeen:p,sdkVersion:f})=>x(Na,{children:[l(Zs,{children:l(Kle,{})}),l(rn,{primary:l(q,{condition:!!f,show:x("span",{children:[u," ",f]}),elseShow:l("span",{children:u})},`${u}_conditional`),secondary:x("span",{children:[d," last seen at"," ",l("small",{children:_1(p,r.locale)})]})})]},`${u}`))})]})]})},c2e=["3d_rotation","ac_unit","access_alarm","access_alarms","access_time","accessibility","accessible","account_balance","account_balance_wallet","account_box","account_circle","adb","add","add_a_photo","add_alarm","add_alert","add_box","add_circle","add_circle_outline","add_location","add_shopping_cart","add_to_photos","add_to_queue","adjust","airline_seat_flat","airline_seat_flat_angled","airline_seat_individual_suite","airline_seat_legroom_extra","airline_seat_legroom_normal","airline_seat_legroom_reduced","airline_seat_recline_extra","airline_seat_recline_normal","airplanemode_active","airplanemode_inactive","airplay","airport_shuttle","alarm","alarm_add","alarm_off","alarm_on","album","all_inclusive","all_out","android","announcement","apps","archive","arrow_back","arrow_downward","arrow_drop_down","arrow_drop_down_circle","arrow_drop_up","arrow_forward","arrow_upward","art_track","aspect_ratio","assessment","assignment","assignment_ind","assignment_late","assignment_return","assignment_returned","assignment_turned_in","assistant","assistant_photo","attach_file","attach_money","attachment","audiotrack","autorenew","av_timer","backspace","backup","battery_alert","battery_charging_full","battery_full","battery_std","battery_unknown","beach_access","beenhere","block","bluetooth","bluetooth_audio","bluetooth_connected","bluetooth_disabled","bluetooth_searching","blur_circular","blur_linear","blur_off","blur_on","book","bookmark","bookmark_border","border_all","border_bottom","border_clear","border_color","border_horizontal","border_inner","border_left","border_outer","border_right","border_style","border_top","border_vertical","branding_watermark","brightness_1","brightness_2","brightness_3","brightness_4","brightness_5","brightness_6","brightness_7","brightness_auto","brightness_high","brightness_low","brightness_medium","broken_image","brush","bubble_chart","bug_report","build","burst_mode","business","business_center","cached","cake","call","call_end","call_made","call_merge","call_missed","call_missed_outgoing","call_received","call_split","call_to_action","camera","camera_alt","camera_enhance","camera_front","camera_rear","camera_roll","cancel","card_giftcard","card_membership","card_travel","casino","cast","cast_connected","center_focus_strong","center_focus_weak","change_history","chat","chat_bubble","chat_bubble_outline","check","check_box","check_box_outline_blank","check_circle","chevron_left","chevron_right","child_care","child_friendly","chrome_reader_mode","class","clear","clear_all","close","closed_caption","cloud","cloud_circle","cloud_done","cloud_download","cloud_off","cloud_queue","cloud_upload","code","collections","collections_bookmark","color_lens","colorize","comment","compare","compare_arrows","computer","confirmation_number","contact_mail","contact_phone","contacts","content_copy","content_cut","content_paste","control_point","control_point_duplicate","copyright","create","create_new_folder","credit_card","crop","crop_16_9","crop_3_2","crop_5_4","crop_7_5","crop_din","crop_free","crop_landscape","crop_original","crop_portrait","crop_rotate","crop_square","dashboard","data_usage","date_range","dehaze","delete","delete_forever","delete_sweep","description","desktop_mac","desktop_windows","details","developer_board","developer_mode","device_hub","devices","devices_other","dialer_sip","dialpad","directions","directions_bike","directions_boat","directions_bus","directions_car","directions_railway","directions_run","directions_subway","directions_transit","directions_walk","disc_full","dns","do_not_disturb","do_not_disturb_alt","do_not_disturb_off","do_not_disturb_on","dock","domain","done","done_all","donut_large","donut_small","drafts","drag_handle","drive_eta","dvr","edit","edit_location","eject","email","enhanced_encryption","equalizer","error","error_outline","euro_symbol","ev_station","event","event_available","event_busy","event_note","event_seat","exit_to_app","expand_less","expand_more","explicit","explore","exposure","exposure_neg_1","exposure_neg_2","exposure_plus_1","exposure_plus_2","exposure_zero","extension","face","fast_forward","fast_rewind","favorite","favorite_border","featured_play_list","featured_video","feedback","fiber_dvr","fiber_manual_record","fiber_new","fiber_pin","fiber_smart_record","file_download","file_upload","filter","filter_1","filter_2","filter_3","filter_4","filter_5","filter_6","filter_7","filter_8","filter_9","filter_9_plus","filter_b_and_w","filter_center_focus","filter_drama","filter_frames","filter_hdr","filter_list","filter_none","filter_tilt_shift","filter_vintage","find_in_page","find_replace","fingerprint","first_page","fitness_center","flag","flare","flash_auto","flash_off","flash_on","flight","flight_land","flight_takeoff","flip","flip_to_back","flip_to_front","folder","folder_open","folder_shared","folder_special","font_download","format_align_center","format_align_justify","format_align_left","format_align_right","format_bold","format_clear","format_color_fill","format_color_reset","format_color_text","format_indent_decrease","format_indent_increase","format_italic","format_line_spacing","format_list_bulleted","format_list_numbered","format_paint","format_quote","format_shapes","format_size","format_strikethrough","format_textdirection_l_to_r","format_textdirection_r_to_l","format_underlined","forum","forward","forward_10","forward_30","forward_5","free_breakfast","fullscreen","fullscreen_exit","functions","g_translate","gamepad","games","gavel","gesture","get_app","gif","golf_course","gps_fixed","gps_not_fixed","gps_off","grade","gradient","grain","graphic_eq","grid_off","grid_on","group","group_add","group_work","hd","hdr_off","hdr_on","hdr_strong","hdr_weak","headset","headset_mic","healing","hearing","help","help_outline","high_quality","highlight","highlight_off","history","home","hot_tub","hotel","hourglass_empty","hourglass_full","http","https","image","image_aspect_ratio","import_contacts","import_export","important_devices","inbox","indeterminate_check_box","info","info_outline","input","insert_chart","insert_comment","insert_drive_file","insert_emoticon","insert_invitation","insert_link","insert_photo","invert_colors","invert_colors_off","iso","keyboard","keyboard_arrow_down","keyboard_arrow_left","keyboard_arrow_right","keyboard_arrow_up","keyboard_backspace","keyboard_capslock","keyboard_hide","keyboard_return","keyboard_tab","keyboard_voice","kitchen","label","label_outline","landscape","language","laptop","laptop_chromebook","laptop_mac","laptop_windows","last_page","launch","layers","layers_clear","leak_add","leak_remove","lens","library_add","library_books","library_music","lightbulb_outline","line_style","line_weight","linear_scale","link","linked_camera","list","live_help","live_tv","local_activity","local_airport","local_atm","local_bar","local_cafe","local_car_wash","local_convenience_store","local_dining","local_drink","local_florist","local_gas_station","local_grocery_store","local_hospital","local_hotel","local_laundry_service","local_library","local_mall","local_movies","local_offer","local_parking","local_pharmacy","local_phone","local_pizza","local_play","local_post_office","local_printshop","local_see","local_shipping","local_taxi","location_city","location_disabled","location_off","location_on","location_searching","lock","lock_open","lock_outline","looks","looks_3","looks_4","looks_5","looks_6","looks_one","looks_two","loop","loupe","low_priority","loyalty","mail","mail_outline","map","markunread","markunread_mailbox","memory","menu","merge_type","message","mic","mic_none","mic_off","mms","mode_comment","mode_edit","monetization_on","money_off","monochrome_photos","mood","mood_bad","more","more_horiz","more_vert","motorcycle","mouse","move_to_inbox","movie","movie_creation","movie_filter","multiline_chart","music_note","music_video","my_location","nature","nature_people","navigate_before","navigate_next","navigation","near_me","network_cell","network_check","network_locked","network_wifi","new_releases","next_week","nfc","no_encryption","no_sim","not_interested","note","note_add","notifications","notifications_active","notifications_none","notifications_off","notifications_paused","offline_pin","ondemand_video","opacity","open_in_browser","open_in_new","open_with","pages","pageview","palette","pan_tool","panorama","panorama_fish_eye","panorama_horizontal","panorama_vertical","panorama_wide_angle","party_mode","pause","pause_circle_filled","pause_circle_outline","payment","people","people_outline","perm_camera_mic","perm_contact_calendar","perm_data_setting","perm_device_information","perm_identity","perm_media","perm_phone_msg","perm_scan_wifi","person","person_add","person_outline","person_pin","person_pin_circle","personal_video","pets","phone","phone_android","phone_bluetooth_speaker","phone_forwarded","phone_in_talk","phone_iphone","phone_locked","phone_missed","phone_paused","phonelink","phonelink_erase","phonelink_lock","phonelink_off","phonelink_ring","phonelink_setup","photo","photo_album","photo_camera","photo_filter","photo_library","photo_size_select_actual","photo_size_select_large","photo_size_select_small","picture_as_pdf","picture_in_picture","picture_in_picture_alt","pie_chart","pie_chart_outlined","pin_drop","place","play_arrow","play_circle_filled","play_circle_outline","play_for_work","playlist_add","playlist_add_check","playlist_play","plus_one","poll","polymer","pool","portable_wifi_off","portrait","power","power_input","power_settings_new","pregnant_woman","present_to_all","print","priority_high","public","publish","query_builder","question_answer","queue","queue_music","queue_play_next","radio","radio_button_checked","radio_button_unchecked","rate_review","receipt","recent_actors","record_voice_over","redeem","redo","refresh","remove","remove_circle","remove_circle_outline","remove_from_queue","remove_red_eye","remove_shopping_cart","reorder","repeat","repeat_one","replay","replay_10","replay_30","replay_5","reply","reply_all","report","report_problem","restaurant","restaurant_menu","restore","restore_page","ring_volume","room","room_service","rotate_90_degrees_ccw","rotate_left","rotate_right","rounded_corner","router","rowing","rss_feed","rv_hookup","satellite","save","scanner","schedule","school","screen_lock_landscape","screen_lock_portrait","screen_lock_rotation","screen_rotation","screen_share","sd_card","sd_storage","search","security","select_all","send","sentiment_dissatisfied","sentiment_neutral","sentiment_satisfied","sentiment_very_dissatisfied","sentiment_very_satisfied","settings","settings_applications","settings_backup_restore","settings_bluetooth","settings_brightness","settings_cell","settings_ethernet","settings_input_antenna","settings_input_component","settings_input_composite","settings_input_hdmi","settings_input_svideo","settings_overscan","settings_phone","settings_power","settings_remote","settings_system_daydream","settings_voice","share","shop","shop_two","shopping_basket","shopping_cart","short_text","show_chart","shuffle","signal_cellular_4_bar","signal_cellular_connected_no_internet_4_bar","signal_cellular_no_sim","signal_cellular_null","signal_cellular_off","signal_wifi_4_bar","signal_wifi_4_bar_lock","signal_wifi_off","sim_card","sim_card_alert","skip_next","skip_previous","slideshow","slow_motion_video","smartphone","smoke_free","smoking_rooms","sms","sms_failed","snooze","sort","sort_by_alpha","spa","space_bar","speaker","speaker_group","speaker_notes","speaker_notes_off","speaker_phone","spellcheck","star","star_border","star_half","stars","stay_current_landscape","stay_current_portrait","stay_primary_landscape","stay_primary_portrait","stop","stop_screen_share","storage","store","store_mall_directory","straighten","streetview","strikethrough_s","style","subdirectory_arrow_left","subdirectory_arrow_right","subject","subscriptions","subtitles","subway","supervisor_account","surround_sound","swap_calls","swap_horiz","swap_vert","swap_vertical_circle","switch_camera","switch_video","sync","sync_disabled","sync_problem","system_update","system_update_alt","tab","tab_unselected","tablet","tablet_android","tablet_mac","tag_faces","tap_and_play","terrain","text_fields","text_format","textsms","texture","theaters","thumb_down","thumb_up","thumbs_up_down","time_to_leave","timelapse","timeline","timer","timer_10","timer_3","timer_off","title","toc","today","toll","tonality","touch_app","toys","track_changes","traffic","train","tram","transfer_within_a_station","transform","translate","trending_down","trending_flat","trending_up","tune","turned_in","turned_in_not","tv","unarchive","undo","unfold_less","unfold_more","update","usb","verified_user","vertical_align_bottom","vertical_align_center","vertical_align_top","vibration","video_call","video_label","video_library","videocam","videocam_off","videogame_asset","view_agenda","view_array","view_carousel","view_column","view_comfy","view_compact","view_day","view_headline","view_list","view_module","view_quilt","view_stream","view_week","vignette","visibility","visibility_off","voice_chat","voicemail","volume_down","volume_mute","volume_off","volume_up","vpn_key","vpn_lock","wallpaper","warning","watch","watch_later","wb_auto","wb_cloudy","wb_incandescent","wb_iridescent","wb_sunny","wc","web","web_asset","weekend","whatshot","widgets","wifi","wifi_lock","wifi_tethering","work","wrap_text","youtube_searched_for","zoom_in","zoom_out","zoom_out_map"],kM=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0}),o="api/admin/metrics/applications";return{storeApplicationMetaData:async(s,c,u)=>{const d={};d[c]=u;const p=`${o}/${s}`,f=t(p,{method:"POST",body:JSON.stringify(d)});try{return await e(f.caller,f.id)}catch(h){throw h}},deleteApplication:async s=>{const c=`${o}/${encodeURIComponent(s)}`,u=t(c,{method:"DELETE"});try{return await e(u.caller,u.id)}catch(d){throw d}},errors:n,loading:r}},u2e=({application:e})=>{const{storeApplicationMetaData:t}=kM(),{appName:n,icon:r,url:o,description:i}=e,{refetchApplication:a}=UT(n),[s,c]=m.useState(o||""),[u,d]=m.useState(i||""),{setToastData:p,setToastApiError:f}=$t(),{classes:h}=Uh(),g=async(v,b,y)=>{y==null||y.preventDefault();try{await t(n,v,b),a(),p({type:"success",title:"Updated Successfully",text:`${v} successfully updated`})}catch(w){f(gt(w))}};return l(Wn,{container:!0,style:{marginTop:"1rem"},children:x(Wn,{item:!0,sm:12,xs:12,className:h.contentSpacingY,children:[l(Wn,{item:!0,children:l(Nd,{name:"iconSelect",id:"selectIcon",label:"Icon",options:c2e.map(v=>({key:v,label:v})),value:r||"apps",onChange:v=>g("icon",v)})}),l(Wn,{item:!0,children:l(pn,{value:s,onChange:v=>c(v.target.value),label:"Application URL",placeholder:"https://example.com",type:"url",variant:"outlined",size:"small",onBlur:v=>g("url",s,v)})}),l(Wn,{item:!0,children:l(pn,{value:u,label:"Description",variant:"outlined",size:"small",rows:2,onChange:v=>d(v.target.value),onBlur:v=>g("description",u,v)})})]})})},d2e=({children:e,value:t,index:n})=>l("div",{role:"tabpanel",hidden:t!==n,id:`tabpanel-${n}`,"aria-labelledby":`tab-${n}`,children:t===n&&e}),p2e=({tabData:e,className:t="",navClass:n="",startingTab:r=0})=>{const[o,i]=m.useState(r),a=()=>e.map((c,u)=>l(jre,{label:c.label,id:`tab-${u}`,"aria-controls":`tabpanel-${u}`,sx:{minWidth:{lg:160}}},`${c.label}_${u}`)),s=()=>e.map((c,u)=>l(d2e,{value:o,index:u,children:c.component},u));return x(ve,{children:[l(Cr,{className:n,elevation:0,sx:{backgroundColor:c=>c.palette.background.paper,borderBottom:"1px solid",borderBottomColor:c=>c.palette.divider,borderRadius:0},children:l(qoe,{value:o,onChange:(c,u)=>{i(u)},indicatorColor:"primary",textColor:"primary",centered:!0,children:a()})}),l("div",{className:t,children:s()})]})},f2e=()=>{const e=pt(),t=nr("name"),{application:n,loading:r}=UT(t),{appName:o,url:i,description:a,icon:s="apps",createdAt:c}=n,{hasAccess:u}=m.useContext(_o),{deleteApplication:d}=kM(),{locationSettings:p}=es(),{setToastData:f,setToastApiError:h}=$t(),[g,v]=m.useState(!1),b=()=>{v(!g)},y=A=>rd(A,p.locale),w=async A=>{A.preventDefault();try{await d(o),f({title:"Deleted Successfully",text:"Application deleted successfully",type:"success"}),e("/applications")}catch(T){h(gt(T))}},S=()=>l(vr,{open:g,onClose:b,onClick:w,title:"Are you sure you want to delete this application?"}),k=[{label:"Application overview",component:l(l2e,{})},{label:"Edit application",component:l(u2e,{application:n})}];return r?x("div",{children:[l("p",{children:"Loading..."}),l(T6,{})]}):n?x(yr,{header:l(Tn,{titleElement:x("span",{style:{display:"flex",alignItems:"center"},children:[l(Rd,{style:{marginRight:"8px"},children:l(XE,{children:s||"apps"})}),o]}),title:o,actions:x(ve,{children:[l(q,{condition:!!i,show:l(jt,{component:Gr,href:i,size:"large",children:l(Wle,{titleAccess:i})})}),l(Po,{tooltipProps:{title:"Delete application"},onClick:b,permission:JP,children:"Delete"})]})}),children:[x("div",{children:[l(se,{variant:"body1",children:a||""}),x(se,{variant:"body2",children:["Created: ",l("strong",{children:y(c)})]})]}),l(q,{condition:u(JP),show:x("div",{children:[S(),l(p2e,{tabData:k})]})})]}):x("p",{children:["Application (",o,") not found"]})},h2e=()=>{const{applications:e,loading:t}=I9(),[n,r]=Sd(),[o,i]=m.useState(n.get("search")||"");m.useEffect(()=>{const u={};o&&(u.search=o),r(u,{replace:!0})},[o,r]);const a=m.useMemo(()=>{const u=L2(o,"i");return o?e==null?void 0:e.filter(d=>u.test(d.appName)):e},[e,o]),s=()=>l(ve,{children:x("section",{style:{textAlign:"center"},children:[l(tce,{titleAccess:"Warning"})," ",l("br",{}),l("br",{}),"Oh snap, it does not seem like you have connected any applications. To connect your application to Unleash you will require a Client SDK.",l("br",{}),l("br",{}),"You can read more about how to use Unleash in your application in the"," ",l(Gr,{href:"https://docs.getunleash.io/docs/sdks/",children:"documentation."})]})});if(!a)return l(WJ,{variant:"indeterminate"});let c=a.length<e.length?`${a.length} of ${e.length}`:e.length;return l(ve,{children:l(yr,{header:l(Tn,{title:`Applications (${c})`,actions:l(ko,{initialValue:o,onChange:i})}),children:l("div",{className:Bu.fullwidth,children:l(q,{condition:a.length>0,show:l(q2,{apps:a}),elseShow:l(q,{condition:t,show:l("div",{children:"...loading"}),elseShow:s()})})})})})},m2e=()=>{const e=tr("(max-width:700px)"),t=pt();return l(q,{condition:e,show:l($r,{permission:zv,onClick:()=>t("/context/create"),size:"large",tooltipProps:{title:"Add context type"},children:l(ha,{})}),elseShow:l(Po,{onClick:()=>t("/context/create"),permission:zv,color:"primary",variant:"contained",children:"New context field"})})},g2e=({name:e,onDelete:t})=>{const n=pt();return x(da,{children:[l($r,{permission:g9,onClick:()=>n(`/context/edit/${e}`),"data-loading":!0,"aria-label":"edit",tooltipProps:{title:"Edit context field"},children:l(di,{})}),l($r,{permission:ype,onClick:t,"data-loading":!0,"aria-label":"delete",tooltipProps:{title:"Delete context field"},children:l(vo,{})})]})},AM=({original:e})=>{const t=e.usedInProjects===1?"project":"projects",n=e.usedInFeatures===1?"toggle":"toggles";return x(Hn,{sx:{color:e.usedInProjects===0&&e.usedInFeatures===0?ua.palette.text.disabled:"inherit"},children:[x($e,{children:[e.usedInProjects," ",t]}),x($e,{children:[e.usedInFeatures," feature ",n]})]})},v2e=()=>{const[e,t]=m.useState(!1),[n,r]=m.useState(),{context:o,refetchUnleashContext:i,loading:a}=ts(),{removeContext:s}=U1(),{setToastData:c,setToastApiError:u}=$t(),d=m.useMemo(()=>a?Array(5).fill({name:"Context name",description:"Context description when loading"}):o.map(({name:A,description:T,sortOrder:R,usedInProjects:P,usedInFeatures:_})=>({name:A,description:T,sortOrder:R,usedInProjects:P,usedInFeatures:_})).sort((A,T)=>A.sortOrder-T.sortOrder),[o,a]),p=m.useMemo(()=>[{id:"Icon",Cell:()=>l(Xh,{icon:l(Ele,{color:"disabled"})}),disableGlobalFilter:!0},{Header:"Name",accessor:"name",width:"70%",Cell:({row:{original:{name:A,description:T}}})=>l(Ts,{title:A,to:`/context/edit/${A}`,subtitle:T}),sortType:"alphanumeric"},{Header:"Used in",width:"60%",Cell:({row:{original:A}})=>l(AM,{original:A})},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:{name:A}}})=>l(g2e,{name:A,onDelete:()=>{r(A),t(!0)}}),width:150,disableGlobalFilter:!0,disableSortBy:!0},{accessor:"description",disableSortBy:!0},{accessor:"sortOrder",disableGlobalFilter:!0,sortType:"number"}],[]),f=m.useMemo(()=>({sortBy:[{id:"name",desc:!1}],hiddenColumns:["description","sortOrder"]}),[]),h=async()=>{try{if(n===void 0)throw new Error;await s(n),i(),c({type:"success",title:"Successfully deleted context",text:"Your context is now deleted"})}catch(A){u(gt(A))}r(void 0),t(!1)},{getTableProps:g,getTableBodyProps:v,headerGroups:b,rows:y,prepareRow:w,state:{globalFilter:S},setGlobalFilter:k}=Jt.useTable({columns:p,data:d,initialState:f,sortTypes:qo,autoResetGlobalFilter:!1,autoResetSortBy:!1,disableSortRemove:!0},Jt.useGlobalFilter,Jt.useSortBy);return x(yr,{isLoading:a,header:l(Tn,{title:`Context fields (${y.length})`,actions:x(ve,{children:[l(ko,{initialValue:S,onChange:k}),l(Tn.Divider,{}),l(m2e,{})]})}),children:[l(Ls,{value:S,children:x(Gi,{...g(),children:[l(Vi,{headerGroups:b}),l(Wi,{...v(),children:y.map(A=>(w(A),l(ui,{hover:!0,...A.getRowProps(),children:A.cells.map(T=>l(pi,{...T.getCellProps(),children:T.render("Cell")}))})))})]})}),l(q,{condition:y.length===0,show:l(q,{condition:(S==null?void 0:S.length)>0,show:x(ar,{children:["No contexts found matching “",S,"”"]}),elseShow:l(ar,{children:"No contexts available. Get started by adding one."})})}),l(vr,{open:e,onClick:h,onClose:()=>{r(void 0),t(!1)},title:"Really delete context field"})]})},O3=()=>{const e=nr("featureId"),{features:t=[]}=O2(),[n,r]=m.useState();return m.useEffect(()=>{const o=t.find(i=>i.name===e);r(o)},[t,e]),n!=null&&n.project?l($c,{to:Bv(n.project,n.name),replace:!0}):null},y2e=Xr("form")({display:"flex",flexDirection:"column",height:"100%",gap:"1rem"}),Vs=Xr("section")({marginBottom:"36px"}),b2e=Xr(Vs)(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(2)})),Xv=Xr("p")({marginBottom:"0.5rem"}),w2e=Xr("div")({maxWidth:"600px"}),S2e=Xr("div")({marginTop:"auto",display:"flex",justifyContent:"flex-end"}),x2e=Xr("section")(({theme:e})=>({paddingTop:e.spacing(2),"& > *":{marginRight:e.spacing(1)}})),$3=Xr(pn)({width:"100%",marginBottom:"1rem",marginTop:"0px"}),C2e=Xr(Mr)({paddingBottom:"16px"}),WT=Xr("h4")({marginBottom:"8px"}),E2e=Xr("div")({marginTop:"25px"}),T2e=({type:e="text",sensitive:t=!1},n)=>t&&n===k2e||e==="textfield"?"text":e,k2e="*****",A2e=({definition:e,config:t,parametersErrors:n,setParameterValue:r})=>{const o=t.parameters[e.name]||"",i=T2e(e,o),a=n[e.name];return l(E2e,{children:l(pn,{size:"small",style:{width:"100%"},minRows:e.type==="textfield"?9:0,multiline:e.type==="textfield",type:i,label:x(ve,{children:[e.displayName,e.required?l(se,{component:"span",color:"error",children:"*"}):null]}),name:e.name,placeholder:e.placeholder||"",InputLabelProps:{shrink:!0},value:o,error:!!a,onChange:r(e.name),variant:"outlined",helperText:e.description})})},R2e=({provider:e,config:t,parametersErrors:n,setParameterValue:r,editMode:o})=>e?x(Ce.Fragment,{children:[l(WT,{children:"Parameters"}),o?x("p",{children:['Sensitive parameters will be masked with value "',l("i",{children:"*****"}),`". If you don't change the value they will not be updated when saving.`]}):null,e.parameters.map(i=>l(A2e,{definition:i,parametersErrors:n,config:t,setParameterValue:r},i.name))]}):null,_2e=({url:e,title:t="Install addon",helpText:n="Click this button to install this addon."})=>l(Ce.Fragment,{children:x(Vs,{children:[l(WT,{children:t}),l(Xv,{children:n}),l(Ve,{type:"button",variant:"outlined",component:an,target:"_blank",rel:"noopener noreferrer",to:e,children:"Install"})]})});var Jv={exports:{}};Jv.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",p="[object GeneratorFunction]",f="[object Map]",h="[object Number]",g="[object Object]",v="[object Promise]",b="[object RegExp]",y="[object Set]",w="[object String]",S="[object Symbol]",k="[object WeakMap]",A="[object ArrayBuffer]",T="[object DataView]",R="[object Float32Array]",P="[object Float64Array]",_="[object Int8Array]",O="[object Int16Array]",$="[object Int32Array]",z="[object Uint8Array]",L="[object Uint8ClampedArray]",B="[object Uint16Array]",Y="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,ee=/\w*$/,V=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,j={};j[i]=j[a]=j[A]=j[T]=j[s]=j[c]=j[R]=j[P]=j[_]=j[O]=j[$]=j[f]=j[h]=j[g]=j[b]=j[y]=j[w]=j[S]=j[z]=j[L]=j[B]=j[Y]=!0,j[u]=j[d]=j[k]=!1;var I=typeof ki=="object"&&ki&&ki.Object===Object&&ki,M=typeof self=="object"&&self&&self.Object===Object&&self,J=I||M||Function("return this")(),ae=t&&!t.nodeType&&t,Te=ae&&!0&&e&&!e.nodeType&&e,he=Te&&Te.exports===ae;function Ie(G,ce){return G.set(ce[0],ce[1]),G}function te(G,ce){return G.add(ce),G}function ie(G,ce){for(var _e=-1,dt=G?G.length:0;++_e<dt&&ce(G[_e],_e,G)!==!1;);return G}function le(G,ce){for(var _e=-1,dt=ce.length,Er=G.length;++_e<dt;)G[Er+_e]=ce[_e];return G}function oe(G,ce,_e,dt){var Er=-1,eo=G?G.length:0;for(dt&&eo&&(_e=G[++Er]);++Er<eo;)_e=ce(_e,G[Er],Er,G);return _e}function Ne(G,ce){for(var _e=-1,dt=Array(G);++_e<G;)dt[_e]=ce(_e);return dt}function me(G,ce){return G==null?void 0:G[ce]}function ke(G){var ce=!1;if(G!=null&&typeof G.toString!="function")try{ce=!!(G+"")}catch{}return ce}function pe(G){var ce=-1,_e=Array(G.size);return G.forEach(function(dt,Er){_e[++ce]=[Er,dt]}),_e}function it(G,ce){return function(_e){return G(ce(_e))}}function Le(G){var ce=-1,_e=Array(G.size);return G.forEach(function(dt){_e[++ce]=dt}),_e}var Ge=Array.prototype,st=Function.prototype,Ye=Object.prototype,lt=J["__core-js_shared__"],Lt=function(){var G=/[^.]+$/.exec(lt&&lt.keys&&lt.keys.IE_PROTO||"");return G?"Symbol(src)_1."+G:""}(),Ft=st.toString,be=Ye.hasOwnProperty,Oe=Ye.toString,Qe=RegExp("^"+Ft.call(be).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=he?J.Buffer:void 0,Z=J.Symbol,X=J.Uint8Array,Se=it(Object.getPrototypeOf,Object),Re=Object.create,De=Ye.propertyIsEnumerable,bt=Ge.splice,_t=Object.getOwnPropertySymbols,zt=re?re.isBuffer:void 0,fn=it(Object.keys,Object),Ut=ns(J,"DataView"),Yt=ns(J,"Map"),nn=ns(J,"Promise"),Gn=ns(J,"Set"),hn=ns(J,"WeakMap"),Kt=ns(Object,"create"),lr=os(Ut),zr=os(Yt),Oo=os(nn),Ko=os(Gn),Xo=os(hn),Zr=Z?Z.prototype:void 0,$o=Zr?Zr.valueOf:void 0;function wr(G){var ce=-1,_e=G?G.length:0;for(this.clear();++ce<_e;){var dt=G[ce];this.set(dt[0],dt[1])}}function No(){this.__data__=Kt?Kt(null):{}}function jr(G){return this.has(G)&&delete this.__data__[G]}function Gt(G){var ce=this.__data__;if(Kt){var _e=ce[G];return _e===r?void 0:_e}return be.call(ce,G)?ce[G]:void 0}function sn(G){var ce=this.__data__;return Kt?ce[G]!==void 0:be.call(ce,G)}function or(G,ce){var _e=this.__data__;return _e[G]=Kt&&ce===void 0?r:ce,this}wr.prototype.clear=No,wr.prototype.delete=jr,wr.prototype.get=Gt,wr.prototype.has=sn,wr.prototype.set=or;function Nr(G){var ce=-1,_e=G?G.length:0;for(this.clear();++ce<_e;){var dt=G[ce];this.set(dt[0],dt[1])}}function bo(){this.__data__=[]}function wo(G){var ce=this.__data__,_e=Ll(ce,G);if(_e<0)return!1;var dt=ce.length-1;return _e==dt?ce.pop():bt.call(ce,_e,1),!0}function Qi(G){var ce=this.__data__,_e=Ll(ce,G);return _e<0?void 0:ce[_e][1]}function ye(G){return Ll(this.__data__,G)>-1}function ue(G,ce){var _e=this.__data__,dt=Ll(_e,G);return dt<0?_e.push([G,ce]):_e[dt][1]=ce,this}Nr.prototype.clear=bo,Nr.prototype.delete=wo,Nr.prototype.get=Qi,Nr.prototype.has=ye,Nr.prototype.set=ue;function Ke(G){var ce=-1,_e=G?G.length:0;for(this.clear();++ce<_e;){var dt=G[ce];this.set(dt[0],dt[1])}}function ft(){this.__data__={hash:new wr,map:new(Yt||Nr),string:new wr}}function Dt(G){return Dl(this,G).delete(G)}function Bn(G){return Dl(this,G).get(G)}function zn(G){return Dl(this,G).has(G)}function Ct(G,ce){return Dl(this,G).set(G,ce),this}Ke.prototype.clear=ft,Ke.prototype.delete=Dt,Ke.prototype.get=Bn,Ke.prototype.has=zn,Ke.prototype.set=Ct;function jn(G){this.__data__=new Nr(G)}function E0(){this.__data__=new Nr}function T0(G){return this.__data__.delete(G)}function k0(G){return this.__data__.get(G)}function hm(G){return this.__data__.has(G)}function mm(G,ce){var _e=this.__data__;if(_e instanceof Nr){var dt=_e.__data__;if(!Yt||dt.length<n-1)return dt.push([G,ce]),this;_e=this.__data__=new Ke(dt)}return _e.set(G,ce),this}jn.prototype.clear=E0,jn.prototype.delete=T0,jn.prototype.get=k0,jn.prototype.has=hm,jn.prototype.set=mm;function A0(G,ce){var _e=Ml(G)||Y0(G)?Ne(G.length,String):[],dt=_e.length,Er=!!dt;for(var eo in G)(ce||be.call(G,eo))&&!(Er&&(eo=="length"||H0(eo,dt)))&&_e.push(eo);return _e}function gm(G,ce,_e){var dt=G[ce];(!(be.call(G,ce)&&Sm(dt,_e))||_e===void 0&&!(ce in G))&&(G[ce]=_e)}function Ll(G,ce){for(var _e=G.length;_e--;)if(Sm(G[_e][0],ce))return _e;return-1}function vm(G,ce){return G&&bm(ce,Fl(ce),G)}function Xd(G,ce,_e,dt,Er,eo,so){var E;if(dt&&(E=eo?dt(G,Er,eo,so):dt(G)),E!==void 0)return E;if(!Bl(G))return G;var D=Ml(G);if(D){if(E=U0(G),!ce)return F0(G,E)}else{var F=rs(G),U=F==d||F==p;if(tp(G))return $0(G,ce);if(F==g||F==i||U&&!eo){if(ke(G))return eo?G:{};if(E=W0(U?{}:G),!ce)return z0(G,vm(E,G))}else{if(!j[F])return eo?G:{};E=wm(G,F,Xd,ce)}}so||(so=new jn);var Q=so.get(G);if(Q)return Q;if(so.set(G,E),!D)var K=_e?j0(G):Fl(G);return ie(K||G,function(ne,ge){K&&(ge=ne,ne=G[ge]),gm(E,ge,Xd(ne,ce,_e,dt,ge,G,so))}),E}function R0(G){return Bl(G)?Re(G):{}}function _0(G,ce,_e){var dt=ce(G);return Ml(G)?dt:le(dt,_e(G))}function P0(G){return Oe.call(G)}function I0(G){if(!Bl(G)||G0(G))return!1;var ce=qc(G)||ke(G)?Qe:V;return ce.test(os(G))}function O0(G){if(!Zd(G))return fn(G);var ce=[];for(var _e in Object(G))be.call(G,_e)&&_e!="constructor"&&ce.push(_e);return ce}function $0(G,ce){if(ce)return G.slice();var _e=new G.constructor(G.length);return G.copy(_e),_e}function Jd(G){var ce=new G.constructor(G.byteLength);return new X(ce).set(new X(G)),ce}function N0(G,ce){var _e=ce?Jd(G.buffer):G.buffer;return new G.constructor(_e,G.byteOffset,G.byteLength)}function L0(G,ce,_e){var dt=ce?_e(pe(G),!0):pe(G);return oe(dt,Ie,new G.constructor)}function D0(G){var ce=new G.constructor(G.source,ee.exec(G));return ce.lastIndex=G.lastIndex,ce}function ym(G,ce,_e){var dt=ce?_e(Le(G),!0):Le(G);return oe(dt,te,new G.constructor)}function M0(G){return $o?Object($o.call(G)):{}}function B0(G,ce){var _e=ce?Jd(G.buffer):G.buffer;return new G.constructor(_e,G.byteOffset,G.length)}function F0(G,ce){var _e=-1,dt=G.length;for(ce||(ce=Array(dt));++_e<dt;)ce[_e]=G[_e];return ce}function bm(G,ce,_e,dt){_e||(_e={});for(var Er=-1,eo=ce.length;++Er<eo;){var so=ce[Er],E=dt?dt(_e[so],G[so],so,_e,G):void 0;gm(_e,so,E===void 0?G[so]:E)}return _e}function z0(G,ce){return bm(G,Qd(G),ce)}function j0(G){return _0(G,Fl,Qd)}function Dl(G,ce){var _e=G.__data__;return V0(ce)?_e[typeof ce=="string"?"string":"hash"]:_e.map}function ns(G,ce){var _e=me(G,ce);return I0(_e)?_e:void 0}var Qd=_t?it(_t,Object):X0,rs=P0;(Ut&&rs(new Ut(new ArrayBuffer(1)))!=T||Yt&&rs(new Yt)!=f||nn&&rs(nn.resolve())!=v||Gn&&rs(new Gn)!=y||hn&&rs(new hn)!=k)&&(rs=function(G){var ce=Oe.call(G),_e=ce==g?G.constructor:void 0,dt=_e?os(_e):void 0;if(dt)switch(dt){case lr:return T;case zr:return f;case Oo:return v;case Ko:return y;case Xo:return k}return ce});function U0(G){var ce=G.length,_e=G.constructor(ce);return ce&&typeof G[0]=="string"&&be.call(G,"index")&&(_e.index=G.index,_e.input=G.input),_e}function W0(G){return typeof G.constructor=="function"&&!Zd(G)?R0(Se(G)):{}}function wm(G,ce,_e,dt){var Er=G.constructor;switch(ce){case A:return Jd(G);case s:case c:return new Er(+G);case T:return N0(G,dt);case R:case P:case _:case O:case $:case z:case L:case B:case Y:return B0(G,dt);case f:return L0(G,dt,_e);case h:case w:return new Er(G);case b:return D0(G);case y:return ym(G,dt,_e);case S:return M0(G)}}function H0(G,ce){return ce=ce??o,!!ce&&(typeof G=="number"||W.test(G))&&G>-1&&G%1==0&&G<ce}function V0(G){var ce=typeof G;return ce=="string"||ce=="number"||ce=="symbol"||ce=="boolean"?G!=="__proto__":G===null}function G0(G){return!!Lt&&Lt in G}function Zd(G){var ce=G&&G.constructor,_e=typeof ce=="function"&&ce.prototype||Ye;return G===_e}function os(G){if(G!=null){try{return Ft.call(G)}catch{}try{return G+""}catch{}}return""}function q0(G){return Xd(G,!0,!0)}function Sm(G,ce){return G===ce||G!==G&&ce!==ce}function Y0(G){return Gc(G)&&be.call(G,"callee")&&(!De.call(G,"callee")||Oe.call(G)==i)}var Ml=Array.isArray;function ep(G){return G!=null&&xm(G.length)&&!qc(G)}function Gc(G){return K0(G)&&ep(G)}var tp=zt||J0;function qc(G){var ce=Bl(G)?Oe.call(G):"";return ce==d||ce==p}function xm(G){return typeof G=="number"&&G>-1&&G%1==0&&G<=o}function Bl(G){var ce=typeof G;return!!G&&(ce=="object"||ce=="function")}function K0(G){return!!G&&typeof G=="object"}function Fl(G){return ep(G)?A0(G):O0(G)}function X0(){return[]}function J0(){return!1}e.exports=q0})(Jv,Jv.exports);var P2e=Jv.exports;const rm=Yr(P2e);var HT={},I2e=An;Object.defineProperty(HT,"__esModule",{value:!0});var n0=HT.default=void 0,O2e=I2e(Rn()),$2e=_n,N2e=(0,O2e.default)((0,$2e.jsx)("path",{d:"M19 5v14H5V5h14m0-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-2z"}),"CheckBoxOutlineBlank");n0=HT.default=N2e;var VT={},L2e=An;Object.defineProperty(VT,"__esModule",{value:!0});var r0=VT.default=void 0,D2e=L2e(Rn()),M2e=_n,B2e=(0,D2e.default)((0,M2e.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox");r0=VT.default=B2e;const F2e=C(Gr)(({theme:e})=>({cursor:"pointer",fontSize:e.fontSizes.bodySize})),GT=({isAllSelected:e,onClick:t})=>l($e,{sx:{ml:3.5,my:.5},children:l(F2e,{onClick:t,component:"button",underline:"hover",children:e?"Deselect all":"Select all"})}),yg="*",z2e=Xr(pa)(()=>({marginRight:"0.2em"})),j2e=({...e})=>l(Cr,{elevation:8,...e}),ww=({options:e,selectedItems:t,onChange:n,error:r,onFocus:o,entityName:i,selectAllEnabled:a=!0,description:s,required:c})=>{const[u,d]=m.useState(t.includes(yg)),p=S=>l(pn,{...S,error:!!r,helperText:r,variant:"outlined",label:`${de(i)}s`,placeholder:`Select ${i}s to filter by`,onFocus:o,"data-testid":`select-${i}-input`}),f=t.length>0&&t.length===e.length&&t[0]!==yg,h=(S,k)=>{k?(d(!0),n([yg])):(d(!1),n(t.includes(yg)?[]:t))},g=()=>{const S=f?[]:e.map(({value:k})=>k);n(S)},v=(S,k,{selected:A})=>x("li",{...S,children:[l(z2e,{icon:l(n0,{fontSize:"small"}),checkedIcon:l(r0,{fontSize:"small"}),checked:A}),k.label]}),b=({key:S,children:k})=>x(m.Fragment,{children:[l(q,{condition:e.length>2&&a,show:l(GT,{isAllSelected:f,onClick:g})}),k]},S),y=()=>l(C2e,{"data-testid":`select-all-${i}s`,control:l(pa,{checked:u,onChange:h}),label:`ALL current and future ${i}s`}),w=()=>x(Xv,{children:["Selecting ",i,"(s) here will filter events so that your addon will only receive events that are tagged with one of your"," ",i,"s."]});return x(Ce.Fragment,{children:[x(WT,{children:[de(i),"s",c?l(se,{component:"span",color:"error",children:"*"}):null]}),l(q,{condition:s!==void 0,show:l(Xv,{children:s})}),l(q,{condition:a,show:l(w,{})}),l(q,{condition:a,show:l(y,{})}),l(Ad,{sx:{mb:8},disabled:u,multiple:!0,limitTags:2,options:e,disableCloseOnSelect:!0,getOptionLabel:({label:S})=>S,fullWidth:!0,groupBy:()=>"Select/Deselect all",renderGroup:b,PaperComponent:j2e,renderOption:v,renderInput:p,value:u?e:e.filter(S=>t.includes(S.value)),onChange:(S,k)=>{const A=k.map(({value:T})=>T);n(A)}})]})},RM=({editMode:e,provider:t,addon:n,fetch:r})=>{const{createAddon:o,updateAddon:i}=j9(),{setToastData:a,setToastApiError:s}=$t(),c=pt(),u=kd(),{projects:d}=ma(),p=d.map(j=>({value:j.id,label:j.name})),{environments:f}=$d(),h=f.map(j=>({value:j.name,label:j.name})),g=t==null?void 0:t.events.map(j=>({value:j,label:j})),{uiConfig:v}=It(),[b,y]=m.useState(n),[w,S]=m.useState({containsErrors:!1,parameters:{}}),k=e?"Update":"Create";let A=`${v.unleashUrl}/api/admin/addons${e?`/${b.id}`:""}`;const T=()=>`curl --location --request ${e?"PUT":"POST"} '${A}' \\
329
+ --header 'Authorization: INSERT_API_KEY' \\
330
+ --header 'Content-Type: application/json' \\
331
+ --data-raw '${JSON.stringify(b,void 0,2)}'`;m.useEffect(()=>{t||r()},[r,t]),m.useEffect(()=>{y({...n})},[n.description,n.provider]),m.useEffect(()=>{t&&!b.provider&&y({...n,provider:t.name})},[t,n,b.provider]);const R=j=>I=>{I.preventDefault(),y({...b,[j]:I.target.value})},P=j=>{j.preventDefault(),y(({enabled:I})=>({...b,enabled:!I}))},_=j=>I=>{I.preventDefault();const M=As(I.target.value)===""?void 0:I.target.value;y(Ri(J=>{J.parameters[j]=M}))},O=j=>{y(Ri(I=>{I.events=j})),S(I=>({...I,events:void 0}))},$=j=>{y(Ri(I=>{I.projects=j})),S(I=>({...I,projects:void 0}))},z=j=>{y(Ri(I=>{I.environments=j})),S(I=>({...I,environments:void 0}))},L=()=>{c(yo)},B=async j=>{if(j.preventDefault(),!t)return;const I=rm(w);if(I.parameters={},I.containsErrors=!1,b.events.length===0&&(I.events="You must listen to at least one event",I.containsErrors=!0),t.parameters.forEach(M=>{const J=As(b.parameters[M.name]);M.required&&!J&&(I.parameters[M.name]="This field is required",I.containsErrors=!0)}),I.containsErrors){S(I);return}try{e?(await i(b),c("/addons"),a({type:"success",title:"Addon updated successfully"})):(await o(b),c("/addons"),a({type:"success",confetti:!0,title:"Addon created successfully"}))}catch(M){const J=gt(M);s(J),S({parameters:{},general:J,containsErrors:!0})}},{name:Y,description:H,documentationUrl:ee="https://unleash.github.io/docs/addons",installation:V,alerts:W}=t||{};return l(Fr,{title:`${k} ${Y} addon`,description:H||"",documentationLink:ee,documentationLinkLabel:"Addon documentation",formatApiCode:T,children:x(y2e,{onSubmit:B,children:[x(w2e,{children:[l(b2e,{children:W==null?void 0:W.map(({type:j,text:I})=>l(Vt,{severity:j,children:I}))}),l(q,{condition:!!V,show:()=>l(_2e,{url:V.url,title:V.title,helpText:V.helpText})}),x(Vs,{children:[l($3,{size:"small",label:"Provider",name:"provider",value:b.provider,disabled:!0,hidden:!0,variant:"outlined"}),l(Mr,{control:l(fa,{checked:b.enabled,onClick:P}),label:b.enabled?"Enabled":"Disabled"})]}),x(Vs,{children:[l(Xv,{children:"What is your addon description?"}),l($3,{size:"small",style:{width:"80%"},minRows:4,multiline:!0,label:"Description",name:"description",placeholder:"",value:b.description,error:!!w.description,helperText:w.description,onChange:R("description"),variant:"outlined"})]}),l(Vs,{children:l(ww,{options:g||[],selectedItems:b.events,onChange:O,entityName:"event",selectAllEnabled:!1,error:w.events,description:"Select what events you want your addon to be notified about.",required:!0})}),l(Vs,{children:l(ww,{options:p,selectedItems:b.projects||[],onChange:$,entityName:"project",selectAllEnabled:!0})}),l(Vs,{children:l(ww,{options:h,selectedItems:b.environments||[],onChange:z,entityName:"environment",selectAllEnabled:!0})}),l(Vs,{children:l(R2e,{provider:t,config:b,parametersErrors:w.parameters,editMode:e,setParameterValue:_})})]}),l(To,{}),l(S2e,{children:x(x2e,{theme:u,children:[l(Po,{type:"submit",color:"primary",variant:"contained",permission:e?bx:v9,children:k}),l(Ve,{type:"button",onClick:L,children:"Cancel"})]})})]})})},_M={provider:"",description:"",enabled:!0,parameters:{},events:[],projects:[],environments:[]},U2e=()=>{const e=nr("providerId"),{providers:t,refetchAddons:n}=B1(),r=!1,o=t.find(a=>a.name===e),i={...rm(_M),provider:o?o.name:""};return l(RM,{editMode:r,provider:o,fetch:n,addon:i})},W2e=()=>{const e=nr("addonId"),{providers:t,addons:n,refetchAddons:r}=B1(),o=!0,i=n.find(s=>s.id===Number(e))||{...rm(_M)},a=i?t.find(s=>s.name===i.provider):void 0;return l(RM,{editMode:o,provider:a,fetch:r,addon:i})},H2e=C(Cr)(({theme:e})=>({overflow:"visible",borderRadius:e.shape.borderRadiusLarge})),V2e=C("div")(({theme:e})=>({padding:e.spacing(3,4),borderBottom:`1px solid ${e.palette.divider}`})),G2e=C("h1")(({theme:e})=>({fontSize:e.fontSizes.mainHeader,fontWeight:e.fontWeight.medium})),q2e=C("section")(({theme:e})=>({padding:e.spacing(4)})),Y2e=C("p")(({theme:e})=>({marginTop:0,marginBottom:e.spacing(4)})),K2e=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",marginBottom:e.spacing(3),maxWidth:e.spacing(50)})),X2e=C(Mr)(({theme:e})=>({marginTop:e.spacing(2),marginBottom:e.spacing(4)})),J2e=()=>{const[e,t]=m.useState(!0),[n,r]=m.useState(""),[o,i]=m.useState(),[a,s]=m.useState(),{cloneFeatureToggle:c,validateFeatureToggleName:u}=zd(),d=nr("featureId"),p=nr("projectId"),{feature:f}=Rs(p,d),h=pt(),{isChangeRequestConfiguredInAnyEnv:g}=Bc(p),v=S=>{const k=As(S.target.value);s(k)},b=()=>{t(S=>!S)},y=async()=>{try{return await u(a),i(void 0),!0}catch(S){i(gt(S))}return!1},w=async S=>{if(S.preventDefault(),!!await y())try{await c(p,d,{name:a,replaceGroupId:e}),h(Bv(p,a))}catch(A){r(gt(A))}};return!f||!f.name?l("span",{children:"Toggle not found"}):x(H2e,{className:Bu.fullwidth,children:[l(V2e,{children:x(G2e,{children:["Copy ",d]})}),l(q,{condition:!!n,show:l(Vt,{severity:"error",children:n})}),x(q2e,{children:[x(Y2e,{children:["You are about to create a new feature toggle by cloning the configuration of feature toggle ",l(an,{to:Bv(p,d),children:d}),". You must give the new feature toggle a unique name before you can proceed."]}),x(K2e,{onSubmit:w,children:[l(pn,{label:"Name",name:"name",value:a||"",onBlur:y,onChange:v,error:o!==void 0,helperText:o,variant:"outlined",size:"small","aria-required":!0,autoFocus:!0}),l(X2e,{control:l(fa,{value:e,checked:e,onChange:b}),label:"Replace groupId"}),x(Ve,{type:"submit",color:"primary",variant:"contained",disabled:g(),children:[l(ML,{}),"    Create from copy"]})]})]})]})},N3="ADMIN",Q2e="CREATE_ADDON",Z2e="UPDATE_ADDON",eTe="DELETE_ADDON",tTe="UPDATE_CLIENT_API_TOKEN",nTe="CREATE_CLIENT_API_TOKEN",rTe="DELETE_CLIENT_API_TOKEN",oTe="READ_CLIENT_API_TOKEN",iTe="UPDATE_FRONTEND_API_TOKEN",aTe="CREATE_FRONTEND_API_TOKEN",sTe="DELETE_FRONTEND_API_TOKEN",lTe="READ_FRONTEND_API_TOKEN",cTe="UPDATE_APPLICATION",uTe="CREATE_CONTEXT_FIELD",dTe="UPDATE_CONTEXT_FIELD",pTe="DELETE_CONTEXT_FIELD",fTe="CREATE_PROJECT",hTe="READ_ROLE",mTe="CREATE_SEGMENT",gTe="UPDATE_SEGMENT",vTe="DELETE_SEGMENT",yTe="CREATE_STRATEGY",bTe="UPDATE_STRATEGY",wTe="DELETE_STRATEGY",STe="UPDATE_TAG_TYPE",xTe="DELETE_TAG_TYPE",h8e="UPDATE_PROJECT",m8e="READ_PROJECT_API_TOKEN",g8e="CREATE_PROJECT_API_TOKEN",v8e="DELETE_PROJECT_API_TOKEN",y8e="UPDATE_FEATURE_STRATEGY",b8e="DELETE_FEATURE_STRATEGY",CTe=[{label:"Addon",permissions:[Q2e,Z2e,eTe]},{label:"API token",permissions:[tTe,nTe,rTe,oTe,iTe,aTe,sTe,lTe]},{label:"Application",permissions:[cTe]},{label:"Context field",permissions:[uTe,dTe,pTe]},{label:"Project",permissions:[fTe]},{label:"Role",permissions:[hTe]},{label:"Segment",permissions:[mTe,gTe,vTe]},{label:"Strategy",permissions:[yTe,bTe,wTe]},{label:"Tag type",permissions:[STe,xTe]}],ETe=C("ul")(({theme:e})=>({paddingInlineStart:e.spacing(2)})),PM=({permissions:e,children:t})=>{const{hasAccess:n}=m.useContext(_o),r=Array.isArray(e)?e:[e];return r.includes(N3)||r.push(N3),n(r)?t:r.length===1?x(Vt,{severity:"error",children:["You need the ",l("strong",{children:r[0]})," permission to access this section."]}):x(Vt,{severity:"error",children:["You need one of the following permissions to access this section:",l(ETe,{children:r.sort().map(o=>l("li",{children:l("strong",{children:o})},o))})]})},TTe=C("li")(({theme:e})=>({padding:e.spacing(4),backgroundColor:e.palette.neutral.light,borderRadius:e.shape.borderRadiusLarge,fontSize:e.fontSizes.smallBody,"& code":{wordWrap:"break-word",whiteSpace:"pre-wrap",fontFamily:"monospace",lineHeight:"100%"}})),kTe=({entry:e})=>{const t=JSON.parse(JSON.stringify(e));delete t.description,delete t.name,delete t.diffs;const n=JSON.stringify(t,null,2);return l(TTe,{children:l("div",{children:l("code",{children:n})})})},jl=C("dt")(({theme:e})=>({color:e.palette.text.secondary})),ATe=C("strong")(({theme:e})=>({fontWeight:"inherit",color:e.palette.text.secondary})),RTe=C("li")(({theme:e})=>({display:"grid",backgroundColor:e.palette.neutral.light,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(.5),[e.breakpoints.up("md")]:{gridTemplateColumns:"2fr 3fr"},"& dl":{display:"grid",gridTemplateColumns:"auto 1fr",alignContent:"start",gap:e.spacing(1),padding:e.spacing(2),[e.breakpoints.up("md")]:{padding:e.spacing(4)}},a:{color:e.palette.links}})),_Te=C("div")(({theme:e})=>({backgroundColor:e.palette.background.paper,overflowX:"auto",padding:e.spacing(2),borderBottomLeftRadius:e.shape.borderRadiusLarge,borderBottomRightRadius:e.shape.borderRadiusLarge,[e.breakpoints.up("md")]:{padding:e.spacing(4),borderRadius:0,borderTopRightRadius:e.shape.borderRadiusLarge,borderBottomRightRadius:e.shape.borderRadiusLarge},"& code":{wordWrap:"break-word",whiteSpace:"pre-wrap",fontFamily:"monospace",lineHeight:1.5,fontSize:e.fontSizes.smallBody}})),PTe=({entry:e})=>{const{locationSettings:t}=es(),n=_1(e.createdAt,t.locale);return x(RTe,{children:[x("dl",{children:[l(jl,{children:"Event id:"}),l("dd",{children:e.id}),l(jl,{children:"Changed at:"}),l("dd",{children:n}),l(jl,{children:"Event:"}),l("dd",{children:e.type}),l(jl,{children:"Changed by:"}),l("dd",{title:e.createdBy,children:e.createdBy}),l(q,{condition:!!e.project,show:x(ve,{children:[l(jl,{children:"Project:"}),l("dd",{children:l(an,{to:`/projects/${e.project}`,children:e.project})})]})}),l(q,{condition:!!e.featureName,show:x(ve,{children:[l(jl,{children:"Feature:"}),l("dd",{children:l(an,{to:`/projects/${e.project}/features/${e.featureName}`,children:e.featureName})})]})}),l(q,{condition:!!e.environment,show:x(ve,{children:[l(jl,{children:"Environment:"}),l("dd",{children:e.environment})]})})]}),l(q,{condition:e.data||e.preData,show:x(_Te,{children:[l(ATe,{children:"Changes:"}),l(t0,{entry:e})]})})]})},ITe=()=>{const[e,t]=$Te();return{eventSettings:e,setEventSettings:t}},OTe=()=>({showData:!1}),$Te=$2(`${ri}:useEventSettings:v1`,OTe()),L3=Rt("api/admin/events/search"),NTe=(e,t,n)=>{const[r,o]=m.useState(),[i,a]=m.useState(0),[s,c]=m.useState(0),u=m.useMemo(()=>({project:e,feature:t,query:n,limit:50}),[e,t,n]),{data:d,error:p,isValidating:f}=Pn([L3,u,s],()=>LTe(L3,{...u,offset:s}));m.useEffect(()=>{c(0),a(0),o(void 0)},[u]),m.useEffect(()=>{d&&(o(g=>[...(g==null?void 0:g.slice(0,s))||[],...d.events]),d.totalEvents&&a(d.totalEvents))},[d]);const h=m.useCallback(()=>{r&&!f&&c(r.length)},[r,f]);return{events:r,loading:!p&&!d,fetchNextPage:h,totalEvents:i,error:p}},LTe=(e,t)=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(bn("Event history")).then(n=>n.json()),DTe=e=>{const t=m.useRef(null);return m.useEffect(()=>{if(t.current){const n=o=>{o[0].isIntersecting&&e()},r=new IntersectionObserver(n);return r.observe(t.current),()=>r.disconnect()}},[e]),t},MTe=Xr("ul")(({theme:e})=>({listStyleType:"none",margin:0,padding:0,display:"grid",gap:e.spacing(2)})),BTe=({title:e,project:t,feature:n,displayInline:r})=>{const[o,i]=m.useState(""),{events:a,totalEvents:s,fetchNextPage:c}=NTe(t,n,o),u=DTe(c),{eventSettings:d,setEventSettings:p}=ITe(),f=tr(ua.breakpoints.down("md")),[h,g]=m.useState();m.useEffect(()=>a&&g(a),[a]);const v=()=>{p(A=>({showData:!A.showData}))},b=l(ko,{onChange:i,debounceTime:500}),y=l(Mr,{label:"Full events",control:l(fa,{checked:d.showData,onChange:v,color:"primary"})});let k=`${(a==null?void 0:a.length)||0} of ${s||0}`;return x(yr,{disablePadding:r,disableBorder:r,header:l(Tn,{title:`${e} (${k})`,actions:x(ve,{children:[y,!f&&b]}),children:f&&b}),children:[r&&l($e,{sx:{mt:4}}),l(q,{condition:!!(h&&h.length===0),show:()=>l("p",{children:"No events found."})}),l(q,{condition:!!(h&&h.length>0),show:()=>l(MTe,{children:h==null?void 0:h.map(A=>l(q,{condition:d.showData,show:()=>l(kTe,{entry:A}),elseShow:()=>l(PTe,{entry:A})},A.id))})}),l("div",{ref:u})]})},FTe=()=>l(PM,{permissions:yi,children:l(BTe,{title:"Event log"})}),IM=(e="",t="",n=[])=>{const[r,o]=m.useState(e),[i,a]=m.useState(t),[s,c]=m.useState(n),[u,d]=m.useState({}),{strategies:p}=Ld();return m.useEffect(()=>{o(e)},[e]),m.useEffect(()=>{a(t)},[t]),m.useEffect(()=>{c(n)},[JSON.stringify(n)]),{strategyName:r,strategyDesc:i,params:s,setStrategyName:o,setStrategyDesc:a,setParams:c,getStrategyPayload:()=>({name:r,description:i,parameters:s}),validateStrategyName:()=>r.length===0?(d(b=>({...b,name:"Name can not be empty."})),!1):p.some(b=>b.name===r)?(d(b=>({...b,name:"A strategy name with that name already exist"})),!1):!0,validateParams:()=>{let b=!0;for(const[y,w]of Object.entries(s))s.forEach((S,k)=>{S.name.length===0&&(d(A=>({...A,[`paramName${k}`]:"Name can not be empty"})),b=!1)});return b},setErrors:d,clearErrors:()=>{d({})},errors:u}},zTe=[{key:"string",label:"string"},{key:"percentage",label:"percentage"},{key:"list",label:"list"},{key:"number",label:"number"},{key:"boolean",label:"boolean"}],jTe=C("div")(({theme:e})=>({maxWidth:"400px",margin:e.spacing(2,0)})),UTe=C(To)(({theme:e})=>({borderStyle:"dashed",margin:e.spacing(2,0,3,0),borderColor:e.palette.neutral.border})),WTe=C("p")(({theme:e})=>({minWidth:"365px",width:"100%",marginBottom:e.spacing(2)})),HTe=C("div")(({theme:e})=>({display:"flex",alignItems:"center",marginBottom:e.spacing(2)})),VTe=C(rr)(({theme:e})=>({minWidth:"365px",width:"100%"})),GTe=C(Nd)(({theme:e})=>({minWidth:"365px",width:"100%",marginBottom:e.spacing(2)})),qTe=C(rr)(({theme:e})=>({minWidth:"365px",marginBottom:e.spacing(2)})),YTe=C(Mr)(({theme:e})=>({marginTop:e.spacing(-1)})),KTe=({set:e,input:t,index:n,params:r,setParams:o,errors:i})=>{const a=s=>{e({type:s})};return x(jTe,{children:[l(UTe,{}),l(q,{condition:n===0,show:x(WTe,{children:["Parameters let you provide arguments to your strategy that it can access for evaluation. Read more in the"," ",l(Gr,{href:"https://docs.getunleash.io/reference/custom-activation-strategies#parameter-types",target:"_blank",rel:"noreferrer",children:"parameter types documentation"}),"."]})}),x(HTe,{children:[l(VTe,{autoFocus:!0,label:`Parameter name ${n+1}*`,onChange:s=>e({name:s.target.value}),value:t.name,error:!!(i!=null&&i[`paramName${n}`]),errorText:i==null?void 0:i[`paramName${n}`]}),l(xt,{title:"Remove parameter",arrow:!0,children:l(jt,{onClick:()=>{o(r.filter((s,c)=>c!==n))},size:"large",children:l(vo,{})})})]}),l(GTe,{label:"Type*",name:"type",options:zTe,value:t.type,onChange:a,id:`prop-type-${n}-select`}),l(qTe,{rows:2,multiline:!0,label:`Parameter name ${n+1} description`,onChange:({target:s})=>e({description:s.value}),value:t.description}),l(YTe,{control:l(pa,{checked:!!t.required,onChange:()=>e({required:!t.required})}),label:"Required"})]})},XTe=({input:e=[],updateParameter:t,setParams:n,errors:r})=>l("div",{style:{marginTop:"0.5rem"},children:e.map((o,i)=>l(KTe,{params:e,set:a=>t(i,a),index:i,input:e[i],setParams:n,errors:r},i))}),JTe=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%"})),QTe=C("div")(({theme:e})=>({maxWidth:400})),D3=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),M3=C(rr)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),ZTe=C(Ve)(({theme:e})=>({color:e.palette.primary.dark})),eke=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end"})),tke=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),OM=({children:e,handleSubmit:t,handleCancel:n,strategyName:r,strategyDesc:o,params:i,setParams:a,setStrategyName:s,validateStrategyName:c,setStrategyDesc:u,errors:d,mode:p,clearErrors:f})=>{const h=(v,b)=>{let y={...i[v]};i[v]=Object.assign({},y,b),a(w=>[...w])},g=()=>{a(v=>[...v,{name:"",type:"string",description:"",required:!1}])};return x(JTe,{onSubmit:t,children:[x(QTe,{children:[l(D3,{children:"What would you like to call your strategy?"}),l(M3,{disabled:p==="Edit",autoFocus:!0,label:"Strategy name*",value:r,onChange:v=>s(As(v.target.value)),error:!!d.name,errorText:d.name,onFocus:f,onBlur:c}),l(D3,{children:"What is your strategy description?"}),l(M3,{label:"Strategy description",value:o,onChange:v=>u(v.target.value),rows:2,multiline:!0}),l(XTe,{input:i,updateParameter:h,setParams:a,errors:d}),l(ZTe,{onClick:v=>{v.preventDefault(),g()},variant:"outlined",color:"secondary",startIcon:l(ha,{}),children:"Add parameter"})]}),x(eke,{children:[e,l(tke,{type:"button",onClick:n,children:"Cancel"})]})]})},nke=()=>{const{setToastData:e,setToastApiError:t}=$t(),{uiConfig:n}=It(),r=pt(),{strategyName:o,strategyDesc:i,params:a,setParams:s,setStrategyName:c,setStrategyDesc:u,getStrategyPayload:d,validateStrategyName:p,validateParams:f,clearErrors:h,setErrors:g,errors:v}=IM(),{createStrategy:b,loading:y}=Q2(),{refetchStrategies:w}=Ld();return x(Fr,{loading:y,title:"Create strategy type",description:`The strategy type and the parameters will be selectable when adding an activation strategy to a toggle in the environments.
332
+ The parameter defines the type of activation strategy. E.g. you can create a type 'Teams' and add a parameter 'List'. Then it's easy to add team names to the activation strategy`,documentationLink:"https://docs.getunleash.io/reference/custom-activation-strategies",documentationLinkLabel:"Custom strategies documentation",formatApiCode:()=>`curl --location --request POST '${n.unleashUrl}/api/admin/strategies' \\
333
+ --header 'Authorization: INSERT_API_KEY' \\
334
+ --header 'Content-Type: application/json' \\
335
+ --data-raw '${JSON.stringify(d(),void 0,2)}'`,children:[l(F9,{alert:!0}),l(OM,{errors:v,handleSubmit:async T=>{if(h(),T.preventDefault(),p()&&f()){const P=d();try{await b(P),w(),r(`/strategies/${o}`),e({title:"Strategy created",text:"Successfully created strategy",confetti:!0,type:"success"})}catch(_){t(gt(_))}}},handleCancel:()=>{r(yo)},strategyName:o,setStrategyName:c,validateStrategyName:p,strategyDesc:i,setStrategyDesc:u,params:a,setParams:s,mode:"Create",setErrors:g,clearErrors:h,children:l(Bd,{name:"strategy",permission:Fv,children:"Create strategy"})})]})},rke=()=>{const{setToastData:e,setToastApiError:t}=$t(),{uiConfig:n}=It(),r=pt(),o=nr("name"),{strategyDefinition:i}=DT(o),{strategyName:a,strategyDesc:s,params:c,setParams:u,setStrategyName:d,setStrategyDesc:p,getStrategyPayload:f,validateParams:h,clearErrors:g,setErrors:v,errors:b}=IM(i==null?void 0:i.name,i==null?void 0:i.description,i==null?void 0:i.parameters),{updateStrategy:y,loading:w}=Q2(),{refetchStrategies:S}=Ld();return l(Fr,{loading:w,title:"Edit strategy type",description:`The strategy type and the parameters will be selectable when adding an activation strategy to a toggle in the environments.
336
+ The parameter defines the type of activation strategy. E.g. you can create a type 'Teams' and add a parameter 'List'. Then it's easy to add team names to the activation strategy`,documentationLink:"https://docs.getunleash.io/reference/custom-activation-strategies",documentationLinkLabel:"Custom strategies documentation",formatApiCode:()=>`curl --location --request PUT '${n.unleashUrl}/api/admin/strategies/${o}' \\
337
+ --header 'Authorization: INSERT_API_KEY' \\
338
+ --header 'Content-Type: application/json' \\
339
+ --data-raw '${JSON.stringify(f(),void 0,2)}'`,children:l(OM,{errors:b,handleSubmit:async R=>{if(g(),R.preventDefault(),h()){const P=f();try{await y(P),r(`/strategies/${a}`),e({type:"success",title:"Success",text:"Successfully updated strategy"}),S()}catch(_){t(gt(_))}}},handleCancel:()=>{r(yo)},strategyName:a,setStrategyName:d,strategyDesc:s,setStrategyDesc:p,params:c,setParams:u,mode:"Edit",setErrors:v,clearErrors:g,children:l(zc,{permission:dh})})})},oke=()=>{const{makeRequest:e,createRequest:t}=Vn({propagateErrors:!0});return{setSplashSeen:async r=>{const o=`api/admin/splash/${r}`,i=t(o,{method:"POST"});try{return await e(i.caller,i.id)}catch{console.log("An exception was caught and handled.")}}}},ike=C("section")(({theme:e})=>({backgroundColor:e.palette.primary.light,minHeight:"100vh",padding:e.spacing(2),display:"grid",gap:e.spacing(2),alignItems:"center",alignContent:"center",justifyContent:"center",gridTemplateColumns:"minmax(0,auto)",fontWeight:e.fontWeight.thin})),ake=C("div")(({theme:e})=>({position:"relative",padding:e.spacing(4),borderRadius:e.spacing(1),backgroundColor:e.palette.primary.main,color:e.palette.common.white,[e.breakpoints.up("md")]:{padding:e.spacing(8)}})),ske=C("header")(({theme:e})=>({textAlign:"center"})),lke=C("h1")(({theme:e})=>({fontWeight:"inherit"})),cke=C(jt)(({theme:e})=>({position:"absolute",top:0,right:0,color:"inherit"})),uke=C("p")(({theme:e})=>({maxWidth:e.spacing(64),margin:e.spacing(3,"auto",0,"auto")})),dke=C("div")(({theme:e})=>({margin:e.spacing(4,0),padding:e.spacing(4,0),borderTop:"1px solid",borderBottom:"1px solid",borderTopColor:e.palette.primary.light,borderBottomColor:e.palette.primary.light})),pke=C("ul")(({theme:e})=>({padding:e.spacing(2,0),[e.breakpoints.up("md")]:{padding:e.spacing(2,4)},"& li + li":{marginTop:e.spacing(.5)},"& strong":{padding:e.spacing(0,.5),fontSize:e.fontSizes.smallBody,fontWeight:"inherit",backgroundColor:"rgba(0, 0, 0, 0.2)"}})),fke=C("footer")(({theme:e})=>({display:"grid",gap:e.spacing(4),textAlign:"center",justifyItems:"center"})),hke=C("a")(({theme:e})=>({color:"inherit"})),mke=()=>{const e=pt();return x(ike,{children:[x(ake,{children:[x(ske,{children:[l(lke,{children:"New strategy operators"}),l(cke,{onClick:()=>e("/"),size:"large",children:l(OL,{titleAccess:"Close"})}),l(uke,{children:"We've added some new feature strategy constraint operators. Fine-tune your feature targeting like never before."})]}),x(dke,{children:[l("p",{children:"For example:"}),x(pke,{children:[x("li",{children:[l("span",{children:"Toggle features at dates: "}),x("span",{children:[l("strong",{children:"DATE_BEFORE"})," ",l("strong",{children:"DATE_AFTER"})]})]}),x("li",{children:[l("span",{children:"Toggle features for versions: "}),x("span",{children:[l("strong",{children:"SEMVER_EQ"})," ",l("strong",{children:"SEMVER_GT"})," ",l("strong",{children:"SEMVER_LT"})]})]}),x("li",{children:[l("span",{children:"Toggle features for strings: "}),x("span",{children:[l("strong",{children:"STR_CONTAINS"})," ",l("strong",{children:"STR_ENDS_WITH"})," ",l("strong",{children:"STR_STARTS_WITH"})]})]}),x("li",{children:[l("span",{children:"Toggle features for numbers: "}),x("span",{children:[l("strong",{children:"NUM_GT"})," ",l("strong",{children:"NUM_GTE"})," ",l("strong",{children:"NUM_LT"})," ",l("strong",{children:"NUM_LTE"})]})]})]})]}),x(fke,{children:[x("p",{children:[x(hke,{href:"https://docs.getunleash.io/reference/strategy-constraints#numeric-operators",target:"_blank",rel:"noreferrer",children:["Read all about operators in our in-depth"," ",l("strong",{children:"docs"})]}),"."]}),l("p",{children:l(Ve,{sx:t=>({background:"white !important",color:t.palette.primary.main}),variant:"contained",component:an,to:"/",children:"Fine, whatever, I have work to do!"})})]})]}),l(xD,{})]})},$M=()=>{const e=Wh();return{splash:e.data&&"splash"in e.data?e.data.splash:void 0,refetchSplash:e.refetchAuth,loading:e.loading,error:e.error}},gke=["operators"],vke=[],yke=()=>{const e=nr("splashId"),t=wke(e),{refetchSplash:n}=$M(),{setSplashSeen:r}=oke();if(bke("Escape","/"),m.useEffect(()=>{e&&t&&r(e).then(()=>n()).catch(console.warn)},[e,t]),!t)return null;switch(e){case"operators":return l(mke,{});default:return l($c,{to:"/",replace:!0})}},bke=(e,t)=>{const n=pt();m.useEffect(()=>{const r=o=>{o.code===e&&n(t)};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[e,t,n])},wke=e=>gke.includes(e),NM=({onSubmit:e,onCancel:t,modal:n})=>{const{setToastData:r,setToastApiError:o}=$t(),{uiConfig:i}=It(),{contextName:a,contextDesc:s,legalValues:c,stickiness:u,setContextName:d,setContextDesc:p,setLegalValues:f,setStickiness:h,getContextPayload:g,validateContext:v,clearErrors:b,setErrors:y,errors:w}=gM(),{createContext:S,loading:k}=U1(),{refetchUnleashContext:A}=ts();return l(Fr,{loading:k,title:"Create context",description:`Context fields are a basic building block used in Unleash to control roll-out.
340
+ They can be used together with strategy constraints as part of the activation strategy evaluation.`,documentationLink:"https://docs.getunleash.io/reference/unleash-context#custom-context-fields",documentationLinkLabel:"Context fields documentation",formatApiCode:()=>`curl --location --request POST '${i.unleashUrl}/api/admin/context' \\
341
+ --header 'Authorization: INSERT_API_KEY' \\
342
+ --header 'Content-Type: application/json' \\
343
+ --data-raw '${JSON.stringify(g(),void 0,2)}'`,modal:n,children:l(mM,{errors:w,handleSubmit:async P=>{if(P.preventDefault(),P.stopPropagation(),await v()){const O=g();try{await S(O),A(),r({title:"Context created",confetti:!0,type:"success"}),e()}catch($){o(gt($))}}},onCancel:t,contextName:a,setContextName:d,contextDesc:s,setContextDesc:p,legalValues:c,setLegalValues:f,stickiness:u,setStickiness:h,mode:"Create",validateContext:v,setErrors:y,clearErrors:b,children:l(Bd,{name:"context",permission:zv})})})},Ske=()=>{const e=pt();return l(NM,{onSubmit:()=>e("/context"),onCancel:()=>e(yo)})},qT=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0});return{createSegment:async c=>{const u=t(YT(),{method:"POST",body:JSON.stringify(c)});return e(u.caller,u.id)},deleteSegment:async c=>{const u=t(B3(c),{method:"DELETE"});return e(u.caller,u.id)},updateSegment:async(c,u)=>{const d=t(B3(c),{method:"PUT",body:JSON.stringify(u)});return e(d.caller,d.id)},setStrategySegments:async c=>{const u=t(xke(),{method:"POST",body:JSON.stringify(c)});return e(u.caller,u.id)},errors:n,loading:r}},YT=()=>"api/admin/segments",B3=e=>`${YT()}/${e}`,xke=()=>`${YT()}/strategies`,Cke=(e,t)=>{const[n,r]=m.useState(),o=e!==t;return m.useEffect(()=>{r(void 0),e&&o&&Eke(e).then(Tke).then(r).catch(()=>r(void 0))},[e,o]),n},Eke=e=>fetch(Rt("api/admin/segments/validate"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e})}),Tke=async e=>e.ok?void 0:(await e.json()).details[0].message,LM=(e="",t="",n,r=[])=>{const[o,i]=m.useState(e),[a,s]=m.useState(t),[c,u]=m.useState(n),[d,p]=m.useState(r),[f,h]=m.useState({}),g=Cke(o,e);return m.useEffect(()=>{i(e)},[e]),m.useEffect(()=>{s(t)},[t]),m.useEffect(()=>{u(n)},[n]),m.useEffect(()=>{p(r)},[JSON.stringify(r)]),m.useEffect(()=>{h(y=>({...y,name:g}))},[g]),{name:o,setName:i,description:a,setDescription:s,project:c,setProject:u,constraints:d,setConstraints:p,getSegmentPayload:()=>({name:o,description:a,project:c,constraints:d}),clearErrors:()=>{h({})},errors:f}},DM=e=>{const t=Rt(`api/admin/segments/${e}/strategies`),{data:n,error:r}=Mc(e,[],t,()=>kke(t)),o=m.useCallback(()=>{Jr(t).catch(console.warn)},[t]);return{strategies:(n==null?void 0:n.strategies)||[],refetchUsedSegments:o,loading:!r&&!n,error:r}},kke=e=>fetch(e,{method:"GET"}).then(bn("Strategies by segment")).then(t=>t.json()),Ake=C("ul")(({theme:e})=>({listStyle:"none",paddingLeft:0})),F3=C(Vt)(({theme:e})=>({marginTop:e.spacing(1)})),Rke=({projects:e,strategies:t,projectsUsed:n,availableProjects:r})=>{const{trackEvent:o}=br(),i=()=>{o("segment-usage",{props:{eventType:"segment usage viewed"}})},a=l(Ake,{children:Array.from(n).map(s=>{var c;return x("li",{onClick:i,children:[l(an,{to:`/projects/${s}`,target:"_blank",rel:"noreferrer",children:((c=e.find(({id:u})=>u===s))==null?void 0:c.name)??s}),l("ul",{children:t==null?void 0:t.filter(u=>u.projectId===s).map(u=>l("li",{children:x(an,{to:BT(u.projectId,u.featureName,u.environment,u.id),target:"_blank",rel:"noreferrer",children:[u.featureName," ",_ke(u)]})},u.id))})]},s)})});return n.length>1?x(F3,{severity:"info",children:["You can't specify a project for this segment because it is used in multiple projects:",a]}):r.length===1?x(F3,{severity:"info",children:["You can't specify a project other than"," ",l("strong",{children:r[0].name})," for this segment because it is used here:",a]}):null},_ke=e=>e.strategyName?`(${ks(e.strategyName)})`:"",Pke=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%"})),Ike=C("div")(({theme:e})=>({maxWidth:"400px"})),Sw=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),z3=C(rr)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),Oke=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end"})),$ke=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),Nke=({name:e,description:t,project:n,setName:r,setDescription:o,setProject:i,errors:a,setCurrentStep:s})=>{const c=Ka("segmentId"),u=Ka("projectId"),d=pt(),{projects:p,loading:f}=ma(),{strategies:h,loading:g}=DM(c),v=new Set(h.map(({projectId:k})=>k).filter(Boolean)),b=p.filter(({id:k})=>!v.size||v.size===1&&v.has(k)),[y,w]=Ce.useState(p.find(({id:k})=>k===n)??null);m.useEffect(()=>{w(p.find(({id:k})=>k===n)??null)},[n,p]);const S=f&&g;return x(Pke,{children:[x(Ike,{children:[l(Sw,{children:"What is the segment name?"}),l(z3,{label:"Segment name",value:e,onChange:k=>r(k.target.value),error:!!a.name,errorText:a.name,autoFocus:!0,required:!0,"data-testid":Hie}),l(Sw,{children:"What is the segment description?"}),l(z3,{label:"Description (optional)",value:t,onChange:k=>o(k.target.value),error:!!a.description,errorText:a.description,"data-testid":Vie}),l(q,{condition:!u&&!S,show:x(ve,{children:[l(Sw,{children:"Is this segment tied to a specific project?"}),l(Ad,{size:"small",value:y,onChange:(k,A)=>{i(A==null?void 0:A.id)},options:b,getOptionLabel:k=>k.name,renderInput:k=>l(pn,{...k,label:"Project"}),disabled:v.size>1}),l(Rke,{projects:p,strategies:h,projectsUsed:Array.from(v),availableProjects:b})]})})]}),x(Oke,{children:[l(Ve,{type:"button",variant:"contained",color:"primary",onClick:()=>s(2),disabled:e.length===0||!!a.name,"data-testid":Gie,children:"Next"}),l($ke,{type:"button",onClick:()=>{d(yo)},children:"Cancel"})]})]})},j3=250,MM=C("div")({position:"absolute",top:0,right:0,bottom:0,height:"100vh",maxWidth:"98vw",overflow:"auto",boxShadow:"0 0 1rem rgba(0, 0, 0, 0.25)"}),Lke=C(MM)({width:1300}),Dke=C(jt)(({theme:e})=>({zIndex:1,position:"absolute",top:e.spacing(3),right:e.spacing(3)})),BM=({open:e,onClose:t,onClick:n,label:r,children:o})=>l(Fh,{open:e,onClose:t,onClick:n,closeAfterTransition:!0,"aria-label":r,BackdropComponent:qE,BackdropProps:{timeout:j3},"data-testid":lae,sx:{minHeight:"100vh"},children:l(GE,{timeout:j3,in:e,children:o})}),om=e=>l(BM,{...e,children:l(Lke,{children:e.children})}),U3=e=>l(BM,{...e,children:x(MM,{children:[l(xt,{title:"Close",arrow:!0,describeChild:!0,children:l(Dke,{onClick:e.onClose,children:l(xc,{})})}),e.children]})}),KT=e=>m.useMemo(()=>e.map(t=>t.values).reduce((t,n)=>t+((n==null?void 0:n.length)??0),0),[e]),Mke=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%"})),Bke=C("div")(({theme:e})=>({marginBottom:"1.5rem"})),xw=C("p")(({theme:e})=>({marginBottom:"1rem"})),Fke=C("div")(({theme:e})=>({marginTop:"1rem",borderBottom:`1px solid ${e.palette.divider}`,paddingBottom:"2rem"})),zke=C("div")(({theme:e})=>({marginTop:"1.5rem"})),jke=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",marginTop:e.spacing(12)})),Uke=C("p")(({theme:e})=>({fontSize:e.fontSizes.bodySize,color:e.palette.text.disabled,maxWidth:515,marginBottom:e.spacing(2.5),wordBreak:"break-word",whiteSpace:"normal",textAlign:"center"})),Wke=C("div")(({theme:e})=>({marginBlock:e.spacing(4)})),Hke=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end",borderTop:`1px solid ${e.palette.divider}`,paddingTop:e.spacing(2)})),Vke=C(Ve)(({theme:e})=>({marginRight:"auto"})),Gke=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),qke=({children:e,constraints:t,setConstraints:n,setCurrentStep:r,mode:o})=>{const i=m.useRef(),a=pt(),{hasAccess:s}=m.useContext(_o),{context:c=[]}=ts(),[u,d]=m.useState(!1),p=KT(t),f=o==="create"?N1:W2,{segmentValuesLimit:h}=jc(),g=!!(h&&p>h),v=c.map(y=>({value:y.name,label:y.name}));return x(ve,{children:[x(Mke,{children:[l(Bke,{children:l(Mxe,{})}),x("div",{children:[l(xw,{children:"Select the context fields you want to include in the segment."}),l(xw,{children:"Use a predefined context field:"}),l(rM,{label:"Select a context",options:v,onChange:([y])=>{var w,S;(S=(w=i.current)==null?void 0:w.addConstraint)==null||S.call(w,y.value)}})]}),x(Fke,{children:[l(xw,{children:"...or add a new context field:"}),l(om,{label:"Create new context",onClose:()=>d(!1),open:u,children:l(NM,{onSubmit:()=>d(!1),onCancel:()=>d(!1),modal:!0})}),l(Po,{permission:zv,variant:"outlined",color:"primary",startIcon:l(ha,{}),onClick:()=>d(!0),children:"Add context field"}),g&&l(zke,{children:l(Bxe,{values:p})})]}),l(q,{condition:t.length===0,show:l(jke,{children:l(Uke,{children:"Start adding context fields by selecting an option from above, or you can create a new context field and use it right away"})})}),l(Wke,{children:l(Z1,{ref:i,constraints:t,setConstraints:s(f)?n:void 0})})]}),x(Hke,{children:[l(Vke,{type:"button",onClick:()=>r(1),children:"Back"}),e,l(Gke,{type:"button",onClick:()=>{a(yo)},children:"Cancel"})]})]})},Yke=C("div")(({theme:e})=>({display:"flex",position:"absolute",alignItems:"center",justifyContent:"center",top:30,left:0,right:fD,[e.breakpoints.down(1100)]:{right:0}})),Kke=C("div")(({theme:e})=>({position:"relative",borderRadius:10,background:e.palette.background.paper,padding:e.spacing(1,2.5),margin:"auto",display:"flex",alignItems:"center"})),Xke=C("span")(({theme:e})=>({marginRight:15,fontSize:e.fontSizes.smallBody})),Jke=C(Nle,{shouldForwardProp:e=>e!=="filled"})(({theme:e,filled:t})=>({fill:e.palette.primary.main,transition:"opacity 0.4s ease",opacity:t?1:.4,fontSize:t?20:17})),Qke=({total:e,current:t})=>{const n=Array.from({length:e}).map((r,o)=>o+1);return l(Yke,{children:x(Kke,{children:[x(Xke,{children:["Step ",t," of ",e]}),n.map(r=>l(Jke,{filled:r===t},r))]})})},Zke=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%"})),FM=({children:e,name:t,description:n,project:r,constraints:o,setName:i,setDescription:a,setProject:s,setConstraints:c,handleSubmit:u,errors:d,clearErrors:p,mode:f})=>{const[g,v]=m.useState(1);return x(ve,{children:[l(Qke,{total:2,current:g}),x(Zke,{onSubmit:u,children:[l(q,{condition:g===1,show:l(Nke,{name:t,description:n,project:r,setName:i,setDescription:a,setProject:s,errors:d,clearErrors:p,setCurrentStep:v})}),l(q,{condition:g===2,show:l(qke,{constraints:o,setConstraints:c,setCurrentStep:v,mode:f,children:e})})]})]})},eAe=()=>{throw new Error("showFeedbackCES called outside feedbackCESContext")},tAe=()=>{throw new Error("hideFeedbackCES called outside feedbackCESContext")},XT=m.createContext({showFeedbackCES:eAe,hideFeedbackCES:tAe}),nAe=({modal:e})=>{const t=Ka("projectId"),{uiConfig:n}=It(),{setToastData:r,setToastApiError:o}=$t(),{showFeedbackCES:i}=m.useContext(XT),a=pt(),{createSegment:s,loading:c}=qT(),{refetchSegments:u}=$l(),{name:d,setName:p,description:f,setDescription:h,project:g,setProject:v,constraints:b,setConstraints:y,getSegmentPayload:w,errors:S,clearErrors:k}=LM("","",t),A=LT(b),{segmentValuesLimit:T}=jc(),R=KT(b),P=!!(T&&R>T);return l(Fr,{loading:c,modal:e,title:"Create segment",description:zM,documentationLink:aM,documentationLinkLabel:"Segments documentation",formatApiCode:()=>`curl --location --request POST '${n.unleashUrl}/api/admin/segments' \\
344
+ --header 'Authorization: INSERT_API_KEY' \\
345
+ --header 'Content-Type: application/json' \\
346
+ --data-raw '${JSON.stringify(w(),void 0,2)}'`,children:l(FM,{handleSubmit:async $=>{$.preventDefault(),k();try{await s(w()),await u(),a(t?`/projects/${t}/settings/segments/`:"/segments/"),r({title:"Segment created",confetti:!0,type:"success"}),i({title:"How easy was it to create a segment?",text:"Please help us understand how we can improve segments",path:"/segments/create"})}catch(z){o(gt(z))}},name:d,setName:p,description:f,setDescription:h,project:g,setProject:v,constraints:b,setConstraints:y,errors:S,clearErrors:k,mode:"create",children:l(Bd,{name:"segment",permission:N1,disabled:!A||P,"data-testid":qie})})})},zM=`
347
+ Segments make it easy for you to define which of your users should get access to a feature.
348
+ A segment is a reusable collection of constraints.
349
+ You can create and apply a segment when configuring activation strategies for a feature toggle or at any time from the segments page in the navigation menu.
350
+ `,rAe=e=>{const t=Rt(`api/admin/segments/${e}`),{data:n,error:r}=Pn(t,()=>oAe(t)),o=m.useCallback(()=>{Jr(t).catch(console.warn)},[t]);return{segment:n,refetchSegment:o,loading:!r&&!n,error:r}},oAe=e=>fetch(e,{method:"GET"}).then(bn("Segment")).then(t=>t.json()),iAe=({modal:e})=>{const t=Ka("projectId"),n=nr("segmentId"),{segment:r}=rAe(Number(n)),{uiConfig:o}=It(),{setToastData:i,setToastApiError:a}=$t(),s=pt(),{updateSegment:c,loading:u}=qT(),{refetchSegments:d}=$l(),{name:p,setName:f,description:h,setDescription:g,project:v,setProject:b,constraints:y,setConstraints:w,getSegmentPayload:S,errors:k,clearErrors:A}=LM(r==null?void 0:r.name,r==null?void 0:r.description,r==null?void 0:r.project,r==null?void 0:r.constraints),T=LT(y),R=KT(y),{segmentValuesLimit:P}=jc(),_=!!(P&&R>P);return l(Fr,{loading:u,modal:e,title:"Edit segment",description:zM,documentationLink:aM,documentationLinkLabel:"Segments documentation",formatApiCode:()=>`curl --location --request PUT '${o.unleashUrl}/api/admin/segments/${n}' \\
351
+ --header 'Authorization: INSERT_API_KEY' \\
352
+ --header 'Content-Type: application/json' \\
353
+ --data-raw '${JSON.stringify(S(),void 0,2)}'`,children:l(FM,{handleSubmit:async z=>{if(r){z.preventDefault(),A();try{await c(r.id,S()),await d(),s(t?`/projects/${t}/settings/segments/`:"/segments/"),i({title:"Segment updated",type:"success"})}catch(L){a(gt(L))}}},name:p,setName:f,description:h,setDescription:g,project:v,setProject:b,constraints:y,setConstraints:w,errors:k,clearErrors:A,mode:"edit",children:l(zc,{permission:W2,disabled:!T||_,"data-testid":Yie})})})},aAe=()=>{const{uiConfig:e}=It(),t=pt();return l(iD,{onClick:()=>t("/environments/create"),maxWidth:"700px",Icon:ha,permission:yi,disabled:!e.flags.EEA,children:"New environment"})},sAe=(e,t,n)=>{const r=m.useRef(null);return m.useEffect(()=>{if(r.current)return r.current.dataset.index=String(e),lAe(r.current,t,(n==null?void 0:n.current)??void 0)},[e,t]),r},lAe=(e,t,n)=>{const r=p=>{bg&&t(Number(bg.dataset.index),Number(e.dataset.index),p)},o=n??e,i=p=>{p.target===o&&(e.draggable=!0)},a=()=>{e.draggable=!1},s=()=>{e.draggable=!0,bg=e},c=()=>{r(!1)},u=p=>{p.preventDefault()},d=()=>{r(!0),bg=null};return o.addEventListener("mouseenter",i),o.addEventListener("mouseleave",a),n&&e.addEventListener("mouseenter",a),e.addEventListener("dragstart",s),e.addEventListener("dragenter",c),e.addEventListener("dragover",u),e.addEventListener("drop",d),()=>{o.removeEventListener("mouseenter",i),o.removeEventListener("mouseleave",a),n&&e.removeEventListener("mouseenter",a),e.removeEventListener("dragstart",s),e.removeEventListener("dragenter",c),e.removeEventListener("dragover",u),e.removeEventListener("drop",d)}};let bg;const cAe=C(ui)(()=>({"&:hover":{".drag-handle .drag-icon":{display:"inherit",cursor:"grab"}}})),uAe=({row:e,moveListItem:t})=>{const{hasAccess:n}=m.useContext(_o),r=m.useRef(null),{searchQuery:o}=Ol(),i=!o&&n(wx),a=sAe(e.index,t,r),s=(c,u)=>i&&c.column.isDragHandle?l(pi,{...c.getCellProps(),ref:u,className:"drag-handle",children:c.render("Cell")}):l(pi,{...c.getCellProps(),children:c.render("Cell")});return l(cAe,{hover:!0,ref:i?a:void 0,children:e.cells.map(c=>s(c,r))})},dAe=C(se)(({theme:e})=>({fontWeight:"bold",fontSize:e.fontSizes.smallerBody})),pAe=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallerBody})),W3=C(qt)(({theme:e})=>({marginLeft:e.spacing(1)})),fAe=({environment:e})=>{const{searchQuery:t}=Ol();return x(Hn,{sx:n=>({[n.breakpoints.up("sm")]:{minWidth:"350px"}}),children:[l(Ya,{search:t,children:e.name}),l(q,{condition:e.protected,show:l(W3,{color:"success",children:"Predefined"})}),l(q,{condition:!e.enabled,show:l(Dc,{maxWidth:"270px",title:x(ve,{children:[l(dAe,{children:"Deprecated environment"}),l(pAe,{children:"This environment is not auto-enabled for new projects. The project owner will need to manually enable it in the project."})]}),describeChild:!0,arrow:!0,children:l(W3,{color:"neutral",children:"Deprecated"})})})]})},wu=({permission:e,projectId:t,children:n,environmentId:r,tooltip:o,tooltipProps:i})=>{const{hasAccess:a}=m.useContext(_o);let s;return t&&r?s=a(e,t,r):t?s=a(e,t):s=a(e),l(Id,{...i,title:O1(s,o),children:n({hasAccess:s})})},hAe=C(ZE)(({theme:e})=>({padding:e.spacing(1)})),Gg=C(qa)(({theme:e})=>({borderRadius:e.shape.borderRadius})),mAe=C(Gg)(({theme:e})=>({color:e.palette.error.main})),gAe=C(Du)(({theme:e})=>({color:e.palette.error.main})),vAe=({environment:e,onEdit:t,onDeprecateToggle:n,onClone:r,onDelete:o})=>{const[i,a]=m.useState(null),s=!!i,c=f=>{a(f.currentTarget)},u=()=>{a(null)},d=`environment-${e.name}-actions`,p=`${d}-menu`;return x(ve,{children:[l(xt,{title:"Environment actions",arrow:!0,describeChild:!0,children:l(jt,{id:d,"aria-controls":s?p:void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,onClick:c,type:"button",children:l(rT,{})})}),l(e2,{id:p,anchorEl:i,open:s,onClose:u,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},disableScrollLock:!0,children:x(hAe,{"aria-labelledby":d,children:[l(wu,{permission:wx,children:({hasAccess:f})=>x(Gg,{onClick:()=>{t(),u()},disabled:!f||e.protected,children:[l(Du,{children:l(di,{})}),l(rn,{children:l(se,{variant:"body2",children:"Edit"})})]})}),l(wu,{permission:yi,children:({hasAccess:f})=>x(Gg,{onClick:()=>{r(),u()},disabled:!f,children:[l(Du,{children:l(Cle,{})}),l(rn,{children:l(se,{variant:"body2",children:"Clone"})})]})}),l(wu,{permission:wx,children:({hasAccess:f})=>x(Gg,{onClick:()=>{n(),u()},disabled:!f||e.protected,children:[l(Du,{children:l(q,{condition:e.enabled,show:l(Zle,{}),elseShow:l(ece,{})})}),l(rn,{children:l(se,{variant:"body2",children:e.enabled?"Deprecate":"Undeprecate"})})]})}),l(wu,{permission:xpe,children:({hasAccess:f})=>x(mAe,{onClick:()=>{o(),u()},disabled:!f||e.protected,children:[l(gAe,{children:l(vo,{})}),l(rn,{children:l(se,{variant:"body2",children:"Delete"})})]})})]})})]})},H3=(e,t)=>{var n;return!!((n=t==null?void 0:t.toLowerCase())!=null&&n.includes(e.toLowerCase()))},yAe=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",color:e.palette.text.secondary,"& > span:first-of-type":{color:e.palette.text.primary}})),bAe=C("div")(({theme:e})=>({paddingLeft:e.spacing(1)})),wAe=C("div")(({theme:e})=>({display:"flex",marginBottom:e.spacing(3),"& > div:first-of-type":{width:"100%",maxWidth:e.spacing(50),marginRight:e.spacing(1)}})),SAe=(e,t,n)=>x("li",{...e,children:[l(pa,{icon:l(n0,{fontSize:"small"}),checkedIcon:l(r0,{fontSize:"small"}),style:{marginRight:8},checked:n}),x(yAe,{children:[l("span",{children:t.name}),l("span",{children:t.description})]})]}),xAe=e=>l(bAe,{children:e.length>1?`${e.length} projects selected`:e[0].name}),CAe=({projects:e,setProjects:t})=>{const{projects:n}=ma(),r=n.sort((c,u)=>c.name.localeCompare(u.name)).map(({id:c,name:u,description:d})=>({id:c,name:u,description:d})),o=r.filter(({id:c})=>e.includes(c)),i=e.length>0&&e.length===r.length,a=()=>{const c=i?[]:r.map(({id:u})=>u);t(c)};return l(wAe,{children:l(Ad,{size:"small",multiple:!0,limitTags:1,openOnFocus:!0,disableCloseOnSelect:!0,value:o,onChange:(c,u,d)=>{c.type==="keydown"&&c.key==="Backspace"&&d==="removeOption"||t(u.map(({id:p})=>p))},options:r,renderOption:(c,u,{selected:d})=>SAe(c,u,d),filterOptions:(c,{inputValue:u})=>c.filter(({name:d,description:p})=>H3(u,d)||H3(u,p)),isOptionEqualToValue:(c,u)=>c.id===u.id,getOptionLabel:c=>c.name||c.description||"",renderInput:c=>l(pn,{...c,label:"Projects"}),renderTags:c=>xAe(c),groupBy:()=>"Select/Deselect all",renderGroup:({key:c,children:u})=>x(m.Fragment,{children:[l(q,{condition:r.length>2,show:l(GT,{isAllSelected:i,onClick:a})}),u]},c)})})},Lp="*",EAe=({...e})=>l(Cr,{elevation:8,...e}),TAe=C(pa)(({theme:e})=>({marginRight:e.spacing(.4)})),kAe=({options:e,defaultValue:t=[Lp],onChange:n,disabled:r,error:o,onFocus:i})=>{const[a,s]=m.useState(typeof t=="string"?[t]:t),[c,u]=m.useState(typeof t=="string"||t.includes(Lp)),d=a.length>0&&a.length===e.length&&a[0]!==Lp,p=(b,y)=>{y?(u(!0),n([Lp])):(u(!1),n(a.includes(Lp)?[]:a))},f=()=>{const b=d?[]:e.map(({value:y})=>y);s(b),n(b)};return x($e,{sx:{mt:-1,mb:3},children:[l($e,{sx:{mt:1,mb:.25,ml:1.5},children:l(Mr,{disabled:r,"data-testid":"select-all-projects",control:l(pa,{checked:r||c,onChange:p}),label:"ALL current and future projects"})}),l(Ad,{disabled:r||c,multiple:!0,limitTags:2,options:e,disableCloseOnSelect:!0,getOptionLabel:({label:b})=>b,groupBy:()=>"Select/Deselect all",renderGroup:({key:b,children:y})=>x(m.Fragment,{children:[l(q,{condition:e.length>2,show:l(GT,{isAllSelected:d,onClick:f})}),y]},b),fullWidth:!0,PaperComponent:EAe,renderOption:(b,y,{selected:w})=>x("li",{...b,children:[l(TAe,{icon:l(n0,{fontSize:"small"}),checkedIcon:l(r0,{fontSize:"small"}),checked:w}),y.label]}),renderInput:b=>l(pn,{...b,error:!!o,helperText:o,variant:"outlined",label:"Projects",placeholder:"Select one or more projects",onFocus:i,"data-testid":"select-input"}),value:c||r?e:e.filter(b=>a.includes(b.value)),onChange:(b,y)=>{const w=y.map(({value:S})=>S);s(w),n(w)}})]})},AAe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0});return{deleteToken:async a=>{const s=`api/admin/api-tokens/${a}`,c=t(s,{method:"DELETE"});try{return await e(c.caller,c.id)}catch(u){throw u}},createToken:async a=>{const c=t("api/admin/api-tokens",{method:"POST",body:JSON.stringify(a)});try{return await e(c.caller,c.id)}catch(u){throw u}},errors:n,loading:r}},RAe=C("form")(()=>({display:"flex",flexDirection:"column",height:"100%"})),iu=C("p")(({theme:e})=>({display:"flex",color:e.palette.text.primary,marginBottom:e.spacing(1),"&:not(:first-of-type)":{marginTop:e.spacing(4)}})),Cw=C("p")(({theme:e})=>({color:e.palette.text.secondary,marginBottom:e.spacing(1)})),_Ae=C(rr)(({theme:e})=>({width:"100%",maxWidth:e.spacing(50)})),PAe=C("div")(({theme:e})=>({padding:e.spacing(3),backgroundColor:e.palette.background.elevation2,borderRadius:e.shape.borderRadiusMedium,marginTop:e.spacing(4)})),IAe=C("div")(({theme:e})=>({padding:e.spacing(0,4),"& > p:not(:first-of-type)":{marginTop:e.spacing(2)}})),OAe=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end",[e.breakpoints.down("sm")]:{marginTop:e.spacing(4)}})),$Ae=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),NAe=({environment:e,open:t,setOpen:n,newToken:r})=>{const{environments:o,refetchEnvironments:i}=$d(),{cloneEnvironment:a,loading:s}=Md(),{createToken:c}=AAe(),{projects:u}=ma(),{setToastData:d,setToastApiError:p}=$t(),{uiConfig:f}=It(),[h,g]=m.useState(`${e.name}_clone`),[v,b]=m.useState("development"),[y,w]=m.useState([]),[S,k]=m.useState(["*"]),[A,T]=m.useState(!0),[R,P]=m.useState("later"),[_,O]=m.useState({}),$=J=>{O(ae=>({...ae,[J]:void 0}))},z=(J,ae)=>{O(Te=>({...Te,[J]:ae}))};m.useEffect(()=>{g(L(e.name)),b("development"),w([]),k(["*"]),T(!0),P("later"),O({})},[e]);const L=J=>{let ae=`${J}_clone`,Te=2;for(;!W(ae);)ae=`${e.name}_clone_${Te}`,Te++;return ae},B=()=>({name:h,type:v,projects:y,clonePermissions:A}),Y=()=>({username:`${h}_token`,type:"CLIENT",environment:h,projects:S}),H=async J=>{J.preventDefault();try{if(await a(e.name,B()),R==="now"){const Te=await(await c(Y())).json();r(Te)}d({title:"Environment successfully cloned!",type:"success"}),i(),n(!1)}catch(ae){p(gt(ae))}},ee=()=>`curl --location --request POST '${f.unleashUrl}/api/admin/environments/${e.name}/clone' \\
354
+ --header 'Authorization: INSERT_API_KEY' \\
355
+ --header 'Content-Type: application/json' \\
356
+ --data-raw '${JSON.stringify(B(),void 0,2)}'`,V=J=>J.length,W=J=>!(o!=null&&o.some(ae=>ae.name===J)),j=V(h)&&W(h)&&S.length,I=J=>{$("name"),W(J)||z("name","An environment with that name already exists."),g(J)},M=u.map(J=>({value:J.id,label:J.name}));return l(om,{open:t,onClose:()=>{n(!1)},label:`Clone ${e.name} environment`,children:l(Fr,{loading:s,modal:!0,title:`Clone ${e.name} environment`,description:"Cloning an environment will clone all feature toggles and their configuration (activation strategies, segments, status, etc) into a new environment.",documentationLink:"https://docs.getunleash.io/reference/environments#cloning-environments",documentationLinkLabel:"Cloning environments documentation",formatApiCode:ee,children:x(RAe,{onSubmit:H,children:[x("div",{children:[l(iu,{children:"What is your new environment name? (Can't be changed later)"}),l(_Ae,{autoFocus:!0,label:"Environment name",error:!!_.name,errorText:_.name,value:h,onChange:J=>I(J.target.value),required:!0}),l(iu,{children:"What type of environment do you want to create?"}),l(cD,{onChange:J=>b(J.currentTarget.value),value:v}),x(iu,{children:["Select which projects you want to clone the environment configuration in?",l(Xa,{tooltip:"The cloned environment will keep the feature toggle state for the selected projects, where it will be enabled by default."})]}),l(CAe,{projects:y,setProjects:w}),l(iu,{children:"Keep the users permission for this environment?"}),l(Cw,{children:"If you turn it off, the permission for this environment across all projects and feature toggles will remain only for admin and editor roles."}),l(Mr,{label:A?"Yes":"No",control:l(fa,{onChange:J=>T(J.target.checked),checked:A})}),x(PAe,{children:[l(iu,{children:"API Token"}),x(Cw,{children:["In order to connect your SDKs to your newly cloned environment, you will also need an API token."," ",l(Gr,{href:"https://docs.getunleash.io/reference/api-tokens-and-client-keys",target:"_blank",rel:"noreferrer",children:"Read more about API tokens"}),"."]}),l($s,{children:x(r2,{value:R,onChange:J=>P(J.target.value),name:"api-token-generation",children:[l(Mr,{value:"later",control:l(sc,{}),label:"I want to generate an API token later"}),l(Mr,{value:"now",control:l(sc,{}),label:"Generate an API token now"})]})}),x(IAe,{children:[l(Cw,{children:"A new Server-side SDK (CLIENT) API token will be generated for the cloned environment, so you can get started right away."}),l(q,{condition:R==="now",show:x(ve,{children:[l(iu,{children:"Which projects do you want this token to give access to?"}),l(kAe,{options:M,defaultValue:S,onChange:k,error:_.projects,onFocus:()=>$("projects")})]})})]})]})]}),x(OAe,{children:[l(Ve,{type:"submit",variant:"contained",color:"primary",disabled:!j,children:"Clone environment"}),l($Ae,{onClick:()=>{n(!1)},children:"Cancel"})]})]})})})};var JT={},LAe=An;Object.defineProperty(JT,"__esModule",{value:!0});var jM=JT.default=void 0,DAe=LAe(Rn()),MAe=_n,BAe=(0,DAe.default)((0,MAe.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");jM=JT.default=BAe;const UM=({token:e})=>{const{setToastData:t}=$t();return x($e,{sx:r=>({backgroundColor:r.palette.background.elevation2,padding:r.spacing(4),borderRadius:`${r.shape.borderRadius}px`,marginTop:r.spacing(2),display:"flex",justifyContent:"space-between",alignItems:"center",wordBreak:"break-all"}),children:[e,l(xt,{title:"Copy token",arrow:!0,children:l(jt,{onClick:()=>{pD(e)?t({type:"success",title:"Token copied to clipboard"}):t({type:"error",title:"Could not copy token"})},size:"large",children:l(jM,{})})})]})},FAe=({open:e,setOpen:t,token:n})=>x(vr,{open:e,secondaryButtonText:"Close",onClose:(r,o)=>{o||t(!1)},title:"New API token created",children:[l(se,{variant:"body1",children:"Your new token has been created successfully."}),x(se,{variant:"body1",children:['You can also find it as "',l("strong",{children:n==null?void 0:n.username}),'" in the'," ",l(an,{to:"/admin/api",children:"API access page"}),"."]}),l(UM,{token:(n==null?void 0:n.secret)||""})]}),zAe=C($e)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",paddingLeft:e.spacing(.5),minWidth:e.spacing(6.5),cursor:"grab"})),jAe=C(jt)(({theme:e})=>({padding:e.spacing(1.5,0),cursor:"inherit",transition:"color 0.2s ease-in-out",color:e.palette.action.active})),UAe=C($L,{shouldForwardProp:e=>e!=="deprecated"})(({theme:e,deprecated:t})=>({color:t?e.palette.neutral.border:e.palette.primary.main})),WM=({environment:e})=>x(zAe,{children:[l(jAe,{size:"large",disableRipple:!0,className:"drag-icon",children:l(Ole,{titleAccess:"Drag to reorder"})}),l(UAe,{deprecated:!e.enabled})]}),WAe=C(Gi)(({theme:e})=>({marginTop:e.spacing(3)})),HAe=C("p",{shouldForwardProp:e=>e!=="warning"})(({theme:e,warning:t})=>({color:t?e.palette.error.dark:e.palette.text.primary})),HM=({environment:e,warnEnabledToggles:t})=>{const n=m.useMemo(()=>[{id:"Icon",width:"1%",Cell:({row:{original:c}})=>l(WM,{environment:c})},{Header:"Name",accessor:"name",Cell:Hn},{Header:"Type",accessor:"type",Cell:Hn},{Header:"Visible in",accessor:c=>c.projectCount===1?"1 project":`${c.projectCount} projects`,Cell:({row:{original:c},value:u})=>x(Hn,{children:[u,l(q,{condition:!!t,show:l(HAe,{warning:!!(c.enabledToggleCount&&c.enabledToggleCount>0),children:c.enabledToggleCount===1?"1 toggle enabled":`${c.enabledToggleCount} toggles enabled`})})]})}],[t]),{getTableProps:r,getTableBodyProps:o,headerGroups:i,rows:a,prepareRow:s}=Jt.useTable({columns:n,data:[e],disableSortBy:!0});return x(WAe,{...r(),rowHeight:"compact",children:[l(Vi,{headerGroups:i}),l(Wi,{...o(),children:a.map(c=>(s(c),l(ui,{hover:!0,...c.getRowProps(),children:c.cells.map(u=>l(pi,{...u.getCellProps(),children:u.render("Cell")}))})))})]})},VAe=({environment:e,open:t,setOpen:n,onConfirm:r})=>{const{enabled:o}=e,i=o?"Deprecate":"Undeprecate";return x(vr,{title:`${i} environment?`,open:t,primaryButtonText:i,secondaryButtonText:"Close",onClick:r,onClose:()=>{n(!1)},children:[l(q,{condition:o,show:l(Vt,{severity:"info",children:"Deprecating an environment will mark it as deprecated. Deprecated environments are set as not visible by default for new projects. Project owners are still able to override this setting in the project. This environment will still be visible in any current projects."}),elseShow:l(Vt,{severity:"info",children:"Undeprecating an environment will no longer mark it as deprecated. An undeprecated environment will be set as visible by default for new projects."})}),l(HM,{environment:e})]})},GAe=C("p")(({theme:e})=>({marginTop:e.spacing(3),marginBottom:e.spacing(1.5)})),qAe=C(rr)(()=>({width:"100%"})),YAe=({environment:e,open:t,setOpen:n,onConfirm:r})=>{const[o,i]=m.useState("");return m.useEffect(()=>{i("")},[t]),x(vr,{title:"Delete environment?",open:t,primaryButtonText:"Delete environment",disabledPrimaryButton:e.name!==o,secondaryButtonText:"Close",onClick:r,onClose:()=>{n(!1)},children:[x(Vt,{severity:"error",children:[l("strong",{children:"Danger! This action is not reversible. Please proceed with caution."})," ","Deleting this environment will result in removing all strategies that are active in this environment across all feature toggles."]}),l(HM,{environment:e,warnEnabledToggles:!0}),x(GAe,{children:["In order to delete this environment, please enter the id of the environment in the textfield below:"," ",l("strong",{children:e.name})]}),l(qAe,{label:"Environment name",value:o,onChange:a=>i(a.target.value)})]})},KAe=({environment:e})=>{const t=pt(),{setToastApiError:n,setToastData:r}=$t(),{environments:o,refetchEnvironments:i}=$d(),{refetch:a}=oT(),{deleteEnvironment:s,toggleEnvironmentOn:c,toggleEnvironmentOff:u}=Md(),[d,p]=m.useState(!1),[f,h]=m.useState(!1),[g,v]=m.useState(!1),[b,y]=m.useState(!1),[w,S]=m.useState();return x(da,{children:[l(vAe,{environment:e,onEdit:()=>t(`/environments/${e.name}`),onDeprecateToggle:()=>h(!0),onClone:()=>{o.length<Wv?v(!0):r({type:"error",title:"Environment limit reached",text:`You have reached the maximum number of environments (${Wv}). Please reach out if you need more.`})},onDelete:()=>p(!0)}),l(YAe,{environment:e,open:d,setOpen:p,onConfirm:async()=>{try{await s(e.name),a(),r({type:"success",title:"Environment deleted",text:`You have successfully deleted the ${e.name} environment.`})}catch(T){n(gt(T))}finally{p(!1),await i()}}}),l(VAe,{environment:e,open:f,setOpen:h,onConfirm:async()=>{try{e.enabled?(await u(e.name),r({type:"success",title:"Environment deprecated successfully"})):(await c(e.name),r({type:"success",title:"Environment undeprecated successfully"}))}catch(T){n(gt(T))}finally{h(!1),await i()}}}),l(NAe,{environment:e,open:g,setOpen:v,newToken:T=>{S(T),y(!0)}}),l(FAe,{open:b,setOpen:y,token:w})]})},XAe=C(Vt)(({theme:e})=>({marginBottom:e.spacing(4)})),JAe=()=>{const{changeSortOrder:e}=Md(),{setToastApiError:t}=$t(),{environments:n,mutateEnvironments:r}=$d(),o=m.useCallback(async(b,y,w=!1)=>{const S=[...n],k=S[b];if(S.splice(b,1),S.splice(y,0,k),await r(S),w)try{await e(Ove(S))}catch(A){t(gt(A))}},[e,n,r,t]),{getTableProps:i,getTableBodyProps:a,headerGroups:s,rows:c,prepareRow:u,state:{globalFilter:d},setGlobalFilter:p}=Jt.useTable({columns:QAe,data:n,disableSortBy:!0},Jt.useGlobalFilter),h=x(ve,{children:[l(ko,{initialValue:d,onChange:p}),l(Tn.Divider,{}),l(aAe,{})]});let g=c.length;const v=l(Tn,{title:`Environments (${g})`,actions:h});return x(yr,{header:v,children:[l(XAe,{severity:"info",children:"This is the order of environments that you have today in each feature toggle. Rearranging them here will change also the order inside each feature toggle."}),l(Ls,{value:d,children:x(Gi,{...i(),rowHeight:"compact",children:[l(Vi,{headerGroups:s}),l(Wi,{...a(),children:c.map(b=>(u(b),l(uAe,{row:b,moveListItem:o},b.original.name)))})]})}),l(q,{condition:c.length===0,show:l(q,{condition:(d==null?void 0:d.length)>0,show:x(ar,{children:["No environments found matching “",d,"”"]}),elseShow:l(ar,{children:"No environments available. Get started by adding one."})})})]})},QAe=[{id:"Icon",width:"1%",Cell:({row:{original:e}})=>l(WM,{environment:e}),disableGlobalFilter:!0,isDragHandle:!0},{Header:"Name",accessor:"name",Cell:({row:{original:e}})=>l(fAe,{environment:e}),minWidth:350},{Header:"Type",accessor:"type",Cell:bs},{Header:"Visible in",accessor:e=>e.projectCount===1?"1 project":`${e.projectCount} projects`,Cell:Hn},{Header:"API Tokens",accessor:e=>e.apiTokenCount===1?"1 token":`${e.apiTokenCount} tokens`,Cell:Hn},{Header:"Actions",id:"Actions",align:"center",width:"1%",Cell:({row:{original:e}})=>l(KAe,{environment:e}),disableGlobalFilter:!0}],ZAe=()=>{const e=Ka("projectId"),t=pt();return l(Po,{onClick:()=>{t(e?`/projects/${e}/settings/segments/create`:"/segments/create")},permission:[N1,H2],projectId:e,"data-testid":Fie,children:"New segment"})},eRe=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",margin:e.spacing(6),marginLeft:"auto",marginRight:"auto"})),tRe=C(se)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(2.5)})),nRe=C("p")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary,maxWidth:515,marginBottom:e.spacing(2.5),textAlign:"center"})),rRe=C(an)(({theme:e})=>({textDecoration:"none",color:e.palette.primary.main,fontWeight:e.fontWeight.bold})),oRe=()=>{const{hasAccess:e}=m.useContext(_o);return x(eRe,{children:[l(tRe,{children:"No segments yet!"}),l(nRe,{children:"Segment makes it easy for you to define who should be exposed to your feature. The segment is often a collection of constraints and can be reused."}),l(q,{condition:e(N1),show:l(rRe,{to:"/segments/create",children:"Create your first segment"})})]})},iRe=C(rr)(({theme:e})=>({marginTop:e.spacing(2)})),aRe=({segment:e,open:t,onClose:n,onRemove:r})=>{const[o,i]=m.useState(""),a=u=>i(u.currentTarget.value),s=()=>{n(),i("")},c="delete-segment-confirmation-form";return x(vr,{title:"Are you sure you want to delete this segment?",open:t,primaryButtonText:"Delete segment",secondaryButtonText:"Cancel",onClick:()=>{r(),i("")},disabledPrimaryButton:(e==null?void 0:e.name)!==o,onClose:s,formId:c,children:[x("p",{children:["In order to delete this segment, please enter the name of the segment in the field below: ",l("strong",{children:e==null?void 0:e.name})]}),l("form",{id:c,children:l(iRe,{autoFocus:!0,onChange:a,value:o,label:"Segment name","data-testid":Xie})})]})},sRe=C("ul")({marginBottom:0}),lRe=C(an)(({theme:e})=>({textDecoration:"none",color:e.palette.primary.main,fontWeight:e.fontWeight.bold})),cRe=({segment:e,open:t,onClose:n,strategies:r})=>x(vr,{title:"You can't delete a segment that's currently in use",open:t,primaryButtonText:"OK",onClick:n,children:[x("p",{children:["The following feature toggles are using the"," ",l("strong",{children:e.name})," segment for their strategies:"]}),l(sRe,{children:r==null?void 0:r.map(o=>l("li",{children:x(lRe,{to:BT(o.projectId,o.featureName,o.environment,o.id),target:"_blank",rel:"noopener noreferrer",children:[o.featureName," ",uRe(o)]})},o.id))})]}),uRe=e=>e.strategyName?`(${ks(e.strategyName)})`:"",dRe=({segment:e,open:t,onClose:n,onRemove:r})=>{const{strategies:o,loading:i}=DM(e.id),a=(o==null?void 0:o.length)===0;return i?null:l(q,{condition:a,show:l(aRe,{segment:e,open:t,onClose:n,onRemove:r}),elseShow:l(cRe,{segment:e,open:t,onClose:n,strategies:o})})},pRe=({segment:e})=>{const t=Ka("projectId"),{refetchSegments:n}=$l(),{deleteSegment:r}=qT(),{setToastData:o,setToastApiError:i}=$t(),[a,s]=m.useState(!1),c=async()=>{try{await r(e.id),await n(),o({type:"success",title:"Successfully deleted segment"})}catch(u){i(gt(u))}finally{s(!1)}};return x(ve,{children:[l($r,{onClick:()=>s(!0),permission:[Tpe,H2],projectId:t,tooltipProps:{title:"Remove segment"},"data-testid":`${Kie}_${e.name}`,children:l(vo,{"data-loading":!0})}),l(q,{condition:a,show:()=>l(dRe,{segment:e,open:a,onClose:()=>s(!1),onRemove:c})})]})},fRe=({segment:e})=>{const t=Ka("projectId"),n=pt();return l($r,{onClick:()=>{n(t?`/projects/${t}/settings/segments/edit/${e.id}`:`/segments/edit/${e.id}`)},permission:[W2,H2],projectId:t,tooltipProps:{title:"Edit segment"},children:l(di,{"data-loading":!0})})},hRe=({segment:e})=>x(da,{children:[l(fRe,{segment:e}),l(pRe,{segment:e})]}),mRe=()=>{const e=Ka("projectId"),{segments:t,loading:n}=$l(),r=tr(ua.breakpoints.down("md")),[o]=m.useState({sortBy:[{id:"createdAt"}],hiddenColumns:["description"]}),i=m.useMemo(()=>t?e?t.filter(({project:v})=>v===e):t:Array(5).fill({name:"Segment name",description:"Segment descripton",createdAt:new Date().toISOString(),createdBy:"user",projectId:"Project"}),[t,e]),a=m.useMemo(()=>gRe(),[]),{getTableProps:s,getTableBodyProps:c,headerGroups:u,rows:d,prepareRow:p,state:{globalFilter:f},setGlobalFilter:h,setHiddenColumns:g}=Jt.useTable({initialState:o,columns:a,data:i,sortTypes:qo,autoResetGlobalFilter:!1,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,defaultColumn:{Cell:bs}},Jt.useGlobalFilter,Jt.useSortBy);return Od([{condition:r,columns:["createdAt","createdBy"]},{condition:!!e,columns:["project"]}],g,a),l(yr,{header:l(Tn,{title:`Segments (${d.length})`,actions:x(ve,{children:[l(ko,{initialValue:f,onChange:h}),l(Tn.Divider,{}),l(ZAe,{})]})}),isLoading:n,children:l(q,{condition:!n&&i.length===0,show:l(ar,{children:l(oRe,{})}),elseShow:()=>x(ve,{children:[l(Ls,{value:f,children:x(Gi,{...s(),rowHeight:"standard",children:[l(Vi,{headerGroups:u}),l(Wi,{...c(),children:d.map(v=>(p(v),l(ui,{hover:!0,...v.getRowProps(),children:v.cells.map(b=>l(pi,{...b.getCellProps(),children:b.render("Cell")}))})))})]})}),l(q,{condition:d.length===0&&(f==null?void 0:f.length)>0,show:x(ar,{children:["No segments found matching “",f,"”"]})})]})})})},gRe=()=>[{id:"Icon",width:"1%",disableGlobalFilter:!0,disableSortBy:!0,Cell:()=>l(Xh,{icon:l(NL,{color:"disabled"})})},{Header:"Name",accessor:"name",width:"60%",Cell:({row:{original:{name:e,description:t,id:n}}})=>l(Ts,{title:e,to:`/segments/edit/${n}`,subtitle:t})},{Header:"Used in",width:"60%",Cell:({row:{original:e}})=>l(AM,{original:e})},{Header:"Project",accessor:"project",Cell:({value:e})=>l(q,{condition:!!e,show:l(Ts,{title:e,to:`/projects/${e}`}),elseShow:l(Hn,{children:"Global"})}),sortType:"alphanumeric",maxWidth:150,filterName:"project",searchable:!0},{Header:"Created at",accessor:"createdAt",minWidth:150,Cell:ch,disableGlobalFilter:!0},{Header:"Created by",accessor:"createdBy",width:"25%"},{Header:"Actions",id:"Actions",align:"center",width:"1%",disableSortBy:!0,disableGlobalFilter:!0,Cell:({row:{original:e}})=>l(hRe,{segment:e})},{accessor:"description"}],vRe=e=>fetch(e).then(bn("Feature toggle archive")).then(t=>t.json()),VM=e=>{const{data:t,error:n,mutate:r,isLoading:o}=Pn(Rt(e?`/api/admin/archive/features/${e}`:"api/admin/archive/features"),vRe,{refreshInterval:15e3});return{archivedFeatures:t==null?void 0:t.features,refetchArchived:r,loading:o,error:n}},yRe=({onRevive:e,onDelete:t,project:n})=>x(da,{children:[l($r,{onClick:e,projectId:n,permission:U2,tooltipProps:{title:"Revive feature toggle"},children:l(FL,{})}),l($r,{permission:m9,projectId:n,tooltipProps:{title:"Delete feature toggle"},onClick:t,children:l(vo,{})})]}),bRe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0});return{reviveFeature:async a=>{const s=`api/admin/archive/revive/${a}`,c=t(s,{method:"POST"});return e(c.caller,c.id)},deleteFeature:async a=>{const s=`api/admin/archive/${a}`,c=t(s,{method:"DELETE"});return e(c.caller,c.id)},errors:n,loading:r}},wRe=({value:e})=>{const{locationSettings:t}=es(),n=yn();return e?l(Hn,{children:l(xt,{title:`Archived on: ${rd(e,t.locale)}`,arrow:!0,children:l(se,{noWrap:!0,variant:"body2","data-loading":!0,children:l(P1,{date:new Date(e),title:"",live:!1})})})}):l(Hn,{children:l(se,{variant:"body2",color:n.palette.text.secondary,children:"not available"})})},SRe=C("p")(({theme:e})=>({marginTop:e.spacing(3)})),xRe=C(rr)(({theme:e})=>({marginTop:e.spacing(2),width:"100%"})),CRe="I want to delete",GM=({deletedFeatures:e,projectId:t,open:n,setOpen:r,refetch:o})=>{const[i,a]=m.useState(""),{setToastData:s,setToastApiError:c}=$t(),{deleteFeatures:u}=Jh(),d=async()=>{try{if(e.length===0)return;await u(t,e),await o(),s({type:"success",title:"Feature toggles deleted",text:`You have successfully deleted following features toggles: ${e.join(", ")}.`})}catch(h){c(gt(h))}finally{p()}},p=()=>{r(!1),a("")},f="delete-feature-toggle-confirmation-form";return x(vr,{title:"Delete feature toggles?",open:n,primaryButtonText:"Delete feature toggles",secondaryButtonText:"Cancel",onClick:d,onClose:p,disabledPrimaryButton:CRe!==i,formId:f,children:[x(Vt,{severity:"warning",children:[l("b",{children:"Warning!"})," Before you delete a feature toggle, make sure all in-code references to that feature toggle have been removed. Otherwise, a new feature toggle with the same name could activate the old code paths."]}),x(SRe,{children:["In order to delete feature toggles, please enter the following confirmation text in the text field below:"," ",l("strong",{children:"I want to delete"})]}),l("form",{id:f,children:l(xRe,{autoFocus:!0,onChange:h=>{a(h.currentTarget.value)},value:i,placeholder:"<deletion confirmation>",label:"Deletion confirmation"})})]})},ERe=C($e)(({theme:e})=>({display:"flex",justifyContent:"center",paddingLeft:e.spacing(2)})),TRe=({onChange:e,checked:t,title:n})=>l(ERe,{"data-testid":mae,children:l(pa,{onChange:e,title:n,checked:t})}),kRe=C("div")(({theme:e})=>({position:"sticky",marginTop:"auto",bottom:0,zIndex:e.zIndex.mobileStepper,pointerEvents:"none"})),ARe=C($e)(({theme:e})=>({display:"flex",justifyContent:"center",width:"100%",flexWrap:"wrap",paddingBottom:e.spacing(2)})),RRe=C(Cr)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",marginTop:e.spacing(2),marginLeft:"auto",marginRight:"auto",padding:e.spacing(2,3),backgroundColor:e.palette.background.paper,border:`1px solid ${e.palette.background.alternative}`,borderRadius:e.shape.borderRadiusLarge,gap:e.spacing(1),flexWrap:"wrap",pointerEvents:"auto"})),_Re=C("span")(({theme:e})=>({background:e.palette.background.alternative,color:e.palette.common.white,padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius})),PRe=C(se)(({theme:e})=>({paddingRight:e.spacing(2),marginRight:"auto"})),IRe=({count:e,children:t})=>e===0?null:l(kRe,{"data-testid":fae,children:l(ARe,{children:x(RRe,{elevation:4,children:[x(PRe,{children:[l(_Re,{"data-testid":hae,children:e})," selected"]}),t]})})}),ORe=({selectedIds:e,projectId:t})=>{const{reviveFeatures:n}=Jh(),{setToastData:r,setToastApiError:o}=$t(),{refetchArchived:i}=VM(t),[a,s]=m.useState(!1),{trackEvent:c}=br(),u=async()=>{try{await n(t,e),await i(),r({type:"success",title:"And we're back!",text:"The feature toggles have been revived."}),c("batch_operations",{props:{eventType:"features revived"}})}catch(p){o(gt(p))}},d=async()=>{s(!0)};return x(ve,{children:[l(wu,{projectId:t,permission:U2,children:({hasAccess:p})=>l(Ve,{disabled:!p,startIcon:l(FL,{}),variant:"outlined",size:"small",onClick:u,children:"Revive"})}),l(wu,{projectId:t,permission:m9,children:({hasAccess:p})=>l(Ve,{disabled:!p,startIcon:l(vo,{}),variant:"outlined",size:"small",onClick:d,children:"Delete"})}),l(GM,{deletedFeatures:e,projectId:t,open:a,setOpen:s,refetch:()=>{i(),c("batch_operations",{props:{eventType:"features deleted"}})}})]})},$Re=({archivedFeatures:e=[],loading:t,refetch:n,storedParams:r,setStoredParams:o,title:i,projectId:a})=>{const s=tr(ua.breakpoints.down("md")),c=tr(ua.breakpoints.down("lg")),{setToastData:u,setToastApiError:d}=$t(),[p,f]=m.useState(!1),[h,g]=m.useState(),[v,b]=Sd(),{reviveFeature:y}=bRe(),[w,S]=m.useState(v.get("search")||""),k=m.useCallback(async V=>{try{await y(V),await n(),u({type:"success",title:"And we're back!",text:"The feature toggle has been revived."})}catch(W){d(gt(W))}},[n,y,d,u]),A=m.useMemo(()=>[...a?[{id:"Select",Header:({getToggleAllRowsSelectedProps:V})=>l(pa,{...V()}),Cell:({row:V})=>{var W;return l(TRe,{...(W=V==null?void 0:V.getToggleRowSelectedProps)==null?void 0:W.call(V)})},maxWidth:50,disableSortBy:!0,hideInMenu:!0}]:[],{Header:"Seen",width:85,canSort:!0,Cell:s9,accessor:"lastSeenAt",align:"center"},{Header:"Type",accessor:"type",width:85,canSort:!0,Cell:p9,align:"center"},{Header:"Name",accessor:"name",searchable:!0,minWidth:100,Cell:({value:V,row:{original:W}})=>l(bs,{value:V,subtitle:W.description}),sortType:"alphanumeric"},{Header:"Created",accessor:"createdAt",width:150,Cell:ch,sortType:"date"},{Header:"Archived",accessor:"archivedAt",width:150,Cell:wRe,sortType:"date"},...a?[]:[{Header:"Project ID",accessor:"project",sortType:"alphanumeric",filterName:"project",searchable:!0,maxWidth:170,Cell:({value:V})=>l(Ts,{title:V,to:`/projects/${V}`})}],{Header:"Actions",id:"Actions",align:"center",maxWidth:120,canSort:!1,Cell:({row:{original:V}})=>l(yRe,{project:V.project,onRevive:()=>k(V.name),onDelete:()=>{g(V),f(!0)}})},{accessor:"description",header:"Description",searchable:!0}],[a]),{data:T,getSearchText:R,getSearchContext:P}=Yh(A,w,e),_=m.useMemo(()=>t?P9:T,[T,t]),[O]=m.useState(()=>({sortBy:[{id:v.get("sort")||r.id,desc:v.has("order")?v.get("order")==="desc":r.desc}],hiddenColumns:["description"],selectedRowIds:{}})),$=m.useCallback(V=>V.name,[]),{headerGroups:z,rows:L,state:{sortBy:B,selectedRowIds:Y},prepareRow:H,setHiddenColumns:ee}=Jt.useTable({columns:A,data:_,initialState:O,sortTypes:qo,autoResetHiddenColumns:!1,disableSortRemove:!0,autoResetSortBy:!1,getRowId:$},Jt.useFlexLayout,Jt.useSortBy,Jt.useRowSelect);return Od([{condition:s,columns:["type","createdAt"]},{condition:c,columns:["lastSeenAt","stale"]}],ee,A),m.useEffect(()=>{if(t)return;const V={};V.sort=B[0].id,B[0].desc&&(V.order="desc"),w&&(V.search=w),b(V,{replace:!0}),o({id:B[0].id,desc:B[0].desc||!1})},[t,B,w]),x(ve,{children:[x(yr,{isLoading:t,header:l(Tn,{titleElement:`${i} (${L.length<_.length?`${L.length} of ${_.length}`:_.length})`,actions:l(ko,{initialValue:w,onChange:S,hasFilters:!0,getSearchContext:P})}),children:[l(Ls,{value:R(w),children:l(A1,{rows:L,headerGroups:z,prepareRow:H})}),l(q,{condition:L.length===0,show:()=>l(q,{condition:(w==null?void 0:w.length)>0,show:x(ar,{children:["No feature toggles found matching “",w,"”"]}),elseShow:l(ar,{children:"None of the feature toggles were archived yet."})})}),l(GM,{deletedFeatures:[h==null?void 0:h.name],projectId:a??(h==null?void 0:h.project),open:p,setOpen:f,refetch:n})]}),l(q,{condition:!!a,show:l(IRe,{count:Object.keys(Y).length,children:l(ORe,{selectedIds:Object.keys(Y),projectId:a})})})]})},NRe={id:"createdAt"},{value:LRe,setValue:DRe}=Lc("FeaturesArchiveTable:v1",NRe),MRe=()=>{f9("Archive");const{archivedFeatures:e=[],loading:t,refetchArchived:n}=VM();return l($Re,{title:"Archive",archivedFeatures:e,loading:t,storedParams:LRe,setStoredParams:DRe,refetch:n})},BRe=m.lazy(()=>import("./AdvancedPlayground-4c9d02ea.js")),FRe=C(Ve)(({theme:e,selected:t})=>({"&.MuiButton-root":{cursor:"pointer",height:e.spacing(6.5),border:0,backgroundColor:t?e.palette.background.paper:"transparent",borderLeft:`${e.spacing(1)} solid ${t?e.palette.background.alternative:"transparent"}`,borderRadius:e.shape.borderRadiusMedium,justifyContent:"start",transition:"background-color 0.2s ease",color:e.palette.text.primary,textAlign:"left",padding:e.spacing(2,4),fontSize:e.fontSizes.bodySize,fontWeight:t?e.fontWeight.bold:e.fontWeight.medium,lineHeight:1.2},"&:hover":{backgroundColor:e.palette.neutral.light},"&.Mui-disabled":{pointerEvents:"auto"},"&:focus-visible":{outline:`2px solid ${e.palette.primary.main}`},justifyContent:"space-between","& > span":{borderTopLeftRadius:0,borderBottomLeftRadius:0}})),zRe=({label:e,selected:t,onClick:n})=>l(FRe,{selected:!!t,onClick:n,disableElevation:!0,disableFocusRipple:!0,fullWidth:!0,children:e}),jRe=C("div")(({theme:e})=>({display:"flex",gap:e.spacing(3),[e.breakpoints.down("md")]:{flexDirection:"column"}})),URe=C("div")(()=>({flexGrow:1,display:"flex",flexDirection:"column"})),WRe=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(1),width:e.spacing(30),flexShrink:0,[e.breakpoints.down("md")]:{width:"100%"}})),HRe=({tabs:e,value:t,onChange:n,children:r})=>x(jRe,{children:[l(WRe,{children:e.filter(o=>!o.hidden).map(o=>l(zRe,{label:o.label,selected:o.id===t,onClick:()=>n(o)},o.id))}),l(URe,{children:r})]}),qM=(e,t={})=>{const n=async()=>{const u=Rt(`api/admin/auth/${e}/settings`);return(await fetch(u,{method:"GET"}).then(bn("Auth settings"))).json()},r=`api/admin/auth/${e}/settings`,{data:o,error:i}=Pn(r,n,t),[a,s]=m.useState(!i&&!o),c=()=>{Jr(r)};return m.useEffect(()=>{s(!i&&!o)},[o,i]),{config:o||{},error:i,loading:a,refetch:c}},VRe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0});return{changePassword:async i=>{const a=t("api/admin/user/change-password",{method:"POST",body:JSON.stringify(i)});try{await e(a.caller,a.id)}catch(s){throw s}},errors:n,loading:r}},GRe=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(2),maxWidth:e.spacing(44)})),qRe=()=>{const{config:e,loading:t}=qM("simple"),[n,r]=m.useState(!1),{setToastData:o,setToastApiError:i}=$t(),[a,s]=m.useState(!1),[c,u]=m.useState(),[d,p]=m.useState(),[f,h]=m.useState(""),[g,v]=m.useState(""),[b,y]=m.useState(""),{changePassword:w}=VRe(),S=async k=>{if(k.preventDefault(),f===g){if(!a)u(Q9);else{r(!0),u(void 0),p(void 0);try{await w({password:f,confirmPassword:g,oldPassword:b}),o({title:"Password changed successfully",text:"Now you can sign in using your new password.",type:"success"})}catch(A){const T=gt(A);A instanceof R2?p(T):u(T),i(T)}}r(!1)}};return t?null:l(yr,{isLoading:n,header:"Change password",children:l(q,{condition:e.disabled,show:l(Vt,{severity:"error",children:"Password based login is currently disabled for your Unleash instance."}),elseShow:x(GRe,{children:[l(Z9,{password:f,callback:s,"data-loading":!0}),l(dc,{"data-loading":!0,label:"Old password",name:"oldPassword",value:b,error:!!d,helperText:d,autoComplete:"current-password",onChange:k=>y(k.target.value)}),l(dc,{"data-loading":!0,label:"Password",name:"password",value:f,error:!!c,helperText:c,autoComplete:"new-password",onChange:k=>h(k.target.value)}),l(dc,{"data-loading":!0,label:"Confirm password",name:"confirmPassword",value:g,autoComplete:"new-password",onChange:k=>v(k.target.value)}),l(tD,{"data-loading":!0,started:!!(f&&g),matchingPasswords:f===g}),l(Ve,{"data-loading":!0,variant:"contained",color:"primary",type:"submit",onClick:S,children:"Save"})]})})})},YRe="environment",KRe="project",YM="root",KM="project",XRe="root-custom",JRe="custom",QRe=[YM,KM],w8e=[YM,XRe],ZRe=[KM,JRe],e_e=10,QT=()=>{const{data:e,error:t,mutate:n}=Pn(Rt("api/admin/user/tokens"),t_e);return{tokens:e?e.pats:void 0,loading:!t&&!e,refetchTokens:()=>n(),error:t}},t_e=e=>fetch(e).then(bn("Personal API Tokens")).then(t=>t.json()),XM=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0});return{createPersonalAPIToken:async c=>{const u=t("api/admin/user/tokens",{method:"POST",body:JSON.stringify(c)});try{return await(await e(u.caller,u.id)).json()}catch(d){throw d}},deletePersonalAPIToken:async c=>{const u=t(`api/admin/user/tokens/${c}`,{method:"DELETE"});try{await e(u.caller,u.id)}catch(d){throw d}},createUserPersonalAPIToken:async(c,u)=>{const d=t(`api/admin/user-admin/${c}/pat`,{method:"POST",body:JSON.stringify(u)});try{return await(await e(d.caller,d.id)).json()}catch(p){throw p}},deleteUserPersonalAPIToken:async(c,u)=>{const d=t(`api/admin/user-admin/${c}/pat/${u}`,{method:"DELETE"});try{await e(d.caller,d.id)}catch(p){throw p}},errors:n,loading:r}},n_e=e=>{const t=new Date(e);return lh(t,"yyyy-MM-dd")},r_e=e=>{const t=new Date(e);return lh(t,"yyyy-MM-dd")+"T"+lh(t,"HH:mm")},o_e=({label:e,type:t="datetime",error:n,errorText:r,min:o,max:i,value:a,onChange:s,...c})=>{const u=t==="datetime"?r_e:n_e;return l(pn,{type:t==="datetime"?"datetime-local":"date",size:"small",variant:"outlined",label:e,error:n,helperText:r,value:u(a.toISOString()),onChange:p=>{const f=uD(p.target.value);s(f??a)},FormHelperTextProps:{"data-testid":Q6},inputProps:{min:o&&u(o.toISOString()),max:i&&u(i.toISOString())},...c})},V3=C("p")(({theme:e})=>({color:e.palette.text.secondary,marginBottom:e.spacing(1)})),i_e=C(rr)(({theme:e})=>({width:"100%",maxWidth:e.spacing(50),marginBottom:e.spacing(2)})),a_e=C("div")(({theme:e,custom:t})=>({display:"flex",alignItems:t?"start":"center",gap:e.spacing(1.5),marginBottom:e.spacing(2),[e.breakpoints.down("sm")]:{flexDirection:"column",alignItems:"flex-start"}})),s_e=C(Qh)(({theme:e})=>({minWidth:e.spacing(20),marginRight:e.spacing(.5),[e.breakpoints.down("sm")]:{width:e.spacing(50)}})),l_e=C(o_e)(({theme:e})=>({width:e.spacing(28),[e.breakpoints.down("sm")]:{width:e.spacing(50)}})),c_e=C(Vt)(({theme:e})=>({marginBottom:e.spacing(2),maxWidth:e.spacing(50)}));var JM=(e=>(e["7DAYS"]="7d",e["30DAYS"]="30d",e["60DAYS"]="60d",e.NEVER="never",e.CUSTOM="custom",e))(JM||{});const QM=[{key:"7d",days:7,label:"7 days"},{key:"30d",days:30,label:"30 days"},{key:"60d",days:60,label:"60 days"},{key:"never",label:"Never"},{key:"custom",label:"Custom"}],Mx=e=>{const t=new Date,n=QM.find(({key:r})=>r===e);return e==="never"?t.setFullYear(t.getFullYear()+1e3):e==="custom"?t.setMinutes(t.getMinutes()+30):n!=null&&n.days&&t.setDate(t.getDate()+n.days),t},u_e=({description:e,setDescription:t,isDescriptionUnique:n,expiration:r,setExpiration:o,expiresAt:i,setExpiresAt:a,errors:s,setErrors:c})=>{const{locationSettings:u}=es(),d=v=>{c(b=>({...b,[v]:void 0}))},p=(v,b)=>{c(y=>({...y,[v]:b}))};m.useEffect(()=>{d("expiresAt"),a(Mx(r))},[r]);const f=v=>{d("description"),n&&!n(v)&&p("description","A token with that description already exists."),t(v)},h=r==="custom",g=i.getFullYear()>new Date().getFullYear()+100;return x(ve,{children:[l(V3,{children:"Describe what this token will be used for"}),l(i_e,{autoFocus:!0,label:"Description",error:!!s.description,errorText:s.description,value:e,onChange:v=>f(v.target.value),required:!0}),l(V3,{children:"Token expiration date"}),x(a_e,{custom:h,children:[l(s_e,{name:"expiration",id:"expiration",label:"Token will expire in",value:r,onChange:v=>o(v.target.value),options:QM}),l(q,{condition:h,show:()=>l(l_e,{label:"Date",value:i,onChange:v=>{d("expiresAt"),v<new Date&&p("expiresAt","Invalid date, must be in the future"),a(v)},min:new Date,error:!!s.expiresAt,errorText:s.expiresAt,required:!0}),elseShow:l(q,{condition:g,show:x(se,{variant:"body2",children:["The token will ",l("strong",{children:"never"})," ","expire!"]}),elseShow:()=>x(se,{variant:"body2",children:["Token will expire on"," ",l("strong",{children:rd(i,u.locale)})]})})})]}),l(q,{condition:g,show:l(c_e,{severity:"warning",children:"We strongly recommend that you set an expiration date for your token to help keep your information secure."})})]})},d_e=C("form")(()=>({display:"flex",flexDirection:"column",height:"100%"})),p_e=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end",[e.breakpoints.down("sm")]:{marginTop:e.spacing(4)}})),f_e=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),wg=JM["30DAYS"],h_e=({open:e,setOpen:t,newToken:n})=>{const{tokens:r,refetchTokens:o}=QT(),{createPersonalAPIToken:i,loading:a}=XM(),{setToastApiError:s}=$t(),{uiConfig:c}=It(),[u,d]=m.useState(""),[p,f]=m.useState(wg),[h,g]=m.useState(Mx(wg)),[v,b]=m.useState({});m.useEffect(()=>{d(""),f(wg),g(Mx(wg)),b({})},[e]);const y=()=>({description:u,expiresAt:h}),w=async R=>{R.preventDefault();try{const P=await i(y());n(P),o(),t(!1)}catch(P){s(gt(P))}},S=()=>`curl --location --request POST '${c.unleashUrl}/api/admin/user/tokens' \\
357
+ --header 'Authorization: INSERT_API_KEY' \\
358
+ --header 'Content-Type: application/json' \\
359
+ --data-raw '${JSON.stringify(y(),void 0,2)}'`,k=R=>R.length,A=R=>!(r!=null&&r.some(P=>P.description===R)),T=k(u)&&A(u)&&h>new Date;return l(om,{open:e,onClose:()=>{t(!1)},label:"Create personal API token",children:l(Fr,{loading:a,modal:!0,title:"Create personal API token",description:`Use personal API tokens to authenticate to the Unleash API as
360
+ yourself. A personal API token has the same access privileges as
361
+ your user.`,documentationLink:"https://docs.getunleash.io/reference/api-tokens-and-client-keys",documentationLinkLabel:"Tokens documentation",formatApiCode:S,children:x(d_e,{onSubmit:w,children:[l("div",{children:l(u_e,{description:u,setDescription:d,isDescriptionUnique:A,expiration:p,setExpiration:f,expiresAt:h,setExpiresAt:g,errors:v,setErrors:b})}),x(p_e,{children:[l(Ve,{type:"submit",variant:"contained",color:"primary",disabled:!T,children:"Create token"}),l(f_e,{onClick:()=>{t(!1)},children:"Cancel"})]})]})})})},m_e=({open:e,setOpen:t,token:n})=>{const{refetchTokens:r}=QT(),{deletePersonalAPIToken:o}=XM(),{setToastData:i,setToastApiError:a}=$t();return l(vr,{open:e,primaryButtonText:"Delete token",secondaryButtonText:"Cancel",onClick:async()=>{if(n)try{await o(n==null?void 0:n.id),r(),t(!1),i({title:"Token deleted successfully",type:"success"})}catch(c){a(gt(c))}},onClose:()=>{t(!1)},title:"Delete token?",children:x(se,{children:['Any applications or scripts using this token "',l("strong",{children:n==null?void 0:n.description}),'" will no longer be able to access the Unleash API. You cannot undo this action.']})})},g_e=C(Vt)(({theme:e})=>({marginBottom:e.spacing(3)})),v_e=({open:e,setOpen:t,token:n})=>x(vr,{open:e,secondaryButtonText:"Close",onClose:(r,o)=>{o||t(!1)},title:"Personal API token created",children:[l(g_e,{severity:"info",children:"Make sure to copy your personal API token now. You won't be able to see it again!"}),l(se,{variant:"body1",children:"Your token:"}),l(UM,{token:(n==null?void 0:n.secret)||""})]}),ZM=({value:e,live:t=!1,emptyText:n,title:r,dateFormat:o=rd})=>{const{locationSettings:i}=es();if(!e)return l(Hn,{children:n});const a=o(e,i.locale);return l(Hn,{children:l(xt,{title:(r==null?void 0:r(a))??a,arrow:!0,children:l(se,{noWrap:!0,component:"span",variant:"body2","data-loading":!0,children:l(P1,{date:new Date(e),live:t,title:""})})})})},y_e=C(Vt)(({theme:e})=>({marginBottom:e.spacing(3)})),b_e=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(10,2)})),w_e=C(se)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(1.5)})),S_e=C(se)(({theme:e})=>({color:e.palette.text.secondary,marginBottom:e.spacing(4.5)})),x_e=Array(15).fill({description:"Short description of the feature",type:"-",createdAt:new Date(2022,1,1),project:"projectID"}),C_e={id:"createdAt"},{value:G3,setValue:E_e}=Lc("PersonalAPITokensTable:v1",C_e),T_e=()=>{const e=yn(),t=tr(e.breakpoints.down("md")),n=tr(e.breakpoints.down("sm")),{tokens:r=[],loading:o}=QT(),[i,a]=Sd(),[s]=m.useState(()=>({sortBy:[{id:i.get("sort")||G3.id,desc:i.has("order")?i.get("order")==="desc":G3.desc}],globalFilter:i.get("search")||""})),[c,u]=m.useState(s.globalFilter),[d,p]=m.useState(!1),[f,h]=m.useState(!1),[g,v]=m.useState(!1),[b,y]=m.useState(),[w,S]=m.useState(),k=m.useMemo(()=>[{Header:"Description",accessor:"description",Cell:bs,minWidth:100,searchable:!0},{Header:"Expires",accessor:"expiresAt",Cell:({value:B})=>new Date(B).getFullYear()>new Date().getFullYear()+100?l(Hn,{children:"Never"}):l(ch,{value:B}),sortType:"date",maxWidth:150},{Header:"Created",accessor:"createdAt",Cell:ch,sortType:"date",maxWidth:150},{Header:"Last seen",accessor:"seenAt",Cell:ZM,sortType:"date",maxWidth:150},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:B}})=>l(da,{children:l(xt,{title:"Delete token",arrow:!0,describeChild:!0,children:l("span",{children:l(jt,{onClick:()=>{S(B),v(!0)},children:l(vo,{})})})})}),maxWidth:100,disableSortBy:!0}],[S,v]),{data:A,getSearchText:T,getSearchContext:R}=Yh(k,c,r),P=m.useMemo(()=>(A==null?void 0:A.length)===0&&o?x_e:A,[A,o]),{headerGroups:_,rows:O,prepareRow:$,state:{sortBy:z},setHiddenColumns:L}=Jt.useTable({columns:k,data:P,initialState:s,sortTypes:qo,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0},Jt.useSortBy,Jt.useFlexLayout);return Od([{condition:n,columns:["expiresAt"]},{condition:t,columns:["createdAt"]}],L,k),m.useEffect(()=>{const B={};B.sort=z[0].id,z[0].desc&&(B.order="desc"),c&&(B.search=c),a(B,{replace:!0}),E_e({id:z[0].id,desc:z[0].desc||!1})},[z,c,a]),x(yr,{isLoading:o,header:l(Tn,{title:`Personal API tokens (${O.length<P.length?`${O.length} of ${P.length}`:P.length})`,actions:x(ve,{children:[l(q,{condition:!t,show:x(ve,{children:[l(ko,{initialValue:c,onChange:u,getSearchContext:R}),l(Tn.Divider,{})]})}),l(Ve,{variant:"contained",color:"primary",disabled:r.length>=e_e,onClick:()=>p(!0),children:"New token"})]}),children:l(q,{condition:t,show:l(ko,{initialValue:c,onChange:u,hasFilters:!0,getSearchContext:R})})}),children:[l(y_e,{severity:"info",children:"Use personal API tokens to authenticate to the Unleash API as yourself. A personal API token has the same access privileges as your user."}),l(Ls,{value:T(c),children:l(A1,{rows:O,headerGroups:_,prepareRow:$})}),l(q,{condition:O.length===0,show:l(q,{condition:(c==null?void 0:c.length)>0,show:x(ar,{children:["No tokens found matching “",c,"”"]}),elseShow:x(b_e,{children:[l(w_e,{children:"You have no personal API tokens yet."}),l(S_e,{variant:"body2",children:"Need an API token for scripts or testing? Create a personal API token for quick access to the Unleash API."}),l(Ve,{variant:"outlined",onClick:()=>p(!0),children:"Create your first token"})]})})}),l(h_e,{open:d,setOpen:p,newToken:B=>{y(B),h(!0)}}),l(v_e,{open:f,setOpen:h,token:b}),l(m_e,{open:g,setOpen:v,token:w})]})},k_e=()=>{const{data:e,error:t,mutate:n}=Pn(Rt("api/admin/user/profile"),A_e);return{profile:e,loading:!t&&!e,refetchProfile:()=>n(),error:t}},A_e=e=>fetch(e).then(bn("Profile")).then(t=>t.json());var ZT={},R_e=An;Object.defineProperty(ZT,"__esModule",{value:!0});var eB=ZT.default=void 0,__e=R_e(Rn()),P_e=_n,I_e=(0,__e.default)((0,P_e.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16.77c.68 0 1.23-.56 1.23-1.23V8c0-1.1-.9-2-2-2zm0 12H4V6h5.17l2 2H20v10zm-2-6H6v-2h12v2zm-4 4H6v-2h8v2z"}),"TopicOutlined");eB=ZT.default=I_e;const tB=(e,t={})=>{const{isEnterprise:n}=It(),{data:r,error:o,mutate:i}=Mc(!!e&&n(),void 0,Rt(`api/admin/roles/${e}`),O_e,t);return m.useMemo(()=>({role:r,loading:!o&&!r,refetch:()=>i(),error:o}),[r,o,i])},O_e=e=>fetch(e).then(bn("Role")).then(t=>t.json()),hc=e=>e.environment?`${e.id}-${e.environment}`:`${e.id}`,S8e=e=>e.reduce((t,n)=>(t[hc(n)]=n,t),{}),x8e=(e,t)=>{let n=rm(e);return n[hc(t)]?delete n[hc(t)]:n[hc(t)]={...t},n},C8e=(e,t)=>{let n=rm(e);return t.every(o=>n[hc(o)])?t.forEach(o=>{delete n[hc(o)]}):t.forEach(o=>{n[hc(o)]={...o}}),n},$_e=e=>e.filter(({name:n})=>n!=="ADMIN").reduce((n,r)=>{var a;const o=((a=CTe.find(s=>s.permissions.includes(r.name)))==null?void 0:a.label)||"Other",i=n.find(({label:s})=>s===o);return i?i.permissions.push(r):n.push({label:o,type:"root",permissions:[r]}),n},[]).sort(L_e),N_e=e=>{const t=e.filter(({type:o})=>o===KRe),n=e.filter(({type:o})=>o===YRe),r=[];return t.length&&r.push({label:"Project",type:"project",permissions:t}),r.push(...n.reduce((o,i)=>{const a=i.environment,s=o.find(({label:c})=>c===a);return s?s.permissions.push(i):o.push({label:a,type:"environment",permissions:[i]}),o},[])),r},E8e=(e,t)=>[...e,...t.flatMap(({permissions:n})=>n)],L_e=({label:e},{label:t})=>e==="Other"&&t!=="Other"?1:e!=="Other"&&t==="Other"?-1:e.localeCompare(t),D_e=C("div",{shouldForwardProp:e=>e!=="tooltip"})(({theme:e,tooltip:t})=>({width:"100%",maxWidth:e.spacing(50),padding:t?e.spacing(1):e.spacing(3),backgroundColor:t?e.palette.background.paper:e.palette.neutral.light,color:e.palette.text.secondary,fontSize:e.fontSizes.smallBody,borderRadius:e.shape.borderRadiusMedium})),M_e=C("div")(({theme:e})=>({marginTop:e.spacing(2)})),q3=C("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:e.fontSizes.smallBody,fontWeight:e.fontWeight.bold,marginBottom:e.spacing(1)})),B_e=C("p")(({theme:e})=>({fontSize:e.fontSizes.smallBody,marginTop:e.spacing(1)})),F_e=({roleId:e,tooltip:t,...n})=>{const{role:r}=tB(e.toString());if(!r)return null;const{name:o,description:i,permissions:a,type:s}=r,u=ZRe.includes(s)?N_e(a):$_e(a);return x(D_e,{tooltip:t,...n,children:[l(q3,{sx:{mb:0},children:o}),l(B_e,{children:i}),l(q,{condition:!QRe.includes(r.type),show:()=>u.map(({label:d,permissions:p})=>x(M_e,{children:[l(q3,{children:d}),p.map(f=>l("p",{children:f.displayName},f.id))]},d))})]})},z_e=({roleId:e,children:t})=>{const{role:n}=tB(e.toString());return n?l(Dc,{title:l(F_e,{roleId:e,tooltip:!0}),arrow:!0,children:l(qt,{color:"success",icon:l(IP,{}),sx:{cursor:"pointer"},children:n.name})}):t?l(qt,{color:"success",icon:l(IP,{}),children:t}):null},j_e=C("div")(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",padding:e.spacing(6),borderRadius:e.shape.borderRadiusLarge,backgroundColor:e.palette.background.alternative,color:e.palette.primary.contrastText,marginBottom:e.spacing(3),boxShadow:e.boxShadows.primaryHeader})),U_e=C("div")(()=>({flexGrow:1})),W_e=C(se)(({theme:e})=>({fontSize:e.spacing(3.75)})),H_e=C(y2)(({theme:e})=>({width:e.spacing(9.5),height:e.spacing(9.5),marginRight:e.spacing(3)})),Y3=C(se)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(3)})),V_e=C("div")(({theme:e})=>({display:"flex",flexDirection:"row","& > div > p":{marginBottom:e.spacing(1.5)}})),G_e=C(qt)(({theme:e})=>({cursor:"pointer",marginRight:e.spacing(1)})),q_e=C("div")(({theme:e})=>({width:"100%",height:"1px",backgroundColor:e.palette.divider,margin:e.spacing(3,0)})),Y_e=C($s)(({theme:e})=>({marginTop:e.spacing(1.5),width:e.spacing(30)})),K_e=C(zh)(({theme:e})=>({backgroundColor:e.palette.background.paper})),X_e=({user:e})=>{const{profile:t}=k_e(),n=pt(),{locationSettings:r,setLocationSettings:o}=es(),[i,a]=m.useState(),[s,c]=m.useState(["en-US","en-GB","nb-NO","sv-SE","da-DK","en-IN","de","cs","pt-BR","fr-FR"]);m.useEffect(()=>{const d=s.find(p=>p.toLowerCase().includes(r.locale.toLowerCase()));a(d),d||c(p=>[...p,r.locale])},[r]);const u=d=>{const p=d.target.value;a(p),o({locale:p})};return x(ve,{children:[x(j_e,{children:[l(H_e,{user:e}),x(U_e,{children:[l(W_e,{children:e.name||e.username}),l(se,{variant:"body1",children:e.email})]})]}),x(yr,{children:[l(Y3,{children:"Access"}),x(V_e,{children:[l($e,{sx:{width:"50%"},children:l(q,{condition:!!(t!=null&&t.rootRole),show:()=>x(ve,{children:[l(se,{variant:"body2",children:"Your root role"}),l(z_e,{roleId:t==null?void 0:t.rootRole.id,children:t==null?void 0:t.rootRole.name})]})})}),x($e,{children:[l(se,{variant:"body2",children:"Projects"}),l(q,{condition:!!(t!=null&&t.projects.length),show:t==null?void 0:t.projects.map(d=>l(xt,{title:"View project",arrow:!0,placement:"bottom-end",describeChild:!0,children:l(G_e,{onClick:p=>{p.preventDefault(),n(`/projects/${d}`)},color:"secondary",icon:l(eB,{}),children:d})},d)),elseShow:l(xt,{title:"You are not assigned to any projects",arrow:!0,describeChild:!0,children:l(qt,{children:"No projects"})})})]})]}),l(q_e,{}),l(Y3,{children:"Settings"}),l(se,{variant:"body2",children:"This is the format used across the system for time and date"}),x(Y_e,{variant:"outlined",size:"small",children:[l(K_e,{htmlFor:"locale-select",children:"Date/Time formatting"}),l(jh,{id:"locale-select",value:i||"",native:!0,onChange:u,MenuProps:{style:{zIndex:9999}},children:s.map(d=>l("option",{value:d,children:d},d))})]})]})]})},J_e=()=>{const{user:e}=vi(),t=Ro(),n=pt(),{config:r,loading:o}=qM("simple"),{uiConfig:i}=It(),a=[{id:"profile",label:"Profile"},{id:"password",label:"Change password",path:"change-password",hidden:r.disabled},{id:"pat",label:"Personal API tokens",path:"personal-api-tokens",hidden:i.flags.personalAccessTokensKillSwitch}],s=p=>{n(p.path?`/profile/${p.path}`:"/profile",{replace:!0}),d(p.id)},c=()=>{const p=t.pathname;return(a.find(({path:h})=>h&&p.includes(h))||a[0]).id},[u,d]=m.useState(c());return m.useEffect(()=>{d(c())},[t]),o?null:x(HRe,{tabs:a,value:u,onChange:s,children:[l(q,{condition:u==="profile",show:l(X_e,{user:e})}),l(q,{condition:u==="password",show:l(qRe,{})}),l(q,{condition:u==="pat",show:l(T_e,{})})]})},Q_e=m.lazy(()=>import("./CreateProject-16b35d57.js")),Z_e=m.lazy(()=>import("./FeatureViewLazyExport-47bb7f13.js")),ePe=m.lazy(()=>import("./LazyAdminExport-8ef0ca21.js")),tPe=m.lazy(()=>import("./LazyProjectExport-49541c75.js")),nPe=()=>l($c,{to:"/admin/users",replace:!0}),rPe=()=>{const{isEnterprise:e}=It(),{data:t,error:n,mutate:r}=Mc(e(),{events:[]},Rt("api/admin/logins"),oPe);return m.useMemo(()=>({events:(t==null?void 0:t.events)??[],loading:!n&&!t,refetch:()=>r(),error:n}),[t,n,r])},oPe=e=>fetch(e).then(bn("Login History")).then(t=>t.json()),K3=C($e)(()=>({display:"flex",justifyContent:"center"})),iPe=({row:e,value:t})=>{const{searchQuery:n}=Ol();return t?l(K3,{children:l(qt,{color:"success",children:"True"})}):l(K3,{children:l(Dc,{arrow:!0,title:l(Ya,{search:n,children:e.original.failure_reason}),children:l(qt,{color:"error",children:"False"})})})},aPe=()=>{const{loading:e,makeRequest:t,createRequest:n,errors:r}=Vn({propagateErrors:!0});return{downloadCSV:async()=>{const a=n("api/admin/logins",{method:"GET",responseType:"blob",headers:{Accept:"text/csv"}},"downloadCSV"),s=await(await t(a.caller,a.id)).blob(),c=window.URL.createObjectURL(s);window.location.assign(c)},errors:r,loading:e}},sPe={id:"created_at"},{value:X3,setValue:lPe}=Lc("LoginHistoryTable:v1",sPe),cPe={simple:"Password",oidc:"OIDC",saml:"SAML",google:"Google"},uPe=()=>{const{events:e,loading:t}=rPe(),{downloadCSV:n}=aPe(),[r,o]=Sd(),[i]=m.useState(()=>({sortBy:[{id:r.get("sort")||X3.id,desc:r.has("order")?r.get("order")==="desc":X3.desc}],hiddenColumns:["failure_reason"],globalFilter:r.get("search")||""})),[a,s]=m.useState(i.globalFilter),c=tr(ua.breakpoints.down("sm")),u=tr(ua.breakpoints.down("md")),d=m.useMemo(()=>[{Header:"Created",accessor:"created_at",Cell:({value:S})=>l(ZM,{value:S,dateFormat:_1}),sortType:"date",maxWidth:150},{Header:"Username",accessor:"username",minWidth:100,Cell:bs,searchable:!0},{Header:"Authentication",accessor:S=>cPe[S.auth_type]||S.auth_type,width:150,maxWidth:150,Cell:bs,searchable:!0,filterName:"auth"},{Header:"IP address",accessor:"ip",Cell:bs,searchable:!0},{Header:"Success",accessor:"successful",align:"center",Cell:iPe,filterName:"success",filterParsing:S=>S.toString()},{accessor:"failure_reason",Header:"Failure Reason",searchable:!0}],[]),{data:p,getSearchText:f,getSearchContext:h}=Yh(d,a,e),{headerGroups:g,rows:v,prepareRow:b,state:{sortBy:y},setHiddenColumns:w}=Jt.useTable({columns:d,data:p,initialState:i,sortTypes:qo,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0,defaultColumn:{Cell:Hn}},Jt.useSortBy,Jt.useFlexLayout);return Od([{condition:c,columns:["role","seenAt"]},{condition:u,columns:["imageUrl","tokens","createdAt"]}],w,d),m.useEffect(()=>{const S={};S.sort=y[0].id,y[0].desc&&(S.order="desc"),a&&(S.search=a),o(S,{replace:!0}),lPe({id:y[0].id,desc:y[0].desc||!1})},[y,a,o]),x(yr,{isLoading:t,header:l(Tn,{title:`Login history (${v.length})`,actions:x(ve,{children:[l(q,{condition:!u,show:l(ko,{initialValue:a,onChange:s,hasFilters:!0,getSearchContext:h})}),l(q,{condition:v.length>0,show:x(ve,{children:[l(q,{condition:!u,show:l(Tn.Divider,{})}),l(xt,{title:"Download login history",arrow:!0,children:l(jt,{onClick:n,children:l(Ile,{})})})]})})]}),children:l(q,{condition:u,show:l(ko,{initialValue:a,onChange:s,hasFilters:!0,getSearchContext:h})})}),children:[l(Ls,{value:f(a),children:l(A1,{rows:v,headerGroups:g,prepareRow:b})}),l(q,{condition:v.length===0,show:l(q,{condition:(a==null?void 0:a.length)>0,show:x(ar,{children:["No login events found matching “",a,"”"]}),elseShow:l(ar,{children:"No login events available."})})})]})},dPe=()=>l("div",{children:l(PM,{permissions:yi,children:l(uPe,{})})}),pPe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0});return{updateFeatureTypeLifetime:async(i,a)=>{const s={lifetimeDays:a},c=`api/admin/feature-types/${i}/lifetime`,u=t(c,{method:"PUT",body:JSON.stringify(s)});try{await e(u.caller,u.id)}catch(d){throw d}},errors:n,loading:r}},fPe=C("div")(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",padding:e.spacing(4),position:"fixed",inset:0,backgroundColor:e.palette.background.paper,width:"100%"})),hPe=C(tL)(({theme:e})=>({height:"80px"})),mPe=C("div")(({theme:e})=>({display:"flex",position:"relative"})),gPe=C("div")(({theme:e})=>({marginTop:e.spacing(4)})),vPe=C(Ve)(({theme:e})=>({height:"150px",width:"150px",position:"absolute",right:100,top:45})),nB=({children:e})=>{const t=pt();return x(fPe,{children:[x("div",{children:[l(hPe,{}),l(mPe,{children:l(se,{variant:"h1",style:{fontSize:"2rem"},children:"Ooops. That's a page we haven't toggled on yet."})}),x(gPe,{children:[l(Ve,{variant:"contained",color:"primary",onClick:()=>{t(yo)},children:"Go back"}),l(vPe,{onClick:()=>{t("/")},children:"Go home"})]})]}),e]})},yPe=C($e)(({theme:e})=>({display:"flex",justifyContent:"flex-end",marginTop:"auto",gap:e.spacing(2),paddingTop:e.spacing(4)})),bPe=C($e)(()=>({display:"flex",flexDirection:"column",flexGrow:1})),wPe=({featureType:e,loading:t})=>{const n=pt(),{uiConfig:r}=It(),{refetch:o}=qh(),{updateFeatureTypeLifetime:i,loading:a}=pPe(),[s,c]=m.useState((e==null?void 0:e.lifetimeDays)||0),[u,d]=m.useState(!(e!=null&&e.lifetimeDays)),{setToastData:p,setToastApiError:f}=$t(),h=br(),g=S=>{const k=parseInt(As(S.target.value),10);c(k),k===0&&d(!0)},v=S=>{d(S.target.checked),s===0&&c((e==null?void 0:e.lifetimeDays)||1)},b=!u&&(Number.isNaN(s)||s<0),y=async S=>{S.preventDefault();try{if(!(e!=null&&e.id))throw new Error("No feature toggle type loaded");const k=u?0:s;await i(e==null?void 0:e.id,k),o(),p({title:"Feature type updated",type:"success"}),n("/feature-toggle-type"),h.trackEvent("feature-type-edit")}catch(k){f(gt(k))}},w=m.useCallback(()=>[`curl --location --request PUT '${r.unleashUrl}/api/admin/feature-types/${e==null?void 0:e.id}/lifetime`,"--header 'Authorization: INSERT_API_KEY'","--header 'Content-Type: application/json'",`--data-raw '{
362
+ "lifetimeDays": 7
363
+ }'`].join(` \\
364
+ `),[r,e==null?void 0:e.id]);return!t&&!e?l(nB,{children:l("div",{"data-testid":"404_NOT_FOUND"})}):l(Fr,{modal:!0,title:t?"Edit toggle type":`Edit toggle type: ${e==null?void 0:e.name}`,description:(e==null?void 0:e.description)||"",documentationLink:"https://docs.getunleash.io/reference/feature-toggle-types",documentationLinkLabel:"Feature toggle types documentation",formatApiCode:w,children:x(bPe,{component:"form",onSubmit:y,children:[x(se,{sx:S=>({margin:S.spacing(3,0,1),display:"flex",alignItems:"center"}),children:[l($e,{component:"label",htmlFor:"feature-toggle-lifetime",children:"Expected lifetime"}),l(Xa,{htmlTooltip:!0,tooltip:x(ve,{children:[l("p",{children:"If your toggle exceeded lifetime of it's type it will be marked as potencially stale."}),l("br",{}),l("a",{href:"https://docs.getunleash.io/reference/feature-toggle-types#expected-lifetime",target:"_blank",rel:"noreferrer",children:"Read more in the documentation"})]})})]}),x($e,{component:"label",sx:S=>({display:"flex",alignItems:"center",cursor:"pointer",marginBottom:S.spacing(1),marginRight:"auto"}),htmlFor:"feature-toggle-expire",children:[l(pa,{checked:u||s===0,id:"feature-toggle-expire",onChange:v,disabled:t}),l($e,{children:"doesn't expire"})]}),l(rr,{autoFocus:!0,disabled:u||t,type:"number",label:"Lifetime in days",id:"feature-toggle-lifetime",value:u?"0":`${s}`,onChange:g,error:b}),x(yPe,{children:[l(Po,{permission:yi,variant:"contained",color:"primary",type:"submit",disabled:t||a,children:"Save feature toggle type"}),l(Ve,{type:"button",color:"primary",onClick:()=>n(yo),children:"Cancel"})]})]})})},SPe=({featureTypes:e,loading:t})=>{const{featureTypeId:n}=J$(),r=e.find(o=>o.id===n);return l(wPe,{featureType:r,loading:t})},xPe="/feature-toggle-type",CPe=()=>{const{featureTypes:e,loading:t}=qh(),n=pt(),r=m.useMemo(()=>[{accessor:"id",Cell:({value:d})=>{const p=d9(d);return l(Xh,{icon:l(p,{"data-loading":"true",color:"action"})})},width:50,disableSortBy:!0},{Header:"Name",accessor:"name",width:"90%",Cell:({row:{original:{name:d,description:p}}})=>l(Ts,{"data-loading":!0,title:d,subtitle:p}),sortType:"alphanumeric"},{Header:"Lifetime",accessor:"lifetimeDays",Cell:({value:d})=>d?l(Hn,{children:d===1?"1 day":`${d} days`}):l(Hn,{children:"doesn't expire"}),minWidth:150,sortType:"numericZeroLast"},{Header:"Actions",Cell:({row:{original:d}})=>l($e,{sx:p=>({padding:p.spacing(.5,0)}),children:l(da,{children:l($r,{disabled:!d.id,"data-loading":"true",onClick:()=>n(`/feature-toggle-type/edit/${d.id}`),permission:yi,tooltipProps:{title:`Edit ${d.name} feature toggle type`},children:l(di,{})})})}),disableSortBy:!0}],[n]),o=m.useMemo(()=>t?Array(5).fill({id:"",name:"Loading...",description:"Loading...",lifetimeDays:1}):e,[t,e]),{getTableProps:i,getTableBodyProps:a,headerGroups:s,rows:c,prepareRow:u}=Jt.useTable({columns:r,data:o,sortTypes:qo,autoResetSortBy:!1,disableSortRemove:!0,initialState:{sortBy:[{id:"lifetimeDays"}]}},Jt.useSortBy);return x(yr,{isLoading:t,header:l(Tn,{children:l(se,{component:"h2",sx:d=>({fontSize:d.fontSizes.mainHeader}),children:"Feature toggle types"})}),children:[x(Gi,{...i(),children:[l(Vi,{headerGroups:s}),l(Wi,{...a(),children:c.map(d=>(u(d),l(ui,{hover:!0,...d.getRowProps(),children:d.cells.map(p=>l(pi,{...p.getCellProps(),children:p.render("Cell")}))})))})]}),l(Z$,{children:l(hf,{path:"edit/:featureTypeId",element:l(om,{label:"Edit feature toggle type",onClose:()=>n(xPe),open:!0,children:l(SPe,{featureTypes:e,loading:t})})})})]})},bh=[{path:"/splash/:splashId",title:"Unleash",component:yke,type:"protected",menu:{},isStandalone:!0},{path:"/projects/create",parent:"/projects",title:"Create",component:Q_e,type:"protected",enterprise:!0,menu:{}},{path:"/projects/:projectId/edit",parent:"/projects",title:":projectId",component:OEe,type:"protected",enterprise:!0,menu:{}},{path:"/projects/:projectId/archived",title:":projectId",parent:"/archive",component:Ive,type:"protected",menu:{}},{path:"/projects/:projectId/features/:featureId/:activeTab/copy",parent:"/projects/:projectId/features/:featureId/:activeTab",title:"Copy",component:J2e,type:"protected",menu:{}},{path:"/projects/:projectId/features/:featureId/edit",parent:"/projects",title:"Edit feature",component:s2e,type:"protected",menu:{}},{path:"/projects/:projectId/features/:featureId/*",parent:"/projects",title:"FeatureView",component:Z_e,type:"protected",menu:{}},{path:"/projects/:projectId/create-toggle",parent:"/projects/:projectId/features",title:"Create feature toggle",component:GEe,type:"protected",menu:{}},{path:"/projects/:projectId/features2/:featureId",parent:"/features",title:":featureId",component:O3,type:"protected",menu:{}},{path:"/projects/:projectId/*",parent:"/projects",title:":projectId",component:tPe,flag:vge,type:"protected",menu:{}},{path:"/projects",title:"Projects",component:Pve,type:"protected",menu:{mobile:!0}},{path:"/features/:activeTab/:featureId",parent:"/features",title:":featureId",component:O3,type:"protected",menu:{}},{path:"/features",title:"Feature toggles",component:Ofe,type:"protected",menu:{mobile:!0}},{path:"/playground",title:"Playground",component:BRe,hidden:!1,type:"protected",menu:{mobile:!0}},{path:"/applications/:name",title:":name",parent:"/applications",component:f2e,type:"protected",menu:{}},{path:"/applications",title:"Applications",component:h2e,type:"protected",menu:{mobile:!0,advanced:!0}},{path:"/context/create",parent:"/context",title:"Create",component:Ske,type:"protected",menu:{}},{path:"/context/edit/:name",parent:"/context",title:":name",component:oEe,type:"protected",menu:{}},{path:"/context",title:"Context fields",component:v2e,type:"protected",menu:{mobile:!0,advanced:!0}},{path:"/feature-toggle-type/*",title:"Feature toggle types",component:CPe,type:"protected",menu:{mobile:!0,advanced:!0},flag:"configurableFeatureTypeLifetimes"},{path:"/strategies/create",title:"Create",parent:"/strategies",component:nke,type:"protected",menu:{}},{path:"/strategies/:name/edit",title:":name",parent:"/strategies",component:rke,type:"protected",menu:{}},{path:"/strategies/:name",title:":name",parent:"/strategies",component:yhe,type:"protected",menu:{}},{path:"/strategies",title:"Strategy types",component:nme,type:"protected",menu:{mobile:!0,advanced:!0}},{path:"/environments/create",title:"Environments",component:Sye,parent:"/environments",type:"protected",menu:{}},{path:"/environments/:id",title:"Edit",component:Eye,type:"protected",menu:{}},{path:"/environments",title:"Environments",component:JAe,type:"protected",flag:yge,menu:{mobile:!0,advanced:!0}},{path:"/tag-types/create",parent:"/tag-types",title:"Create",component:hEe,type:"protected",menu:{}},{path:"/tag-types/edit/:name",parent:"/tag-types",title:":name",component:fEe,type:"protected",menu:{}},{path:"/tag-types",title:"Tag types",component:ime,type:"protected",menu:{mobile:!0,advanced:!0}},{path:"/addons/create/:providerId",parent:"/addons",title:"Create",component:U2e,type:"protected",menu:{}},{path:"/addons/edit/:addonId",parent:"/addons",title:"Edit",component:W2e,type:"protected",menu:{}},{path:"/addons",title:"Addons",component:wme,hidden:!1,type:"protected",menu:{mobile:!0,advanced:!0}},{path:"/segments/create",title:"Segments",component:nAe,hidden:!1,type:"protected",layout:"main",menu:{},flag:Jb},{path:"/segments/edit/:segmentId",title:"Segments",component:iAe,hidden:!1,type:"protected",layout:"main",menu:{},flag:Jb},{path:"/segments",title:"Segments",component:mRe,hidden:!1,type:"protected",menu:{mobile:!0,advanced:!0},flag:Jb},{path:"/history",title:"Event log",component:FTe,type:"protected",menu:{adminSettings:!0}},{path:"/admin/logins",title:"Login history",component:dPe,type:"protected",menu:{adminSettings:!0}},{path:"/archive",title:"Archived toggles",component:MRe,type:"protected",menu:{}},{path:"/admin",title:"Admin",component:nPe,hidden:!1,type:"protected",menu:{}},{path:"/admin/*",title:"Admin",component:ePe,hidden:!1,type:"protected",menu:{}},{path:"/profile/*",title:"Profile",component:J_e,type:"protected",menu:{}},{path:"/login",title:"Log in",component:gge,type:"unprotected",hidden:!0,menu:{},isStandalone:!0},{path:"/new-user",title:"New user",hidden:!0,component:Vge,type:"unprotected",menu:{},isStandalone:!0},{path:"/reset-password",title:"Reset password",hidden:!0,component:Yge,type:"unprotected",menu:{},isStandalone:!0},{path:"/forgotten-password",title:"Forgotten password",hidden:!0,component:tve,type:"unprotected",menu:{},isStandalone:!0}],EPe=[{path:"/admin/users",title:"Users",menu:{adminSettings:!0}},{path:"/admin/service-accounts",title:"Service accounts",menu:{adminSettings:!0,mode:["enterprise"]}},{path:"/admin/groups",title:"Groups",menu:{adminSettings:!0,mode:["enterprise"]},flag:bge},{path:"/admin/roles/*",title:"Roles",menu:{adminSettings:!0,mode:["enterprise"]}},{path:"/admin/cors",title:"CORS origins",flag:"embedProxyFrontend",menu:{adminSettings:!0}},{path:"/admin/auth",title:"Single sign-on",menu:{adminSettings:!0}},{path:"/admin/instance",title:"Instance stats",menu:{adminSettings:!0}},{path:"/admin/network/*",title:"Network",menu:{adminSettings:!0,mode:["pro","enterprise"]},configFlag:"networkViewEnabled"},{path:"/admin/maintenance",title:"Maintenance",menu:{adminSettings:!0}},{path:"/admin/admin-invoices",title:"Billing & invoices",menu:{adminSettings:!0,mode:["pro"]}},{path:"/admin/instance-privacy",title:"Instance privacy",menu:{adminSettings:!0}},{path:"/history",title:"Event log",menu:{adminSettings:!0}},{path:"/admin/logins",title:"Login history",menu:{adminSettings:!0,mode:["enterprise"]}}],TPe=bh.filter(e=>!e.hidden),kPe=()=>{const e=TPe.filter(o=>o.menu.advanced),t=bh.filter(o=>o.menu.adminSettings),n=bh.filter(o=>o.menu.mobile),r={mainNavRoutes:e,adminRoutes:t,mobileRoutes:n};return()=>r},J3=e=>e.map(t=>({path:t.path,flag:t.flag,title:t.title,menu:t.menu,configFlag:t.configFlag})),APe=kPe(),RPe=(e={})=>{const t=Rt("api/admin/notifications"),{data:n,error:r,mutate:o}=Pn(t,_Pe,e),i=m.useCallback(()=>{o().catch(console.warn)},[o]);return{notifications:n,error:r,loading:!r&&!n,refetchNotifications:i,mutateNotifications:o}},_Pe=async e=>await(await fetch(e).then(bn("Notifications"))).json();var ek={},PPe=An;Object.defineProperty(ek,"__esModule",{value:!0});var tk=ek.default=void 0,IPe=PPe(Rn()),OPe=_n,$Pe=(0,IPe.default)((0,OPe.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),"Notifications");tk=ek.default=$Pe;const NPe=C($e)(({theme:e})=>({padding:e.spacing(1,1.5,1,3),display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",boxShadow:e.boxShadows.separator})),LPe=({children:e})=>l(ve,{children:x(NPe,{children:[l(se,{fontWeight:"bold",children:"Notifications"}),e]})}),DPe=C(ca)(({theme:e})=>({padding:e.spacing(1,1,3,1)})),MPe=({children:e})=>l(DPe,{"data-testid":"NOTIFICATIONS_LIST",children:e}),BPe=e=>m.createElement("svg",{width:18,height:14,viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M0.59 2.00016L2 0.590157L5.41 4.00016L4 5.41016L0.59 2.00016ZM13 11.5002L13 8.00016L7.41 8.00016L2 13.4102L0.59 12.0002L6.59 6.00016L13 6.00016L13 2.50016L17.5 7.00016L13 11.5002Z",fill:"currentColor"})),Q3=C($e,{shouldForwardProp:e=>e!=="readAt"})(({theme:e,readAt:t})=>({padding:e.spacing(.5),marginRight:e.spacing(1.5),backgroundColor:t?e.palette.neutral.light:e.palette.secondary.light,width:"30px",height:"30px",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:`${e.shape.borderRadius}px`,top:3,left:7})),FPe=C(rte)(({theme:e})=>({position:"relative",cursor:"pointer",padding:e.spacing(2.5,2,3,2),borderRadius:e.shape.borderRadiusMedium,width:"100%","&:after":{content:'""',width:`calc(100% - ${e.spacing(4)})`,height:"1px",position:"absolute",bottom:0,backgroundColor:e.palette.divider}})),zPe=C($e)(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%"})),jPe=C($e)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",margin:e.spacing(1,0,0,5.25)})),UPe=C(se,{shouldForwardProp:e=>e!=="readAt"})(({theme:e,readAt:t})=>({display:"flex",alignItems:"center",fontSize:e.fontSizes.smallBody,fontWeight:t?"normal":"bold",textDecoration:"none",color:"inherit",wordBreak:"break-all"})),WPe=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallerBody,color:e.palette.neutral.main})),HPe=C($e)(({theme:e})=>({...Nc})),VPe=C(Rd)(({theme:e})=>({width:"18px",height:"18px"})),GPe=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.neutral.main,marginLeft:e.spacing(1)})),qPe=({notification:e,onNotificationClick:t})=>{const n=yn(),{readAt:r}=e;return l(FPe,{onClick:()=>t(e),children:x(zPe,{children:[x(UPe,{readAt:!!r,children:[(i=>{if(i==="change-request")return l(Q3,{readAt:!!r,children:l(BPe,{color:e.readAt?n.palette.neutral.main:n.palette.primary.main,style:{transform:"scale(0.8)"}})});if(i==="toggle")return l(Q3,{readAt:!!r,children:l(Xle,{sx:a=>({height:"20px",width:"20px",color:r?a.palette.neutral.main:a.palette.primary.main})})})})(e.notificationType)," ",e.message]}),x(jPe,{children:[x(HPe,{children:[l(VPe,{src:e.createdBy.imageUrl||""}),x(GPe,{children:["Created by ",e.createdBy.username]})]}),l(WPe,{children:l(P1,{date:new Date(e.createdAt)})})]})]})})},YPe=C($e)(()=>({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",minHeight:"150px"})),KPe=C(tk)(({theme:e})=>({height:"30px",width:"30px",color:e.palette.neutral.main,marginBottom:e.spacing(1)})),XPe=({text:e})=>x(YPe,{children:[l(KPe,{}),l(se,{color:"neutral.main",children:e})]}),JPe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0});return{loading:r,errors:n,markAsRead:async i=>{const s=t("api/admin/notifications/read",{method:"POST",body:JSON.stringify(i)});try{await e(s.caller,s.id)}catch(c){throw c}}}},QPe=C($e)(({theme:e})=>({display:"flex",gap:e.spacing(1),marginTop:e.spacing(.5)})),ZPe=({id:e,localStorageKey:t,eventName:n})=>{var d;const{uiConfig:r}=It(),{value:o,setValue:i}=Lc(`${r.baseUriPath}:${t}:v1:${e}`,{}),[a,s]=m.useState(o.value),{trackEvent:c}=br();if(!((d=r==null?void 0:r.flags)!=null&&d.T)||a)return null;const u=p=>{s(p),i({value:p}),c(n,{props:{eventType:e,wasHelpful:p==="yes"}})};return x(Cr,{elevation:0,sx:{background:p=>p.palette.neutral.light,padding:p=>p.spacing(1.5,2),marginTop:p=>p.spacing(1.5)},children:["Was this information useful to you?",x(QPe,{children:[l(Ve,{size:"small",variant:a==="yes"?"contained":"outlined",sx:{padding:0},onClick:()=>u("yes"),disabled:!!a,children:"Yes"}),l(Ve,{size:"small",variant:a==="no"?"contained":"outlined",sx:{padding:0},onClick:()=>u("no"),disabled:!!a,children:"No"})]})]})},e5e=C($e)(()=>({position:"relative"})),t5e=C($e)(({theme:e})=>({backgroundColor:e.palette.background.elevation1,display:"flex",justifyContent:"center"})),n5e=C(se)(({theme:e})=>({fontWeight:"bold",fontSize:e.fontSizes.smallBody,color:e.palette.primary.main,textAlign:"center"})),r5e=C(Cr)(({theme:e})=>({width:"420px",boxShadow:e.boxShadows.popup,borderRadius:`${e.shape.borderRadiusLarge}px`,position:"absolute",right:-100,top:60,maxHeight:"80vh",overflowY:"auto"})),o5e=C($e)(({theme:e})=>({backgroundColor:e.palette.primary.main,borderRadius:"100%",width:"7px",height:"7px",position:"absolute",top:7,right:4})),i5e=C($e)(()=>({...Nc})),a5e=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallBody})),s5e=C(jt)(({theme:e})=>({"&:focus-visible":{outlineStyle:"solid",outlineWidth:2,outlineColor:e.palette.primary.main,borderRadius:"100%"}})),l5e=()=>{const[e,t]=m.useState(!1),{notifications:n,refetchNotifications:r}=RPe({refreshInterval:15e3}),o=pt(),{markAsRead:i}=JPe(),{uiConfig:a}=It(),{trackEvent:s}=br(),[c,u]=m.useState(!1),d=async w=>{var S;w.link&&o(w.link),(S=a==null?void 0:a.flags)!=null&&S.T&&s("notifications",{props:{eventType:w.notificationType}}),t(!1);try{await i({notifications:[w.id]}),r()}catch(k){console.error("Error marking notification as read: ",k)}},p=async()=>{try{n&&n.length>0&&(await i({notifications:n.map(w=>w.id)}),r())}catch(w){console.error("Error marking all notification as read: ",w)}},f=w=>{w.key==="Escape"&&t(!1)},h=n==null?void 0:n.filter(w=>w.readAt===null),g=!!(h&&h.length>0),v=w=>c?!w.readAt:!0,b=n==null?void 0:n.filter(v).map(w=>l(qPe,{notification:w,onNotificationClick:d},w.id)),y=!!(n&&n.length>0&&!c);return x(e5e,{children:[x(s5e,{onClick:()=>t(!e),"data-testid":"NOTIFICATIONS_BUTTON",disableFocusRipple:!0,children:[l(q,{condition:g,show:l(o5e,{})}),l(tk,{})]}),l(q,{condition:e,show:l(qN,{onClickAway:()=>t(!1),children:x(r5e,{className:"dropdown-outline",onKeyDown:f,"data-testid":"NOTIFICATIONS_MODAL",children:[l(LPe,{children:x(i5e,{children:[l(a5e,{children:"Show only unread"}),l(fa,{onClick:()=>u(!c),checked:c})]})}),l(q,{condition:g,show:l(t5e,{"data-testid":"UNREAD_NOTIFICATIONS",children:l(Ve,{onClick:p,children:x(n5e,{children:["Mark all as read (",h==null?void 0:h.length,")"]})})})})," ",l(q,{condition:(b==null?void 0:b.length)===0,show:l(XPe,{text:c?"No unread notifications":"No new notifications"})}),l(MPe,{children:b}),l(q,{condition:y,show:x(ve,{children:[l(ZPe,{eventName:"notifications",id:"useful",localStorageKey:"NotificationsUsefulPrompt"}),l("br",{})]})})]})})})]})},Z3=C(SK)(({theme:e})=>({backgroundColor:e.palette.background.paper,padding:e.spacing(1),boxShadow:"none",position:"relative",zIndex:300})),eI=C(VJ)(({theme:e})=>({display:"flex",alignItems:"center",maxWidth:1280,"&&&":{padding:0}})),tI=C("div")({marginLeft:"auto",display:"flex",alignItems:"center"}),c5e=C("nav")({display:"flex",alignItems:"center",flexGrow:1}),u5e=C(TL)({width:"150px"}),d5e=C(EL)({width:"150px"}),p5e=C("div")(({theme:e})=>({display:"flex",justifyContent:"center",marginLeft:e.spacing(3),"& a":{textDecoration:"none",color:"inherit",marginRight:e.spacing(3),display:"flex",alignItems:"center"}})),f5e=C("button")(({theme:e})=>({...Hi(e),border:"none",background:"transparent",height:"100%",display:"flex",fontSize:e.fontSizes.bodySize,fontFamily:e.typography.fontFamily,alignItems:"center",color:"inherit",cursor:"pointer"})),nI=e=>({color:e.palette.neutral.main}),Sg=C(an)(({theme:e})=>Hi(e)),h5e=C(jt)(({theme:e})=>({...Hi(e),borderRadius:100})),Ew=e=>({...e,path:e.path.replace("/*","")}),m5e=()=>{const{onSetThemeMode:e,themeMode:t}=K6(),n=yn(),r=Cl(),o=Cl(),[i,a]=m.useState(null),[s,c]=m.useState(null),{uiConfig:u,isOss:d,isPro:p,isEnterprise:f}=It(),h=tr(n.breakpoints.down("md")),[g,v]=m.useState(!1),b=()=>v(T=>!T),y=()=>a(null),w=()=>c(null),S=APe(),k=T=>{const{mode:R}=T.menu;return!R||R.includes("pro")&&p()||R.includes("enterprise")&&f()},A={mainNavRoutes:J3(S.mainNavRoutes).concat([{path:"/admin/api",title:"API access",menu:{}}]).filter(tw(u)).map(Ew),mobileRoutes:J3(S.mobileRoutes).concat([{path:"/admin/api",title:"API access",menu:{}}]).filter(tw(u)).map(Ew),adminRoutes:EPe.filter(tw(u)).filter(k).map(Ew)};return h?l(Z3,{position:"static",children:x(eI,{children:[l(xt,{title:"Menu",arrow:!0,children:l(jt,{sx:{color:T=>T.palette.text.primary},onClick:b,"aria-controls":"header-drawer","aria-expanded":g,size:"large",children:l(bL,{})})}),l(xle,{flags:u.flags,links:u.links,open:g,toggleDrawer:b,routes:A}),l(tI,{children:l(RP,{})})]})}):l(Z3,{position:"static",children:x(eI,{children:[l(Sg,{to:"/",sx:Nc,"aria-label":"Home",children:l(Pd,{darkmode:l(u5e,{"aria-label":"Unleash logo"}),lightmode:l(d5e,{"aria-label":"Unleash logo"})})}),x(c5e,{children:[x(p5e,{children:[l(Sg,{to:"/projects",children:"Projects"}),l(Sg,{to:"/features",children:"Feature toggles"}),l(Sg,{to:"/playground",children:"Playground"}),x(f5e,{onClick:T=>c(T.currentTarget),"aria-controls":s?o:void 0,"aria-expanded":!!s,children:["Configure",l(dx,{sx:nI})]}),l(NP,{id:o,options:A.mainNavRoutes,anchorEl:s,handleClose:w,style:{top:10}})]}),x(tI,{children:[l(xt,{title:t==="dark"?"Switch to light theme":"Switch to dark theme",arrow:!0,children:l(jt,{onClick:e,sx:Hi,children:l(q,{condition:t==="dark",show:l(_le,{}),elseShow:l(Ule,{})})})})," ",l(q,{condition:!d()&&!(u!=null&&u.flags.disableNotifications),show:l(l5e,{})}),l(xt,{title:"Documentation",arrow:!0,children:l(jt,{href:"https://docs.getunleash.io/",target:"_blank",rel:"noopener noreferrer",size:"large",disableRipple:!0,sx:Hi,children:l(w2,{})})}),l(xt,{title:"Settings",arrow:!0,children:x(h5e,{onClick:T=>a(T.currentTarget),"aria-controls":i?r:void 0,"aria-expanded":!!i,size:"large",disableRipple:!0,children:[l(wL,{}),l(dx,{sx:nI})]})}),l(NP,{id:r,options:A.adminRoutes,anchorEl:i,handleClose:y,style:{top:5,left:-100}})," ",l(RP,{})]})]})]})})},g5e=e=>{var n;const t=(n=e.versionInfo)==null?void 0:n.current;return t!=null&&t.enterprise?`${e.name} ${t.enterprise}`:t!=null&&t.oss?`${e.name} ${t.oss}`:`${e.name} ${e.version}`},v5e=e=>{var r,o;const t=(r=e.versionInfo)==null?void 0:r.latest,n=(o=e.versionInfo)==null?void 0:o.isLatest;if(t!=null&&t.enterprise&&!n)return`Upgrade available - Latest Enterprise release: ${t.enterprise}`;if(t!=null&&t.oss&&!n)return`Upgrade available - Latest OSS release: ${t.oss}`},qg=C("h2")(({theme:e})=>({all:"unset",display:"block",margin:e.spacing(2,0),fontSize:e.fontSizes.bodySize,fontWeight:e.fontWeight.bold})),y5e=e=>{var i;const t=(i=e.uiConfig.versionInfo)==null?void 0:i.instanceId,n=g5e(e.uiConfig),r=e.uiConfig.environment,o=v5e(e.uiConfig);return x("section",{title:"API details",children:[x(qg,{children:[n," ",l(q,{condition:!!r,show:x("small",{children:["(",r,")"]})})]}),l(q,{condition:!!o,show:x("small",{children:[o,l("br",{})]})}),l("br",{}),l("small",{children:e.uiConfig.slogan}),l("br",{}),l(q,{condition:!!t,show:l("small",{children:`${t}`})})]})},b5e=C("footer")(({theme:e})=>({padding:e.spacing(4,8),width:"100%",flexGrow:1,zIndex:100,backgroundColor:e.palette.background.paper})),Tw=C(ca)({padding:0,margin:0}),ur=C(Na)(({theme:e})=>({padding:0,margin:0,"& a":{...Hi(e),textDecoration:"none",color:e.palette.text.primary,"&:hover":{textDecoration:"underline"}}})),w5e=()=>{const{uiConfig:e}=It();return l(b5e,{children:x(Wn,{container:!0,justifyContent:"center",spacing:10,style:{marginBottom:0},children:[l(Wn,{item:!0,md:4,xs:12,children:l(y5e,{uiConfig:e})}),l(Wn,{item:!0,xs:12,md:"auto",children:x(Wn,{container:!0,spacing:7,direction:"row",children:[l(Wn,{item:!0,children:x("section",{title:"Unleash SDK",children:[l(qg,{children:"Server SDKs"}),x(Tw,{dense:!0,children:[l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/node",target:"_blank",rel:"noreferrer",children:"Node.js"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/java",target:"_blank",rel:"noreferrer",children:"Java"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/go",target:"_blank",rel:"noreferrer",children:"Go"})})})," ",l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/rust",target:"_blank",rel:"noreferrer",children:"Rust"})})})," ",l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/ruby",target:"_blank",rel:"noreferrer",children:"Ruby"})})})," ",l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/python",target:"_blank",rel:"noreferrer",children:"Python"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/dotnet",target:"_blank",rel:"noreferrer",children:".NET"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/php",target:"_blank",rel:"noreferrer",children:"PHP"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks",target:"_blank",rel:"noreferrer",children:"All SDKs"})})})]})]})}),l(Wn,{item:!0,children:x("section",{title:"Unleash SDK",children:[l(qg,{children:"Frontend SDKs"}),x(Tw,{dense:!0,children:[l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/unleash-proxy",target:"_blank",rel:"noreferrer",children:"Unleash Proxy"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/javascript-browser",target:"_blank",rel:"noreferrer",children:"JavaScript"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/react",target:"_blank",rel:"noreferrer",children:"React"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/next-js",target:"_blank",rel:"noreferrer",children:"Next.js"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/vue",target:"_blank",rel:"noreferrer",children:"Vue"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/ios-proxy",target:"_blank",rel:"noreferrer",children:"iOS"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/android-proxy",target:"_blank",rel:"noreferrer",children:"Android"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/flutter",target:"_blank",rel:"noreferrer",children:"Flutter"})})})]})]})}),l(Wn,{item:!0,children:x("section",{children:[l(qg,{children:"About"}),x(Tw,{dense:!0,children:[l(ur,{children:l(rn,{primary:l("a",{href:"https://www.getunleash.io/",target:"_blank",rel:"noreferrer",children:"getunleash.io"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://twitter.com/getunleash",target:"_blank",rel:"noreferrer",children:"Twitter"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://www.linkedin.com/company/getunleash",target:"_blank",rel:"noreferrer",children:"LinkedIn"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://github.com/Unleash/unleash",target:"_blank",rel:"noreferrer",children:"GitHub"})})}),l(ur,{children:l(rn,{primary:l("a",{href:"https://slack.unleash.run",target:"_blank",rel:"noreferrer",children:"Slack Community"})})})]})]})})]})})]})})},S5e=C(Vt)(({theme:e})=>({marginBottom:e.spacing(2)})),x5e=C(se)(({theme:e})=>({maxWidth:"800px"})),C5e=C("a")(({theme:e})=>({display:"block",marginTop:e.spacing(1),width:"100px"})),E5e=e=>!(!e||localStorage&&localStorage.getItem(e)),T5e=({toast:e})=>{const[t,n]=m.useState(!1);m.useEffect(()=>{n(E5e((e==null?void 0:e.id)||""))},[e==null?void 0:e.id]);const r=()=>{localStorage&&localStorage.setItem((e==null?void 0:e.id)||"","seen"),n(!1)};return e?l(q,{condition:t,show:x(S5e,{severity:e.severity,onClose:r,children:[l(x5e,{variant:"body2",children:e.message}),l(C5e,{href:e.link,target:"_blank",rel:"noopener noreferrer",children:"View more"})]})}):null},k5e=C("div")(({theme:e})=>({height:e.spacing(2.5),margin:e.spacing(2,0)})),A5e=C(YX)({"& > ol":{flexWrap:"nowrap","& > li:last-child":{minWidth:0}}}),rI=C("p")(V6),R5e=C(an)(({theme:e})=>({"& > *":{maxWidth:e.spacing(25)}})),_5e=()=>{const{isAdmin:e}=m.useContext(_o),t=Ro(),n=t.pathname.split("/").filter(r=>r).filter(r=>r!=="create"&&r!=="edit"&&r!=="view"&&r!=="variants"&&r!=="logs"&&r!=="metrics"&&r!=="copy"&&r!=="features"&&r!=="features2"&&r!=="create-toggle"&&r!=="settings"&&r!=="profile");return l(k5e,{children:l(q,{condition:t.pathname.includes("admin")&&e||!t.pathname.includes("admin"),show:l(q,{condition:n.length>1,show:l(A5e,{"aria-label":"Breadcrumbs",children:n.map((r,o)=>{if(o===n.length-1)return l(rI,{children:r},r);let a="/";return n.forEach((s,c)=>{c!==o&&c<o?a+=s+"/":c===o&&(a+=s)}),l(R5e,{to:a,children:l(rI,{children:r})},r)})})})})})},oI="/static/texture-c29e66c0.png",rB="skip-nav-target-id",P5e=()=>l("div",{id:rB}),I5e=C("a")(({theme:e})=>({position:"fixed",overflow:"hidden",zIndex:1e3,top:e.spacing(2.25),left:e.spacing(2.25),padding:e.spacing(1,2),whiteSpace:"nowrap",textDecoration:"none",background:e.palette.background.alternative,color:e.palette.common.white,borderRadius:e.shape.borderRadius,fontSize:e.fontSizes.smallBody,...Hi(e),[e.breakpoints.down(960)]:{top:"0.8rem",left:"0.8rem"},"&:not(:focus):not(:active)":{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",zIndex:-1,width:1,height:1,margin:-1,padding:0}})),O5e=()=>x(I5e,{href:`#${rB}`,children:["Skip to content ",l("span",{"aria-hidden":!0,children:"↓"})]}),$5e=({featureName:e,projectId:t,conflict:n,onNavigate:r,children:o})=>x(f6,{elevation:0,sx:i=>({marginTop:i.spacing(2),overflow:"hidden"}),children:[x($e,{sx:i=>({backgroundColor:i.palette.neutral.light,borderRadius:a=>`${a.shape.borderRadiusLarge}px ${a.shape.borderRadiusLarge}px 0 0`,border:"1px solid",borderColor:a=>n?a.palette.warning.border:a.palette.divider,borderBottom:"none",overflow:"hidden"}),children:[l(q,{condition:!!n,show:x(Vt,{severity:"warning",sx:{px:3,mb:2,"&.MuiAlert-standardWarning":{borderStyle:"none"}},children:[l("strong",{children:"Conflict!"})," ",n,"."]})}),x($e,{sx:{display:"flex",pt:n?0:2,pb:2,px:3},children:[l(se,{children:"Feature toggle name: "}),l(Gr,{component:an,to:`/projects/${t}/features/${e}`,color:"primary",underline:"hover",sx:{marginLeft:1,"& :hover":{textDecoration:"underline"}},onClick:r,children:l("strong",{children:e})})]})]}),l($e,{children:o})]});var nk={},N5e=An;Object.defineProperty(nk,"__esModule",{value:!0});var oB=nk.default=void 0,L5e=N5e(Rn()),D5e=_n,M5e=(0,L5e.default)((0,D5e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"}),"Block");oB=nk.default=M5e;var rk={},B5e=An;Object.defineProperty(rk,"__esModule",{value:!0});var iB=rk.default=void 0,F5e=B5e(Rn()),z5e=_n,j5e=(0,F5e.default)((0,z5e.jsx)("path",{d:"m19.07 4.93-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07z"}),"TrackChanges");iB=rk.default=j5e;var U5e=200,ok="__lodash_hash_undefined__",W5e=1/0,aB=9007199254740991,H5e="[object Arguments]",V5e="[object Function]",G5e="[object GeneratorFunction]",q5e="[object Symbol]",Y5e=/[\\^$.*+?()[\]{}|]/g,K5e=/^\[object .+?Constructor\]$/,X5e=/^(?:0|[1-9]\d*)$/,J5e=typeof ki=="object"&&ki&&ki.Object===Object&&ki,Q5e=typeof self=="object"&&self&&self.Object===Object&&self,ik=J5e||Q5e||Function("return this")();function Z5e(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function e3e(e,t){var n=e?e.length:0;return!!n&&r3e(e,t,0)>-1}function t3e(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)if(n(t,e[r]))return!0;return!1}function sB(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function ak(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function n3e(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function r3e(e,t,n){if(t!==t)return n3e(e,o3e,n);for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function o3e(e){return e!==e}function i3e(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function a3e(e){return function(t){return e(t)}}function s3e(e,t){return e.has(t)}function l3e(e,t){return e==null?void 0:e[t]}function c3e(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function lB(e,t){return function(n){return e(t(n))}}var u3e=Array.prototype,d3e=Function.prototype,o0=Object.prototype,kw=ik["__core-js_shared__"],iI=function(){var e=/[^.]+$/.exec(kw&&kw.keys&&kw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),cB=d3e.toString,Ud=o0.hasOwnProperty,sk=o0.toString,p3e=RegExp("^"+cB.call(Ud).replace(Y5e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),aI=ik.Symbol,f3e=lB(Object.getPrototypeOf,Object),h3e=o0.propertyIsEnumerable,m3e=u3e.splice,sI=aI?aI.isConcatSpreadable:void 0,Bx=Object.getOwnPropertySymbols,lI=Math.max,g3e=dB(ik,"Map"),wh=dB(Object,"create");function Tc(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function v3e(){this.__data__=wh?wh(null):{}}function y3e(e){return this.has(e)&&delete this.__data__[e]}function b3e(e){var t=this.__data__;if(wh){var n=t[e];return n===ok?void 0:n}return Ud.call(t,e)?t[e]:void 0}function w3e(e){var t=this.__data__;return wh?t[e]!==void 0:Ud.call(t,e)}function S3e(e,t){var n=this.__data__;return n[e]=wh&&t===void 0?ok:t,this}Tc.prototype.clear=v3e;Tc.prototype.delete=y3e;Tc.prototype.get=b3e;Tc.prototype.has=w3e;Tc.prototype.set=S3e;function Wd(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function x3e(){this.__data__=[]}function C3e(e){var t=this.__data__,n=i0(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():m3e.call(t,n,1),!0}function E3e(e){var t=this.__data__,n=i0(t,e);return n<0?void 0:t[n][1]}function T3e(e){return i0(this.__data__,e)>-1}function k3e(e,t){var n=this.__data__,r=i0(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Wd.prototype.clear=x3e;Wd.prototype.delete=C3e;Wd.prototype.get=E3e;Wd.prototype.has=T3e;Wd.prototype.set=k3e;function Hd(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function A3e(){this.__data__={hash:new Tc,map:new(g3e||Wd),string:new Tc}}function R3e(e){return a0(this,e).delete(e)}function _3e(e){return a0(this,e).get(e)}function P3e(e){return a0(this,e).has(e)}function I3e(e,t){return a0(this,e).set(e,t),this}Hd.prototype.clear=A3e;Hd.prototype.delete=R3e;Hd.prototype.get=_3e;Hd.prototype.has=P3e;Hd.prototype.set=I3e;function Qv(e){var t=-1,n=e?e.length:0;for(this.__data__=new Hd;++t<n;)this.add(e[t])}function O3e(e){return this.__data__.set(e,ok),this}function $3e(e){return this.__data__.has(e)}Qv.prototype.add=Qv.prototype.push=O3e;Qv.prototype.has=$3e;function N3e(e,t){var n=lk(e)||pB(e)?i3e(e.length,String):[],r=n.length,o=!!r;for(var i in e)(t||Ud.call(e,i))&&!(o&&(i=="length"||G3e(i,r)))&&n.push(i);return n}function i0(e,t){for(var n=e.length;n--;)if(Z3e(e[n][0],t))return n;return-1}function L3e(e,t,n,r){var o=-1,i=e3e,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=sB(t,a3e(n))),r?(i=t3e,a=!1):t.length>=U5e&&(i=s3e,a=!1,t=new Qv(t));e:for(;++o<s;){var d=e[o],p=n?n(d):d;if(d=r||d!==0?d:0,a&&p===p){for(var f=u;f--;)if(t[f]===p)continue e;c.push(d)}else i(t,p,r)||c.push(d)}return c}function uB(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=V3e),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?uB(s,t-1,n,r,o):ak(o,s):r||(o[o.length]=s)}return o}function D3e(e,t,n){var r=t(e);return lk(e)?r:ak(r,n(e))}function M3e(e){if(!ck(e)||Y3e(e))return!1;var t=hB(e)||c3e(e)?p3e:K5e;return t.test(Q3e(e))}function B3e(e){if(!ck(e))return X3e(e);var t=K3e(e),n=[];for(var r in e)r=="constructor"&&(t||!Ud.call(e,r))||n.push(r);return n}function F3e(e,t){return e=Object(e),z3e(e,t,function(n,r){return r in e})}function z3e(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=e[a];n(s,a)&&(i[a]=s)}return i}function j3e(e,t){return t=lI(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=lI(n.length-t,0),i=Array(o);++r<o;)i[r]=n[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=n[r];return a[t]=i,Z5e(e,this,a)}}function U3e(e){return D3e(e,rIe,H3e)}function a0(e,t){var n=e.__data__;return q3e(t)?n[typeof t=="string"?"string":"hash"]:n.map}function dB(e,t){var n=l3e(e,t);return M3e(n)?n:void 0}var W3e=Bx?lB(Bx,Object):gB,H3e=Bx?function(e){for(var t=[];e;)ak(t,W3e(e)),e=f3e(e);return t}:gB;function V3e(e){return lk(e)||pB(e)||!!(sI&&e&&e[sI])}function G3e(e,t){return t=t??aB,!!t&&(typeof e=="number"||X5e.test(e))&&e>-1&&e%1==0&&e<t}function q3e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Y3e(e){return!!iI&&iI in e}function K3e(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||o0;return e===n}function X3e(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}function J3e(e){if(typeof e=="string"||nIe(e))return e;var t=e+"";return t=="0"&&1/e==-W5e?"-0":t}function Q3e(e){if(e!=null){try{return cB.call(e)}catch{}try{return e+""}catch{}}return""}function Z3e(e,t){return e===t||e!==e&&t!==t}function pB(e){return eIe(e)&&Ud.call(e,"callee")&&(!h3e.call(e,"callee")||sk.call(e)==H5e)}var lk=Array.isArray;function fB(e){return e!=null&&tIe(e.length)&&!hB(e)}function eIe(e){return mB(e)&&fB(e)}function hB(e){var t=ck(e)?sk.call(e):"";return t==V5e||t==G5e}function tIe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=aB}function ck(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function mB(e){return!!e&&typeof e=="object"}function nIe(e){return typeof e=="symbol"||mB(e)&&sk.call(e)==q5e}function rIe(e){return fB(e)?N3e(e,!0):B3e(e)}var oIe=j3e(function(e,t){return e==null?{}:(t=sB(uB(t,1),J3e),F3e(e,L3e(U3e(e),t)))});function gB(){return[]}var iIe=oIe;const aIe=Yr(iIe),sIe=C("div")(({theme:e})=>({overflowX:"auto","& code":{wordWrap:"break-word",whiteSpace:"pre-wrap",fontFamily:"monospace",lineHeight:1.5,fontSize:e.fontSizes.smallBody}})),Aw=({change:e,currentStrategy:t})=>{const n=e.action==="deleteStrategy"?void 0:e.payload;return l(sIe,{children:l(t0,{entry:{preData:aIe(t,"sortOrder"),data:n}})})},lIe=({change:e,previousTitle:t})=>x(ve,{children:[l(q,{condition:!!(t&&t!==e.payload.title),show:x(Fx,{children:[l(se,{component:"span",color:"text.secondary",children:t||ks(e.payload.name)})," "]})}),l(Fx,{children:l(se,{component:"span",children:e.payload.title})})]}),cIe=C("div")(({theme:e})=>({display:"grid",gridAutoFlow:"column",gridTemplateColumns:"auto 1fr",gap:e.spacing(1),alignItems:"center"})),Fx=C("div")(()=>({...V6,maxWidth:500})),Rw=({change:e,previousTitle:t,children:n})=>x(cIe,{children:[l(jhe,{strategyName:e.payload.name}),x(Fx,{children:[l(Kh,{tooltip:n,tooltipProps:{maxWidth:500,maxHeight:600},children:l(se,{component:"span",children:ks(e.payload.name)})}),l(lIe,{change:e,previousTitle:t})]})]}),cI=({percentage:e,size:t="4rem"})=>{const n=yn(),r={display:"block",borderRadius:"100%",transform:"rotate(-90deg)",height:t,width:t,background:n.palette.background.elevation2},o=100/(2*Math.PI),i=2*o;return l("svg",{viewBox:`0 0 ${i} ${i}`,style:r,"aria-hidden":!0,children:l("circle",{r:o,cx:o,cy:o,fill:"none",stroke:n.palette.primary.light,strokeWidth:i,strokeDasharray:`${e} 100`})})},uIe=C("div")(({theme:e})=>({width:"100%",padding:e.spacing(2,3),borderRadius:e.shape.borderRadiusMedium,border:`1px solid ${e.palette.divider}`})),dIe=C("p")(({theme:e})=>({display:"inline",margin:e.spacing(.5,0),maxWidth:"95%",textAlign:"center",wordBreak:"break-word"})),pIe=C(Os)(({theme:e})=>({margin:e.spacing(.5)})),_w=({value:e,text:t})=>l(uIe,{children:l(q,{condition:e.length===0,show:x("p",{children:["No ",t,"s added yet."]}),elseShow:x("div",{children:[x(dIe,{children:[e.length," ",e.length>1?`${t}s`:t," will get access."]}),e.map(n=>l(pIe,{label:l(Ra,{maxWidth:"300",text:n,maxLength:50})},n))]})})}),fIe=({segments:e})=>!e||e.length===0?null:l(ve,{children:e.map((t,n)=>x(m.Fragment,{children:[l(q,{condition:n>0,show:l(NT,{text:"AND"})}),l(oM,{segment:t})]},t.id))}),uI=()=>l($e,{sx:{px:3,color:"text.disabled"},children:"This strategy does not have constraints or parameters."}),Ul=C($e)(({theme:e})=>({padding:e.spacing(2,3),border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadiusMedium})),Pw=C("span")(({theme:e})=>({color:e.palette.neutral.main})),dI=({strategy:e})=>{const{parameters:t,constraints:n=[]}=e,{strategies:r}=Ld(),{uiConfig:o}=It(),{segments:i}=$l(),a=i==null?void 0:i.filter(p=>{var f;return(f=e.segments)==null?void 0:f.includes(p.id)}),s=r.find(p=>p.name===e.name),c=m.useMemo(()=>!t||s!=null&&s.editable?null:Object.keys(t).map(p=>{switch(p){case"rollout":case"Rollout":const f=Cf(t[p]);return x(Ul,{sx:{display:"flex",alignItems:"center"},children:[l($e,{sx:{mr:2},children:l(cI,{percentage:f,size:"2rem"})}),x("div",{children:[x(qt,{color:"success",children:[f,"%"]})," of your base"," ",n.length>0?"who match constraints":""," ","is included."]})]});case"userIds":case"UserIds":const h=tl(t[p]);return l(_w,{value:h,text:"user"},p);case"hostNames":case"HostNames":const g=tl(t[p]);return l(_w,{value:g,text:"host"},p);case"IPs":const v=tl(t[p]);return l(_w,{value:v,text:"IP"},p);case"stickiness":case"groupId":return null;default:return null}}),[t,s,n]),u=m.useMemo(()=>{if(!t||!(s!=null&&s.editable))return null;const p=l(Pw,{children:" is set to "});return s==null?void 0:s.parameters.map(f=>{const{type:h,name:g}={...f};if(!h||!g||t[g]===void 0)return null;const v=l(Ra,{maxLength:15,maxWidth:"150",text:g});switch(f==null?void 0:f.type){case"list":const b=tl(t[g]);return b.length>0?x(Ul,{children:[v," ",x(Pw,{children:["has ",b.length," ",b.length>1?"items":"item",":"," ",b.map(k=>l(Os,{label:l(Ra,{maxWidth:"300",text:k,maxLength:50}),sx:{mr:.5}},k))]})]}):null;case"percentage":const y=Cf(t[g]);return t[g]!==""?x(Ul,{sx:{display:"flex",alignItems:"center"},children:[l($e,{sx:{mr:2},children:l(cI,{percentage:y,size:"2rem"})}),x("div",{children:[v,p,x(qt,{color:"success",children:[y,"%"]})]})]}):null;case"boolean":return t[g]==="true"||t[g]==="false"?x(Ul,{children:[l(Ra,{maxLength:15,maxWidth:"150",text:g}),p,l(qt,{color:t[g]==="true"?"success":"error",children:t[g]})]}):null;case"string":const w=pl(t[g]);return typeof t[g]<"u"?x(Ul,{children:[v,l(q,{condition:w==="",show:l(Pw,{children:" is an empty string"}),elseShow:x(ve,{children:[p,l(Ra,{maxWidth:"300",text:w,maxLength:50})]})})]}):null;case"number":const S=Cf(t[g]);return t[g]!==""&&S!==void 0?x(Ul,{children:[v,p,l(Ra,{maxWidth:"300",text:String(S),maxLength:50})]}):null;case"default":return null}return null})},[t,s]);if(!t)return l(uI,{});const d=[!!o.flags.SE&&a&&a.length>0&&l(fIe,{segments:a}),n.length>0&&l(Z1,{constraints:n,showLabel:!1}),e.name==="default"&&l(ve,{children:x(Ul,{sx:{width:"100%"},children:["The standard strategy is ",l(qt,{color:"success",children:"ON"})," ","for all users."]})}),...c??[],...u??[]].filter(Boolean);return l(q,{condition:d.length>0,show:l(ve,{children:d.map((p,f)=>x(m.Fragment,{children:[l(q,{condition:f>0,show:l(NT,{text:"AND"})}),p]},f))}),elseShow:l(uI,{})})},hIe=(e,t,n,r)=>{var a,s;return(s=(a=Rs(t,n).feature)==null?void 0:a.environments.find(c=>c.name===r))==null?void 0:s.strategies.find(c=>"id"in e.payload&&c.id===e.payload.id)},vB=C($e)({display:"flex",justifyContent:"space-between",alignItems:"center"}),pI=C($e)(({theme:e})=>({display:"grid",gridTemplateColumns:"auto 40px",gap:e.spacing(1),alignItems:"center",marginBottom:e.spacing(2),width:"100%"})),Iw=C($e)(({theme:e})=>({display:"grid",gridTemplateColumns:"150px auto",gridAutoFlow:"column",alignItems:"center",flexGrow:1,gap:e.spacing(1)})),mIe=e=>typeof e=="object"&&e!==null&&"name"in e,fI=({show:e=!0,disabled:t})=>e?t?l(xt,{title:"This strategy will not be taken into account when evaluating feature toggle.",arrow:!0,sx:{cursor:"pointer"},children:l(qt,{color:"disabled",icon:l(oB,{}),children:"Disabled"})}):l(xt,{title:"This was disabled before and with this change it will be taken into account when evaluating feature toggle.",arrow:!0,sx:{cursor:"pointer"},children:l(qt,{color:"success",icon:l(iB,{}),children:"Enabled"})}):null,gIe=({wasDisabled:e=!1,willBeDisabled:t=!1})=>e&&t?l(se,{color:"action.disabled",children:"Editing strategy:"}):!e&&t?l(se,{color:"error.dark",children:"Editing strategy:"}):e&&!t?l(se,{color:"success.dark",children:"Editing strategy:"}):l(se,{children:"Editing strategy:"}),vIe=({discard:e,change:t,featureName:n,environmentName:r,projectId:o})=>{var a,s,c,u,d;const i=hIe(t,o,n,r);return x(ve,{children:[t.action==="addStrategy"&&x(ve,{children:[x(pI,{children:[x(Iw,{children:[l(se,{color:(a=t.payload)!=null&&a.disabled?"action.disabled":"success.dark",children:"+ Adding strategy:"}),l(Rw,{change:t,children:l(Aw,{change:t,currentStrategy:i})}),l("div",{children:l(fI,{disabled:!0,show:((s=t.payload)==null?void 0:s.disabled)===!0})})]}),l("div",{children:e})]}),l(dI,{strategy:t.payload})]}),t.action==="deleteStrategy"&&x(vB,{children:[x(Iw,{children:[l(se,{sx:p=>({color:p.palette.error.main}),children:"- Deleting strategy:"}),mIe(t.payload)&&l(Rw,{change:t,children:l(Aw,{change:t,currentStrategy:i})})]}),l("div",{children:e})]}),t.action==="updateStrategy"&&x(ve,{children:[x(pI,{children:[x(Iw,{children:[l(gIe,{wasDisabled:i==null?void 0:i.disabled,willBeDisabled:(c=t.payload)==null?void 0:c.disabled}),l(Rw,{change:t,previousTitle:i==null?void 0:i.title,children:l(Aw,{change:t,currentStrategy:i})})]}),l("div",{children:e})]}),l(q,{condition:((u=t.payload)==null?void 0:u.disabled)!==(i==null?void 0:i.disabled),show:x(se,{sx:{marginTop:p=>p.spacing(2),marginBottom:p=>p.spacing(2),...Nc,gap:p=>p.spacing(1)},children:["This strategy will be"," ",l(fI,{disabled:((d=t.payload)==null?void 0:d.disabled)||!1})]})}),l(dI,{strategy:t.payload})]})]})},yIe=({enabled:e,discard:t})=>x(vB,{children:[x($e,{sx:{display:"flex",alignItems:"center"},children:["New status:"," ",l(qt,{sx:n=>({marginLeft:n.spacing(1)}),color:e?"success":"error",children:e?" Enabled":"Disabled"})]}),t]}),bIe=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallerBody,whiteSpace:"pre-wrap"})),wIe=({value:e})=>{const{searchQuery:t}=Ol();return e?e.type==="string"&&e.value.length<20?l(Hn,{children:l(Ya,{search:t,children:e.value})}):l(Hn,{children:l(Kh,{tooltip:l(ve,{children:l(bIe,{children:l(Ya,{search:t,children:e.value})})}),highlighted:t.length>0&&e.value.toLowerCase().includes(t.toLowerCase()),children:e.type})}):l(Hn,{})},SIe=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallerBody})),xIe=({value:e})=>{const{searchQuery:t}=Ol();if(!e||e.length===0)return l(Hn,{});const n=r=>`${r.contextName}:${r.values.join()}`;return l(Hn,{children:l(Kh,{tooltip:l(ve,{children:e.map((r,o)=>l(SIe,{children:l(Ya,{search:t,children:n(r)})},r.contextName+o))}),highlighted:t.length>0&&(e==null?void 0:e.map(n).join(`
365
+ `).toLowerCase().includes(t.toLowerCase())),children:e.length===1?"1 override":`${e.length} overrides`})})},CIe=({variants:e,searchValue:t=""})=>{const n=nr("projectId"),r=yn(),o=tr(r.breakpoints.down("md")),i=tr(r.breakpoints.down("lg")),a=m.useMemo(()=>[{Header:"Name",accessor:"name",Cell:bs,sortType:"alphanumeric",minWidth:350,searchable:!0},{Header:"Payload",accessor:"payload",Cell:wIe,disableSortBy:!0,searchable:!0,filterParsing:b=>b==null?void 0:b.value},{Header:"Overrides",accessor:"overrides",Cell:xIe,disableSortBy:!0,searchable:!0,filterParsing:b=>(b==null?void 0:b.map(({contextName:y,values:w})=>`${y}:${w.join()}`).join(`
366
+ `))||""},{Header:"Weight",accessor:"weight",Cell:({row:{original:{name:b,weight:y}}})=>x(Hn,{"data-testid":`VARIANT_WEIGHT_${b}`,children:[Bve(y)," %"]}),sortType:"number"},{Header:"Type",accessor:b=>b.weightType==="fix"?"Fixed":"Variable",Cell:Hn,sortType:"alphanumeric"}],[n,e]),s=m.useMemo(()=>({sortBy:[{id:"name",desc:!1}]}),[]),{data:c,getSearchText:u}=Yh(a,t,e),{getTableProps:d,getTableBodyProps:p,headerGroups:f,rows:h,prepareRow:g,setHiddenColumns:v}=Jt.useTable({columns:a,data:c,initialState:s,sortTypes:qo,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0},Jt.useSortBy);return Od([{condition:o,columns:["payload","overrides"]},{condition:i,columns:["weightType"]}],v,a),x(ve,{children:[l(Ls,{value:u(t),children:x(Gi,{...d(),children:[l(Vi,{headerGroups:f}),l(Wi,{...p(),children:h.map(b=>(g(b),l(ui,{hover:!0,...b.getRowProps(),children:b.cells.map(y=>l(pi,{...y.getCellProps(),children:y.render("Cell")}))})))})]})}),l(q,{condition:h.length===0,show:l(q,{condition:(t==null?void 0:t.length)>0,show:x(ar,{children:["No variants found matching “",t,"”"]})})})]})},EIe=C("div")(({theme:e})=>({overflowX:"auto","& code":{wordWrap:"break-word",whiteSpace:"pre-wrap",fontFamily:"monospace",lineHeight:1.5,fontSize:e.fontSizes.smallBody}})),hI=e=>e.reduce((t,{name:n,...r})=>({...t,[n]:r}),{}),TIe=({preData:e,data:t})=>l(EIe,{children:l(t0,{entry:{preData:hI(e),data:hI(t)},sort:(n,r)=>n.index-r.index})}),kIe=C($e)({display:"flex",flexDirection:"column"}),AIe=C($e)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:e.spacing(2),lineHeight:e.spacing(3)})),RIe=C("div")(({theme:e})=>({marginTop:e.spacing(1.5),display:"flex",alignItems:"center",gap:e.spacing(1.5),marginBottom:e.spacing(.5),fontSize:e.fontSizes.smallBody})),_Ie=({feature:e,project:t,environment:n,change:r,discard:o})=>{var s,c;const{feature:i}=Rs(t,e),a=((s=i.environments.find(({name:u})=>n===u))==null?void 0:s.variants)??[];return x(kIe,{children:[x(AIe,{children:[l(Kh,{tooltip:l(TIe,{preData:a,data:r.payload.variants}),tooltipProps:{maxWidth:500,maxHeight:600},children:"Updating variants to:"}),o]}),l(CIe,{variants:r.payload.variants}),l(q,{condition:r.payload.variants.length>1,show:l(ve,{children:x(RIe,{children:[l("p",{children:"Stickiness:"}),l(qt,{children:((c=r.payload.variants[0])==null?void 0:c.stickiness)||"default"})]})})})]})},PIe=C($e,{shouldForwardProp:e=>!e.startsWith("$")})(({theme:e,$hasConflict:t,$isInConflictFeature:n,$isAfterWarning:r,$isLast:o})=>({borderLeft:"1px solid",borderRight:"1px solid",borderTop:"1px solid",borderBottom:o?"1px solid":"none",borderRadius:o?`0 0
367
+ ${e.shape.borderRadiusLarge}px ${e.shape.borderRadiusLarge}px`:0,borderColor:t||n?e.palette.warning.border:e.palette.divider,borderTopColor:(t||r)&&!n?e.palette.warning.border:e.palette.divider})),IIe=C(Vt)(({theme:e})=>({borderRadius:0,padding:e.spacing(0,2),"&.MuiAlert-standardWarning":{borderStyle:"none none solid none"}})),mI=({index:e,change:t,feature:n,changeRequest:r,discard:o})=>{var a;const i=n.defaultChange?n.changes.length+1:n.changes.length;return x(PIe,{$hasConflict:!!t.conflict,$isInConflictFeature:!!n.conflict,$isAfterWarning:!!((a=n.changes[e-1])!=null&&a.conflict),$isLast:e+1===i,children:[l(q,{condition:!!t.conflict&&!n.conflict,show:x(IIe,{severity:"warning",children:[l("strong",{children:"Conflict!"})," This change can’t be applied."," ",t.conflict,"."]})}),x($e,{sx:s=>({padding:s.spacing(3)}),children:[t.action==="updateEnabled"&&l(yIe,{enabled:t.payload.enabled,discard:o}),t.action==="addStrategy"||t.action==="deleteStrategy"||t.action==="updateStrategy"?l(vIe,{discard:o,change:t,featureName:n.name,environmentName:r.environment,projectId:r.project}):null,t.action==="patchVariant"&&l(_Ie,{feature:n.name,project:r.project,environment:r.environment,change:t,discard:o})]})]},eM(t))},uk=e=>e.features.flatMap(t=>t.changes).length,OIe=({change:e,changeRequestId:t,environment:n,open:r,onSubmit:o,onClose:i,featureId:a})=>{const s=nr("projectId"),{editChange:c}=nm(),[u,d]=m.useState(e.payload),{segments:p}=$l(),f=(p||[]).filter(B=>{var Y;return(Y=e.payload.segments)==null?void 0:Y.includes(B.id)}),[h,g]=m.useState(f),v={parameters:e.payload.parameters,name:e.payload.name},{setToastData:b,setToastApiError:y}=$t(),w=dM(),{uiConfig:S}=It(),{unleashUrl:k}=S,{isChangeRequestConfigured:A}=Bc(s),{feature:T,refetchFeature:R}=Rs(s,a),P=m.useRef(T),{data:_,staleDataNotification:O,forceRefreshCache:$}=fM({unleashGetter:Rs,params:[s,a],dataKey:"feature",refetchFunctionKey:"refetchFeature",options:{}},T,{afterSubmitAction:R},hM);m.useEffect(()=>{P.current.name===""&&T.name&&($(T),P.current=T)},[T]);const z={...u,segments:h.map(B=>B.id)},L=async()=>{try{await c(s,t,e.id,{action:u.id?"updateStrategy":"addStrategy",feature:a,payload:z}),o(),b({title:"Change updated",type:"success"})}catch(B){y(gt(B))}};return!v||!_?null:l(om,{open:r,onClose:i,label:"Edit change",onClick:B=>{B.stopPropagation()},children:x(Fr,{modal:!0,title:ks(v.name??""),description:NIe,documentationLink:LIe,documentationLinkLabel:DIe,formatApiCode:()=>$Ie(s,t,e.id,z,k),children:[l(uM,{projectId:s,feature:_,strategy:u,setStrategy:d,segments:h,setSegments:g,environmentId:n,onSubmit:L,onCancel:i,loading:!1,permission:$1,errors:w,isChangeRequest:A(n)}),O]})})},$Ie=(e,t,n,r,o)=>{if(!o)return"";const i=`${o}/api/admin/projects/${e}/change-requests/${t}/changes/${n}`,a=JSON.stringify(r,void 0,2);return`curl --location --request PUT '${i}' \\
368
+ --header 'Authorization: INSERT_API_KEY' \\
369
+ --header 'Content-Type: application/json' \\
370
+ --data-raw '${a}'`},NIe=`
371
+ An activation strategy will only run when a feature toggle is enabled and provides a way to control who will get access to the feature.
372
+ If any of a feature toggle's activation strategies returns true, the user will get access.
373
+ `,LIe="https://docs.getunleash.io/reference/activation-strategies",DIe="Strategies documentation",MIe=(e,t)=>{const{isChangeRequestConfigured:n}=Bc(e.project),r=n(e.environment),o=!["Cancelled","Applied"].includes(e.state),{user:i}=vi(),a=(i==null?void 0:i.id)===e.createdBy.id,s=r&&o&&a,c=s&&["addStrategy","updateStrategy"].includes(t.action),u=s&&uk(e)>1;return{showEdit:c,showDiscard:u}},BIe=C(e2)(({theme:e})=>({borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(1,1.5)})),FIe=({changeRequest:e,feature:t,change:n,onRefetch:r})=>{const{showDiscard:o,showEdit:i}=MIe(e,n),{discardChange:a}=nm(),{setToastData:s,setToastApiError:c}=$t(),[u,d]=m.useState(!1),p=`cr-${n.id}-actions`,f=`${p}-menu`,[h,g]=m.useState(null),v=!!h,b=k=>{g(k.currentTarget)},y=()=>{g(null)},w=()=>{d(!0)},S=async()=>{try{y(),await a(e.project,e.id,n.id),s({title:"Change discarded from change request draft.",type:"success"}),r==null||r()}catch(k){c(gt(k))}};return l(q,{condition:i||o,show:x(ve,{children:[l(xt,{title:"Change request actions",arrow:!0,describeChild:!0,children:l(jt,{id:p,"aria-controls":v?f:void 0,"aria-haspopup":"true","aria-expanded":v?"true":void 0,onClick:b,type:"button",children:l(Vle,{})})}),l(BIe,{id:f,anchorEl:h,open:v,onClose:y,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},disableScrollLock:!0,children:x(ZE,{"aria-labelledby":p,children:[l(q,{condition:i,show:x(qa,{onClick:w,children:[l(Du,{children:l(di,{})}),l(rn,{children:l(se,{variant:"body2",children:"Edit change"})}),l(OIe,{changeRequestId:e.id,featureId:t,change:n,environment:e.environment,open:u,onSubmit:()=>{d(!1),r==null||r()},onClose:()=>{d(!1)}})]})}),l(q,{condition:o,show:x(qa,{onClick:()=>{S()},children:[l(Du,{children:l(vo,{})}),l(rn,{children:l(se,{variant:"body2",children:"Discard change"})})]})})]})})]})})},zIe=({changeRequest:e,onRefetch:t,onNavigate:n})=>{var r;return l($e,{children:(r=e.features)==null?void 0:r.map(o=>x($5e,{featureName:o.name,projectId:e.project,onNavigate:n,conflict:o.conflict,children:[o.changes.map((i,a)=>l(mI,{discard:l(FIe,{changeRequest:e,feature:o.name,change:i,onRefetch:t}),index:a,changeRequest:e,change:i,feature:o},a)),o.defaultChange?l(mI,{discard:l(se,{variant:"body2",color:"text.secondary",children:o.defaultChange.action==="addStrategy"?"Default strategy will be added":"Feature status will change"}),index:o.changes.length,changeRequest:e,change:o.defaultChange,feature:o}):null]},o.name))})},gI=()=>l(qt,{color:"secondary",icon:l(IL,{fontSize:"small"}),children:"Review required"}),jIe=()=>l(qt,{color:"warning",children:"Draft"}),UIe=({state:e})=>{switch(e){case"Draft":return l(jIe,{});case"In review":return l(gI,{});case"Approved":return l(qt,{color:"success",icon:l($v,{fontSize:"small"}),children:"Approved"});case"Applied":return l(qt,{color:"success",icon:l($v,{fontSize:"small"}),children:"Applied"});case"Cancelled":return l(qt,{color:"error",icon:l(k1,{fontSize:"small"}),children:"Cancelled"});default:return l(gI,{})}},WIe=C(Rd)(({theme:e})=>({height:"32px",width:"32px",marginTop:e.spacing(1),marginRight:e.spacing(2)})),HIe=C($e)(({theme:e})=>({display:"flex",marginTop:e.spacing(2),marginBottom:e.spacing(1)})),VIe=({user:e,commentText:t,onTypeComment:n,children:r})=>x(ve,{children:[x(HIe,{children:[l(xt,{title:(e==null?void 0:e.name)||(e==null?void 0:e.username),children:l(WIe,{src:(e==null?void 0:e.imageUrl)||""})}),l(pn,{variant:"outlined",placeholder:"Add your comment here",fullWidth:!0,multiline:!0,minRows:2,onChange:o=>n(o.target.value),value:t})]}),l($e,{sx:{display:"flex",justifyContent:"flex-end"},children:r})]}),GIe=C($e)(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%","& > div":{width:"100%"},justifyContent:"space-between",marginBottom:e.spacing(1)}));C(se)(({theme:e})=>({display:"flex",alignItems:"center",marginRight:e.spacing(1),fontSize:e.fontSizes.mainHeader}));const qIe=({environmentChangeRequest:e,title:t,setTitle:n,children:r})=>{const[o,i]=m.useState(!0),{updateTitle:a}=nm(),{setToastData:s,setToastApiError:c}=$t(),u=()=>{i(!o)},d=async()=>{u();try{await a(e.project,e.id,t),s({type:"success",title:"Change request title updated!"})}catch(p){c(gt(p))}};return x(GIe,{children:[l(q,{condition:o,show:r,elseShow:l(rr,{label:"Change request title",id:"group-name",value:t,fullWidth:!0,onChange:p=>n(p.target.value),disabled:o})}),l(q,{condition:o,show:l(jt,{onClick:u,children:l(di,{})})}),l(q,{condition:!o,show:x(ve,{children:[l(Ve,{variant:"contained",color:"primary",sx:p=>({marginLeft:p.spacing(2)}),onClick:()=>d(),children:"Save"}),l(Ve,{sx:p=>({marginLeft:p.spacing(1)}),variant:"outlined",onClick:u,children:"Cancel"})," "]})})]})},YIe=({onClick:e,count:t})=>x(Ve,{sx:{ml:"auto"},variant:"contained",onClick:e,children:["Submit change request (",t,")"]}),KIe=C($e)(({theme:e})=>({padding:e.spacing(3,3,1,3),border:"2px solid",borderColor:e.palette.divider,borderRadius:`${e.shape.borderRadiusLarge}px ${e.shape.borderRadiusLarge}px 0 0`,borderBottom:"none",overflow:"hidden",backgroundColor:e.palette.neutral.light})),XIe=C($e)(({theme:e})=>({padding:e.spacing(3,3,3,3),border:"2px solid",marginBottom:e.spacing(5),borderColor:e.palette.divider,borderRadius:`0 0 ${e.shape.borderRadiusLarge}px ${e.shape.borderRadiusLarge}px`,borderTop:"none",overflow:"hidden"})),JIe=({environmentChangeRequest:e,onClose:t,onReview:n,onDiscard:r,children:o})=>{const i=yn(),a=pt(),[s,c]=m.useState(""),{user:u}=vi(),[d,p]=m.useState(e.title);return x($e,{children:[x(KIe,{children:[x($e,{sx:{display:"flex",alignItems:"end"},children:[x($e,{sx:{display:"flex",alignItems:"center"},children:[l($L,{sx:f=>({color:f.palette.primary.light,mr:.5})}),l(se,{component:"span",variant:"h2",children:e.environment}),l(oOe,{}),l(iOe,{count:e.features.length})]}),l($e,{sx:{ml:"auto"},children:l(UIe,{state:e.state})})]}),l(To,{sx:{my:3}}),l(qIe,{environmentChangeRequest:e,title:d,setTitle:p,children:l(rr,{label:"Change request title",id:"group-name",fullWidth:!0,value:d,onChange:()=>{},disabled:!0})})]}),x(XIe,{children:[l(se,{variant:"body2",color:"text.secondary",children:"You request changes for these feature toggles:"}),o,l(q,{condition:(e==null?void 0:e.state)==="Draft",show:l(VIe,{user:u,commentText:s,onTypeComment:c})}),x($e,{sx:{display:"flex",mt:3},children:[l(q,{condition:(e==null?void 0:e.state)==="Draft",show:x(ve,{children:[l(YIe,{onClick:()=>n(e.id,s),count:uk(e)}),l(Ve,{sx:{ml:2},variant:"outlined",onClick:()=>r(e.id),children:"Discard changes"})]})}),l(q,{condition:e.state==="In review"||e.state==="Approved",show:l(ve,{children:x(rOe,{children:[l(nOe,{}),l(se,{color:i.palette.success.dark,children:"Draft successfully sent to review"}),l(Ve,{sx:{marginLeft:2},variant:"outlined",onClick:()=>{t(),a(`/projects/${e.project}/change-requests/${e.id}`)},children:"View change request page"})]})})})]})]})]},e.id)},QIe=C(Nv)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginLeft:"0.3rem",color:e.palette.action.active})),ZIe=C("div")(({theme:e})=>({color:e.palette.text.secondary,fontSize:e.fontSizes.smallBody})),eOe=()=>l(Tn,{actions:"",titleElement:x(ve,{children:[x($e,{sx:{display:"flex",alignItems:"center"},children:["Review your changes",l(xt,{title:"Here you can see all the changes that you are suggesting and you can send them for review. You can still discard the changes after you sent them for review or even cancel the entire review if you need it",arrow:!0,children:l(QIe,{})})]}),l(ZIe,{children:"Make sure you are sending the right changes to be reviewed"})]})}),vI=C(yr)(({theme:e})=>({height:"100vh",overflow:"auto",minWidth:"50vw",padding:e.spacing(6),[e.breakpoints.down("md")]:{padding:e.spacing(4,2)},"& .header":{padding:e.spacing(0,0,2,0)},"& .body":{padding:e.spacing(3,0,0,0)},borderRadius:`${e.spacing(1.5,0,0,1.5)} !important`})),tOe=C(Ve)(({theme:e})=>({marginTop:e.spacing(2),marginLeft:"auto"})),nOe=C(PL)(({theme:e})=>({color:e.palette.success.main,height:"32px",width:"32px",marginRight:e.spacing(1)})),rOe=C($e)(()=>({marginLeft:"auto",display:"flex",alignItems:"center"})),oOe=()=>l(se,{component:"span",sx:{marginLeft:1.5,marginRight:1.5,color:"divider"},children:"|"}),iOe=({count:e})=>x($e,{children:[x(se,{component:"span",variant:"body1",color:"text.secondary",children:["Updates:"," "]}),x(se,{component:"span",sx:{fontWeight:"bold"},children:[e," ",e===1?"feature toggle":"feature toggles"]})]}),aOe=({open:e,project:t,onClose:n})=>{const{data:r,loading:o,refetch:i}=e0(t),{changeState:a,discardDraft:s}=nm(),{setToastApiError:c}=$t(),u=async(p,f)=>{try{await a(t,p,{state:"In review",comment:f}),i()}catch(h){c(gt(h))}},d=async p=>{try{await s(t,p),i()}catch(f){c(gt(f))}};return!o&&!r?l(U3,{open:e,onClose:n,label:"Review changes",children:x(vI,{disableBorder:!0,header:l(Tn,{titleElement:"Review your changes"}),children:["There are no changes to review.",l(tOe,{onClick:n,children:"Close"})]})}):l(U3,{open:e,onClose:n,label:"Review changes",children:l(vI,{disableBorder:!0,header:l(eOe,{}),children:r==null?void 0:r.map(p=>l(JIe,{environmentChangeRequest:p,onClose:n,onReview:u,onDiscard:d,children:l(zIe,{changeRequest:p,onNavigate:n,onRefetch:i})},p.id))})})},sOe=C($e)(({theme:e})=>({display:"flex",alignItems:"center",padding:e.spacing(1,0),[e.breakpoints.down("lg")]:{padding:e.spacing(1,2)}})),lOe=C($e)(({theme:e})=>({width:"1250px",marginLeft:"auto",marginRight:"auto",[e.breakpoints.down("lg")]:{width:"1024px"},[e.breakpoints.down(1024)]:{width:"100%",marginLeft:0,marginRight:0},[e.breakpoints.down("sm")]:{minWidth:"100%"}})),cOe=({changeRequests:e,onClick:t})=>{const n=e.map(({environment:a})=>a),r=e.reduce((a,s)=>a+uk(s),0),i=e.length===1&&["Draft","In review","Approved"].includes(e[0].state)?{Draft:" that need to be reviewed","In review":" that are in review",Approved:" that are approved. Adding more changes will clear the approvals and require a new review"}[e[0].state]:"";return l(lOe,{children:x(sOe,{children:[x(se,{variant:"body2",sx:{mr:4},children:[l("strong",{children:"Change request mode"})," – You have changes"," ",l(q,{condition:!!n,show:x(ve,{children:["in"," ",n.map((a,s)=>s===0?l(m.Fragment,{children:l("strong",{children:a})},a):x(m.Fragment,{children:[s===n.length-1?" and ":", ",l("strong",{children:a})]},a))]})}),i,"."]}),x(Ve,{variant:"contained",onClick:t,sx:{ml:"auto"},children:["View changes (",r,")"]})]})})},uOe=C($e)(({theme:e})=>({position:"sticky",top:-1,zIndex:250,borderTop:`1px solid ${e.palette.warning.border}`,borderBottom:`1px solid ${e.palette.warning.border}`,color:e.palette.warning.contrastText,backgroundColor:e.palette.warning.light})),dOe=({project:e})=>{const[t,n]=m.useState(!1),{data:r,loading:o}=e0(e),i=m.useMemo(()=>r==null?void 0:r.filter(a=>["Draft","In review","Approved"].includes(a.state)),[r]);return!o&&!r||(r==null?void 0:r.length)===0?null:x(uOe,{children:[l(q,{condition:!!(i!=null&&i.length),show:l(cOe,{changeRequests:i,onClick:()=>{n(!0)}})}),l(aOe,{project:e,open:t,onClose:()=>{n(!1)}})]})},pOe=e=>m.createElement("svg",{width:45,height:61,viewBox:"0 0 45 61",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{opacity:.789,d:"M29.701 38.852C25.591 37.941 24.679 37.007 23.764 32.915C23.664 32.469 23.764 32 23.306 32C22.848 32 22.937 32.469 22.848 32.915C21.937 37.044 21.022 37.94 16.911 38.852C16.465 38.952 16 38.852 16 39.31C16 39.768 16.465 39.679 16.911 39.768C21.021 40.679 21.936 41.613 22.848 45.705C22.948 46.151 22.848 46.62 23.306 46.62C23.764 46.62 23.675 46.151 23.764 45.705C24.679 41.595 25.609 40.68 29.701 39.768C30.147 39.668 30.616 39.768 30.616 39.31C30.616 38.852 30.148 38.952 29.701 38.852Z",fill:"white"}),m.createElement("path",{opacity:.4,d:"M10.686 52.1838C7.46503 51.4728 6.75403 50.7558 6.06003 47.5578C5.97903 47.2048 6.06003 46.8408 5.70103 46.8408C5.34203 46.8408 5.41803 47.2048 5.34203 47.5578C4.62503 50.7788 3.90803 51.4958 0.716026 52.1838C0.369026 52.2648 -0.000976562 52.1838 -0.000976562 52.5428C-0.000976562 52.9018 0.369026 52.8258 0.716026 52.9018C3.93703 53.6188 4.65403 54.3358 5.34203 57.5568C5.41703 57.9038 5.34203 58.2738 5.70103 58.2738C6.06003 58.2738 5.97903 57.9038 6.06003 57.5568C6.77703 54.3358 7.48803 53.6188 10.686 52.9018C11.039 52.8268 11.403 52.9018 11.403 52.5428C11.403 52.1838 11.039 52.2648 10.686 52.1838Z",fill:"white"}),m.createElement("path",{opacity:.739,d:"M34.19 12.595C31.434 11.981 30.825 11.37 30.209 8.612C30.142 8.312 30.209 8 29.902 8C29.595 8 29.662 8.313 29.595 8.612C28.983 11.37 28.37 11.977 25.614 12.595C25.314 12.66 25 12.595 25 12.902C25 13.209 25.315 13.142 25.614 13.202C28.37 13.816 28.979 14.427 29.595 17.185C29.662 17.485 29.595 17.797 29.902 17.797C30.209 17.797 30.142 17.484 30.209 17.185C30.821 14.427 31.434 13.82 34.19 13.202C34.49 13.137 34.804 13.202 34.804 12.902C34.804 12.602 34.49 12.66 34.19 12.595Z",fill:"white"}),m.createElement("path",{opacity:.7,d:"M38.666 55.832C36.366 55.32 35.859 54.81 35.345 52.51C35.289 52.261 35.345 52 35.089 52C34.833 52 34.889 52.261 34.833 52.51C34.323 54.81 33.811 55.317 31.512 55.832C31.263 55.886 31 55.832 31 56.088C31 56.344 31.263 56.288 31.512 56.342C33.812 56.854 34.319 57.364 34.833 59.664C34.889 59.913 34.833 60.174 35.089 60.174C35.345 60.174 35.289 59.913 35.345 59.664C35.855 57.364 36.367 56.857 38.666 56.342C38.917 56.287 39.178 56.342 39.178 56.088C39.178 55.834 38.917 55.886 38.666 55.832Z",fill:"white"}),m.createElement("path",{opacity:.855,d:"M19.336 2.668C17.736 2.312 17.382 1.95598 17.024 0.35498C16.985 0.18098 17.024 0 16.846 0C16.668 0 16.707 0.18198 16.668 0.35498C16.313 1.95498 15.956 2.309 14.356 2.668C14.182 2.706 14 2.66798 14 2.84598C14 3.02398 14.183 2.98498 14.356 3.02298C15.956 3.37898 16.31 3.735 16.668 5.336C16.707 5.51 16.668 5.69098 16.846 5.69098C17.024 5.69098 16.985 5.509 17.024 5.336C17.379 3.736 17.736 3.38198 19.336 3.02298C19.511 2.98498 19.692 3.02298 19.692 2.84598C19.692 2.66898 19.511 2.706 19.336 2.668Z",fill:"white"}),m.createElement("path",{opacity:.855,d:"M11.336 25.668C9.736 25.312 9.382 24.956 9.024 23.355C8.985 23.181 9.024 23 8.846 23C8.668 23 8.707 23.182 8.668 23.355C8.313 24.955 7.956 25.309 6.356 25.668C6.182 25.706 6 25.668 6 25.846C6 26.024 6.183 25.985 6.356 26.023C7.956 26.379 8.31 26.735 8.668 28.336C8.707 28.51 8.668 28.691 8.846 28.691C9.024 28.691 8.985 28.509 9.024 28.336C9.379 26.736 9.736 26.382 11.336 26.023C11.511 25.985 11.692 26.023 11.692 25.846C11.692 25.669 11.511 25.706 11.336 25.668Z",fill:"white"}),m.createElement("path",{opacity:.5,d:"M44.336 28.668C42.736 28.312 42.382 27.956 42.024 26.355C41.985 26.181 42.024 26 41.846 26C41.668 26 41.707 26.182 41.668 26.355C41.313 27.955 40.956 28.309 39.356 28.668C39.182 28.706 39 28.668 39 28.846C39 29.024 39.183 28.985 39.356 29.023C40.956 29.379 41.31 29.735 41.668 31.336C41.707 31.51 41.668 31.691 41.846 31.691C42.024 31.691 41.985 31.509 42.024 31.336C42.379 29.736 42.736 29.382 44.336 29.023C44.511 28.985 44.692 29.023 44.692 28.846C44.692 28.669 44.511 28.706 44.336 28.668Z",fill:"white"})),fOe=C(c1)(({theme:e})=>({position:"fixed",bottom:0,left:0,width:"100%",maxWidth:e.spacing(30),zIndex:e.zIndex.sticky,boxShadow:e.boxShadows.popup,"&&&":{borderRadius:0,borderTopLeftRadius:e.shape.borderRadiusLarge,borderTopRightRadius:e.shape.borderRadiusLarge},"&:before":{display:"none"},"& .expand-icon":{position:"absolute",right:e.spacing(2),fontSize:e.fontSizes.mainHeader,transition:"transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",transform:"rotate(180deg)"},"&.Mui-expanded .expand-icon":{transform:"rotate(0)"}})),hOe=C(p1)(({theme:e})=>({"& .MuiAccordionSummary-content":{flexDirection:"column",alignItems:"center"},backgroundColor:e.palette.web.main,color:e.palette.web.contrastText,borderTopLeftRadius:e.shape.borderRadiusLarge,borderTopRightRadius:e.shape.borderRadiusLarge,height:91})),mOe=C(pOe)({position:"absolute",left:6,top:-24}),gOe=C(LL)(({theme:e})=>({color:e.palette.primary.contrastText})),vOe=C("div")({display:"flex",alignItems:"center"}),yOe=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallerBody,marginTop:e.spacing(.5),marginBottom:e.spacing(.5)})),bOe=C("div")(({theme:e})=>({width:"100%",display:"flex",alignItems:"center",gap:e.spacing(1.5)})),wOe=C(T6)(({theme:e})=>({width:"100%",height:e.spacing(1),borderRadius:e.shape.borderRadius,[`&.${R_.colorPrimary}`]:{backgroundColor:yt(e.palette.web.contrastText,.1)},[`& .${R_.bar}`]:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.web.contrastText}})),SOe=C("li",{shouldForwardProp:e=>e!=="selected"&&e!=="completed"})(({theme:e,selected:t,completed:n})=>({padding:e.spacing(1),cursor:"pointer",display:"flex",alignItems:"center",marginTop:e.spacing(1),borderRadius:e.shape.borderRadius,gap:e.spacing(1),backgroundColor:e.palette.background.elevation2,...t&&{backgroundColor:e.palette.secondary.light,fontWeight:e.typography.fontWeightBold,outline:`1px solid ${e.palette.primary.main}`},...n&&{backgroundColor:e.palette.background.elevation1,textDecoration:"line-through"}})),xOe=C(PL)(({theme:e})=>({color:e.palette.primary.main,fontSize:e.fontSizes.bodySize})),COe=C(IL)(({theme:e})=>({color:e.palette.neutral.main,fontSize:e.fontSizes.bodySize})),EOe=C(LL)(({theme:e})=>({transform:"rotate(-90deg)",fontSize:e.fontSizes.bodySize})),TOe=C(Ve)(({theme:e})=>({width:"100%",marginTop:e.spacing(2),"&&&":{fontSize:e.fontSizes.smallBody}})),kOe=({expanded:e,setExpanded:t,stepsCompletion:n,currentTopic:r,setCurrentTopic:o,topics:i,onWelcome:a})=>{const s=n.reduce((d,p)=>d+(p||0),0),c=i.flatMap(({steps:d})=>d).length,u=s/c*100;return x(fOe,{expanded:e,onChange:()=>t(d=>!d),children:[x(hOe,{children:[l(mOe,{}),x(vOe,{children:[l(se,{fontWeight:"bold",children:"Unleash demo"}),l(gOe,{className:"expand-icon"})]}),l(yOe,{children:"Complete all steps to finish demo"}),x(bOe,{children:[x(se,{variant:"body2",children:[u.toFixed(),"%"]}),l(wOe,{variant:"determinate",value:u})]})]}),x(u1,{children:[l(se,{variant:"body2",paddingTop:1,children:"The steps will guide you"}),i.map((d,p)=>{const f=r===p,h=n[p]===d.steps.length;return x(SOe,{onClick:()=>o(p),selected:f,completed:h,children:[l(q,{condition:h,show:l(xOe,{}),elseShow:l(COe,{})}),l(se,{variant:"body2",sx:{flex:1},children:d.title}),l(EOe,{})]},d.title)}),l(TOe,{variant:"outlined",onClick:a,children:"View demo page"})]})]})};function yB(e){return function(t){return typeof t===e}}var AOe=yB("function"),ROe=function(e){return e===null},yI=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},bI=function(e){return!_Oe(e)&&!ROe(e)&&(AOe(e)||typeof e=="object")},_Oe=yB("undefined"),zx=globalThis&&globalThis.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function POe(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!Fo(e[r],t[r]))return!1;return!0}function IOe(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),o=e.byteLength;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}function OOe(e,t){var n,r,o,i;if(e.size!==t.size)return!1;try{for(var a=zx(e.entries()),s=a.next();!s.done;s=a.next()){var c=s.value;if(!t.has(c[0]))return!1}}catch(p){n={error:p}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var u=zx(e.entries()),d=u.next();!d.done;d=u.next()){var c=d.value;if(!Fo(c[1],t.get(c[0])))return!1}}catch(p){o={error:p}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return!0}function $Oe(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var o=zx(e.entries()),i=o.next();!i.done;i=o.next()){var a=i.value;if(!t.has(a[0]))return!1}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!0}function Fo(e,t){if(e===t)return!0;if(e&&bI(e)&&t&&bI(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return POe(e,t);if(e instanceof Map&&t instanceof Map)return OOe(e,t);if(e instanceof Set&&t instanceof Set)return $Oe(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return IOe(e,t);if(yI(e)&&yI(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=n.length;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(var o=n.length;o--!==0;){var i=n[o];if(!(i==="_owner"&&e.$$typeof)&&!Fo(e[i],t[i]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var NOe=["innerHTML","ownerDocument","style","attributes","nodeValue"],LOe=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],DOe=["bigint","boolean","null","number","string","symbol","undefined"];function s0(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(MOe(t))return t}function ya(e){return function(t){return s0(t)===e}}function MOe(e){return LOe.includes(e)}function Vd(e){return function(t){return typeof t===e}}function BOe(e){return DOe.includes(e)}function xe(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(xe.array(e))return"Array";if(xe.plainFunction(e))return"Function";var t=s0(e);return t||"Object"}xe.array=Array.isArray;xe.arrayOf=function(e,t){return!xe.array(e)&&!xe.function(t)?!1:e.every(function(n){return t(n)})};xe.asyncGeneratorFunction=function(e){return s0(e)==="AsyncGeneratorFunction"};xe.asyncFunction=ya("AsyncFunction");xe.bigint=Vd("bigint");xe.boolean=function(e){return e===!0||e===!1};xe.date=ya("Date");xe.defined=function(e){return!xe.undefined(e)};xe.domElement=function(e){return xe.object(e)&&!xe.plainObject(e)&&e.nodeType===1&&xe.string(e.nodeName)&&NOe.every(function(t){return t in e})};xe.empty=function(e){return xe.string(e)&&e.length===0||xe.array(e)&&e.length===0||xe.object(e)&&!xe.map(e)&&!xe.set(e)&&Object.keys(e).length===0||xe.set(e)&&e.size===0||xe.map(e)&&e.size===0};xe.error=ya("Error");xe.function=Vd("function");xe.generator=function(e){return xe.iterable(e)&&xe.function(e.next)&&xe.function(e.throw)};xe.generatorFunction=ya("GeneratorFunction");xe.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};xe.iterable=function(e){return!xe.nullOrUndefined(e)&&xe.function(e[Symbol.iterator])};xe.map=ya("Map");xe.nan=function(e){return Number.isNaN(e)};xe.null=function(e){return e===null};xe.nullOrUndefined=function(e){return xe.null(e)||xe.undefined(e)};xe.number=function(e){return Vd("number")(e)&&!xe.nan(e)};xe.numericString=function(e){return xe.string(e)&&e.length>0&&!Number.isNaN(Number(e))};xe.object=function(e){return!xe.nullOrUndefined(e)&&(xe.function(e)||typeof e=="object")};xe.oneOf=function(e,t){return xe.array(e)?e.indexOf(t)>-1:!1};xe.plainFunction=ya("Function");xe.plainObject=function(e){if(s0(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};xe.primitive=function(e){return xe.null(e)||BOe(typeof e)};xe.promise=ya("Promise");xe.propertyOf=function(e,t,n){if(!xe.object(e)||!t)return!1;var r=e[t];return xe.function(n)?n(r):xe.defined(r)};xe.regexp=ya("RegExp");xe.set=ya("Set");xe.string=Vd("string");xe.symbol=Vd("symbol");xe.undefined=Vd("undefined");xe.weakMap=ya("WeakMap");xe.weakSet=ya("WeakSet");function FOe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return xe.string(n)||xe.array(n)||xe.plainObject(n)})}function zOe(e,t,n){return bB(e,t)?[e,t].every(xe.array)?!e.some(EI(n))&&t.some(EI(n)):[e,t].every(xe.plainObject)?!Object.entries(e).some(CI(n))&&Object.entries(t).some(CI(n)):t===n:!1}function wI(e,t,n){var r=n.actual,o=n.key,i=n.previous,a=n.type,s=Ma(e,o),c=Ma(t,o),u=[s,c].every(xe.number)&&(a==="increased"?s<c:s>c);return xe.undefined(r)||(u=u&&c===r),xe.undefined(i)||(u=u&&s===i),u}function SI(e,t,n){var r=n.key,o=n.type,i=n.value,a=Ma(e,r),s=Ma(t,r),c=o==="added"?a:s,u=o==="added"?s:a;if(!xe.nullOrUndefined(i)){if(xe.defined(c)){if(xe.array(c)||xe.plainObject(c))return zOe(c,u,i)}else return Fo(u,i);return!1}return[a,s].every(xe.array)?!u.every(dk(c)):[a,s].every(xe.plainObject)?jOe(Object.keys(c),Object.keys(u)):![a,s].every(function(d){return xe.primitive(d)&&xe.defined(d)})&&(o==="added"?!xe.defined(a)&&xe.defined(s):xe.defined(a)&&!xe.defined(s))}function xI(e,t,n){var r=n===void 0?{}:n,o=r.key,i=Ma(e,o),a=Ma(t,o);if(!bB(i,a))throw new TypeError("Inputs have different types");if(!FOe(i,a))throw new TypeError("Inputs don't have length");return[i,a].every(xe.plainObject)&&(i=Object.keys(i),a=Object.keys(a)),[i,a]}function CI(e){return function(t){var n=t[0],r=t[1];return xe.array(e)?Fo(e,r)||e.some(function(o){return Fo(o,r)||xe.array(r)&&dk(r)(o)}):xe.plainObject(e)&&e[n]?!!e[n]&&Fo(e[n],r):Fo(e,r)}}function jOe(e,t){return t.some(function(n){return!e.includes(n)})}function EI(e){return function(t){return xe.array(e)?e.some(function(n){return Fo(n,t)||xe.array(t)&&dk(t)(n)}):Fo(e,t)}}function Dp(e,t){return xe.array(e)?e.some(function(n){return Fo(n,t)}):Fo(e,t)}function dk(e){return function(t){return e.some(function(n){return Fo(n,t)})}}function bB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(xe.array)||e.every(xe.number)||e.every(xe.plainObject)||e.every(xe.string)}function Ma(e,t){if(xe.plainObject(e)||xe.array(e)){if(xe.string(t)){var n=t.split(".");return n.reduce(function(r,o){return r&&r[o]},e)}return xe.number(t)?e[t]:e}return e}function Sh(e,t){if([e,t].some(xe.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(p){return xe.plainObject(p)||xe.array(p)}))throw new Error("Expected plain objects or array");var n=function(p,f){try{return SI(e,t,{key:p,type:"added",value:f})}catch{return!1}},r=function(p,f,h){try{var g=Ma(e,p),v=Ma(t,p),b=xe.defined(f),y=xe.defined(h);if(b||y){var w=y?Dp(h,g):!Dp(f,g),S=Dp(f,v);return w&&S}return[g,v].every(xe.array)||[g,v].every(xe.plainObject)?!Fo(g,v):g!==v}catch{return!1}},o=function(p,f,h){if(!xe.defined(p))return!1;try{var g=Ma(e,p),v=Ma(t,p),b=xe.defined(h);return Dp(f,g)&&(b?Dp(h,v):!b)}catch{return!1}},i=function(p,f){return xe.defined(p)?r(p,f):!1},a=function(p,f,h){if(!xe.defined(p))return!1;try{return wI(e,t,{key:p,actual:f,previous:h,type:"decreased"})}catch{return!1}},s=function(p){try{var f=xI(e,t,{key:p}),h=f[0],g=f[1];return!!h.length&&!g.length}catch{return!1}},c=function(p){try{var f=xI(e,t,{key:p}),h=f[0],g=f[1];return!h.length&&!!g.length}catch{return!1}},u=function(p,f,h){if(!xe.defined(p))return!1;try{return wI(e,t,{key:p,actual:f,previous:h,type:"increased"})}catch{return!1}},d=function(p,f){try{return SI(e,t,{key:p,type:"removed",value:f})}catch{return!1}};return{added:n,changed:r,changedFrom:o,changedTo:i,decreased:a,emptied:s,filled:c,increased:u,removed:d}}var UOe=["innerHTML","ownerDocument","style","attributes","nodeValue"],WOe=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],HOe=["bigint","boolean","null","number","string","symbol","undefined"];function l0(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(VOe(t))return t}function ba(e){return t=>l0(t)===e}function VOe(e){return WOe.includes(e)}function Gd(e){return t=>typeof t===e}function GOe(e){return HOe.includes(e)}function at(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(at.array(e))return"Array";if(at.plainFunction(e))return"Function";const t=l0(e);return t||"Object"}at.array=Array.isArray;at.arrayOf=(e,t)=>!at.array(e)&&!at.function(t)?!1:e.every(n=>t(n));at.asyncGeneratorFunction=e=>l0(e)==="AsyncGeneratorFunction";at.asyncFunction=ba("AsyncFunction");at.bigint=Gd("bigint");at.boolean=e=>e===!0||e===!1;at.date=ba("Date");at.defined=e=>!at.undefined(e);at.domElement=e=>at.object(e)&&!at.plainObject(e)&&e.nodeType===1&&at.string(e.nodeName)&&UOe.every(t=>t in e);at.empty=e=>at.string(e)&&e.length===0||at.array(e)&&e.length===0||at.object(e)&&!at.map(e)&&!at.set(e)&&Object.keys(e).length===0||at.set(e)&&e.size===0||at.map(e)&&e.size===0;at.error=ba("Error");at.function=Gd("function");at.generator=e=>at.iterable(e)&&at.function(e.next)&&at.function(e.throw);at.generatorFunction=ba("GeneratorFunction");at.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;at.iterable=e=>!at.nullOrUndefined(e)&&at.function(e[Symbol.iterator]);at.map=ba("Map");at.nan=e=>Number.isNaN(e);at.null=e=>e===null;at.nullOrUndefined=e=>at.null(e)||at.undefined(e);at.number=e=>Gd("number")(e)&&!at.nan(e);at.numericString=e=>at.string(e)&&e.length>0&&!Number.isNaN(Number(e));at.object=e=>!at.nullOrUndefined(e)&&(at.function(e)||typeof e=="object");at.oneOf=(e,t)=>at.array(e)?e.indexOf(t)>-1:!1;at.plainFunction=ba("Function");at.plainObject=e=>{if(l0(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};at.primitive=e=>at.null(e)||GOe(typeof e);at.promise=ba("Promise");at.propertyOf=(e,t,n)=>{if(!at.object(e)||!t)return!1;const r=e[t];return at.function(n)?n(r):at.defined(r)};at.regexp=ba("RegExp");at.set=ba("Set");at.string=Gd("string");at.symbol=Gd("symbol");at.undefined=Gd("undefined");at.weakMap=ba("WeakMap");at.weakSet=ba("WeakSet");var gr=at,wB={exports:{}};/*!
374
+ Copyright (c) 2015 Jed Watson.
375
+ Based on code that is Copyright 2013-2015, Facebook, Inc.
376
+ All rights reserved.
377
+ */(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(wB);var qOe=wB.exports;const SB=Yr(qOe);var YOe=new Error("Element already at target scroll position"),KOe=new Error("Scroll cancelled"),XOe=Math.min,TI=Date.now,JOe={left:kI("scrollLeft"),top:kI("scrollTop")};function kI(e){return function(n,r,o,i){o=o||{},typeof o=="function"&&(i=o,o={}),typeof i!="function"&&(i=ZOe);var a=TI(),s=n[e],c=o.ease||QOe,u=isNaN(o.duration)?350:+o.duration,d=!1;return s===r?i(YOe,n[e]):requestAnimationFrame(f),p;function p(){d=!0}function f(h){if(d)return i(KOe,n[e]);var g=TI(),v=XOe(1,(g-a)/u),b=c(v);n[e]=b*(r-s)+s,v<1?requestAnimationFrame(f):requestAnimationFrame(function(){i(null,n[e])})}}}function QOe(e){return .5*(1-Math.cos(Math.PI*e))}function ZOe(){}const e4e=Yr(JOe);var xB={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(ki,function(){var t=/(auto|scroll)/,n=function(s,c){return s.parentNode===null?c:n(s.parentNode,c.concat([s]))},r=function(s,c){return getComputedStyle(s,null).getPropertyValue(c)},o=function(s){return r(s,"overflow")+r(s,"overflow-y")+r(s,"overflow-x")},i=function(s){return t.test(o(s))},a=function(s){if(s instanceof HTMLElement||s instanceof SVGElement){for(var c=n(s.parentNode,[]),u=0;u<c.length;u+=1)if(i(c[u]))return c[u];return document.scrollingElement||document.documentElement}};return a})})(xB);var t4e=xB.exports;const CB=Yr(t4e);var EB={exports:{}},Ln={};/** @license React v16.13.1
378
+ * react-is.production.min.js
379
+ *
380
+ * Copyright (c) Facebook, Inc. and its affiliates.
381
+ *
382
+ * This source code is licensed under the MIT license found in the
383
+ * LICENSE file in the root directory of this source tree.
384
+ */var Qr=typeof Symbol=="function"&&Symbol.for,pk=Qr?Symbol.for("react.element"):60103,fk=Qr?Symbol.for("react.portal"):60106,c0=Qr?Symbol.for("react.fragment"):60107,u0=Qr?Symbol.for("react.strict_mode"):60108,d0=Qr?Symbol.for("react.profiler"):60114,p0=Qr?Symbol.for("react.provider"):60109,f0=Qr?Symbol.for("react.context"):60110,hk=Qr?Symbol.for("react.async_mode"):60111,h0=Qr?Symbol.for("react.concurrent_mode"):60111,m0=Qr?Symbol.for("react.forward_ref"):60112,g0=Qr?Symbol.for("react.suspense"):60113,n4e=Qr?Symbol.for("react.suspense_list"):60120,v0=Qr?Symbol.for("react.memo"):60115,y0=Qr?Symbol.for("react.lazy"):60116,r4e=Qr?Symbol.for("react.block"):60121,o4e=Qr?Symbol.for("react.fundamental"):60117,i4e=Qr?Symbol.for("react.responder"):60118,a4e=Qr?Symbol.for("react.scope"):60119;function bi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case pk:switch(e=e.type,e){case hk:case h0:case c0:case d0:case u0:case g0:return e;default:switch(e=e&&e.$$typeof,e){case f0:case m0:case y0:case v0:case p0:return e;default:return t}}case fk:return t}}}function TB(e){return bi(e)===h0}Ln.AsyncMode=hk;Ln.ConcurrentMode=h0;Ln.ContextConsumer=f0;Ln.ContextProvider=p0;Ln.Element=pk;Ln.ForwardRef=m0;Ln.Fragment=c0;Ln.Lazy=y0;Ln.Memo=v0;Ln.Portal=fk;Ln.Profiler=d0;Ln.StrictMode=u0;Ln.Suspense=g0;Ln.isAsyncMode=function(e){return TB(e)||bi(e)===hk};Ln.isConcurrentMode=TB;Ln.isContextConsumer=function(e){return bi(e)===f0};Ln.isContextProvider=function(e){return bi(e)===p0};Ln.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===pk};Ln.isForwardRef=function(e){return bi(e)===m0};Ln.isFragment=function(e){return bi(e)===c0};Ln.isLazy=function(e){return bi(e)===y0};Ln.isMemo=function(e){return bi(e)===v0};Ln.isPortal=function(e){return bi(e)===fk};Ln.isProfiler=function(e){return bi(e)===d0};Ln.isStrictMode=function(e){return bi(e)===u0};Ln.isSuspense=function(e){return bi(e)===g0};Ln.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===c0||e===h0||e===d0||e===u0||e===g0||e===n4e||typeof e=="object"&&e!==null&&(e.$$typeof===y0||e.$$typeof===v0||e.$$typeof===p0||e.$$typeof===f0||e.$$typeof===m0||e.$$typeof===o4e||e.$$typeof===i4e||e.$$typeof===a4e||e.$$typeof===r4e)};Ln.typeOf=bi;EB.exports=Ln;var Mp=EB.exports,s4e=function(t){return l4e(t)&&!c4e(t)};function l4e(e){return!!e&&typeof e=="object"}function c4e(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||p4e(e)}var u4e=typeof Symbol=="function"&&Symbol.for,d4e=u4e?Symbol.for("react.element"):60103;function p4e(e){return e.$$typeof===d4e}function f4e(e){return Array.isArray(e)?[]:{}}function xh(e,t){return t.clone!==!1&&t.isMergeableObject(e)?sd(f4e(e),e,t):e}function h4e(e,t,n){return e.concat(t).map(function(r){return xh(r,n)})}function m4e(e,t){if(!t.customMerge)return sd;var n=t.customMerge(e);return typeof n=="function"?n:sd}function g4e(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function AI(e){return Object.keys(e).concat(g4e(e))}function kB(e,t){try{return t in e}catch{return!1}}function v4e(e,t){return kB(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function y4e(e,t,n){var r={};return n.isMergeableObject(e)&&AI(e).forEach(function(o){r[o]=xh(e[o],n)}),AI(t).forEach(function(o){v4e(e,o)||(kB(e,o)&&n.isMergeableObject(t[o])?r[o]=m4e(o,n)(e[o],t[o],n):r[o]=xh(t[o],n))}),r}function sd(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||h4e,n.isMergeableObject=n.isMergeableObject||s4e,n.cloneUnlessOtherwiseSpecified=xh;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):y4e(e,t,n):xh(t,n)}sd.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return sd(r,o,n)},{})};var b4e=sd,w4e=b4e;const _a=Yr(w4e);var AB={};Object.defineProperty(AB,"__esModule",{value:!0});var S4e="The typeValidator argument must be a function with the signature function(props, propName, componentName).",x4e="The error message is optional, but must be a string if provided.",C4e=function(t,n,r,o){return typeof t=="boolean"?t:typeof t=="function"?t(n,r,o):!!t&&!!t},E4e=function(t,n){return Object.hasOwnProperty.call(t,n)},T4e=function(t,n,r,o){return o?new Error(o):new Error("Required "+t[n]+" `"+n+"`"+(" was not specified in `"+r+"`."))},k4e=function(t,n){if(typeof t!="function")throw new TypeError(S4e);if(n&&typeof n!="string")throw new TypeError(x4e)},A4e=function(t,n,r){return k4e(t,r),function(o,i,a){for(var s=arguments.length,c=Array(3<s?s-3:0),u=3;u<s;u++)c[u-3]=arguments[u];return C4e(n,o,i,a)?E4e(o,i)?t.apply(void 0,[o,i,a].concat(c)):T4e(o,i,a,r):t.apply(void 0,[o,i,a].concat(c))}},RI=AB.default=A4e;/**!
385
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
386
+ * @version 1.16.1
387
+ * @license
388
+ * Copyright (c) 2016 Federico Zivolo and contributors
389
+ *
390
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
391
+ * of this software and associated documentation files (the "Software"), to deal
392
+ * in the Software without restriction, including without limitation the rights
393
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
394
+ * copies of the Software, and to permit persons to whom the Software is
395
+ * furnished to do so, subject to the following conditions:
396
+ *
397
+ * The above copyright notice and this permission notice shall be included in all
398
+ * copies or substantial portions of the Software.
399
+ *
400
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
401
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
402
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
403
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
404
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
405
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
406
+ * SOFTWARE.
407
+ */var im=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",R4e=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(im&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function _4e(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function P4e(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},R4e))}}var I4e=im&&window.Promise,O4e=I4e?_4e:P4e;function RB(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Uc(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function mk(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function am(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Uc(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:am(mk(e))}function _B(e){return e&&e.referenceNode?e.referenceNode:e}var _I=im&&!!(window.MSInputMethodContext&&document.documentMode),PI=im&&/MSIE 10/.test(navigator.userAgent);function qd(e){return e===11?_I:e===10?PI:_I||PI}function ld(e){if(!e)return document.documentElement;for(var t=qd(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&Uc(n,"position")==="static"?ld(n):n}function $4e(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||ld(e.firstElementChild)===e}function jx(e){return e.parentNode!==null?jx(e.parentNode):e}function Zv(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||r.contains(o))return $4e(a)?a:ld(a);var s=jx(e);return s.host?Zv(s.host,t):Zv(e,jx(t).host)}function cd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function N4e(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=cd(t,"top"),o=cd(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function II(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function OI(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],qd(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function PB(e){var t=e.body,n=e.documentElement,r=qd(10)&&getComputedStyle(n);return{height:OI("Height",t,n,r),width:OI("Width",t,n,r)}}var L4e=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},D4e=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ud=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},_i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Tl(e){return _i({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Ux(e){var t={};try{if(qd(10)){t=e.getBoundingClientRect();var n=cd(e,"top"),r=cd(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i=e.nodeName==="HTML"?PB(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,c=e.offsetWidth-a,u=e.offsetHeight-s;if(c||u){var d=Uc(e);c-=II(d,"x"),u-=II(d,"y"),o.width-=c,o.height-=u}return Tl(o)}function gk(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=qd(10),o=t.nodeName==="HTML",i=Ux(e),a=Ux(t),s=am(e),c=Uc(t),u=parseFloat(c.borderTopWidth),d=parseFloat(c.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=Tl({top:i.top-a.top-u,left:i.left-a.left-d,width:i.width,height:i.height});if(p.marginTop=0,p.marginLeft=0,!r&&o){var f=parseFloat(c.marginTop),h=parseFloat(c.marginLeft);p.top-=u-f,p.bottom-=u-f,p.left-=d-h,p.right-=d-h,p.marginTop=f,p.marginLeft=h}return(r&&!n?t.contains(s):t===s&&s.nodeName!=="BODY")&&(p=N4e(p,t)),p}function M4e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=gk(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:cd(n),s=t?0:cd(n,"left"),c={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return Tl(c)}function IB(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Uc(e,"position")==="fixed")return!0;var n=mk(e);return n?IB(n):!1}function OB(e){if(!e||!e.parentElement||qd())return document.documentElement;for(var t=e.parentElement;t&&Uc(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function vk(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,i={top:0,left:0},a=o?OB(e):Zv(e,_B(t));if(r==="viewport")i=M4e(a,o);else{var s=void 0;r==="scrollParent"?(s=am(mk(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):r==="window"?s=e.ownerDocument.documentElement:s=r;var c=gk(s,a,o);if(s.nodeName==="HTML"&&!IB(a)){var u=PB(e.ownerDocument),d=u.height,p=u.width;i.top+=c.top-c.marginTop,i.bottom=d+c.top,i.left+=c.left-c.marginLeft,i.right=p+c.left}else i=c}n=n||0;var f=typeof n=="number";return i.left+=f?n:n.left||0,i.top+=f?n:n.top||0,i.right-=f?n:n.right||0,i.bottom-=f?n:n.bottom||0,i}function B4e(e){var t=e.width,n=e.height;return t*n}function $B(e,t,n,r,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=vk(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(s).map(function(f){return _i({key:f},s[f],{area:B4e(s[f])})}).sort(function(f,h){return h.area-f.area}),u=c.filter(function(f){var h=f.width,g=f.height;return h>=n.clientWidth&&g>=n.clientHeight}),d=u.length>0?u[0].key:c[0].key,p=e.split("-")[1];return d+(p?"-"+p:"")}function NB(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=r?OB(t):Zv(t,_B(n));return gk(n,o,r)}function LB(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),o=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),i={width:e.offsetWidth+o,height:e.offsetHeight+r};return i}function ey(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function DB(e,t,n){n=n.split("-")[0];var r=LB(e),o={width:r.width,height:r.height},i=["right","left"].indexOf(n)!==-1,a=i?"top":"left",s=i?"left":"top",c=i?"height":"width",u=i?"width":"height";return o[a]=t[a]+t[c]/2-r[c]/2,n===s?o[s]=t[s]-r[u]:o[s]=t[ey(s)],o}function sm(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function F4e(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(o){return o[t]===n});var r=sm(e,function(o){return o[t]===n});return e.indexOf(r)}function MB(e,t,n){var r=n===void 0?e:e.slice(0,F4e(e,"name",n));return r.forEach(function(o){o.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=o.function||o.fn;o.enabled&&RB(i)&&(t.offsets.popper=Tl(t.offsets.popper),t.offsets.reference=Tl(t.offsets.reference),t=i(t,o))}),t}function z4e(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=NB(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=$B(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=DB(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=MB(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function BB(e,t){return e.some(function(n){var r=n.name,o=n.enabled;return o&&r===t})}function yk(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(typeof document.body.style[i]<"u")return i}return null}function j4e(){return this.state.isDestroyed=!0,BB(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[yk("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function FB(e){var t=e.ownerDocument;return t?t.defaultView:window}function zB(e,t,n,r){var o=e.nodeName==="BODY",i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||zB(am(i.parentNode),t,n,r),r.push(i)}function U4e(e,t,n,r){n.updateBound=r,FB(e).addEventListener("resize",n.updateBound,{passive:!0});var o=am(e);return zB(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function W4e(){this.state.eventsEnabled||(this.state=U4e(this.reference,this.options,this.state,this.scheduleUpdate))}function H4e(e,t){return FB(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function V4e(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=H4e(this.reference,this.state))}function bk(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Wx(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&bk(t[n])&&(r="px"),e.style[n]=t[n]+r})}function G4e(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function q4e(e){return Wx(e.instance.popper,e.styles),G4e(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Wx(e.arrowElement,e.arrowStyles),e}function Y4e(e,t,n,r,o){var i=NB(o,t,e,n.positionFixed),a=$B(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Wx(t,{position:n.positionFixed?"fixed":"absolute"}),n}function K4e(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(y){return y},c=i(o.width),u=i(r.width),d=["left","right"].indexOf(e.placement)!==-1,p=e.placement.indexOf("-")!==-1,f=c%2===u%2,h=c%2===1&&u%2===1,g=t?d||p||f?i:a:s,v=t?i:s;return{left:g(h&&!p&&t?r.left-1:r.left),top:v(r.top),bottom:v(r.bottom),right:g(r.right)}}var X4e=im&&/Firefox/i.test(navigator.userAgent);function J4e(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=sm(e.instance.modifiers,function(S){return S.name==="applyStyle"}).gpuAcceleration;i!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=i!==void 0?i:t.gpuAcceleration,s=ld(e.instance.popper),c=Ux(s),u={position:o.position},d=K4e(e,window.devicePixelRatio<2||!X4e),p=n==="bottom"?"top":"bottom",f=r==="right"?"left":"right",h=yk("transform"),g=void 0,v=void 0;if(p==="bottom"?s.nodeName==="HTML"?v=-s.clientHeight+d.bottom:v=-c.height+d.bottom:v=d.top,f==="right"?s.nodeName==="HTML"?g=-s.clientWidth+d.right:g=-c.width+d.right:g=d.left,a&&h)u[h]="translate3d("+g+"px, "+v+"px, 0)",u[p]=0,u[f]=0,u.willChange="transform";else{var b=p==="bottom"?-1:1,y=f==="right"?-1:1;u[p]=v*b,u[f]=g*y,u.willChange=p+", "+f}var w={"x-placement":e.placement};return e.attributes=_i({},w,e.attributes),e.styles=_i({},u,e.styles),e.arrowStyles=_i({},e.offsets.arrow,e.arrowStyles),e}function jB(e,t,n){var r=sm(e,function(s){var c=s.name;return c===t}),o=!!r&&e.some(function(s){return s.name===n&&s.enabled&&s.order<r.order});if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}function Q4e(e,t){var n;if(!jB(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,c=["left","right"].indexOf(o)!==-1,u=c?"height":"width",d=c?"Top":"Left",p=d.toLowerCase(),f=c?"left":"top",h=c?"bottom":"right",g=LB(r)[u];s[h]-g<a[p]&&(e.offsets.popper[p]-=a[p]-(s[h]-g)),s[p]+g>a[h]&&(e.offsets.popper[p]+=s[p]+g-a[h]),e.offsets.popper=Tl(e.offsets.popper);var v=s[p]+s[u]/2-g/2,b=Uc(e.instance.popper),y=parseFloat(b["margin"+d]),w=parseFloat(b["border"+d+"Width"]),S=v-e.offsets.popper[p]-y-w;return S=Math.max(Math.min(a[u]-g,S),0),e.arrowElement=r,e.offsets.arrow=(n={},ud(n,p,Math.round(S)),ud(n,f,""),n),e}function Z4e(e){return e==="end"?"start":e==="start"?"end":e}var UB=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ow=UB.slice(3);function $I(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ow.indexOf(e),r=Ow.slice(n+1).concat(Ow.slice(0,n));return t?r.reverse():r}var $w={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function e$e(e,t){if(BB(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=vk(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=ey(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case $w.FLIP:a=[r,o];break;case $w.CLOCKWISE:a=$I(r);break;case $w.COUNTERCLOCKWISE:a=$I(r,!0);break;default:a=t.behavior}return a.forEach(function(s,c){if(r!==s||a.length===c+1)return e;r=e.placement.split("-")[0],o=ey(r);var u=e.offsets.popper,d=e.offsets.reference,p=Math.floor,f=r==="left"&&p(u.right)>p(d.left)||r==="right"&&p(u.left)<p(d.right)||r==="top"&&p(u.bottom)>p(d.top)||r==="bottom"&&p(u.top)<p(d.bottom),h=p(u.left)<p(n.left),g=p(u.right)>p(n.right),v=p(u.top)<p(n.top),b=p(u.bottom)>p(n.bottom),y=r==="left"&&h||r==="right"&&g||r==="top"&&v||r==="bottom"&&b,w=["top","bottom"].indexOf(r)!==-1,S=!!t.flipVariations&&(w&&i==="start"&&h||w&&i==="end"&&g||!w&&i==="start"&&v||!w&&i==="end"&&b),k=!!t.flipVariationsByContent&&(w&&i==="start"&&g||w&&i==="end"&&h||!w&&i==="start"&&b||!w&&i==="end"&&v),A=S||k;(f||y||A)&&(e.flipped=!0,(f||y)&&(r=a[c+1]),A&&(i=Z4e(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=_i({},e.offsets.popper,DB(e.instance.popper,e.offsets.reference,e.placement)),e=MB(e.instance.modifiers,e,"flip"))}),e}function t$e(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=["top","bottom"].indexOf(o)!==-1,s=a?"right":"bottom",c=a?"left":"top",u=a?"width":"height";return n[s]<i(r[c])&&(e.offsets.popper[c]=i(r[c])-n[u]),n[c]>i(r[s])&&(e.offsets.popper[c]=i(r[s])),e}function n$e(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(a.indexOf("%")===0){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}var c=Tl(s);return c[t]/100*i}else if(a==="vh"||a==="vw"){var u=void 0;return a==="vh"?u=Math.max(document.documentElement.clientHeight,window.innerHeight||0):u=Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*i}else return i}function r$e(e,t,n,r){var o=[0,0],i=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(d){return d.trim()}),s=a.indexOf(sm(a,function(d){return d.search(/,|\s/)!==-1}));a[s]&&a[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,u=s!==-1?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return u=u.map(function(d,p){var f=(p===1?!i:i)?"height":"width",h=!1;return d.reduce(function(g,v){return g[g.length-1]===""&&["+","-"].indexOf(v)!==-1?(g[g.length-1]=v,h=!0,g):h?(g[g.length-1]+=v,h=!1,g):g.concat(v)},[]).map(function(g){return n$e(g,f,t,n)})}),u.forEach(function(d,p){d.forEach(function(f,h){bk(f)&&(o[p]+=f*(d[h-1]==="-"?-1:1))})}),o}function o$e(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],c=void 0;return bk(+n)?c=[+n,0]:c=r$e(n,i,a,s),s==="left"?(i.top+=c[0],i.left-=c[1]):s==="right"?(i.top+=c[0],i.left+=c[1]):s==="top"?(i.left+=c[0],i.top-=c[1]):s==="bottom"&&(i.left+=c[0],i.top+=c[1]),e.popper=i,e}function i$e(e,t){var n=t.boundariesElement||ld(e.instance.popper);e.instance.reference===n&&(n=ld(n));var r=yk("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var c=vk(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=c;var u=t.priority,d=e.offsets.popper,p={primary:function(h){var g=d[h];return d[h]<c[h]&&!t.escapeWithReference&&(g=Math.max(d[h],c[h])),ud({},h,g)},secondary:function(h){var g=h==="right"?"left":"top",v=d[g];return d[h]>c[h]&&!t.escapeWithReference&&(v=Math.min(d[g],c[h]-(h==="right"?d.width:d.height))),ud({},g,v)}};return u.forEach(function(f){var h=["left","top"].indexOf(f)!==-1?"primary":"secondary";d=_i({},d,p[h](f))}),e.offsets.popper=d,e}function a$e(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=["bottom","top"].indexOf(n)!==-1,c=s?"left":"top",u=s?"width":"height",d={start:ud({},c,i[c]),end:ud({},c,i[c]+i[u]-a[u])};e.offsets.popper=_i({},a,d[r])}return e}function s$e(e){if(!jB(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=sm(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function l$e(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=["left","right"].indexOf(n)!==-1,s=["top","left"].indexOf(n)===-1;return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=ey(t),e.offsets.popper=Tl(o),e}var c$e={shift:{order:100,enabled:!0,fn:a$e},offset:{order:200,enabled:!0,fn:o$e,offset:0},preventOverflow:{order:300,enabled:!0,fn:i$e,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:t$e},arrow:{order:500,enabled:!0,fn:Q4e,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:e$e,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:l$e},hide:{order:800,enabled:!0,fn:s$e},computeStyle:{order:850,enabled:!0,fn:J4e,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:q4e,onLoad:Y4e,gpuAcceleration:void 0}},u$e={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:c$e},b0=function(){function e(t,n){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};L4e(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=O4e(this.update.bind(this)),this.options=_i({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(_i({},e.Defaults.modifiers,o.modifiers)).forEach(function(a){r.options.modifiers[a]=_i({},e.Defaults.modifiers[a]||{},o.modifiers?o.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return _i({name:a},r.options.modifiers[a])}).sort(function(a,s){return a.order-s.order}),this.modifiers.forEach(function(a){a.enabled&&RB(a.onLoad)&&a.onLoad(r.reference,r.popper,r.options,a,r.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return D4e(e,[{key:"update",value:function(){return z4e.call(this)}},{key:"destroy",value:function(){return j4e.call(this)}},{key:"enableEventListeners",value:function(){return W4e.call(this)}},{key:"disableEventListeners",value:function(){return V4e.call(this)}}]),e}();b0.Utils=(typeof window<"u"?window:global).PopperUtils;b0.placements=UB;b0.Defaults=u$e;const NI=b0;function LI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LI(Object(n),!0).forEach(function(r){po(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cm(e,t,n){return t&&DI(e.prototype,t),n&&DI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function um(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hx(e,t)}function ty(e){return ty=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ty(e)}function Hx(e,t){return Hx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Hx(e,t)}function d$e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function p$e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function WB(e,t){if(e==null)return{};var n=p$e(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ss(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f$e(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ss(e)}function dm(e){var t=d$e();return function(){var r=ty(e),o;if(t){var i=ty(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return f$e(this,o)}}var h$e={flip:{padding:20},preventOverflow:{padding:10}},cn={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},hs=SB.canUseDOM,Bp=Ai.createPortal!==void 0;function Nw(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function xg(e){var t=e.title,n=e.data,r=e.warn,o=r===void 0?!1:r,i=e.debug,a=i===void 0?!1:i,s=o?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(c){xe.plainObject(c)&&c.key?s.apply(console,[c.key,c.value]):s.apply(console,[c])}):s.apply(console,[n]),console.groupEnd())}function m$e(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function g$e(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function v$e(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o;o=function(a){n(a),g$e(e,t,o)},m$e(e,t,o,r)}function MI(){}var HB=function(e){um(n,e);var t=dm(n);function n(){return lm(this,n),t.apply(this,arguments)}return cm(n,[{key:"componentDidMount",value:function(){hs&&(this.node||this.appendNode(),Bp||this.renderPortal())}},{key:"componentDidUpdate",value:function(){hs&&(Bp||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!hs||!this.node||(Bp||Ai.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var o=this.props,i=o.id,a=o.zIndex;this.node||(this.node=document.createElement("div"),i&&(this.node.id=i),a&&(this.node.style.zIndex=a),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!hs)return null;var o=this.props,i=o.children,a=o.setRef;if(this.node||this.appendNode(),Bp)return Ai.createPortal(i,this.node);var s=Ai.unstable_renderSubtreeIntoContainer(this,i.length>1?Ce.createElement("div",null,i):i[0],this.node);return a(s),null}},{key:"renderReact16",value:function(){var o=this.props,i=o.hasChildren,a=o.placement,s=o.target;return i?this.renderPortal():s||a==="center"?this.renderPortal():null}},{key:"render",value:function(){return Bp?this.renderReact16():null}}]),n}(Ce.Component);po(HB,"propTypes",{children:fe.oneOfType([fe.element,fe.array]),hasChildren:fe.bool,id:fe.oneOfType([fe.string,fe.number]),placement:fe.string,setRef:fe.func.isRequired,target:fe.oneOfType([fe.object,fe.string]),zIndex:fe.number});var VB=function(e){um(n,e);var t=dm(n);function n(){return lm(this,n),t.apply(this,arguments)}return cm(n,[{key:"parentStyle",get:function(){var o=this.props,i=o.placement,a=o.styles,s=a.arrow.length,c={pointerEvents:"none",position:"absolute",width:"100%"};return i.startsWith("top")?(c.bottom=0,c.left=0,c.right=0,c.height=s):i.startsWith("bottom")?(c.left=0,c.right=0,c.top=0,c.height=s):i.startsWith("left")?(c.right=0,c.top=0,c.bottom=0):i.startsWith("right")&&(c.left=0,c.top=0),c}},{key:"render",value:function(){var o=this.props,i=o.placement,a=o.setArrowRef,s=o.styles,c=s.arrow,u=c.color,d=c.display,p=c.length,f=c.margin,h=c.position,g=c.spread,v={display:d,position:h},b,y=g,w=p;return i.startsWith("top")?(b="0,0 ".concat(y/2,",").concat(w," ").concat(y,",0"),v.bottom=0,v.marginLeft=f,v.marginRight=f):i.startsWith("bottom")?(b="".concat(y,",").concat(w," ").concat(y/2,",0 0,").concat(w),v.top=0,v.marginLeft=f,v.marginRight=f):i.startsWith("left")?(w=g,y=p,b="0,0 ".concat(y,",").concat(w/2," 0,").concat(w),v.right=0,v.marginTop=f,v.marginBottom=f):i.startsWith("right")&&(w=g,y=p,b="".concat(y,",").concat(w," ").concat(y,",0 0,").concat(w/2),v.left=0,v.marginTop=f,v.marginBottom=f),Ce.createElement("div",{className:"__floater__arrow",style:this.parentStyle},Ce.createElement("span",{ref:a,style:v},Ce.createElement("svg",{width:y,height:w,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Ce.createElement("polygon",{points:b,fill:u}))))}}]),n}(Ce.Component);po(VB,"propTypes",{placement:fe.string.isRequired,setArrowRef:fe.func.isRequired,styles:fe.object.isRequired});var y$e=["color","height","width"],GB=function(t){var n=t.handleClick,r=t.styles,o=r.color,i=r.height,a=r.width,s=WB(r,y$e);return Ce.createElement("button",{"aria-label":"close",onClick:n,style:s,type:"button"},Ce.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},Ce.createElement("g",null,Ce.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))};GB.propTypes={handleClick:fe.func.isRequired,styles:fe.object.isRequired};var qB=function(t){var n=t.content,r=t.footer,o=t.handleClick,i=t.open,a=t.positionWrapper,s=t.showCloseButton,c=t.title,u=t.styles,d={content:Ce.isValidElement(n)?n:Ce.createElement("div",{className:"__floater__content",style:u.content},n)};return c&&(d.title=Ce.isValidElement(c)?c:Ce.createElement("div",{className:"__floater__title",style:u.title},c)),r&&(d.footer=Ce.isValidElement(r)?r:Ce.createElement("div",{className:"__floater__footer",style:u.footer},r)),(s||a)&&!xe.boolean(i)&&(d.close=Ce.createElement(GB,{styles:u.close,handleClick:o})),Ce.createElement("div",{className:"__floater__container",style:u.container},d.close,d.title,d.content,d.footer)};qB.propTypes={content:fe.node.isRequired,footer:fe.node,handleClick:fe.func.isRequired,open:fe.bool,positionWrapper:fe.bool.isRequired,showCloseButton:fe.bool.isRequired,styles:fe.object.isRequired,title:fe.node};var YB=function(e){um(n,e);var t=dm(n);function n(){return lm(this,n),t.apply(this,arguments)}return cm(n,[{key:"style",get:function(){var o=this.props,i=o.disableAnimation,a=o.component,s=o.placement,c=o.hideArrow,u=o.status,d=o.styles,p=d.arrow.length,f=d.floater,h=d.floaterCentered,g=d.floaterClosing,v=d.floaterOpening,b=d.floaterWithAnimation,y=d.floaterWithComponent,w={};return c||(s.startsWith("top")?w.padding="0 0 ".concat(p,"px"):s.startsWith("bottom")?w.padding="".concat(p,"px 0 0"):s.startsWith("left")?w.padding="0 ".concat(p,"px 0 0"):s.startsWith("right")&&(w.padding="0 0 0 ".concat(p,"px"))),[cn.OPENING,cn.OPEN].indexOf(u)!==-1&&(w=Qn(Qn({},w),v)),u===cn.CLOSING&&(w=Qn(Qn({},w),g)),u===cn.OPEN&&!i&&(w=Qn(Qn({},w),b)),s==="center"&&(w=Qn(Qn({},w),h)),a&&(w=Qn(Qn({},w),y)),Qn(Qn({},f),w)}},{key:"render",value:function(){var o=this.props,i=o.component,a=o.handleClick,s=o.hideArrow,c=o.setFloaterRef,u=o.status,d={},p=["__floater"];return i?Ce.isValidElement(i)?d.content=Ce.cloneElement(i,{closeFn:a}):d.content=i({closeFn:a}):d.content=Ce.createElement(qB,this.props),u===cn.OPEN&&p.push("__floater__open"),s||(d.arrow=Ce.createElement(VB,this.props)),Ce.createElement("div",{ref:c,className:p.join(" "),style:this.style},Ce.createElement("div",{className:"__floater__body"},d.content,d.arrow))}}]),n}(Ce.Component);po(YB,"propTypes",{component:fe.oneOfType([fe.func,fe.element]),content:fe.node,disableAnimation:fe.bool.isRequired,footer:fe.node,handleClick:fe.func.isRequired,hideArrow:fe.bool.isRequired,open:fe.bool,placement:fe.string.isRequired,positionWrapper:fe.bool.isRequired,setArrowRef:fe.func.isRequired,setFloaterRef:fe.func.isRequired,showCloseButton:fe.bool,status:fe.string.isRequired,styles:fe.object.isRequired,title:fe.node});var KB=function(e){um(n,e);var t=dm(n);function n(){return lm(this,n),t.apply(this,arguments)}return cm(n,[{key:"render",value:function(){var o=this.props,i=o.children,a=o.handleClick,s=o.handleMouseEnter,c=o.handleMouseLeave,u=o.setChildRef,d=o.setWrapperRef,p=o.style,f=o.styles,h;if(i)if(Ce.Children.count(i)===1)if(!Ce.isValidElement(i))h=Ce.createElement("span",null,i);else{var g=xe.function(i.type)?"innerRef":"ref";h=Ce.cloneElement(Ce.Children.only(i),po({},g,u))}else h=i;return h?Ce.createElement("span",{ref:d,style:Qn(Qn({},f),p),onClick:a,onMouseEnter:s,onMouseLeave:c},h):null}}]),n}(Ce.Component);po(KB,"propTypes",{children:fe.node,handleClick:fe.func.isRequired,handleMouseEnter:fe.func.isRequired,handleMouseLeave:fe.func.isRequired,setChildRef:fe.func.isRequired,setWrapperRef:fe.func.isRequired,style:fe.object,styles:fe.object.isRequired});var b$e={zIndex:100};function w$e(e){var t=_a(b$e,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var S$e=["arrow","flip","offset"],x$e=["position","top","right","bottom","left"],wk=function(e){um(n,e);var t=dm(n);function n(r){var o;return lm(this,n),o=t.call(this,r),po(ss(o),"setArrowRef",function(i){o.arrowRef=i}),po(ss(o),"setChildRef",function(i){o.childRef=i}),po(ss(o),"setFloaterRef",function(i){o.floaterRef=i}),po(ss(o),"setWrapperRef",function(i){o.wrapperRef=i}),po(ss(o),"handleTransitionEnd",function(){var i=o.state.status,a=o.props.callback;o.wrapperPopper&&o.wrapperPopper.instance.update(),o.setState({status:i===cn.OPENING?cn.OPEN:cn.IDLE},function(){var s=o.state.status;a(s===cn.OPEN?"open":"close",o.props)})}),po(ss(o),"handleClick",function(){var i=o.props,a=i.event,s=i.open;if(!xe.boolean(s)){var c=o.state,u=c.positionWrapper,d=c.status;(o.event==="click"||o.event==="hover"&&u)&&(xg({title:"click",data:[{event:a,status:d===cn.OPEN?"closing":"opening"}],debug:o.debug}),o.toggle())}}),po(ss(o),"handleMouseEnter",function(){var i=o.props,a=i.event,s=i.open;if(!(xe.boolean(s)||Nw())){var c=o.state.status;o.event==="hover"&&c===cn.IDLE&&(xg({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:o.debug}),clearTimeout(o.eventDelayTimeout),o.toggle())}}),po(ss(o),"handleMouseLeave",function(){var i=o.props,a=i.event,s=i.eventDelay,c=i.open;if(!(xe.boolean(c)||Nw())){var u=o.state,d=u.status,p=u.positionWrapper;o.event==="hover"&&(xg({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:o.debug}),s?[cn.OPENING,cn.OPEN].indexOf(d)!==-1&&!p&&!o.eventDelayTimeout&&(o.eventDelayTimeout=setTimeout(function(){delete o.eventDelayTimeout,o.toggle()},s*1e3)):o.toggle(cn.IDLE))}}),o.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:cn.INIT,statusWrapper:cn.INIT},o._isMounted=!1,o.hasMounted=!1,hs&&window.addEventListener("load",function(){o.popper&&o.popper.instance.update(),o.wrapperPopper&&o.wrapperPopper.instance.update()}),o}return cm(n,[{key:"componentDidMount",value:function(){if(hs){var o=this.state.positionWrapper,i=this.props,a=i.children,s=i.open,c=i.target;this._isMounted=!0,xg({title:"init",data:{hasChildren:!!a,hasTarget:!!c,isControlled:xe.boolean(s),positionWrapper:o,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&c&&xe.boolean(s)}}},{key:"componentDidUpdate",value:function(o,i){if(hs){var a=this.props,s=a.autoOpen,c=a.open,u=a.target,d=a.wrapperOptions,p=Sh(i,this.state),f=p.changedFrom,h=p.changed;if(o.open!==c){var g;xe.boolean(c)&&(g=c?cn.OPENING:cn.CLOSING),this.toggle(g)}(o.wrapperOptions.position!==d.position||o.target!==u)&&this.changeWrapperPosition(this.props),h("status",cn.IDLE)&&c?this.toggle(cn.OPEN):f("status",cn.INIT,cn.IDLE)&&s&&this.toggle(cn.OPEN),this.popper&&h("status",cn.OPENING)&&this.popper.instance.update(),this.floaterRef&&(h("status",cn.OPENING)||h("status",cn.CLOSING))&&v$e(this.floaterRef,"transitionend",this.handleTransitionEnd),h("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){hs&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var o=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,a=this.state.positionWrapper,s=this.props,c=s.disableFlip,u=s.getPopper,d=s.hideArrow,p=s.offset,f=s.placement,h=s.wrapperOptions,g=f==="top"||f==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(f==="center")this.setState({status:cn.IDLE});else if(i&&this.floaterRef){var v=this.options,b=v.arrow,y=v.flip,w=v.offset,S=WB(v,S$e);new NI(i,this.floaterRef,{placement:f,modifiers:Qn({arrow:Qn({enabled:!d,element:this.arrowRef},b),flip:Qn({enabled:!c,behavior:g},y),offset:Qn({offset:"0, ".concat(p,"px")},w)},S),onCreate:function(T){var R;if(o.popper=T,!((R=o.floaterRef)!==null&&R!==void 0&&R.isConnected)){o.setState({needsUpdate:!0});return}u(T,"floater"),o._isMounted&&o.setState({currentPlacement:T.placement,status:cn.IDLE}),f!==T.placement&&setTimeout(function(){T.instance.update()},1)},onUpdate:function(T){o.popper=T;var R=o.state.currentPlacement;o._isMounted&&T.placement!==R&&o.setState({currentPlacement:T.placement})}})}if(a){var k=xe.undefined(h.offset)?0:h.offset;new NI(this.target,this.wrapperRef,{placement:h.placement||f,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(k,"px")},flip:{enabled:!1}},onCreate:function(T){o.wrapperPopper=T,o._isMounted&&o.setState({statusWrapper:cn.IDLE}),u(T,"wrapper"),f!==T.placement&&setTimeout(function(){T.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var o=this;this.floaterRefInterval=setInterval(function(){var i;(i=o.floaterRef)!==null&&i!==void 0&&i.isConnected&&(clearInterval(o.floaterRefInterval),o.setState({needsUpdate:!1}),o.initPopper())},50)}},{key:"changeWrapperPosition",value:function(o){var i=o.target,a=o.wrapperOptions;this.setState({positionWrapper:a.position&&!!i})}},{key:"toggle",value:function(o){var i=this.state.status,a=i===cn.OPEN?cn.CLOSING:cn.OPENING;xe.undefined(o)||(a=o),this.setState({status:a})}},{key:"debug",get:function(){var o=this.props.debug;return o||!!global.ReactFloaterDebug}},{key:"event",get:function(){var o=this.props,i=o.disableHoverToClick,a=o.event;return a==="hover"&&Nw()&&!i?"click":a}},{key:"options",get:function(){var o=this.props.options;return _a(h$e,o||{})}},{key:"styles",get:function(){var o=this,i=this.state,a=i.status,s=i.positionWrapper,c=i.statusWrapper,u=this.props.styles,d=_a(w$e(u),u);if(s){var p;[cn.IDLE].indexOf(a)===-1||[cn.IDLE].indexOf(c)===-1?p=d.wrapperPosition:p=this.wrapperPopper.styles,d.wrapper=Qn(Qn({},d.wrapper),p)}if(this.target){var f=window.getComputedStyle(this.target);this.wrapperStyles?d.wrapper=Qn(Qn({},d.wrapper),this.wrapperStyles):["relative","static"].indexOf(f.position)===-1&&(this.wrapperStyles={},s||(x$e.forEach(function(h){o.wrapperStyles[h]=f[h]}),d.wrapper=Qn(Qn({},d.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return d}},{key:"target",get:function(){if(!hs)return null;var o=this.props.target;return o?xe.domElement(o)?o:document.querySelector(o):this.childRef||this.wrapperRef}},{key:"render",value:function(){var o=this.state,i=o.currentPlacement,a=o.positionWrapper,s=o.status,c=this.props,u=c.children,d=c.component,p=c.content,f=c.disableAnimation,h=c.footer,g=c.hideArrow,v=c.id,b=c.open,y=c.showCloseButton,w=c.style,S=c.target,k=c.title,A=Ce.createElement(KB,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:w,styles:this.styles.wrapper},u),T={};return a?T.wrapperInPortal=A:T.wrapperAsChildren=A,Ce.createElement("span",null,Ce.createElement(HB,{hasChildren:!!u,id:v,placement:i,setRef:this.setFloaterRef,target:S,zIndex:this.styles.options.zIndex},Ce.createElement(YB,{component:d,content:p,disableAnimation:f,footer:h,handleClick:this.handleClick,hideArrow:g||i==="center",open:b,placement:i,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:y,status:s,styles:this.styles,title:k}),T.wrapperInPortal),T.wrapperAsChildren)}}]),n}(Ce.Component);po(wk,"propTypes",{autoOpen:fe.bool,callback:fe.func,children:fe.node,component:RI(fe.oneOfType([fe.func,fe.element]),function(e){return!e.content}),content:RI(fe.node,function(e){return!e.component}),debug:fe.bool,disableAnimation:fe.bool,disableFlip:fe.bool,disableHoverToClick:fe.bool,event:fe.oneOf(["hover","click"]),eventDelay:fe.number,footer:fe.node,getPopper:fe.func,hideArrow:fe.bool,id:fe.oneOfType([fe.string,fe.number]),offset:fe.number,open:fe.bool,options:fe.object,placement:fe.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:fe.bool,style:fe.object,styles:fe.object,target:fe.oneOfType([fe.object,fe.string]),title:fe.node,wrapperOptions:fe.shape({offset:fe.number,placement:fe.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:fe.bool})});po(wk,"defaultProps",{autoOpen:!1,callback:MI,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:MI,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});function BI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BI(Object(n),!0).forEach(function(r){Tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ds(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XB(r.key),r)}}function Ms(e,t,n){return t&&FI(e.prototype,t),n&&FI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tt(e,t,n){return t=XB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ni(){return ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ni.apply(this,arguments)}function Wc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vx(e,t)}function ny(e){return ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ny(e)}function Vx(e,t){return Vx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Vx(e,t)}function C$e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function E$e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function ry(e,t){if(e==null)return{};var n=E$e(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ir(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T$e(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ir(e)}function Hc(e){var t=C$e();return function(){var r=ny(e),o;if(t){var i=ny(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return T$e(this,o)}}function k$e(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XB(e){var t=k$e(e,"string");return typeof t=="symbol"?t:String(t)}var on={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},xi={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},Ht={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},en={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},Ys=SB.canUseDOM,Fp=wy.createPortal!==void 0;function JB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:navigator.userAgent,t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.indexOf(" OPR/")>=0?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([0-9._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function Lw(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function zp(e){var t=[],n=function r(o){if(typeof o=="string"||typeof o=="number")t.push(o);else if(Array.isArray(o))o.forEach(function(a){return r(a)});else if(o&&o.props){var i=o.props.children;Array.isArray(i)?i.forEach(function(a){return r(a)}):r(i)}};return n(e),t.join(" ").trim()}function zI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function A$e(e,t){return!gr.plainObject(e)||!gr.array(t)?!1:Object.keys(e).every(function(n){return t.indexOf(n)!==-1})}function R$e(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=e.replace(t,function(o,i,a,s){return i+i+a+a+s+s}),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function jI(e){return e.disableBeacon||e.placement==="center"}function Gx(e,t){var n,r=m.isValidElement(e)||m.isValidElement(t),o=gr.undefined(e)||gr.undefined(t);if(Lw(e)!==Lw(t)||r||o)return!1;if(gr.domElement(e))return e.isSameNode(t);if(gr.number(e))return e===t;if(gr.function(e))return e.toString()===t.toString();for(var i in e)if(zI(e,i)){if(typeof e[i]>"u"||typeof t[i]>"u")return!1;if(n=Lw(e[i]),["object","array"].indexOf(n)!==-1&&Gx(e[i],t[i])||n==="function"&&Gx(e[i],t[i]))continue;if(e[i]!==t[i])return!1}for(var a in t)if(zI(t,a)&&typeof e[a]>"u")return!1;return!0}function UI(){return["chrome","safari","firefox","opera"].indexOf(JB())===-1}function kc(e){var t=e.title,n=e.data,r=e.warn,o=r===void 0?!1:r,i=e.debug,a=i===void 0?!1:i,s=o?console.warn||console.error:console.log;a&&(t&&n?(console.groupCollapsed("%creact-joyride: ".concat(t),"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(c){gr.plainObject(c)&&c.key?s.apply(console,[c.key,c.value]):s.apply(console,[c])}):s.apply(console,[n]),console.groupEnd()):console.error("Missing title or data props"))}var _$e={action:"",controlled:!1,index:0,lifecycle:Ht.INIT,size:0,status:en.IDLE},WI=["action","index","lifecycle","status"];function P$e(e){var t=new Map,n=new Map,r=function(){function o(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=a.continuous,c=s===void 0?!1:s,u=a.stepIndex,d=a.steps,p=d===void 0?[]:d;Ds(this,o),Tt(this,"listener",void 0),Tt(this,"setSteps",function(f){var h=i.getState(),g=h.size,v=h.status,b={size:f.length,status:v};n.set("steps",f),v===en.WAITING&&!g&&f.length&&(b.status=en.RUNNING),i.setState(b)}),Tt(this,"addListener",function(f){i.listener=f}),Tt(this,"update",function(f){if(!A$e(f,WI))throw new Error("State is not valid. Valid keys: ".concat(WI.join(", ")));i.setState(et({},i.getNextState(et(et(et({},i.getState()),f),{},{action:f.action||on.UPDATE}),!0)))}),Tt(this,"start",function(f){var h=i.getState(),g=h.index,v=h.size;i.setState(et(et({},i.getNextState({action:on.START,index:gr.number(f)?f:g},!0)),{},{status:v?en.RUNNING:en.WAITING}))}),Tt(this,"stop",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,h=i.getState(),g=h.index,v=h.status;[en.FINISHED,en.SKIPPED].indexOf(v)===-1&&i.setState(et(et({},i.getNextState({action:on.STOP,index:g+(f?1:0)})),{},{status:en.PAUSED}))}),Tt(this,"close",function(){var f=i.getState(),h=f.index,g=f.status;g===en.RUNNING&&i.setState(et({},i.getNextState({action:on.CLOSE,index:h+1})))}),Tt(this,"go",function(f){var h=i.getState(),g=h.controlled,v=h.status;if(!(g||v!==en.RUNNING)){var b=i.getSteps()[f];i.setState(et(et({},i.getNextState({action:on.GO,index:f})),{},{status:b?v:en.FINISHED}))}}),Tt(this,"info",function(){return i.getState()}),Tt(this,"next",function(){var f=i.getState(),h=f.index,g=f.status;g===en.RUNNING&&i.setState(i.getNextState({action:on.NEXT,index:h+1}))}),Tt(this,"open",function(){var f=i.getState(),h=f.status;h===en.RUNNING&&i.setState(et({},i.getNextState({action:on.UPDATE,lifecycle:Ht.TOOLTIP})))}),Tt(this,"prev",function(){var f=i.getState(),h=f.index,g=f.status;g===en.RUNNING&&i.setState(et({},i.getNextState({action:on.PREV,index:h-1})))}),Tt(this,"reset",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,h=i.getState(),g=h.controlled;g||i.setState(et(et({},i.getNextState({action:on.RESET,index:0})),{},{status:f?en.RUNNING:en.READY}))}),Tt(this,"skip",function(){var f=i.getState(),h=f.status;h===en.RUNNING&&i.setState({action:on.SKIP,lifecycle:Ht.INIT,status:en.SKIPPED})}),this.setState({action:on.INIT,controlled:gr.number(u),continuous:c,index:gr.number(u)?u:0,lifecycle:Ht.INIT,status:p.length?en.READY:en.IDLE},!0),this.setSteps(p)}return Ms(o,[{key:"setState",value:function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=this.getState(),u=et(et({},c),a),d=u.action,p=u.index,f=u.lifecycle,h=u.size,g=u.status;t.set("action",d),t.set("index",p),t.set("lifecycle",f),t.set("size",h),t.set("status",g),s&&(t.set("controlled",a.controlled),t.set("continuous",a.continuous)),this.listener&&this.hasUpdatedState(c)&&this.listener(this.getState())}},{key:"getState",value:function(){return t.size?{action:t.get("action")||"",controlled:t.get("controlled")||!1,index:parseInt(t.get("index"),10),lifecycle:t.get("lifecycle")||"",size:t.get("size")||0,status:t.get("status")||""}:et({},_$e)}},{key:"getNextState",value:function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=this.getState(),u=c.action,d=c.controlled,p=c.index,f=c.size,h=c.status,g=gr.number(a.index)?a.index:p,v=d&&!s?p:Math.min(Math.max(g,0),f);return{action:a.action||u,controlled:d,index:v,lifecycle:a.lifecycle||Ht.INIT,size:a.size||f,status:v===f?en.FINISHED:a.status||h}}},{key:"hasUpdatedState",value:function(a){var s=JSON.stringify(a),c=JSON.stringify(this.getState());return s!==c}},{key:"getSteps",value:function(){var a=n.get("steps");return Array.isArray(a)?a:[]}},{key:"getHelpers",value:function(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}}]),o}();return new r(e)}function QB(e){return e?e.getBoundingClientRect():{}}function I$e(){var e=document,t=e.body,n=e.documentElement;return!t||!n?0:Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function fl(e){return typeof e=="string"?document.querySelector(e):e}function O$e(e){return!e||e.nodeType!==1?{}:getComputedStyle(e)}function w0(e,t,n){var r=CB(e);if(r.isSameNode(Af()))return n?document:Af();var o=r.scrollHeight>r.offsetHeight;return!o&&!t?(r.style.overflow="initial",Af()):r}function S0(e,t){if(!e)return!1;var n=w0(e,t);return!n.isSameNode(Af())}function $$e(e){return e.offsetParent!==document.body}function dd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"fixed";if(!e||!(e instanceof HTMLElement))return!1;var n=e.nodeName;return n==="BODY"||n==="HTML"?!1:O$e(e).position===t?!0:dd(e.parentNode,t)}function N$e(e){if(!e)return!1;for(var t=e;t&&t!==document.body;){if(t instanceof HTMLElement){var n=getComputedStyle(t),r=n.display,o=n.visibility;if(r==="none"||o==="hidden")return!1}t=t.parentNode}return!0}function L$e(e,t,n){var r=QB(e),o=w0(e,n),i=S0(e,n),a=0;o instanceof HTMLElement&&(a=o.scrollTop);var s=r.top+(!i&&!dd(e)?a:0);return Math.floor(s-t)}function qx(e){return e instanceof HTMLElement?e.offsetParent instanceof HTMLElement?qx(e.offsetParent)+e.offsetTop:e.offsetTop:0}function D$e(e,t,n){if(!e)return 0;var r=CB(e),o=qx(e);return S0(e,n)&&!$$e(e)&&(o-=qx(r)),Math.floor(o-t)}function Af(){return document.scrollingElement||document.createElement("body")}function M$e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Af(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300;return new Promise(function(r,o){var i=t.scrollTop,a=e>i?e-i:i-e;e4e.top(t,e,{duration:a<100?50:n},function(s){return s&&s.message!=="Element already at target scroll position"?o(s):r()})})}function B$e(e){function t(r,o,i,a,s,c){var u=a||"<<anonymous>>",d=c||i;if(o[i]==null)return r?new Error("Required ".concat(s," `").concat(d,"` was not specified in `").concat(u,"`.")):null;for(var p=arguments.length,f=new Array(p>6?p-6:0),h=6;h<p;h++)f[h-6]=arguments[h];return e.apply(void 0,[o,i,u,s,d].concat(f))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}B$e(function(e,t,n,r,o){var i=e[t],a=i;if(!Ce.isValidElement(i)&&Mp.isValidElementType(i)){var s={ref:function(){},step:{}};a=Ce.createElement(a,s)}if(gr.string(i)||gr.number(i)||!Mp.isValidElementType(i)||[Mp.Element,Mp.ForwardRef].indexOf(Mp.typeOf(a))===-1)return new Error("Invalid ".concat(r," `").concat(o,"` supplied to `").concat(n,"`. Expected a React class or forwardRef."))});var F$e={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",zIndex:100},jp={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},HI={borderRadius:4,position:"absolute"};function z$e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=_a(F$e,e.options||{}),n=290;window.innerWidth>480&&(n=380),t.width&&(window.innerWidth<t.width?n=window.innerWidth-30:n=t.width);var r={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:t.zIndex},o={beacon:et(et({},jp),{},{display:"inline-block",height:t.beaconSize,position:"relative",width:t.beaconSize,zIndex:t.zIndex}),beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:t.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:"rgba(".concat(R$e(t.primaryColor).join(","),", 0.2)"),border:"2px solid ".concat(t.primaryColor),borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:t.backgroundColor,borderRadius:5,boxSizing:"border-box",color:t.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:n},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:et(et({},jp),{},{backgroundColor:t.primaryColor,borderRadius:4,color:"#fff"}),buttonBack:et(et({},jp),{},{color:t.primaryColor,marginLeft:"auto",marginRight:5}),buttonClose:et(et({},jp),{},{color:t.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14}),buttonSkip:et(et({},jp),{},{color:t.textColor,fontSize:14}),overlay:et(et({},r),{},{backgroundColor:t.overlayColor,mixBlendMode:"hard-light"}),overlayLegacy:et({},r),overlayLegacyCenter:et(et({},r),{},{backgroundColor:t.overlayColor}),spotlight:et(et({},HI),{},{backgroundColor:"gray"}),spotlightLegacy:et(et({},HI),{},{boxShadow:"0 0 0 9999px ".concat(t.overlayColor,", ").concat(t.spotlightShadow)}),floaterStyles:{arrow:{color:t.arrowColor},options:{zIndex:t.zIndex+100}},options:t};return _a(o,e)}var Dw={floaterProps:{options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},locale:{back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},step:{event:"click",placement:"bottom",offset:10}};function j$e(e){var t=["beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent"];return Object.keys(e).filter(function(n){return t.indexOf(n)!==-1}).reduce(function(n,r){return n[r]=e[r],n},{})}function Up(e,t){if(!e)return null;var n=_a.all([j$e(t),Dw.step,e],{isMergeableObject:gr.plainObject}),r=z$e(_a(t.styles||{},e.styles||{})),o=S0(fl(e.target),n.disableScrollParentFix),i=_a.all([t.floaterProps||{},Dw.floaterProps,n.floaterProps||{}]);return i.offset=n.offset,i.styles=_a(i.styles||{},r.floaterStyles||{}),delete r.floaterStyles,i.offset+=t.spotlightPadding||e.spotlightPadding||0,e.placementBeacon&&(i.wrapperOptions.placement=e.placementBeacon),o&&(i.options.preventOverflow.boundariesElement="window"),et(et({},n),{},{locale:_a.all([Dw.locale,t.locale||{},n.locale||{}]),floaterProps:i,styles:r})}function ZB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return gr.plainObject(e)?e.target?!0:(kc({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(kc({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function VI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return gr.array(e)?e.every(function(n){return ZB(n,t)}):(kc({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var U$e=Ms(function e(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Ds(this,e),Tt(this,"element",void 0),Tt(this,"options",void 0),Tt(this,"canBeTabbed",function(o){var i=o.tabIndex;(i===null||i<0)&&(i=void 0);var a=isNaN(i);return!a&&n.canHaveFocus(o)}),Tt(this,"canHaveFocus",function(o){var i=/input|select|textarea|button|object/,a=o.nodeName.toLowerCase(),s=i.test(a)&&!o.getAttribute("disabled")||a==="a"&&!!o.getAttribute("href");return s&&n.isVisible(o)}),Tt(this,"findValidTabElements",function(){return[].slice.call(n.element.querySelectorAll("*"),0).filter(n.canBeTabbed)}),Tt(this,"handleKeyDown",function(o){var i=n.options.keyCode,a=i===void 0?9:i;o.keyCode===a&&n.interceptTab(o)}),Tt(this,"interceptTab",function(o){var i=n.findValidTabElements();if(i.length){o.preventDefault();var a=o.shiftKey,s=i.indexOf(document.activeElement);s===-1||!a&&s+1===i.length?s=0:a&&s===0?s=i.length-1:s+=a?-1:1,i[s].focus()}}),Tt(this,"isHidden",function(o){var i=o.offsetWidth<=0&&o.offsetHeight<=0,a=window.getComputedStyle(o);return i&&!o.innerHTML?!0:i&&a.getPropertyValue("overflow")!=="visible"||a.getPropertyValue("display")==="none"}),Tt(this,"isVisible",function(o){for(var i=o;i;)if(i instanceof HTMLElement){if(i===document.body)break;if(n.isHidden(i))return!1;i=i.parentNode}return!0}),Tt(this,"removeScope",function(){window.removeEventListener("keydown",n.handleKeyDown)}),Tt(this,"checkFocus",function(o){document.activeElement!==o&&(o.focus(),window.requestAnimationFrame(function(){return n.checkFocus(o)}))}),Tt(this,"setFocus",function(){var o=n.options.selector;if(o){var i=n.element.querySelector(o);i&&window.requestAnimationFrame(function(){return n.checkFocus(i)})}}),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=r,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}),W$e=function(e){Wc(n,e);var t=Hc(n);function n(r){var o;if(Ds(this,n),o=t.call(this,r),Tt(ir(o),"setBeaconRef",function(c){o.beacon=c}),!r.beaconComponent){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style"),s=`
408
+ @keyframes joyride-beacon-inner {
409
+ 20% {
410
+ opacity: 0.9;
411
+ }
412
+
413
+ 90% {
414
+ opacity: 0.7;
415
+ }
416
+ }
417
+
418
+ @keyframes joyride-beacon-outer {
419
+ 0% {
420
+ transform: scale(1);
421
+ }
422
+
423
+ 45% {
424
+ opacity: 0.7;
425
+ transform: scale(0.75);
426
+ }
427
+
428
+ 100% {
429
+ opacity: 0.9;
430
+ transform: scale(1);
431
+ }
432
+ }
433
+ `;a.type="text/css",a.id="joyride-beacon-animation",r.nonce!==void 0&&a.setAttribute("nonce",r.nonce),a.appendChild(document.createTextNode(s)),i.appendChild(a)}return o}return Ms(n,[{key:"componentDidMount",value:function(){var o=this,i=this.props.shouldFocus;setTimeout(function(){gr.domElement(o.beacon)&&i&&o.beacon.focus()},0)}},{key:"componentWillUnmount",value:function(){var o=document.getElementById("joyride-beacon-animation");o&&o.parentNode.removeChild(o)}},{key:"render",value:function(){var o=this.props,i=o.beaconComponent,a=o.locale,s=o.onClickOrHover,c=o.styles,u={"aria-label":a.open,onClick:s,onMouseEnter:s,ref:this.setBeaconRef,title:a.open},d;if(i){var p=i;d=Ce.createElement(p,u)}else d=Ce.createElement("button",ni({key:"JoyrideBeacon",className:"react-joyride__beacon",style:c.beacon,type:"button"},u),Ce.createElement("span",{style:c.beaconInner}),Ce.createElement("span",{style:c.beaconOuter}));return d}}]),n}(Ce.Component);function H$e(e){var t=e.styles;return Ce.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:t})}var V$e=["mixBlendMode","zIndex"],G$e=function(e){Wc(n,e);var t=Hc(n);function n(){var r;Ds(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),Tt(ir(r),"_isMounted",!1),Tt(ir(r),"state",{mouseOverSpotlight:!1,isScrolling:!1,showSpotlight:!0}),Tt(ir(r),"handleMouseMove",function(s){var c=r.state.mouseOverSpotlight,u=r.spotlightStyles,d=u.height,p=u.left,f=u.position,h=u.top,g=u.width,v=f==="fixed"?s.clientY:s.pageY,b=f==="fixed"?s.clientX:s.pageX,y=v>=h&&v<=h+d,w=b>=p&&b<=p+g,S=w&&y;S!==c&&r.updateState({mouseOverSpotlight:S})}),Tt(ir(r),"handleScroll",function(){var s=r.props.target,c=fl(s);if(r.scrollParent!==document){var u=r.state.isScrolling;u||r.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(function(){r.updateState({isScrolling:!1,showSpotlight:!0})},50)}else dd(c,"sticky")&&r.updateState({})}),Tt(ir(r),"handleResize",function(){clearTimeout(r.resizeTimeout),r.resizeTimeout=setTimeout(function(){r._isMounted&&r.forceUpdate()},100)}),r}return Ms(n,[{key:"componentDidMount",value:function(){var o=this.props;o.debug,o.disableScrolling;var i=o.disableScrollParentFix,a=o.target,s=fl(a);this.scrollParent=w0(s,i,!0),this._isMounted=!0,window.addEventListener("resize",this.handleResize)}},{key:"componentDidUpdate",value:function(o){var i=this,a=this.props,s=a.lifecycle,c=a.spotlightClicks,u=Sh(o,this.props),d=u.changed;d("lifecycle",Ht.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(function(){var p=i.state.isScrolling;p||i.updateState({showSpotlight:!0})},100)),(d("spotlightClicks")||d("disableOverlay")||d("lifecycle"))&&(c&&s===Ht.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):s!==Ht.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),this.scrollParent.removeEventListener("scroll",this.handleScroll)}},{key:"spotlightStyles",get:function(){var o=this.state.showSpotlight,i=this.props,a=i.disableScrollParentFix,s=i.spotlightClicks,c=i.spotlightPadding,u=i.styles,d=i.target,p=fl(d),f=QB(p),h=dd(p),g=L$e(p,c,a);return et(et({},UI()?u.spotlightLegacy:u.spotlight),{},{height:Math.round(f.height+c*2),left:Math.round(f.left-c),opacity:o?1:0,pointerEvents:s?"none":"auto",position:h?"fixed":"absolute",top:g,transition:"opacity 0.2s",width:Math.round(f.width+c*2)})}},{key:"updateState",value:function(o){this._isMounted&&this.setState(o)}},{key:"render",value:function(){var o=this.state,i=o.mouseOverSpotlight,a=o.showSpotlight,s=this.props,c=s.disableOverlay,u=s.disableOverlayClose,d=s.lifecycle,p=s.onClickOverlay,f=s.placement,h=s.styles;if(c||d!==Ht.TOOLTIP)return null;var g=h.overlay;UI()&&(g=f==="center"?h.overlayLegacyCenter:h.overlayLegacy);var v=et({cursor:u?"default":"pointer",height:I$e(),pointerEvents:i?"none":"auto"},g),b=f!=="center"&&a&&Ce.createElement(H$e,{styles:this.spotlightStyles});if(JB()==="safari"){v.mixBlendMode,v.zIndex;var y=ry(v,V$e);b=Ce.createElement("div",{style:et({},y)},b),delete v.backgroundColor}return Ce.createElement("div",{className:"react-joyride__overlay",style:v,onClick:p},b)}}]),n}(Ce.Component),q$e=["styles"],Y$e=["color","height","width"];function K$e(e){var t=e.styles,n=ry(e,q$e),r=t.color,o=t.height,i=t.width,a=ry(t,Y$e);return Ce.createElement("button",ni({style:a,type:"button"},n),Ce.createElement("svg",{width:typeof i=="number"?"".concat(i,"px"):i,height:typeof o=="number"?"".concat(o,"px"):o,viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},Ce.createElement("g",null,Ce.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}var X$e=function(e){Wc(n,e);var t=Hc(n);function n(){return Ds(this,n),t.apply(this,arguments)}return Ms(n,[{key:"render",value:function(){var o=this.props,i=o.backProps,a=o.closeProps,s=o.continuous,c=o.index,u=o.isLastStep,d=o.primaryProps,p=o.size,f=o.skipProps,h=o.step,g=o.tooltipProps,v=h.content,b=h.hideBackButton,y=h.hideCloseButton,w=h.hideFooter,S=h.showProgress,k=h.showSkipButton,A=h.title,T=h.styles,R=h.locale,P=R.back,_=R.close,O=R.last,$=R.next,z=R.skip,L={primary:_};return s&&(L.primary=u?O:$,S&&(L.primary=Ce.createElement("span",null,L.primary," (",c+1,"/",p,")"))),k&&!u&&(L.skip=Ce.createElement("button",ni({style:T.buttonSkip,type:"button","aria-live":"off"},f),z)),!b&&c>0&&(L.back=Ce.createElement("button",ni({style:T.buttonBack,type:"button"},i),P)),L.close=!y&&Ce.createElement(K$e,ni({styles:T.buttonClose},a)),Ce.createElement("div",ni({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:T.tooltip},g),Ce.createElement("div",{style:T.tooltipContainer},A&&Ce.createElement("h4",{style:T.tooltipTitle,"aria-label":A},A),Ce.createElement("div",{style:T.tooltipContent},v)),!w&&Ce.createElement("div",{style:T.tooltipFooter},Ce.createElement("div",{style:T.tooltipFooterSpacer},L.skip),L.back,Ce.createElement("button",ni({style:T.buttonNext,type:"button"},d),L.primary)),L.close)}}]),n}(Ce.Component),J$e=["beaconComponent","tooltipComponent"],Q$e=function(e){Wc(n,e);var t=Hc(n);function n(){var r;Ds(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),Tt(ir(r),"handleClickBack",function(s){s.preventDefault();var c=r.props.helpers;c.prev()}),Tt(ir(r),"handleClickClose",function(s){s.preventDefault();var c=r.props.helpers;c.close()}),Tt(ir(r),"handleClickPrimary",function(s){s.preventDefault();var c=r.props,u=c.continuous,d=c.helpers;if(!u){d.close();return}d.next()}),Tt(ir(r),"handleClickSkip",function(s){s.preventDefault();var c=r.props.helpers;c.skip()}),Tt(ir(r),"getElementsProps",function(){var s=r.props,c=s.continuous,u=s.isLastStep,d=s.setTooltipRef,p=s.step,f=zp(p.locale.back),h=zp(p.locale.close),g=zp(p.locale.last),v=zp(p.locale.next),b=zp(p.locale.skip),y=c?v:h;return u&&(y=g),{backProps:{"aria-label":f,"data-action":"back",onClick:r.handleClickBack,role:"button",title:f},closeProps:{"aria-label":h,"data-action":"close",onClick:r.handleClickClose,role:"button",title:h},primaryProps:{"aria-label":y,"data-action":"primary",onClick:r.handleClickPrimary,role:"button",title:y},skipProps:{"aria-label":b,"data-action":"skip",onClick:r.handleClickSkip,role:"button",title:b},tooltipProps:{"aria-modal":!0,ref:d,role:"alertdialog"}}}),r}return Ms(n,[{key:"render",value:function(){var o=this.props,i=o.continuous,a=o.index,s=o.isLastStep,c=o.size,u=o.step;u.beaconComponent;var d=u.tooltipComponent,p=ry(u,J$e),f;if(d){var h=et(et({},this.getElementsProps()),{},{continuous:i,index:a,isLastStep:s,size:c,step:p}),g=d;f=Ce.createElement(g,h)}else f=Ce.createElement(X$e,ni({},this.getElementsProps(),{continuous:i,index:a,isLastStep:s,size:c,step:u}));return f}}]),n}(Ce.Component),Z$e=function(e){Wc(n,e);var t=Hc(n);function n(){return Ds(this,n),t.apply(this,arguments)}return Ms(n,[{key:"componentDidMount",value:function(){Ys&&(Fp||this.renderReact15())}},{key:"componentDidUpdate",value:function(){Ys&&(Fp||this.renderReact15())}},{key:"componentWillUnmount",value:function(){!Ys||!this.node||(Fp||Ai.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var o=this.props.id;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),document.body.appendChild(this.node))}},{key:"renderReact15",value:function(){if(!Ys)return null;var o=this.props.children;return this.node||this.appendNode(),Ai.unstable_renderSubtreeIntoContainer(this,o,this.node),null}},{key:"renderReact16",value:function(){if(!Ys||!Fp)return null;var o=this.props.children;return this.node||this.appendNode(),Ai.createPortal(o,this.node)}},{key:"render",value:function(){return Fp?this.renderReact16():null}}]),n}(Ce.Component),eNe=function(e){Wc(n,e);var t=Hc(n);function n(){var r;Ds(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),Tt(ir(r),"scope",{removeScope:function(){}}),Tt(ir(r),"handleClickHoverBeacon",function(s){var c=r.props,u=c.step,d=c.update;s.type==="mouseenter"&&u.event!=="hover"||d({lifecycle:Ht.TOOLTIP})}),Tt(ir(r),"handleClickOverlay",function(){var s=r.props,c=s.helpers,u=s.step;u.disableOverlayClose||c.close()}),Tt(ir(r),"setTooltipRef",function(s){r.tooltip=s}),Tt(ir(r),"setPopper",function(s,c){var u=r.props,d=u.action,p=u.setPopper,f=u.update;c==="wrapper"?r.beaconPopper=s:r.tooltipPopper=s,p(s,c),r.beaconPopper&&r.tooltipPopper&&f({action:d===on.CLOSE?on.CLOSE:d,lifecycle:Ht.READY})}),r}return Ms(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.debug,a=o.index;kc({title:"step:".concat(a),data:[{key:"props",value:this.props}],debug:i})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.action,s=i.callback,c=i.continuous,u=i.controlled,d=i.debug,p=i.index,f=i.lifecycle,h=i.size,g=i.status,v=i.step,b=i.update,y=Sh(o,this.props),w=y.changed,S=y.changedFrom,k={action:a,controlled:u,index:p,lifecycle:f,size:h,status:g},A=c&&a!==on.CLOSE&&(p>0||a===on.PREV),T=w("action")||w("index")||w("lifecycle")||w("status"),R=S("lifecycle",[Ht.TOOLTIP,Ht.INIT],Ht.INIT),P=w("action",[on.NEXT,on.PREV,on.SKIP,on.CLOSE]);if(P&&(R||u)&&s(et(et({},k),{},{index:o.index,lifecycle:Ht.COMPLETE,step:o.step,type:xi.STEP_AFTER})),v.placement==="center"&&g===en.RUNNING&&w("index")&&a!==on.START&&f===Ht.INIT&&b({lifecycle:Ht.READY}),T){var _=fl(v.target),O=!!_,$=O&&N$e(_);$?(S("status",en.READY,en.RUNNING)||S("lifecycle",Ht.INIT,Ht.READY))&&s(et(et({},k),{},{step:v,type:xi.STEP_BEFORE})):(console.warn(O?"Target not visible":"Target not mounted",v),s(et(et({},k),{},{type:xi.TARGET_NOT_FOUND,step:v})),u||b({index:p+([on.PREV].indexOf(a)!==-1?-1:1)}))}S("lifecycle",Ht.INIT,Ht.READY)&&b({lifecycle:jI(v)||A?Ht.TOOLTIP:Ht.BEACON}),w("index")&&kc({title:"step:".concat(f),data:[{key:"props",value:this.props}],debug:d}),w("lifecycle",Ht.BEACON)&&s(et(et({},k),{},{step:v,type:xi.BEACON})),w("lifecycle",Ht.TOOLTIP)&&(s(et(et({},k),{},{step:v,type:xi.TOOLTIP})),this.scope=new U$e(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus()),S("lifecycle",[Ht.TOOLTIP,Ht.INIT],Ht.INIT)&&(this.scope.removeScope(),delete this.beaconPopper,delete this.tooltipPopper)}},{key:"componentWillUnmount",value:function(){this.scope.removeScope()}},{key:"open",get:function(){var o=this.props,i=o.step,a=o.lifecycle;return!!(jI(i)||a===Ht.TOOLTIP)}},{key:"render",value:function(){var o=this.props,i=o.continuous,a=o.debug,s=o.helpers,c=o.index,u=o.lifecycle,d=o.nonce,p=o.shouldScroll,f=o.size,h=o.step,g=fl(h.target);return!ZB(h)||!gr.domElement(g)?null:Ce.createElement("div",{key:"JoyrideStep-".concat(c),className:"react-joyride__step"},Ce.createElement(Z$e,{id:"react-joyride-portal"},Ce.createElement(G$e,ni({},h,{debug:a,lifecycle:u,onClickOverlay:this.handleClickOverlay}))),Ce.createElement(wk,ni({component:Ce.createElement(Q$e,{continuous:i,helpers:s,index:c,isLastStep:c+1===f,setTooltipRef:this.setTooltipRef,size:f,step:h}),debug:a,getPopper:this.setPopper,id:"react-joyride-step-".concat(c),isPositioned:h.isFixed||dd(g),open:this.open,placement:h.placement,target:h.target},h.floaterProps),Ce.createElement(W$e,{beaconComponent:h.beaconComponent,locale:h.locale,nonce:d,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:p,styles:h.styles})))}}]),n}(Ce.Component),e8=function(e){Wc(n,e);var t=Hc(n);function n(r){var o;return Ds(this,n),o=t.call(this,r),Tt(ir(o),"initStore",function(){var i=o.props,a=i.debug,s=i.getHelpers,c=i.run,u=i.stepIndex;o.store=new P$e(et(et({},o.props),{},{controlled:c&&gr.number(u)})),o.helpers=o.store.getHelpers();var d=o.store.addListener;return kc({title:"init",data:[{key:"props",value:o.props},{key:"state",value:o.state}],debug:a}),d(o.syncState),s(o.helpers),o.store.getState()}),Tt(ir(o),"callback",function(i){var a=o.props.callback;gr.function(a)&&a(i)}),Tt(ir(o),"handleKeyboard",function(i){var a=o.state,s=a.index,c=a.lifecycle,u=o.props.steps,d=u[s],p=window.Event?i.which:i.keyCode;c===Ht.TOOLTIP&&p===27&&d&&!d.disableCloseOnEsc&&o.store.close()}),Tt(ir(o),"syncState",function(i){o.setState(i)}),Tt(ir(o),"setPopper",function(i,a){a==="wrapper"?o.beaconPopper=i:o.tooltipPopper=i}),Tt(ir(o),"shouldScroll",function(i,a,s,c,u,d,p){return!i&&(a!==0||s||c===Ht.TOOLTIP)&&u.placement!=="center"&&(!u.isFixed||!dd(d))&&p.lifecycle!==c&&[Ht.BEACON,Ht.TOOLTIP].indexOf(c)!==-1}),o.state=o.initStore(),o}return Ms(n,[{key:"componentDidMount",value:function(){if(Ys){var o=this.props,i=o.disableCloseOnEsc,a=o.debug,s=o.run,c=o.steps,u=this.store.start;VI(c,a)&&s&&u(),i||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}}},{key:"componentDidUpdate",value:function(o,i){if(Ys){var a=this.state,s=a.action,c=a.controlled,u=a.index,d=a.lifecycle,p=a.status,f=this.props,h=f.debug,g=f.run,v=f.stepIndex,b=f.steps,y=o.steps,w=o.stepIndex,S=this.store,k=S.reset,A=S.setSteps,T=S.start,R=S.stop,P=S.update,_=Sh(o,this.props),O=_.changed,$=Sh(i,this.state),z=$.changed,L=$.changedFrom,B=Up(b[u],this.props),Y=!Gx(y,b),H=gr.number(v)&&O("stepIndex"),ee=fl(B==null?void 0:B.target);if(Y&&(VI(b,h)?A(b):console.warn("Steps are not valid",b)),O("run")&&(g?T(v):R()),H){var V=w<v?on.NEXT:on.PREV;s===on.STOP&&(V=on.START),[en.FINISHED,en.SKIPPED].indexOf(p)===-1&&P({action:s===on.CLOSE?on.CLOSE:V,index:v,lifecycle:Ht.INIT})}!c&&p===en.RUNNING&&u===0&&!ee&&(P({index:u+1}),this.callback(et(et({},this.state),{},{type:xi.TARGET_NOT_FOUND,step:B})));var W=et(et({},this.state),{},{index:u,step:B}),j=z("action",[on.NEXT,on.PREV,on.SKIP,on.CLOSE]);if(j&&z("status",en.PAUSED)){var I=Up(b[i.index],this.props);this.callback(et(et({},W),{},{index:i.index,lifecycle:Ht.COMPLETE,step:I,type:xi.STEP_AFTER}))}if(z("status",[en.FINISHED,en.SKIPPED])){var M=Up(b[i.index],this.props);c||this.callback(et(et({},W),{},{index:i.index,lifecycle:Ht.COMPLETE,step:M,type:xi.STEP_AFTER})),this.callback(et(et({},W),{},{index:i.index,step:M,type:xi.TOUR_END})),k()}else L("status",[en.IDLE,en.READY],en.RUNNING)?this.callback(et(et({},W),{},{type:xi.TOUR_START})):z("status")?this.callback(et(et({},W),{},{type:xi.TOUR_STATUS})):z("action",on.RESET)&&this.callback(et(et({},W),{},{type:xi.TOUR_STATUS}));B&&(this.scrollToStep(i),B.placement==="center"&&p===en.RUNNING&&s===on.START&&d===Ht.INIT&&P({lifecycle:Ht.READY}))}}},{key:"componentWillUnmount",value:function(){var o=this.props.disableCloseOnEsc;o||document.body.removeEventListener("keydown",this.handleKeyboard)}},{key:"scrollToStep",value:function(o){var i=this.state,a=i.index,s=i.lifecycle,c=i.status,u=this.props,d=u.debug,p=u.disableScrollParentFix,f=u.scrollToFirstStep,h=u.scrollOffset,g=u.scrollDuration,v=u.steps,b=Up(v[a],this.props);if(b){var y=fl(b.target),w=this.shouldScroll(b.disableScrolling,a,f,s,b,y,o);if(c===en.RUNNING&&w){var S=S0(y,p),k=w0(y,p),A=Math.floor(D$e(y,h,p))||0;if(kc({title:"scrollToStep",data:[{key:"index",value:a},{key:"lifecycle",value:s},{key:"status",value:c}],debug:d}),s===Ht.BEACON&&this.beaconPopper){var T=this.beaconPopper,R=T.placement,P=T.popper;["bottom"].indexOf(R)===-1&&!S&&(A=Math.floor(P.top-h))}else if(s===Ht.TOOLTIP&&this.tooltipPopper){var _=this.tooltipPopper,O=_.flipped,$=_.placement,z=_.popper;["top","right","left"].indexOf($)!==-1&&!O&&!S?A=Math.floor(z.top-h):A-=b.spotlightPadding}A=A>=0?A:0,c===en.RUNNING&&M$e(A,k,g)}}}},{key:"render",value:function(){if(!Ys)return null;var o=this.state,i=o.index,a=o.status,s=this.props,c=s.continuous,u=s.debug,d=s.nonce,p=s.scrollToFirstStep,f=s.steps,h=Up(f[i],this.props),g;return a===en.RUNNING&&h&&(g=Ce.createElement(eNe,ni({},this.state,{callback:this.callback,continuous:c,debug:u,setPopper:this.setPopper,helpers:this.helpers,nonce:d,shouldScroll:!h.disableScrolling&&(i!==0||p),step:h,update:this.store.update}))),Ce.createElement("div",{className:"react-joyride"},g)}}]),n}(Ce.Component);Tt(e8,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:function(){},hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});const tNe=C(KE)(({theme:e})=>({"& .MuiDialog-paper":{borderRadius:e.shape.borderRadiusMedium,width:"100%",maxWidth:e.spacing(45),padding:e.spacing(3)}})),nNe=C("div")(({theme:e})=>({"@keyframes pulse":{"0%":{boxShadow:`0 0 0 0 ${yt(e.palette.spotlight.pulse,1)}`},"70%":{boxShadow:`0 0 0 16px ${yt(e.palette.spotlight.pulse,0)}`},"100%":{boxShadow:`0 0 0 0 ${yt(e.palette.spotlight.pulse,0)}`}},position:"relative",backgroundColor:e.palette.background.paper,color:e.palette.text.primary,borderRadius:e.shape.borderRadiusMedium,width:"100%",maxWidth:e.spacing(45),padding:e.spacing(3)})),GI=C(jt)(({theme:e})=>({position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.neutral.main})),qI=C("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),marginBottom:e.spacing(1),flexWrap:"wrap",paddingRight:e.spacing(4)})),YI=C("div")(({theme:e})=>({display:"flex",justifyContent:"space-between",marginTop:e.spacing(3),"&&& button":{fontSize:e.fontSizes.smallBody}})),rNe=({tooltipProps:e,step:t,topic:n,topics:r,stepIndex:o,onClose:i,onBack:a,onNext:s})=>{const c=o===0?"Start":o===r[n].steps.length-1?"Finish":"Next";return t.target==="body"?l("div",{...e,children:x(tNe,{open:!0,onClose:(u,d)=>{d!=="backdropClick"&&i()},transitionDuration:0,hideBackdrop:!0,children:[l(GI,{"aria-label":"close",onClick:i,children:l(xc,{})}),l(qI,{children:l(q,{condition:!!t.title,show:t.title,elseShow:l(se,{fontWeight:"bold",children:r[n].title})})}),t.content,x(YI,{children:[l("div",{children:l(q,{condition:n>0||o>0,show:l(Ve,{variant:"outlined",onClick:()=>a(t),children:"Back"})})}),l("div",{children:l(q,{condition:!!t.nextButton,show:l(Ve,{onClick:()=>s(o),variant:"contained",sx:{alignSelf:"flex-end"},"data-testid":"DEMO_NEXT_BUTTON",children:c})})})]})]})}):x(nNe,{...e,children:[l(GI,{"aria-label":"close",onClick:i,children:l(xc,{})}),l(qI,{children:l(q,{condition:!!t.title,show:t.title,elseShow:l(se,{fontWeight:"bold",children:r[n].title})})}),t.content,x(YI,{children:[l("div",{children:l(q,{condition:n>0||o>0,show:l(Ve,{variant:"outlined",onClick:()=>a(t),children:"Back"})})}),l("div",{children:l(q,{condition:!!t.nextButton,show:l(Ve,{onClick:()=>s(o),variant:"contained",sx:{alignSelf:"flex-end"},"data-testid":"DEMO_NEXT_BUTTON",children:c})})})]})]})},oNe=({setExpanded:e,step:t,setStep:n,stepsCompletion:r,setStepsCompletion:o,topic:i,setTopic:a,topics:s,onFinish:c})=>{const u=yn(),d=pt(),p=Ro(),{trackEvent:f}=br(),[h,g]=m.useState(!1),[v,b]=m.useState("load"),y=new AbortController,w=($,z)=>{g(!1),z!==void 0&&(r[$]<z&&o(L=>{const B=[...L];return B[$]=z,B}),n(z)),a($)},S=()=>{y.abort(),w(-1),f("demo-close",{props:{topic:s[i].title,step:t+1}})},k=()=>{if(b("back"),t===0){const $=i-1;w($,s[$].steps.length-1)}else w(i,t-1)},A=()=>{const $=i,z=s.findIndex((L,B)=>B!==$&&r[B]<L.steps.length)??-1;z===-1?(w(-1),e(!1),c()):w(z,0)},T=($=t)=>{b("next"),w(i,$+1),$===s[i].steps.length-1&&A()},R=$=>{const{action:z,index:L,step:B}=$;if(z===on.CLOSE&&S(),z===on.UPDATE){const Y=document.querySelector(B.target);if(Y){if(Y.scrollIntoView({block:"center"}),B.focus)if(B.focus===!0)Y.focus();else{const H=Y.querySelector(B.focus);H==null||H.focus()}if(!B.nextButton){const H=ee=>{y.abort(),T(L),B.preventDefault&&ee.preventDefault()};B.anyClick?window.addEventListener("click",ee=>{const V=ee.target;!V.closest(".__floater")&&!V.className.includes("react-joyride__overlay")&&H(ee)},{signal:y.signal}):Y.addEventListener("click",H,{signal:y.signal})}}}},P=$=>{var z,L;$.backCloseModal&&((z=document.querySelector(".MuiModal-backdrop"))==null||z.click()),$.backCollapseExpanded&&((L=document.querySelector('.Mui-expanded[role="button"]'))==null||L.click()),k()},_=($,z=0)=>{setTimeout(()=>{document.querySelector($.target)?g(!0):v==="next"&&$.optional?T():v==="back"||z>4?k():_($,z+1)},300)};if(m.useEffect(()=>{if(i===-1)return;const z=s[i].steps[t];z&&setTimeout(()=>{z.href&&!p.pathname.endsWith(z.href.split("?")[0])&&d(z.href),_(z)},z.delay??0)},[i,t]),m.useEffect(()=>{var $,z;i>-1&&((z=($=s[i]).setup)==null||z.call($))},[i]),i===-1)return null;const O=s[i].steps.map($=>({...$,disableBeacon:!0}));return l(e8,{run:h,stepIndex:t,callback:R,steps:O,disableScrolling:!0,disableOverlayClose:!0,spotlightClicks:!0,spotlightPadding:0,floaterProps:{disableAnimation:!0,styles:{floater:{filter:"drop-shadow(rgba(32, 32, 33, .2) 0px 4px 12px)"}}},styles:{options:{arrowColor:u.palette.background.paper,zIndex:u.zIndex.snackbar-1},spotlight:{borderRadius:u.shape.borderRadiusMedium,border:`2px solid ${u.palette.spotlight.border}`,outline:`2px solid ${u.palette.spotlight.outline}`,animation:"pulse 2s infinite"},overlay:{backgroundColor:"rgba(0, 0, 0, 0.4)"}},tooltipComponent:$=>l(rNe,{...$,topic:i,topics:s,stepIndex:t,onClose:S,onBack:P,onNext:T})})};var Sk={},iNe=An;Object.defineProperty(Sk,"__esModule",{value:!0});var Xl=Sk.default=void 0,aNe=iNe(Rn()),sNe=_n,lNe=(0,aNe.default)((0,sNe.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");Xl=Sk.default=lNe;const oy="demo-app",Yx="dev",t8=async()=>{(await fetch(Rt("api/admin/context")).then(t=>t.json())||[]).find(({name:t})=>t==="userId")||await fetch(Rt("api/admin/context"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"userId",description:"Allows you to constrain on userId",legalValues:[],stickiness:!0})})},cNe=async()=>{await t8()},uNe=async()=>{var r;const e="demoApp.step3",{environments:t}=await fetch(Rt(`api/admin/projects/${oy}/features/${e}?variantEnvironments=true`)).then(o=>o.json());(((r=t.find(({name:o})=>o===Yx))==null?void 0:r.strategies)||[]).find(({name:o})=>o==="flexibleRollout")||await fetch(Rt(`api/admin/projects/${oy}/features/${e}/environments/${Yx}/strategies`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"flexibleRollout",constraints:[],parameters:{rollout:"50",stickiness:"default",groupId:e}})})},dNe=async()=>{const e="demoApp.step4";await t8();const{variants:t}=await fetch(Rt(`api/admin/projects/${oy}/features/${e}?variantEnvironments=true`)).then(n=>n.json());t.length||await fetch(Rt(`api/admin/projects/${oy}/features/${e}/environments/${Yx}/variants`),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify([{op:"add",path:"/0",value:{name:"red",weightType:"variable",weight:333,overrides:[],stickiness:"default",payload:{type:"string",value:"red"}}},{op:"add",path:"/1",value:{name:"green",weightType:"variable",weight:333,overrides:[],stickiness:"default",payload:{type:"string",value:"green"}}},{op:"add",path:"/2",value:{name:"blue",weightType:"variable",weight:333,overrides:[],stickiness:"default",payload:{type:"string",value:"blue"}}}])})},KI="/static/demo-userid-69a28f5e.png",At=e=>l(se,{variant:"body2",color:"text.secondary",...e}),XI=C("img")(({theme:e})=>({borderRadius:e.shape.borderRadius})),Hr="demo-app",Us="dev",ef=[{title:"Enable/disable a feature toggle",steps:[{href:`/projects/${Hr}?sort=name`,target:"body",placement:"center",content:x(ve,{children:[x(At,{children:[l("a",{href:"https://docs.getunleash.io/reference/feature-toggles",target:"_blank",rel:"noreferrer",children:"Feature toggles"})," ","are the central concept of Unleash."]}),x(At,{sx:{mt:1},children:["Feature toggles are organized within"," ",l("a",{href:"https://docs.getunleash.io/reference/projects",target:"_blank",rel:"noreferrer",children:"projects"}),"."]})]}),nextButton:!0},{href:`/projects/${Hr}?sort=name`,target:`div[data-testid="TOGGLE-demoApp.step1-${Us}"]`,content:x(ve,{children:[l(At,{children:"Enable or disable the feature for everyone by toggling the highlighted switch."}),l(qt,{sx:{mt:2},icon:l(Xl,{}),children:"Look at the demo page to see your changes!"})]}),nextButton:!0}]},{title:"Enable for a specific user",setup:cNe,steps:[{href:`/projects/${Hr}?sort=name`,target:"body",placement:"center",content:x(ve,{children:[x(At,{children:[l("a",{href:"https://docs.getunleash.io/reference/activation-strategies",target:"_blank",rel:"noreferrer",children:"Activation strategies"})," ","give you more control over when a feature should be enabled."]}),l(At,{sx:{mt:1},children:"Let's try enabling a feature toggle only for a specific user."})]}),nextButton:!0},{href:`/projects/${Hr}?sort=name`,target:`a[href="${ri}/projects/${Hr}/features/demoApp.step2"]`,content:x(At,{children:["First, open the feature toggle configuration for"," ",l(qt,{as:"span",children:"demoApp.step2"})," by using this link."]}),preventDefault:!0},{href:`/projects/${Hr}/features/demoApp.step2`,target:`div[data-testid="FEATURE_ENVIRONMENT_ACCORDION_${Us}"] button`,content:l(At,{children:"Add a new strategy to this environment by using this button."})},{target:`a[href="${ri}/projects/${Hr}/features/demoApp.step2/strategies/create?environmentId=${Us}&strategyName=default&defaultStrategy=false"]`,content:x(At,{children:["Select the ",l(qt,{as:"span",children:"Standard"})," strategy type."]}),placement:"right",optional:!0,backCloseModal:!0},{target:'button[data-testid="ADD_CONSTRAINT_BUTTON"]',content:x(ve,{children:[x(At,{children:[l("a",{href:"https://docs.getunleash.io/reference/strategy-constraints",target:"_blank",rel:"noreferrer",children:"Strategy constraints"})," ","are conditions that must be satisfied for an"," ",l("a",{href:"https://docs.getunleash.io/reference/activation-strategies",target:"_blank",rel:"noreferrer",children:"activation strategy"})," ","to be evaluated for a feature toggle."]}),l(At,{sx:{mt:1},children:"Add a constraint by using this button."})]}),backCloseModal:!0},{target:"#context-field-select",content:x(ve,{children:[x(At,{children:[l("a",{href:"https://docs.getunleash.io/reference/unleash-context",target:"_blank",rel:"noreferrer",children:"Unleash context"})," ","contains information relating to the current feature toggle request."]}),l(At,{sx:{mt:1},children:"Select the context field by using this dropdown."})]}),backCloseModal:!0,anyClick:!0},{target:'li[data-testid="SELECT_ITEM_ID-userId"]',content:x(At,{children:["Select the ",l(qt,{as:"span",children:"userId"})," context field."]}),placement:"right",backCloseModal:!0},{target:'div[data-testid="CONSTRAINT_VALUES_INPUT"]',content:x(ve,{children:[x(At,{children:["Enter your ",l(qt,{as:"span",children:"userId"})]}),l(qt,{sx:{mt:2,mb:1,width:"100%"},icon:l(Xl,{}),children:"You can find your userId on the demo page."}),l(XI,{src:oa(KI),alt:"You can find your userId on the demo page."}),l(At,{sx:{mt:1},children:`When you're done, use the "Next" button in the dialog.`})]}),placement:"right",nextButton:!0,focus:"input"},{target:'button[data-testid="CONSTRAINT_VALUES_ADD_BUTTON"]',content:l(At,{children:"Add the constraint value by using this button."})},{target:'button[data-testid="CONSTRAINT_SAVE_BUTTON"]',content:l(At,{children:"Save the constraint by using this button."})},{target:'button[data-testid="STRATEGY_FORM_SUBMIT_ID"]',content:l(At,{children:"Save and apply your strategy by using this button."}),backCloseModal:!0},{target:'button[data-testid="DIALOGUE_CONFIRM_ID"]',content:l(At,{children:"Confirm your changes by using this button."}),optional:!0,backCloseModal:!0},{href:`/projects/${Hr}?sort=name`,target:`div[data-testid="TOGGLE-demoApp.step2-${Us}"]`,content:x(ve,{children:[l(At,{children:"Finally, enable or disable the feature for your user by toggling the highlighted switch."}),l(qt,{sx:{mt:2},icon:l(Xl,{}),children:"Look at the demo page to see your changes!"})]}),nextButton:!0,delay:500}]},{title:"Adjust gradual rollout",setup:uNe,steps:[{href:`/projects/${Hr}?sort=name`,target:"body",placement:"center",content:x(ve,{children:[x(At,{children:[l("a",{href:"https://docs.getunleash.io/reference/activation-strategies#gradual-rollout",target:"_blank",rel:"noreferrer",children:"Gradual rollout"})," ","is one of the available"," ",l("a",{href:"https://docs.getunleash.io/reference/activation-strategies",target:"_blank",rel:"noreferrer",children:"activation strategies"}),"."]}),l(At,{sx:{mt:1},children:"Let's try enabling a feature toggle only for a certain percentage of users."})]}),nextButton:!0},{href:`/projects/${Hr}?sort=name`,target:`a[href="${ri}/projects/${Hr}/features/demoApp.step3"]`,content:x(At,{children:["First, open the feature toggle configuration for"," ",l(qt,{as:"span",children:"demoApp.step3"})," by using this link."]}),preventDefault:!0},{href:`/projects/${Hr}/features/demoApp.step3`,target:`div[data-testid="FEATURE_ENVIRONMENT_ACCORDION_${Us}"] .MuiAccordionSummary-expandIconWrapper`,content:l(At,{children:"Expand the environment card to see all the defined strategies by using the arrow button."})},{target:`div[data-testid="FEATURE_ENVIRONMENT_ACCORDION_${Us}"].Mui-expanded a[data-testid="STRATEGY_EDIT-flexibleRollout"]`,content:l(At,{children:'Edit the existing gradual rollout strategy by using the "Edit" button.'}),backCollapseExpanded:!0},{target:'span[data-testid="ROLLOUT_SLIDER_ID"]',content:x(ve,{children:[l(At,{children:"Change the rollout percentage by adjusting the percentage slider."}),l(At,{sx:{mt:1},children:`When you're done, use the "Next" button in the dialog.`})]}),backCloseModal:!0,nextButton:!0},{target:'button[data-testid="STRATEGY_FORM_SUBMIT_ID"]',content:l(At,{children:"Save and apply your strategy by using this button."})},{target:'button[data-testid="DIALOGUE_CONFIRM_ID"]',content:l(At,{children:"Confirm your changes by using this button."}),optional:!0,backCloseModal:!0},{href:`/projects/${Hr}?sort=name`,target:`div[data-testid="TOGGLE-demoApp.step3-${Us}"]`,content:x(ve,{children:[l(At,{children:"Finally, enable or disable the feature with the new variant by toggling the highlighted switch."}),l(qt,{sx:{mt:2},icon:l(Xl,{}),children:"Look at the demo page to see your changes!"})]}),nextButton:!0,delay:500}]},{title:"Adjust variants",setup:dNe,steps:[{href:`/projects/${Hr}?sort=name`,target:"body",placement:"center",content:x(ve,{children:[x(At,{children:[l("a",{href:"https://docs.getunleash.io/reference/feature-toggle-variants",target:"_blank",rel:"noreferrer",children:"Feature toggle variants"})," ","allow you to define different values for a feature toggle. They can be used for A/B testing or segmenting your users."]}),l(At,{sx:{mt:1},children:"Let's try adding a variant to a feature toggle, along with an override so our user can see it."})]}),nextButton:!0},{href:`/projects/${Hr}?sort=name`,target:`a[href="${ri}/projects/${Hr}/features/demoApp.step4"]`,content:x(At,{children:["First, open the feature toggle configuration for"," ",l(qt,{as:"span",children:"demoApp.step4"})," by using this link."]}),preventDefault:!0},{href:`/projects/${Hr}/features/demoApp.step4`,target:'button[data-testid="TAB-Variants"]',content:l(At,{children:'Select the "Variants" tab.'})},{target:'button[data-testid="EDIT_VARIANTS_BUTTON"]',content:l(At,{children:"Edit the existing variants by using this button."})},{target:'button[data-testid="MODAL_ADD_VARIANT_BUTTON"]',content:l(At,{children:"Add a new variant to the list by using this button."}),backCloseModal:!0},{target:'div[data-testid="VARIANT"]:last-of-type div[data-testid="VARIANT_NAME_INPUT"]',content:x(ve,{children:[l(At,{children:"Enter a unique name for your variant."}),l(At,{sx:{mt:1},children:`When you're done, use the "Next" button in the dialog.`})]}),backCloseModal:!0,nextButton:!0,focus:"input"},{target:'div[data-testid="VARIANT"]:last-of-type #variant-payload-value',content:x(ve,{children:[x(At,{children:["Enter a"," ",l("a",{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/named-color",target:"_blank",rel:"noreferrer",children:"color"})," ","as the payload. It will be passed along and used in the demo website."]}),x(At,{sx:{mt:1},children:["It can be any color. For example, you can use one of these: ",l(qt,{as:"span",children:"teal"}),","," ",l(qt,{as:"span",children:"orange"})," or"," ",l(qt,{as:"span",children:"purple"})]}),l(At,{sx:{mt:1},children:`When you're done, use the "Next" button in the dialog.`})]}),nextButton:!0,focus:!0},{target:'div[data-testid="VARIANT"]:last-of-type button[data-testid="VARIANT_ADD_OVERRIDE_BUTTON"]',content:x(ve,{children:[l(At,{children:"By adding an override, we can specify that your user will always get this variant."}),l(At,{sx:{mt:1},children:"Let's add an override for your user by using this button."})]})},{target:'div[data-testid="VARIANT"]:last-of-type #override-context-name',content:l(At,{children:"Select the context field by using this dropdown."}),anyClick:!0,backCloseModal:!0},{target:'li[data-testid="SELECT_ITEM_ID-userId"]',content:x(At,{children:["Select the ",l(qt,{as:"span",children:"userId"})," context field."]}),placement:"right",backCloseModal:!0},{target:'div[data-testid="VARIANT"]:last-of-type div[data-testid="OVERRIDE_VALUES"]',content:x(ve,{children:[x(At,{children:["Enter your ",l(qt,{as:"span",children:"userId"})]}),l(qt,{sx:{mt:2,mb:1,width:"100%"},icon:l(Xl,{}),children:"You can find your userId on the demo page."}),l(XI,{src:oa(KI),alt:"You can find your userId on the demo page."}),l(At,{sx:{mt:1},children:`When you're done, use the "Next" button in the dialog.`})]}),placement:"right",nextButton:!0,backCloseModal:!0,focus:"input"},{target:'button[data-testid="DIALOGUE_CONFIRM_ID"]',content:l(At,{children:"Save your variants by using this button."})},{href:`/projects/${Hr}?sort=name`,target:`div[data-testid="TOGGLE-demoApp.step4-${Us}"]`,content:x(ve,{children:[l(At,{children:"Finally, enable or disable the feature with the new variant by toggling the highlighted switch."}),l(qt,{sx:{mt:2},icon:l(Xl,{}),children:"Look at the demo page to see your changes!"})]}),nextButton:!0,delay:500}]}],pNe="/static/demo-qr-c2ce85bd.png",fNe=C(KE)(({theme:e})=>({"& .MuiDialog-paper":{borderRadius:e.shape.borderRadiusExtraLarge,maxWidth:e.spacing(90),padding:e.spacing(7.5),textAlign:"center"},zIndex:e.zIndex.snackbar})),hNe=C(jt)(({theme:e})=>({position:"absolute",right:e.spacing(2),top:e.spacing(2),color:e.palette.neutral.main})),mNe=C(se)(({theme:e})=>({fontSize:e.fontSizes.largeHeader,fontWeight:e.fontWeight.bold})),Ac=({open:e,onClose:t,preventCloseOnBackdropClick:n,children:r,...o})=>x(fNe,{open:e,onClose:(i,a)=>{n&&a==="backdropClick"||t()},...o,children:[l(hNe,{"aria-label":"close",onClick:t,children:l(xc,{})}),r]});Ac.Header=mNe;const gNe=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:e.palette.neutral.light,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(4),margin:e.spacing(4,0)})),vNe=C(se)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,fontWeight:e.fontWeight.bold,marginBottom:e.spacing(2)})),yNe=C("img")(({theme:e})=>({width:e.spacing(20),height:e.spacing(20)})),bNe=C(To)(({theme:e})=>({margin:e.spacing(4,0),padding:e.spacing(0,4),width:"100%",color:e.palette.text.secondary})),wNe=C("a")(({theme:e})=>({display:"inline-flex",alignItems:"center",gap:e.spacing(.5),"& > svg":{fontSize:e.fontSizes.bodySize}})),SNe=C("div")(({theme:e})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",gap:e.spacing(4)})),JI=C(Ve)(({theme:e})=>({flex:1,height:e.spacing(7)})),xNe=({open:e,onClose:t,onStart:n})=>{const{trackEvent:r}=br();return x(Ac,{open:e,onClose:t,preventCloseOnBackdropClick:!0,children:[l(Ac.Header,{children:"Explore Unleash"}),l(se,{color:"textSecondary",sx:{mt:2},children:"You can explore Unleash on your own, however for the best experience it's recommended you follow our interactive demo. To get started, you will need to open the demo website below."}),x(gNe,{children:[l(vNe,{children:"Scan the QR code with your phone"}),l(yNe,{src:oa(pNe),alt:"Demo QR Code"}),l(bNe,{children:"OR"}),x(se,{children:["Open demo website in another tab:"," ",x(wNe,{href:"https://hello.unleash.run/?utm_source=Demo_instance&utm_medium=OpenLink&utm_campaign=Unleash",target:"_blank",rel:"noreferrer",onClick:()=>{r("demo-open-demo-web")},children:["hello.unleash.run ",l(BL,{})]})]}),l(se,{color:"textSecondary",children:"(we recommend you keep the pages open side by side)"})]}),x(SNe,{children:[l(JI,{variant:"outlined",color:"primary",onClick:t,children:"Explore on your own"}),l(JI,{variant:"contained",color:"primary",onClick:n,"data-testid":"DEMO_START_BUTTON",children:"Go for a guided tour"})]})]})};var n8={exports:{}};(function(e,t){(function(n,r){e.exports=r(m)})(typeof self<"u"?self:ki,function(n){return function(r){var o={};function i(a){if(o[a])return o[a].exports;var s=o[a]={i:a,l:!1,exports:{}};return r[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=r,i.c=o,i.d=function(a,s,c){i.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:c})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,s){if(1&s&&(a=i(a)),8&s||4&s&&typeof a=="object"&&a&&a.__esModule)return a;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:a}),2&s&&typeof a!="string")for(var u in a)i.d(c,u,(function(d){return a[d]}).bind(null,u));return c},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=2)}([function(r,o){r.exports=n},function(r,o,i){var a={linear:function(s,c,u,d){return(u-c)*s/d+c},easeInQuad:function(s,c,u,d){return(u-c)*(s/=d)*s+c},easeOutQuad:function(s,c,u,d){return-(u-c)*(s/=d)*(s-2)+c},easeInOutQuad:function(s,c,u,d){var p=u-c;return(s/=d/2)<1?p/2*s*s+c:-p/2*(--s*(s-2)-1)+c},easeInCubic:function(s,c,u,d){return(u-c)*(s/=d)*s*s+c},easeOutCubic:function(s,c,u,d){return(u-c)*((s=s/d-1)*s*s+1)+c},easeInOutCubic:function(s,c,u,d){var p=u-c;return(s/=d/2)<1?p/2*s*s*s+c:p/2*((s-=2)*s*s+2)+c},easeInQuart:function(s,c,u,d){return(u-c)*(s/=d)*s*s*s+c},easeOutQuart:function(s,c,u,d){return-(u-c)*((s=s/d-1)*s*s*s-1)+c},easeInOutQuart:function(s,c,u,d){var p=u-c;return(s/=d/2)<1?p/2*s*s*s*s+c:-p/2*((s-=2)*s*s*s-2)+c},easeInQuint:function(s,c,u,d){return(u-c)*(s/=d)*s*s*s*s+c},easeOutQuint:function(s,c,u,d){return(u-c)*((s=s/d-1)*s*s*s*s+1)+c},easeInOutQuint:function(s,c,u,d){var p=u-c;return(s/=d/2)<1?p/2*s*s*s*s*s+c:p/2*((s-=2)*s*s*s*s+2)+c},easeInSine:function(s,c,u,d){var p=u-c;return-p*Math.cos(s/d*(Math.PI/2))+p+c},easeOutSine:function(s,c,u,d){return(u-c)*Math.sin(s/d*(Math.PI/2))+c},easeInOutSine:function(s,c,u,d){return-(u-c)/2*(Math.cos(Math.PI*s/d)-1)+c},easeInExpo:function(s,c,u,d){return s==0?c:(u-c)*Math.pow(2,10*(s/d-1))+c},easeOutExpo:function(s,c,u,d){var p=u-c;return s==d?c+p:p*(1-Math.pow(2,-10*s/d))+c},easeInOutExpo:function(s,c,u,d){var p=u-c;return s===0?c:s===d?c+p:(s/=d/2)<1?p/2*Math.pow(2,10*(s-1))+c:p/2*(2-Math.pow(2,-10*--s))+c},easeInCirc:function(s,c,u,d){return-(u-c)*(Math.sqrt(1-(s/=d)*s)-1)+c},easeOutCirc:function(s,c,u,d){return(u-c)*Math.sqrt(1-(s=s/d-1)*s)+c},easeInOutCirc:function(s,c,u,d){var p=u-c;return(s/=d/2)<1?-p/2*(Math.sqrt(1-s*s)-1)+c:p/2*(Math.sqrt(1-(s-=2)*s)+1)+c},easeInElastic:function(s,c,u,d){var p,f,h,g=u-c;return h=1.70158,s===0?c:(s/=d)==1?c+g:((f=0)||(f=.3*d),(p=g)<Math.abs(g)?(p=g,h=f/4):h=f/(2*Math.PI)*Math.asin(g/p),-p*Math.pow(2,10*(s-=1))*Math.sin((s*d-h)*(2*Math.PI)/f)+c)},easeOutElastic:function(s,c,u,d){var p,f,h,g=u-c;return h=1.70158,s===0?c:(s/=d)==1?c+g:((f=0)||(f=.3*d),(p=g)<Math.abs(g)?(p=g,h=f/4):h=f/(2*Math.PI)*Math.asin(g/p),p*Math.pow(2,-10*s)*Math.sin((s*d-h)*(2*Math.PI)/f)+g+c)},easeInOutElastic:function(s,c,u,d){var p,f,h,g=u-c;return h=1.70158,s===0?c:(s/=d/2)==2?c+g:((f=0)||(f=d*.44999999999999996),(p=g)<Math.abs(g)?(p=g,h=f/4):h=f/(2*Math.PI)*Math.asin(g/p),s<1?p*Math.pow(2,10*(s-=1))*Math.sin((s*d-h)*(2*Math.PI)/f)*-.5+c:p*Math.pow(2,-10*(s-=1))*Math.sin((s*d-h)*(2*Math.PI)/f)*.5+g+c)},easeInBack:function(s,c,u,d,p){return p===void 0&&(p=1.70158),(u-c)*(s/=d)*s*((p+1)*s-p)+c},easeOutBack:function(s,c,u,d,p){return p===void 0&&(p=1.70158),(u-c)*((s=s/d-1)*s*((p+1)*s+p)+1)+c},easeInOutBack:function(s,c,u,d,p){var f=u-c;return p===void 0&&(p=1.70158),(s/=d/2)<1?f/2*(s*s*((1+(p*=1.525))*s-p))+c:f/2*((s-=2)*s*((1+(p*=1.525))*s+p)+2)+c},easeInBounce:function(s,c,u,d){var p=u-c;return p-a.easeOutBounce(d-s,0,p,d)+c},easeOutBounce:function(s,c,u,d){var p=u-c;return(s/=d)<.36363636363636365?p*(7.5625*s*s)+c:s<.7272727272727273?p*(7.5625*(s-=.5454545454545454)*s+.75)+c:s<.9090909090909091?p*(7.5625*(s-=.8181818181818182)*s+.9375)+c:p*(7.5625*(s-=.9545454545454546)*s+.984375)+c},easeInOutBounce:function(s,c,u,d){var p=u-c;return s<d/2?.5*a.easeInBounce(2*s,0,p,d)+c:.5*a.easeOutBounce(2*s-d,0,p,d)+.5*p+c}};r.exports=a},function(r,o,i){r.exports=i(3)},function(r,o,i){i.r(o),i.d(o,"ReactConfetti",function(){return Ie});var a,s,c=i(0),u=i.n(c),d=i(1),p=i.n(d);function f(te,ie){return te+Math.random()*(ie-te)}function h(te,ie){for(var le=0;le<ie.length;le++){var oe=ie[le];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(te,oe.key,oe)}}function g(te,ie,le){return ie in te?Object.defineProperty(te,ie,{value:le,enumerable:!0,configurable:!0,writable:!0}):te[ie]=le,te}(function(te){te[te.Circle=0]="Circle",te[te.Square=1]="Square",te[te.Strip=2]="Strip"})(a||(a={})),function(te){te[te.Positive=1]="Positive",te[te.Negative=-1]="Negative"}(s||(s={}));var v=function(){function te(oe,Ne,me,ke){(function(lt,Lt){if(!(lt instanceof Lt))throw new TypeError("Cannot call a class as a function")})(this,te),g(this,"context",void 0),g(this,"radius",void 0),g(this,"x",void 0),g(this,"y",void 0),g(this,"w",void 0),g(this,"h",void 0),g(this,"vx",void 0),g(this,"vy",void 0),g(this,"shape",void 0),g(this,"angle",void 0),g(this,"angularSpin",void 0),g(this,"color",void 0),g(this,"rotateY",void 0),g(this,"rotationDirection",void 0),g(this,"getOptions",void 0),this.getOptions=Ne;var pe,it,Le=this.getOptions(),Ge=Le.colors,st=Le.initialVelocityX,Ye=Le.initialVelocityY;this.context=oe,this.x=me,this.y=ke,this.w=f(5,20),this.h=f(5,20),this.radius=f(5,10),this.vx=typeof st=="number"?f(-st,st):f(st.min,st.max),this.vy=typeof Ye=="number"?f(-Ye,0):f(Ye.min,Ye.max),this.shape=(pe=0,it=2,Math.floor(pe+Math.random()*(it-pe+1))),this.angle=f(0,360)*Math.PI/180,this.angularSpin=f(-.2,.2),this.color=Ge[Math.floor(Math.random()*Ge.length)],this.rotateY=f(0,1),this.rotationDirection=f(0,1)?s.Positive:s.Negative}var ie,le;return ie=te,(le=[{key:"update",value:function(){var oe=this.getOptions(),Ne=oe.gravity,me=oe.wind,ke=oe.friction,pe=oe.opacity,it=oe.drawShape;this.x+=this.vx,this.y+=this.vy,this.vy+=Ne,this.vx+=me,this.vx*=ke,this.vy*=ke,this.rotateY>=1&&this.rotationDirection===s.Positive?this.rotationDirection=s.Negative:this.rotateY<=-1&&this.rotationDirection===s.Negative&&(this.rotationDirection=s.Positive);var Le=.1*this.rotationDirection;if(this.rotateY+=Le,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=pe,this.context.lineCap="round",this.context.lineWidth=2,it&&typeof it=="function")it.call(this,this.context);else switch(this.shape){case a.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case a.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case a.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&h(ie.prototype,le),te}();function b(te,ie,le){return ie in te?Object.defineProperty(te,ie,{value:le,enumerable:!0,configurable:!0,writable:!0}):te[ie]=le,te}var y=function te(ie,le){var oe=this;(function(me,ke){if(!(me instanceof ke))throw new TypeError("Cannot call a class as a function")})(this,te),b(this,"canvas",void 0),b(this,"context",void 0),b(this,"getOptions",void 0),b(this,"x",0),b(this,"y",0),b(this,"w",0),b(this,"h",0),b(this,"lastNumberOfPieces",0),b(this,"tweenInitTime",Date.now()),b(this,"particles",[]),b(this,"particlesGenerated",0),b(this,"removeParticleAt",function(me){oe.particles.splice(me,1)}),b(this,"getParticle",function(){var me=f(oe.x,oe.w+oe.x),ke=f(oe.y,oe.h+oe.y);return new v(oe.context,oe.getOptions,me,ke)}),b(this,"animate",function(){var me=oe.canvas,ke=oe.context,pe=oe.particlesGenerated,it=oe.lastNumberOfPieces,Le=oe.getOptions(),Ge=Le.run,st=Le.recycle,Ye=Le.numberOfPieces,lt=Le.debug,Lt=Le.tweenFunction,Ft=Le.tweenDuration;if(!Ge)return!1;var be=oe.particles.length,Oe=st?be:pe,Qe=Date.now();if(Oe<Ye){it!==Ye&&(oe.tweenInitTime=Qe,oe.lastNumberOfPieces=Ye);for(var re=oe.tweenInitTime,Z=Lt(Qe-re>Ft?Ft:Math.max(0,Qe-re),Oe,Ye,Ft),X=Math.round(Z-Oe),Se=0;Se<X;Se++)oe.particles.push(oe.getParticle());oe.particlesGenerated+=X}return lt&&(ke.font="12px sans-serif",ke.fillStyle="#333",ke.textAlign="right",ke.fillText("Particles: ".concat(be),me.width-10,me.height-20)),oe.particles.forEach(function(Re,De){Re.update(),(Re.y>me.height||Re.y<-100||Re.x>me.width+100||Re.x<-100)&&(st&&Oe<=Ye?oe.particles[De]=oe.getParticle():oe.removeParticleAt(De))}),be>0||Oe<Ye}),this.canvas=ie;var Ne=this.canvas.getContext("2d");if(!Ne)throw new Error("Could not get canvas context");this.context=Ne,this.getOptions=le};function w(te,ie){var le=Object.keys(te);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(te);ie&&(oe=oe.filter(function(Ne){return Object.getOwnPropertyDescriptor(te,Ne).enumerable})),le.push.apply(le,oe)}return le}function S(te){for(var ie=1;ie<arguments.length;ie++){var le=arguments[ie]!=null?arguments[ie]:{};ie%2?w(Object(le),!0).forEach(function(oe){A(te,oe,le[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(te,Object.getOwnPropertyDescriptors(le)):w(Object(le)).forEach(function(oe){Object.defineProperty(te,oe,Object.getOwnPropertyDescriptor(le,oe))})}return te}function k(te,ie){for(var le=0;le<ie.length;le++){var oe=ie[le];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(te,oe.key,oe)}}function A(te,ie,le){return ie in te?Object.defineProperty(te,ie,{value:le,enumerable:!0,configurable:!0,writable:!0}):te[ie]=le,te}var T={width:typeof window<"u"?window.innerWidth:300,height:typeof window<"u"?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:p.a.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},R=function(){function te(oe,Ne){var me=this;(function(pe,it){if(!(pe instanceof it))throw new TypeError("Cannot call a class as a function")})(this,te),A(this,"canvas",void 0),A(this,"context",void 0),A(this,"_options",void 0),A(this,"generator",void 0),A(this,"rafId",void 0),A(this,"setOptionsWithDefaults",function(pe){var it={confettiSource:{x:0,y:0,w:me.canvas.width,h:0}};me._options=S(S(S({},it),T),pe),Object.assign(me,pe.confettiSource)}),A(this,"update",function(){var pe=me.options,it=pe.run,Le=pe.onConfettiComplete,Ge=me.canvas,st=me.context;it&&(st.fillStyle="white",st.clearRect(0,0,Ge.width,Ge.height)),me.generator.animate()?me.rafId=requestAnimationFrame(me.update):(Le&&typeof Le=="function"&&me.generator.particlesGenerated>0&&Le.call(me,me),me._options.run=!1)}),A(this,"reset",function(){me.generator&&me.generator.particlesGenerated>0&&(me.generator.particlesGenerated=0,me.generator.particles=[],me.generator.lastNumberOfPieces=0)}),A(this,"stop",function(){me.options={run:!1},me.rafId&&(cancelAnimationFrame(me.rafId),me.rafId=void 0)}),this.canvas=oe;var ke=this.canvas.getContext("2d");if(!ke)throw new Error("Could not get canvas context");this.context=ke,this.generator=new y(this.canvas,function(){return me.options}),this.options=Ne,this.update()}var ie,le;return ie=te,(le=[{key:"options",get:function(){return this._options},set:function(oe){var Ne=this._options&&this._options.run,me=this._options&&this._options.recycle;this.setOptionsWithDefaults(oe),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof oe.recycle=="boolean"&&oe.recycle&&me===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof oe.run=="boolean"&&oe.run&&Ne===!1&&this.update()}}])&&k(ie.prototype,le),te}();function P(te){return function(ie){if(Array.isArray(ie))return Y(ie)}(te)||function(ie){if(typeof Symbol<"u"&&Symbol.iterator in Object(ie))return Array.from(ie)}(te)||B(te)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
434
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _(te){return(_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie})(te)}function O(){return(O=Object.assign||function(te){for(var ie=1;ie<arguments.length;ie++){var le=arguments[ie];for(var oe in le)Object.prototype.hasOwnProperty.call(le,oe)&&(te[oe]=le[oe])}return te}).apply(this,arguments)}function $(te,ie){var le=Object.keys(te);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(te);ie&&(oe=oe.filter(function(Ne){return Object.getOwnPropertyDescriptor(te,Ne).enumerable})),le.push.apply(le,oe)}return le}function z(te){for(var ie=1;ie<arguments.length;ie++){var le=arguments[ie]!=null?arguments[ie]:{};ie%2?$(Object(le),!0).forEach(function(oe){J(te,oe,le[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(te,Object.getOwnPropertyDescriptors(le)):$(Object(le)).forEach(function(oe){Object.defineProperty(te,oe,Object.getOwnPropertyDescriptor(le,oe))})}return te}function L(te,ie){return function(le){if(Array.isArray(le))return le}(te)||function(le,oe){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(le)))){var Ne=[],me=!0,ke=!1,pe=void 0;try{for(var it,Le=le[Symbol.iterator]();!(me=(it=Le.next()).done)&&(Ne.push(it.value),!oe||Ne.length!==oe);me=!0);}catch(Ge){ke=!0,pe=Ge}finally{try{me||Le.return==null||Le.return()}finally{if(ke)throw pe}}return Ne}}(te,ie)||B(te,ie)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
435
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function B(te,ie){if(te){if(typeof te=="string")return Y(te,ie);var le=Object.prototype.toString.call(te).slice(8,-1);return le==="Object"&&te.constructor&&(le=te.constructor.name),le==="Map"||le==="Set"?Array.from(te):le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(le)?Y(te,ie):void 0}}function Y(te,ie){(ie==null||ie>te.length)&&(ie=te.length);for(var le=0,oe=new Array(ie);le<ie;le++)oe[le]=te[le];return oe}function H(te,ie){if(!(te instanceof ie))throw new TypeError("Cannot call a class as a function")}function ee(te,ie){for(var le=0;le<ie.length;le++){var oe=ie[le];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(te,oe.key,oe)}}function V(te,ie){return(V=Object.setPrototypeOf||function(le,oe){return le.__proto__=oe,le})(te,ie)}function W(te){var ie=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var le,oe=M(te);if(ie){var Ne=M(this).constructor;le=Reflect.construct(oe,arguments,Ne)}else le=oe.apply(this,arguments);return j(this,le)}}function j(te,ie){return!ie||_(ie)!=="object"&&typeof ie!="function"?I(te):ie}function I(te){if(te===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return te}function M(te){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(ie){return ie.__proto__||Object.getPrototypeOf(ie)})(te)}function J(te,ie,le){return ie in te?Object.defineProperty(te,ie,{value:le,enumerable:!0,configurable:!0,writable:!0}):te[ie]=le,te}var ae=u.a.createRef(),Te=function(te){(function(me,ke){if(typeof ke!="function"&&ke!==null)throw new TypeError("Super expression must either be null or a function");me.prototype=Object.create(ke&&ke.prototype,{constructor:{value:me,writable:!0,configurable:!0}}),ke&&V(me,ke)})(Ne,te);var ie,le,oe=W(Ne);function Ne(me){var ke;H(this,Ne);for(var pe=arguments.length,it=new Array(pe>1?pe-1:0),Le=1;Le<pe;Le++)it[Le-1]=arguments[Le];return J(I(ke=oe.call.apply(oe,[this,me].concat(it))),"canvas",u.a.createRef()),J(I(ke),"confetti",void 0),ke.canvas=me.canvasRef||ae,ke}return ie=Ne,(le=[{key:"componentDidMount",value:function(){if(this.canvas.current){var me=he(this.props)[0];this.confetti=new R(this.canvas.current,me)}}},{key:"componentDidUpdate",value:function(){var me=he(this.props)[0];this.confetti&&(this.confetti.options=me)}},{key:"componentWillUnmount",value:function(){this.confetti&&this.confetti.stop(),this.confetti=void 0}},{key:"render",value:function(){var me=L(he(this.props),2),ke=me[0],pe=me[1],it=z({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},pe.style);return u.a.createElement("canvas",O({width:ke.width,height:ke.height,ref:this.canvas},pe,{style:it}))}}])&&ee(ie.prototype,le),Ne}(c.Component);function he(te){var ie={},le={},oe=[].concat(P(Object.keys(T)),["confettiSource","drawShape","onConfettiComplete"]),Ne=["canvasRef"];for(var me in te){var ke=te[me];oe.includes(me)?ie[me]=ke:Ne.includes(me)?Ne[me]=ke:le[me]=ke}return[ie,le,{}]}J(Te,"defaultProps",z({},T)),J(Te,"displayName","ReactConfetti");var Ie=u.a.forwardRef(function(te,ie){return u.a.createElement(Te,O({canvasRef:ie},te))});o.default=Ie}]).default})})(n8);var CNe=n8.exports;const ENe=Yr(CNe),TNe=C("div")(({theme:e})=>({display:"grid",gridTemplateColumns:"1fr 1fr",gap:e.spacing(3),marginTop:e.spacing(7.5)})),QI=C(Ve)(({theme:e})=>({height:e.spacing(7)})),kNe=({open:e,onClose:t,onRestart:n})=>x(ve,{children:[l(q,{condition:e,show:l(ENe,{recycle:!1,numberOfPieces:1e3,initialVelocityY:50,gravity:.3,style:{zIndex:3e3}})}),x(Ac,{open:e,onClose:t,children:[l(Ac.Header,{children:"You finished the demo"}),l(se,{color:"textSecondary",sx:{mt:4},children:"Great job! Keep exploring Unleash, as this was just a small example of its full potential. You can do the demo again at any moment."}),x(TNe,{children:[l(QI,{variant:"outlined",color:"primary",onClick:n,children:"Restart demo"}),l(QI,{variant:"contained",color:"primary",onClick:t,"data-testid":"DEMO_FINISH_BUTTON",children:"Continue"})]})]})]}),ANe=C(Ac)(({theme:e})=>({"& .MuiDialog-paper":{maxWidth:e.spacing(120),[e.breakpoints.down("md")]:{padding:e.spacing(3.75),margin:e.spacing(2.5)},[e.breakpoints.down(768)]:{padding:e.spacing(6,4,4,4),margin:e.spacing(2.5),"& > p":{fontSize:e.typography.h1.fontSize}}}})),RNe=C("div")(({theme:e})=>({display:"grid",gridTemplateColumns:"auto auto auto",gap:e.spacing(1),marginTop:e.spacing(6),justifyContent:"center",[e.breakpoints.down("md")]:{marginTop:e.spacing(4.75)},[e.breakpoints.down(768)]:{gridTemplateColumns:"auto",marginTop:e.spacing(3.5)}})),Mw=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",backgroundColor:e.palette.background.elevation1,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(4,3),"& > a":{whiteSpace:"nowrap",[e.breakpoints.between(768,"md")]:{whiteSpace:"normal",height:e.spacing(6.25),lineHeight:1.2}},height:e.spacing(34),width:e.spacing(34),[e.breakpoints.between(768,"md")]:{height:e.spacing(36),width:e.spacing(27.5)}})),_Ne=C("a")(({theme:e})=>({fontSize:e.fontSizes.mainHeader,textDecoration:"none","&:hover":{textDecoration:"underline"},margin:"auto",marginTop:e.spacing(4),display:"inline-flex",alignItems:"center",gap:e.spacing(1),"& > svg":{fontSize:e.fontSizes.mainHeader}})),PNe=({open:e,onClose:t})=>{const{trackEvent:n}=br();return x(ANe,{open:e,onClose:t,children:[l(Ac.Header,{children:"Want to keep going with Unleash?"}),x(RNe,{children:[x(Mw,{children:[l(se,{variant:"h5",fontWeight:"bold",children:"Open Source"}),l(se,{variant:"body2",color:"textSecondary",children:"Self-hosted basic feature management solution"}),l(se,{variant:"h6",fontWeight:"normal",children:"Free"}),l(Ve,{variant:"outlined",color:"primary",startIcon:l(Mle,{}),href:"https://github.com/unleash/unleash",target:"_blank",rel:"noreferrer",onClick:()=>{n("demo-see-plan",{props:{plan:"open_source"}})},children:"View project on GitHub"})]}),x(Mw,{children:[l(se,{variant:"h5",fontWeight:"bold",children:"Pro"}),l(se,{variant:"body2",color:"textSecondary",children:"Free your team to collaborate. We'll do the heavy lifting."}),x("div",{children:[l(se,{variant:"h6",fontWeight:"normal",children:"$80/month"}),l(se,{variant:"body2",children:"includes 5 seats"})]}),l(Ve,{variant:"contained",color:"primary",href:"https://www.getunleash.io/plans/pro",target:"_blank",rel:"noreferrer",onClick:()=>{n("demo-see-plan",{props:{plan:"pro"}})},children:"Start 14-day free trial"})]}),x(Mw,{children:[l(se,{variant:"h5",fontWeight:"bold",children:"Enterprise"}),l(se,{variant:"body2",color:"textSecondary",children:"Security, compliance, and development controls for scale."}),x("div",{children:[l(se,{variant:"h6",fontWeight:"normal",children:"Custom"}),l(se,{variant:"body2",children:"unlimited seats"})]}),l(Ve,{variant:"contained",color:"web",href:"https://www.getunleash.io/plans/enterprise",target:"_blank",rel:"noreferrer",onClick:()=>{n("demo-see-plan",{props:{plan:"enterprise"}})},children:"Contact sales"})]})]}),x(_Ne,{href:"https://www.getunleash.io/plans",target:"_blank",rel:"noreferrer",onClick:()=>{n("demo-see-plan",{props:{plan:"compare_plans"}})},children:["Compare plans ",l(BL,{})]})]})},INe=C("div")(({theme:e})=>({position:"sticky",top:0,zIndex:e.zIndex.sticky,display:"flex",gap:e.spacing(1),justifyContent:"center",alignItems:"center",backgroundColor:e.palette.web.main,color:e.palette.web.contrastText,padding:e.spacing(1),[e.breakpoints.down(768)]:{flexDirection:"column"}})),ONe=C("div")(({theme:e})=>({display:"flex",gap:e.spacing(1)})),r8=C(Ve)(({theme:e})=>({whiteSpace:"nowrap",flexShrink:0,"&&&":{fontSize:e.fontSizes.smallBody}})),$Ne=C(r8)(({theme:e})=>({color:e.palette.web.contrastText,border:"1px solid rgba(255, 255, 255, 0.5)"})),NNe=({onPlans:e})=>{const{trackEvent:t}=br();return x(INe,{children:[x("span",{children:["This is a ",l("strong",{children:"demo of Unleash"}),". Play around as much as you want. Reach out when you're ready."]}),x(ONe,{children:[l($Ne,{variant:"outlined",sx:{ml:1},href:"https://slack.unleash.run/",target:"_blank",rel:"noreferrer",onClick:()=>{t("demo-ask-questions")},children:"Ask questions"}),l(r8,{variant:"contained",color:"primary",onClick:e,children:"Get started"})]})]})},au={welcomeOpen:!0,expanded:!0,topic:-1,step:0,stepsCompletion:Array(ef.length).fill(0)},LNe=({children:e})=>{const{uiConfig:t}=It(),n=tr(ua.breakpoints.down(768)),{trackEvent:r}=br(),{value:o,setValue:i}=Lc("Tutorial:v1.1",au),[a,s]=m.useState(o.welcomeOpen??au.welcomeOpen),[c,u]=m.useState(!1),[d,p]=m.useState(!1),[f,h]=m.useState(o.expanded??au.expanded),[g,v]=m.useState(o.topic??au.topic),[b,y]=m.useState(o.step??au.step),[w,S]=m.useState(o.stepsCompletion??au.stepsCompletion);m.useEffect(()=>{i({welcomeOpen:a,expanded:f,topic:g,step:b,stepsCompletion:w})},[a,f,g,b,w]);const k=()=>{v(0),y(0),S(Array(ef.length).fill(0)),h(!0)},A=()=>{u(!0),r("demo-finish")},T=()=>{v(-1),y(0)};return t.flags.demo?x(ve,{children:[l(NNe,{onPlans:()=>{T(),s(!1),p(!0),r("demo-see-plans")}}),e,l(PNe,{open:d,onClose:()=>p(!1)}),l(q,{condition:!n,show:x(ve,{children:[l(xNe,{open:a,onClose:()=>{s(!1),h(!1),r("demo-close",{props:{topic:"welcome",step:"welcome"}})},onStart:()=>{s(!1),k(),r("demo-start")}}),l(kNe,{open:c,onClose:()=>{u(!1),p(!0)},onRestart:()=>{u(!1),k(),r("demo-restart")}}),l(kOe,{expanded:f,setExpanded:h,stepsCompletion:w,currentTopic:g,setCurrentTopic:R=>{v(R),y(0),s(!1),p(!1),r("demo-start-topic",{props:{topic:ef[R].title}})},topics:ef,onWelcome:()=>{T(),p(!1),s(!0),r("demo-view-demo-link")}}),l(oNe,{setExpanded:h,step:b,setStep:y,stepsCompletion:w,setStepsCompletion:S,topic:g,setTopic:v,topics:ef,onFinish:A})]})})]}):e},DNe=C(Wn)(()=>({height:"100%",justifyContent:"space-between",display:"flex",flexDirection:"column",flexGrow:1,position:"relative"})),MNe=C("main")(({theme:e})=>({margin:e.spacing(0,"auto"),flexGrow:1,width:"100%",backgroundColor:e.palette.background.application,position:"relative"})),BNe=C(Wn)(({theme:e})=>({width:"1250px",margin:"0 auto",[e.breakpoints.down("lg")]:{width:"1024px"},[e.breakpoints.down(1024)]:{width:"100%",marginLeft:0,marginRight:0},[e.breakpoints.down("sm")]:{minWidth:"100%"}})),ZI=C("img")(()=>({display:"block",position:"fixed",zIndex:0,bottom:0,right:0,width:400,pointerEvents:"none",userSelect:"none"})),FNe=C("div")(({theme:e})=>({height:"100%",padding:e.spacing(0,0,6.5,0),position:"relative",[e.breakpoints.down("md")]:{padding:e.spacing(0,1.5,6.5,1.5)},zIndex:200})),zNe=m.forwardRef(({children:e},t)=>{const{uiConfig:n}=It(),r=Ka("projectId"),{isChangeRequestConfiguredInAnyEnv:o}=Bc(r||"");return x(ve,{children:[l(O5e,{}),l(LNe,{children:x(ve,{children:[l(m5e,{}),l(P5e,{}),x(DNe,{children:[x(MNe,{children:[l(q,{condition:!!(r&&o()),show:l(dOe,{project:r||""})}),l(BNe,{item:!0,xs:12,sm:12,my:2,children:x(FNe,{ref:t,children:[l(_5e,{}),l(T5e,{toast:n.toast}),e]})}),l(Pd,{darkmode:l(ZI,{style:{opacity:.06},src:oa(oI),alt:""}),lightmode:l(ZI,{src:oa(oI),alt:""})})]}),l(w5e,{})]})]})})]})}),jNe=({isStandalone:e,children:t})=>l(q,{condition:e===!0,show:t,elseShow:l(zNe,{children:t})}),UNe=()=>{const{pathname:e,search:t}=Ro(),r=`/login?redirect=${encodeURIComponent(e+t)}`;return l($c,{to:r,replace:!0})},WNe=({route:e})=>{const{user:t}=vi();return!!!(t!=null&&t.id)&&e.type==="protected"?l(UNe,{}):l(e.component,{})},HNe=({children:e})=>{const{refetchUser:t}=vi();return l(sse,{value:{onError:r=>{r instanceof GL&&r.status===401&&t()}},children:e})};function VNe(e,t,n){const r=/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*:)*?:?0*1$/.test(location.hostname)||location.protocol==="file:";if(!t.trackLocalhost&&r)return console.warn("[Plausible] Ignoring event because website is running locally");try{if(window.localStorage.plausible_ignore==="true")return console.warn('[Plausible] Ignoring event because "plausible_ignore" is set to "true" in localStorage')}catch{}const o={n:e,u:t.url,d:t.domain,r:t.referrer,w:t.deviceWidth,h:t.hashMode?1:0,p:n&&n.props?JSON.stringify(n.props):void 0},i=new XMLHttpRequest;i.open("POST",`${t.apiHost}/api/event`,!0),i.setRequestHeader("Content-Type","text/plain"),i.send(JSON.stringify(o)),i.onreadystatechange=()=>{i.readyState===4&&n&&n.callback&&n.callback()}}function GNe(e){const t=()=>({hashMode:!1,trackLocalhost:!1,url:location.href,domain:location.hostname,referrer:document.referrer||null,deviceWidth:window.innerWidth,apiHost:"https://plausible.io",...e}),n=(a,s,c)=>{VNe(a,{...t(),...c},s)},r=(a,s)=>{n("pageview",s,a)};return{trackEvent:n,trackPageview:r,enableAutoPageviews:()=>{const a=()=>r(),s=history.pushState;return s&&(history.pushState=function(c,u,d){s.apply(this,[c,u,d]),a()},addEventListener("popstate",a)),e&&e.hashMode&&addEventListener("hashchange",a),r(),function(){s&&(history.pushState=s,removeEventListener("popstate",a)),e&&e.hashMode&&removeEventListener("hashchange",a)}},enableAutoOutboundTracking:(a=document,s={subtree:!0,childList:!0,attributes:!0,attributeFilter:["href"]})=>{function c(h){n("Outbound Link: Click",{props:{url:this.href}}),typeof process<"u"&&process,setTimeout(()=>{location.href=this.href},150),h.preventDefault()}const u=new Set;function d(h){h instanceof HTMLAnchorElement?h.host!==location.host&&(h.addEventListener("click",c),u.add(h)):"querySelectorAll"in h&&h.querySelectorAll("a").forEach(d)}function p(h){h instanceof HTMLAnchorElement?(h.removeEventListener("click",c),u.delete(h)):"querySelectorAll"in h&&h.querySelectorAll("a").forEach(p)}const f=new MutationObserver(h=>{h.forEach(g=>{g.type==="attributes"?(p(g.target),d(g.target)):g.type==="childList"&&(g.addedNodes.forEach(d),g.removedNodes.forEach(p))})});return a.querySelectorAll("a").forEach(d),f.observe(a,s),function(){u.forEach(g=>{g.removeEventListener("click",c)}),u.clear(),f.disconnect()}}}}const qNe="https://plausible.getunleash.io",YNe="app.unleash-hosted.com",Bw=!1,KNe=({children:e})=>{var s;const[t,n]=m.useState(null),o=(()=>{var c;try{const u=((c=document.querySelector('meta[name="uiFlags"]'))==null?void 0:c.content)||"{}";return JSON.parse(decodeURI(u))}catch{return{}}})(),{uiConfig:i}=It(),a=!!((s=i==null?void 0:i.flags)!=null&&s.T||o.T||Bw);return m.useEffect(()=>{if(a)try{const c=GNe({domain:Bw?void 0:YNe,apiHost:Bw?"http://localhost:8000":qNe,trackLocalhost:!0});return n(()=>c),c.enableAutoPageviews()}catch(c){console.warn(c)}},[a]),l(Z6.Provider,{value:t,children:e})},XNe=Ns()(e=>({container:{maxWidth:"450px",background:e.palette.background.paper,boxShadow:e.boxShadows.popup,zIndex:500,margin:"0 0.8rem",borderRadius:"12.5px",padding:"2rem"},innerContainer:{position:"relative"},starting:{opacity:0},headerContainer:{display:"flex",alignItems:"center"},confettiContainer:{position:"relative",maxWidth:"600px",margin:"0 auto",display:"flex"},textContainer:{marginLeft:"1rem",wordBreak:"break-word"},headerStyles:{fontWeight:"normal",margin:0,marginBottom:"0.5rem"},createdContainer:{display:"flex",alignItems:"center",flexDirection:"column"},anim:{animation:"$drop 10s 3s"},checkMark:{width:"65px",height:"65px"},buttonStyle:{position:"absolute",top:"-33px",right:"-33px"},"@keyframes drop":{"0%":{opacity:"0%",top:"0%"},"10%":{opacity:"100%"},"100%":{top:"100%"}}})),JNe=C("div")(({theme:e})=>({backgroundColor:e.palette.background.alternative,width:"75px",height:"75px",borderRadius:"50px",display:"flex",justifyContent:"center",alignItems:"center",[e.breakpoints.down("sm")]:{width:"50px",height:"50px"}})),QNe=C(k1)(({theme:e})=>({color:e.palette.common.white,width:"35px",height:"35px"})),ZNe=C($v)(({theme:e})=>({color:e.palette.common.white,width:"35px",height:"35px"})),e6e=({type:e,className:t})=>l(JNe,{className:t,children:e==="error"?l(QNe,{titleAccess:"Error"}):l(ZNe,{})}),t6e=({title:e,text:t,type:n,confetti:r})=>{const{setToast:o}=m.useContext(Il),{classes:i}=XNe(),a=["#d13447","#ffbf00","#263672"],s=200,c=p=>Math.floor(Math.random()*p)+1,u=()=>new Array(s).fill(1).map((h,g)=>{const v=c(8),b=c(100),y={position:"absolute",width:`${v}px`,height:`${v*.4}px`,backgroundColor:a[c(2)],left:`${b}%`,transform:`rotate(${c(101)}deg)`,animationDelay:`${c(5)}s`,animationDuration:`${c(3)}s`,animationEase:`${c(2)}s`};return l("div",{style:y,className:$i(i.starting,i.anim)},g)}),d=()=>{o(p=>({...p,show:!1}))};return l("div",{className:$i(i.container,"dropdown-outline"),children:l("div",{className:i.innerContainer,children:x("div",{className:i.confettiContainer,children:[r&&u(),x("div",{className:i.createdContainer,children:[x("div",{className:i.headerContainer,children:[l("div",{children:l(e6e,{type:n,className:i.checkMark})}),x("div",{className:i.textContainer,children:[l("h3",{className:i.headerStyles,children:e}),l(q,{condition:!!t,show:l("p",{"data-testid":dae,children:t})})]})]}),l(xt,{title:"Close",arrow:!0,children:l(jt,{onClick:d,className:i.buttonStyle,size:"large",children:l(xc,{})})})]})]})})})},n6e=()=>{const{toastData:e,setToast:t}=m.useContext(Il),n=()=>{t(o=>({...o,show:!1}))};m.useEffect(()=>{if(!e.autoHideDuration)return;let o=setTimeout(()=>{n()},e.autoHideDuration);return()=>{clearTimeout(o)}},[e==null?void 0:e.show]);const r=m.useMemo(()=>({start:{...q6,right:0,left:0,margin:"0 auto",maxWidth:"450px"},enter:Y6,leave:Pie}),[]);return l(zE,{children:l(l2,{mounted:!!(e!=null&&e.show),start:r.start,enter:r.enter,leave:r.leave,children:l(t6e,{...e})})})},r6e=()=>{const{pathname:e}=Ro(),{user:t}=vi(),{splash:n}=$M(),{uiConfig:r,loading:o}=It();if(!t||!n||!r||o||G$("/splash/:splashId",e)||t.isAPI)return null;const i=vke.find(a=>!o6e(a,n));return i?l($c,{to:`/splash/${i}`,replace:!0}):null},o6e=(e,t)=>!!t[e],i6e=C($le)(({theme:e})=>({color:e.palette.error.main,height:"20px",width:"20px",marginRight:e.spacing(1)})),a6e=C("div")(({theme:e})=>({display:"flex",fontSize:e.fontSizes.smallBody,justifyContent:"center",alignItems:"center",color:e.palette.error.contrastText,backgroundColor:e.palette.error.light,height:"65px",borderBottom:`1px solid ${e.palette.error.border}`,whiteSpace:"pre-wrap"})),s6e=()=>x(a6e,{children:[l(i6e,{}),l("b",{children:"Maintenance Mode! "}),l("p",{children:"During maintenance mode, any changes made will not be saved and you may receive an error. We apologize for any inconvenience this may cause."})]}),l6e=()=>{const e=`${ri}:unleash-lastViewedProject`,[t,n]=m.useState(()=>rh(e));return m.useEffect(()=>{t&&td(e,t)},[t,e]),{lastViewed:t,setLastViewed:n}},c6e=()=>{const{lastViewed:e}=l6e(),{projects:t,loading:n}=ma(),r=pt(),o=m.useCallback(()=>t&&e?`/projects/${e}`:t&&!e&&t.length===1?`/projects/${t[0].id}`:"/projects",[e,t]),i=()=>{r(o(),{replace:!0})};return m.useEffect(()=>{i()},[o]),n?l(fh,{}):null},u6e=C("div")(()=>({"& ul":{margin:0}})),d6e=()=>{const{authDetails:e}=Dd(),{refetch:t}=It(),{user:n}=vi(),r=!!(e||n),{isOss:o,uiConfig:i}=It(),a=o()?bh.filter(s=>!s.enterprise):bh;return m.useEffect(()=>{r&&(n!=null&&n.id)&&t()},[e,n]),l(gP,{FallbackComponent:yP,children:l(KNe,{children:l(gP,{FallbackComponent:yP,children:l(HNe,{children:l(m.Suspense,{fallback:l(fh,{}),children:l(q,{condition:!r,show:l(fh,{}),elseShow:x(ve,{children:[l(q,{condition:!!(i!=null&&i.maintenanceMode),show:l(s6e,{})}),x(u6e,{children:[l(n6e,{}),x(Z$,{children:[a.map(s=>l(hf,{path:s.path,element:l(jNe,{isStandalone:s.isStandalone===!0,children:l(WNe,{route:s})})},s.path)),l(hf,{path:"/",element:l(c6e,{})}),l(hf,{path:"*",element:l(nB,{})})]}),l(fse,{openUrl:"http://feedback.unleash.run"}),l(r6e,{})]})]})})})})})})})},p6e=()=>{const{pathname:e}=Ro();return m.useEffect(()=>{f6e.some(t=>e.includes(t))||window.scrollTo(0,0)},[e]),null},f6e=["/admin/api","/admin/users","/admin/auth","/admin/roles"],h6e=({children:e})=>{const{permissions:t}=V2(),n=m.useMemo(()=>({isAdmin:m6e(t),hasAccess:g6e.bind(null,t)}),[t]);return l(_o.Provider,{value:n,children:e})},m6e=e=>e?e.some(t=>t.permission===yi):!1,g6e=(e,t,n,r)=>{if(!e)return!1;const o=Array.isArray(t)?t:[t];return e.some(i=>o.some(a=>v6e(i,a,n,r)))},v6e=(e,t,n,r)=>t?e.permission===yi&&t!==w9||e.permission===t&&(e.project===n||e.project==="*")&&(!e.environment||e.environment===r||e.environment==="*")?!0:e.permission===t&&!e.project&&!e.environment:(console.warn(`Missing permission for AccessProvider: ${t}`),!1),y6e=C("div")(({theme:e})=>({display:"flex",gap:e.spacing(2),alignItems:"center",margin:"0 auto"})),eO=C("span")(({theme:e})=>({width:"6.25rem",whiteSpace:"nowrap",color:e.palette.text.secondary,"&:first-of-type":{textAlign:"right"},[e.breakpoints.down("sm")]:{display:"none"}})),b6e=C("label")(({theme:e})=>({"& input":{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:1,height:1},"& span":{display:"grid",justifyContent:"center",alignItems:"center",background:e.palette.divider,width:"3rem",height:"3rem",borderRadius:"10rem",fontSize:"1.25rem",paddingBottom:2,userSelect:"none",cursor:"pointer"},"& input:checked + span":{fontWeight:e.fontWeight.bold,background:e.palette.primary.main,color:e.palette.primary.contrastText},"& input:focus-visible + span":{outline:"2px solid",outlineOffset:2,outlineColor:e.palette.primary.main}})),w6e=({form:e,setForm:t})=>{const n=r=>{t(Ri(o=>{o.score=Number(r.target.value)}))};return x(y6e,{children:[l(eO,{children:"Very difficult"}),[1,2,3,4,5,6,7].map(r=>x(b6e,{children:[l("input",{type:"radio",name:"score",value:r,checked:e.score===r,onChange:n}),l("span",{children:r})]},r)),l(eO,{children:"Very easy"})]})},S6e=async e=>{if(!e.score)return;const t={source:"app:segments",data:{score:e.score,comment:e.comment,currentPage:e.path,openedManually:!1,customerType:"paying"}};await fetch("https://europe-west3-metrics-304612.cloudfunctions.net/docs-app-feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})},x6e=C("div")(({theme:e})=>({fontWeight:e.fontWeight.thin})),C6e=C("h1")(({theme:e})=>({all:"unset",display:"block",textAlign:"center",color:e.palette.text.secondary})),E6e=C("form")(({theme:e})=>({display:"grid",gap:e.spacing(6),gridTemplateColumns:"minmax(auto, 40rem)",justifyContent:"center"})),T6e=C("p")(({theme:e})=>({all:"unset",display:"block",marginTop:e.spacing(5),fontSize:e.spacing(3),textAlign:"center"})),k6e=C("label")(({theme:e})=>({display:"block",marginBottom:e.spacing(1)})),A6e=({state:e,onClose:t})=>{const[n,r]=m.useState(!1),{setToastData:o}=$t(),[i,a]=m.useState({path:e.path}),s=u=>{a(Ri(d=>{d.comment=u.target.value}))};return x(x6e,{children:[l(C6e,{children:"Please help us improve"}),x(E6e,{onSubmit:async u=>{if(u.preventDefault(),!n)try{r(!0),await S6e(i),o({type:"success",title:"Feedback sent. Thank you!",confetti:!0}),t()}finally{r(!1)}},"aria-live":"polite",children:[l(T6e,{children:e.title}),l(w6e,{form:i,setForm:a}),x("div",{hidden:!i.score,children:[l(k6e,{htmlFor:"comment",children:e.text}),l(pn,{value:i.comment??"",onChange:s,multiline:!0,rows:3,variant:"outlined",fullWidth:!0})]}),l($e,{hidden:!i.score,sx:{textAlign:"center"},children:l(Ve,{type:"submit",color:"primary",variant:"contained",sx:{minWidth:"15rem"},disabled:!i.score||n,children:"Send feedback"})})]})]})},R6e=C("div")(({theme:e})=>({pointerEvents:"none",display:"grid",padding:e.spacing(2),overflowY:"auto",alignItems:"center",justifyContent:"center",height:"100vh",width:"100vw"})),_6e=C("div")(({theme:e})=>({pointerEvents:"auto",position:"relative",padding:e.spacing(8),background:e.palette.background.paper,boxShadow:e.boxShadows.popup,borderRadius:e.spacing(2),[e.breakpoints.down("md")]:{padding:e.spacing(4)}})),P6e=C("div")({all:"unset",position:"absolute",top:0,right:0}),I6e=C(OL)(({theme:e})=>({fontSize:"1.5rem",color:e.palette.action.active})),O6e=({state:e})=>{const{hideFeedbackCES:t}=m.useContext(XT),n=e&&l(A6e,{state:e,onClose:t});return l(Fh,{open:!!e,onClose:t,"aria-label":e==null?void 0:e.title,children:l(R6e,{children:x(_6e,{children:[l(P6e,{children:l(jt,{onClick:t,size:"large",children:l(I6e,{titleAccess:"Close"})})}),n]})})})},$6e=()=>{const{createFeedback:e}=yL(),{feedback:t}=f2(),n=m.useCallback(o=>!!t&&t.some(i=>i.feedbackId===tO(o)),[t]),r=m.useCallback(o=>e({feedbackId:tO(o)}),[e]);return{isSeen:n,setSeen:r}},tO=e=>`ces${e.path}`,N6e=(e=window.location.hostname)=>e==="localhost",L6e=(e=window.location.hostname)=>e.endsWith(".getunleash.io")||e.endsWith(".unleash-hosted.com"),D6e=(e=window.location.hostname)=>e.endsWith(".vercel.app"),M6e=()=>L6e()||D6e()||N6e(),B6e=({children:e})=>{const[t,n]=m.useState(),{isSeen:r,setSeen:o}=$6e(),i=M6e();m.useEffect(()=>{t&&o(t)},[t,o]);const a=m.useCallback(u=>{n(d=>{const p=u instanceof Function?u(d):u;return!i||!p||r(p)?void 0:p})},[i,r]),s=m.useCallback(()=>{n(void 0)},[n]),c=m.useMemo(()=>({showFeedbackCES:a,hideFeedbackCES:s}),[a,s]);return x(XT.Provider,{value:c,children:[e,l(O6e,{state:t})]})},F6e=C("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",zIndex:-1,width:1,height:1,margin:-1,padding:0,overflow:"hidden"}),z6e=({announcement:e})=>l(F6e,{role:"status","aria-live":"polite","aria-atomic":!0,"data-testid":uae,children:e}),j6e=({children:e})=>{const[t,n]=m.useState(),r=m.useMemo(()=>({setAnnouncement:n}),[n]);return x(I2.Provider,{value:r,children:[e,l(z6e,{announcement:t})]})};var Ss=(e=>(e.UNASSIGNED="UNASSIGNED",e.TRIAL="TRIAL",e.ACTIVE="ACTIVE",e.EXPIRED="EXPIRED",e.CHURNED="CHURNED",e))(Ss||{}),nl=(e=>(e.PRO="Pro",e.COMPANY="Company",e.TEAM="Team",e.ENTERPRISE="Enterprise",e.UNKNOWN="Unknown",e))(nl||{});const U6e=(e,t,n)=>{const{data:r,error:o,mutate:i}=Pn(e,t,n),a=m.useCallback(()=>{i().catch(console.warn)},[i]);return{data:r,error:o,refetch:a,loading:!o&&!r}},W6e=()=>{const{uiConfig:e}=It(),{flags:{UNLEASH_CLOUD:t}}=e,{data:n,refetch:r,loading:o,error:i}=U6e(["useInstanceStatus",t],()=>H6e(t)),a=[nl.PRO,nl.COMPANY,nl.TEAM];return{instanceStatus:n,refetchInstanceStatus:r,refresh:async()=>{await fetch(Rt("api/instance/refresh"))},isBilling:a.includes((n==null?void 0:n.plan)??nl.UNKNOWN),loading:o,error:i}},H6e=async e=>{if(!e)return nO;const t=await fetch(Rt("api/instance/status"));return t.ok?t.json():nO},nO={plan:nl.UNKNOWN},V6e=10,G6e=e=>(e==null?void 0:e.state)===Ss.TRIAL||(e==null?void 0:e.state)===Ss.EXPIRED||(e==null?void 0:e.state)===Ss.CHURNED,o8=e=>(e==null?void 0:e.state)===Ss.EXPIRED||(e==null?void 0:e.state)===Ss.CHURNED?!0:(e==null?void 0:e.state)===Ss.TRIAL&&(e!=null&&e.trialExpiry)?ede(Gh(e.trialExpiry)):!1,q6e=e=>!e||e.state!==Ss.TRIAL||!e.trialExpiry?!1:rL(Gh(e.trialExpiry),new Date)<=V6e,rO=e=>!!(e&&e.state===Ss.EXPIRED&&!e.trialExtended),Y6e=C("aside")(({theme:e})=>({position:"relative",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center",padding:e.spacing(1),gap:e.spacing(1),borderBottom:"1px solid",borderColor:e.palette.warning.border,background:e.palette.warning.light,color:e.palette.warning.dark})),i8=C("aside")(({theme:e})=>({position:"relative",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center",padding:e.spacing(1),gap:e.spacing(1),borderBottom:"1px solid",borderColor:e.palette.info.border,background:e.palette.info.light,color:e.palette.info.dark})),K6e=C(Ve)(({theme:e})=>({whiteSpace:"nowrap",minWidth:"8rem",marginLeft:e.spacing(2)})),X6e=C(UL)(({theme:e})=>({color:e.palette.warning.main})),a8=C(xf)(({theme:e})=>({color:e.palette.info.main})),J6e=({instanceStatus:e})=>o8(e)?l(Q6e,{instanceStatus:e}):q6e(e)?l(Z6e,{instanceStatus:e}):G6e(e)?l(eLe,{instanceStatus:e}):null,Q6e=({instanceStatus:e})=>x(Y6e,{"data-testid":a2,children:[l(X6e,{}),x(se,{sx:t=>({fontSize:t.fontSizes.smallBody}),children:[l("strong",{children:"Warning!"})," Your free ",e.plan," trial has expired. ",l("strong",{children:"Upgrade trial"})," otherwise your"," ",l("strong",{children:"account will be deleted."})]}),l(xk,{instanceStatus:e})]}),Z6e=({instanceStatus:e})=>{const t=Zue(Gh(e.trialExpiry),{roundingMethod:"floor"});return x(i8,{"data-testid":a2,children:[l(a8,{}),x(se,{sx:n=>({fontSize:n.fontSizes.smallBody}),children:[l("strong",{children:"Heads up!"})," You have"," ",l("strong",{children:t})," left of your free"," ",e.plan," trial."]}),l(xk,{instanceStatus:e})]})},eLe=({instanceStatus:e})=>x(i8,{"data-testid":a2,children:[l(a8,{}),x(se,{sx:t=>({fontSize:t.fontSizes.smallBody}),children:[l("strong",{children:"Heads up!"})," You're currently on a free"," ",e.plan," trial account."]}),l(xk,{instanceStatus:e})]}),xk=({instanceStatus:e})=>{const{hasAccess:t}=m.useContext(_o),n=pt();return!t(yi)||e.plan===nl.ENTERPRISE?null:l(K6e,{onClick:()=>n("/admin/billing"),variant:"outlined",children:"Upgrade trial"})},tLe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Vn({propagateErrors:!0});return{extendTrial:async()=>{const a=t("api/instance/extend",{method:"POST"},"extendTrial");await e(a.caller,a.id)},loading:r,errors:n}},nLe=({instanceStatus:e,onExtendTrial:t})=>{const{hasAccess:n}=m.useContext(_o),r=pt(),o=o8(e),[i,a]=m.useState(o),s=(c,u)=>{u||(a(!1),rO(e)&&t().catch(console.error))};return m.useEffect(()=>{a(o);const c=setInterval(()=>{a(o)},6e4);return()=>clearInterval(c)},[o]),e.plan===nl.ENTERPRISE?l(vr,{open:i,secondaryButtonText:"Remind me later",onClose:()=>{a(!1)},title:`Your free ${e.plan} trial has expired!`,children:x(se,{children:["Please contact your Unleash sales representative to avoid"," ",l("strong",{children:"deletion of your Unleash account."})]})}):n(yi)?l(vr,{open:i,primaryButtonText:"Upgrade trial",secondaryButtonText:rO(e)?"Extend trial (5 days)":"Remind me later",onClick:()=>{r("/admin/billing"),a(!1)},onClose:s,title:`Your free ${e.plan} trial has expired!`,children:x(se,{children:[l("strong",{children:"Upgrade trial"})," otherwise your"," ",l("strong",{children:"account will be deleted."})]})}):l(vr,{open:i,secondaryButtonText:"Remind me later",onClose:()=>{a(!1)},title:`Your free ${e.plan} trial has expired!`,children:x(se,{children:["Please inform your admin to ",l("strong",{children:"Upgrade trial"})," or your ",l("strong",{children:"account will be deleted."})]})})},rLe=({children:e})=>{const{instanceStatus:t,refetchInstanceStatus:n}=W6e(),{extendTrial:r}=tLe(),{setToastApiError:o}=$t(),i=async()=>{try{await r(),await n()}catch(a){o(gt(a))}};return x(ve,{children:[l(q,{condition:!!t,show:()=>x(ve,{children:[l(oLe,{instanceStatus:t}),l(nLe,{instanceStatus:t,onExtendTrial:i})]})}),e]})},oLe=Ce.memo(J6e),iLe=()=>{const e=rh("unleash-theme");return e||(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")},aLe=({children:e})=>{const[t,n]=m.useState(B6()),[r,o]=m.useState(!1),[i,a]=m.useState(iLe()),s=Ce.useMemo(()=>({setToast:n,toastData:t,showFeedback:r,setShowFeedback:o,themeMode:i,setThemeMode:a}),[t,r,i]);return l(Il.Provider,{value:s,children:e})},sLe=({children:e})=>{const{uiConfig:t}=It();return t.flags?l(aLe,{children:e}):null},oO=["http","https","mailto","tel"];function lLe(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let o=-1;for(;++o<oO.length;){const i=oO[o];if(r===i.length&&t.slice(0,i.length).toLowerCase()===i)return t}return o=t.indexOf("?"),o!==-1&&r>o||(o=t.indexOf("#"),o!==-1&&r>o)?t:"javascript:void(0)"}/*!
436
+ * Determine if an object is a Buffer
437
+ *
438
+ * @author Feross Aboukhadijeh <https://feross.org>
439
+ * @license MIT
440
+ */var cLe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const s8=Yr(cLe);function Rf(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?iO(e.position):"start"in e||"end"in e?iO(e):"line"in e||"column"in e?Kx(e):""}function Kx(e){return aO(e&&e.line)+":"+aO(e&&e.column)}function iO(e){return Kx(e&&e.start)+"-"+Kx(e&&e.end)}function aO(e){return e&&typeof e=="number"?e:1}class Xi extends Error{constructor(t,n,r){const o=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const a=r.indexOf(":");a===-1?o[1]=r:(o[0]=r.slice(0,a),o[1]=r.slice(a+1))}n&&("type"in n||"position"in n?n.position&&(i=n.position):"start"in n||"end"in n?i=n:("line"in n||"column"in n)&&(i.start=n)),this.name=Rf(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=o[0],this.ruleId=o[1],this.file,this.actual,this.expected,this.url,this.note}}Xi.prototype.file="";Xi.prototype.name="";Xi.prototype.reason="";Xi.prototype.message="";Xi.prototype.stack="";Xi.prototype.fatal=null;Xi.prototype.column=null;Xi.prototype.line=null;Xi.prototype.source=null;Xi.prototype.ruleId=null;Xi.prototype.position=null;const xa={basename:uLe,dirname:dLe,extname:pLe,join:fLe,sep:"/"};function uLe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');pm(e);let n=0,r=-1,o=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.charCodeAt(o)===47){if(i){n=o+1;break}}else r<0&&(i=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(e.charCodeAt(o)===47){if(i){n=o+1;break}}else a<0&&(i=!0,a=o+1),s>-1&&(e.charCodeAt(o)===t.charCodeAt(s--)?s<0&&(r=o):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function dLe(e){if(pm(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function pLe(e){pm(e);let t=e.length,n=-1,r=0,o=-1,i=0,a;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?o<0?o=t:i!==1&&(i=1):o>-1&&(i=-1)}return o<0||n<0||i===0||i===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function fLe(...e){let t=-1,n;for(;++t<e.length;)pm(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":hLe(n)}function hLe(e){pm(e);const t=e.charCodeAt(0)===47;let n=mLe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function mLe(e,t){let n="",r=0,o=-1,i=0,a=-1,s,c;for(;++a<=e.length;){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(o===a-1||i===1))if(o!==a-1&&i===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),o=a,i=0;continue}}else if(n.length>0){n="",r=0,o=a,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,a):n=e.slice(o+1,a),r=a-o-1;o=a,i=0}else s===46&&i>-1?i++:i=-1}return n}function pm(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const gLe={cwd:vLe};function vLe(){return"/"}function Xx(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function yLe(e){if(typeof e=="string")e=new URL(e);else if(!Xx(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return bLe(e)}function bLe(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.charCodeAt(n)===37&&t.charCodeAt(n+1)===50){const r=t.charCodeAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const Fw=["history","path","basename","stem","extname","dirname"];class l8{constructor(t){let n;t?typeof t=="string"||wLe(t)?n={value:t}:Xx(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=gLe.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<Fw.length;){const i=Fw[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let o;for(o in n)Fw.includes(o)||(this[o]=n[o])}get path(){return this.history[this.history.length-1]}set path(t){Xx(t)&&(t=yLe(t)),jw(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?xa.dirname(this.path):void 0}set dirname(t){sO(this.basename,"dirname"),this.path=xa.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?xa.basename(this.path):void 0}set basename(t){jw(t,"basename"),zw(t,"basename"),this.path=xa.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?xa.extname(this.path):void 0}set extname(t){if(zw(t,"extname"),sO(this.dirname,"extname"),t){if(t.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=xa.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?xa.basename(this.path,this.extname):void 0}set stem(t){jw(t,"stem"),zw(t,"stem"),this.path=xa.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const o=new Xi(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=null,o}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}}function zw(e,t){if(e&&e.includes(xa.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+xa.sep+"`")}function jw(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function sO(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function wLe(e){return s8(e)}function lO(e){if(e)throw e}var Yg=Object.prototype.hasOwnProperty,c8=Object.prototype.toString,cO=Object.defineProperty,uO=Object.getOwnPropertyDescriptor,dO=function(t){return typeof Array.isArray=="function"?Array.isArray(t):c8.call(t)==="[object Array]"},pO=function(t){if(!t||c8.call(t)!=="[object Object]")return!1;var n=Yg.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Yg.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var o;for(o in t);return typeof o>"u"||Yg.call(t,o)},fO=function(t,n){cO&&n.name==="__proto__"?cO(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},hO=function(t,n){if(n==="__proto__")if(Yg.call(t,n)){if(uO)return uO(t,n).value}else return;return t[n]},SLe=function e(){var t,n,r,o,i,a,s=arguments[0],c=1,u=arguments.length,d=!1;for(typeof s=="boolean"&&(d=s,s=arguments[1]||{},c=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});c<u;++c)if(t=arguments[c],t!=null)for(n in t)r=hO(s,n),o=hO(t,n),s!==o&&(d&&o&&(pO(o)||(i=dO(o)))?(i?(i=!1,a=r&&dO(r)?r:[]):a=r&&pO(r)?r:{},fO(s,{name:n,newValue:e(d,a,o)})):typeof o<"u"&&fO(s,{name:n,newValue:o}));return s};const mO=Yr(SLe);function Jx(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function xLe(){const e=[],t={run:n,use:r};return t;function n(...o){let i=-1;const a=o.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...o);function s(c,...u){const d=e[++i];let p=-1;if(c){a(c);return}for(;++p<o.length;)(u[p]===null||u[p]===void 0)&&(u[p]=o[p]);o=u,d?CLe(d,s)(...u):a(null,...u)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function CLe(e,t){let n;return r;function r(...a){const s=e.length>a.length;let c;s&&a.push(o);try{c=e.apply(this,a)}catch(u){const d=u;if(s&&n)throw d;return o(d)}s||(c instanceof Promise?c.then(i,o):c instanceof Error?o(c):i(c))}function o(a,...s){n||(n=!0,t(a,...s))}function i(a){o(null,a)}}const ELe=d8().freeze(),u8={}.hasOwnProperty;function d8(){const e=xLe(),t=[];let n={},r,o=-1;return i.data=a,i.Parser=void 0,i.Compiler=void 0,i.freeze=s,i.attachers=t,i.use=c,i.parse=u,i.stringify=d,i.run=p,i.runSync=f,i.process=h,i.processSync=g,i;function i(){const v=d8();let b=-1;for(;++b<t.length;)v.use(...t[b]);return v.data(mO(!0,{},n)),v}function a(v,b){return typeof v=="string"?arguments.length===2?(Hw("data",r),n[v]=b,i):u8.call(n,v)&&n[v]||null:v?(Hw("data",r),n=v,i):n}function s(){if(r)return i;for(;++o<t.length;){const[v,...b]=t[o];if(b[0]===!1)continue;b[0]===!0&&(b[0]=void 0);const y=v.call(i,...b);typeof y=="function"&&e.use(y)}return r=!0,o=Number.POSITIVE_INFINITY,i}function c(v,...b){let y;if(Hw("use",r),v!=null)if(typeof v=="function")A(v,...b);else if(typeof v=="object")Array.isArray(v)?k(v):S(v);else throw new TypeError("Expected usable value, not `"+v+"`");return y&&(n.settings=Object.assign(n.settings||{},y)),i;function w(T){if(typeof T=="function")A(T);else if(typeof T=="object")if(Array.isArray(T)){const[R,...P]=T;A(R,...P)}else S(T);else throw new TypeError("Expected usable value, not `"+T+"`")}function S(T){k(T.plugins),T.settings&&(y=Object.assign(y||{},T.settings))}function k(T){let R=-1;if(T!=null)if(Array.isArray(T))for(;++R<T.length;){const P=T[R];w(P)}else throw new TypeError("Expected a list of plugins, not `"+T+"`")}function A(T,R){let P=-1,_;for(;++P<t.length;)if(t[P][0]===T){_=t[P];break}_?(Jx(_[1])&&Jx(R)&&(R=mO(!0,_[1],R)),_[1]=R):t.push([...arguments])}}function u(v){i.freeze();const b=Wp(v),y=i.Parser;return Uw("parse",y),gO(y,"parse")?new y(String(b),b).parse():y(String(b),b)}function d(v,b){i.freeze();const y=Wp(b),w=i.Compiler;return Ww("stringify",w),vO(v),gO(w,"compile")?new w(v,y).compile():w(v,y)}function p(v,b,y){if(vO(v),i.freeze(),!y&&typeof b=="function"&&(y=b,b=void 0),!y)return new Promise(w);w(null,y);function w(S,k){e.run(v,Wp(b),A);function A(T,R,P){R=R||v,T?k(T):S?S(R):y(null,R,P)}}}function f(v,b){let y,w;return i.run(v,b,S),yO("runSync","run",w),y;function S(k,A){lO(k),y=A,w=!0}}function h(v,b){if(i.freeze(),Uw("process",i.Parser),Ww("process",i.Compiler),!b)return new Promise(y);y(null,b);function y(w,S){const k=Wp(v);i.run(i.parse(k),k,(T,R,P)=>{if(T||!R||!P)A(T);else{const _=i.stringify(R,P);_==null||(ALe(_)?P.value=_:P.result=_),A(T,P)}});function A(T,R){T||!R?S(T):w?w(R):b(null,R)}}}function g(v){let b;i.freeze(),Uw("processSync",i.Parser),Ww("processSync",i.Compiler);const y=Wp(v);return i.process(y,w),yO("processSync","process",b),y;function w(S){b=!0,lO(S)}}}function gO(e,t){return typeof e=="function"&&e.prototype&&(TLe(e.prototype)||t in e.prototype)}function TLe(e){let t;for(t in e)if(u8.call(e,t))return!0;return!1}function Uw(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function Ww(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Hw(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vO(e){if(!Jx(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function yO(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Wp(e){return kLe(e)?e:new l8(e)}function kLe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ALe(e){return typeof e=="string"||s8(e)}const RLe={};function _Le(e,t){const n=t||RLe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return p8(e,r,o)}function p8(e,t,n){if(PLe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return bO(e.children,t,n)}return Array.isArray(e)?bO(e,t,n):""}function bO(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=p8(e[o],t,n);return r.join("")}function PLe(e){return!!(e&&typeof e=="object")}function Ja(e,t,n,r){const o=e.length;let i=0,a;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),[].splice.apply(e,a);else for(n&&[].splice.apply(e,[t,n]);i<r.length;)a=r.slice(i,i+1e4),a.unshift(t,0),[].splice.apply(e,a),i+=1e4,t+=1e4}function Ci(e,t){return e.length>0?(Ja(e,e.length,0,t),e):t}const wO={}.hasOwnProperty;function ILe(e){const t={};let n=-1;for(;++n<e.length;)OLe(t,e[n]);return t}function OLe(e,t){let n;for(n in t){const o=(wO.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let a;for(a in i){wO.call(o,a)||(o[a]=[]);const s=i[a];$Le(o[a],Array.isArray(s)?s:s?[s]:[])}}}function $Le(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ja(e,0,0,r)}const NLe=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Pa=Nl(/[A-Za-z]/),Qx=Nl(/\d/),LLe=Nl(/[\dA-Fa-f]/),ii=Nl(/[\dA-Za-z]/),DLe=Nl(/[!-/:-@[-`{-~]/),SO=Nl(/[#-'*+\--9=?A-Z^-~]/);function Zx(e){return e!==null&&(e<32||e===127)}function Li(e){return e!==null&&(e<0||e===32)}function Mt(e){return e!==null&&e<-2}function Pr(e){return e===-2||e===-1||e===32}const MLe=Nl(/\s/),BLe=Nl(NLe);function Nl(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function Fn(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return a;function a(c){return Pr(c)?(e.enter(n),s(c)):t(c)}function s(c){return Pr(c)&&i++<o?(e.consume(c),s):(e.exit(n),t(c))}}const FLe={tokenize:zLe};function zLe(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Fn(e,t,"linePrefix")}function o(s){return e.enter("paragraph"),i(s)}function i(s){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Mt(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),a)}}const jLe={tokenize:ULe},xO={tokenize:WLe};function ULe(e){const t=this,n=[];let r=0,o,i,a;return s;function s(S){if(r<n.length){const k=n[r];return t.containerState=k[1],e.attempt(k[0].continuation,c,u)(S)}return u(S)}function c(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&w();const k=t.events.length;let A=k,T;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){T=t.events[A][1].end;break}y(r);let R=k;for(;R<t.events.length;)t.events[R][1].end=Object.assign({},T),R++;return Ja(t.events,A+1,0,t.events.slice(k)),t.events.length=R,u(S)}return s(S)}function u(S){if(r===n.length){if(!o)return f(S);if(o.currentConstruct&&o.currentConstruct.concrete)return g(S);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(xO,d,p)(S)}function d(S){return o&&w(),y(r),f(S)}function p(S){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,g(S)}function f(S){return t.containerState={},e.attempt(xO,h,g)(S)}function h(S){return r++,n.push([t.currentConstruct,t.containerState]),f(S)}function g(S){if(S===null){o&&w(),y(0),e.consume(S);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:o}),v(S)}function v(S){if(S===null){b(e.exit("chunkFlow"),!0),y(0),e.consume(S);return}return Mt(S)?(e.consume(S),b(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(S),v)}function b(S,k){const A=t.sliceStream(S);if(k&&A.push(null),S.previous=i,i&&(i.next=S),i=S,o.defineSkip(S.start),o.write(A),t.parser.lazy[S.start.line]){let T=o.events.length;for(;T--;)if(o.events[T][1].start.offset<a&&(!o.events[T][1].end||o.events[T][1].end.offset>a))return;const R=t.events.length;let P=R,_,O;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(_){O=t.events[P][1].end;break}_=!0}for(y(r),T=R;T<t.events.length;)t.events[T][1].end=Object.assign({},O),T++;Ja(t.events,P+1,0,t.events.slice(R)),t.events.length=T}}function y(S){let k=n.length;for(;k-- >S;){const A=n[k];t.containerState=A[1],A[0].exit.call(t,e)}n.length=S}function w(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function WLe(e,t,n){return Fn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function CO(e){if(e===null||Li(e)||MLe(e))return 1;if(BLe(e))return 2}function Ck(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const eC={name:"attention",tokenize:VLe,resolveAll:HLe};function HLe(e,t){let n=-1,r,o,i,a,s,c,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);EO(p,-c),EO(f,c),a={type:c>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},e[r][1].end)},s={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:c>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o={type:c>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Ci(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Ci(u,[["enter",o,t],["enter",a,t],["exit",a,t],["enter",i,t]]),u=Ci(u,Ck(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Ci(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=Ci(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Ja(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function VLe(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=CO(r);let i;return a;function a(c){return e.enter("attentionSequence"),i=c,s(c)}function s(c){if(c===i)return e.consume(c),s;const u=e.exit("attentionSequence"),d=CO(c),p=!d||d===2&&o||n.includes(c),f=!o||o===2&&d||n.includes(r);return u._open=!!(i===42?p:p&&(o||!f)),u._close=!!(i===42?f:f&&(d||!p)),t(c)}}function EO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const GLe={name:"autolink",tokenize:qLe};function qLe(e,t,n){let r=1;return o;function o(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(g){return Pa(g)?(e.consume(g),a):SO(g)?u(g):n(g)}function a(g){return g===43||g===45||g===46||ii(g)?s(g):u(g)}function s(g){return g===58?(e.consume(g),c):(g===43||g===45||g===46||ii(g))&&r++<32?(e.consume(g),s):u(g)}function c(g){return g===62?(e.exit("autolinkProtocol"),h(g)):g===null||g===32||g===60||Zx(g)?n(g):(e.consume(g),c)}function u(g){return g===64?(e.consume(g),r=0,d):SO(g)?(e.consume(g),u):n(g)}function d(g){return ii(g)?p(g):n(g)}function p(g){return g===46?(e.consume(g),r=0,d):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",h(g)):f(g)}function f(g){return(g===45||ii(g))&&r++<63?(e.consume(g),g===45?f:p):n(g)}function h(g){return e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t}}const x0={tokenize:YLe,partial:!0};function YLe(e,t,n){return Fn(e,r,"linePrefix");function r(o){return o===null||Mt(o)?t(o):n(o)}}const f8={name:"blockQuote",tokenize:KLe,continuation:{tokenize:XLe},exit:JLe};function KLe(e,t,n){const r=this;return o;function o(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),i}return n(a)}function i(a){return Pr(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function XLe(e,t,n){return Fn(e,e.attempt(f8,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function JLe(e){e.exit("blockQuote")}const h8={name:"characterEscape",tokenize:QLe};function QLe(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return DLe(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const TO=document.createElement("i");function Ek(e){const t="&"+e+";";TO.innerHTML=t;const n=TO.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const m8={name:"characterReference",tokenize:ZLe};function ZLe(e,t,n){const r=this;let o=0,i,a;return s;function s(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),c}function c(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,a=ii,d(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=LLe,d):(e.enter("characterReferenceValue"),i=7,a=Qx,d(p))}function d(p){let f;return p===59&&o?(f=e.exit("characterReferenceValue"),a===ii&&!Ek(r.sliceSerialize(f))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):a(p)&&o++<i?(e.consume(p),d):n(p)}}const kO={name:"codeFenced",tokenize:e9e,concrete:!0};function e9e(e,t,n){const r=this,o={tokenize:A,partial:!0},i={tokenize:k,partial:!0},a=this.events[this.events.length-1],s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let c=0,u;return d;function d(T){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u=T,p(T)}function p(T){return T===u?(e.consume(T),c++,p):(e.exit("codeFencedFenceSequence"),c<3?n(T):Fn(e,f,"whitespace")(T))}function f(T){return T===null||Mt(T)?b(T):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(T))}function h(T){return T===null||Li(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Fn(e,g,"whitespace")(T)):T===96&&T===u?n(T):(e.consume(T),h)}function g(T){return T===null||Mt(T)?b(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(T))}function v(T){return T===null||Mt(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),b(T)):T===96&&T===u?n(T):(e.consume(T),v)}function b(T){return e.exit("codeFencedFence"),r.interrupt?t(T):y(T)}function y(T){return T===null?S(T):Mt(T)?e.attempt(i,e.attempt(o,S,s?Fn(e,y,"linePrefix",s+1):y),S)(T):(e.enter("codeFlowValue"),w(T))}function w(T){return T===null||Mt(T)?(e.exit("codeFlowValue"),y(T)):(e.consume(T),w)}function S(T){return e.exit("codeFenced"),t(T)}function k(T,R,P){const _=this;return O;function O(z){return T.enter("lineEnding"),T.consume(z),T.exit("lineEnding"),$}function $(z){return _.parser.lazy[_.now().line]?P(z):R(z)}}function A(T,R,P){let _=0;return Fn(T,O,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function O(L){return T.enter("codeFencedFence"),T.enter("codeFencedFenceSequence"),$(L)}function $(L){return L===u?(T.consume(L),_++,$):_<c?P(L):(T.exit("codeFencedFenceSequence"),Fn(T,z,"whitespace")(L))}function z(L){return L===null||Mt(L)?(T.exit("codeFencedFence"),R(L)):P(L)}}}const Vw={name:"codeIndented",tokenize:n9e},t9e={tokenize:r9e,partial:!0};function n9e(e,t,n){const r=this;return o;function o(u){return e.enter("codeIndented"),Fn(e,i,"linePrefix",4+1)(u)}function i(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?c(u):Mt(u)?e.attempt(t9e,a,c)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Mt(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function c(u){return e.exit("codeIndented"),t(u)}}function r9e(e,t,n){const r=this;return o;function o(a){return r.parser.lazy[r.now().line]?n(a):Mt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):Fn(e,i,"linePrefix",4+1)(a)}function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):Mt(a)?o(a):n(a)}}const o9e={name:"codeText",tokenize:s9e,resolve:i9e,previous:a9e};function i9e(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function a9e(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function s9e(e,t,n){let r=0,o,i;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),s(p)}function s(p){return p===96?(e.consume(p),r++,s):(e.exit("codeTextSequence"),c(p))}function c(p){return p===null?n(p):p===96?(i=e.enter("codeTextSequence"),o=0,d(p)):p===32?(e.enter("space"),e.consume(p),e.exit("space"),c):Mt(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||Mt(p)?(e.exit("codeTextData"),c(p)):(e.consume(p),u)}function d(p){return p===96?(e.consume(p),o++,d):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(i.type="codeTextData",u(p))}}function g8(e){const t={};let n=-1,r,o,i,a,s,c,u;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,i=0,i<c.length&&c[i][1].type==="lineEndingBlank"&&(i+=2),i<c.length&&c[i][1].type==="content"))for(;++i<c.length&&c[i][1].type!=="content";)c[i][1].type==="chunkText"&&(c[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,l9e(e,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,o=void 0;i--&&(a=e[i],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(o&&(e[o][1].type="lineEndingBlank"),a[1].type="lineEnding",o=i);o&&(r[1].end=Object.assign({},e[o][1].start),s=e.slice(o,n),s.unshift(r),Ja(e,o,n-o+1,s))}}return!u}function l9e(e,t){const n=e[t][1],r=e[t][2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,c=[],u={};let d,p,f=-1,h=n,g=0,v=0;const b=[v];for(;h;){for(;e[++o][1]!==h;);i.push(o),h._tokenizer||(d=r.sliceStream(h),h.next||d.push(null),p&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(d),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),p=h,h=h.next}for(h=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(v=f+1,b.push(v),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):b.pop(),f=b.length;f--;){const y=s.slice(b[f],b[f+1]),w=i.pop();c.unshift([w,w+y.length-1]),Ja(e,w,2,y)}for(f=-1;++f<c.length;)u[g+c[f][0]]=g+c[f][1],g+=c[f][1]-c[f][0]-1;return u}const c9e={tokenize:p9e,resolve:d9e},u9e={tokenize:f9e,partial:!0};function d9e(e){return g8(e),e}function p9e(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(s)}function o(s){return s===null?i(s):Mt(s)?e.check(u9e,a,i)(s):(e.consume(s),o)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function f9e(e,t,n){const r=this;return o;function o(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Fn(e,i,"linePrefix")}function i(a){if(a===null||Mt(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function v8(e,t,n,r,o,i,a,s,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return p;function p(y){return y===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(y),e.exit(i),f):y===null||y===41||Zx(y)?n(y):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(y))}function f(y){return y===62?(e.enter(i),e.consume(y),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(s),f(y)):y===null||y===60||Mt(y)?n(y):(e.consume(y),y===92?g:h)}function g(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function v(y){return y===40?++d>u?n(y):(e.consume(y),v):y===41?d--?(e.consume(y),v):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):y===null||Li(y)?d?n(y):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):Zx(y)?n(y):(e.consume(y),y===92?b:v)}function b(y){return y===40||y===41||y===92?(e.consume(y),v):v(y)}}function y8(e,t,n,r,o,i){const a=this;let s=0,c;return u;function u(h){return e.enter(r),e.enter(o),e.consume(h),e.exit(o),e.enter(i),d}function d(h){return h===null||h===91||h===93&&!c||h===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs||s>999?n(h):h===93?(e.exit(i),e.enter(o),e.consume(h),e.exit(o),e.exit(r),t):Mt(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===null||h===91||h===93||Mt(h)||s++>999?(e.exit("chunkString"),d(h)):(e.consume(h),c=c||!Pr(h),h===92?f:p)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,p):p(h)}}function b8(e,t,n,r,o,i){let a;return s;function s(f){return e.enter(r),e.enter(o),e.consume(f),e.exit(o),a=f===40?41:f,c}function c(f){return f===a?(e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===a?(e.exit(i),c(a)):f===null?n(f):Mt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Fn(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===a||f===null||Mt(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?p:d)}function p(f){return f===a||f===92?(e.consume(f),d):d(f)}}function _f(e,t){let n;return r;function r(o){return Mt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Pr(o)?Fn(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function Uu(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const h9e={name:"definition",tokenize:g9e},m9e={tokenize:v9e,partial:!0};function g9e(e,t,n){const r=this;let o;return i;function i(c){return e.enter("definition"),y8.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(c)}function a(c){return o=Uu(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),c===58?(e.enter("definitionMarker"),e.consume(c),e.exit("definitionMarker"),_f(e,v8(e,e.attempt(m9e,Fn(e,s,"whitespace"),Fn(e,s,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(c)}function s(c){return c===null||Mt(c)?(e.exit("definition"),r.parser.defined.includes(o)||r.parser.defined.push(o),t(c)):n(c)}}function v9e(e,t,n){return r;function r(a){return Li(a)?_f(e,o)(a):n(a)}function o(a){return a===34||a===39||a===40?b8(e,Fn(e,i,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a):n(a)}function i(a){return a===null||Mt(a)?t(a):n(a)}}const y9e={name:"hardBreakEscape",tokenize:b9e};function b9e(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(i),o}function o(i){return Mt(i)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(i)):n(i)}}const w9e={name:"headingAtx",tokenize:x9e,resolve:S9e};function S9e(e,t){let n=e.length-2,r=3,o,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ja(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function x9e(e,t,n){const r=this;let o=0;return i;function i(d){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),a(d)}function a(d){return d===35&&o++<6?(e.consume(d),a):d===null||Li(d)?(e.exit("atxHeadingSequence"),r.interrupt?t(d):s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||Mt(d)?(e.exit("atxHeading"),t(d)):Pr(d)?Fn(e,s,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),s(d))}function u(d){return d===null||d===35||Li(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),u)}}const C9e=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],AO=["pre","script","style","textarea"],E9e={name:"htmlFlow",tokenize:A9e,resolveTo:k9e,concrete:!0},T9e={tokenize:R9e,partial:!0};function k9e(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function A9e(e,t,n){const r=this;let o,i,a,s,c;return u;function u(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),d}function d(M){return M===33?(e.consume(M),p):M===47?(e.consume(M),g):M===63?(e.consume(M),o=3,r.interrupt?t:W):Pa(M)?(e.consume(M),a=String.fromCharCode(M),i=!0,v):n(M)}function p(M){return M===45?(e.consume(M),o=2,f):M===91?(e.consume(M),o=5,a="CDATA[",s=0,h):Pa(M)?(e.consume(M),o=4,r.interrupt?t:W):n(M)}function f(M){return M===45?(e.consume(M),r.interrupt?t:W):n(M)}function h(M){return M===a.charCodeAt(s++)?(e.consume(M),s===a.length?r.interrupt?t:$:h):n(M)}function g(M){return Pa(M)?(e.consume(M),a=String.fromCharCode(M),v):n(M)}function v(M){return M===null||M===47||M===62||Li(M)?M!==47&&i&&AO.includes(a.toLowerCase())?(o=1,r.interrupt?t(M):$(M)):C9e.includes(a.toLowerCase())?(o=6,M===47?(e.consume(M),b):r.interrupt?t(M):$(M)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(M):i?w(M):y(M)):M===45||ii(M)?(e.consume(M),a+=String.fromCharCode(M),v):n(M)}function b(M){return M===62?(e.consume(M),r.interrupt?t:$):n(M)}function y(M){return Pr(M)?(e.consume(M),y):_(M)}function w(M){return M===47?(e.consume(M),_):M===58||M===95||Pa(M)?(e.consume(M),S):Pr(M)?(e.consume(M),w):_(M)}function S(M){return M===45||M===46||M===58||M===95||ii(M)?(e.consume(M),S):k(M)}function k(M){return M===61?(e.consume(M),A):Pr(M)?(e.consume(M),k):w(M)}function A(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),c=M,T):Pr(M)?(e.consume(M),A):(c=null,R(M))}function T(M){return M===null||Mt(M)?n(M):M===c?(e.consume(M),P):(e.consume(M),T)}function R(M){return M===null||M===34||M===39||M===60||M===61||M===62||M===96||Li(M)?k(M):(e.consume(M),R)}function P(M){return M===47||M===62||Pr(M)?w(M):n(M)}function _(M){return M===62?(e.consume(M),O):n(M)}function O(M){return Pr(M)?(e.consume(M),O):M===null||Mt(M)?$(M):n(M)}function $(M){return M===45&&o===2?(e.consume(M),Y):M===60&&o===1?(e.consume(M),H):M===62&&o===4?(e.consume(M),j):M===63&&o===3?(e.consume(M),W):M===93&&o===5?(e.consume(M),V):Mt(M)&&(o===6||o===7)?e.check(T9e,j,z)(M):M===null||Mt(M)?z(M):(e.consume(M),$)}function z(M){return e.exit("htmlFlowData"),L(M)}function L(M){return M===null?I(M):Mt(M)?e.attempt({tokenize:B,partial:!0},L,I)(M):(e.enter("htmlFlowData"),$(M))}function B(M,J,ae){return Te;function Te(Ie){return M.enter("lineEnding"),M.consume(Ie),M.exit("lineEnding"),he}function he(Ie){return r.parser.lazy[r.now().line]?ae(Ie):J(Ie)}}function Y(M){return M===45?(e.consume(M),W):$(M)}function H(M){return M===47?(e.consume(M),a="",ee):$(M)}function ee(M){return M===62&&AO.includes(a.toLowerCase())?(e.consume(M),j):Pa(M)&&a.length<8?(e.consume(M),a+=String.fromCharCode(M),ee):$(M)}function V(M){return M===93?(e.consume(M),W):$(M)}function W(M){return M===62?(e.consume(M),j):M===45&&o===2?(e.consume(M),W):$(M)}function j(M){return M===null||Mt(M)?(e.exit("htmlFlowData"),I(M)):(e.consume(M),j)}function I(M){return e.exit("htmlFlow"),t(M)}}function R9e(e,t,n){return r;function r(o){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),e.attempt(x0,t,n)}}const _9e={name:"htmlText",tokenize:P9e};function P9e(e,t,n){const r=this;let o,i,a,s;return c;function c(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),u}function u(I){return I===33?(e.consume(I),d):I===47?(e.consume(I),R):I===63?(e.consume(I),A):Pa(I)?(e.consume(I),O):n(I)}function d(I){return I===45?(e.consume(I),p):I===91?(e.consume(I),i="CDATA[",a=0,b):Pa(I)?(e.consume(I),k):n(I)}function p(I){return I===45?(e.consume(I),f):n(I)}function f(I){return I===null||I===62?n(I):I===45?(e.consume(I),h):g(I)}function h(I){return I===null||I===62?n(I):g(I)}function g(I){return I===null?n(I):I===45?(e.consume(I),v):Mt(I)?(s=g,V(I)):(e.consume(I),g)}function v(I){return I===45?(e.consume(I),j):g(I)}function b(I){return I===i.charCodeAt(a++)?(e.consume(I),a===i.length?y:b):n(I)}function y(I){return I===null?n(I):I===93?(e.consume(I),w):Mt(I)?(s=y,V(I)):(e.consume(I),y)}function w(I){return I===93?(e.consume(I),S):y(I)}function S(I){return I===62?j(I):I===93?(e.consume(I),S):y(I)}function k(I){return I===null||I===62?j(I):Mt(I)?(s=k,V(I)):(e.consume(I),k)}function A(I){return I===null?n(I):I===63?(e.consume(I),T):Mt(I)?(s=A,V(I)):(e.consume(I),A)}function T(I){return I===62?j(I):A(I)}function R(I){return Pa(I)?(e.consume(I),P):n(I)}function P(I){return I===45||ii(I)?(e.consume(I),P):_(I)}function _(I){return Mt(I)?(s=_,V(I)):Pr(I)?(e.consume(I),_):j(I)}function O(I){return I===45||ii(I)?(e.consume(I),O):I===47||I===62||Li(I)?$(I):n(I)}function $(I){return I===47?(e.consume(I),j):I===58||I===95||Pa(I)?(e.consume(I),z):Mt(I)?(s=$,V(I)):Pr(I)?(e.consume(I),$):j(I)}function z(I){return I===45||I===46||I===58||I===95||ii(I)?(e.consume(I),z):L(I)}function L(I){return I===61?(e.consume(I),B):Mt(I)?(s=L,V(I)):Pr(I)?(e.consume(I),L):$(I)}function B(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),o=I,Y):Mt(I)?(s=B,V(I)):Pr(I)?(e.consume(I),B):(e.consume(I),o=void 0,ee)}function Y(I){return I===o?(e.consume(I),H):I===null?n(I):Mt(I)?(s=Y,V(I)):(e.consume(I),Y)}function H(I){return I===62||I===47||Li(I)?$(I):n(I)}function ee(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===62||Li(I)?$(I):(e.consume(I),ee)}function V(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),Fn(e,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function W(I){return e.enter("htmlTextData"),s(I)}function j(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}}const Tk={name:"labelEnd",tokenize:D9e,resolveTo:L9e,resolveAll:N9e},I9e={tokenize:M9e},O9e={tokenize:B9e},$9e={tokenize:F9e};function N9e(e){let t=-1,n;for(;++t<e.length;)n=e[t][1],(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++);return e}function L9e(e,t){let n=e.length,r=0,o,i,a,s;for(;n--;)if(o=e[n][1],i){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(i=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(a=n);const c={type:e[i][1].type==="labelLink"?"link":"image",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[i][1].start),end:Object.assign({},e[a][1].end)},d={type:"labelText",start:Object.assign({},e[i+r+2][1].end),end:Object.assign({},e[a-2][1].start)};return s=[["enter",c,t],["enter",u,t]],s=Ci(s,e.slice(i+1,i+r+3)),s=Ci(s,[["enter",d,t]]),s=Ci(s,Ck(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),s=Ci(s,[["exit",d,t],e[a-2],e[a-1],["exit",u,t]]),s=Ci(s,e.slice(a+1)),s=Ci(s,[["exit",c,t]]),Ja(e,i,e.length,s),e}function D9e(e,t,n){const r=this;let o=r.events.length,i,a;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){i=r.events[o][1];break}return s;function s(d){return i?i._inactive?u(d):(a=r.parser.defined.includes(Uu(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),c):n(d)}function c(d){return d===40?e.attempt(I9e,t,a?t:u)(d):d===91?e.attempt(O9e,t,a?e.attempt($9e,t,u):u)(d):a?t(d):u(d)}function u(d){return i._balanced=!0,n(d)}}function M9e(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),_f(e,o)}function o(c){return c===41?s(c):v8(e,i,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function i(c){return Li(c)?_f(e,a)(c):s(c)}function a(c){return c===34||c===39||c===40?b8(e,_f(e,s),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):s(c)}function s(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function B9e(e,t,n){const r=this;return o;function o(a){return y8.call(r,e,i,n,"reference","referenceMarker","referenceString")(a)}function i(a){return r.parser.defined.includes(Uu(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}}function F9e(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const z9e={name:"labelStartImage",tokenize:j9e,resolveAll:Tk.resolveAll};function j9e(e,t,n){const r=this;return o;function o(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const U9e={name:"labelStartLink",tokenize:W9e,resolveAll:Tk.resolveAll};function W9e(e,t,n){const r=this;return o;function o(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),i}function i(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Gw={name:"lineEnding",tokenize:H9e};function H9e(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Fn(e,t,"linePrefix")}}const Kg={name:"thematicBreak",tokenize:V9e};function V9e(e,t,n){let r=0,o;return i;function i(c){return e.enter("thematicBreak"),o=c,a(c)}function a(c){return c===o?(e.enter("thematicBreakSequence"),s(c)):Pr(c)?Fn(e,a,"whitespace")(c):r<3||c!==null&&!Mt(c)?n(c):(e.exit("thematicBreak"),t(c))}function s(c){return c===o?(e.consume(c),r++,s):(e.exit("thematicBreakSequence"),a(c))}}const Do={name:"list",tokenize:Y9e,continuation:{tokenize:K9e},exit:J9e},G9e={tokenize:Q9e,partial:!0},q9e={tokenize:X9e,partial:!0};function Y9e(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,a=0;return s;function s(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Qx(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Kg,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(h)}return n(h)}function c(h){return Qx(h)&&++a<10?(e.consume(h),c):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(x0,r.interrupt?n:d,e.attempt(G9e,f,p))}function d(h){return r.containerState.initialBlankLine=!0,i++,f(h)}function p(h){return Pr(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function K9e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(x0,o,i);function o(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Fn(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!Pr(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(q9e,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Fn(e,e.attempt(Do,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function X9e(e,t,n){const r=this;return Fn(e,o,"listItemIndent",r.containerState.size+1);function o(i){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(i):n(i)}}function J9e(e){e.exit(this.containerState.type)}function Q9e(e,t,n){const r=this;return Fn(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function o(i){const a=r.events[r.events.length-1];return!Pr(i)&&a&&a[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const RO={name:"setextUnderline",tokenize:eDe,resolveTo:Z9e};function Z9e(e,t){let n=e.length,r,o,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const a={type:"setextHeading",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function eDe(e,t,n){const r=this;let o=r.events.length,i,a;for(;o--;)if(r.events[o][1].type!=="lineEnding"&&r.events[o][1].type!=="linePrefix"&&r.events[o][1].type!=="content"){a=r.events[o][1].type==="paragraph";break}return s;function s(d){return!r.parser.lazy[r.now().line]&&(r.interrupt||a)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=d,c(d)):n(d)}function c(d){return d===i?(e.consume(d),c):(e.exit("setextHeadingLineSequence"),Fn(e,u,"lineSuffix")(d))}function u(d){return d===null||Mt(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const tDe={tokenize:nDe};function nDe(e){const t=this,n=e.attempt(x0,r,e.attempt(this.parser.constructs.flowInitial,o,Fn(e,e.attempt(this.parser.constructs.flow,o,e.attempt(c9e,o)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const rDe={resolveAll:S8()},oDe=w8("string"),iDe=w8("text");function w8(e){return{tokenize:t,resolveAll:S8(e==="text"?aDe:void 0)};function t(n){const r=this,o=this.parser.constructs[e],i=n.attempt(o,a,s);return a;function a(d){return u(d)?i(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const p=o[d];let f=-1;if(p)for(;++f<p.length;){const h=p[f];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function S8(e){return t;function t(n,r){let o=-1,i;for(;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,r):n}}function aDe(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let i=o.length,a=-1,s=0,c;for(;i--;){const u=o[i];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(u===-2)c=!0,s++;else if(u!==-1){i++;break}}if(s){const u={type:n===e.length||c||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+i,_bufferIndex:i?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},u.start),r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}function sDe(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},i=[];let a=[],s=[];const c={consume:w,enter:S,exit:k,attempt:R(A),check:R(T),interrupt:R(T,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:f,now:g,defineSkip:v,write:p};let d=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function p($){return a=Ci(a,$),b(),a[a.length-1]!==null?[]:(P(t,0),u.events=Ck(i,u.events,u),u.events)}function f($,z){return cDe(h($),z)}function h($){return lDe(a,$)}function g(){return Object.assign({},r)}function v($){o[$.line]=$.column,O()}function b(){let $;for(;r._index<a.length;){const z=a[r._index];if(typeof z=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<z.length;)y(z.charCodeAt(r._bufferIndex));else y(z)}}function y($){d=d($)}function w($){Mt($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,O()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=$}function S($,z){const L=z||{};return L.type=$,L.start=g(),u.events.push(["enter",L,u]),s.push(L),L}function k($){const z=s.pop();return z.end=g(),u.events.push(["exit",z,u]),z}function A($,z){P($,z.from)}function T($,z){z.restore()}function R($,z){return L;function L(B,Y,H){let ee,V,W,j;return Array.isArray(B)?M(B):"tokenize"in B?M([B]):I(B);function I(he){return Ie;function Ie(te){const ie=te!==null&&he[te],le=te!==null&&he.null,oe=[...Array.isArray(ie)?ie:ie?[ie]:[],...Array.isArray(le)?le:le?[le]:[]];return M(oe)(te)}}function M(he){return ee=he,V=0,he.length===0?H:J(he[V])}function J(he){return Ie;function Ie(te){return j=_(),W=he,he.partial||(u.currentConstruct=he),he.name&&u.parser.constructs.disable.null.includes(he.name)?Te():he.tokenize.call(z?Object.assign(Object.create(u),z):u,c,ae,Te)(te)}}function ae(he){return $(W,j),Y}function Te(he){return j.restore(),++V<ee.length?J(ee[V]):H}}}function P($,z){$.resolveAll&&!i.includes($)&&i.push($),$.resolve&&Ja(u.events,z,u.events.length-z,$.resolve(u.events.slice(z),u)),$.resolveTo&&(u.events=$.resolveTo(u.events,u))}function _(){const $=g(),z=u.previous,L=u.currentConstruct,B=u.events.length,Y=Array.from(s);return{restore:H,from:B};function H(){r=$,u.previous=z,u.currentConstruct=L,u.events.length=B,s=Y,O()}}function O(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function lDe(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;return n===o?a=[e[n].slice(r,i)]:(a=e.slice(n,o),r>-1&&(a[0]=a[0].slice(r)),i>0&&a.push(e[o].slice(0,i))),a}function cDe(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if(typeof i=="string")a=i;else switch(i){case-5:{a="\r";break}case-4:{a=`
441
+ `;break}case-3:{a=`\r
442
+ `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&o)continue;a=" ";break}default:a=String.fromCharCode(i)}o=i===-2,r.push(a)}return r.join("")}const uDe={42:Do,43:Do,45:Do,48:Do,49:Do,50:Do,51:Do,52:Do,53:Do,54:Do,55:Do,56:Do,57:Do,62:f8},dDe={91:h9e},pDe={[-2]:Vw,[-1]:Vw,32:Vw},fDe={35:w9e,42:Kg,45:[RO,Kg],60:E9e,61:RO,95:Kg,96:kO,126:kO},hDe={38:m8,92:h8},mDe={[-5]:Gw,[-4]:Gw,[-3]:Gw,33:z9e,38:m8,42:eC,60:[GLe,_9e],91:U9e,92:[y9e,h8],93:Tk,95:eC,96:o9e},gDe={null:[eC,rDe]},vDe={null:[42,95]},yDe={null:[]},bDe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:vDe,contentInitial:dDe,disable:yDe,document:uDe,flow:fDe,flowInitial:pDe,insideSpan:gDe,string:hDe,text:mDe},Symbol.toStringTag,{value:"Module"}));function wDe(e={}){const t=ILe([bDe].concat(e.extensions||[])),n={defined:[],lazy:{},constructs:t,content:r(FLe),document:r(jLe),flow:r(tDe),string:r(oDe),text:r(iDe)};return n;function r(o){return i;function i(a){return sDe(n,o,a)}}}const _O=/[\0\t\n\r]/g;function SDe(){let e=1,t="",n=!0,r;return o;function o(i,a,s){const c=[];let u,d,p,f,h;for(i=t+i.toString(a),p=0,t="",n&&(i.charCodeAt(0)===65279&&p++,n=void 0);p<i.length;){if(_O.lastIndex=p,u=_O.exec(i),f=u&&u.index!==void 0?u.index:i.length,h=i.charCodeAt(f),!u){t=i.slice(p);break}if(h===10&&p===f&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<f&&(c.push(i.slice(p,f)),e+=f-p),h){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}p=f+1}return s&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}function xDe(e){for(;!g8(e););return e}function x8(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const CDe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function EDe(e){return e.replace(CDe,TDe)}function TDe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),i=o===120||o===88;return x8(n.slice(i?2:1),i?16:10)}return Ek(n)||e}const C8={}.hasOwnProperty,kDe=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),ADe(n)(xDe(wDe(n).document().write(SDe()(e,t,!0))))};function ADe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ye),autolinkProtocol:$,autolinkEmail:$,atxHeading:s(it),blockQuote:s(oe),characterEscape:$,characterReference:$,codeFenced:s(Ne),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Ne,c),codeText:s(me,c),codeTextData:$,data:$,codeFlowValue:$,definition:s(ke),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(pe),hardBreakEscape:s(Le),hardBreakTrailing:s(Le),htmlFlow:s(Ge,c),htmlFlowData:$,htmlText:s(Ge,c),htmlTextData:$,image:s(st),label:c,link:s(Ye),listItem:s(Lt),listItemValue:g,listOrdered:s(lt,h),listUnordered:s(lt),paragraph:s(Ft),reference:Te,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(it),strong:s(be),thematicBreak:s(Qe)},exit:{atxHeading:d(),atxHeadingSequence:R,autolink:d(),autolinkEmail:le,autolinkProtocol:ie,blockQuote:d(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:Ie,characterReferenceMarkerNumeric:Ie,characterReferenceValue:te,codeFenced:d(w),codeFencedFence:y,codeFencedFenceInfo:v,codeFencedFenceMeta:b,codeFlowValue:z,codeIndented:d(S),codeText:d(ee),codeTextData:z,data:z,definition:d(),definitionDestinationString:T,definitionLabelString:k,definitionTitleString:A,emphasis:d(),hardBreakEscape:d(B),hardBreakTrailing:d(B),htmlFlow:d(Y),htmlFlowData:z,htmlText:d(H),htmlTextData:z,image:d(W),label:I,labelText:j,lineEnding:L,link:d(V),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:he,resourceDestinationString:M,resourceTitleString:J,resource:ae,setextHeading:d(O),setextHeadingLineSequence:_,setextHeadingText:P,strong:d(),thematicBreak:d()}};E8(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(re){let Z={type:"root",children:[]};const X={stack:[Z],tokenStack:[],config:t,enter:u,exit:p,buffer:c,resume:f,setData:i,getData:a},Se=[];let Re=-1;for(;++Re<re.length;)if(re[Re][1].type==="listOrdered"||re[Re][1].type==="listUnordered")if(re[Re][0]==="enter")Se.push(Re);else{const De=Se.pop();Re=o(re,De,Re)}for(Re=-1;++Re<re.length;){const De=t[re[Re][0]];C8.call(De,re[Re][1].type)&&De[re[Re][1].type].call(Object.assign({sliceSerialize:re[Re][2].sliceSerialize},X),re[Re][1])}if(X.tokenStack.length>0){const De=X.tokenStack[X.tokenStack.length-1];(De[1]||PO).call(X,void 0,De[0])}for(Z.position={start:Ws(re.length>0?re[0][1].start:{line:1,column:1,offset:0}),end:Ws(re.length>0?re[re.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<t.transforms.length;)Z=t.transforms[Re](Z)||Z;return Z}function o(re,Z,X){let Se=Z-1,Re=-1,De=!1,bt,_t,zt,fn;for(;++Se<=X;){const Ut=re[Se];if(Ut[1].type==="listUnordered"||Ut[1].type==="listOrdered"||Ut[1].type==="blockQuote"?(Ut[0]==="enter"?Re++:Re--,fn=void 0):Ut[1].type==="lineEndingBlank"?Ut[0]==="enter"&&(bt&&!fn&&!Re&&!zt&&(zt=Se),fn=void 0):Ut[1].type==="linePrefix"||Ut[1].type==="listItemValue"||Ut[1].type==="listItemMarker"||Ut[1].type==="listItemPrefix"||Ut[1].type==="listItemPrefixWhitespace"||(fn=void 0),!Re&&Ut[0]==="enter"&&Ut[1].type==="listItemPrefix"||Re===-1&&Ut[0]==="exit"&&(Ut[1].type==="listUnordered"||Ut[1].type==="listOrdered")){if(bt){let Yt=Se;for(_t=void 0;Yt--;){const nn=re[Yt];if(nn[1].type==="lineEnding"||nn[1].type==="lineEndingBlank"){if(nn[0]==="exit")continue;_t&&(re[_t][1].type="lineEndingBlank",De=!0),nn[1].type="lineEnding",_t=Yt}else if(!(nn[1].type==="linePrefix"||nn[1].type==="blockQuotePrefix"||nn[1].type==="blockQuotePrefixWhitespace"||nn[1].type==="blockQuoteMarker"||nn[1].type==="listItemIndent"))break}zt&&(!_t||zt<_t)&&(bt._spread=!0),bt.end=Object.assign({},_t?re[_t][1].start:Ut[1].end),re.splice(_t||Se,0,["exit",bt,Ut[2]]),Se++,X++}Ut[1].type==="listItemPrefix"&&(bt={type:"listItem",_spread:!1,start:Object.assign({},Ut[1].start)},re.splice(Se,0,["enter",bt,Ut[2]]),Se++,X++,zt=void 0,fn=!0)}}return re[Z][1]._spread=De,X}function i(re,Z){n[re]=Z}function a(re){return n[re]}function s(re,Z){return X;function X(Se){u.call(this,re(Se),Se),Z&&Z.call(this,Se)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(re,Z,X){return this.stack[this.stack.length-1].children.push(re),this.stack.push(re),this.tokenStack.push([Z,X]),re.position={start:Ws(Z.start)},re}function d(re){return Z;function Z(X){re&&re.call(this,X),p.call(this,X)}}function p(re,Z){const X=this.stack.pop(),Se=this.tokenStack.pop();if(Se)Se[0].type!==re.type&&(Z?Z.call(this,re,Se[0]):(Se[1]||PO).call(this,re,Se[0]));else throw new Error("Cannot close `"+re.type+"` ("+Rf({start:re.start,end:re.end})+"): it’s not open");return X.position.end=Ws(re.end),X}function f(){return _Le(this.stack.pop())}function h(){i("expectingFirstListItemValue",!0)}function g(re){if(a("expectingFirstListItemValue")){const Z=this.stack[this.stack.length-2];Z.start=Number.parseInt(this.sliceSerialize(re),10),i("expectingFirstListItemValue")}}function v(){const re=this.resume(),Z=this.stack[this.stack.length-1];Z.lang=re}function b(){const re=this.resume(),Z=this.stack[this.stack.length-1];Z.meta=re}function y(){a("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))}function w(){const re=this.resume(),Z=this.stack[this.stack.length-1];Z.value=re.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}function S(){const re=this.resume(),Z=this.stack[this.stack.length-1];Z.value=re.replace(/(\r?\n|\r)$/g,"")}function k(re){const Z=this.resume(),X=this.stack[this.stack.length-1];X.label=Z,X.identifier=Uu(this.sliceSerialize(re)).toLowerCase()}function A(){const re=this.resume(),Z=this.stack[this.stack.length-1];Z.title=re}function T(){const re=this.resume(),Z=this.stack[this.stack.length-1];Z.url=re}function R(re){const Z=this.stack[this.stack.length-1];if(!Z.depth){const X=this.sliceSerialize(re).length;Z.depth=X}}function P(){i("setextHeadingSlurpLineEnding",!0)}function _(re){const Z=this.stack[this.stack.length-1];Z.depth=this.sliceSerialize(re).charCodeAt(0)===61?1:2}function O(){i("setextHeadingSlurpLineEnding")}function $(re){const Z=this.stack[this.stack.length-1];let X=Z.children[Z.children.length-1];(!X||X.type!=="text")&&(X=Oe(),X.position={start:Ws(re.start)},Z.children.push(X)),this.stack.push(X)}function z(re){const Z=this.stack.pop();Z.value+=this.sliceSerialize(re),Z.position.end=Ws(re.end)}function L(re){const Z=this.stack[this.stack.length-1];if(a("atHardBreak")){const X=Z.children[Z.children.length-1];X.position.end=Ws(re.end),i("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(Z.type)&&($.call(this,re),z.call(this,re))}function B(){i("atHardBreak",!0)}function Y(){const re=this.resume(),Z=this.stack[this.stack.length-1];Z.value=re}function H(){const re=this.resume(),Z=this.stack[this.stack.length-1];Z.value=re}function ee(){const re=this.resume(),Z=this.stack[this.stack.length-1];Z.value=re}function V(){const re=this.stack[this.stack.length-1];if(a("inReference")){const Z=a("referenceType")||"shortcut";re.type+="Reference",re.referenceType=Z,delete re.url,delete re.title}else delete re.identifier,delete re.label;i("referenceType")}function W(){const re=this.stack[this.stack.length-1];if(a("inReference")){const Z=a("referenceType")||"shortcut";re.type+="Reference",re.referenceType=Z,delete re.url,delete re.title}else delete re.identifier,delete re.label;i("referenceType")}function j(re){const Z=this.sliceSerialize(re),X=this.stack[this.stack.length-2];X.label=EDe(Z),X.identifier=Uu(Z).toLowerCase()}function I(){const re=this.stack[this.stack.length-1],Z=this.resume(),X=this.stack[this.stack.length-1];if(i("inReference",!0),X.type==="link"){const Se=re.children;X.children=Se}else X.alt=Z}function M(){const re=this.resume(),Z=this.stack[this.stack.length-1];Z.url=re}function J(){const re=this.resume(),Z=this.stack[this.stack.length-1];Z.title=re}function ae(){i("inReference")}function Te(){i("referenceType","collapsed")}function he(re){const Z=this.resume(),X=this.stack[this.stack.length-1];X.label=Z,X.identifier=Uu(this.sliceSerialize(re)).toLowerCase(),i("referenceType","full")}function Ie(re){i("characterReferenceType",re.type)}function te(re){const Z=this.sliceSerialize(re),X=a("characterReferenceType");let Se;X?(Se=x8(Z,X==="characterReferenceMarkerNumeric"?10:16),i("characterReferenceType")):Se=Ek(Z);const Re=this.stack.pop();Re.value+=Se,Re.position.end=Ws(re.end)}function ie(re){z.call(this,re);const Z=this.stack[this.stack.length-1];Z.url=this.sliceSerialize(re)}function le(re){z.call(this,re);const Z=this.stack[this.stack.length-1];Z.url="mailto:"+this.sliceSerialize(re)}function oe(){return{type:"blockquote",children:[]}}function Ne(){return{type:"code",lang:null,meta:null,value:""}}function me(){return{type:"inlineCode",value:""}}function ke(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function pe(){return{type:"emphasis",children:[]}}function it(){return{type:"heading",depth:void 0,children:[]}}function Le(){return{type:"break"}}function Ge(){return{type:"html",value:""}}function st(){return{type:"image",title:null,url:"",alt:null}}function Ye(){return{type:"link",title:null,url:"",children:[]}}function lt(re){return{type:"list",ordered:re.type==="listOrdered",start:null,spread:re._spread,children:[]}}function Lt(re){return{type:"listItem",spread:re._spread,checked:null,children:[]}}function Ft(){return{type:"paragraph",children:[]}}function be(){return{type:"strong",children:[]}}function Oe(){return{type:"text",value:""}}function Qe(){return{type:"thematicBreak"}}}function Ws(e){return{line:e.line,column:e.column,offset:e.offset}}function E8(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?E8(e,r):RDe(e,r)}}function RDe(e,t){let n;for(n in t)if(C8.call(t,n)){if(n==="canContainEols"){const r=t[n];r&&e[n].push(...r)}else if(n==="transforms"){const r=t[n];r&&e[n].push(...r)}else if(n==="enter"||n==="exit"){const r=t[n];r&&Object.assign(e[n],r)}}}function PO(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Rf({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Rf({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Rf({start:t.start,end:t.end})+") is still open")}function _De(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return kDe(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function PDe(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function IDe(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
443
+ `}]}function ODe(e,t){const n=t.value?t.value+`
444
+ `:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);let i={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function $De(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function NDe(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Yd(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(i===37&&ii(e.charCodeAt(n+1))&&ii(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(a=String.fromCharCode(i,s),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function T8(e,t){const n=String(t.identifier).toUpperCase(),r=Yd(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);let i;o===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,i=e.footnoteOrder.length):(e.footnoteCounts[n]++,i=o+1);const a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)}function LDe(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},T8(e,{type:"footnoteReference",identifier:o,position:t.position})}function DDe(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function MDe(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function k8(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const o=e.all(t),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&a.type==="text"?a.value+=r:o.push({type:"text",value:r}),o}function BDe(e,t){const n=e.definition(t.identifier);if(!n)return k8(e,t);const r={src:Yd(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function FDe(e,t){const n={src:Yd(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function zDe(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function jDe(e,t){const n=e.definition(t.identifier);if(!n)return k8(e,t);const r={href:Yd(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function UDe(e,t){const n={href:Yd(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function WDe(e,t,n){const r=e.all(t),o=n?HDe(n):A8(t),i={},a=[];if(typeof t.checked=="boolean"){const d=r[0];let p;d&&d.type==="element"&&d.tagName==="p"?p=d:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(o||s!==0||d.type!=="element"||d.tagName!=="p")&&a.push({type:"text",value:`
445
+ `}),d.type==="element"&&d.tagName==="p"&&!o?a.push(...d.children):a.push(d)}const c=r[r.length-1];c&&(o||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:`
446
+ `});const u={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,u),e.applyData(t,u)}function HDe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=A8(n[r])}return t}function A8(e){const t=e.spread;return t??e.children.length>1}function VDe(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const a=r[o];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function GDe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qDe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function YDe(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const kk=R8("start"),Ak=R8("end");function KDe(e){return{start:kk(e),end:Ak(e)}}function R8(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}function XDe(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),o.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=kk(t.children[1]),c=Ak(t.children[t.children.length-1]);s.line&&c.line&&(a.position={start:s,end:c}),o.push(a)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)}function JDe(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let c=-1;const u=[];for(;++c<s;){const p=t.children[c],f={},h=a?a[c]:void 0;h&&(f.align=h);let g={type:"element",tagName:i,properties:f,children:[]};p&&(g.children=e.all(p),e.patch(p,g),g=e.applyData(t,g)),u.push(g)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function QDe(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const IO=9,OO=32;function ZDe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push($O(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push($O(t.slice(o),o>0,!1)),i.join("")}function $O(e,t,n){let r=0,o=e.length;if(t){let i=e.codePointAt(r);for(;i===IO||i===OO;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(o-1);for(;i===IO||i===OO;)o--,i=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function eMe(e,t){const n={type:"text",value:ZDe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function tMe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const nMe={blockquote:PDe,break:IDe,code:ODe,delete:$De,emphasis:NDe,footnoteReference:T8,footnote:LDe,heading:DDe,html:MDe,imageReference:BDe,image:FDe,inlineCode:zDe,linkReference:jDe,link:UDe,listItem:WDe,list:VDe,paragraph:GDe,root:qDe,strong:YDe,table:XDe,tableCell:QDe,tableRow:JDe,text:eMe,thematicBreak:tMe,toml:Cg,yaml:Cg,definition:Cg,footnoteDefinition:Cg};function Cg(){return null}const _8=function(e){if(e==null)return aMe;if(typeof e=="string")return iMe(e);if(typeof e=="object")return Array.isArray(e)?rMe(e):oMe(e);if(typeof e=="function")return C0(e);throw new Error("Expected function, string, or object as test")};function rMe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=_8(e[n]);return C0(r);function r(...o){let i=-1;for(;++i<t.length;)if(t[i].call(this,...o))return!0;return!1}}function oMe(e){return C0(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function iMe(e){return C0(t);function t(n){return n&&n.type===e}}function C0(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function aMe(){return!0}const sMe=!0,NO=!1,lMe="skip",cMe=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const o=_8(t),i=r?-1:1;a(e,void 0,[])();function a(s,c,u){const d=s&&typeof s=="object"?s:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=[],h,g,v;if((!t||o(s,c,u[u.length-1]||null))&&(f=uMe(n(s,u)),f[0]===NO))return f;if(s.children&&f[0]!==lMe)for(g=(r?s.children.length:-1)+i,v=u.concat(s);g>-1&&g<s.children.length;){if(h=a(s.children[g],g,v)(),h[0]===NO)return h;g=typeof h[1]=="number"?h[1]:g+i}return f}}};function uMe(e){return Array.isArray(e)?e:typeof e=="number"?[sMe,e]:[e]}const Rk=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),cMe(e,t,o,r);function o(i,a){const s=a[a.length-1];return n(i,s?s.children.indexOf(i):null,s)}};function dMe(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const LO={}.hasOwnProperty;function pMe(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Rk(e,"definition",r=>{const o=DO(r.identifier);o&&!LO.call(t,o)&&(t[o]=r)}),n;function n(r){const o=DO(r);return o&&LO.call(t,o)?t[o]:null}}function DO(e){return String(e||"").toUpperCase()}const iy={}.hasOwnProperty;function fMe(e,t){const n=t||{},r=n.allowDangerousHtml||!1,o={};return a.dangerous=r,a.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...nMe,...n.handlers},a.definition=pMe(e),a.footnoteById=o,a.footnoteOrder=[],a.footnoteCounts={},a.patch=hMe,a.applyData=mMe,a.one=s,a.all=c,a.wrap=vMe,a.augment=i,Rk(e,"footnoteDefinition",u=>{const d=String(u.identifier).toUpperCase();iy.call(o,d)||(o[d]=u)}),a;function i(u,d){if(u&&"data"in u&&u.data){const p=u.data;p.hName&&(d.type!=="element"&&(d={type:"element",tagName:"",properties:{},children:[]}),d.tagName=p.hName),d.type==="element"&&p.hProperties&&(d.properties={...d.properties,...p.hProperties}),"children"in d&&d.children&&p.hChildren&&(d.children=p.hChildren)}if(u){const p="type"in u?u:{position:u};dMe(p)||(d.position={start:kk(p),end:Ak(p)})}return d}function a(u,d,p,f){return Array.isArray(p)&&(f=p,p={}),i(u,{type:"element",tagName:d,properties:p||{},children:f||[]})}function s(u,d){return P8(a,u,d)}function c(u){return _k(a,u)}}function hMe(e,t){e.position&&(t.position=KDe(e))}function mMe(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,i=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&i&&(n.properties={...n.properties,...i}),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function P8(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return iy.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:_k(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):gMe(e,t)}function _k(e,t){const n=[];if("children"in t){const r=t.children;let o=-1;for(;++o<r.length;){const i=P8(e,r[o],t);if(i){if(o&&r[o-1].type==="break"&&(!Array.isArray(i)&&i.type==="text"&&(i.value=i.value.replace(/^\s+/,"")),!Array.isArray(i)&&i.type==="element")){const a=i.children[0];a&&a.type==="text"&&(a.value=a.value.replace(/^\s+/,""))}Array.isArray(i)?n.push(...i):n.push(i)}}}return n}function gMe(e,t){const n=t.data||{},r="value"in t&&!(iy.call(n,"hProperties")||iy.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:_k(e,t)};return e.patch(t,r),e.applyData(t,r)}function vMe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
447
+ `});++r<e.length;)r&&n.push({type:"text",value:`
448
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
449
+ `}),n}function yMe(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const o=e.all(r),i=String(r.identifier).toUpperCase(),a=Yd(i.toLowerCase());let s=0;const c=[];for(;++s<=e.footnoteCounts[i];){const p={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&p.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),c.length>0&&c.push({type:"text",value:" "}),c.push(p)}const u=o[o.length-1];if(u&&u.type==="element"&&u.tagName==="p"){const p=u.children[u.children.length-1];p&&p.type==="text"?p.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...c)}else o.push(...c);const d={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(o,!0)};e.patch(r,d),t.push(d)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
450
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:`
451
+ `}]}}function I8(e,t){const n=fMe(e,t),r=n.one(e,null),o=yMe(n);return o&&r.children.push({type:"text",value:`
452
+ `},o),Array.isArray(r)?{type:"root",children:r}:r}const bMe=function(e,t){return e&&"run"in e?SMe(e,t):xMe(e||t)},wMe=bMe;function SMe(e,t){return(n,r,o)=>{e.run(I8(n,t),r,i=>{o(i)})}}function xMe(e){return t=>I8(t,e)}class fm{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}fm.prototype.property={};fm.prototype.normal={};fm.prototype.space=null;function O8(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new fm(n,r,t)}function tC(e){return e.toLowerCase()}class Ji{constructor(t,n){this.property=t,this.attribute=n}}Ji.prototype.space=null;Ji.prototype.boolean=!1;Ji.prototype.booleanish=!1;Ji.prototype.overloadedBoolean=!1;Ji.prototype.number=!1;Ji.prototype.commaSeparated=!1;Ji.prototype.spaceSeparated=!1;Ji.prototype.commaOrSpaceSeparated=!1;Ji.prototype.mustUseProperty=!1;Ji.prototype.defined=!1;let CMe=0;const Wt=Vc(),Ar=Vc(),$8=Vc(),Me=Vc(),Yn=Vc(),Wu=Vc(),Jo=Vc();function Vc(){return 2**++CMe}const nC=Object.freeze(Object.defineProperty({__proto__:null,boolean:Wt,booleanish:Ar,commaOrSpaceSeparated:Jo,commaSeparated:Wu,number:Me,overloadedBoolean:$8,spaceSeparated:Yn},Symbol.toStringTag,{value:"Module"})),qw=Object.keys(nC);class Pk extends Ji{constructor(t,n,r,o){let i=-1;if(super(t,n),MO(this,"space",o),typeof r=="number")for(;++i<qw.length;){const a=qw[i];MO(this,qw[i],(r&nC[a])===nC[a])}}}Pk.prototype.defined=!0;function MO(e,t,n){n&&(e[t]=n)}const EMe={}.hasOwnProperty;function Kd(e){const t={},n={};let r;for(r in e.properties)if(EMe.call(e.properties,r)){const o=e.properties[r],i=new Pk(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[tC(r)]=r,n[tC(i.attribute)]=r}return new fm(t,n,e.space)}const N8=Kd({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),L8=Kd({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function D8(e,t){return t in e?e[t]:t}function M8(e,t){return D8(e,t.toLowerCase())}const B8=Kd({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:M8,properties:{xmlns:null,xmlnsXLink:null}}),F8=Kd({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ar,ariaAutoComplete:null,ariaBusy:Ar,ariaChecked:Ar,ariaColCount:Me,ariaColIndex:Me,ariaColSpan:Me,ariaControls:Yn,ariaCurrent:null,ariaDescribedBy:Yn,ariaDetails:null,ariaDisabled:Ar,ariaDropEffect:Yn,ariaErrorMessage:null,ariaExpanded:Ar,ariaFlowTo:Yn,ariaGrabbed:Ar,ariaHasPopup:null,ariaHidden:Ar,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Yn,ariaLevel:Me,ariaLive:null,ariaModal:Ar,ariaMultiLine:Ar,ariaMultiSelectable:Ar,ariaOrientation:null,ariaOwns:Yn,ariaPlaceholder:null,ariaPosInSet:Me,ariaPressed:Ar,ariaReadOnly:Ar,ariaRelevant:null,ariaRequired:Ar,ariaRoleDescription:Yn,ariaRowCount:Me,ariaRowIndex:Me,ariaRowSpan:Me,ariaSelected:Ar,ariaSetSize:Me,ariaSort:null,ariaValueMax:Me,ariaValueMin:Me,ariaValueNow:Me,ariaValueText:null,role:null}}),TMe=Kd({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:M8,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wu,acceptCharset:Yn,accessKey:Yn,action:null,allow:null,allowFullScreen:Wt,allowPaymentRequest:Wt,allowUserMedia:Wt,alt:null,as:null,async:Wt,autoCapitalize:null,autoComplete:Yn,autoFocus:Wt,autoPlay:Wt,capture:Wt,charSet:null,checked:Wt,cite:null,className:Yn,cols:Me,colSpan:null,content:null,contentEditable:Ar,controls:Wt,controlsList:Yn,coords:Me|Wu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Wt,defer:Wt,dir:null,dirName:null,disabled:Wt,download:$8,draggable:Ar,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Wt,formTarget:null,headers:Yn,height:Me,hidden:Wt,high:Me,href:null,hrefLang:null,htmlFor:Yn,httpEquiv:Yn,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Wt,itemId:null,itemProp:Yn,itemRef:Yn,itemScope:Wt,itemType:Yn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Wt,low:Me,manifest:null,max:null,maxLength:Me,media:null,method:null,min:null,minLength:Me,multiple:Wt,muted:Wt,name:null,nonce:null,noModule:Wt,noValidate:Wt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Wt,optimum:Me,pattern:null,ping:Yn,placeholder:null,playsInline:Wt,poster:null,preload:null,readOnly:Wt,referrerPolicy:null,rel:Yn,required:Wt,reversed:Wt,rows:Me,rowSpan:Me,sandbox:Yn,scope:null,scoped:Wt,seamless:Wt,selected:Wt,shape:null,size:Me,sizes:null,slot:null,span:Me,spellCheck:Ar,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Me,step:null,style:null,tabIndex:Me,target:null,title:null,translate:null,type:null,typeMustMatch:Wt,useMap:null,value:Ar,width:Me,wrap:null,align:null,aLink:null,archive:Yn,axis:null,background:null,bgColor:null,border:Me,borderColor:null,bottomMargin:Me,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Wt,declare:Wt,event:null,face:null,frame:null,frameBorder:null,hSpace:Me,leftMargin:Me,link:null,longDesc:null,lowSrc:null,marginHeight:Me,marginWidth:Me,noResize:Wt,noHref:Wt,noShade:Wt,noWrap:Wt,object:null,profile:null,prompt:null,rev:null,rightMargin:Me,rules:null,scheme:null,scrolling:Ar,standby:null,summary:null,text:null,topMargin:Me,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Me,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Wt,disableRemotePlayback:Wt,prefix:null,property:null,results:Me,security:null,unselectable:null}}),kMe=Kd({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:D8,properties:{about:Jo,accentHeight:Me,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Me,amplitude:Me,arabicForm:null,ascent:Me,attributeName:null,attributeType:null,azimuth:Me,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Me,by:null,calcMode:null,capHeight:Me,className:Yn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Me,diffuseConstant:Me,direction:null,display:null,dur:null,divisor:Me,dominantBaseline:null,download:Wt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Me,enableBackground:null,end:null,event:null,exponent:Me,externalResourcesRequired:null,fill:null,fillOpacity:Me,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Wu,g2:Wu,glyphName:Wu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Me,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Me,horizOriginX:Me,horizOriginY:Me,id:null,ideographic:Me,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Me,k:Me,k1:Me,k2:Me,k3:Me,k4:Me,kernelMatrix:Jo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Me,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Me,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Me,overlineThickness:Me,paintOrder:null,panose1:null,path:null,pathLength:Me,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Yn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Me,pointsAtY:Me,pointsAtZ:Me,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Jo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Jo,rev:Jo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Jo,requiredFeatures:Jo,requiredFonts:Jo,requiredFormats:Jo,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Me,specularExponent:Me,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Me,strikethroughThickness:Me,string:null,stroke:null,strokeDashArray:Jo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Me,strokeOpacity:Me,strokeWidth:null,style:null,surfaceScale:Me,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Jo,tabIndex:Me,tableValues:null,target:null,targetX:Me,targetY:Me,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Jo,to:null,transform:null,u1:null,u2:null,underlinePosition:Me,underlineThickness:Me,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Me,values:null,vAlphabetic:Me,vMathematical:Me,vectorEffect:null,vHanging:Me,vIdeographic:Me,version:null,vertAdvY:Me,vertOriginX:Me,vertOriginY:Me,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Me,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),AMe=/^data[-\w.:]+$/i,BO=/-[a-z]/g,RMe=/[A-Z]/g;function _Me(e,t){const n=tC(t);let r=t,o=Ji;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&AMe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(BO,IMe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!BO.test(i)){let a=i.replace(RMe,PMe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}o=Pk}return new o(r,t)}function PMe(e){return"-"+e.toLowerCase()}function IMe(e){return e.charAt(1).toUpperCase()}const FO={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},OMe=O8([L8,N8,B8,F8,TMe],"html"),$Me=O8([L8,N8,B8,F8,kMe],"svg");function NMe(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Rk(t,"element",(n,r,o)=>{const i=o;let a;if(e.allowedElements?a=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(a=e.disallowedElements.includes(n.tagName)),!a&&e.allowElement&&typeof r=="number"&&(a=!e.allowElement(n,r,i)),a&&typeof r=="number")return e.unwrapDisallowed&&n.children?i.children.splice(r,1,...n.children):i.children.splice(r,1),r})}}function LMe(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function DMe(e){return e.join(" ").trim()}function MMe(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var Ik={exports:{}},zO=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,BMe=/\n/g,FMe=/^\s*/,zMe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,jMe=/^:\s*/,UMe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,WMe=/^[;\s]*/,HMe=/^\s+|\s+$/g,VMe=`
453
+ `,jO="/",UO="*",ec="",GMe="comment",qMe="declaration",YMe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(g){var v=g.match(BMe);v&&(n+=v.length);var b=g.lastIndexOf(VMe);r=~b?g.length-b:r+g.length}function i(){var g={line:n,column:r};return function(v){return v.position=new a(g),u(),v}}function a(g){this.start=g,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(g){var v=new Error(t.source+":"+n+":"+r+": "+g);if(v.reason=g,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function c(g){var v=g.exec(e);if(v){var b=v[0];return o(b),e=e.slice(b.length),v}}function u(){c(FMe)}function d(g){var v;for(g=g||[];v=p();)v!==!1&&g.push(v);return g}function p(){var g=i();if(!(jO!=e.charAt(0)||UO!=e.charAt(1))){for(var v=2;ec!=e.charAt(v)&&(UO!=e.charAt(v)||jO!=e.charAt(v+1));)++v;if(v+=2,ec===e.charAt(v-1))return s("End of comment missing");var b=e.slice(2,v-2);return r+=2,o(b),e=e.slice(v),r+=2,g({type:GMe,comment:b})}}function f(){var g=i(),v=c(zMe);if(v){if(p(),!c(jMe))return s("property missing ':'");var b=c(UMe),y=g({type:qMe,property:WO(v[0].replace(zO,ec)),value:b?WO(b[0].replace(zO,ec)):ec});return c(WMe),y}}function h(){var g=[];d(g);for(var v;v=f();)v!==!1&&(g.push(v),d(g));return g}return u(),h()};function WO(e){return e?e.replace(HMe,ec):ec}var KMe=YMe;function z8(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,o=KMe(e),i=typeof t=="function",a,s,c=0,u=o.length;c<u;c++)r=o[c],a=r.property,s=r.value,i?t(a,s,r):s&&(n||(n={}),n[a]=s);return n}Ik.exports=z8;Ik.exports.default=z8;var XMe=Ik.exports;const JMe=Yr(XMe),rC={}.hasOwnProperty,QMe=new Set(["table","thead","tbody","tfoot","tr"]);function j8(e,t){const n=[];let r=-1,o;for(;++r<t.children.length;)o=t.children[r],o.type==="element"?n.push(ZMe(e,o,r,t)):o.type==="text"?(t.type!=="element"||!QMe.has(t.tagName)||!LMe(o))&&n.push(o.value):o.type==="raw"&&!e.options.skipHtml&&n.push(o.value);return n}function ZMe(e,t,n,r){const o=e.options,i=o.transformLinkUri===void 0?lLe:o.transformLinkUri,a=e.schema,s=t.tagName,c={};let u=a,d;if(a.space==="html"&&s==="svg"&&(u=$Me,e.schema=u),t.properties)for(d in t.properties)rC.call(t.properties,d)&&tBe(c,d,t.properties[d],e);(s==="ol"||s==="ul")&&e.listDepth++;const p=j8(e,t);(s==="ol"||s==="ul")&&e.listDepth--,e.schema=a;const f=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},h=o.components&&rC.call(o.components,s)?o.components[s]:s,g=typeof h=="string"||h===Ce.Fragment;if(!Ij.isValidElementType(h))throw new TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(c.key=n,s==="a"&&o.linkTarget&&(c.target=typeof o.linkTarget=="function"?o.linkTarget(String(c.href||""),t.children,typeof c.title=="string"?c.title:null):o.linkTarget),s==="a"&&i&&(c.href=i(String(c.href||""),t.children,typeof c.title=="string"?c.title:null)),!g&&s==="code"&&r.type==="element"&&r.tagName!=="pre"&&(c.inline=!0),!g&&(s==="h1"||s==="h2"||s==="h3"||s==="h4"||s==="h5"||s==="h6")&&(c.level=Number.parseInt(s.charAt(1),10)),s==="img"&&o.transformImageUri&&(c.src=o.transformImageUri(String(c.src||""),String(c.alt||""),typeof c.title=="string"?c.title:null)),!g&&s==="li"&&r.type==="element"){const v=eBe(t);c.checked=v&&v.properties?!!v.properties.checked:null,c.index=Yw(r,t),c.ordered=r.tagName==="ol"}return!g&&(s==="ol"||s==="ul")&&(c.ordered=s==="ol",c.depth=e.listDepth),(s==="td"||s==="th")&&(c.align&&(c.style||(c.style={}),c.style.textAlign=c.align,delete c.align),g||(c.isHeader=s==="th")),!g&&s==="tr"&&r.type==="element"&&(c.isHeader=r.tagName==="thead"),o.sourcePos&&(c["data-sourcepos"]=oBe(f)),!g&&o.rawSourcePos&&(c.sourcePosition=t.position),!g&&o.includeElementIndex&&(c.index=Yw(r,t),c.siblingCount=Yw(r)),g||(c.node=t),p.length>0?Ce.createElement(h,c,p):Ce.createElement(h,c)}function eBe(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n.type==="element"&&n.tagName==="input")return n}return null}function Yw(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)e.children[n].type==="element"&&r++;return r}function tBe(e,t,n,r){const o=_Me(r.schema,t);let i=n;i==null||i!==i||(Array.isArray(i)&&(i=o.commaSeparated?MMe(i):DMe(i)),o.property==="style"&&typeof i=="string"&&(i=nBe(i)),o.space&&o.property?e[rC.call(FO,o.property)?FO[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function nBe(e){const t={};try{JMe(e,n)}catch{}return t;function n(r,o){const i=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[i.replace(/-([a-z])/g,rBe)]=o}}function rBe(e,t){return t.toUpperCase()}function oBe(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const HO={}.hasOwnProperty,iBe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Eg={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function Ok(e){for(const i in Eg)if(HO.call(Eg,i)&&HO.call(e,i)){const a=Eg[i];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${i}\` (see <${iBe}#${a.id}> for more info)`),delete Eg[i]}const t=ELe().use(_De).use(e.remarkPlugins||[]).use(wMe,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(NMe,e),n=new l8;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let o=Ce.createElement(Ce.Fragment,{},j8({options:e,schema:OMe,listDepth:0},r));return e.className&&(o=Ce.createElement("div",{className:e.className},o)),o}Ok.propTypes={children:fe.string,className:fe.string,allowElement:fe.func,allowedElements:fe.arrayOf(fe.string),disallowedElements:fe.arrayOf(fe.string),unwrapDisallowed:fe.bool,remarkPlugins:fe.arrayOf(fe.oneOfType([fe.object,fe.func,fe.arrayOf(fe.oneOfType([fe.bool,fe.string,fe.object,fe.func,fe.arrayOf(fe.any)]))])),rehypePlugins:fe.arrayOf(fe.oneOfType([fe.object,fe.func,fe.arrayOf(fe.oneOfType([fe.bool,fe.string,fe.object,fe.func,fe.arrayOf(fe.any)]))])),sourcePos:fe.bool,rawSourcePos:fe.bool,skipHtml:fe.bool,includeElementIndex:fe.bool,transformLinkUri:fe.oneOfType([fe.func,fe.bool]),linkTarget:fe.oneOfType([fe.func,fe.string]),transformImageUri:fe.func,components:fe.object};const aBe=C(Ok)(({theme:e})=>({"h1, h2, h3":{margin:e.spacing(2,0)}})),sBe=({open:e,setOpen:t,title:n,children:r})=>l(vr,{title:n,open:e,secondaryButtonText:"Close",onClose:()=>{t(!1)},children:l(aBe,{children:r})}),lBe=e=>{if(e!=null&&e.enabled)return e.payload?e.payload.type==="json"?JSON.parse(e.payload.value):e.payload.value:e.name},cBe=e=>m.useMemo(()=>{if(e!=null&&e.enabled)return lBe(e)},[e]),uBe=C("aside",{shouldForwardProp:e=>e!=="variant"&&e!=="sticky"})(({theme:e,variant:t,sticky:n})=>({position:n?"sticky":"relative",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center",padding:e.spacing(1),gap:e.spacing(1),borderBottom:"1px solid",borderColor:e.palette[t].border,background:e.palette[t].light,color:e.palette[t].dark,fontSize:e.fontSizes.smallBody,...n&&{top:0,zIndex:e.zIndex.sticky}})),dBe=C("div",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:t})=>({display:"flex",alignItems:"center",color:e.palette[t].main})),pBe=()=>{const{uiConfig:e}=It(),[t,n]=m.useState(!1),r=cBe(e.flags.messageBanner);if(!r)return null;const{message:o,variant:i="neutral",sticky:a,icon:s,link:c,linkText:u="More info",plausibleEvent:d,dialogTitle:p,dialog:f}=r;return x(uBe,{variant:i,sticky:a,children:[l(dBe,{variant:i,children:l(hBe,{icon:s,variant:i})}),l(Ok,{children:o}),l(mBe,{link:c,plausibleEvent:d,openDialog:()=>n(!0),children:u}),l(sBe,{open:t,setOpen:n,title:p||u,children:f})]})},fBe={warning:l(UL,{}),info:l(xf,{}),error:l(k1,{}),success:l($v,{}),neutral:l(xf,{}),secondary:l(xf,{})},hBe=({icon:e,variant:t})=>e==="none"?null:e?l(XE,{children:e}):fBe[t]??l(xf,{}),mBe=({link:e,plausibleEvent:t,openDialog:n,children:r})=>{const o=pt(),i=br();if(!e)return null;const a=e==="dialog",s=!e.startsWith("http"),c=()=>{t&&i.trackEvent("message_banner",{props:{event:t}})};return a?l(Gr,{onClick:()=>{c(),n()},children:r}):s?l(Gr,{onClick:()=>{c(),o(e)},children:r}):l(Gr,{href:e,target:"_blank",rel:"noreferrer",onClick:c,children:r})};window.global||(window.global=window);Ai.render(l(sLe,{children:l(h6e,{children:l(uj,{basename:ri,children:l(Die,{children:l(j6e,{children:l(B6e,{children:x(rLe,{children:[l(pBe,{}),l(p6e,{}),l(d6e,{})]})})})})})})}),document.getElementById("app"));export{e2 as $,Ad as A,$e as B,q as C,To as D,Vt as E,$s as F,NT as G,dxe as H,zh as I,eM as J,oM as K,Os as L,qa as M,Ra as N,tl as O,f1 as P,Cf as Q,cI as R,jh as S,se as T,Il as U,Ld as V,pl as W,It as X,Uhe as Y,xf as Z,i6 as _,Cv as a,xt as a$,Bve as a0,Jt as a1,qo as a2,Gi as a3,Vi as a4,Wi as a5,ui as a6,pi as a7,Xh as a8,Hn as a9,QP as aA,bM as aB,yo as aC,nr as aD,Rs as aE,BTe as aF,de as aG,$r as aH,U2 as aI,an as aJ,di as aK,d9 as aL,Pn as aM,Rt as aN,bn as aO,Jr as aP,t8e as aQ,c1e as aR,l1e as aS,s1e as aT,nm as aU,e0 as aV,ks as aW,OCe as aX,u8e as aY,Bc as aZ,y9 as a_,tr as aa,bs as ab,Od as ac,A1 as ad,Nc as ae,Lc as af,br as ag,Sd as ah,I1 as ai,Ts as aj,Yh as ak,ko as al,ar as am,Ls as an,$d as ao,_2 as ap,yr as aq,Tn as ar,fh as as,vi as at,pt as au,_Ee as av,Jh as aw,Fr as ax,REe as ay,Bd as az,yn as b,cs as b$,UBe as b0,Cle as b1,t2 as b2,Du as b3,Hle as b4,rn as b5,vr as b6,MT as b7,Vxe as b8,Rn as b9,p1 as bA,u1 as bB,Sfe as bC,zBe as bD,LL as bE,es as bF,rd as bG,Gh as bH,jL as bI,zL as bJ,Gr as bK,Mc as bL,rme as bM,zd as bN,rm as bO,Ale as bP,ha as bQ,Xa as bR,f9 as bS,Z$ as bT,hf as bU,om as bV,p8e as bW,$L as bX,gD as bY,vD as bZ,x3 as b_,An as ba,_n as bb,id as bc,y8e as bd,b8e as be,WBe as bf,rT as bg,HBe as bh,iB as bi,oB as bj,jBe as bk,BT as bl,$1 as bm,dI as bn,_o as bo,zhe as bp,ca as bq,Na as br,Po as bs,Vle as bt,VBe as bu,Wn as bv,Nle as bw,kd as bx,Kh as by,c1 as bz,qe as c,ch as c$,b9 as c0,CCe as c1,g5 as c2,Xxe as c3,CIe as c4,d8e as c5,TM as c6,Nd as c7,n8e as c8,ua as c9,yBe as cA,Lh as cB,sr as cC,Ov as cD,El as cE,Or as cF,AAe as cG,PM as cH,oTe as cI,lTe as cJ,N3 as cK,aTe as cL,nTe as cM,rTe as cN,sTe as cO,da as cP,Ka as cQ,kAe as cR,Dve as cS,Mr as cT,fa as cU,qM as cV,p2e as cW,Ss as cX,o8 as cY,nl as cZ,G6e as c_,Ce as ca,Cl as cb,Hi as cc,od as cd,Jxe as ce,i8e as cf,LEe as cg,VM as ch,dpe as ci,jre as cj,gfe as ck,Ro as cl,sve as cm,uh as cn,ML as co,m9 as cp,zle as cq,qoe as cr,rt as cs,_E as ct,Fe as cu,N as cv,Fi as cw,Ky as cx,DN as cy,si as cz,x as d,R2 as d$,_9 as d0,W6e as d1,yi as d2,xL as d3,Yre as d4,moe as d5,M6 as d6,$c as d7,zc as d8,TBe as d9,Ya as dA,w8e as dB,ZRe as dC,S8e as dD,YM as dE,hc as dF,oT as dG,N_e as dH,E8e as dI,$_e as dJ,KRe as dK,YRe as dL,IP as dM,x8e as dN,C8e as dO,tB as dP,F_e as dQ,KM as dR,hTe as dS,JM as dT,Mx as dU,u_e as dV,UM as dW,e_e as dX,r2 as dY,sc as dZ,P2 as d_,H3 as da,y2 as db,vo as dc,rr as dd,CBe as de,EBe as df,Fc as dg,f8e as dh,kBe as di,iEe as dj,ABe as dk,ZM as dl,IBe as dm,RBe as dn,_Be as dp,iD as dq,PBe as dr,ZE as ds,z_e as dt,eB as du,SBe as dv,Ile as dw,vBe as dx,QRe as dy,Ol as dz,eD as e,zIe as e$,rce as e0,jM as e1,tse as e2,Cge as e3,Uh as e4,$i as e5,Z9 as e6,tD as e7,As as e8,Q9 as e9,l6e as eA,P1 as eB,$v as eC,rL as eD,kde as eE,Ade as eF,Rde as eG,_de as eH,Pde as eI,Qde as eJ,Vpe as eK,f6 as eL,Rd as eM,qIe as eN,UIe as eO,oOe as eP,Ze as eQ,nt as eR,Ae as eS,tt as eT,mf as eU,PL as eV,BPe as eW,s8e as eX,nx as eY,WIe as eZ,uk as e_,Zue as ea,WM as eb,bve as ec,c8e as ed,fAe as ee,B9 as ef,yx as eg,$Re as eh,wu as ei,wBe as ej,xc as ek,Ns as el,QBe as em,_fe as en,mfe as eo,TRe as ep,wfe as eq,bfe as er,s9 as es,p9 as et,ffe as eu,IRe as ev,Vg as ew,Nv as ex,qN as ey,ZPe as ez,$t as f,r8e as f$,VIe as f0,a8e as f1,P9 as f2,Eve as f3,MBe as f4,NBe as f5,LBe as f6,DBe as f7,BBe as f8,FBe as f9,Zxe as fA,jxe as fB,Sxe as fC,a1e as fD,aae as fE,Uxe as fF,Ix as fG,dM as fH,$l as fI,$Ce as fJ,fM as fK,FCe as fL,jCe as fM,UCe as fN,WCe as fO,uM as fP,hM as fQ,dme as fR,Epe as fS,UL as fT,Dc as fU,PV as fV,Ole as fW,IH as fX,xBe as fY,pD as fZ,D1 as f_,$Be as fa,kpe as fb,h8e as fc,px as fd,l8e as fe,m8e as ff,v8e as fg,g8e as fh,nAe as fi,iAe as fj,mRe as fk,OBe as fl,bpe as fm,lve as fn,HRe as fo,yt as fp,fe as fq,qBe as fr,KBe as fs,XBe as ft,JBe as fu,YBe as fv,ave as fw,GBe as fx,LT as fy,DT as fz,ts as g,kCe as g0,ki as g1,Yr as g2,Ou as g3,hU as g4,gU as g5,K6 as g6,oa as g7,e8e as g8,ZBe as g9,Bce as ga,Vh as gb,ZL as gc,QL as gd,zce as ge,o8e as gf,t9 as gg,Dv as gh,Lv as gi,Xce as gj,qce as gk,r9 as gl,nue as gm,aue as gn,jP as go,iue as gp,Uce as gq,ih as gr,o9 as gs,N2 as gt,lh as gu,wP as gv,gt as h,Ve as i,l as j,Mve as k,pn as l,pa as m,n0 as n,r0 as o,uD as p,ma as q,m as r,C as s,jt as t,Vn as u,Cr as v,k1 as w,qt as x,ve as y,OL as z};