unleash-server 4.22.0-beta.2 → 4.22.0-beta.21

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 (173) hide show
  1. package/dist/lib/addons/feature-event-formatter-md.d.ts +12 -3
  2. package/dist/lib/addons/feature-event-formatter-md.js +135 -31
  3. package/dist/lib/addons/feature-event-formatter-md.js.map +1 -1
  4. package/dist/lib/addons/feature-event-formatter-md.test.d.ts +1 -0
  5. package/dist/lib/addons/feature-event-formatter-md.test.js +483 -0
  6. package/dist/lib/addons/feature-event-formatter-md.test.js.map +1 -0
  7. package/dist/lib/app.js +1 -1
  8. package/dist/lib/app.js.map +1 -1
  9. package/dist/lib/features/export-import-toggles/export-import-permissions.e2e.test.js +1 -1
  10. package/dist/lib/features/export-import-toggles/export-import-permissions.e2e.test.js.map +1 -1
  11. package/dist/lib/openapi/index.d.ts +46 -6
  12. package/dist/lib/openapi/spec/bulk-metrics-schema.d.ts +23 -3
  13. package/dist/lib/openapi/spec/bulk-registration-schema.d.ts +23 -3
  14. package/dist/lib/openapi/spec/bulk-registration-schema.js +15 -3
  15. package/dist/lib/openapi/spec/bulk-registration-schema.js.map +1 -1
  16. package/dist/lib/routes/admin-api/maintenance.d.ts +0 -1
  17. package/dist/lib/routes/admin-api/maintenance.js +0 -8
  18. package/dist/lib/routes/admin-api/maintenance.js.map +1 -1
  19. package/dist/lib/routes/admin-api/project/variants.js +29 -0
  20. package/dist/lib/routes/admin-api/project/variants.js.map +1 -1
  21. package/dist/lib/services/access-service.d.ts +2 -2
  22. package/dist/lib/services/access-service.js.map +1 -1
  23. package/dist/lib/types/experimental.d.ts +1 -2
  24. package/dist/lib/types/experimental.js +1 -2
  25. package/dist/lib/types/experimental.js.map +1 -1
  26. package/dist/migrations/20201216140726-add-last-seen-to-features.js +1 -0
  27. package/dist/migrations/20201216140726-add-last-seen-to-features.js.map +1 -1
  28. package/dist/migrations/20210105083014-add-tag-and-tag-types.js +1 -0
  29. package/dist/migrations/20210105083014-add-tag-and-tag-types.js.map +1 -1
  30. package/dist/migrations/20210119084617-add-addon-table.js +1 -0
  31. package/dist/migrations/20210119084617-add-addon-table.js.map +1 -1
  32. package/dist/migrations/20210212114759-add-session-table.js +1 -0
  33. package/dist/migrations/20210212114759-add-session-table.js.map +1 -1
  34. package/dist/migrations/20210217195834-rbac-tables.js +1 -0
  35. package/dist/migrations/20210217195834-rbac-tables.js.map +1 -1
  36. package/dist/migrations/20210409120136-create-reset-token-table.js +1 -0
  37. package/dist/migrations/20210409120136-create-reset-token-table.js.map +1 -1
  38. package/dist/migrations/20210414141220-fix-misspellings-in-role-descriptions.js +1 -0
  39. package/dist/migrations/20210414141220-fix-misspellings-in-role-descriptions.js.map +1 -1
  40. package/dist/migrations/20210423103647-lowercase-all-emails.js +1 -0
  41. package/dist/migrations/20210423103647-lowercase-all-emails.js.map +1 -1
  42. package/dist/migrations/20210428103923-onboard-projects-to-rbac.js +1 -0
  43. package/dist/migrations/20210428103923-onboard-projects-to-rbac.js.map +1 -1
  44. package/dist/migrations/20210504101429-deprecate-strategies.js +1 -0
  45. package/dist/migrations/20210504101429-deprecate-strategies.js.map +1 -1
  46. package/dist/migrations/20210615115226-migrate-strategies-to-feature-strategies.js +1 -0
  47. package/dist/migrations/20210615115226-migrate-strategies-to-feature-strategies.js.map +1 -1
  48. package/dist/migrations/20210618091331-project-environments-table.js +1 -0
  49. package/dist/migrations/20210618091331-project-environments-table.js.map +1 -1
  50. package/dist/migrations/20210618100913-add-cascade-for-user-feedback.js +1 -0
  51. package/dist/migrations/20210618100913-add-cascade-for-user-feedback.js.map +1 -1
  52. package/dist/migrations/20210624114855-drop-strategies-column-from-features.js +1 -0
  53. package/dist/migrations/20210624114855-drop-strategies-column-from-features.js.map +1 -1
  54. package/dist/migrations/20210624115109-drop-enabled-column-from-features.js +1 -0
  55. package/dist/migrations/20210624115109-drop-enabled-column-from-features.js.map +1 -1
  56. package/dist/migrations/20210625102126-connect-default-project-to-global-environment.js +1 -0
  57. package/dist/migrations/20210625102126-connect-default-project-to-global-environment.js.map +1 -1
  58. package/dist/migrations/20210629130734-add-health-rating-to-project.js +1 -0
  59. package/dist/migrations/20210629130734-add-health-rating-to-project.js.map +1 -1
  60. package/dist/migrations/20210830113948-connect-projects-to-global-envrionments.js +1 -0
  61. package/dist/migrations/20210830113948-connect-projects-to-global-envrionments.js.map +1 -1
  62. package/dist/migrations/20210831072631-add-sort-order-and-type-to-env.js +1 -0
  63. package/dist/migrations/20210831072631-add-sort-order-and-type-to-env.js.map +1 -1
  64. package/dist/migrations/20210907124058-add-dbcritic-indices.js +1 -0
  65. package/dist/migrations/20210907124058-add-dbcritic-indices.js.map +1 -1
  66. package/dist/migrations/20210907124850-add-dbcritic-primary-keys.js +1 -0
  67. package/dist/migrations/20210907124850-add-dbcritic-primary-keys.js.map +1 -1
  68. package/dist/migrations/20210908100701-add-enabled-to-environments.js +1 -0
  69. package/dist/migrations/20210908100701-add-enabled-to-environments.js.map +1 -1
  70. package/dist/migrations/20210909085651-add-protected-field-to-environments.js +1 -0
  71. package/dist/migrations/20210909085651-add-protected-field-to-environments.js.map +1 -1
  72. package/dist/migrations/20210913103159-api-keys-scoping.js +1 -0
  73. package/dist/migrations/20210913103159-api-keys-scoping.js.map +1 -1
  74. package/dist/migrations/20210928082228-connect-default-environment-to-all-existing-projects.js +1 -0
  75. package/dist/migrations/20210928082228-connect-default-environment-to-all-existing-projects.js.map +1 -1
  76. package/dist/migrations/20211004104917-client-metrics-env.js +1 -0
  77. package/dist/migrations/20211004104917-client-metrics-env.js.map +1 -1
  78. package/dist/migrations/20211109103930-add-splash-entry-for-users.js +1 -0
  79. package/dist/migrations/20211109103930-add-splash-entry-for-users.js.map +1 -1
  80. package/dist/migrations/20211126112551-disable-default-environment.js +1 -0
  81. package/dist/migrations/20211126112551-disable-default-environment.js.map +1 -1
  82. package/dist/migrations/20211202120808-add-custom-roles.js +1 -0
  83. package/dist/migrations/20211202120808-add-custom-roles.js.map +1 -1
  84. package/dist/migrations/20220103134659-add-permissions-to-project-roles.js +1 -0
  85. package/dist/migrations/20220103134659-add-permissions-to-project-roles.js.map +1 -1
  86. package/dist/migrations/20220103143843-add-permissions-to-editor-role.js +1 -0
  87. package/dist/migrations/20220103143843-add-permissions-to-editor-role.js.map +1 -1
  88. package/dist/migrations/20220111112804-update-permission-descriptions.js +1 -0
  89. package/dist/migrations/20220111112804-update-permission-descriptions.js.map +1 -1
  90. package/dist/migrations/20220111115613-move-feature-toggle-permission.js +1 -0
  91. package/dist/migrations/20220111115613-move-feature-toggle-permission.js.map +1 -1
  92. package/dist/migrations/20220111120346-roles-unique-name.js +1 -0
  93. package/dist/migrations/20220111120346-roles-unique-name.js.map +1 -1
  94. package/dist/migrations/20220111121010-update-project-for-editor-role.js +1 -0
  95. package/dist/migrations/20220111121010-update-project-for-editor-role.js.map +1 -1
  96. package/dist/migrations/20220111125620-role-permission-empty-string-for-non-environment-type.js +1 -0
  97. package/dist/migrations/20220111125620-role-permission-empty-string-for-non-environment-type.js.map +1 -1
  98. package/dist/migrations/20220224081422-remove-project-column-from-roles.js +1 -0
  99. package/dist/migrations/20220224081422-remove-project-column-from-roles.js.map +1 -1
  100. package/dist/migrations/20220408081222-clean-up-duplicate-foreign-key-role-permission.js +1 -0
  101. package/dist/migrations/20220408081222-clean-up-duplicate-foreign-key-role-permission.js.map +1 -1
  102. package/dist/migrations/20220711084613-add-projects-and-environments-for-addons.js +1 -0
  103. package/dist/migrations/20220711084613-add-projects-and-environments-for-addons.js.map +1 -1
  104. package/dist/migrations/20220808110415-add-projects-foreign-key.js +1 -0
  105. package/dist/migrations/20220808110415-add-projects-foreign-key.js.map +1 -1
  106. package/dist/migrations/20221108114358-add-change-request-permissions.js +1 -0
  107. package/dist/migrations/20221108114358-add-change-request-permissions.js.map +1 -1
  108. package/dist/migrations/20221125185244-change-request-unique-approvals.js +1 -0
  109. package/dist/migrations/20221125185244-change-request-unique-approvals.js.map +1 -1
  110. package/dist/migrations/20221128165141-change-request-min-approvals.js +1 -0
  111. package/dist/migrations/20221128165141-change-request-min-approvals.js.map +1 -1
  112. package/dist/migrations/20221205122253-skip-change-request.js +1 -0
  113. package/dist/migrations/20221205122253-skip-change-request.js.map +1 -1
  114. package/dist/migrations/20221220160345-user-pat-permissions.js +1 -0
  115. package/dist/migrations/20221220160345-user-pat-permissions.js.map +1 -1
  116. package/dist/migrations/20221221144132-service-account-users.js +1 -0
  117. package/dist/migrations/20221221144132-service-account-users.js.map +1 -1
  118. package/dist/migrations/20230125065315-project-stats-table.js +1 -0
  119. package/dist/migrations/20230125065315-project-stats-table.js.map +1 -1
  120. package/dist/migrations/20230127111638-new-project-stats-field.js +1 -0
  121. package/dist/migrations/20230127111638-new-project-stats-field.js.map +1 -1
  122. package/dist/migrations/20230130113337-revert-user-pat-permissions.js +1 -0
  123. package/dist/migrations/20230130113337-revert-user-pat-permissions.js.map +1 -1
  124. package/dist/migrations/20230208084046-project-api-token-permissions.js +1 -0
  125. package/dist/migrations/20230208084046-project-api-token-permissions.js.map +1 -1
  126. package/dist/migrations/20230208093627-assign-project-api-token-permissions-editor.js +1 -0
  127. package/dist/migrations/20230208093627-assign-project-api-token-permissions-editor.js.map +1 -1
  128. package/dist/migrations/20230208093750-assign-project-api-token-permissions-owner.js +1 -0
  129. package/dist/migrations/20230208093750-assign-project-api-token-permissions-owner.js.map +1 -1
  130. package/dist/migrations/20230208093942-assign-project-api-token-permissions-member.js +1 -0
  131. package/dist/migrations/20230208093942-assign-project-api-token-permissions-member.js.map +1 -1
  132. package/dist/migrations/20230222084211-add-login-events-table.js +1 -0
  133. package/dist/migrations/20230222084211-add-login-events-table.js.map +1 -1
  134. package/dist/migrations/20230222154915-create-notiications-table.js +4 -4
  135. package/dist/migrations/20230224093446-drop-createdBy-from-notifications-table.d.ts +2 -0
  136. package/dist/migrations/20230224093446-drop-createdBy-from-notifications-table.js +14 -0
  137. package/dist/migrations/20230224093446-drop-createdBy-from-notifications-table.js.map +1 -0
  138. package/dist/migrations/20230227115320-rename-login-events-table-to-sign-on-log.d.ts +2 -0
  139. package/dist/migrations/20230227115320-rename-login-events-table-to-sign-on-log.js +8 -0
  140. package/dist/migrations/20230227115320-rename-login-events-table-to-sign-on-log.js.map +1 -0
  141. package/dist/migrations/20230227120500-change-display-name-for-variants-per-env-permission.d.ts +2 -0
  142. package/dist/migrations/20230227120500-change-display-name-for-variants-per-env-permission.js +15 -0
  143. package/dist/migrations/20230227120500-change-display-name-for-variants-per-env-permission.js.map +1 -0
  144. package/dist/migrations/20230227123106-add-setting-for-sign-on-log-retention.d.ts +2 -0
  145. package/dist/migrations/20230227123106-add-setting-for-sign-on-log-retention.js +8 -0
  146. package/dist/migrations/20230227123106-add-setting-for-sign-on-log-retention.js.map +1 -0
  147. package/dist/server-dev.js +0 -1
  148. package/dist/server-dev.js.map +1 -1
  149. package/dist/test/e2e/api/admin/maintenance.e2e.test.js +2 -49
  150. package/dist/test/e2e/api/admin/maintenance.e2e.test.js.map +1 -1
  151. package/dist/test/e2e/stores/setting-store.e2e.test.js +1 -1
  152. package/frontend/build/index.html +1 -1
  153. package/frontend/build/static/{CreateProject-b852657c.js → CreateProject-f7ca75e0.js} +1 -1
  154. package/frontend/build/static/{Error-29ef2974.js → Error-2a87926a.js} +1 -1
  155. package/frontend/build/static/{ExpandMore-4b3cbf87.js → ExpandMore-e298a9a3.js} +1 -1
  156. package/frontend/build/static/{FeatureArchiveDialog-f9d8c71d.js → FeatureArchiveDialog-31430c0e.js} +1 -1
  157. package/frontend/build/static/{FeatureMetricsChart-86cc2280.js → FeatureMetricsChart-bcb36dbc.js} +1 -1
  158. package/frontend/build/static/{FeatureViewLazyExport-1366d6bf.js → FeatureViewLazyExport-fe2a9be7.js} +2 -2
  159. package/frontend/build/static/{LazyAdminExport-d9800386.js → LazyAdminExport-9ff8d442.js} +13 -13
  160. package/frontend/build/static/{LazyProjectExport-ef4471a8.js → LazyProjectExport-644ec52e.js} +8 -8
  161. package/frontend/build/static/{NetworkOverview-4b90dc34.js → NetworkOverview-cecb7bdc.js} +1 -1
  162. package/frontend/build/static/{NetworkTraffic-c9de9d5f.js → NetworkTraffic-953679ab.js} +1 -1
  163. package/frontend/build/static/{Playground-ee072216.js → Playground-f8d65d33.js} +1 -1
  164. package/frontend/build/static/{StrategyItemContainer-b65caaa6.js → StrategyItemContainer-b3595995.js} +1 -1
  165. package/frontend/build/static/{chartjs-adapter-date-fns.esm-5c47f5e0.js → chartjs-adapter-date-fns.esm-ad422152.js} +7 -7
  166. package/frontend/build/static/{index-bbbae9a8.js → index-19ee2080.js} +1 -1
  167. package/frontend/build/static/index-1d8518d6.js +392 -0
  168. package/frontend/build/static/{index-031b8ec3.js → index-c5afb04d.js} +1 -1
  169. package/frontend/build/static/{unknownify-88f06eea.js → unknownify-21e26f46.js} +1 -1
  170. package/frontend/build/static/{useProjectRole-d8edb83e.js → useProjectRole-9a28ceaf.js} +1 -1
  171. package/frontend/package.json +3 -3
  172. package/package.json +2 -2
  173. package/frontend/build/static/index-193ec8c2.js +0 -392
@@ -1,392 +0,0 @@
1
- var YM=Object.defineProperty;var XM=(e,t,n)=>t in e?YM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ui=(e,t,n)=>(XM(e,typeof t!="symbol"?t+"":t,n),n);function JM(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 a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Ma=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function LP(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 a=Function.bind.apply(t,o);return new a}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 jd={},QM={get exports(){return jd},set exports(e){jd=e}},_p={};/*
2
- object-assign
3
- (c) Sindre Sorhus
4
- @license MIT
5
- */var M2=Object.getOwnPropertySymbols,ZM=Object.prototype.hasOwnProperty,eN=Object.prototype.propertyIsEnumerable;function tN(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function nN(){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(a){return t[a]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(a){o[a]=a}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var MP=nN()?Object.assign:function(e,t){for(var n,r=tN(e),o,a=1;a<arguments.length;a++){n=Object(arguments[a]);for(var i in n)ZM.call(n,i)&&(r[i]=n[i]);if(M2){o=M2(n);for(var l=0;l<o.length;l++)eN.call(n,o[l])&&(r[o[l]]=n[o[l]])}}return r},p={},rN={get exports(){return p},set exports(e){p=e}},Xt={};/** @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 vw=MP,Vc=60103,NP=60106;Xt.Fragment=60107;Xt.StrictMode=60108;Xt.Profiler=60114;var DP=60109,BP=60110,FP=60112;Xt.Suspense=60113;var zP=60115,jP=60116;if(typeof Symbol=="function"&&Symbol.for){var da=Symbol.for;Vc=da("react.element"),NP=da("react.portal"),Xt.Fragment=da("react.fragment"),Xt.StrictMode=da("react.strict_mode"),Xt.Profiler=da("react.profiler"),DP=da("react.provider"),BP=da("react.context"),FP=da("react.forward_ref"),Xt.Suspense=da("react.suspense"),zP=da("react.memo"),jP=da("react.lazy")}var N2=typeof Symbol=="function"&&Symbol.iterator;function oN(e){return e===null||typeof e!="object"?null:(e=N2&&e[N2]||e["@@iterator"],typeof e=="function"?e:null)}function Rp(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 UP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},WP={};function Gc(e,t,n){this.props=e,this.context=t,this.refs=WP,this.updater=n||UP}Gc.prototype.isReactComponent={};Gc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Rp(85));this.updater.enqueueSetState(this,e,t,"setState")};Gc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function HP(){}HP.prototype=Gc.prototype;function yw(e,t,n){this.props=e,this.context=t,this.refs=WP,this.updater=n||UP}var bw=yw.prototype=new HP;bw.constructor=yw;vw(bw,Gc.prototype);bw.isPureReactComponent=!0;var ww={current:null},VP=Object.prototype.hasOwnProperty,GP={key:!0,ref:!0,__self:!0,__source:!0};function qP(e,t,n){var r,o={},a=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)VP.call(t,r)&&!GP.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Vc,type:e,key:a,ref:i,props:o,_owner:ww.current}}function aN(e,t){return{$$typeof:Vc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Sw(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vc}function iN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var D2=/\/+/g;function ky(e,t){return typeof e=="object"&&e!==null&&e.key!=null?iN(""+e.key):t.toString(36)}function mh(e,t,n,r,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Vc:case NP:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+ky(i,0):r,Array.isArray(o)?(n="",e!=null&&(n=e.replace(D2,"$&/")+"/"),mh(o,t,n,"",function(u){return u})):o!=null&&(Sw(o)&&(o=aN(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(D2,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){a=e[l];var c=r+ky(a,l);i+=mh(a,t,n,c,o)}else if(c=oN(e),typeof c=="function")for(e=c.call(e),l=0;!(a=e.next()).done;)a=a.value,c=r+ky(a,l++),i+=mh(a,t,n,c,o);else if(a==="object")throw t=""+e,Error(Rp(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return i}function xf(e,t,n){if(e==null)return e;var r=[],o=0;return mh(e,r,"","",function(a){return t.call(n,a,o++)}),r}function sN(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 KP={current:null};function Ai(){var e=KP.current;if(e===null)throw Error(Rp(321));return e}var lN={ReactCurrentDispatcher:KP,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:ww,IsSomeRendererActing:{current:!1},assign:vw};Xt.Children={map:xf,forEach:function(e,t,n){xf(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return xf(e,function(){t++}),t},toArray:function(e){return xf(e,function(t){return t})||[]},only:function(e){if(!Sw(e))throw Error(Rp(143));return e}};Xt.Component=Gc;Xt.PureComponent=yw;Xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lN;Xt.cloneElement=function(e,t,n){if(e==null)throw Error(Rp(267,e));var r=vw({},e.props),o=e.key,a=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,i=ww.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)VP.call(t,c)&&!GP.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Vc,type:e.type,key:o,ref:a,props:r,_owner:i}};Xt.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:BP,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:DP,_context:e},e.Consumer=e};Xt.createElement=qP;Xt.createFactory=function(e){var t=qP.bind(null,e);return t.type=e,t};Xt.createRef=function(){return{current:null}};Xt.forwardRef=function(e){return{$$typeof:FP,render:e}};Xt.isValidElement=Sw;Xt.lazy=function(e){return{$$typeof:jP,_payload:{_status:-1,_result:e},_init:sN}};Xt.memo=function(e,t){return{$$typeof:zP,type:e,compare:t===void 0?null:t}};Xt.useCallback=function(e,t){return Ai().useCallback(e,t)};Xt.useContext=function(e,t){return Ai().useContext(e,t)};Xt.useDebugValue=function(){};Xt.useEffect=function(e,t){return Ai().useEffect(e,t)};Xt.useImperativeHandle=function(e,t,n){return Ai().useImperativeHandle(e,t,n)};Xt.useLayoutEffect=function(e,t){return Ai().useLayoutEffect(e,t)};Xt.useMemo=function(e,t){return Ai().useMemo(e,t)};Xt.useReducer=function(e,t,n){return Ai().useReducer(e,t,n)};Xt.useRef=function(e){return Ai().useRef(e)};Xt.useState=function(e){return Ai().useState(e)};Xt.version="17.0.2";(function(e){e.exports=Xt})(rN);const zt=Gm(p),ll=JM({__proto__:null,default:zt},[p]);/** @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 cN=p,YP=60103;_p.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var B2=Symbol.for;YP=B2("react.element"),_p.Fragment=B2("react.fragment")}var uN=cN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dN=Object.prototype.hasOwnProperty,pN={key:!0,ref:!0,__self:!0,__source:!0};function XP(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)dN.call(t,r)&&!pN.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:YP,type:e,key:a,ref:i,props:o,_owner:uN.current}}_p.jsx=XP;_p.jsxs=XP;(function(e){e.exports=_p})(QM);const ke=jd.Fragment,s=jd.jsx,T=jd.jsxs,fN=Object.freeze(Object.defineProperty({__proto__:null,Fragment:ke,jsx:s,jsxs:T},Symbol.toStringTag,{value:"Module"}));var zr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof zr<"u"&&zr,io={searchParams:"URLSearchParams"in zr,iterable:"Symbol"in zr&&"iterator"in Symbol,blob:"FileReader"in zr&&"Blob"in zr&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in zr,arrayBuffer:"ArrayBuffer"in zr};function hN(e){return e&&DataView.prototype.isPrototypeOf(e)}if(io.arrayBuffer)var mN=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],gN=ArrayBuffer.isView||function(e){return e&&mN.indexOf(Object.prototype.toString.call(e))>-1};function Pp(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 xw(e){return typeof e!="string"&&(e=String(e)),e}function Cw(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return io.iterable&&(t[Symbol.iterator]=function(){return t}),t}function hr(e){this.map={},e instanceof hr?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)}hr.prototype.append=function(e,t){e=Pp(e),t=xw(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};hr.prototype.delete=function(e){delete this.map[Pp(e)]};hr.prototype.get=function(e){return e=Pp(e),this.has(e)?this.map[e]:null};hr.prototype.has=function(e){return this.map.hasOwnProperty(Pp(e))};hr.prototype.set=function(e,t){this.map[Pp(e)]=xw(t)};hr.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};hr.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),Cw(e)};hr.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),Cw(e)};hr.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),Cw(e)};io.iterable&&(hr.prototype[Symbol.iterator]=hr.prototype.entries);function Ay(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function JP(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function vN(e){var t=new FileReader,n=JP(t);return t.readAsArrayBuffer(e),n}function yN(e){var t=new FileReader,n=JP(t);return t.readAsText(e),n}function bN(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 F2(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function QP(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:io.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:io.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:io.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():io.arrayBuffer&&io.blob&&hN(e)?(this._bodyArrayBuffer=F2(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):io.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||gN(e))?this._bodyArrayBuffer=F2(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):io.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},io.blob&&(this.blob=function(){var e=Ay(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=Ay(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(vN)}),this.text=function(){var e=Ay(this);if(e)return e;if(this._bodyBlob)return yN(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(bN(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},io.formData&&(this.formData=function(){return this.text().then(xN)}),this.json=function(){return this.text().then(JSON.parse)},this}var wN=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function SN(e){var t=e.toUpperCase();return wN.indexOf(t)>-1?t:e}function cl(e,t){if(!(this instanceof cl))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 cl){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new hr(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 hr(t.headers)),this.method=SN(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()}}}cl.prototype.clone=function(){return new cl(this,{body:this._bodyInit})};function xN(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),o=r.shift().replace(/\+/g," "),a=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(a))}}),t}function CN(e){var t=new hr,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(":"),a=o.shift().trim();if(a){var i=o.join(":").trim();t.append(a,i)}}),t}QP.call(cl.prototype);function Ya(e,t){if(!(this instanceof Ya))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 hr(t.headers),this.url=t.url||"",this._initBody(e)}QP.call(Ya.prototype);Ya.prototype.clone=function(){return new Ya(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new hr(this.headers),url:this.url})};Ya.error=function(){var e=new Ya(null,{status:0,statusText:""});return e.type="error",e};var EN=[301,302,303,307,308];Ya.redirect=function(e,t){if(EN.indexOf(t)===-1)throw new RangeError("Invalid status code");return new Ya(null,{status:t,headers:{location:e}})};var Vs=zr.DOMException;try{new Vs}catch{Vs=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},Vs.prototype=Object.create(Error.prototype),Vs.prototype.constructor=Vs}function ZP(e,t){return new Promise(function(n,r){var o=new cl(e,t);if(o.signal&&o.signal.aborted)return r(new Vs("Aborted","AbortError"));var a=new XMLHttpRequest;function i(){a.abort()}a.onload=function(){var c={status:a.status,statusText:a.statusText,headers:CN(a.getAllResponseHeaders()||"")};c.url="responseURL"in a?a.responseURL:c.headers.get("X-Request-URL");var u="response"in a?a.response:a.responseText;setTimeout(function(){n(new Ya(u,c))},0)},a.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},a.onabort=function(){setTimeout(function(){r(new Vs("Aborted","AbortError"))},0)};function l(c){try{return c===""&&zr.location.href?zr.location.href:c}catch{return c}}a.open(o.method,l(o.url),!0),o.credentials==="include"?a.withCredentials=!0:o.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&(io.blob?a.responseType="blob":io.arrayBuffer&&o.headers.get("Content-Type")&&o.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(a.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof hr)?Object.getOwnPropertyNames(t.headers).forEach(function(c){a.setRequestHeader(c,xw(t.headers[c]))}):o.headers.forEach(function(c,u){a.setRequestHeader(u,c)}),o.signal&&(o.signal.addEventListener("abort",i),a.onreadystatechange=function(){a.readyState===4&&o.signal.removeEventListener("abort",i)}),a.send(typeof o._bodyInit>"u"?null:o._bodyInit)})}ZP.polyfill=!0;zr.fetch||(zr.fetch=ZP,zr.Headers=hr,zr.Request=cl,zr.Response=Ya);var z2={},TN={get exports(){return z2},set exports(e){z2=e}};(function(e){var t=function(n){var r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(W,z,R){W[z]=R.value},i,l=typeof Symbol=="function"?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function f(W,z,R){return Object.defineProperty(W,z,{value:R,enumerable:!0,configurable:!0,writable:!0}),W[z]}try{f({},"")}catch{f=function(z,R,N){return z[R]=N}}function h(W,z,R,N){var ee=z&&z.prototype instanceof x?z:x,re=Object.create(ee.prototype),Se=new V(N||[]);return a(re,"_invoke",{value:D(W,R,Se)}),re}n.wrap=h;function m(W,z,R){try{return{type:"normal",arg:W.call(z,R)}}catch(N){return{type:"throw",arg:N}}}var y="suspendedStart",g="suspendedYield",v="executing",b="completed",w={};function x(){}function E(){}function A(){}var k={};f(k,c,function(){return this});var _=Object.getPrototypeOf,O=_&&_(_(te([])));O&&O!==r&&o.call(O,c)&&(k=O);var L=A.prototype=x.prototype=Object.create(k);E.prototype=A,a(L,"constructor",{value:A,configurable:!0}),a(A,"constructor",{value:E,configurable:!0}),E.displayName=f(A,d,"GeneratorFunction");function I(W){["next","throw","return"].forEach(function(z){f(W,z,function(R){return this._invoke(z,R)})})}n.isGeneratorFunction=function(W){var z=typeof W=="function"&&W.constructor;return z?z===E||(z.displayName||z.name)==="GeneratorFunction":!1},n.mark=function(W){return Object.setPrototypeOf?Object.setPrototypeOf(W,A):(W.__proto__=A,f(W,d,"GeneratorFunction")),W.prototype=Object.create(L),W},n.awrap=function(W){return{__await:W}};function $(W,z){function R(re,Se,ce,Ce){var xe=m(W[re],W,Se);if(xe.type==="throw")Ce(xe.arg);else{var Ee=xe.arg,et=Ee.value;return et&&typeof et=="object"&&o.call(et,"__await")?z.resolve(et.__await).then(function(me){R("next",me,ce,Ce)},function(me){R("throw",me,ce,Ce)}):z.resolve(et).then(function(me){Ee.value=me,ce(Ee)},function(me){return R("throw",me,ce,Ce)})}}var N;function ee(re,Se){function ce(){return new z(function(Ce,xe){R(re,Se,Ce,xe)})}return N=N?N.then(ce,ce):ce()}a(this,"_invoke",{value:ee})}I($.prototype),f($.prototype,u,function(){return this}),n.AsyncIterator=$,n.async=function(W,z,R,N,ee){ee===void 0&&(ee=Promise);var re=new $(h(W,z,R,N),ee);return n.isGeneratorFunction(z)?re:re.next().then(function(Se){return Se.done?Se.value:re.next()})};function D(W,z,R){var N=y;return function(re,Se){if(N===v)throw new Error("Generator is already running");if(N===b){if(re==="throw")throw Se;return Z()}for(R.method=re,R.arg=Se;;){var ce=R.delegate;if(ce){var Ce=F(ce,R);if(Ce){if(Ce===w)continue;return Ce}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(N===y)throw N=b,R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);N=v;var xe=m(W,z,R);if(xe.type==="normal"){if(N=R.done?b:g,xe.arg===w)continue;return{value:xe.arg,done:R.done}}else xe.type==="throw"&&(N=b,R.method="throw",R.arg=xe.arg)}}}function F(W,z){var R=z.method,N=W.iterator[R];if(N===i)return z.delegate=null,R==="throw"&&W.iterator.return&&(z.method="return",z.arg=i,F(W,z),z.method==="throw")||R!=="return"&&(z.method="throw",z.arg=new TypeError("The iterator does not provide a '"+R+"' method")),w;var ee=m(N,W.iterator,z.arg);if(ee.type==="throw")return z.method="throw",z.arg=ee.arg,z.delegate=null,w;var re=ee.arg;if(!re)return z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,w;if(re.done)z[W.resultName]=re.value,z.next=W.nextLoc,z.method!=="return"&&(z.method="next",z.arg=i);else return re;return z.delegate=null,w}I(L),f(L,d,"Generator"),f(L,c,function(){return this}),f(L,"toString",function(){return"[object Generator]"});function U(W){var z={tryLoc:W[0]};1 in W&&(z.catchLoc=W[1]),2 in W&&(z.finallyLoc=W[2],z.afterLoc=W[3]),this.tryEntries.push(z)}function Y(W){var z=W.completion||{};z.type="normal",delete z.arg,W.completion=z}function V(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(U,this),this.reset(!0)}n.keys=function(W){var z=Object(W),R=[];for(var N in z)R.push(N);return R.reverse(),function ee(){for(;R.length;){var re=R.pop();if(re in z)return ee.value=re,ee.done=!1,ee}return ee.done=!0,ee}};function te(W){if(W){var z=W[c];if(z)return z.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var R=-1,N=function ee(){for(;++R<W.length;)if(o.call(W,R))return ee.value=W[R],ee.done=!1,ee;return ee.value=i,ee.done=!0,ee};return N.next=N}}return{next:Z}}n.values=te;function Z(){return{value:i,done:!0}}return V.prototype={constructor:V,reset:function(W){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(Y),!W)for(var z in this)z.charAt(0)==="t"&&o.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=i)},stop:function(){this.done=!0;var W=this.tryEntries[0],z=W.completion;if(z.type==="throw")throw z.arg;return this.rval},dispatchException:function(W){if(this.done)throw W;var z=this;function R(Ce,xe){return re.type="throw",re.arg=W,z.next=Ce,xe&&(z.method="next",z.arg=i),!!xe}for(var N=this.tryEntries.length-1;N>=0;--N){var ee=this.tryEntries[N],re=ee.completion;if(ee.tryLoc==="root")return R("end");if(ee.tryLoc<=this.prev){var Se=o.call(ee,"catchLoc"),ce=o.call(ee,"finallyLoc");if(Se&&ce){if(this.prev<ee.catchLoc)return R(ee.catchLoc,!0);if(this.prev<ee.finallyLoc)return R(ee.finallyLoc)}else if(Se){if(this.prev<ee.catchLoc)return R(ee.catchLoc,!0)}else if(ce){if(this.prev<ee.finallyLoc)return R(ee.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(W,z){for(var R=this.tryEntries.length-1;R>=0;--R){var N=this.tryEntries[R];if(N.tryLoc<=this.prev&&o.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var ee=N;break}}ee&&(W==="break"||W==="continue")&&ee.tryLoc<=z&&z<=ee.finallyLoc&&(ee=null);var re=ee?ee.completion:{};return re.type=W,re.arg=z,ee?(this.method="next",this.next=ee.finallyLoc,w):this.complete(re)},complete:function(W,z){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"&&z&&(this.next=z),w},finish:function(W){for(var z=this.tryEntries.length-1;z>=0;--z){var R=this.tryEntries[z];if(R.finallyLoc===W)return this.complete(R.completion,R.afterLoc),Y(R),w}},catch:function(W){for(var z=this.tryEntries.length-1;z>=0;--z){var R=this.tryEntries[z];if(R.tryLoc===W){var N=R.completion;if(N.type==="throw"){var ee=N.arg;Y(R)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function(W,z,R){return this.delegate={iterator:te(W),resultName:z,nextLoc:R},this.method==="next"&&(this.arg=i),w}},n}(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(TN);var Ud={},kN={get exports(){return Ud},set exports(e){Ud=e}},ra={},p0={},AN={get exports(){return p0},set exports(e){p0=e}},eI={};/** @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 a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var c=null,u=null,d=function(){if(c!==null)try{var R=e.unstable_now();c(!0,R),c=null}catch(N){throw setTimeout(d,0),N}};t=function(R){c!==null?setTimeout(t,0,R):(c=R,setTimeout(d,0))},n=function(R,N){u=setTimeout(R,N)},r=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var m=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 m!="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 y=!1,g=null,v=-1,b=5,w=0;e.unstable_shouldYield=function(){return e.unstable_now()>=w},o=function(){},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<R?Math.floor(1e3/R):5};var x=new MessageChannel,E=x.port2;x.port1.onmessage=function(){if(g!==null){var R=e.unstable_now();w=R+b;try{g(!0,R)?E.postMessage(null):(y=!1,g=null)}catch(N){throw E.postMessage(null),N}}else y=!1},t=function(R){g=R,y||(y=!0,E.postMessage(null))},n=function(R,N){v=f(function(){R(e.unstable_now())},N)},r=function(){h(v),v=-1}}function A(R,N){var ee=R.length;R.push(N);e:for(;;){var re=ee-1>>>1,Se=R[re];if(Se!==void 0&&0<O(Se,N))R[re]=N,R[ee]=Se,ee=re;else break e}}function k(R){return R=R[0],R===void 0?null:R}function _(R){var N=R[0];if(N!==void 0){var ee=R.pop();if(ee!==N){R[0]=ee;e:for(var re=0,Se=R.length;re<Se;){var ce=2*(re+1)-1,Ce=R[ce],xe=ce+1,Ee=R[xe];if(Ce!==void 0&&0>O(Ce,ee))Ee!==void 0&&0>O(Ee,Ce)?(R[re]=Ee,R[xe]=ee,re=xe):(R[re]=Ce,R[ce]=ee,re=ce);else if(Ee!==void 0&&0>O(Ee,ee))R[re]=Ee,R[xe]=ee,re=xe;else break e}}return N}return null}function O(R,N){var ee=R.sortIndex-N.sortIndex;return ee!==0?ee:R.id-N.id}var L=[],I=[],$=1,D=null,F=3,U=!1,Y=!1,V=!1;function te(R){for(var N=k(I);N!==null;){if(N.callback===null)_(I);else if(N.startTime<=R)_(I),N.sortIndex=N.expirationTime,A(L,N);else break;N=k(I)}}function Z(R){if(V=!1,te(R),!Y)if(k(L)!==null)Y=!0,t(W);else{var N=k(I);N!==null&&n(Z,N.startTime-R)}}function W(R,N){Y=!1,V&&(V=!1,r()),U=!0;var ee=F;try{for(te(N),D=k(L);D!==null&&(!(D.expirationTime>N)||R&&!e.unstable_shouldYield());){var re=D.callback;if(typeof re=="function"){D.callback=null,F=D.priorityLevel;var Se=re(D.expirationTime<=N);N=e.unstable_now(),typeof Se=="function"?D.callback=Se:D===k(L)&&_(L),te(N)}else _(L);D=k(L)}if(D!==null)var ce=!0;else{var Ce=k(I);Ce!==null&&n(Z,Ce.startTime-N),ce=!1}return ce}finally{D=null,F=ee,U=!1}}var z=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(R){R.callback=null},e.unstable_continueExecution=function(){Y||U||(Y=!0,t(W))},e.unstable_getCurrentPriorityLevel=function(){return F},e.unstable_getFirstCallbackNode=function(){return k(L)},e.unstable_next=function(R){switch(F){case 1:case 2:case 3:var N=3;break;default:N=F}var ee=F;F=N;try{return R()}finally{F=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=z,e.unstable_runWithPriority=function(R,N){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var ee=F;F=R;try{return N()}finally{F=ee}},e.unstable_scheduleCallback=function(R,N,ee){var re=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?re+ee:re):ee=re,R){case 1:var Se=-1;break;case 2:Se=250;break;case 5:Se=1073741823;break;case 4:Se=1e4;break;default:Se=5e3}return Se=ee+Se,R={id:$++,callback:N,priorityLevel:R,startTime:ee,expirationTime:Se,sortIndex:-1},ee>re?(R.sortIndex=ee,A(I,R),k(L)===null&&R===k(I)&&(V?r():V=!0,n(Z,ee-re))):(R.sortIndex=Se,A(L,R),Y||U||(Y=!0,t(W))),R},e.unstable_wrapCallback=function(R){var N=F;return function(){var ee=F;F=N;try{return R.apply(this,arguments)}finally{F=ee}}}})(eI);(function(e){e.exports=eI})(AN);/** @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 qm=p,Fn=MP,Er=p0;function Oe(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(!qm)throw Error(Oe(227));var tI=new Set,Wd={};function wl(e,t){Ac(e,t),Ac(e+"Capture",t)}function Ac(e,t){for(Wd[e]=t,e=0;e<t.length;e++)tI.add(t[e])}var Ci=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_N=/^[: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]*$/,j2=Object.prototype.hasOwnProperty,U2={},W2={};function RN(e){return j2.call(W2,e)?!0:j2.call(U2,e)?!1:_N.test(e)?W2[e]=!0:(U2[e]=!0,!1)}function PN(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 IN(e,t,n,r){if(t===null||typeof t>"u"||PN(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 Qr(e,t,n,r,o,a,i){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=a,this.removeEmptyString=i}var Lr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lr[e]=new Qr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lr[t]=new Qr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lr[e]=new Qr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lr[e]=new Qr(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){Lr[e]=new Qr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lr[e]=new Qr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lr[e]=new Qr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lr[e]=new Qr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lr[e]=new Qr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ew=/[\-:]([a-z])/g;function Tw(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(Ew,Tw);Lr[t]=new Qr(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(Ew,Tw);Lr[t]=new Qr(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(Ew,Tw);Lr[t]=new Qr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lr[e]=new Qr(e,1,!1,e.toLowerCase(),null,!1,!1)});Lr.xlinkHref=new Qr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lr[e]=new Qr(e,1,!1,e.toLowerCase(),null,!0,!0)});function kw(e,t,n,r){var o=Lr.hasOwnProperty(t)?Lr[t]:null,a=o!==null?o.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");a||(IN(t,n,o,r)&&(n=null),r||o===null?RN(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 Sl=qm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,od=60103,Xs=60106,Wi=60107,Aw=60108,md=60114,_w=60109,Rw=60110,Km=60112,gd=60113,Wh=60120,Ym=60115,Pw=60116,Iw=60121,$w=60128,nI=60129,Ow=60130,f0=60131;if(typeof Symbol=="function"&&Symbol.for){var wr=Symbol.for;od=wr("react.element"),Xs=wr("react.portal"),Wi=wr("react.fragment"),Aw=wr("react.strict_mode"),md=wr("react.profiler"),_w=wr("react.provider"),Rw=wr("react.context"),Km=wr("react.forward_ref"),gd=wr("react.suspense"),Wh=wr("react.suspense_list"),Ym=wr("react.memo"),Pw=wr("react.lazy"),Iw=wr("react.block"),wr("react.scope"),$w=wr("react.opaque.id"),nI=wr("react.debug_trace_mode"),Ow=wr("react.offscreen"),f0=wr("react.legacy_hidden")}var H2=typeof Symbol=="function"&&Symbol.iterator;function ku(e){return e===null||typeof e!="object"?null:(e=H2&&e[H2]||e["@@iterator"],typeof e=="function"?e:null)}var _y;function ad(e){if(_y===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_y=t&&t[1]||""}return`
35
- `+_y+e}var Ry=!1;function Cf(e,t){if(!e||Ry)return"";Ry=!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
- `),a=r.stack.split(`
37
- `),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(i!==1||l!==1)do if(i--,l--,0>l||o[i]!==a[l])return`
38
- `+o[i].replace(" at new "," at ");while(1<=i&&0<=l);break}}}finally{Ry=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ad(e):""}function $N(e){switch(e.tag){case 5:return ad(e.type);case 16:return ad("Lazy");case 13:return ad("Suspense");case 19:return ad("SuspenseList");case 0:case 2:case 15:return e=Cf(e.type,!1),e;case 11:return e=Cf(e.type.render,!1),e;case 22:return e=Cf(e.type._render,!1),e;case 1:return e=Cf(e.type,!0),e;default:return""}}function ic(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 Wi:return"Fragment";case Xs:return"Portal";case md:return"Profiler";case Aw:return"StrictMode";case gd:return"Suspense";case Wh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Rw:return(e.displayName||"Context")+".Consumer";case _w:return(e._context.displayName||"Context")+".Provider";case Km:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Ym:return ic(e.type);case Iw:return ic(e._render);case Pw:t=e._payload,e=e._init;try{return ic(e(t))}catch{}}return null}function ls(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function rI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ON(e){var t=rI(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ef(e){e._valueTracker||(e._valueTracker=ON(e))}function oI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hh(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 h0(e,t){var n=t.checked;return Fn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function V2(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ls(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 aI(e,t){t=t.checked,t!=null&&kw(e,"checked",t,!1)}function m0(e,t){aI(e,t);var n=ls(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")?g0(e,t.type,n):t.hasOwnProperty("defaultValue")&&g0(e,t.type,ls(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function G2(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 g0(e,t,n){(t!=="number"||Hh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function LN(e){var t="";return qm.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function v0(e,t){return e=Fn({children:void 0},t),(t=LN(t.children))&&(e.children=t),e}function sc(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=""+ls(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 y0(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Oe(91));return Fn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function q2(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Oe(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(Oe(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ls(n)}}function iI(e,t){var n=ls(t.value),r=ls(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 K2(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var b0={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function sI(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 w0(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?sI(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Tf,lI=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!==b0.svg||"innerHTML"in e)e.innerHTML=t;else{for(Tf=Tf||document.createElement("div"),Tf.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Tf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var vd={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},MN=["Webkit","ms","Moz","O"];Object.keys(vd).forEach(function(e){MN.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vd[t]=vd[e]})});function cI(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||vd.hasOwnProperty(e)&&vd[e]?(""+t).trim():t+"px"}function uI(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=cI(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var NN=Fn({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 S0(e,t){if(t){if(NN[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Oe(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(Oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Oe(62))}}function x0(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 Lw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var C0=null,lc=null,cc=null;function Y2(e){if(e=$p(e)){if(typeof C0!="function")throw Error(Oe(280));var t=e.stateNode;t&&(t=tg(t),C0(e.stateNode,e.type,t))}}function dI(e){lc?cc?cc.push(e):cc=[e]:lc=e}function pI(){if(lc){var e=lc,t=cc;if(cc=lc=null,Y2(e),t)for(e=0;e<t.length;e++)Y2(t[e])}}function Mw(e,t){return e(t)}function fI(e,t,n,r,o){return e(t,n,r,o)}function Nw(){}var hI=Mw,Js=!1,Py=!1;function Dw(){(lc!==null||cc!==null)&&(Nw(),pI())}function DN(e,t,n){if(Py)return e(t,n);Py=!0;try{return hI(e,t,n)}finally{Py=!1,Dw()}}function Vd(e,t){var n=e.stateNode;if(n===null)return null;var r=tg(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(Oe(231,t,typeof n));return n}var E0=!1;if(Ci)try{var Au={};Object.defineProperty(Au,"passive",{get:function(){E0=!0}}),window.addEventListener("test",Au,Au),window.removeEventListener("test",Au,Au)}catch{E0=!1}function BN(e,t,n,r,o,a,i,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var yd=!1,Vh=null,Gh=!1,T0=null,FN={onError:function(e){yd=!0,Vh=e}};function zN(e,t,n,r,o,a,i,l,c){yd=!1,Vh=null,BN.apply(FN,arguments)}function jN(e,t,n,r,o,a,i,l,c){if(zN.apply(this,arguments),yd){if(yd){var u=Vh;yd=!1,Vh=null}else throw Error(Oe(198));Gh||(Gh=!0,T0=u)}}function xl(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 mI(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 X2(e){if(xl(e)!==e)throw Error(Oe(188))}function UN(e){var t=e.alternate;if(!t){if(t=xl(e),t===null)throw Error(Oe(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var a=o.alternate;if(a===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return X2(o),e;if(a===r)return X2(o),t;a=a.sibling}throw Error(Oe(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(Oe(189))}}if(n.alternate!==r)throw Error(Oe(190))}if(n.tag!==3)throw Error(Oe(188));return n.stateNode.current===n?e:t}function gI(e){if(e=UN(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 J2(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var vI,Bw,yI,bI,k0=!1,Na=[],Qi=null,Zi=null,es=null,Gd=new Map,qd=new Map,_u=[],Q2="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 A0(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:o,targetContainers:[r]}}function Z2(e,t){switch(e){case"focusin":case"focusout":Qi=null;break;case"dragenter":case"dragleave":Zi=null;break;case"mouseover":case"mouseout":es=null;break;case"pointerover":case"pointerout":Gd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qd.delete(t.pointerId)}}function Ru(e,t,n,r,o,a){return e===null||e.nativeEvent!==a?(e=A0(t,n,r,o,a),t!==null&&(t=$p(t),t!==null&&Bw(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function WN(e,t,n,r,o){switch(t){case"focusin":return Qi=Ru(Qi,e,t,n,r,o),!0;case"dragenter":return Zi=Ru(Zi,e,t,n,r,o),!0;case"mouseover":return es=Ru(es,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Gd.set(a,Ru(Gd.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,qd.set(a,Ru(qd.get(a)||null,e,t,n,r,o)),!0}return!1}function HN(e){var t=Qs(e.target);if(t!==null){var n=xl(t);if(n!==null){if(t=n.tag,t===13){if(t=mI(n),t!==null){e.blockedOn=t,bI(e.lanePriority,function(){Er.unstable_runWithPriority(e.priority,function(){yI(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function gh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Uw(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=$p(n),t!==null&&Bw(t),e.blockedOn=n,!1;t.shift()}return!0}function eE(e,t,n){gh(e)&&n.delete(t)}function VN(){for(k0=!1;0<Na.length;){var e=Na[0];if(e.blockedOn!==null){e=$p(e.blockedOn),e!==null&&vI(e);break}for(var t=e.targetContainers;0<t.length;){var n=Uw(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Na.shift()}Qi!==null&&gh(Qi)&&(Qi=null),Zi!==null&&gh(Zi)&&(Zi=null),es!==null&&gh(es)&&(es=null),Gd.forEach(eE),qd.forEach(eE)}function Pu(e,t){e.blockedOn===t&&(e.blockedOn=null,k0||(k0=!0,Er.unstable_scheduleCallback(Er.unstable_NormalPriority,VN)))}function wI(e){function t(o){return Pu(o,e)}if(0<Na.length){Pu(Na[0],e);for(var n=1;n<Na.length;n++){var r=Na[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Qi!==null&&Pu(Qi,e),Zi!==null&&Pu(Zi,e),es!==null&&Pu(es,e),Gd.forEach(t),qd.forEach(t),n=0;n<_u.length;n++)r=_u[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<_u.length&&(n=_u[0],n.blockedOn===null);)HN(n),n.blockedOn===null&&_u.shift()}function kf(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Jl={animationend:kf("Animation","AnimationEnd"),animationiteration:kf("Animation","AnimationIteration"),animationstart:kf("Animation","AnimationStart"),transitionend:kf("Transition","TransitionEnd")},Iy={},SI={};Ci&&(SI=document.createElement("div").style,"AnimationEvent"in window||(delete Jl.animationend.animation,delete Jl.animationiteration.animation,delete Jl.animationstart.animation),"TransitionEvent"in window||delete Jl.transitionend.transition);function Xm(e){if(Iy[e])return Iy[e];if(!Jl[e])return e;var t=Jl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in SI)return Iy[e]=t[n];return e}var xI=Xm("animationend"),CI=Xm("animationiteration"),EI=Xm("animationstart"),TI=Xm("transitionend"),kI=new Map,Fw=new Map,GN=["abort","abort",xI,"animationEnd",CI,"animationIteration",EI,"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",TI,"transitionEnd","waiting","waiting"];function zw(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)),Fw.set(r,t),kI.set(r,o),wl(o,[r])}}var qN=Er.unstable_now;qN();var Pn=8;function ql(e){if(1&e)return Pn=15,1;if(2&e)return Pn=14,2;if(4&e)return Pn=13,4;var t=24&e;return t!==0?(Pn=12,t):e&32?(Pn=11,32):(t=192&e,t!==0?(Pn=10,t):e&256?(Pn=9,256):(t=3584&e,t!==0?(Pn=8,t):e&4096?(Pn=7,4096):(t=4186112&e,t!==0?(Pn=6,t):(t=62914560&e,t!==0?(Pn=5,t):e&67108864?(Pn=4,67108864):e&134217728?(Pn=3,134217728):(t=805306368&e,t!==0?(Pn=2,t):1073741824&e?(Pn=1,1073741824):(Pn=8,e))))))}function KN(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 YN(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(Oe(358,e))}}function Kd(e,t){var n=e.pendingLanes;if(n===0)return Pn=0;var r=0,o=0,a=e.expiredLanes,i=e.suspendedLanes,l=e.pingedLanes;if(a!==0)r=a,o=Pn=15;else if(a=n&134217727,a!==0){var c=a&~i;c!==0?(r=ql(c),o=Pn):(l&=a,l!==0&&(r=ql(l),o=Pn))}else a=n&~i,a!==0?(r=ql(a),o=Pn):l!==0&&(r=ql(l),o=Pn);if(r===0)return 0;if(r=31-cs(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&i)){if(ql(t),o<=Pn)return t;Pn=o}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-cs(t),o=1<<n,r|=e[n],t&=~o;return r}function AI(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function qh(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Kl(24&~t),e===0?qh(10,t):e;case 10:return e=Kl(192&~t),e===0?qh(8,t):e;case 8:return e=Kl(3584&~t),e===0&&(e=Kl(4186112&~t),e===0&&(e=512)),e;case 2:return t=Kl(805306368&~t),t===0&&(t=268435456),t}throw Error(Oe(358,e))}function Kl(e){return e&-e}function $y(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Jm(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-cs(t),e[t]=n}var cs=Math.clz32?Math.clz32:QN,XN=Math.log,JN=Math.LN2;function QN(e){return e===0?32:31-(XN(e)/JN|0)|0}var ZN=Er.unstable_UserBlockingPriority,eD=Er.unstable_runWithPriority,vh=!0;function tD(e,t,n,r){Js||Nw();var o=jw,a=Js;Js=!0;try{fI(o,e,t,n,r)}finally{(Js=a)||Dw()}}function nD(e,t,n,r){eD(ZN,jw.bind(null,e,t,n,r))}function jw(e,t,n,r){if(vh){var o;if((o=(t&4)===0)&&0<Na.length&&-1<Q2.indexOf(e))e=A0(null,e,t,n,r),Na.push(e);else{var a=Uw(e,t,n,r);if(a===null)o&&Z2(e,r);else{if(o){if(-1<Q2.indexOf(e)){e=A0(a,e,t,n,r),Na.push(e);return}if(WN(a,e,t,n,r))return;Z2(e,r)}zI(e,t,r,null,n)}}}}function Uw(e,t,n,r){var o=Lw(r);if(o=Qs(o),o!==null){var a=xl(o);if(a===null)o=null;else{var i=a.tag;if(i===13){if(o=mI(a),o!==null)return o;o=null}else if(i===3){if(a.stateNode.hydrate)return a.tag===3?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null)}}return zI(e,t,r,o,n),null}var Vi=null,Ww=null,yh=null;function _I(){if(yh)return yh;var e,t=Ww,n=t.length,r,o="value"in Vi?Vi.value:Vi.textContent,a=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[a-r];r++);return yh=o.slice(e,1<r?1-r:void 0)}function bh(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 Af(){return!0}function tE(){return!1}function Lo(e){function t(n,r,o,a,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=a,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Af:tE,this.isPropagationStopped=tE,this}return Fn(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=Af)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Af)},persist:function(){},isPersistent:Af}),t}var qc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hw=Lo(qc),Ip=Fn({},qc,{view:0,detail:0}),rD=Lo(Ip),Oy,Ly,Iu,Qm=Fn({},Ip,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vw,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!==Iu&&(Iu&&e.type==="mousemove"?(Oy=e.screenX-Iu.screenX,Ly=e.screenY-Iu.screenY):Ly=Oy=0,Iu=e),Oy)},movementY:function(e){return"movementY"in e?e.movementY:Ly}}),nE=Lo(Qm),oD=Fn({},Qm,{dataTransfer:0}),aD=Lo(oD),iD=Fn({},Ip,{relatedTarget:0}),My=Lo(iD),sD=Fn({},qc,{animationName:0,elapsedTime:0,pseudoElement:0}),lD=Lo(sD),cD=Fn({},qc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),uD=Lo(cD),dD=Fn({},qc,{data:0}),rE=Lo(dD),pD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fD={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"},hD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mD(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=hD[e])?!!t[e]:!1}function Vw(){return mD}var gD=Fn({},Ip,{key:function(e){if(e.key){var t=pD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vw,charCode:function(e){return e.type==="keypress"?bh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vD=Lo(gD),yD=Fn({},Qm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oE=Lo(yD),bD=Fn({},Ip,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vw}),wD=Lo(bD),SD=Fn({},qc,{propertyName:0,elapsedTime:0,pseudoElement:0}),xD=Lo(SD),CD=Fn({},Qm,{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}),ED=Lo(CD),TD=[9,13,27,32],Gw=Ci&&"CompositionEvent"in window,bd=null;Ci&&"documentMode"in document&&(bd=document.documentMode);var kD=Ci&&"TextEvent"in window&&!bd,RI=Ci&&(!Gw||bd&&8<bd&&11>=bd),aE=String.fromCharCode(32),iE=!1;function PI(e,t){switch(e){case"keyup":return TD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function II(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ql=!1;function AD(e,t){switch(e){case"compositionend":return II(t);case"keypress":return t.which!==32?null:(iE=!0,aE);case"textInput":return e=t.data,e===aE&&iE?null:e;default:return null}}function _D(e,t){if(Ql)return e==="compositionend"||!Gw&&PI(e,t)?(e=_I(),yh=Ww=Vi=null,Ql=!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 RI&&t.locale!=="ko"?null:t.data;default:return null}}var RD={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 sE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!RD[e.type]:t==="textarea"}function $I(e,t,n,r){dI(r),t=Kh(t,"onChange"),0<t.length&&(n=new Hw("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var wd=null,Yd=null;function PD(e){DI(e,0)}function Zm(e){var t=ec(e);if(oI(t))return e}function ID(e,t){if(e==="change")return t}var OI=!1;if(Ci){var Ny;if(Ci){var Dy="oninput"in document;if(!Dy){var lE=document.createElement("div");lE.setAttribute("oninput","return;"),Dy=typeof lE.oninput=="function"}Ny=Dy}else Ny=!1;OI=Ny&&(!document.documentMode||9<document.documentMode)}function cE(){wd&&(wd.detachEvent("onpropertychange",LI),Yd=wd=null)}function LI(e){if(e.propertyName==="value"&&Zm(Yd)){var t=[];if($I(t,Yd,e,Lw(e)),e=PD,Js)e(t);else{Js=!0;try{Mw(e,t)}finally{Js=!1,Dw()}}}}function $D(e,t,n){e==="focusin"?(cE(),wd=t,Yd=n,wd.attachEvent("onpropertychange",LI)):e==="focusout"&&cE()}function OD(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zm(Yd)}function LD(e,t){if(e==="click")return Zm(t)}function MD(e,t){if(e==="input"||e==="change")return Zm(t)}function ND(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Uo=typeof Object.is=="function"?Object.is:ND,DD=Object.prototype.hasOwnProperty;function Xd(e,t){if(Uo(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(!DD.call(t,n[r])||!Uo(e[n[r]],t[n[r]]))return!1;return!0}function uE(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dE(e,t){var n=uE(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=uE(n)}}function MI(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?MI(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pE(){for(var e=window,t=Hh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hh(e.document)}return t}function _0(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 BD=Ci&&"documentMode"in document&&11>=document.documentMode,Zl=null,R0=null,Sd=null,P0=!1;function fE(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;P0||Zl==null||Zl!==Hh(r)||(r=Zl,"selectionStart"in r&&_0(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}),Sd&&Xd(Sd,r)||(Sd=r,r=Kh(R0,"onSelect"),0<r.length&&(t=new Hw("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Zl)))}zw("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);zw("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);zw(GN,2);for(var hE="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),By=0;By<hE.length;By++)Fw.set(hE[By],0);Ac("onMouseEnter",["mouseout","mouseover"]);Ac("onMouseLeave",["mouseout","mouseover"]);Ac("onPointerEnter",["pointerout","pointerover"]);Ac("onPointerLeave",["pointerout","pointerover"]);wl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));wl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));wl("onBeforeInput",["compositionend","keypress","textInput","paste"]);wl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));wl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));wl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var id="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),NI=new Set("cancel close invalid load scroll toggle".split(" ").concat(id));function mE(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,jN(r,t,void 0,e),e.currentTarget=null}function DI(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 a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==a&&o.isPropagationStopped())break e;mE(o,l,u),a=c}else for(i=0;i<r.length;i++){if(l=r[i],c=l.instance,u=l.currentTarget,l=l.listener,c!==a&&o.isPropagationStopped())break e;mE(o,l,u),a=c}}}if(Gh)throw e=T0,Gh=!1,T0=null,e}function $n(e,t){var n=UI(t),r=e+"__bubble";n.has(r)||(FI(t,e,2,!1),n.add(r))}var gE="_reactListening"+Math.random().toString(36).slice(2);function BI(e){e[gE]||(e[gE]=!0,tI.forEach(function(t){NI.has(t)||vE(t,!1,e,null),vE(t,!0,e,null)}))}function vE(e,t,n,r){var o=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,a=n;if(e==="selectionchange"&&n.nodeType!==9&&(a=n.ownerDocument),r!==null&&!t&&NI.has(e)){if(e!=="scroll")return;o|=2,a=r}var i=UI(a),l=e+"__"+(t?"capture":"bubble");i.has(l)||(t&&(o|=4),FI(a,e,o,t),i.add(l))}function FI(e,t,n,r){var o=Fw.get(t);switch(o===void 0?2:o){case 0:o=tD;break;case 1:o=nD;break;default:o=jw}n=o.bind(null,t,n,e),o=void 0,!E0||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 zI(e,t,n,r,o){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var c=i.tag;if((c===3||c===4)&&(c=i.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;i=i.return}for(;l!==null;){if(i=Qs(l),i===null)return;if(c=i.tag,c===5||c===6){r=a=i;continue e}l=l.parentNode}}r=r.return}DN(function(){var u=a,d=Lw(n),f=[];e:{var h=kI.get(e);if(h!==void 0){var m=Hw,y=e;switch(e){case"keypress":if(bh(n)===0)break e;case"keydown":case"keyup":m=vD;break;case"focusin":y="focus",m=My;break;case"focusout":y="blur",m=My;break;case"beforeblur":case"afterblur":m=My;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":m=nE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=aD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=wD;break;case xI:case CI:case EI:m=lD;break;case TI:m=xD;break;case"scroll":m=rD;break;case"wheel":m=ED;break;case"copy":case"cut":case"paste":m=uD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=oE}var g=(t&4)!==0,v=!g&&e==="scroll",b=g?h!==null?h+"Capture":null:h;g=[];for(var w=u,x;w!==null;){x=w;var E=x.stateNode;if(x.tag===5&&E!==null&&(x=E,b!==null&&(E=Vd(w,b),E!=null&&g.push(Jd(w,E,x)))),v)break;w=w.return}0<g.length&&(h=new m(h,y,null,n,d),f.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",h&&!(t&16)&&(y=n.relatedTarget||n.fromElement)&&(Qs(y)||y[Kc]))break e;if((m||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,m?(y=n.relatedTarget||n.toElement,m=u,y=y?Qs(y):null,y!==null&&(v=xl(y),y!==v||y.tag!==5&&y.tag!==6)&&(y=null)):(m=null,y=u),m!==y)){if(g=nE,E="onMouseLeave",b="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(g=oE,E="onPointerLeave",b="onPointerEnter",w="pointer"),v=m==null?h:ec(m),x=y==null?h:ec(y),h=new g(E,w+"leave",m,n,d),h.target=v,h.relatedTarget=x,E=null,Qs(d)===u&&(g=new g(b,w+"enter",y,n,d),g.target=x,g.relatedTarget=v,E=g),v=E,m&&y)t:{for(g=m,b=y,w=0,x=g;x;x=Ll(x))w++;for(x=0,E=b;E;E=Ll(E))x++;for(;0<w-x;)g=Ll(g),w--;for(;0<x-w;)b=Ll(b),x--;for(;w--;){if(g===b||b!==null&&g===b.alternate)break t;g=Ll(g),b=Ll(b)}g=null}else g=null;m!==null&&yE(f,h,m,g,!1),y!==null&&v!==null&&yE(f,v,y,g,!0)}}e:{if(h=u?ec(u):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var A=ID;else if(sE(h))if(OI)A=MD;else{A=OD;var k=$D}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(A=LD);if(A&&(A=A(e,u))){$I(f,A,n,d);break e}k&&k(e,h,u),e==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&g0(h,"number",h.value)}switch(k=u?ec(u):window,e){case"focusin":(sE(k)||k.contentEditable==="true")&&(Zl=k,R0=u,Sd=null);break;case"focusout":Sd=R0=Zl=null;break;case"mousedown":P0=!0;break;case"contextmenu":case"mouseup":case"dragend":P0=!1,fE(f,n,d);break;case"selectionchange":if(BD)break;case"keydown":case"keyup":fE(f,n,d)}var _;if(Gw)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Ql?PI(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(RI&&n.locale!=="ko"&&(Ql||O!=="onCompositionStart"?O==="onCompositionEnd"&&Ql&&(_=_I()):(Vi=d,Ww="value"in Vi?Vi.value:Vi.textContent,Ql=!0)),k=Kh(u,O),0<k.length&&(O=new rE(O,e,null,n,d),f.push({event:O,listeners:k}),_?O.data=_:(_=II(n),_!==null&&(O.data=_)))),(_=kD?AD(e,n):_D(e,n))&&(u=Kh(u,"onBeforeInput"),0<u.length&&(d=new rE("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=_))}DI(f,t)})}function Jd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kh(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=Vd(e,n),a!=null&&r.unshift(Jd(e,a,o)),a=Vd(e,t),a!=null&&r.push(Jd(e,a,o))),e=e.return}return r}function Ll(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yE(e,t,n,r,o){for(var a=t._reactName,i=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,o?(c=Vd(n,a),c!=null&&i.unshift(Jd(n,c,l))):o||(c=Vd(n,a),c!=null&&i.push(Jd(n,c,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}function Yh(){}var Fy=null,zy=null;function jI(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function I0(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 bE=typeof setTimeout=="function"?setTimeout:void 0,FD=typeof clearTimeout=="function"?clearTimeout:void 0;function qw(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function uc(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function wE(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 jy=0;function zD(e){return{$$typeof:$w,toString:e,valueOf:e}}var eg=Math.random().toString(36).slice(2),Gi="__reactFiber$"+eg,Xh="__reactProps$"+eg,Kc="__reactContainer$"+eg,SE="__reactEvents$"+eg;function Qs(e){var t=e[Gi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Kc]||n[Gi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wE(e);e!==null;){if(n=e[Gi])return n;e=wE(e)}return t}e=n,n=e.parentNode}return null}function $p(e){return e=e[Gi]||e[Kc],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ec(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Oe(33))}function tg(e){return e[Xh]||null}function UI(e){var t=e[SE];return t===void 0&&(t=e[SE]=new Set),t}var $0=[],tc=-1;function Ss(e){return{current:e}}function Ln(e){0>tc||(e.current=$0[tc],$0[tc]=null,tc--)}function Yn(e,t){tc++,$0[tc]=e.current,e.current=t}var us={},Wr=Ss(us),lo=Ss(!1),ul=us;function _c(e,t){var n=e.type.contextTypes;if(!n)return us;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function co(e){return e=e.childContextTypes,e!=null}function Jh(){Ln(lo),Ln(Wr)}function xE(e,t,n){if(Wr.current!==us)throw Error(Oe(168));Yn(Wr,t),Yn(lo,n)}function WI(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(Oe(108,ic(t)||"Unknown",o));return Fn({},n,r)}function wh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||us,ul=Wr.current,Yn(Wr,e),Yn(lo,lo.current),!0}function CE(e,t,n){var r=e.stateNode;if(!r)throw Error(Oe(169));n?(e=WI(e,t,ul),r.__reactInternalMemoizedMergedChildContext=e,Ln(lo),Ln(Wr),Yn(Wr,e)):Ln(lo),Yn(lo,n)}var Kw=null,ol=null,jD=Er.unstable_runWithPriority,Yw=Er.unstable_scheduleCallback,O0=Er.unstable_cancelCallback,UD=Er.unstable_shouldYield,EE=Er.unstable_requestPaint,L0=Er.unstable_now,WD=Er.unstable_getCurrentPriorityLevel,ng=Er.unstable_ImmediatePriority,HI=Er.unstable_UserBlockingPriority,VI=Er.unstable_NormalPriority,GI=Er.unstable_LowPriority,qI=Er.unstable_IdlePriority,Uy={},HD=EE!==void 0?EE:function(){},pi=null,Sh=null,Wy=!1,TE=L0(),jr=1e4>TE?L0:function(){return L0()-TE};function Rc(){switch(WD()){case ng:return 99;case HI:return 98;case VI:return 97;case GI:return 96;case qI:return 95;default:throw Error(Oe(332))}}function KI(e){switch(e){case 99:return ng;case 98:return HI;case 97:return VI;case 96:return GI;case 95:return qI;default:throw Error(Oe(332))}}function dl(e,t){return e=KI(e),jD(e,t)}function Qd(e,t,n){return e=KI(e),Yw(e,t,n)}function ti(){if(Sh!==null){var e=Sh;Sh=null,O0(e)}YI()}function YI(){if(!Wy&&pi!==null){Wy=!0;var e=0;try{var t=pi;dl(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),pi=null}catch(n){throw pi!==null&&(pi=pi.slice(e+1)),Yw(ng,ti),n}finally{Wy=!1}}}var VD=Sl.ReactCurrentBatchConfig;function fa(e,t){if(e&&e.defaultProps){t=Fn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Qh=Ss(null),Zh=null,nc=null,em=null;function Xw(){em=nc=Zh=null}function Jw(e){var t=Qh.current;Ln(Qh),e.type._context._currentValue=t}function XI(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 dc(e,t){Zh=e,em=nc=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ga=!0),e.firstContext=null)}function Xo(e,t){if(em!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(em=e,t=1073741823),t={context:e,observedBits:t,next:null},nc===null){if(Zh===null)throw Error(Oe(308));nc=t,Zh.dependencies={lanes:0,firstContext:t,responders:null}}else nc=nc.next=t;return e._currentValue}var Ui=!1;function Qw(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function JI(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 ts(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ns(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 kE(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?o=a=i:a=a.next=i,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,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 Zd(e,t,n,r){var o=e.updateQueue;Ui=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var c=l,u=c.next;c.next=null,i===null?a=u:i.next=u,i=c;var d=e.alternate;if(d!==null){d=d.updateQueue;var f=d.lastBaseUpdate;f!==i&&(f===null?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=c)}}if(a!==null){f=o.baseState,i=0,d=u=c=null;do{l=a.lane;var h=a.eventTime;if((r&l)===l){d!==null&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,y=a;switch(l=t,h=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){f=m.call(h,f,l);break e}f=m;break e;case 3:m.flags=m.flags&-4097|64;case 0:if(m=y.payload,l=typeof m=="function"?m.call(h,f,l):m,l==null)break e;f=Fn({},f,l);break e;case 2:Ui=!0}}a.callback!==null&&(e.flags|=32,l=o.effects,l===null?o.effects=[a]:l.push(a))}else h={eventTime:h,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=h,c=f):d=d.next=h,i|=l;if(a=a.next,a===null){if(l=o.shared.pending,l===null)break;a=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}while(1);d===null&&(c=f),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,Lp|=i,e.lanes=i,e.memoizedState=f}}function AE(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(Oe(191,o));o.call(r)}}}var QI=new qm.Component().refs;function tm(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Fn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var rg={isMounted:function(e){return(e=e._reactInternals)?xl(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_o(),o=rs(e),a=ts(r,o);a.payload=t,n!=null&&(a.callback=n),ns(e,a),os(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_o(),o=rs(e),a=ts(r,o);a.tag=1,a.payload=t,n!=null&&(a.callback=n),ns(e,a),os(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_o(),r=rs(e),o=ts(n,r);o.tag=2,t!=null&&(o.callback=t),ns(e,o),os(e,r,n)}};function _E(e,t,n,r,o,a,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,i):t.prototype&&t.prototype.isPureReactComponent?!Xd(n,r)||!Xd(o,a):!0}function ZI(e,t,n){var r=!1,o=us,a=t.contextType;return typeof a=="object"&&a!==null?a=Xo(a):(o=co(t)?ul:Wr.current,r=t.contextTypes,a=(r=r!=null)?_c(e,o):us),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=rg,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function RE(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&&rg.enqueueReplaceState(t,t.state,null)}function M0(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=QI,Qw(e);var a=t.contextType;typeof a=="object"&&a!==null?o.context=Xo(a):(a=co(t)?ul:Wr.current,o.context=_c(e,a)),Zd(e,n,o,r),o.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(tm(e,t,a,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&&rg.enqueueReplaceState(o,o.state,null),Zd(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4)}var _f=Array.isArray;function $u(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(Oe(309));var r=n.stateNode}if(!r)throw Error(Oe(147,e));var o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var i=r.refs;i===QI&&(i=r.refs={}),a===null?delete i[o]:i[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Oe(284));if(!n._owner)throw Error(Oe(290,e))}return e}function Rf(e,t){if(e.type!=="textarea")throw Error(Oe(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function e5(e){function t(v,b){if(e){var w=v.lastEffect;w!==null?(w.nextEffect=b,v.lastEffect=b):v.firstEffect=v.lastEffect=b,b.nextEffect=null,b.flags=8}}function n(v,b){if(!e)return null;for(;b!==null;)t(v,b),b=b.sibling;return null}function r(v,b){for(v=new Map;b!==null;)b.key!==null?v.set(b.key,b):v.set(b.index,b),b=b.sibling;return v}function o(v,b){return v=ps(v,b),v.index=0,v.sibling=null,v}function a(v,b,w){return v.index=w,e?(w=v.alternate,w!==null?(w=w.index,w<b?(v.flags=2,b):w):(v.flags=2,b)):b}function i(v){return e&&v.alternate===null&&(v.flags=2),v}function l(v,b,w,x){return b===null||b.tag!==6?(b=Ky(w,v.mode,x),b.return=v,b):(b=o(b,w),b.return=v,b)}function c(v,b,w,x){return b!==null&&b.elementType===w.type?(x=o(b,w.props),x.ref=$u(v,b,w),x.return=v,x):(x=Th(w.type,w.key,w.props,null,v.mode,x),x.ref=$u(v,b,w),x.return=v,x)}function u(v,b,w,x){return b===null||b.tag!==4||b.stateNode.containerInfo!==w.containerInfo||b.stateNode.implementation!==w.implementation?(b=Yy(w,v.mode,x),b.return=v,b):(b=o(b,w.children||[]),b.return=v,b)}function d(v,b,w,x,E){return b===null||b.tag!==7?(b=mc(w,v.mode,x,E),b.return=v,b):(b=o(b,w),b.return=v,b)}function f(v,b,w){if(typeof b=="string"||typeof b=="number")return b=Ky(""+b,v.mode,w),b.return=v,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case od:return w=Th(b.type,b.key,b.props,null,v.mode,w),w.ref=$u(v,null,b),w.return=v,w;case Xs:return b=Yy(b,v.mode,w),b.return=v,b}if(_f(b)||ku(b))return b=mc(b,v.mode,w,null),b.return=v,b;Rf(v,b)}return null}function h(v,b,w,x){var E=b!==null?b.key:null;if(typeof w=="string"||typeof w=="number")return E!==null?null:l(v,b,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case od:return w.key===E?w.type===Wi?d(v,b,w.props.children,x,E):c(v,b,w,x):null;case Xs:return w.key===E?u(v,b,w,x):null}if(_f(w)||ku(w))return E!==null?null:d(v,b,w,x,null);Rf(v,w)}return null}function m(v,b,w,x,E){if(typeof x=="string"||typeof x=="number")return v=v.get(w)||null,l(b,v,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case od:return v=v.get(x.key===null?w:x.key)||null,x.type===Wi?d(b,v,x.props.children,E,x.key):c(b,v,x,E);case Xs:return v=v.get(x.key===null?w:x.key)||null,u(b,v,x,E)}if(_f(x)||ku(x))return v=v.get(w)||null,d(b,v,x,E,null);Rf(b,x)}return null}function y(v,b,w,x){for(var E=null,A=null,k=b,_=b=0,O=null;k!==null&&_<w.length;_++){k.index>_?(O=k,k=null):O=k.sibling;var L=h(v,k,w[_],x);if(L===null){k===null&&(k=O);break}e&&k&&L.alternate===null&&t(v,k),b=a(L,b,_),A===null?E=L:A.sibling=L,A=L,k=O}if(_===w.length)return n(v,k),E;if(k===null){for(;_<w.length;_++)k=f(v,w[_],x),k!==null&&(b=a(k,b,_),A===null?E=k:A.sibling=k,A=k);return E}for(k=r(v,k);_<w.length;_++)O=m(k,v,_,w[_],x),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?_:O.key),b=a(O,b,_),A===null?E=O:A.sibling=O,A=O);return e&&k.forEach(function(I){return t(v,I)}),E}function g(v,b,w,x){var E=ku(w);if(typeof E!="function")throw Error(Oe(150));if(w=E.call(w),w==null)throw Error(Oe(151));for(var A=E=null,k=b,_=b=0,O=null,L=w.next();k!==null&&!L.done;_++,L=w.next()){k.index>_?(O=k,k=null):O=k.sibling;var I=h(v,k,L.value,x);if(I===null){k===null&&(k=O);break}e&&k&&I.alternate===null&&t(v,k),b=a(I,b,_),A===null?E=I:A.sibling=I,A=I,k=O}if(L.done)return n(v,k),E;if(k===null){for(;!L.done;_++,L=w.next())L=f(v,L.value,x),L!==null&&(b=a(L,b,_),A===null?E=L:A.sibling=L,A=L);return E}for(k=r(v,k);!L.done;_++,L=w.next())L=m(k,v,_,L.value,x),L!==null&&(e&&L.alternate!==null&&k.delete(L.key===null?_:L.key),b=a(L,b,_),A===null?E=L:A.sibling=L,A=L);return e&&k.forEach(function($){return t(v,$)}),E}return function(v,b,w,x){var E=typeof w=="object"&&w!==null&&w.type===Wi&&w.key===null;E&&(w=w.props.children);var A=typeof w=="object"&&w!==null;if(A)switch(w.$$typeof){case od:e:{for(A=w.key,E=b;E!==null;){if(E.key===A){switch(E.tag){case 7:if(w.type===Wi){n(v,E.sibling),b=o(E,w.props.children),b.return=v,v=b;break e}break;default:if(E.elementType===w.type){n(v,E.sibling),b=o(E,w.props),b.ref=$u(v,E,w),b.return=v,v=b;break e}}n(v,E);break}else t(v,E);E=E.sibling}w.type===Wi?(b=mc(w.props.children,v.mode,x,w.key),b.return=v,v=b):(x=Th(w.type,w.key,w.props,null,v.mode,x),x.ref=$u(v,b,w),x.return=v,v=x)}return i(v);case Xs:e:{for(E=w.key;b!==null;){if(b.key===E)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){n(v,b.sibling),b=o(b,w.children||[]),b.return=v,v=b;break e}else{n(v,b);break}else t(v,b);b=b.sibling}b=Yy(w,v.mode,x),b.return=v,v=b}return i(v)}if(typeof w=="string"||typeof w=="number")return w=""+w,b!==null&&b.tag===6?(n(v,b.sibling),b=o(b,w),b.return=v,v=b):(n(v,b),b=Ky(w,v.mode,x),b.return=v,v=b),i(v);if(_f(w))return y(v,b,w,x);if(ku(w))return g(v,b,w,x);if(A&&Rf(v,w),typeof w>"u"&&!E)switch(v.tag){case 1:case 22:case 0:case 11:case 15:throw Error(Oe(152,ic(v.type)||"Component"))}return n(v,b)}}var nm=e5(!0),t5=e5(!1),Op={},ja=Ss(Op),ep=Ss(Op),tp=Ss(Op);function Zs(e){if(e===Op)throw Error(Oe(174));return e}function N0(e,t){switch(Yn(tp,t),Yn(ep,e),Yn(ja,Op),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:w0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=w0(t,e)}Ln(ja),Yn(ja,t)}function Pc(){Ln(ja),Ln(ep),Ln(tp)}function PE(e){Zs(tp.current);var t=Zs(ja.current),n=w0(t,e.type);t!==n&&(Yn(ep,e),Yn(ja,n))}function Zw(e){ep.current===e&&(Ln(ja),Ln(ep))}var Kn=Ss(0);function rm(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 gi=null,qi=null,Ua=!1;function n5(e,t){var n=Wo(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 IE(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 D0(e){if(Ua){var t=qi;if(t){var n=t;if(!IE(e,t)){if(t=uc(n.nextSibling),!t||!IE(e,t)){e.flags=e.flags&-1025|2,Ua=!1,gi=e;return}n5(gi,n)}gi=e,qi=uc(t.firstChild)}else e.flags=e.flags&-1025|2,Ua=!1,gi=e}}function $E(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;gi=e}function Pf(e){if(e!==gi)return!1;if(!Ua)return $E(e),Ua=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!I0(t,e.memoizedProps))for(t=qi;t;)n5(e,t),t=uc(t.nextSibling);if($E(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Oe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){qi=uc(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}qi=null}}else qi=gi?uc(e.stateNode.nextSibling):null;return!0}function Hy(){qi=gi=null,Ua=!1}var pc=[];function eS(){for(var e=0;e<pc.length;e++)pc[e]._workInProgressVersionPrimary=null;pc.length=0}var xd=Sl.ReactCurrentDispatcher,Go=Sl.ReactCurrentBatchConfig,np=0,Jn=null,Fr=null,Ir=null,om=!1,Cd=!1;function oo(){throw Error(Oe(321))}function tS(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Uo(e[n],t[n]))return!1;return!0}function nS(e,t,n,r,o,a){if(np=a,Jn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xd.current=e===null||e.memoizedState===null?qD:KD,e=n(r,o),Cd){a=0;do{if(Cd=!1,!(25>a))throw Error(Oe(301));a+=1,Ir=Fr=null,t.updateQueue=null,xd.current=YD,e=n(r,o)}while(Cd)}if(xd.current=lm,t=Fr!==null&&Fr.next!==null,np=0,Ir=Fr=Jn=null,om=!1,t)throw Error(Oe(300));return e}function el(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ir===null?Jn.memoizedState=Ir=e:Ir=Ir.next=e,Ir}function Cl(){if(Fr===null){var e=Jn.alternate;e=e!==null?e.memoizedState:null}else e=Fr.next;var t=Ir===null?Jn.memoizedState:Ir.next;if(t!==null)Ir=t,Fr=e;else{if(e===null)throw Error(Oe(310));Fr=e,e={memoizedState:Fr.memoizedState,baseState:Fr.baseState,baseQueue:Fr.baseQueue,queue:Fr.queue,next:null},Ir===null?Jn.memoizedState=Ir=e:Ir=Ir.next=e}return Ir}function Da(e,t){return typeof t=="function"?t(e):t}function Ou(e){var t=Cl(),n=t.queue;if(n===null)throw Error(Oe(311));n.lastRenderedReducer=e;var r=Fr,o=r.baseQueue,a=n.pending;if(a!==null){if(o!==null){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(o!==null){o=o.next,r=r.baseState;var l=i=a=null,c=o;do{var u=c.lane;if((np&u)===u)l!==null&&(l=l.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};l===null?(i=l=d,a=r):l=l.next=d,Jn.lanes|=u,Lp|=u}c=c.next}while(c!==null&&c!==o);l===null?a=r:l.next=i,Uo(r,t.memoizedState)||(ga=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Lu(e){var t=Cl(),n=t.queue;if(n===null)throw Error(Oe(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do a=e(a,i.action),i=i.next;while(i!==o);Uo(a,t.memoizedState)||(ga=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function OE(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=(np&e)===e)&&(t._workInProgressVersionPrimary=r,pc.push(t))),e)return n(t._source);throw pc.push(t),Error(Oe(350))}function r5(e,t,n,r){var o=Jr;if(o===null)throw Error(Oe(349));var a=t._getVersion,i=a(t._source),l=xd.current,c=l.useState(function(){return OE(o,t,n)}),u=c[1],d=c[0];c=Ir;var f=e.memoizedState,h=f.refs,m=h.getSnapshot,y=f.source;f=f.subscribe;var g=Jn;return e.memoizedState={refs:h,source:t,subscribe:r},l.useEffect(function(){h.getSnapshot=n,h.setSnapshot=u;var v=a(t._source);if(!Uo(i,v)){v=n(t._source),Uo(d,v)||(u(v),v=rs(g),o.mutableReadLanes|=v&o.pendingLanes),v=o.mutableReadLanes,o.entangledLanes|=v;for(var b=o.entanglements,w=v;0<w;){var x=31-cs(w),E=1<<x;b[x]|=v,w&=~E}}},[n,t,r]),l.useEffect(function(){return r(t._source,function(){var v=h.getSnapshot,b=h.setSnapshot;try{b(v(t._source));var w=rs(g);o.mutableReadLanes|=w&o.pendingLanes}catch(x){b(function(){throw x})}})},[t,r]),Uo(m,n)&&Uo(y,t)&&Uo(f,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Da,lastRenderedState:d},e.dispatch=u=aS.bind(null,Jn,e),c.queue=e,c.baseQueue=null,d=OE(o,t,n),c.memoizedState=c.baseState=d),d}function o5(e,t,n){var r=Cl();return r5(r,e,t,n)}function Mu(e){var t=el();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Da,lastRenderedState:e},e=e.dispatch=aS.bind(null,Jn,e),[t.memoizedState,e]}function am(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Jn.updateQueue,t===null?(t={lastEffect:null},Jn.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 LE(e){var t=el();return e={current:e},t.memoizedState=e}function im(){return Cl().memoizedState}function B0(e,t,n,r){var o=el();Jn.flags|=e,o.memoizedState=am(1|t,n,void 0,r===void 0?null:r)}function rS(e,t,n,r){var o=Cl();r=r===void 0?null:r;var a=void 0;if(Fr!==null){var i=Fr.memoizedState;if(a=i.destroy,r!==null&&tS(r,i.deps)){am(t,n,a,r);return}}Jn.flags|=e,o.memoizedState=am(1|t,n,a,r)}function ME(e,t){return B0(516,4,e,t)}function sm(e,t){return rS(516,4,e,t)}function a5(e,t){return rS(4,2,e,t)}function i5(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 s5(e,t,n){return n=n!=null?n.concat([e]):null,rS(4,2,i5.bind(null,t,e),n)}function oS(){}function l5(e,t){var n=Cl();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tS(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function c5(e,t){var n=Cl();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tS(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function GD(e,t){var n=Rc();dl(98>n?98:n,function(){e(!0)}),dl(97<n?97:n,function(){var r=Go.transition;Go.transition=1;try{e(!1),t()}finally{Go.transition=r}})}function aS(e,t,n){var r=_o(),o=rs(e),a={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(i===null?a.next=a:(a.next=i.next,i.next=a),t.pending=a,i=e.alternate,e===Jn||i!==null&&i===Jn)Cd=om=!0;else{if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,c=i(l,n);if(a.eagerReducer=i,a.eagerState=c,Uo(c,l))return}catch{}finally{}os(e,o,r)}}var lm={readContext:Xo,useCallback:oo,useContext:oo,useEffect:oo,useImperativeHandle:oo,useLayoutEffect:oo,useMemo:oo,useReducer:oo,useRef:oo,useState:oo,useDebugValue:oo,useDeferredValue:oo,useTransition:oo,useMutableSource:oo,useOpaqueIdentifier:oo,unstable_isNewReconciler:!1},qD={readContext:Xo,useCallback:function(e,t){return el().memoizedState=[e,t===void 0?null:t],e},useContext:Xo,useEffect:ME,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,B0(4,2,i5.bind(null,t,e),n)},useLayoutEffect:function(e,t){return B0(4,2,e,t)},useMemo:function(e,t){var n=el();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=el();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=aS.bind(null,Jn,e),[r.memoizedState,e]},useRef:LE,useState:Mu,useDebugValue:oS,useDeferredValue:function(e){var t=Mu(e),n=t[0],r=t[1];return ME(function(){var o=Go.transition;Go.transition=1;try{r(e)}finally{Go.transition=o}},[e]),n},useTransition:function(){var e=Mu(!1),t=e[0];return e=GD.bind(null,e[1]),LE(e),[e,t]},useMutableSource:function(e,t,n){var r=el();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},r5(r,e,t,n)},useOpaqueIdentifier:function(){if(Ua){var e=!1,t=zD(function(){throw e||(e=!0,n("r:"+(jy++).toString(36))),Error(Oe(355))}),n=Mu(t)[1];return!(Jn.mode&2)&&(Jn.flags|=516,am(5,function(){n("r:"+(jy++).toString(36))},void 0,null)),t}return t="r:"+(jy++).toString(36),Mu(t),t},unstable_isNewReconciler:!1},KD={readContext:Xo,useCallback:l5,useContext:Xo,useEffect:sm,useImperativeHandle:s5,useLayoutEffect:a5,useMemo:c5,useReducer:Ou,useRef:im,useState:function(){return Ou(Da)},useDebugValue:oS,useDeferredValue:function(e){var t=Ou(Da),n=t[0],r=t[1];return sm(function(){var o=Go.transition;Go.transition=1;try{r(e)}finally{Go.transition=o}},[e]),n},useTransition:function(){var e=Ou(Da)[0];return[im().current,e]},useMutableSource:o5,useOpaqueIdentifier:function(){return Ou(Da)[0]},unstable_isNewReconciler:!1},YD={readContext:Xo,useCallback:l5,useContext:Xo,useEffect:sm,useImperativeHandle:s5,useLayoutEffect:a5,useMemo:c5,useReducer:Lu,useRef:im,useState:function(){return Lu(Da)},useDebugValue:oS,useDeferredValue:function(e){var t=Lu(Da),n=t[0],r=t[1];return sm(function(){var o=Go.transition;Go.transition=1;try{r(e)}finally{Go.transition=o}},[e]),n},useTransition:function(){var e=Lu(Da)[0];return[im().current,e]},useMutableSource:o5,useOpaqueIdentifier:function(){return Lu(Da)[0]},unstable_isNewReconciler:!1},XD=Sl.ReactCurrentOwner,ga=!1;function so(e,t,n,r){t.child=e===null?t5(t,null,n,r):nm(t,e.child,n,r)}function NE(e,t,n,r,o){n=n.render;var a=t.ref;return dc(t,o),r=nS(e,t,n,r,a,o),e!==null&&!ga?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,vi(e,t,o)):(t.flags|=1,so(e,t,r,o),t.child)}function DE(e,t,n,r,o,a){if(e===null){var i=n.type;return typeof i=="function"&&!dS(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,u5(e,t,i,r,o,a)):(e=Th(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}return i=e.child,!(o&a)&&(o=i.memoizedProps,n=n.compare,n=n!==null?n:Xd,n(o,r)&&e.ref===t.ref)?vi(e,t,a):(t.flags|=1,e=ps(i,r),e.ref=t.ref,e.return=t,t.child=e)}function u5(e,t,n,r,o,a){if(e!==null&&Xd(e.memoizedProps,r)&&e.ref===t.ref)if(ga=!1,(a&o)!==0)e.flags&16384&&(ga=!0);else return t.lanes=e.lanes,vi(e,t,a);return F0(e,t,n,r,a)}function Vy(e,t,n){var r=t.pendingProps,o=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},$f(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},$f(t,a!==null?a.baseLanes:n);else return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},$f(t,e),null;else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,$f(t,r);return so(e,t,o,n),t.child}function d5(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function F0(e,t,n,r,o){var a=co(n)?ul:Wr.current;return a=_c(t,a),dc(t,o),n=nS(e,t,n,r,a,o),e!==null&&!ga?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,vi(e,t,o)):(t.flags|=1,so(e,t,n,o),t.child)}function BE(e,t,n,r,o){if(co(n)){var a=!0;wh(t)}else a=!1;if(dc(t,o),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),ZI(t,n,r),M0(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Xo(u):(u=co(n)?ul:Wr.current,u=_c(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||c!==u)&&RE(t,i,r,u),Ui=!1;var h=t.memoizedState;i.state=h,Zd(t,r,i,o),c=t.memoizedState,l!==r||h!==c||lo.current||Ui?(typeof d=="function"&&(tm(t,n,d,r),c=t.memoizedState),(l=Ui||_E(t,n,l,r,h,c,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4)):(typeof i.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{i=t.stateNode,JI(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:fa(t.type,l),i.props=u,f=t.pendingProps,h=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=Xo(c):(c=co(n)?ul:Wr.current,c=_c(t,c));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==f||h!==c)&&RE(t,i,r,c),Ui=!1,h=t.memoizedState,i.state=h,Zd(t,r,i,o);var y=t.memoizedState;l!==f||h!==y||lo.current||Ui?(typeof m=="function"&&(tm(t,n,m,r),y=t.memoizedState),(u=Ui||_E(t,n,u,r,h,y,c))?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),r=!1)}return z0(e,t,n,r,a,o)}function z0(e,t,n,r,o,a){d5(e,t);var i=(t.flags&64)!==0;if(!r&&!i)return o&&CE(t,n,!1),vi(e,t,a);r=t.stateNode,XD.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=nm(t,e.child,null,a),t.child=nm(t,null,l,a)):so(e,t,l,a),t.memoizedState=r.state,o&&CE(t,n,!0),t.child}function FE(e){var t=e.stateNode;t.pendingContext?xE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xE(e,t.context,!1),N0(e,t.containerInfo)}var If={dehydrated:null,retryLane:0};function zE(e,t,n){var r=t.pendingProps,o=Kn.current,a=!1,i;return(i=(t.flags&64)!==0)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(a=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(o|=1),Yn(Kn,o&1),e===null?(r.fallback!==void 0&&D0(t),e=r.children,o=r.fallback,a?(e=jE(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=If,e):typeof r.unstable_expectedLoadTime=="number"?(e=jE(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=If,t.lanes=33554432,e):(n=pS({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?a?(r=WE(e,t,r.children,r.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=o===null?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=If,r):(n=UE(e,t,r.children,n),t.memoizedState=null,n):a?(r=WE(e,t,r.children,r.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=o===null?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=If,r):(n=UE(e,t,r.children,n),t.memoizedState=null,n)}function jE(e,t,n,r){var o=e.mode,a=e.child;return t={mode:"hidden",children:t},!(o&2)&&a!==null?(a.childLanes=0,a.pendingProps=t):a=pS(t,o,0,null),n=mc(n,o,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function UE(e,t,n,r){var o=e.child;return e=o.sibling,n=ps(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 WE(e,t,n,r,o){var a=t.mode,i=e.child;e=i.sibling;var l={mode:"hidden",children:n};return!(a&2)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,i=n.lastEffect,i!==null?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=ps(i,l),e!==null?r=ps(e,r):(r=mc(r,a,o,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function HE(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),XI(e.return,t)}function Gy(e,t,n,r,o,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o,i.lastEffect=a)}function VE(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(so(e,t,r.children,n),r=Kn.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&&HE(e,n);else if(e.tag===19)HE(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(Yn(Kn,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&&rm(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Gy(t,!1,o,n,a,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&rm(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Gy(t,!0,n,null,a,t.lastEffect);break;case"together":Gy(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function vi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Lp|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(Oe(153));if(t.child!==null){for(e=t.child,n=ps(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ps(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var p5,j0,f5,h5;p5=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}};j0=function(){};f5=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Zs(ja.current);var a=null;switch(n){case"input":o=h0(e,o),r=h0(e,r),a=[];break;case"option":o=v0(e,o),r=v0(e,r),a=[];break;case"select":o=Fn({},o,{value:void 0}),r=Fn({},r,{value:void 0}),a=[];break;case"textarea":o=y0(e,o),r=y0(e,r),a=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Yh)}S0(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Wd.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(a=a||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Wd.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&$n("scroll",e),a||l===c||(a=[])):typeof c=="object"&&c!==null&&c.$$typeof===$w?c.toString():(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};h5=function(e,t,n,r){n!==r&&(t.flags|=4)};function Nu(e,t){if(!Ua)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 JD(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 co(t.type)&&Jh(),null;case 3:return Pc(),Ln(lo),Ln(Wr),eS(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Pf(t)?t.flags|=4:r.hydrate||(t.flags|=256)),j0(t),null;case 5:Zw(t);var o=Zs(tp.current);if(n=t.type,e!==null&&t.stateNode!=null)f5(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(Oe(166));return null}if(e=Zs(ja.current),Pf(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Gi]=t,r[Xh]=a,n){case"dialog":$n("cancel",r),$n("close",r);break;case"iframe":case"object":case"embed":$n("load",r);break;case"video":case"audio":for(e=0;e<id.length;e++)$n(id[e],r);break;case"source":$n("error",r);break;case"img":case"image":case"link":$n("error",r),$n("load",r);break;case"details":$n("toggle",r);break;case"input":V2(r,a),$n("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},$n("invalid",r);break;case"textarea":q2(r,a),$n("invalid",r)}S0(n,a),e=null;for(var i in a)a.hasOwnProperty(i)&&(o=a[i],i==="children"?typeof o=="string"?r.textContent!==o&&(e=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(e=["children",""+o]):Wd.hasOwnProperty(i)&&o!=null&&i==="onScroll"&&$n("scroll",r));switch(n){case"input":Ef(r),G2(r,a,!0);break;case"textarea":Ef(r),K2(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Yh)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(i=o.nodeType===9?o:o.ownerDocument,e===b0.html&&(e=sI(n)),e===b0.html?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Gi]=t,e[Xh]=r,p5(e,t,!1,!1),t.stateNode=e,i=x0(n,r),n){case"dialog":$n("cancel",e),$n("close",e),o=r;break;case"iframe":case"object":case"embed":$n("load",e),o=r;break;case"video":case"audio":for(o=0;o<id.length;o++)$n(id[o],e);o=r;break;case"source":$n("error",e),o=r;break;case"img":case"image":case"link":$n("error",e),$n("load",e),o=r;break;case"details":$n("toggle",e),o=r;break;case"input":V2(e,r),o=h0(e,r),$n("invalid",e);break;case"option":o=v0(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Fn({},r,{value:void 0}),$n("invalid",e);break;case"textarea":q2(e,r),o=y0(e,r),$n("invalid",e);break;default:o=r}S0(n,o);var l=o;for(a in l)if(l.hasOwnProperty(a)){var c=l[a];a==="style"?uI(e,c):a==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&lI(e,c)):a==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Hd(e,c):typeof c=="number"&&Hd(e,""+c):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Wd.hasOwnProperty(a)?c!=null&&a==="onScroll"&&$n("scroll",e):c!=null&&kw(e,a,c,i))}switch(n){case"input":Ef(e),G2(e,r,!1);break;case"textarea":Ef(e),K2(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ls(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?sc(e,!!r.multiple,a,!1):r.defaultValue!=null&&sc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Yh)}jI(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)h5(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Oe(166));n=Zs(tp.current),Zs(ja.current),Pf(t)?(r=t.stateNode,n=t.memoizedProps,r[Gi]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Gi]=t,t.stateNode=r)}return null;case 13:return Ln(Kn),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Pf(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||Kn.current&1?Or===0&&(Or=3):((Or===0||Or===3)&&(Or=4),Jr===null||!(Lp&134217727)&&!(Xc&134217727)||fc(Jr,Ur))),(r||n)&&(t.flags|=4),null);case 4:return Pc(),j0(t),e===null&&BI(t.stateNode.containerInfo),null;case 10:return Jw(t),null;case 17:return co(t.type)&&Jh(),null;case 19:if(Ln(Kn),r=t.memoizedState,r===null)return null;if(a=(t.flags&64)!==0,i=r.rendering,i===null)if(a)Nu(r,!1);else{if(Or!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(i=rm(e),i!==null){for(t.flags|=64,Nu(r,!1),a=i.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)a=n,e=r,a.flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,i=a.alternate,i===null?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Yn(Kn,Kn.current&1|2),t.child}e=e.sibling}r.tail!==null&&jr()>q0&&(t.flags|=64,a=!0,Nu(r,!1),t.lanes=33554432)}else{if(!a)if(e=rm(i),e!==null){if(t.flags|=64,a=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nu(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Ua)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*jr()-r.renderingStartTime>q0&&n!==1073741824&&(t.flags|=64,a=!0,Nu(r,!1),t.lanes=33554432);r.isBackwards?(i.sibling=t.child,t.child=i):(n=r.last,n!==null?n.sibling=i:t.child=i,r.last=i)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=jr(),n.sibling=null,t=Kn.current,Yn(Kn,a?t&1|2:t&1),n):null;case 23:case 24:return uS(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(Oe(156,t.tag))}function QD(e){switch(e.tag){case 1:co(e.type)&&Jh();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Pc(),Ln(lo),Ln(Wr),eS(),t=e.flags,t&64)throw Error(Oe(285));return e.flags=t&-4097|64,e;case 5:return Zw(e),null;case 13:return Ln(Kn),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Ln(Kn),null;case 4:return Pc(),null;case 10:return Jw(e),null;case 23:case 24:return uS(),null;default:return null}}function iS(e,t){try{var n="",r=t;do n+=$N(r),r=r.return;while(r);var o=n}catch(a){o=`
39
- Error generating stack: `+a.message+`
40
- `+a.stack}return{value:e,source:t,stack:o}}function U0(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ZD=typeof WeakMap=="function"?WeakMap:Map;function m5(e,t,n){n=ts(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){um||(um=!0,K0=r),U0(e,t)},n}function g5(e,t,n){n=ts(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return U0(e,t),r(o)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(Ba===null?Ba=new Set([this]):Ba.add(this),U0(e,t));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}var e6=typeof WeakSet=="function"?WeakSet:Set;function GE(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){as(e,n)}else t.current=null}function t6(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:fa(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&qw(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(Oe(163))}function n6(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&&(T5(n,e),u6(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:fa(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&AE(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}AE(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&jI(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&&wI(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(Oe(163))}function qE(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=cI("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 KE(e,t){if(ol&&typeof ol.onCommitFiberUnmount=="function")try{ol.onCommitFiberUnmount(Kw,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)T5(t,n);else{r=t;try{o()}catch(a){as(r,a)}}n=n.next}while(n!==e)}break;case 1:if(GE(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){as(t,a)}break;case 5:GE(t);break;case 4:v5(e,t)}}function YE(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 XE(e){return e.tag===5||e.tag===3||e.tag===4}function JE(e){e:{for(var t=e.return;t!==null;){if(XE(t))break e;t=t.return}throw Error(Oe(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(Oe(161))}n.flags&16&&(Hd(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||XE(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?W0(e,n,t):H0(e,n,t)}function W0(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=Yh));else if(r!==4&&(e=e.child,e!==null))for(W0(e,t,n),e=e.sibling;e!==null;)W0(e,t,n),e=e.sibling}function H0(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(H0(e,t,n),e=e.sibling;e!==null;)H0(e,t,n),e=e.sibling}function v5(e,t){for(var n=t,r=!1,o,a;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(Oe(160));switch(o=r.stateNode,r.tag){case 5:a=!1;break e;case 3:o=o.containerInfo,a=!0;break e;case 4:o=o.containerInfo,a=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var i=e,l=n,c=l;;)if(KE(i,c),c.child!==null&&c.tag!==4)c.child.return=c,c=c.child;else{if(c===l)break e;for(;c.sibling===null;){if(c.return===null||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}a?(i=o,l=n.stateNode,i.nodeType===8?i.parentNode.removeChild(l):i.removeChild(l)):o.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){o=n.stateNode.containerInfo,a=!0,n.child.return=n,n=n.child;continue}}else if(KE(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 qy(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 a=t.updateQueue;if(t.updateQueue=null,a!==null){for(n[Xh]=r,e==="input"&&r.type==="radio"&&r.name!=null&&aI(n,r),x0(e,o),t=x0(e,r),o=0;o<a.length;o+=2){var i=a[o],l=a[o+1];i==="style"?uI(n,l):i==="dangerouslySetInnerHTML"?lI(n,l):i==="children"?Hd(n,l):kw(n,i,l,t)}switch(e){case"input":m0(n,r);break;case"textarea":iI(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,a=r.value,a!=null?sc(n,!!r.multiple,a,!1):e!==!!r.multiple&&(r.defaultValue!=null?sc(n,!!r.multiple,r.defaultValue,!0):sc(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(Oe(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,wI(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(cS=jr(),qE(t.child,!0)),QE(t);return;case 19:QE(t);return;case 17:return;case 23:case 24:qE(t,t.memoizedState!==null);return}throw Error(Oe(163))}function QE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new e6),t.forEach(function(r){var o=f6.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function r6(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var o6=Math.ceil,cm=Sl.ReactCurrentDispatcher,sS=Sl.ReactCurrentOwner,Tt=0,Jr=null,dr=null,Ur=0,pl=0,V0=Ss(0),Or=0,og=null,Yc=0,Lp=0,Xc=0,lS=0,G0=null,cS=0,q0=1/0;function Jc(){q0=jr()+500}var Qe=null,um=!1,K0=null,Ba=null,ds=!1,Ed=null,sd=90,Y0=[],X0=[],bi=null,Td=0,J0=null,xh=-1,hi=0,Ch=0,kd=null,Eh=!1;function _o(){return Tt&48?jr():xh!==-1?xh:xh=jr()}function rs(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return Rc()===99?1:2;if(hi===0&&(hi=Yc),VD.transition!==0){Ch!==0&&(Ch=G0!==null?G0.pendingLanes:0),e=hi;var t=4186112&~Ch;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=Rc(),Tt&4&&e===98?e=qh(12,hi):(e=KN(e),e=qh(e,hi)),e}function os(e,t,n){if(50<Td)throw Td=0,J0=null,Error(Oe(185));if(e=ag(e,t),e===null)return null;Jm(e,t,n),e===Jr&&(Xc|=t,Or===4&&fc(e,Ur));var r=Rc();t===1?Tt&8&&!(Tt&48)?Q0(e):(Jo(e,n),Tt===0&&(Jc(),ti())):(!(Tt&4)||r!==98&&r!==99||(bi===null?bi=new Set([e]):bi.add(e)),Jo(e,n)),G0=e}function ag(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 Jo(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-cs(i),c=1<<l,u=a[l];if(u===-1){if(!(c&r)||c&o){u=t,ql(c);var d=Pn;a[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);i&=~c}if(r=Kd(e,e===Jr?Ur:0),t=Pn,r===0)n!==null&&(n!==Uy&&O0(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==Uy&&O0(n)}t===15?(n=Q0.bind(null,e),pi===null?(pi=[n],Sh=Yw(ng,YI)):pi.push(n),n=Uy):t===14?n=Qd(99,Q0.bind(null,e)):(n=YN(t),n=Qd(n,y5.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function y5(e){if(xh=-1,Ch=hi=0,Tt&48)throw Error(Oe(327));var t=e.callbackNode;if(xs()&&e.callbackNode!==t)return null;var n=Kd(e,e===Jr?Ur:0);if(n===0)return null;var r=n,o=Tt;Tt|=16;var a=x5();(Jr!==e||Ur!==r)&&(Jc(),hc(e,r));do try{s6();break}catch(l){S5(e,l)}while(1);if(Xw(),cm.current=a,Tt=o,dr!==null?r=0:(Jr=null,Ur=0,r=Or),Yc&Xc)hc(e,0);else if(r!==0){if(r===2&&(Tt|=64,e.hydrate&&(e.hydrate=!1,qw(e.containerInfo)),n=AI(e),n!==0&&(r=ld(e,n))),r===1)throw t=og,hc(e,0),fc(e,n),Jo(e,jr()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(Oe(345));case 2:Fs(e);break;case 3:if(fc(e,n),(n&62914560)===n&&(r=cS+500-jr(),10<r)){if(Kd(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){_o(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=bE(Fs.bind(null,e),r);break}Fs(e);break;case 4:if(fc(e,n),(n&4186112)===n)break;for(r=e.eventTimes,o=-1;0<n;){var i=31-cs(n);a=1<<i,i=r[i],i>o&&(o=i),n&=~a}if(n=o,n=jr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*o6(n/1960))-n,10<n){e.timeoutHandle=bE(Fs.bind(null,e),n);break}Fs(e);break;case 5:Fs(e);break;default:throw Error(Oe(329))}}return Jo(e,jr()),e.callbackNode===t?y5.bind(null,e):null}function fc(e,t){for(t&=~lS,t&=~Xc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-cs(t),r=1<<n;e[n]=-1,t&=~r}}function Q0(e){if(Tt&48)throw Error(Oe(327));if(xs(),e===Jr&&e.expiredLanes&Ur){var t=Ur,n=ld(e,t);Yc&Xc&&(t=Kd(e,t),n=ld(e,t))}else t=Kd(e,0),n=ld(e,t);if(e.tag!==0&&n===2&&(Tt|=64,e.hydrate&&(e.hydrate=!1,qw(e.containerInfo)),t=AI(e),t!==0&&(n=ld(e,t))),n===1)throw n=og,hc(e,0),fc(e,t),Jo(e,jr()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fs(e),Jo(e,jr()),null}function a6(){if(bi!==null){var e=bi;bi=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Jo(t,jr())})}ti()}function b5(e,t){var n=Tt;Tt|=1;try{return e(t)}finally{Tt=n,Tt===0&&(Jc(),ti())}}function w5(e,t){var n=Tt;Tt&=-2,Tt|=8;try{return e(t)}finally{Tt=n,Tt===0&&(Jc(),ti())}}function $f(e,t){Yn(V0,pl),pl|=t,Yc|=t}function uS(){pl=V0.current,Ln(V0)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,FD(n)),dr!==null)for(n=dr.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&Jh();break;case 3:Pc(),Ln(lo),Ln(Wr),eS();break;case 5:Zw(r);break;case 4:Pc();break;case 13:Ln(Kn);break;case 19:Ln(Kn);break;case 10:Jw(r);break;case 23:case 24:uS()}n=n.return}Jr=e,dr=ps(e.current,null),Ur=pl=Yc=t,Or=0,og=null,lS=Xc=Lp=0}function S5(e,t){do{var n=dr;try{if(Xw(),xd.current=lm,om){for(var r=Jn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}om=!1}if(np=0,Ir=Fr=Jn=null,Cd=!1,sS.current=null,n===null||n.return===null){Or=1,og=t,dr=null;break}e:{var a=e,i=n.return,l=n,c=t;if(t=Ur,l.flags|=2048,l.firstEffect=l.lastEffect=null,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c;if(!(l.mode&2)){var d=l.alternate;d?(l.updateQueue=d.updateQueue,l.memoizedState=d.memoizedState,l.lanes=d.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=(Kn.current&1)!==0,h=i;do{var m;if(m=h.tag===13){var y=h.memoizedState;if(y!==null)m=y.dehydrated!==null;else{var g=h.memoizedProps;m=g.fallback===void 0?!1:g.unstable_avoidThisFallback!==!0?!0:!f}}if(m){var v=h.updateQueue;if(v===null){var b=new Set;b.add(u),h.updateQueue=b}else v.add(u);if(!(h.mode&2)){if(h.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var w=ts(-1,1);w.tag=2,ns(l,w)}l.lanes|=1;break e}c=void 0,l=t;var x=a.pingCache;if(x===null?(x=a.pingCache=new ZD,c=new Set,x.set(u,c)):(c=x.get(u),c===void 0&&(c=new Set,x.set(u,c))),!c.has(l)){c.add(l);var E=p6.bind(null,a,u,l);u.then(E,E)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(h!==null);c=Error((ic(l.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.`)}Or!==5&&(Or=2),c=iS(c,l),h=i;do{switch(h.tag){case 3:a=c,h.flags|=4096,t&=-t,h.lanes|=t;var A=m5(h,a,t);kE(h,A);break e;case 1:a=c;var k=h.type,_=h.stateNode;if(!(h.flags&64)&&(typeof k.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Ba===null||!Ba.has(_)))){h.flags|=4096,t&=-t,h.lanes|=t;var O=g5(h,a,t);kE(h,O);break e}}h=h.return}while(h!==null)}E5(n)}catch(L){t=L,dr===n&&n!==null&&(dr=n=n.return);continue}break}while(1)}function x5(){var e=cm.current;return cm.current=lm,e===null?lm:e}function ld(e,t){var n=Tt;Tt|=16;var r=x5();Jr===e&&Ur===t||hc(e,t);do try{i6();break}catch(o){S5(e,o)}while(1);if(Xw(),Tt=n,cm.current=r,dr!==null)throw Error(Oe(261));return Jr=null,Ur=0,Or}function i6(){for(;dr!==null;)C5(dr)}function s6(){for(;dr!==null&&!UD();)C5(dr)}function C5(e){var t=k5(e.alternate,e,pl);e.memoizedProps=e.pendingProps,t===null?E5(e):dr=t,sS.current=null}function E5(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=QD(t),n!==null){n.flags&=2047,dr=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=JD(n,t,pl),n!==null){dr=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||pl&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){dr=t;return}dr=t=e}while(t!==null);Or===0&&(Or=5)}function Fs(e){var t=Rc();return dl(99,l6.bind(null,e,t)),null}function l6(e,t){do xs();while(Ed!==null);if(Tt&48)throw Error(Oe(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Oe(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,a=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 i=e.eventTimes,l=e.expirationTimes;0<a;){var c=31-cs(a),u=1<<c;o[c]=0,i[c]=-1,l[c]=-1,a&=~u}if(bi!==null&&!(r&24)&&bi.has(e)&&bi.delete(e),e===Jr&&(dr=Jr=null,Ur=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(o=Tt,Tt|=32,sS.current=null,Fy=vh,i=pE(),_0(i)){if("selectionStart"in i)l={start:i.selectionStart,end:i.selectionEnd};else e:if(l=(l=i.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&u.rangeCount!==0){l=u.anchorNode,a=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var d=0,f=-1,h=-1,m=0,y=0,g=i,v=null;t:for(;;){for(var b;g!==l||a!==0&&g.nodeType!==3||(f=d+a),g!==c||u!==0&&g.nodeType!==3||(h=d+u),g.nodeType===3&&(d+=g.nodeValue.length),(b=g.firstChild)!==null;)v=g,g=b;for(;;){if(g===i)break t;if(v===l&&++m===a&&(f=d),v===c&&++y===u&&(h=d),(b=g.nextSibling)!==null)break;g=v,v=g.parentNode}g=b}l=f===-1||h===-1?null:{start:f,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;zy={focusedElem:i,selectionRange:l},vh=!1,kd=null,Eh=!1,Qe=r;do try{c6()}catch(L){if(Qe===null)throw Error(Oe(330));as(Qe,L),Qe=Qe.nextEffect}while(Qe!==null);kd=null,Qe=r;do try{for(i=e;Qe!==null;){var w=Qe.flags;if(w&16&&Hd(Qe.stateNode,""),w&128){var x=Qe.alternate;if(x!==null){var E=x.ref;E!==null&&(typeof E=="function"?E(null):E.current=null)}}switch(w&1038){case 2:JE(Qe),Qe.flags&=-3;break;case 6:JE(Qe),Qe.flags&=-3,qy(Qe.alternate,Qe);break;case 1024:Qe.flags&=-1025;break;case 1028:Qe.flags&=-1025,qy(Qe.alternate,Qe);break;case 4:qy(Qe.alternate,Qe);break;case 8:l=Qe,v5(i,l);var A=l.alternate;YE(l),A!==null&&YE(A)}Qe=Qe.nextEffect}}catch(L){if(Qe===null)throw Error(Oe(330));as(Qe,L),Qe=Qe.nextEffect}while(Qe!==null);if(E=zy,x=pE(),w=E.focusedElem,i=E.selectionRange,x!==w&&w&&w.ownerDocument&&MI(w.ownerDocument.documentElement,w)){for(i!==null&&_0(w)&&(x=i.start,E=i.end,E===void 0&&(E=x),"selectionStart"in w?(w.selectionStart=x,w.selectionEnd=Math.min(E,w.value.length)):(E=(x=w.ownerDocument||document)&&x.defaultView||window,E.getSelection&&(E=E.getSelection(),l=w.textContent.length,A=Math.min(i.start,l),i=i.end===void 0?A:Math.min(i.end,l),!E.extend&&A>i&&(l=i,i=A,A=l),l=dE(w,A),a=dE(w,i),l&&a&&(E.rangeCount!==1||E.anchorNode!==l.node||E.anchorOffset!==l.offset||E.focusNode!==a.node||E.focusOffset!==a.offset)&&(x=x.createRange(),x.setStart(l.node,l.offset),E.removeAllRanges(),A>i?(E.addRange(x),E.extend(a.node,a.offset)):(x.setEnd(a.node,a.offset),E.addRange(x)))))),x=[],E=w;E=E.parentNode;)E.nodeType===1&&x.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<x.length;w++)E=x[w],E.element.scrollLeft=E.left,E.element.scrollTop=E.top}vh=!!Fy,zy=Fy=null,e.current=n,Qe=r;do try{for(w=e;Qe!==null;){var k=Qe.flags;if(k&36&&n6(w,Qe.alternate,Qe),k&128){x=void 0;var _=Qe.ref;if(_!==null){var O=Qe.stateNode;switch(Qe.tag){case 5:x=O;break;default:x=O}typeof _=="function"?_(x):_.current=x}}Qe=Qe.nextEffect}}catch(L){if(Qe===null)throw Error(Oe(330));as(Qe,L),Qe=Qe.nextEffect}while(Qe!==null);Qe=null,HD(),Tt=o}else e.current=n;if(ds)ds=!1,Ed=e,sd=t;else for(Qe=r;Qe!==null;)t=Qe.nextEffect,Qe.nextEffect=null,Qe.flags&8&&(k=Qe,k.sibling=null,k.stateNode=null),Qe=t;if(r=e.pendingLanes,r===0&&(Ba=null),r===1?e===J0?Td++:(Td=0,J0=e):Td=0,n=n.stateNode,ol&&typeof ol.onCommitFiberRoot=="function")try{ol.onCommitFiberRoot(Kw,n,void 0,(n.current.flags&64)===64)}catch{}if(Jo(e,jr()),um)throw um=!1,e=K0,K0=null,e;return Tt&8||ti(),null}function c6(){for(;Qe!==null;){var e=Qe.alternate;Eh||kd===null||(Qe.flags&8?J2(Qe,kd)&&(Eh=!0):Qe.tag===13&&r6(e,Qe)&&J2(Qe,kd)&&(Eh=!0));var t=Qe.flags;t&256&&t6(e,Qe),!(t&512)||ds||(ds=!0,Qd(97,function(){return xs(),null})),Qe=Qe.nextEffect}}function xs(){if(sd!==90){var e=97<sd?97:sd;return sd=90,dl(e,d6)}return!1}function u6(e,t){Y0.push(t,e),ds||(ds=!0,Qd(97,function(){return xs(),null}))}function T5(e,t){X0.push(t,e),ds||(ds=!0,Qd(97,function(){return xs(),null}))}function d6(){if(Ed===null)return!1;var e=Ed;if(Ed=null,Tt&48)throw Error(Oe(331));var t=Tt;Tt|=32;var n=X0;X0=[];for(var r=0;r<n.length;r+=2){var o=n[r],a=n[r+1],i=o.destroy;if(o.destroy=void 0,typeof i=="function")try{i()}catch(c){if(a===null)throw Error(Oe(330));as(a,c)}}for(n=Y0,Y0=[],r=0;r<n.length;r+=2){o=n[r],a=n[r+1];try{var l=o.create;o.destroy=l()}catch(c){if(a===null)throw Error(Oe(330));as(a,c)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return Tt=t,ti(),!0}function ZE(e,t,n){t=iS(n,t),t=m5(e,t,1),ns(e,t),t=_o(),e=ag(e,1),e!==null&&(Jm(e,1,t),Jo(e,t))}function as(e,t){if(e.tag===3)ZE(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){ZE(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ba===null||!Ba.has(r))){e=iS(t,e);var o=g5(n,e,1);if(ns(n,o),o=_o(),n=ag(n,1),n!==null)Jm(n,1,o),Jo(n,o);else if(typeof r.componentDidCatch=="function"&&(Ba===null||!Ba.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function p6(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=_o(),e.pingedLanes|=e.suspendedLanes&n,Jr===e&&(Ur&n)===n&&(Or===4||Or===3&&(Ur&62914560)===Ur&&500>jr()-cS?hc(e,0):lS|=n),Jo(e,t)}function f6(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(hi===0&&(hi=Yc),t=Kl(62914560&~hi),t===0&&(t=4194304)):t=Rc()===99?1:2:t=1),n=_o(),e=ag(e,t),e!==null&&(Jm(e,t,n),Jo(e,n))}var k5;k5=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||lo.current)ga=!0;else if(n&r)ga=!!(e.flags&16384);else{switch(ga=!1,t.tag){case 3:FE(t),Hy();break;case 5:PE(t);break;case 1:co(t.type)&&wh(t);break;case 4:N0(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;Yn(Qh,o._currentValue),o._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?zE(e,t,n):(Yn(Kn,Kn.current&1),t=vi(e,t,n),t!==null?t.sibling:null);Yn(Kn,Kn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return VE(e,t,n);t.flags|=64}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Yn(Kn,Kn.current),r)break;return null;case 23:case 24:return t.lanes=0,Vy(e,t,n)}return vi(e,t,n)}else ga=!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=_c(t,Wr.current),dc(t,n),o=nS(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,co(r)){var a=!0;wh(t)}else a=!1;t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Qw(t);var i=r.getDerivedStateFromProps;typeof i=="function"&&tm(t,r,i,e),o.updater=rg,t.stateNode=o,o._reactInternals=t,M0(t,r,e,n),t=z0(null,t,r,!0,a,n)}else t.tag=0,so(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,a=o._init,o=a(o._payload),t.type=o,a=t.tag=m6(o),e=fa(o,e),a){case 0:t=F0(null,t,o,e,n);break e;case 1:t=BE(null,t,o,e,n);break e;case 11:t=NE(null,t,o,e,n);break e;case 14:t=DE(null,t,o,fa(o.type,e),r,n);break e}throw Error(Oe(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fa(r,o),F0(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fa(r,o),BE(e,t,r,o,n);case 3:if(FE(t),r=t.updateQueue,e===null||r===null)throw Error(Oe(282));if(r=t.pendingProps,o=t.memoizedState,o=o!==null?o.element:null,JI(e,t),Zd(t,r,null,n),r=t.memoizedState.element,r===o)Hy(),t=vi(e,t,n);else{if(o=t.stateNode,(a=o.hydrate)&&(qi=uc(t.stateNode.containerInfo.firstChild),gi=t,a=Ua=!0),a){if(e=o.mutableSourceEagerHydrationData,e!=null)for(o=0;o<e.length;o+=2)a=e[o],a._workInProgressVersionPrimary=e[o+1],pc.push(a);for(n=t5(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else so(e,t,r,n),Hy();t=t.child}return t;case 5:return PE(t),e===null&&D0(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,I0(r,o)?i=null:a!==null&&I0(r,a)&&(t.flags|=16),d5(e,t),so(e,t,i,n),t.child;case 6:return e===null&&D0(t),null;case 13:return zE(e,t,n);case 4:return N0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=nm(t,null,r,n):so(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fa(r,o),NE(e,t,r,o,n);case 7:return so(e,t,t.pendingProps,n),t.child;case 8:return so(e,t,t.pendingProps.children,n),t.child;case 12:return so(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value;var l=t.type._context;if(Yn(Qh,l._currentValue),l._currentValue=a,i!==null)if(l=i.value,a=Uo(l,a)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(l,a):1073741823)|0,a===0){if(i.children===o.children&&!lo.current){t=vi(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var c=l.dependencies;if(c!==null){i=l.child;for(var u=c.firstContext;u!==null;){if(u.context===r&&u.observedBits&a){l.tag===1&&(u=ts(-1,n&-n),u.tag=2,ns(l,u)),l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),XI(l.return,n),c.lanes|=n;break}u=u.next}}else i=l.tag===10&&l.type===t.type?null:l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}so(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,a=t.pendingProps,r=a.children,dc(t,n),o=Xo(o,a.unstable_observedBits),r=r(o),t.flags|=1,so(e,t,r,n),t.child;case 14:return o=t.type,a=fa(o,t.pendingProps),a=fa(o.type,a),DE(e,t,o,a,r,n);case 15:return u5(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:fa(r,o),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,co(r)?(e=!0,wh(t)):e=!1,dc(t,n),ZI(t,r,o),M0(t,r,o,n),z0(null,t,r,!0,e,n);case 19:return VE(e,t,n);case 23:return Vy(e,t,n);case 24:return Vy(e,t,n)}throw Error(Oe(156,t.tag))};function h6(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 Wo(e,t,n,r){return new h6(e,t,n,r)}function dS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function m6(e){if(typeof e=="function")return dS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Km)return 11;if(e===Ym)return 14}return 2}function ps(e,t){var n=e.alternate;return n===null?(n=Wo(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 Th(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")dS(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Wi:return mc(n.children,o,a,t);case nI:i=8,o|=16;break;case Aw:i=8,o|=1;break;case md:return e=Wo(12,n,t,o|8),e.elementType=md,e.type=md,e.lanes=a,e;case gd:return e=Wo(13,n,t,o),e.type=gd,e.elementType=gd,e.lanes=a,e;case Wh:return e=Wo(19,n,t,o),e.elementType=Wh,e.lanes=a,e;case Ow:return pS(n,o,a,t);case f0:return e=Wo(24,n,t,o),e.elementType=f0,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _w:i=10;break e;case Rw:i=9;break e;case Km:i=11;break e;case Ym:i=14;break e;case Pw:i=16,r=null;break e;case Iw:i=22;break e}throw Error(Oe(130,e==null?e:typeof e,""))}return t=Wo(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function mc(e,t,n,r){return e=Wo(7,e,r,t),e.lanes=n,e}function pS(e,t,n,r){return e=Wo(23,e,r,t),e.elementType=Ow,e.lanes=n,e}function Ky(e,t,n){return e=Wo(6,e,null,t),e.lanes=n,e}function Yy(e,t,n){return t=Wo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function g6(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=$y(0),this.expirationTimes=$y(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$y(0),this.mutableSourceEagerHydrationData=null}function v6(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xs,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function dm(e,t,n,r){var o=t.current,a=_o(),i=rs(o);e:if(n){n=n._reactInternals;t:{if(xl(n)!==n||n.tag!==1)throw Error(Oe(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(co(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(Oe(171))}if(n.tag===1){var c=n.type;if(co(c)){n=WI(n,c,l);break e}}n=l}else n=us;return t.context===null?t.context=n:t.pendingContext=n,t=ts(a,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),ns(o,t),os(o,i,a),i}function Xy(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 eT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function fS(e,t){eT(e,t),(e=e.alternate)&&eT(e,t)}function y6(){return null}function hS(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new g6(e,t,n!=null&&n.hydrate===!0),t=Wo(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Qw(t),e[Kc]=n.current,BI(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}hS.prototype.render=function(e){dm(e,this._internalRoot,null,null)};hS.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;dm(null,e,null,function(){t[Kc]=null})};function Mp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function b6(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 hS(e,0,t?{hydrate:!0}:void 0)}function ig(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a._internalRoot;if(typeof o=="function"){var l=o;o=function(){var u=Xy(i);l.call(u)}}dm(t,i,e,o)}else{if(a=n._reactRootContainer=b6(n,r),i=a._internalRoot,typeof o=="function"){var c=o;o=function(){var u=Xy(i);c.call(u)}}w5(function(){dm(t,i,e,o)})}return Xy(i)}vI=function(e){if(e.tag===13){var t=_o();os(e,4,t),fS(e,4)}};Bw=function(e){if(e.tag===13){var t=_o();os(e,67108864,t),fS(e,67108864)}};yI=function(e){if(e.tag===13){var t=_o(),n=rs(e);os(e,n,t),fS(e,n)}};bI=function(e,t){return t()};C0=function(e,t,n){switch(t){case"input":if(m0(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=tg(r);if(!o)throw Error(Oe(90));oI(r),m0(r,o)}}}break;case"textarea":iI(e,n);break;case"select":t=n.value,t!=null&&sc(e,!!n.multiple,t,!1)}};Mw=b5;fI=function(e,t,n,r,o){var a=Tt;Tt|=4;try{return dl(98,e.bind(null,t,n,r,o))}finally{Tt=a,Tt===0&&(Jc(),ti())}};Nw=function(){!(Tt&49)&&(a6(),xs())};hI=function(e,t){var n=Tt;Tt|=2;try{return e(t)}finally{Tt=n,Tt===0&&(Jc(),ti())}};function A5(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Mp(t))throw Error(Oe(200));return v6(e,t,null,n)}var w6={Events:[$p,ec,tg,dI,pI,xs,{current:!1}]},Du={findFiberByHostInstance:Qs,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},S6={bundleType:Du.bundleType,version:Du.version,rendererPackageName:Du.rendererPackageName,rendererConfig:Du.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Sl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=gI(e),e===null?null:e.stateNode},findFiberByHostInstance:Du.findFiberByHostInstance||y6,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Of=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Of.isDisabled&&Of.supportsFiber)try{Kw=Of.inject(S6),ol=Of}catch{}}ra.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w6;ra.createPortal=A5;ra.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(Oe(188)):Error(Oe(268,Object.keys(e)));return e=gI(t),e=e===null?null:e.stateNode,e};ra.flushSync=function(e,t){var n=Tt;if(n&48)return e(t);Tt|=1;try{if(e)return dl(99,e.bind(null,t))}finally{Tt=n,ti()}};ra.hydrate=function(e,t,n){if(!Mp(t))throw Error(Oe(200));return ig(null,e,t,!0,n)};ra.render=function(e,t,n){if(!Mp(t))throw Error(Oe(200));return ig(null,e,t,!1,n)};ra.unmountComponentAtNode=function(e){if(!Mp(e))throw Error(Oe(40));return e._reactRootContainer?(w5(function(){ig(null,null,e,!1,function(){e._reactRootContainer=null,e[Kc]=null})}),!0):!1};ra.unstable_batchedUpdates=b5;ra.unstable_createPortal=function(e,t){return A5(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};ra.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Mp(n))throw Error(Oe(200));if(e==null||e._reactInternals===void 0)throw Error(Oe(38));return ig(e,t,n,!1,r)};ra.version="17.0.2";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=ra})(kN);const cd=Gm(Ud);/**
43
- * @remix-run/router v1.3.2
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 rp(){return rp=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},rp.apply(this,arguments)}var Ki;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ki||(Ki={}));const tT="popstate";function x6(e){e===void 0&&(e={});function t(r,o){let{pathname:a,search:i,hash:l}=r.location;return Z0("",{pathname:a,search:i,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:pm(o)}return E6(t,n,null,e)}function sr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function C6(){return Math.random().toString(36).substr(2,8)}function nT(e,t){return{usr:e.state,key:e.key,idx:t}}function Z0(e,t,n,r){return n===void 0&&(n=null),rp({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Qc(t):t,{state:n,key:t&&t.key||r||C6()})}function pm(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 Qc(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 E6(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,l=Ki.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(rp({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){l=Ki.Pop;let v=d(),b=v==null?null:v-u;u=v,c&&c({action:l,location:g.location,delta:b})}function h(v,b){l=Ki.Push;let w=Z0(g.location,v,b);n&&n(w,v),u=d()+1;let x=nT(w,u),E=g.createHref(w);try{i.pushState(x,"",E)}catch{o.location.assign(E)}a&&c&&c({action:l,location:g.location,delta:1})}function m(v,b){l=Ki.Replace;let w=Z0(g.location,v,b);n&&n(w,v),u=d();let x=nT(w,u),E=g.createHref(w);i.replaceState(x,"",E),a&&c&&c({action:l,location:g.location,delta:0})}function y(v){let b=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof v=="string"?v:pm(v);return sr(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let g={get action(){return l},get location(){return e(o,i)},listen(v){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(tT,f),c=v,()=>{o.removeEventListener(tT,f),c=null}},createHref(v){return t(o,v)},createURL:y,encodeLocation(v){let b=y(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:m,go(v){return i.go(v)}};return g}var rT;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rT||(rT={}));function T6(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Qc(t):t,o=I5(r.pathname||"/",n);if(o==null)return null;let a=_5(e);k6(a);let i=null;for(let l=0;i==null&&l<a.length;++l)i=M6(a[l],D6(o));return i}function _5(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,i,l)=>{let c={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};c.relativePath.startsWith("/")&&(sr(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=is([r,c.relativePath]),d=n.concat(c);a.children&&a.children.length>0&&(sr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),_5(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:O6(u,a.index),routesMeta:d})};return e.forEach((a,i)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,i);else for(let c of R5(a.path))o(a,i,c)}),t}function R5(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=R5(r.join("/")),l=[];return l.push(...i.map(c=>c===""?a:[a,c].join("/"))),o&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function k6(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:L6(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const A6=/^:\w+$/,_6=3,R6=2,P6=1,I6=10,$6=-2,oT=e=>e==="*";function O6(e,t){let n=e.split("/"),r=n.length;return n.some(oT)&&(r+=$6),t&&(r+=R6),n.filter(o=>!oT(o)).reduce((o,a)=>o+(A6.test(a)?_6:a===""?P6:I6),r)}function L6(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 M6(e,t){let{routesMeta:n}=e,r={},o="/",a=[];for(let i=0;i<n.length;++i){let l=n[i],c=i===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",d=P5({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u);if(!d)return null;Object.assign(r,d.params);let f=l.route;a.push({params:r,pathname:is([o,d.pathname]),pathnameBase:j6(is([o,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(o=is([o,d.pathnameBase]))}return a}function P5(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=N6(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,d,f)=>{if(d==="*"){let h=l[f]||"";i=a.slice(0,a.length-h.length).replace(/(.)\/+$/,"$1")}return u[d]=B6(l[f]||"",d),u},{}),pathname:a,pathnameBase:i,pattern:e}}function N6(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),mS(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,(i,l)=>(r.push(l),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function D6(e){try{return decodeURI(e)}catch(t){return mS(!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 B6(e,t){try{return decodeURIComponent(e)}catch(n){return mS(!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 I5(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 mS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function F6(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Qc(e):e;return{pathname:n?n.startsWith("/")?n:z6(n,t):t,search:U6(r),hash:W6(o)}}function z6(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 Jy(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 $5(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function O5(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Qc(e):(o=rp({},e),sr(!o.pathname||!o.pathname.includes("?"),Jy("?","pathname","search",o)),sr(!o.pathname||!o.pathname.includes("#"),Jy("#","pathname","hash",o)),sr(!o.search||!o.search.includes("#"),Jy("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(r||i==null)l=n;else{let f=t.length-1;if(i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}l=f>=0?t[f]:"/"}let c=F6(o,l),u=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const is=e=>e.join("/").replace(/\/\/+/g,"/"),j6=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),U6=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,W6=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function H6(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const V6=["post","put","patch","delete"];[...V6];/**
52
- * React Router v6.8.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 eb(){return eb=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},eb.apply(this,arguments)}function G6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const q6=typeof Object.is=="function"?Object.is:G6,{useState:K6,useEffect:Y6,useLayoutEffect:X6,useDebugValue:J6}=ll;function Q6(e,t,n){const r=t(),[{inst:o},a]=K6({inst:{value:r,getSnapshot:t}});return X6(()=>{o.value=r,o.getSnapshot=t,Qy(o)&&a({inst:o})},[e,r,t]),Y6(()=>(Qy(o)&&a({inst:o}),e(()=>{Qy(o)&&a({inst:o})})),[e]),J6(r),r}function Qy(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!q6(n,r)}catch{return!0}}function Z6(e,t,n){return t()}const e9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",t9=!e9,n9=t9?Z6:Q6;"useSyncExternalStore"in ll&&(e=>e.useSyncExternalStore)(ll);const L5=p.createContext(null),sg=p.createContext(null),Np=p.createContext(null),lg=p.createContext(null),El=p.createContext({outlet:null,matches:[]}),M5=p.createContext(null);function r9(e,t){let{relative:n}=t===void 0?{}:t;Zc()||sr(!1);let{basename:r,navigator:o}=p.useContext(Np),{hash:a,pathname:i,search:l}=gS(e,{relative:n}),c=i;return r!=="/"&&(c=i==="/"?r:is([r,i])),o.createHref({pathname:c,search:l,hash:a})}function Zc(){return p.useContext(lg)!=null}function oa(){return Zc()||sr(!1),p.useContext(lg).location}function ut(){Zc()||sr(!1);let{basename:e,navigator:t}=p.useContext(Np),{matches:n}=p.useContext(El),{pathname:r}=oa(),o=JSON.stringify($5(n).map(l=>l.pathnameBase)),a=p.useRef(!1);return p.useEffect(()=>{a.current=!0}),p.useCallback(function(l,c){if(c===void 0&&(c={}),!a.current)return;if(typeof l=="number"){t.go(l);return}let u=O5(l,JSON.parse(o),r,c.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:is([e,u.pathname])),(c.replace?t.replace:t.push)(u,c.state,c)},[e,t,o,r])}function o9(){let{matches:e}=p.useContext(El),t=e[e.length-1];return t?t.params:{}}function gS(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=p.useContext(El),{pathname:o}=oa(),a=JSON.stringify($5(r).map(i=>i.pathnameBase));return p.useMemo(()=>O5(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function a9(e,t){Zc()||sr(!1);let{navigator:n}=p.useContext(Np),r=p.useContext(sg),{matches:o}=p.useContext(El),a=o[o.length-1],i=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=oa(),u;if(t){var d;let g=typeof t=="string"?Qc(t):t;l==="/"||(d=g.pathname)!=null&&d.startsWith(l)||sr(!1),u=g}else u=c;let f=u.pathname||"/",h=l==="/"?f:f.slice(l.length)||"/",m=T6(e,{pathname:h}),y=c9(m&&m.map(g=>Object.assign({},g,{params:Object.assign({},i,g.params),pathname:is([l,n.encodeLocation?n.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:is([l,n.encodeLocation?n.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,r||void 0);return t&&y?p.createElement(lg.Provider,{value:{location:eb({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ki.Pop}},y):y}function i9(){let e=f9(),t=H6(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)"},a=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,a)}class s9 extends p.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?p.createElement(El.Provider,{value:this.props.routeContext},p.createElement(M5.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function l9(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(L5);return o&&o.static&&o.staticContext&&n.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(El.Provider,{value:t},r)}function c9(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let a=r.findIndex(i=>i.route.id&&(o==null?void 0:o[i.route.id]));a>=0||sr(!1),r=r.slice(0,Math.min(r.length,a+1))}return r.reduceRight((a,i,l)=>{let c=i.route.id?o==null?void 0:o[i.route.id]:null,u=n?i.route.errorElement||p.createElement(i9,null):null,d=t.concat(r.slice(0,l+1)),f=()=>p.createElement(l9,{match:i,routeContext:{outlet:a,matches:d}},c?u:i.route.element!==void 0?i.route.element:a);return n&&(i.route.errorElement||l===0)?p.createElement(s9,{location:n.location,component:u,error:c,children:f(),routeContext:{outlet:null,matches:d}}):f()},null)}var aT;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(aT||(aT={}));var fm;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(fm||(fm={}));function u9(e){let t=p.useContext(sg);return t||sr(!1),t}function d9(e){let t=p.useContext(El);return t||sr(!1),t}function p9(e){let t=d9(),n=t.matches[t.matches.length-1];return n.route.id||sr(!1),n.route.id}function f9(){var e;let t=p.useContext(M5),n=u9(fm.UseRouteError),r=p9(fm.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Tl(e){let{to:t,replace:n,state:r,relative:o}=e;Zc()||sr(!1);let a=p.useContext(sg),i=ut();return p.useEffect(()=>{a&&a.navigation.state!=="idle"||i(t,{replace:n,state:r,relative:o})}),null}function kh(e){sr(!1)}function h9(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Ki.Pop,navigator:a,static:i=!1}=e;Zc()&&sr(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:a,static:i}),[l,a,i]);typeof r=="string"&&(r=Qc(r));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:m="default"}=r,y=p.useMemo(()=>{let g=I5(u,l);return g==null?null:{pathname:g,search:d,hash:f,state:h,key:m}},[l,u,d,f,h,m]);return y==null?null:p.createElement(Np.Provider,{value:c},p.createElement(lg.Provider,{children:n,value:{location:y,navigationType:o}}))}function m9(e){let{children:t,location:n}=e,r=p.useContext(L5),o=r&&!t?r.router.routes:tb(t);return a9(o,n)}var iT;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(iT||(iT={}));new Promise(()=>{});function tb(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;if(r.type===p.Fragment){n.push.apply(n,tb(r.props.children,t));return}r.type!==kh&&sr(!1),!r.props.index||!r.props.children||sr(!1);let a=[...t,o],i={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(i.children=tb(r.props.children,a)),n.push(i)}),n}/**
61
- * React Router DOM v6.8.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 hm(){return hm=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},hm.apply(this,arguments)}function N5(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function g9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function v9(e,t){return e.button===0&&(!t||t==="_self")&&!g9(e)}function nb(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 y9(e,t){let n=nb(e);if(t)for(let r of t.keys())n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)});return n}const b9=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],w9=["aria-current","caseSensitive","className","end","style","to","children"];function S9(e){let{basename:t,children:n,window:r}=e,o=p.useRef();o.current==null&&(o.current=x6({window:r,v5Compat:!0}));let a=o.current,[i,l]=p.useState({action:a.action,location:a.location});return p.useLayoutEffect(()=>a.listen(l),[a]),p.createElement(h9,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:a})}const x9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sn=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:a,replace:i,state:l,target:c,to:u,preventScrollReset:d}=t,f=N5(t,b9),h,m=!1;if(x9&&typeof u=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(u)){h=u;let b=new URL(window.location.href),w=u.startsWith("//")?new URL(b.protocol+u):new URL(u);w.origin===b.origin?u=w.pathname+w.search+w.hash:m=!0}let y=r9(u,{relative:o}),g=C9(u,{replace:i,state:l,target:c,preventScrollReset:d,relative:o});function v(b){r&&r(b),b.defaultPrevented||g(b)}return p.createElement("a",hm({},f,{href:h||y,onClick:m||a?r:v,ref:n,target:c}))}),IRe=p.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:a="",end:i=!1,style:l,to:c,children:u}=t,d=N5(t,w9),f=gS(c,{relative:d.relative}),h=oa(),m=p.useContext(sg),{navigator:y}=p.useContext(Np),g=y.encodeLocation?y.encodeLocation(f).pathname:f.pathname,v=h.pathname,b=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;o||(v=v.toLowerCase(),b=b?b.toLowerCase():null,g=g.toLowerCase());let w=v===g||!i&&v.startsWith(g)&&v.charAt(g.length)==="/",x=b!=null&&(b===g||!i&&b.startsWith(g)&&b.charAt(g.length)==="/"),E=w?r:void 0,A;typeof a=="function"?A=a({isActive:w,isPending:x}):A=[a,w?"active":null,x?"pending":null].filter(Boolean).join(" ");let k=typeof l=="function"?l({isActive:w,isPending:x}):l;return p.createElement(sn,hm({},d,{"aria-current":E,className:A,ref:n,style:k,to:c}),typeof u=="function"?u({isActive:w,isPending:x}):u)});var sT;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(sT||(sT={}));var lT;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(lT||(lT={}));function C9(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i}=t===void 0?{}:t,l=ut(),c=oa(),u=gS(e,{relative:i});return p.useCallback(d=>{if(v9(d,n)){d.preventDefault();let f=r!==void 0?r:pm(c)===pm(u);l(e,{replace:f,state:o,preventScrollReset:a,relative:i})}},[c,l,u,r,o,n,e,a,i])}function Dp(e){let t=p.useRef(nb(e)),n=p.useRef(!1),r=oa(),o=p.useMemo(()=>y9(r.search,n.current?null:t.current),[r.search]),a=ut(),i=p.useCallback((l,c)=>{const u=nb(typeof l=="function"?l(o):l);n.current=!0,a("?"+u,c)},[a,o]);return[o,i]}const E9={black:"#000",white:"#fff"},op=E9,T9={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"},Ml=T9,k9={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"},Nl=k9,A9={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"},Dl=A9,_9={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"},Bl=_9,R9={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"},Fl=R9,P9={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"},Bu=P9,I9={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"},$9=I9;function gc(){return gc=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},gc.apply(this,arguments)}function Gs(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function D5(e){if(!Gs(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=D5(e[n])}),t}function Ro(e,t,n={clone:!0}){const r=n.clone?gc({},e):e;return Gs(e)&&Gs(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Gs(t[o])&&o in e&&Gs(e[o])?r[o]=Ro(e[o],t[o],n):n.clone?r[o]=Gs(t[o])?D5(t[o]):t[o]:r[o]=t[o])}),r}var ct={},O9={get exports(){return ct},set exports(e){ct=e}},L9="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",M9=L9,N9=M9;function B5(){}function F5(){}F5.resetWarningCache=B5;var D9=function(){function e(r,o,a,i,l,c){if(c!==N9){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:F5,resetWarningCache:B5};return n.PropTypes=n,n};O9.exports=D9();function fs(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 rb={},B9={get exports(){return rb},set exports(e){rb=e}},mn={};/**
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 vS=Symbol.for("react.element"),yS=Symbol.for("react.portal"),cg=Symbol.for("react.fragment"),ug=Symbol.for("react.strict_mode"),dg=Symbol.for("react.profiler"),pg=Symbol.for("react.provider"),fg=Symbol.for("react.context"),F9=Symbol.for("react.server_context"),hg=Symbol.for("react.forward_ref"),mg=Symbol.for("react.suspense"),gg=Symbol.for("react.suspense_list"),vg=Symbol.for("react.memo"),yg=Symbol.for("react.lazy"),z9=Symbol.for("react.offscreen"),z5;z5=Symbol.for("react.module.reference");function aa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vS:switch(e=e.type,e){case cg:case dg:case ug:case mg:case gg:return e;default:switch(e=e&&e.$$typeof,e){case F9:case fg:case hg:case yg:case vg:case pg:return e;default:return t}}case yS:return t}}}mn.ContextConsumer=fg;mn.ContextProvider=pg;mn.Element=vS;mn.ForwardRef=hg;mn.Fragment=cg;mn.Lazy=yg;mn.Memo=vg;mn.Portal=yS;mn.Profiler=dg;mn.StrictMode=ug;mn.Suspense=mg;mn.SuspenseList=gg;mn.isAsyncMode=function(){return!1};mn.isConcurrentMode=function(){return!1};mn.isContextConsumer=function(e){return aa(e)===fg};mn.isContextProvider=function(e){return aa(e)===pg};mn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vS};mn.isForwardRef=function(e){return aa(e)===hg};mn.isFragment=function(e){return aa(e)===cg};mn.isLazy=function(e){return aa(e)===yg};mn.isMemo=function(e){return aa(e)===vg};mn.isPortal=function(e){return aa(e)===yS};mn.isProfiler=function(e){return aa(e)===dg};mn.isStrictMode=function(e){return aa(e)===ug};mn.isSuspense=function(e){return aa(e)===mg};mn.isSuspenseList=function(e){return aa(e)===gg};mn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===cg||e===dg||e===ug||e===mg||e===gg||e===z9||typeof e=="object"&&e!==null&&(e.$$typeof===yg||e.$$typeof===vg||e.$$typeof===pg||e.$$typeof===fg||e.$$typeof===hg||e.$$typeof===z5||e.getModuleId!==void 0)};mn.typeOf=aa;(function(e){e.exports=mn})(B9);const j9=Gm(rb);function ie(e){if(typeof e!="string")throw new Error(fs(7));return e.charAt(0).toUpperCase()+e.slice(1)}function mm(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function fl(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function U9(e,t){return()=>null}function Ad(e,t){return p.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Bn(e){return e&&e.ownerDocument||document}function Qo(e){return Bn(e).defaultView||window}function W9(e,t){return()=>null}function ap(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const H9=typeof window<"u"?p.useLayoutEffect:p.useEffect,Io=H9;let cT=0;function V9(e){const[t,n]=p.useState(e),r=e||t;return p.useEffect(()=>{t==null&&(cT+=1,n(`mui-${cT}`))},[t]),r}const uT=ll["useId"];function eu(e){if(uT!==void 0){const t=uT();return e??t}return V9(e)}function G9(e,t,n,r,o){return null}function ya({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=p.useRef(e!==void 0),[a,i]=p.useState(t),l=o?e:a,c=p.useCallback(u=>{o||i(u)},[]);return[l,c]}function pr(e){const t=p.useRef(e);return Io(()=>{t.current=e}),p.useCallback((...n)=>(0,t.current)(...n),[])}function wn(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ap(n,t)})},e)}let bg=!0,ob=!1,dT;const q9={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 K9(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&q9[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Y9(e){e.metaKey||e.altKey||e.ctrlKey||(bg=!0)}function Zy(){bg=!1}function X9(){this.visibilityState==="hidden"&&ob&&(bg=!0)}function J9(e){e.addEventListener("keydown",Y9,!0),e.addEventListener("mousedown",Zy,!0),e.addEventListener("pointerdown",Zy,!0),e.addEventListener("touchstart",Zy,!0),e.addEventListener("visibilitychange",X9,!0)}function Q9(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return bg||K9(t)}function Bp(){const e=p.useCallback(o=>{o!=null&&J9(o.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(ob=!0,window.clearTimeout(dT),dT=window.setTimeout(()=>{ob=!1},100),t.current=!1,!0):!1}function r(o){return Q9(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function j5(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let zl;function U5(){if(zl)return zl;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),zl="reverse",e.scrollLeft>0?zl="default":(e.scrollLeft=1,e.scrollLeft===0&&(zl="negative")),document.body.removeChild(e),zl}function pT(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(U5()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Z9=e=>{const t=p.useRef({});return p.useEffect(()=>{t.current=e}),t.current},eB=Z9,tB={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},nB=tB;function bS(e,t){const n=gc({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=gc({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=o:!o||!Object.keys(o)?n[r]=a:(n[r]=gc({},a),Object.keys(o).forEach(i=>{n[r][i]=bS(o[i],a[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function We(e,t,n){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,i)=>(i&&(a.push(t(i)),n&&n[i]&&a.push(n[i])),a),[]).join(" ")}),r}const fT=e=>e,rB=()=>{let e=fT;return{configure(t){e=t},generate(t){return e(t)},reset(){e=fT}}},oB=rB(),wS=oB,aB={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=aB[t];return r?`${n}-${r}`:`${wS.generate(e)}-${t}`}function je(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ze(e,o,n)}),r}function P(){return P=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},P.apply(this,arguments)}function $e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function gm(){return gm=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},gm.apply(this,arguments)}function W5(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var iB=/^((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)-.*))$/,sB=W5(function(e){return iB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function lB(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 cB(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 uB=function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),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(cB(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=lB(o);try{a.insertRule(r,a.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}(),Br="-ms-",vm="-moz-",nn="-webkit-",H5="comm",SS="rule",xS="decl",dB="@import",V5="@keyframes",pB=Math.abs,wg=String.fromCharCode,fB=Object.assign;function hB(e,t){return $r(e,0)^45?(((t<<2^$r(e,0))<<2^$r(e,1))<<2^$r(e,2))<<2^$r(e,3):0}function G5(e){return e.trim()}function mB(e,t){return(e=t.exec(e))?e[0]:e}function on(e,t,n){return e.replace(t,n)}function ab(e,t){return e.indexOf(t)}function $r(e,t){return e.charCodeAt(t)|0}function ip(e,t,n){return e.slice(t,n)}function Ra(e){return e.length}function CS(e){return e.length}function Lf(e,t){return t.push(e),e}function gB(e,t){return e.map(t).join("")}var Sg=1,Ic=1,q5=0,go=0,rr=0,tu="";function xg(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Sg,column:Ic,length:i,return:""}}function Fu(e,t){return fB(xg("",null,null,"",null,null,0),e,{length:-e.length},t)}function vB(){return rr}function yB(){return rr=go>0?$r(tu,--go):0,Ic--,rr===10&&(Ic=1,Sg--),rr}function Po(){return rr=go<q5?$r(tu,go++):0,Ic++,rr===10&&(Ic=1,Sg++),rr}function Wa(){return $r(tu,go)}function Ah(){return go}function Fp(e,t){return ip(tu,e,t)}function sp(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 K5(e){return Sg=Ic=1,q5=Ra(tu=e),go=0,[]}function Y5(e){return tu="",e}function _h(e){return G5(Fp(go-1,ib(e===91?e+2:e===40?e+1:e)))}function bB(e){for(;(rr=Wa())&&rr<33;)Po();return sp(e)>2||sp(rr)>3?"":" "}function wB(e,t){for(;--t&&Po()&&!(rr<48||rr>102||rr>57&&rr<65||rr>70&&rr<97););return Fp(e,Ah()+(t<6&&Wa()==32&&Po()==32))}function ib(e){for(;Po();)switch(rr){case e:return go;case 34:case 39:e!==34&&e!==39&&ib(rr);break;case 40:e===41&&ib(e);break;case 92:Po();break}return go}function SB(e,t){for(;Po()&&e+rr!==47+10;)if(e+rr===42+42&&Wa()===47)break;return"/*"+Fp(t,go-1)+"*"+wg(e===47?e:Po())}function xB(e){for(;!sp(Wa());)Po();return Fp(e,go)}function CB(e){return Y5(Rh("",null,null,null,[""],e=K5(e),0,[0],e))}function Rh(e,t,n,r,o,a,i,l,c){for(var u=0,d=0,f=i,h=0,m=0,y=0,g=1,v=1,b=1,w=0,x="",E=o,A=a,k=r,_=x;v;)switch(y=w,w=Po()){case 40:if(y!=108&&$r(_,f-1)==58){ab(_+=on(_h(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:_+=_h(w);break;case 9:case 10:case 13:case 32:_+=bB(y);break;case 92:_+=wB(Ah()-1,7);continue;case 47:switch(Wa()){case 42:case 47:Lf(EB(SB(Po(),Ah()),t,n),c);break;default:_+="/"}break;case 123*g:l[u++]=Ra(_)*b;case 125*g:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+d:m>0&&Ra(_)-f&&Lf(m>32?mT(_+";",r,n,f-1):mT(on(_," ","")+";",r,n,f-2),c);break;case 59:_+=";";default:if(Lf(k=hT(_,t,n,u,d,o,l,x,E=[],A=[],f),a),w===123)if(d===0)Rh(_,t,k,k,E,a,f,l,A);else switch(h===99&&$r(_,3)===110?100:h){case 100:case 109:case 115:Rh(e,k,k,r&&Lf(hT(e,k,k,0,0,o,l,x,o,E=[],f),A),o,A,f,l,r?E:A);break;default:Rh(_,k,k,k,[""],A,0,l,A)}}u=d=m=0,g=b=1,x=_="",f=i;break;case 58:f=1+Ra(_),m=y;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&yB()==125)continue}switch(_+=wg(w),w*g){case 38:b=d>0?1:(_+="\f",-1);break;case 44:l[u++]=(Ra(_)-1)*b,b=1;break;case 64:Wa()===45&&(_+=_h(Po())),h=Wa(),d=f=Ra(x=_+=xB(Ah())),w++;break;case 45:y===45&&Ra(_)==2&&(g=0)}}return a}function hT(e,t,n,r,o,a,i,l,c,u,d){for(var f=o-1,h=o===0?a:[""],m=CS(h),y=0,g=0,v=0;y<r;++y)for(var b=0,w=ip(e,f+1,f=pB(g=i[y])),x=e;b<m;++b)(x=G5(g>0?h[b]+" "+w:on(w,/&\f/g,h[b])))&&(c[v++]=x);return xg(e,t,n,o===0?SS:l,c,u,d)}function EB(e,t,n){return xg(e,t,n,H5,wg(vB()),ip(e,2,-2),0)}function mT(e,t,n,r){return xg(e,t,n,xS,ip(e,0,r),ip(e,r+1,-1),r)}function vc(e,t){for(var n="",r=CS(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function TB(e,t,n,r){switch(e.type){case dB:case xS:return e.return=e.return||e.value;case H5:return"";case V5:return e.return=e.value+"{"+vc(e.children,r)+"}";case SS:e.value=e.props.join(",")}return Ra(n=vc(e.children,r))?e.return=e.value+"{"+n+"}":""}function kB(e){var t=CS(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}function AB(e){return function(t){t.root||(t=t.return)&&e(t)}}var _B=function(t,n,r){for(var o=0,a=0;o=a,a=Wa(),o===38&&a===12&&(n[r]=1),!sp(a);)Po();return Fp(t,go)},RB=function(t,n){var r=-1,o=44;do switch(sp(o)){case 0:o===38&&Wa()===12&&(n[r]=1),t[r]+=_B(go-1,n,r);break;case 2:t[r]+=_h(o);break;case 4:if(o===44){t[++r]=Wa()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=wg(o)}while(o=Po());return t},PB=function(t,n){return Y5(RB(K5(t),n))},gT=new WeakMap,IB=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&&!gT.get(r))&&!o){gT.set(t,!0);for(var a=[],i=PB(n,a),l=r.props,c=0,u=0;c<i.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=a[c]?i[c].replace(/&\f/g,l[d]):l[d]+" "+i[c]}}},$B=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function X5(e,t){switch(hB(e,t)){case 5103:return nn+"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 nn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return nn+e+vm+e+Br+e+e;case 6828:case 4268:return nn+e+Br+e+e;case 6165:return nn+e+Br+"flex-"+e+e;case 5187:return nn+e+on(e,/(\w+).+(:[^]+)/,nn+"box-$1$2"+Br+"flex-$1$2")+e;case 5443:return nn+e+Br+"flex-item-"+on(e,/flex-|-self/,"")+e;case 4675:return nn+e+Br+"flex-line-pack"+on(e,/align-content|flex-|-self/,"")+e;case 5548:return nn+e+Br+on(e,"shrink","negative")+e;case 5292:return nn+e+Br+on(e,"basis","preferred-size")+e;case 6060:return nn+"box-"+on(e,"-grow","")+nn+e+Br+on(e,"grow","positive")+e;case 4554:return nn+on(e,/([^-])(transform)/g,"$1"+nn+"$2")+e;case 6187:return on(on(on(e,/(zoom-|grab)/,nn+"$1"),/(image-set)/,nn+"$1"),e,"")+e;case 5495:case 3959:return on(e,/(image-set\([^]*)/,nn+"$1$`$1");case 4968:return on(on(e,/(.+:)(flex-)?(.*)/,nn+"box-pack:$3"+Br+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+nn+e+e;case 4095:case 3583:case 4068:case 2532:return on(e,/(.+)-inline(.+)/,nn+"$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(Ra(e)-1-t>6)switch($r(e,t+1)){case 109:if($r(e,t+4)!==45)break;case 102:return on(e,/(.+:)(.+)-([^]+)/,"$1"+nn+"$2-$3$1"+vm+($r(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ab(e,"stretch")?X5(on(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($r(e,t+1)!==115)break;case 6444:switch($r(e,Ra(e)-3-(~ab(e,"!important")&&10))){case 107:return on(e,":",":"+nn)+e;case 101:return on(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+nn+($r(e,14)===45?"inline-":"")+"box$3$1"+nn+"$2$3$1"+Br+"$2box$3")+e}break;case 5936:switch($r(e,t+11)){case 114:return nn+e+Br+on(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return nn+e+Br+on(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return nn+e+Br+on(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return nn+e+Br+e+e}return e}var OB=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case xS:t.return=X5(t.value,t.length);break;case V5:return vc([Fu(t,{value:on(t.value,"@","@"+nn)})],o);case SS:if(t.length)return gB(t.props,function(a){switch(mB(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vc([Fu(t,{props:[on(a,/:(read-\w+)/,":"+vm+"$1")]})],o);case"::placeholder":return vc([Fu(t,{props:[on(a,/:(plac\w+)/,":"+nn+"input-$1")]}),Fu(t,{props:[on(a,/:(plac\w+)/,":"+vm+"$1")]}),Fu(t,{props:[on(a,/:(plac\w+)/,Br+"input-$1")]})],o)}return""})}},LB=[OB],J5=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(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||LB,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)a[v[b]]=!0;l.push(g)});var c,u=[IB,$B];{var d,f=[TB,AB(function(g){d.insert(g)})],h=kB(u.concat(o,f)),m=function(v){return vc(CB(v),h)};c=function(v,b,w,x){d=w,m(v?v+"{"+b.styles+"}":b.styles),x&&(y.inserted[b.name]=!0)}}var y={key:n,sheet:new uB({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return y.sheet.hydrate(l),y},sb={},MB={get exports(){return sb},set exports(e){sb=e}},gn={};/** @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,ES=kr?Symbol.for("react.element"):60103,TS=kr?Symbol.for("react.portal"):60106,Cg=kr?Symbol.for("react.fragment"):60107,Eg=kr?Symbol.for("react.strict_mode"):60108,Tg=kr?Symbol.for("react.profiler"):60114,kg=kr?Symbol.for("react.provider"):60109,Ag=kr?Symbol.for("react.context"):60110,kS=kr?Symbol.for("react.async_mode"):60111,_g=kr?Symbol.for("react.concurrent_mode"):60111,Rg=kr?Symbol.for("react.forward_ref"):60112,Pg=kr?Symbol.for("react.suspense"):60113,NB=kr?Symbol.for("react.suspense_list"):60120,Ig=kr?Symbol.for("react.memo"):60115,$g=kr?Symbol.for("react.lazy"):60116,DB=kr?Symbol.for("react.block"):60121,BB=kr?Symbol.for("react.fundamental"):60117,FB=kr?Symbol.for("react.responder"):60118,zB=kr?Symbol.for("react.scope"):60119;function Mo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ES:switch(e=e.type,e){case kS:case _g:case Cg:case Tg:case Eg:case Pg:return e;default:switch(e=e&&e.$$typeof,e){case Ag:case Rg:case $g:case Ig:case kg:return e;default:return t}}case TS:return t}}}function Q5(e){return Mo(e)===_g}gn.AsyncMode=kS;gn.ConcurrentMode=_g;gn.ContextConsumer=Ag;gn.ContextProvider=kg;gn.Element=ES;gn.ForwardRef=Rg;gn.Fragment=Cg;gn.Lazy=$g;gn.Memo=Ig;gn.Portal=TS;gn.Profiler=Tg;gn.StrictMode=Eg;gn.Suspense=Pg;gn.isAsyncMode=function(e){return Q5(e)||Mo(e)===kS};gn.isConcurrentMode=Q5;gn.isContextConsumer=function(e){return Mo(e)===Ag};gn.isContextProvider=function(e){return Mo(e)===kg};gn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ES};gn.isForwardRef=function(e){return Mo(e)===Rg};gn.isFragment=function(e){return Mo(e)===Cg};gn.isLazy=function(e){return Mo(e)===$g};gn.isMemo=function(e){return Mo(e)===Ig};gn.isPortal=function(e){return Mo(e)===TS};gn.isProfiler=function(e){return Mo(e)===Tg};gn.isStrictMode=function(e){return Mo(e)===Eg};gn.isSuspense=function(e){return Mo(e)===Pg};gn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Cg||e===_g||e===Tg||e===Eg||e===Pg||e===NB||typeof e=="object"&&e!==null&&(e.$$typeof===$g||e.$$typeof===Ig||e.$$typeof===kg||e.$$typeof===Ag||e.$$typeof===Rg||e.$$typeof===BB||e.$$typeof===FB||e.$$typeof===zB||e.$$typeof===DB)};gn.typeOf=Mo;(function(e){e.exports=gn})(MB);var Z5=sb,jB={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},UB={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},e$={};e$[Z5.ForwardRef]=jB;e$[Z5.Memo]=UB;var WB=!0;function t$(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var n$=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||WB===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},AS=function(t,n,r){n$(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function HB(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 VB={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},GB=/[A-Z]|^ms/g,qB=/_EMO_([^_]+?)_([^]*?)_EMO_/g,r$=function(t){return t.charCodeAt(1)===45},vT=function(t){return t!=null&&typeof t!="boolean"},e1=W5(function(e){return r$(e)?e:e.replace(GB,"-$&").toLowerCase()}),yT=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(qB,function(r,o,a){return Pa={name:o,styles:a,next:Pa},o})}return VB[t]!==1&&!r$(t)&&typeof n=="number"&&n!==0?n+"px":n};function lp(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 Pa={name:n.name,styles:n.styles,next:Pa},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Pa={name:r.name,styles:r.styles,next:Pa},r=r.next;var o=n.styles+";";return o}return KB(e,t,n)}case"function":{if(e!==void 0){var a=Pa,i=n(e);return Pa=a,lp(e,t,i)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function KB(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=lp(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":vT(i)&&(r+=e1(a)+":"+yT(a,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)vT(i[l])&&(r+=e1(a)+":"+yT(a,i[l])+";");else{var c=lp(e,t,i);switch(a){case"animation":case"animationName":{r+=e1(a)+":"+c+";";break}default:r+=a+"{"+c+"}"}}}return r}var bT=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Pa,Og=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,a="";Pa=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,a+=lp(r,n,i)):a+=i[0];for(var l=1;l<t.length;l++)a+=lp(r,n,t[l]),o&&(a+=i[l]);bT.lastIndex=0;for(var c="",u;(u=bT.exec(a))!==null;)c+="-"+u[1];var d=HB(a)+c;return{name:d,styles:a,next:Pa}},YB=function(t){return t()},o$=ll["useInsertionEffect"]?ll["useInsertionEffect"]:!1,XB=o$||YB,wT=o$||p.useLayoutEffect,_S=p.createContext(typeof HTMLElement<"u"?J5({key:"css"}):null),JB=_S.Provider,QB=function(){return p.useContext(_S)},a$=function(t){return p.forwardRef(function(n,r){var o=p.useContext(_S);return t(n,o,r)})},RS=p.createContext({}),ZB=a$(function(e,t){var n=e.styles,r=Og([n],void 0,p.useContext(RS)),o=p.useRef();return wT(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",a),i.hydrate([c])),o.current=[i,l],function(){i.flush()}},[t]),wT(function(){var a=o.current,i=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&AS(t,r.next,!0),i.tags.length){var c=i.tags[i.tags.length-1].nextElementSibling;i.before=c,i.flush()}t.insert("",r,i,!1)},[t,r.name]),null});function nu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Og(t)}var Cs=function(){var t=nu.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_"}}},eF=sB,tF=function(t){return t!=="theme"},ST=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?eF:tF},xT=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},nF=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return n$(n,r,o),XB(function(){return AS(n,r,o)}),null},rF=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var l=xT(t,n,r),c=l||ST(o),u=!c("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var h=d.length,m=1;m<h;m++)f.push(d[m],d[0][m])}var y=a$(function(g,v,b){var w=u&&g.as||o,x="",E=[],A=g;if(g.theme==null){A={};for(var k in g)A[k]=g[k];A.theme=p.useContext(RS)}typeof g.className=="string"?x=t$(v.registered,E,g.className):g.className!=null&&(x=g.className+" ");var _=Og(f.concat(E),v.registered,A);x+=v.key+"-"+_.name,i!==void 0&&(x+=" "+i);var O=u&&l===void 0?ST(w):c,L={};for(var I in g)u&&I==="as"||O(I)&&(L[I]=g[I]);return L.className=x,L.ref=b,p.createElement(p.Fragment,null,p.createElement(nF,{cache:v,serialized:_,isStringTag:typeof w=="string"}),p.createElement(w,L))});return y.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=f,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+i}}),y.withComponent=function(g,v){return e(g,gm({},n,v,{shouldForwardProp:xT(y,v,!0)})).apply(void 0,f)},y}},oF=["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"],lb=rF.bind();oF.forEach(function(e){lb[e]=lb(e)});const aF=lb;function iF(e){return e==null||Object.keys(e).length===0}function sF(e){const{styles:t,defaultTheme:n={}}=e;return s(ZB,{styles:typeof t=="function"?o=>t(iF(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 i$(e,t){return aF(e,t)}const lF=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function ar(){return ar=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},ar.apply(this,arguments)}function _d(e,t){return t?Ro(e,t,{clone:!1}):e}const PS={xs:0,sm:600,md:900,lg:1200,xl:1536},CT={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${PS[e]}px)`};function Zo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||CT;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const a=r.breakpoints||CT;return Object.keys(t).reduce((i,l)=>{if(Object.keys(a.values||PS).indexOf(l)!==-1){const c=a.up(l);i[c]=n(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return n(t)}function s$(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function l$(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function $Re(e,...t){const n=s$(e),r=[n,...t].reduce((o,a)=>Ro(o,a),{});return l$(Object.keys(n),r)}function cF(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Lg({values:e,breakpoints:t,base:n}){const r=n||cF(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((i,l,c)=>(Array.isArray(e)?(i[l]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[a],a=l):i[l]=e,i),{})}function $c(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ym(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=$c(e,n)||r,t&&(o=t(o,r,e)),o}function ln(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=$c(c,r)||{};return Zo(i,l,f=>{let h=ym(u,o,f);return f===h&&typeof f=="string"&&(h=ym(u,o,`${t}${f==="default"?"":ie(f)}`,f)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function Mg(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?_d(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function uF(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const dF={m:"margin",p:"padding"},pF={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ET={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fF=uF(e=>{if(e.length>2)if(ET[e])e=ET[e];else return[e];const[t,n]=e.split(""),r=dF[t],o=pF[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),IS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$S=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...IS,...$S];function zp(e,t,n,r){var o;const a=(o=$c(e,t,!1))!=null?o:n;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function c$(e){return zp(e,"spacing",8)}function jp(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 hF(e,t){return n=>e.reduce((r,o)=>(r[o]=jp(t,n),r),{})}function mF(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=fF(n),a=hF(o,r),i=e[n];return Zo(e,i,a)}function u$(e,t){const n=c$(e.theme);return Object.keys(e).map(r=>mF(e,t,r,n)).reduce(_d,{})}function Vn(e){return u$(e,IS)}Vn.propTypes={};Vn.filterProps=IS;function Gn(e){return u$(e,$S)}Gn.propTypes={};Gn.filterProps=$S;function Ia(e){return typeof e!="number"?e:`${e}px solid`}const gF=ln({prop:"border",themeKey:"borders",transform:Ia}),vF=ln({prop:"borderTop",themeKey:"borders",transform:Ia}),yF=ln({prop:"borderRight",themeKey:"borders",transform:Ia}),bF=ln({prop:"borderBottom",themeKey:"borders",transform:Ia}),wF=ln({prop:"borderLeft",themeKey:"borders",transform:Ia}),SF=ln({prop:"borderColor",themeKey:"palette"}),xF=ln({prop:"borderTopColor",themeKey:"palette"}),CF=ln({prop:"borderRightColor",themeKey:"palette"}),EF=ln({prop:"borderBottomColor",themeKey:"palette"}),TF=ln({prop:"borderLeftColor",themeKey:"palette"}),Ng=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=zp(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:jp(t,r)});return Zo(e,e.borderRadius,n)}return null};Ng.propTypes={};Ng.filterProps=["borderRadius"];Mg(gF,vF,yF,bF,wF,SF,xF,CF,EF,TF,Ng);const Dg=e=>{if(e.gap!==void 0&&e.gap!==null){const t=zp(e.theme,"spacing",8),n=r=>({gap:jp(t,r)});return Zo(e,e.gap,n)}return null};Dg.propTypes={};Dg.filterProps=["gap"];const Bg=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=zp(e.theme,"spacing",8),n=r=>({columnGap:jp(t,r)});return Zo(e,e.columnGap,n)}return null};Bg.propTypes={};Bg.filterProps=["columnGap"];const Fg=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=zp(e.theme,"spacing",8),n=r=>({rowGap:jp(t,r)});return Zo(e,e.rowGap,n)}return null};Fg.propTypes={};Fg.filterProps=["rowGap"];const kF=ln({prop:"gridColumn"}),AF=ln({prop:"gridRow"}),_F=ln({prop:"gridAutoFlow"}),RF=ln({prop:"gridAutoColumns"}),PF=ln({prop:"gridAutoRows"}),IF=ln({prop:"gridTemplateColumns"}),$F=ln({prop:"gridTemplateRows"}),OF=ln({prop:"gridTemplateAreas"}),LF=ln({prop:"gridArea"});Mg(Dg,Bg,Fg,kF,AF,_F,RF,PF,IF,$F,OF,LF);function yc(e,t){return t==="grey"?t:e}const MF=ln({prop:"color",themeKey:"palette",transform:yc}),NF=ln({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:yc}),DF=ln({prop:"backgroundColor",themeKey:"palette",transform:yc});Mg(MF,NF,DF);function Eo(e){return e<=1&&e!==0?`${e*100}%`:e}const BF=ln({prop:"width",transform:Eo}),OS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,a;return{maxWidth:((r=e.theme)==null||(o=r.breakpoints)==null||(a=o.values)==null?void 0:a[n])||PS[n]||Eo(n)}};return Zo(e,e.maxWidth,t)}return null};OS.filterProps=["maxWidth"];const FF=ln({prop:"minWidth",transform:Eo}),zF=ln({prop:"height",transform:Eo}),jF=ln({prop:"maxHeight",transform:Eo}),UF=ln({prop:"minHeight",transform:Eo});ln({prop:"size",cssProperty:"width",transform:Eo});ln({prop:"size",cssProperty:"height",transform:Eo});const WF=ln({prop:"boxSizing"});Mg(BF,OS,FF,zF,jF,UF,WF);const HF={border:{themeKey:"borders",transform:Ia},borderTop:{themeKey:"borders",transform:Ia},borderRight:{themeKey:"borders",transform:Ia},borderBottom:{themeKey:"borders",transform:Ia},borderLeft:{themeKey:"borders",transform:Ia},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ng},color:{themeKey:"palette",transform:yc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:yc},backgroundColor:{themeKey:"palette",transform:yc},p:{style:Gn},pt:{style:Gn},pr:{style:Gn},pb:{style:Gn},pl:{style:Gn},px:{style:Gn},py:{style:Gn},padding:{style:Gn},paddingTop:{style:Gn},paddingRight:{style:Gn},paddingBottom:{style:Gn},paddingLeft:{style:Gn},paddingX:{style:Gn},paddingY:{style:Gn},paddingInline:{style:Gn},paddingInlineStart:{style:Gn},paddingInlineEnd:{style:Gn},paddingBlock:{style:Gn},paddingBlockStart:{style:Gn},paddingBlockEnd:{style:Gn},m:{style:Vn},mt:{style:Vn},mr:{style:Vn},mb:{style:Vn},ml:{style:Vn},mx:{style:Vn},my:{style:Vn},margin:{style:Vn},marginTop:{style:Vn},marginRight:{style:Vn},marginBottom:{style:Vn},marginLeft:{style:Vn},marginX:{style:Vn},marginY:{style:Vn},marginInline:{style:Vn},marginInlineStart:{style:Vn},marginInlineEnd:{style:Vn},marginBlock:{style:Vn},marginBlockStart:{style:Vn},marginBlockEnd:{style:Vn},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:Dg},rowGap:{style:Fg},columnGap:{style:Bg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Eo},maxWidth:{style:OS},minWidth:{transform:Eo},height:{transform:Eo},maxHeight:{transform:Eo},minHeight:{transform:Eo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},zg=HF;function VF(...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 GF(e,t){return typeof e=="function"?e(t):e}function qF(){function e(n,r,o,a){const i={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:f}=l;if(r==null)return null;const h=$c(o,u)||{};return f?f(i):Zo(i,r,y=>{let g=ym(h,d,y);return y===g&&typeof y=="string"&&(g=ym(h,d,`${n}${y==="default"?"":ie(y)}`,y)),c===!1?g:{[c]:g}})}function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=(r=a.unstable_sxConfig)!=null?r:zg;function l(c){let u=c;if(typeof c=="function")u=c(a);else if(typeof c!="object")return c;if(!u)return null;const d=s$(a.breakpoints),f=Object.keys(d);let h=d;return Object.keys(u).forEach(m=>{const y=GF(u[m],a);if(y!=null)if(typeof y=="object")if(i[m])h=_d(h,e(m,y,a,i));else{const g=Zo({theme:a},y,v=>({[m]:v}));VF(g,y)?h[m]=t({sx:y,theme:a}):h=_d(h,g)}else h=_d(h,e(m,y,a,i))}),l$(f,h)}return Array.isArray(o)?o.map(l):l(o)}return t}const d$=qF();d$.filterProps=["sx"];const jg=d$;function wi(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const KF=["sx"],YF=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:zg;return Object.keys(e).forEach(a=>{o[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function LS(e){const{sx:t}=e,n=wi(e,KF),{systemProps:r,otherProps:o}=YF(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return Gs(l)?ar({},r,l):r}:a=ar({},r,t),ar({},o,{sx:a})}function p$(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=p$(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ve(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=p$(e))&&(r&&(r+=" "),r+=t);return r}const XF=["values","unit","step"],JF=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)=>ar({},n,{[r.key]:r.val}),{})};function QF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=wi(e,XF),a=JF(t),i=Object.keys(a);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function u(h,m){const y=i.indexOf(m);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:m)-r/100}${n})`}function d(h){return i.indexOf(h)+1<i.length?u(h,i[i.indexOf(h)+1]):l(h)}function f(h){const m=i.indexOf(h);return m===0?l(i[1]):m===i.length-1?c(i[m]):u(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return ar({keys:i,values:a,up:l,down:c,between:u,only:d,not:f,unit:n},o)}const ZF={borderRadius:4},e7=ZF;function t7(e=8){if(e.mui)return e;const t=c$({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}const n7=["breakpoints","palette","spacing","shape"];function Ug(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=wi(e,n7),l=QF(n),c=t7(o);let u=Ro({breakpoints:l,direction:"ltr",components:{},palette:ar({mode:"light"},r),spacing:c,shape:ar({},e7,a)},i);return u=t.reduce((d,f)=>Ro(d,f),u),u.unstable_sxConfig=ar({},zg,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return jg({sx:f,theme:this})},u}function cb(){return cb=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},cb.apply(this,arguments)}const r7=p.createContext(null),f$=r7;function h$(){return p.useContext(f$)}const o7=typeof Symbol=="function"&&Symbol.for,a7=o7?Symbol.for("mui.nested"):"__THEME_NESTED__";function i7(e,t){return typeof t=="function"?t(e):cb({},e,t)}function s7(e){const{children:t,theme:n}=e,r=h$(),o=p.useMemo(()=>{const a=r===null?n:i7(r,n);return a!=null&&(a[a7]=r!==null),a},[n,r]);return s(f$.Provider,{value:o,children:t})}function l7(e){return Object.keys(e).length===0}function MS(e=null){const t=h$();return!t||l7(t)?e:t}const c7=Ug();function ru(e=c7){return MS(e)}const u7=["className","component"];function d7(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=e,o=i$("div",{shouldForwardProp:i=>i!=="theme"&&i!=="sx"&&i!=="as"})(jg);return p.forwardRef(function(l,c){const u=ru(t),d=LS(l),{className:f,component:h="div"}=d,m=wi(d,u7);return s(o,ar({as:h,ref:c,className:ve(f,r?r(n):n),theme:u},m))})}const p7=["variant"];function TT(e){return e.length===0}function m$(e){const{variant:t}=e,n=wi(e,p7);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=TT(r)?e[o]:ie(e[o]):r+=`${TT(r)?o:ie(o)}${ie(e[o].toString())}`}),r}const f7=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],h7=["theme"],m7=["theme"];function zu(e){return Object.keys(e).length===0}function g7(e){return typeof e=="string"&&e.charCodeAt(0)>96}const v7=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,y7=(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 a=m$(o.props);r[a]=o.style}),r},b7=(e,t,n,r)=>{var o,a;const{ownerState:i={}}=e,l=[],c=n==null||(o=n.components)==null||(a=o[r])==null?void 0:a.variants;return c&&c.forEach(u=>{let d=!0;Object.keys(u.props).forEach(f=>{i[f]!==u.props[f]&&e[f]!==u.props[f]&&(d=!1)}),d&&l.push(t[m$(u.props)])}),l};function Rd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const w7=Ug();function g$(e={}){const{defaultTheme:t=w7,rootShouldForwardProp:n=Rd,slotShouldForwardProp:r=Rd}=e,o=a=>{const i=zu(a.theme)?t:a.theme;return jg(ar({},a,{theme:i}))};return o.__mui_systemSx=!0,(a,i={})=>{lF(a,x=>x.filter(E=>!(E!=null&&E.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f}=i,h=wi(i,f7),m=u!==void 0?u:c&&c!=="Root"||!1,y=d||!1;let g,v=Rd;c==="Root"?v=n:c?v=r:g7(a)&&(v=void 0);const b=i$(a,ar({shouldForwardProp:v,label:g},h)),w=(x,...E)=>{const A=E?E.map(L=>typeof L=="function"&&L.__emotion_real!==L?I=>{let{theme:$}=I,D=wi(I,h7);return L(ar({theme:zu($)?t:$},D))}:L):[];let k=x;l&&f&&A.push(L=>{const I=zu(L.theme)?t:L.theme,$=v7(l,I);if($){const D={};return Object.entries($).forEach(([F,U])=>{D[F]=typeof U=="function"?U(ar({},L,{theme:I})):U}),f(L,D)}return null}),l&&!m&&A.push(L=>{const I=zu(L.theme)?t:L.theme;return b7(L,y7(l,I),I,l)}),y||A.push(o);const _=A.length-E.length;if(Array.isArray(x)&&_>0){const L=new Array(_).fill("");k=[...x,...L],k.raw=[...x.raw,...L]}else typeof x=="function"&&x.__emotion_real!==x&&(k=L=>{let{theme:I}=L,$=wi(L,m7);return x(ar({theme:zu(I)?t:I},$))});return b(k,...A)};return b.withConfig&&(w.withConfig=b.withConfig),w}}const S7=g$(),Mr=S7;function v$(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:bS(t.components[n].defaultProps,r)}function y$({props:e,name:t,defaultTheme:n}){const r=ru(n);return v$({theme:r,name:t,props:e})}function NS(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function x7(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 hl(e){if(e.type)return e;if(e.charAt(0)==="#")return hl(x7(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(fs(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(fs(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function Wg(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,a)=>a<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 C7(e){e=hl(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(u,d=(u+n/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Wg({type:l,values:c})}function ub(e){e=hl(e);let t=e.type==="hsl"||e.type==="hsla"?hl(C7(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 E7(e,t){const n=ub(e),r=ub(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function $t(e,t){return e=hl(e),t=NS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Wg(e)}function hs(e,t){if(e=hl(e),t=NS(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 Wg(e)}function ms(e,t){if(e=hl(e),t=NS(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 Wg(e)}function kT(e,t=.15){return ub(e)>.5?hs(e,t):ms(e,t)}const T7={};function k7(e){const t=ru();return s(RS.Provider,{value:typeof t=="object"?t:T7,children:e.children})}function A7(e){const{children:t,theme:n}=e;return s(s7,{theme:n,children:s(k7,{children:t})})}const _7=["className","component","disableGutters","fixed","maxWidth","classes"],R7=Ug(),P7=Mr("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ie(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),I7=e=>y$({props:e,name:"MuiContainer",defaultTheme:R7}),$7=(e,t)=>{const n=c=>ze(t,c),{classes:r,fixed:o,disableGutters:a,maxWidth:i}=e,l={root:["root",i&&`maxWidth${ie(String(i))}`,o&&"fixed",a&&"disableGutters"]};return We(l,n,r)};function O7(e={}){const{createStyledComponent:t=P7,useThemeProps:n=I7,componentName:r="MuiContainer"}=e,o=t(({theme:i,ownerState:l})=>ar({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!l.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}),({theme:i,ownerState:l})=>l.fixed&&Object.keys(i.breakpoints.values).reduce((c,u)=>{const d=u,f=i.breakpoints.values[d];return f!==0&&(c[i.breakpoints.up(d)]={maxWidth:`${f}${i.breakpoints.unit}`}),c},{}),({theme:i,ownerState:l})=>ar({},l.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},l.maxWidth&&l.maxWidth!=="xs"&&{[i.breakpoints.up(l.maxWidth)]:{maxWidth:`${i.breakpoints.values[l.maxWidth]}${i.breakpoints.unit}`}}));return p.forwardRef(function(l,c){const u=n(l),{className:d,component:f="div",disableGutters:h=!1,fixed:m=!1,maxWidth:y="lg"}=u,g=wi(u,_7),v=ar({},u,{component:f,disableGutters:h,fixed:m,maxWidth:y}),b=$7(v,r);return s(o,ar({as:f,ownerState:v,className:ve(b.root,d),ref:c},g))})}function L7(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const M7=["mode","contrastThreshold","tonalOffset"],AT={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:op.white,default:op.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}},t1={text:{primary:op.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:op.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 _T(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ms(e.main,o):t==="dark"&&(e.dark=hs(e.main,a)))}function N7(e="light"){return e==="dark"?{main:Dl[200],light:Dl[50],dark:Dl[400]}:{main:Dl[700],light:Dl[400],dark:Dl[800]}}function D7(e="light"){return e==="dark"?{main:Nl[200],light:Nl[50],dark:Nl[400]}:{main:Nl[500],light:Nl[300],dark:Nl[700]}}function B7(e="light"){return e==="dark"?{main:Ml[500],light:Ml[300],dark:Ml[700]}:{main:Ml[700],light:Ml[400],dark:Ml[800]}}function F7(e="light"){return e==="dark"?{main:Bl[400],light:Bl[300],dark:Bl[700]}:{main:Bl[700],light:Bl[500],dark:Bl[900]}}function z7(e="light"){return e==="dark"?{main:Fl[400],light:Fl[300],dark:Fl[700]}:{main:Fl[800],light:Fl[500],dark:Fl[900]}}function j7(e="light"){return e==="dark"?{main:Bu[400],light:Bu[300],dark:Bu[700]}:{main:"#ed6c02",light:Bu[500],dark:Bu[900]}}function U7(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=$e(e,M7),a=e.primary||N7(t),i=e.secondary||D7(t),l=e.error||B7(t),c=e.info||F7(t),u=e.success||z7(t),d=e.warning||j7(t);function f(g){return E7(g,t1.text.primary)>=n?t1.text.primary:AT.text.primary}const h=({color:g,name:v,mainShade:b=500,lightShade:w=300,darkShade:x=700})=>{if(g=P({},g),!g.main&&g[b]&&(g.main=g[b]),!g.hasOwnProperty("main"))throw new Error(fs(11,v?` (${v})`:"",b));if(typeof g.main!="string")throw new Error(fs(12,v?` (${v})`:"",JSON.stringify(g.main)));return _T(g,"light",w,r),_T(g,"dark",x,r),g.contrastText||(g.contrastText=f(g.main)),g},m={dark:t1,light:AT};return Ro(P({common:P({},op),mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:$9,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},m[t]),o)}const W7=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function H7(e){return Math.round(e*1e5)/1e5}const RT={textTransform:"uppercase"},PT='"Roboto", "Helvetica", "Arial", sans-serif';function V7(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=PT,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:f}=n,h=$e(n,W7),m=o/14,y=f||(b=>`${b/u*m}rem`),g=(b,w,x,E,A)=>P({fontFamily:r,fontWeight:b,fontSize:y(w),lineHeight:x},r===PT?{letterSpacing:`${H7(E/w)}em`}:{},A,d),v={h1:g(a,96,1.167,-1.5),h2:g(a,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(l,14,1.75,.4,RT),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,RT)};return Ro(P({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},v),h,{clone:!1})}const G7=.2,q7=.14,K7=.12;function Dn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${G7})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${q7})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${K7})`].join(",")}const Y7=["none",Dn(0,2,1,-1,0,1,1,0,0,1,3,0),Dn(0,3,1,-2,0,2,2,0,0,1,5,0),Dn(0,3,3,-2,0,3,4,0,0,1,8,0),Dn(0,2,4,-1,0,4,5,0,0,1,10,0),Dn(0,3,5,-1,0,5,8,0,0,1,14,0),Dn(0,3,5,-1,0,6,10,0,0,1,18,0),Dn(0,4,5,-2,0,7,10,1,0,2,16,1),Dn(0,5,5,-3,0,8,10,1,0,3,14,2),Dn(0,5,6,-3,0,9,12,1,0,3,16,2),Dn(0,6,6,-3,0,10,14,1,0,4,18,3),Dn(0,6,7,-4,0,11,15,1,0,4,20,3),Dn(0,7,8,-4,0,12,17,2,0,5,22,4),Dn(0,7,8,-4,0,13,19,2,0,5,24,4),Dn(0,7,9,-4,0,14,21,2,0,5,26,4),Dn(0,8,9,-5,0,15,22,2,0,6,28,5),Dn(0,8,10,-5,0,16,24,2,0,6,30,5),Dn(0,8,11,-5,0,17,26,2,0,6,32,5),Dn(0,9,11,-5,0,18,28,2,0,7,34,6),Dn(0,9,12,-6,0,19,29,2,0,7,36,6),Dn(0,10,13,-6,0,20,31,3,0,8,38,7),Dn(0,10,13,-6,0,21,33,3,0,8,40,7),Dn(0,10,14,-6,0,22,35,3,0,8,42,7),Dn(0,11,14,-7,0,23,36,3,0,9,44,8),Dn(0,11,15,-7,0,24,38,3,0,9,46,8)],X7=Y7,J7=["duration","easing","delay"],Q7={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)"},b$={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function IT(e){return`${Math.round(e)}ms`}function Z7(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function e8(e){const t=P({},Q7,e.easing),n=P({},b$,e.duration);return P({getAutoHeightDuration:Z7,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:c=0}=a;return $e(a,J7),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:IT(i)} ${l} ${typeof c=="string"?c:IT(c)}`).join(",")}},e,{easing:t,duration:n})}const t8={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},n8=t8,r8=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Hg(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=$e(e,r8);if(e.vars)throw new Error(fs(18));const l=U7(r),c=Ug(e);let u=Ro(c,{mixins:L7(c.breakpoints,n),palette:l,shadows:X7.slice(),typography:V7(l,a),transitions:e8(o),zIndex:P({},n8)});return u=Ro(u,i),u=t.reduce((d,f)=>Ro(d,f),u),u.unstable_sxConfig=P({},zg,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return jg({sx:f,theme:this})},u}const o8=Hg(),Vg=o8;function cn(){return ru(Vg)}function He({props:e,name:t}){return y$({props:e,name:t,defaultTheme:Vg})}const No=e=>Rd(e)&&e!=="classes",DS=Rd,a8=g$({defaultTheme:Vg,rootShouldForwardProp:No}),C=a8,i8=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},$T=i8;function an(){return an=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},an.apply(this,arguments)}function Ha(e){return typeof e=="string"}function ud(e,t,n){return e===void 0||Ha(e)?t:an({},t,{ownerState:an({},t.ownerState,n)})}function s8(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 db(e,t){return typeof e=="function"?e(t):e}function Up(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function OT(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 l8(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const m=ve(o==null?void 0:o.className,r==null?void 0:r.className,a,n==null?void 0:n.className),y=an({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=an({},n,o,r);return m.length>0&&(g.className=m),Object.keys(y).length>0&&(g.style=y),{props:g,internalRef:void 0}}const i=s8(an({},o,r)),l=OT(r),c=OT(o),u=t(i),d=ve(u==null?void 0:u.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),f=an({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=an({},u,n,c,l);return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}}const c8=["elementType","externalSlotProps","ownerState"];function ha(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,a=Up(e,c8),i=db(r,o),{props:l,internalRef:c}=l8(an({},a,{externalSlotProps:i})),u=wn(c,i==null?void 0:i.ref,(t=e.additionalProps)==null?void 0:t.ref);return ud(n,an({},l,{ref:u}),o)}function LT(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function u8(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(l,{inputValue:c,getOptionLabel:u})=>{let d=i?c.trim():c;n&&(d=d.toLowerCase()),t&&(d=LT(d));const f=d?l.filter(h=>{let m=(a||u)(h);return n&&(m=m.toLowerCase()),t&&(m=LT(m)),o==="start"?m.indexOf(d)===0:m.indexOf(d)>-1}):l;return typeof r=="number"?f.slice(0,r):f}}function n1(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const d8=u8(),MT=5,p8=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function f8(e){const{unstable_isActiveElementInListbox:t=p8,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:h=!1,disabled:m,disabledItemsFocusable:y=!1,disableListWrap:g=!1,filterOptions:v=d8,filterSelectedOptions:b=!1,freeSolo:w=!1,getOptionDisabled:x,getOptionLabel:E=ue=>{var ae;return(ae=ue.label)!=null?ae:ue},groupBy:A,handleHomeEndKeys:k=!e.freeSolo,id:_,includeInputInList:O=!1,inputValue:L,isOptionEqualToValue:I=(ue,ae)=>ue===ae,multiple:$=!1,onChange:D,onClose:F,onHighlightChange:U,onInputChange:Y,onOpen:V,open:te,openOnFocus:Z=!1,options:W,readOnly:z=!1,selectOnFocus:R=!e.freeSolo,value:N}=e,ee=eu(_);let re=E;re=ue=>{const ae=E(ue);return typeof ae!="string"?String(ae):ae};const Se=p.useRef(!1),ce=p.useRef(!0),Ce=p.useRef(null),xe=p.useRef(null),[Ee,et]=p.useState(null),[me,Ve]=p.useState(-1),Ge=o?0:-1,De=p.useRef(Ge),[he,Et]=ya({controlled:N,default:d,name:u}),[qe,lt]=ya({controlled:L,default:"",name:u,state:"inputValue"}),[Rt,dt]=p.useState(!1),nt=p.useCallback((ue,ae)=>{if(!($?he.length<ae.length:ae!==null)&&!l)return;let ot;if($)ot="";else if(ae==null)ot="";else{const kt=re(ae);ot=typeof kt=="string"?kt:""}qe!==ot&&(lt(ot),Y&&Y(ue,ot,"reset"))},[re,qe,$,Y,lt,l,he]),[Lt,xt]=ya({controlled:te,default:!1,name:u,state:"open"}),[pe,Te]=p.useState(!0),Ye=!$&&he!=null&&qe===re(he),Ne=Lt&&!z,q=Ne?v(W.filter(ue=>!(b&&($?he:[he]).some(ae=>ae!==null&&I(ue,ae)))),{inputValue:Ye&&pe?"":qe,getOptionLabel:re}):[],K=eB({filteredOptions:q,value:he});p.useEffect(()=>{const ue=he!==K.value;Rt&&!ue||w&&!ue||nt(null,he)},[he,nt,Rt,K.value,w]);const se=Lt&&q.length>0&&!z,ye=pr(ue=>{ue===-1?Ce.current.focus():Ee.querySelector(`[data-tag-index="${ue}"]`).focus()});p.useEffect(()=>{$&&me>he.length-1&&(Ve(-1),ye(-1))},[he,$,me,ye]);function Ae(ue,ae){if(!xe.current||ue===-1)return-1;let Be=ue;for(;;){if(ae==="next"&&Be===q.length||ae==="previous"&&Be===-1)return-1;const ot=xe.current.querySelector(`[data-option-index="${Be}"]`),kt=y?!1:!ot||ot.disabled||ot.getAttribute("aria-disabled")==="true";if(ot&&!ot.hasAttribute("tabindex")||kt)Be+=ae==="next"?1:-1;else return Be}}const mt=pr(({event:ue,index:ae,reason:Be="auto"})=>{if(De.current=ae,ae===-1?Ce.current.removeAttribute("aria-activedescendant"):Ce.current.setAttribute("aria-activedescendant",`${ee}-option-${ae}`),U&&U(ue,ae===-1?null:q[ae],Be),!xe.current)return;const ot=xe.current.querySelector(`[role="option"].${n}-focused`);ot&&(ot.classList.remove(`${n}-focused`),ot.classList.remove(`${n}-focusVisible`));const kt=xe.current.parentElement.querySelector('[role="listbox"]');if(!kt)return;if(ae===-1){kt.scrollTop=0;return}const Sn=xe.current.querySelector(`[data-option-index="${ae}"]`);if(Sn&&(Sn.classList.add(`${n}-focused`),Be==="keyboard"&&Sn.classList.add(`${n}-focusVisible`),kt.scrollHeight>kt.clientHeight&&Be!=="mouse")){const _n=Sn,yt=kt.clientHeight+kt.scrollTop,Rn=_n.offsetTop+_n.offsetHeight;Rn>yt?kt.scrollTop=Rn-kt.clientHeight:_n.offsetTop-_n.offsetHeight*(A?1.3:0)<kt.scrollTop&&(kt.scrollTop=_n.offsetTop-_n.offsetHeight*(A?1.3:0))}}),Ze=pr(({event:ue,diff:ae,direction:Be="next",reason:ot="auto"})=>{if(!Ne)return;const Sn=Ae((()=>{const _n=q.length-1;if(ae==="reset")return Ge;if(ae==="start")return 0;if(ae==="end")return _n;const yt=De.current+ae;return yt<0?yt===-1&&O?-1:g&&De.current!==-1||Math.abs(ae)>1?0:_n:yt>_n?yt===_n+1&&O?-1:g||Math.abs(ae)>1?_n:0:yt})(),Be);if(mt({index:Sn,reason:ot,event:ue}),r&&ae!=="reset")if(Sn===-1)Ce.current.value=qe;else{const _n=re(q[Sn]);Ce.current.value=_n,_n.toLowerCase().indexOf(qe.toLowerCase())===0&&qe.length>0&&Ce.current.setSelectionRange(qe.length,_n.length)}}),ht=()=>{const ue=(ae,Be)=>{const ot=ae?re(ae):"",kt=Be?re(Be):"";return ot===kt};if(De.current!==-1&&K.filteredOptions&&K.filteredOptions.length!==q.length&&($?he.length===K.value.length&&K.value.every((ae,Be)=>re(he[Be])===re(ae)):ue(K.value,he))){const ae=K.filteredOptions[De.current];if(ae&&q.some(ot=>re(ot)===re(ae)))return!0}return!1},Kt=p.useCallback(()=>{if(!Ne||ht())return;const ue=$?he[0]:he;if(q.length===0||ue==null){Ze({diff:"reset"});return}if(xe.current){if(ue!=null){const ae=q[De.current];if($&&ae&&n1(he,ot=>I(ae,ot))!==-1)return;const Be=n1(q,ot=>I(ot,ue));Be===-1?Ze({diff:"reset"}):mt({index:Be});return}if(De.current>=q.length-1){mt({index:q.length-1});return}mt({index:De.current})}},[q.length,$?!1:he,b,Ze,mt,Ne,qe,$]),Mn=pr(ue=>{ap(xe,ue),ue&&Kt()});p.useEffect(()=>{Kt()},[Kt]);const pt=ue=>{Lt||(xt(!0),Te(!0),V&&V(ue))},un=(ue,ae)=>{Lt&&(xt(!1),F&&F(ue,ae))},Vt=(ue,ae,Be,ot)=>{if($){if(he.length===ae.length&&he.every((kt,Sn)=>kt===ae[Sn]))return}else if(he===ae)return;D&&D(ue,ae,Be,ot),Et(ae)},Qt=p.useRef(!1),Bt=(ue,ae,Be="selectOption",ot="options")=>{let kt=Be,Sn=ae;if($){Sn=Array.isArray(he)?he.slice():[];const _n=n1(Sn,yt=>I(ae,yt));_n===-1?Sn.push(ae):ot!=="freeSolo"&&(Sn.splice(_n,1),kt="removeOption")}nt(ue,Sn),Vt(ue,Sn,kt,{option:ae}),!h&&(!ue||!ue.ctrlKey&&!ue.metaKey)&&un(ue,kt),(i===!0||i==="touch"&&Qt.current||i==="mouse"&&!Qt.current)&&Ce.current.blur()};function Wn(ue,ae){if(ue===-1)return-1;let Be=ue;for(;;){if(ae==="next"&&Be===he.length||ae==="previous"&&Be===-1)return-1;const ot=Ee.querySelector(`[data-tag-index="${Be}"]`);if(!ot||!ot.hasAttribute("tabindex")||ot.disabled||ot.getAttribute("aria-disabled")==="true")Be+=ae==="next"?1:-1;else return Be}}const vr=(ue,ae)=>{if(!$)return;qe===""&&un(ue,"toggleInput");let Be=me;me===-1?qe===""&&ae==="previous"&&(Be=he.length-1):(Be+=ae==="next"?1:-1,Be<0&&(Be=0),Be===he.length&&(Be=-1)),Be=Wn(Be,ae),Ve(Be),ye(Be)},to=ue=>{Se.current=!0,lt(""),Y&&Y(ue,"","clear"),Vt(ue,$?[]:null,"clear")},yo=ue=>ae=>{if(ue.onKeyDown&&ue.onKeyDown(ae),!ae.defaultMuiPrevented&&(me!==-1&&["ArrowLeft","ArrowRight"].indexOf(ae.key)===-1&&(Ve(-1),ye(-1)),ae.which!==229))switch(ae.key){case"Home":Ne&&k&&(ae.preventDefault(),Ze({diff:"start",direction:"next",reason:"keyboard",event:ae}));break;case"End":Ne&&k&&(ae.preventDefault(),Ze({diff:"end",direction:"previous",reason:"keyboard",event:ae}));break;case"PageUp":ae.preventDefault(),Ze({diff:-MT,direction:"previous",reason:"keyboard",event:ae}),pt(ae);break;case"PageDown":ae.preventDefault(),Ze({diff:MT,direction:"next",reason:"keyboard",event:ae}),pt(ae);break;case"ArrowDown":ae.preventDefault(),Ze({diff:1,direction:"next",reason:"keyboard",event:ae}),pt(ae);break;case"ArrowUp":ae.preventDefault(),Ze({diff:-1,direction:"previous",reason:"keyboard",event:ae}),pt(ae);break;case"ArrowLeft":vr(ae,"previous");break;case"ArrowRight":vr(ae,"next");break;case"Enter":if(De.current!==-1&&Ne){const Be=q[De.current],ot=x?x(Be):!1;if(ae.preventDefault(),ot)return;Bt(ae,Be,"selectOption"),r&&Ce.current.setSelectionRange(Ce.current.value.length,Ce.current.value.length)}else w&&qe!==""&&Ye===!1&&($&&ae.preventDefault(),Bt(ae,qe,"createOption","freeSolo"));break;case"Escape":Ne?(ae.preventDefault(),ae.stopPropagation(),un(ae,"escape")):c&&(qe!==""||$&&he.length>0)&&(ae.preventDefault(),ae.stopPropagation(),to(ae));break;case"Backspace":if($&&!z&&qe===""&&he.length>0){const Be=me===-1?he.length-1:me,ot=he.slice();ot.splice(Be,1),Vt(ae,ot,"removeOption",{option:he[Be]})}break;case"Delete":if($&&!z&&qe===""&&he.length>0&&me!==-1){const Be=me,ot=he.slice();ot.splice(Be,1),Vt(ae,ot,"removeOption",{option:he[Be]})}break}},bo=ue=>{dt(!0),Z&&!Se.current&&pt(ue)},Rr=ue=>{if(t(xe)){Ce.current.focus();return}dt(!1),ce.current=!0,Se.current=!1,a&&De.current!==-1&&Ne?Bt(ue,q[De.current],"blur"):a&&w&&qe!==""?Bt(ue,qe,"blur","freeSolo"):l&&nt(ue,he),un(ue,"blur")},no=ue=>{const ae=ue.target.value;qe!==ae&&(lt(ae),Te(!1),Y&&Y(ue,ae,"input")),ae===""?!f&&!$&&Vt(ue,null,"clear"):pt(ue)},Xn=ue=>{mt({event:ue,index:Number(ue.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},ro=()=>{Qt.current=!0},yr=ue=>{const ae=Number(ue.currentTarget.getAttribute("data-option-index"));Bt(ue,q[ae],"selectOption"),Qt.current=!1},Dt=ue=>ae=>{const Be=he.slice();Be.splice(ue,1),Vt(ae,Be,"removeOption",{option:he[ue]})},Gt=ue=>{Lt?un(ue,"toggleInput"):pt(ue)},zn=ue=>{ue.target.getAttribute("id")!==ee&&ue.preventDefault()},ur=()=>{Ce.current.focus(),R&&ce.current&&Ce.current.selectionEnd-Ce.current.selectionStart===0&&Ce.current.select(),ce.current=!1},Gr=ue=>{(qe===""||!Lt)&&Gt(ue)};let qr=w&&qe.length>0;qr=qr||($?he.length>0:he!==null);let ua=q;return A&&(ua=q.reduce((ue,ae,Be)=>{const ot=A(ae);return ue.length>0&&ue[ue.length-1].group===ot?ue[ue.length-1].options.push(ae):ue.push({key:Be,index:Be,group:ot,options:[ae]}),ue},[])),m&&Rt&&Rr(),{getRootProps:(ue={})=>an({"aria-owns":se?`${ee}-listbox`:null},ue,{onKeyDown:yo(ue),onMouseDown:zn,onClick:ur}),getInputLabelProps:()=>({id:`${ee}-label`,htmlFor:ee}),getInputProps:()=>({id:ee,value:qe,onBlur:Rr,onFocus:bo,onChange:no,onMouseDown:Gr,"aria-activedescendant":Ne?"":null,"aria-autocomplete":r?"both":"list","aria-controls":se?`${ee}-listbox`:void 0,"aria-expanded":se,autoComplete:"off",ref:Ce,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,onClick:to}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:Gt}),getTagProps:({index:ue})=>an({key:ue,"data-tag-index":ue,tabIndex:-1},!z&&{onDelete:Dt(ue)}),getListboxProps:()=>({role:"listbox",id:`${ee}-listbox`,"aria-labelledby":`${ee}-label`,ref:Mn,onMouseDown:ue=>{ue.preventDefault()}}),getOptionProps:({index:ue,option:ae})=>{const Be=($?he:[he]).some(kt=>kt!=null&&I(ae,kt)),ot=x?x(ae):!1;return{key:re(ae),tabIndex:-1,role:"option",id:`${ee}-option-${ue}`,onMouseOver:Xn,onClick:yr,onTouchStart:ro,"data-option-index":ue,"aria-disabled":ot,"aria-selected":Be}},id:ee,inputValue:qe,value:he,dirty:qr,popupOpen:Ne,focused:Rt||me!==-1,anchorEl:Ee,setAnchorEl:et,focusedTag:me,groupedOptions:ua}}function NT(e){return e.substring(2).toLowerCase()}function h8(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function m8(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,i=p.useRef(!1),l=p.useRef(null),c=p.useRef(!1),u=p.useRef(!1);p.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=wn(t.ref,l),f=pr(y=>{const g=u.current;u.current=!1;const v=Bn(l.current);if(!c.current||!l.current||"clientX"in y&&h8(y,v))return;if(i.current){i.current=!1;return}let b;y.composedPath?b=y.composedPath().indexOf(l.current)>-1:b=!v.documentElement.contains(y.target)||l.current.contains(y.target),!b&&(n||!g)&&o(y)}),h=y=>g=>{u.current=!0;const v=t.props[y];v&&v(g)},m={ref:d};return a!==!1&&(m[a]=h(a)),p.useEffect(()=>{if(a!==!1){const y=NT(a),g=Bn(l.current),v=()=>{i.current=!0};return g.addEventListener(y,f),g.addEventListener("touchmove",v),()=>{g.removeEventListener(y,f),g.removeEventListener("touchmove",v)}}},[f,a]),r!==!1&&(m[r]=h(r)),p.useEffect(()=>{if(r!==!1){const y=NT(r),g=Bn(l.current);return g.addEventListener(y,f),()=>{g.removeEventListener(y,f)}}},[f,r]),s(p.Fragment,{children:p.cloneElement(t,m)})}const g8=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function v8(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 y8(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 b8(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||y8(e))}function w8(e){const t=[],n=[];return Array.from(e.querySelectorAll(g8)).forEach((r,o)=>{const a=v8(r);a===-1||!b8(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,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 S8(){return!0}function x8(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=w8,isEnabled:i=S8,open:l}=e,c=p.useRef(!1),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null),h=p.useRef(null),m=p.useRef(!1),y=p.useRef(null),g=wn(t.ref,y),v=p.useRef(null);p.useEffect(()=>{!l||!y.current||(m.current=!n)},[n,l]),p.useEffect(()=>{if(!l||!y.current)return;const x=Bn(y.current);return y.current.contains(x.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),m.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),p.useEffect(()=>{if(!l||!y.current)return;const x=Bn(y.current),E=_=>{const{current:O}=y;if(O!==null){if(!x.hasFocus()||r||!i()||c.current){c.current=!1;return}if(!O.contains(x.activeElement)){if(_&&h.current!==_.target||x.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!m.current)return;let $=[];if((x.activeElement===u.current||x.activeElement===d.current)&&($=a(y.current)),$.length>0){var L,I;const D=Boolean(((L=v.current)==null?void 0:L.shiftKey)&&((I=v.current)==null?void 0:I.key)==="Tab"),F=$[0],U=$[$.length-1];typeof F!="string"&&typeof U!="string"&&(D?U.focus():F.focus())}else O.focus()}}},A=_=>{v.current=_,!(r||!i()||_.key!=="Tab")&&x.activeElement===y.current&&_.shiftKey&&(c.current=!0,d.current&&d.current.focus())};x.addEventListener("focusin",E),x.addEventListener("keydown",A,!0);const k=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&E(null)},50);return()=>{clearInterval(k),x.removeEventListener("focusin",E),x.removeEventListener("keydown",A,!0)}},[n,r,o,i,l,a]);const b=x=>{f.current===null&&(f.current=x.relatedTarget),m.current=!0,h.current=x.target;const E=t.props.onFocus;E&&E(x)},w=x=>{f.current===null&&(f.current=x.relatedTarget),m.current=!0};return T(p.Fragment,{children:[s("div",{tabIndex:l?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:g,onFocus:b}),s("div",{tabIndex:l?0:-1,onFocus:w,ref:d,"data-testid":"sentinelEnd"})]})}var uo="top",ea="bottom",ta="right",po="left",BS="auto",Wp=[uo,ea,ta,po],Oc="start",cp="end",C8="clippingParents",w$="viewport",ju="popper",E8="reference",DT=Wp.reduce(function(e,t){return e.concat([t+"-"+Oc,t+"-"+cp])},[]),S$=[].concat(Wp,[BS]).reduce(function(e,t){return e.concat([t,t+"-"+Oc,t+"-"+cp])},[]),T8="beforeRead",k8="read",A8="afterRead",_8="beforeMain",R8="main",P8="afterMain",I8="beforeWrite",$8="write",O8="afterWrite",L8=[T8,k8,A8,_8,R8,P8,I8,$8,O8];function Xa(e){return e?(e.nodeName||"").toLowerCase():null}function ia(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ml(e){var t=ia(e).Element;return e instanceof t||e instanceof Element}function qo(e){var t=ia(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function FS(e){if(typeof ShadowRoot>"u")return!1;var t=ia(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function M8(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!qo(a)||!Xa(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var l=o[i];l===!1?a.removeAttribute(i):a.setAttribute(i,l===!0?"":l)}))})}function N8(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],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=i.reduce(function(c,u){return c[u]="",c},{});!qo(o)||!Xa(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const D8={name:"applyStyles",enabled:!0,phase:"write",fn:M8,effect:N8,requires:["computeStyles"]};function Va(e){return e.split("-")[0]}var al=Math.max,bm=Math.min,Lc=Math.round;function pb(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function x$(){return!/^((?!chrome|android).)*safari/i.test(pb())}function Mc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&qo(e)&&(o=e.offsetWidth>0&&Lc(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Lc(r.height)/e.offsetHeight||1);var i=ml(e)?ia(e):window,l=i.visualViewport,c=!x$()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/o,d=(r.top+(c&&l?l.offsetTop:0))/a,f=r.width/o,h=r.height/a;return{width:f,height:h,top:d,right:u+f,bottom:d+h,left:u,x:u,y:d}}function zS(e){var t=Mc(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 C$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&FS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ei(e){return ia(e).getComputedStyle(e)}function B8(e){return["table","td","th"].indexOf(Xa(e))>=0}function Es(e){return((ml(e)?e.ownerDocument:e.document)||window.document).documentElement}function Gg(e){return Xa(e)==="html"?e:e.assignedSlot||e.parentNode||(FS(e)?e.host:null)||Es(e)}function BT(e){return!qo(e)||Ei(e).position==="fixed"?null:e.offsetParent}function F8(e){var t=/firefox/i.test(pb()),n=/Trident/i.test(pb());if(n&&qo(e)){var r=Ei(e);if(r.position==="fixed")return null}var o=Gg(e);for(FS(o)&&(o=o.host);qo(o)&&["html","body"].indexOf(Xa(o))<0;){var a=Ei(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Hp(e){for(var t=ia(e),n=BT(e);n&&B8(n)&&Ei(n).position==="static";)n=BT(n);return n&&(Xa(n)==="html"||Xa(n)==="body"&&Ei(n).position==="static")?t:n||F8(e)||t}function jS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pd(e,t,n){return al(e,bm(t,n))}function z8(e,t,n){var r=Pd(e,t,n);return r>n?n:r}function E$(){return{top:0,right:0,bottom:0,left:0}}function T$(e){return Object.assign({},E$(),e)}function k$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var j8=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,T$(typeof t!="number"?t:k$(t,Wp))};function U8(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Va(n.placement),c=jS(l),u=[po,ta].indexOf(l)>=0,d=u?"height":"width";if(!(!a||!i)){var f=j8(o.padding,n),h=zS(a),m=c==="y"?uo:po,y=c==="y"?ea:ta,g=n.rects.reference[d]+n.rects.reference[c]-i[c]-n.rects.popper[d],v=i[c]-n.rects.reference[c],b=Hp(a),w=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,x=g/2-v/2,E=f[m],A=w-h[d]-f[y],k=w/2-h[d]/2+x,_=Pd(E,k,A),O=c;n.modifiersData[r]=(t={},t[O]=_,t.centerOffset=_-k,t)}}function W8(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)||C$(t.elements.popper,o)&&(t.elements.arrow=o))}const H8={name:"arrow",enabled:!0,phase:"main",fn:U8,effect:W8,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nc(e){return e.split("-")[1]}var V8={top:"auto",right:"auto",bottom:"auto",left:"auto"};function G8(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Lc(t*o)/o||0,y:Lc(n*o)/o||0}}function FT(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=i.x,m=h===void 0?0:h,y=i.y,g=y===void 0?0:y,v=typeof d=="function"?d({x:m,y:g}):{x:m,y:g};m=v.x,g=v.y;var b=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),x=po,E=uo,A=window;if(u){var k=Hp(n),_="clientHeight",O="clientWidth";if(k===ia(n)&&(k=Es(n),Ei(k).position!=="static"&&l==="absolute"&&(_="scrollHeight",O="scrollWidth")),k=k,o===uo||(o===po||o===ta)&&a===cp){E=ea;var L=f&&k===A&&A.visualViewport?A.visualViewport.height:k[_];g-=L-r.height,g*=c?1:-1}if(o===po||(o===uo||o===ea)&&a===cp){x=ta;var I=f&&k===A&&A.visualViewport?A.visualViewport.width:k[O];m-=I-r.width,m*=c?1:-1}}var $=Object.assign({position:l},u&&V8),D=d===!0?G8({x:m,y:g}):{x:m,y:g};if(m=D.x,g=D.y,c){var F;return Object.assign({},$,(F={},F[E]=w?"0":"",F[x]=b?"0":"",F.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",F))}return Object.assign({},$,(t={},t[E]=w?g+"px":"",t[x]=b?m+"px":"",t.transform="",t))}function q8(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Va(t.placement),variation:Nc(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,FT(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,FT(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 K8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:q8,data:{}};var Mf={passive:!0};function Y8(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,l=i===void 0?!0:i,c=ia(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",n.update,Mf)}),l&&c.addEventListener("resize",n.update,Mf),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Mf)}),l&&c.removeEventListener("resize",n.update,Mf)}}const X8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Y8,data:{}};var J8={left:"right",right:"left",bottom:"top",top:"bottom"};function Ph(e){return e.replace(/left|right|bottom|top/g,function(t){return J8[t]})}var Q8={start:"end",end:"start"};function zT(e){return e.replace(/start|end/g,function(t){return Q8[t]})}function US(e){var t=ia(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function WS(e){return Mc(Es(e)).left+US(e).scrollLeft}function Z8(e,t){var n=ia(e),r=Es(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,c=0;if(o){a=o.width,i=o.height;var u=x$();(u||!u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:l+WS(e),y:c}}function ez(e){var t,n=Es(e),r=US(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=al(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=al(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+WS(e),c=-r.scrollTop;return Ei(o||n).direction==="rtl"&&(l+=al(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:c}}function HS(e){var t=Ei(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function A$(e){return["html","body","#document"].indexOf(Xa(e))>=0?e.ownerDocument.body:qo(e)&&HS(e)?e:A$(Gg(e))}function Id(e,t){var n;t===void 0&&(t=[]);var r=A$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=ia(r),i=o?[a].concat(a.visualViewport||[],HS(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Id(Gg(i)))}function fb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tz(e,t){var n=Mc(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 jT(e,t,n){return t===w$?fb(Z8(e,n)):ml(t)?tz(t,n):fb(ez(Es(e)))}function nz(e){var t=Id(Gg(e)),n=["absolute","fixed"].indexOf(Ei(e).position)>=0,r=n&&qo(e)?Hp(e):e;return ml(r)?t.filter(function(o){return ml(o)&&C$(o,r)&&Xa(o)!=="body"}):[]}function rz(e,t,n,r){var o=t==="clippingParents"?nz(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce(function(c,u){var d=jT(e,u,r);return c.top=al(d.top,c.top),c.right=bm(d.right,c.right),c.bottom=bm(d.bottom,c.bottom),c.left=al(d.left,c.left),c},jT(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function _$(e){var t=e.reference,n=e.element,r=e.placement,o=r?Va(r):null,a=r?Nc(r):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case uo:c={x:i,y:t.y-n.height};break;case ea:c={x:i,y:t.y+t.height};break;case ta:c={x:t.x+t.width,y:l};break;case po:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=o?jS(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case Oc:c[u]=c[u]-(t[d]/2-n[d]/2);break;case cp:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function up(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,i=a===void 0?e.strategy:a,l=n.boundary,c=l===void 0?C8:l,u=n.rootBoundary,d=u===void 0?w$:u,f=n.elementContext,h=f===void 0?ju:f,m=n.altBoundary,y=m===void 0?!1:m,g=n.padding,v=g===void 0?0:g,b=T$(typeof v!="number"?v:k$(v,Wp)),w=h===ju?E8:ju,x=e.rects.popper,E=e.elements[y?w:h],A=rz(ml(E)?E:E.contextElement||Es(e.elements.popper),c,d,i),k=Mc(e.elements.reference),_=_$({reference:k,element:x,strategy:"absolute",placement:o}),O=fb(Object.assign({},x,_)),L=h===ju?O:k,I={top:A.top-L.top+b.top,bottom:L.bottom-A.bottom+b.bottom,left:A.left-L.left+b.left,right:L.right-A.right+b.right},$=e.modifiersData.offset;if(h===ju&&$){var D=$[o];Object.keys(I).forEach(function(F){var U=[ta,ea].indexOf(F)>=0?1:-1,Y=[uo,ea].indexOf(F)>=0?"y":"x";I[F]+=D[Y]*U})}return I}function oz(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?S$:c,d=Nc(r),f=d?l?DT:DT.filter(function(y){return Nc(y)===d}):Wp,h=f.filter(function(y){return u.indexOf(y)>=0});h.length===0&&(h=f);var m=h.reduce(function(y,g){return y[g]=up(e,{placement:g,boundary:o,rootBoundary:a,padding:i})[Va(g)],y},{});return Object.keys(m).sort(function(y,g){return m[y]-m[g]})}function az(e){if(Va(e)===BS)return[];var t=Ph(e);return[zT(e),t,zT(t)]}function iz(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!0:i,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,y=m===void 0?!0:m,g=n.allowedAutoPlacements,v=t.options.placement,b=Va(v),w=b===v,x=c||(w||!y?[Ph(v)]:az(v)),E=[v].concat(x).reduce(function(re,Se){return re.concat(Va(Se)===BS?oz(t,{placement:Se,boundary:d,rootBoundary:f,padding:u,flipVariations:y,allowedAutoPlacements:g}):Se)},[]),A=t.rects.reference,k=t.rects.popper,_=new Map,O=!0,L=E[0],I=0;I<E.length;I++){var $=E[I],D=Va($),F=Nc($)===Oc,U=[uo,ea].indexOf(D)>=0,Y=U?"width":"height",V=up(t,{placement:$,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),te=U?F?ta:po:F?ea:uo;A[Y]>k[Y]&&(te=Ph(te));var Z=Ph(te),W=[];if(a&&W.push(V[D]<=0),l&&W.push(V[te]<=0,V[Z]<=0),W.every(function(re){return re})){L=$,O=!1;break}_.set($,W)}if(O)for(var z=y?3:1,R=function(Se){var ce=E.find(function(Ce){var xe=_.get(Ce);if(xe)return xe.slice(0,Se).every(function(Ee){return Ee})});if(ce)return L=ce,"break"},N=z;N>0;N--){var ee=R(N);if(ee==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const sz={name:"flip",enabled:!0,phase:"main",fn:iz,requiresIfExists:["offset"],data:{_skip:!1}};function UT(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 WT(e){return[uo,ta,ea,po].some(function(t){return e[t]>=0})}function lz(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=up(t,{elementContext:"reference"}),l=up(t,{altBoundary:!0}),c=UT(i,r),u=UT(l,o,a),d=WT(c),f=WT(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const cz={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lz};function uz(e,t,n){var r=Va(e),o=[po,uo].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[po,ta].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function dz(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=S$.reduce(function(d,f){return d[f]=uz(f,t.rects,a),d},{}),l=i[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}const pz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dz};function fz(e){var t=e.state,n=e.name;t.modifiersData[n]=_$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const hz={name:"popperOffsets",enabled:!0,phase:"read",fn:fz,data:{}};function mz(e){return e==="x"?"y":"x"}function gz(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!1:i,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,m=h===void 0?!0:h,y=n.tetherOffset,g=y===void 0?0:y,v=up(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),b=Va(t.placement),w=Nc(t.placement),x=!w,E=jS(b),A=mz(E),k=t.modifiersData.popperOffsets,_=t.rects.reference,O=t.rects.popper,L=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,I=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(k){if(a){var F,U=E==="y"?uo:po,Y=E==="y"?ea:ta,V=E==="y"?"height":"width",te=k[E],Z=te+v[U],W=te-v[Y],z=m?-O[V]/2:0,R=w===Oc?_[V]:O[V],N=w===Oc?-O[V]:-_[V],ee=t.elements.arrow,re=m&&ee?zS(ee):{width:0,height:0},Se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:E$(),ce=Se[U],Ce=Se[Y],xe=Pd(0,_[V],re[V]),Ee=x?_[V]/2-z-xe-ce-I.mainAxis:R-xe-ce-I.mainAxis,et=x?-_[V]/2+z+xe+Ce+I.mainAxis:N+xe+Ce+I.mainAxis,me=t.elements.arrow&&Hp(t.elements.arrow),Ve=me?E==="y"?me.clientTop||0:me.clientLeft||0:0,Ge=(F=$==null?void 0:$[E])!=null?F:0,De=te+Ee-Ge-Ve,he=te+et-Ge,Et=Pd(m?bm(Z,De):Z,te,m?al(W,he):W);k[E]=Et,D[E]=Et-te}if(l){var qe,lt=E==="x"?uo:po,Rt=E==="x"?ea:ta,dt=k[A],nt=A==="y"?"height":"width",Lt=dt+v[lt],xt=dt-v[Rt],pe=[uo,po].indexOf(b)!==-1,Te=(qe=$==null?void 0:$[A])!=null?qe:0,Ye=pe?Lt:dt-_[nt]-O[nt]-Te+I.altAxis,Ne=pe?dt+_[nt]+O[nt]-Te-I.altAxis:xt,q=m&&pe?z8(Ye,dt,Ne):Pd(m?Ye:Lt,dt,m?Ne:xt);k[A]=q,D[A]=q-dt}t.modifiersData[r]=D}}const vz={name:"preventOverflow",enabled:!0,phase:"main",fn:gz,requiresIfExists:["offset"]};function yz(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bz(e){return e===ia(e)||!qo(e)?US(e):yz(e)}function wz(e){var t=e.getBoundingClientRect(),n=Lc(t.width)/e.offsetWidth||1,r=Lc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Sz(e,t,n){n===void 0&&(n=!1);var r=qo(t),o=qo(t)&&wz(t),a=Es(t),i=Mc(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Xa(t)!=="body"||HS(a))&&(l=bz(t)),qo(t)?(c=Mc(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=WS(a))),{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function xz(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function Cz(e){var t=xz(e);return L8.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Ez(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Tz(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 HT={placement:"bottom",modifiers:[],strategy:"absolute"};function VT(){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 kz(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?HT:o;return function(l,c,u){u===void 0&&(u=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},HT,a),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],h=!1,m={state:d,setOptions:function(b){var w=typeof b=="function"?b(d.options):b;g(),d.options=Object.assign({},a,d.options,w),d.scrollParents={reference:ml(l)?Id(l):l.contextElement?Id(l.contextElement):[],popper:Id(c)};var x=Cz(Tz([].concat(r,d.options.modifiers)));return d.orderedModifiers=x.filter(function(E){return E.enabled}),y(),m.update()},forceUpdate:function(){if(!h){var b=d.elements,w=b.reference,x=b.popper;if(VT(w,x)){d.rects={reference:Sz(w,Hp(x),d.options.strategy==="fixed"),popper:zS(x)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(I){return d.modifiersData[I.name]=Object.assign({},I.data)});for(var E=0;E<d.orderedModifiers.length;E++){if(d.reset===!0){d.reset=!1,E=-1;continue}var A=d.orderedModifiers[E],k=A.fn,_=A.options,O=_===void 0?{}:_,L=A.name;typeof k=="function"&&(d=k({state:d,options:O,name:L,instance:m})||d)}}}},update:Ez(function(){return new Promise(function(v){m.forceUpdate(),v(d)})}),destroy:function(){g(),h=!0}};if(!VT(l,c))return m;m.setOptions(u).then(function(v){!h&&u.onFirstUpdate&&u.onFirstUpdate(v)});function y(){d.orderedModifiers.forEach(function(v){var b=v.name,w=v.options,x=w===void 0?{}:w,E=v.effect;if(typeof E=="function"){var A=E({state:d,name:b,instance:m,options:x}),k=function(){};f.push(A||k)}})}function g(){f.forEach(function(v){return v()}),f=[]}return m}}var Az=[X8,hz,K8,D8,pz,sz,vz,H8,cz],_z=kz({defaultModifiers:Az});function Rz(e){return typeof e=="function"?e():e}const Pz=p.forwardRef(function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[i,l]=p.useState(null),c=wn(p.isValidElement(r)?r.ref:null,n);if(Io(()=>{a||l(Rz(o)||document.body)},[o,a]),Io(()=>{if(i&&!a)return ap(n,i),()=>{ap(n,null)}},[n,i,a]),a){if(p.isValidElement(r)){const u={ref:c};return p.cloneElement(r,u)}return s(p.Fragment,{children:r})}return s(p.Fragment,{children:i&&Ud.createPortal(r,i)})}),VS=Pz;function Iz(e){return ze("MuiPopperUnstyled",e)}je("MuiPopperUnstyled",["root"]);const $z=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],Oz=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Lz(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 hb(e){return typeof e=="function"?e():e}function Mz(e){return e.nodeType!==void 0}const Nz=()=>We({root:["root"]},Iz,{}),Dz={},Bz=p.forwardRef(function(t,n){var r;const{anchorEl:o,children:a,component:i,direction:l,disablePortal:c,modifiers:u,open:d,ownerState:f,placement:h,popperOptions:m,popperRef:y,slotProps:g={},slots:v={},TransitionProps:b}=t,w=Up(t,$z),x=p.useRef(null),E=wn(x,n),A=p.useRef(null),k=wn(A,y),_=p.useRef(k);Io(()=>{_.current=k},[k]),p.useImperativeHandle(y,()=>A.current,[]);const O=Lz(h,l),[L,I]=p.useState(O),[$,D]=p.useState(hb(o));p.useEffect(()=>{A.current&&A.current.forceUpdate()}),p.useEffect(()=>{o&&D(hb(o))},[o]),Io(()=>{if(!$||!d)return;const te=z=>{I(z.placement)};let Z=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{te(z)}}];u!=null&&(Z=Z.concat(u)),m&&m.modifiers!=null&&(Z=Z.concat(m.modifiers));const W=_z($,x.current,an({placement:O},m,{modifiers:Z}));return _.current(W),()=>{W.destroy(),_.current(null)}},[$,c,u,d,m,O]);const F={placement:L};b!==null&&(F.TransitionProps=b);const U=Nz(),Y=(r=i??v.root)!=null?r:"div",V=ha({elementType:Y,externalSlotProps:g.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:E},ownerState:an({},t,f),className:U.root});return s(Y,an({},V,{children:typeof a=="function"?a(F):a}))}),Fz=p.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:h=Dz,popperRef:m,style:y,transition:g=!1,slotProps:v={},slots:b={}}=t,w=Up(t,Oz),[x,E]=p.useState(!0),A=()=>{E(!1)},k=()=>{E(!0)};if(!c&&!d&&(!g||x))return null;let _;if(a)_=a;else if(r){const I=hb(r);_=I&&Mz(I)?Bn(I).body:Bn(null).body}const O=!d&&c&&(!g||x)?"none":void 0,L=g?{in:d,onEnter:A,onExited:k}:void 0;return s(VS,{disablePortal:l,container:_,children:s(Bz,an({anchorEl:r,direction:i,disablePortal:l,modifiers:u,ref:n,open:g?!x:d,placement:f,popperOptions:h,popperRef:m,slotProps:v,slots:b},w,{style:an({position:"fixed",top:0,left:0,display:O},y),TransitionProps:L,children:o}))})}),zz=Fz;function jz(e){const t=Bn(e);return t.body===e?Qo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function $d(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function GT(e){return parseInt(Qo(e).getComputedStyle(e).paddingRight,10)||0}function Uz(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 qT(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const l=a.indexOf(i)===-1,c=!Uz(i);l&&c&&$d(i,o)})}function r1(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Wz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(jz(r)){const i=j5(Bn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${GT(r)+i}px`;const l=Bn(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${GT(c)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Bn(r).body;else{const i=r.parentElement,l=Qo(r);a=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:i,property:l})=>{a?i.style.setProperty(l,a):i.style.removeProperty(l)})}}function Hz(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Vz{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&&$d(t.modalRef,!1);const o=Hz(n);qT(n,t.mount,t.modalRef,o,!0);const a=r1(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=r1(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=Wz(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=r1(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&$d(t.modalRef,n),qT(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&$d(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Gz(e){return ze("MuiModal",e)}je("MuiModal",["root","hidden"]);const qz=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],Kz=e=>{const{open:t,exited:n,classes:r}=e;return We({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Gz,r)};function Yz(e){return typeof e=="function"?e():e}function Xz(e){return e?e.props.hasOwnProperty("in"):!1}const Jz=new Vz,Qz=p.forwardRef(function(t,n){var r,o;const{children:a,classes:i,closeAfterTransition:l=!1,component:c,container:u,disableAutoFocus:d=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:h=!1,disablePortal:m=!1,disableRestoreFocus:y=!1,disableScrollLock:g=!1,hideBackdrop:v=!1,keepMounted:b=!1,manager:w=Jz,onBackdropClick:x,onClose:E,onKeyDown:A,open:k,onTransitionEnter:_,onTransitionExited:O,slotProps:L={},slots:I={}}=t,$=Up(t,qz),[D,F]=p.useState(!k),U=p.useRef({}),Y=p.useRef(null),V=p.useRef(null),te=wn(V,n),Z=Xz(a),W=(r=t["aria-hidden"])!=null?r:!0,z=()=>Bn(Y.current),R=()=>(U.current.modalRef=V.current,U.current.mountNode=Y.current,U.current),N=()=>{w.mount(R(),{disableScrollLock:g}),V.current&&(V.current.scrollTop=0)},ee=pr(()=>{const lt=Yz(u)||z().body;w.add(R(),lt),V.current&&N()}),re=p.useCallback(()=>w.isTopModal(R()),[w]),Se=pr(lt=>{Y.current=lt,!(!lt||!V.current)&&(k&&re()?N():$d(V.current,W))}),ce=p.useCallback(()=>{w.remove(R(),W)},[w,W]);p.useEffect(()=>()=>{ce()},[ce]),p.useEffect(()=>{k?ee():(!Z||!l)&&ce()},[k,ce,Z,l,ee]);const Ce=an({},t,{classes:i,closeAfterTransition:l,disableAutoFocus:d,disableEnforceFocus:f,disableEscapeKeyDown:h,disablePortal:m,disableRestoreFocus:y,disableScrollLock:g,exited:D,hideBackdrop:v,keepMounted:b}),xe=Kz(Ce),Ee=()=>{F(!1),_&&_()},et=()=>{F(!0),O&&O(),l&&ce()},me=lt=>{lt.target===lt.currentTarget&&(x&&x(lt),E&&E(lt,"backdropClick"))},Ve=lt=>{A&&A(lt),!(lt.key!=="Escape"||!re())&&(h||(lt.stopPropagation(),E&&E(lt,"escapeKeyDown")))},Ge={};a.props.tabIndex===void 0&&(Ge.tabIndex="-1"),Z&&(Ge.onEnter=mm(Ee,a.props.onEnter),Ge.onExited=mm(et,a.props.onExited));const De=(o=c??I.root)!=null?o:"div",he=ha({elementType:De,externalSlotProps:L.root,externalForwardedProps:$,additionalProps:{ref:te,role:"presentation",onKeyDown:Ve},className:xe.root,ownerState:Ce}),Et=I.backdrop,qe=ha({elementType:Et,externalSlotProps:L.backdrop,additionalProps:{"aria-hidden":!0,onClick:me,open:k},className:xe.backdrop,ownerState:Ce});return!b&&!k&&(!Z||D)?null:s(VS,{ref:Se,container:u,disablePortal:m,children:T(De,an({},he,{children:[!v&&Et?s(Et,an({},qe)):null,s(x8,{disableEnforceFocus:f,disableAutoFocus:d,disableRestoreFocus:y,isEnabled:re,open:k,children:p.cloneElement(a,Ge)})]}))})}),Zz=Qz,ej=2;function R$(e,t){return e-t}function Uu(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function KT(e,t){var n;const{index:r}=(n=e.reduce((o,a,i)=>{const l=Math.abs(t-a);return o===null||l<o.distance||l===o.distance?{distance:l,index:i}:o},null))!=null?n:{};return r}function Nf(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 YT(e,t,n){return(e-t)*100/(n-t)}function tj(e,t,n){return(n-t)*e+t}function nj(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 rj(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(nj(t)))}function XT({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(R$)}function Df({sliderRef:e,activeIndex:t,setActive:n}){var r,o;const a=Bn(e.current);if(!((r=e.current)!=null&&r.contains(a.activeElement))||Number(a==null||(o=a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}const oj={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}%`})}},aj=e=>e;let Bf;function o1(){return Bf===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Bf=CSS.supports("touch-action","none"):Bf=!0),Bf}function ij(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:f,orientation:h="horizontal",ref:m,scale:y=aj,step:g=1,tabIndex:v,value:b}=e,w=p.useRef(),[x,E]=p.useState(-1),[A,k]=p.useState(-1),[_,O]=p.useState(!1),L=p.useRef(0),[I,$]=ya({controlled:b,default:n??c,name:"Slider"}),D=d&&((pe,Te,Ye)=>{const Ne=pe.nativeEvent||pe,q=new Ne.constructor(Ne.type,Ne);Object.defineProperty(q,"target",{writable:!0,value:{value:Te,name:u}}),d(q,Te,Ye)}),F=Array.isArray(I);let U=F?I.slice().sort(R$):[I];U=U.map(pe=>Uu(pe,c,l));const Y=i===!0&&g!==null?[...Array(Math.floor((l-c)/g)+1)].map((pe,Te)=>({value:c+g*Te})):i||[],V=Y.map(pe=>pe.value),{isFocusVisibleRef:te,onBlur:Z,onFocus:W,ref:z}=Bp(),[R,N]=p.useState(-1),ee=p.useRef(),re=wn(z,ee),Se=wn(m,re),ce=pe=>Te=>{var Ye;const Ne=Number(Te.currentTarget.getAttribute("data-index"));W(Te),te.current===!0&&N(Ne),k(Ne),pe==null||(Ye=pe.onFocus)==null||Ye.call(pe,Te)},Ce=pe=>Te=>{var Ye;Z(Te),te.current===!1&&N(-1),k(-1),pe==null||(Ye=pe.onBlur)==null||Ye.call(pe,Te)};Io(()=>{if(r&&ee.current.contains(document.activeElement)){var pe;(pe=document.activeElement)==null||pe.blur()}},[r]),r&&x!==-1&&E(-1),r&&R!==-1&&N(-1);const xe=pe=>Te=>{var Ye;(Ye=pe.onChange)==null||Ye.call(pe,Te);const Ne=Number(Te.currentTarget.getAttribute("data-index")),q=U[Ne],K=V.indexOf(q);let se=Te.target.valueAsNumber;if(Y&&g==null&&(se=se<q?V[K-1]:V[K+1]),se=Uu(se,c,l),Y&&g==null){const ye=V.indexOf(U[Ne]);se=se<U[Ne]?V[ye-1]:V[ye+1]}if(F){o&&(se=Uu(se,U[Ne-1]||-1/0,U[Ne+1]||1/0));const ye=se;se=XT({values:U,newValue:se,index:Ne});let Ae=Ne;o||(Ae=se.indexOf(ye)),Df({sliderRef:ee,activeIndex:Ae})}$(se),N(Ne),D&&D(Te,se,Ne),f&&f(Te,se)},Ee=p.useRef();let et=h;a&&h==="horizontal"&&(et+="-reverse");const me=({finger:pe,move:Te=!1})=>{const{current:Ye}=ee,{width:Ne,height:q,bottom:K,left:se}=Ye.getBoundingClientRect();let ye;et.indexOf("vertical")===0?ye=(K-pe.y)/q:ye=(pe.x-se)/Ne,et.indexOf("-reverse")!==-1&&(ye=1-ye);let Ae;if(Ae=tj(ye,c,l),g)Ae=rj(Ae,g,c);else{const Ze=KT(V,Ae);Ae=V[Ze]}Ae=Uu(Ae,c,l);let mt=0;if(F){Te?mt=Ee.current:mt=KT(U,Ae),o&&(Ae=Uu(Ae,U[mt-1]||-1/0,U[mt+1]||1/0));const Ze=Ae;Ae=XT({values:U,newValue:Ae,index:mt}),o&&Te||(mt=Ae.indexOf(Ze),Ee.current=mt)}return{newValue:Ae,activeIndex:mt}},Ve=pr(pe=>{const Te=Nf(pe,w);if(!Te)return;if(L.current+=1,pe.type==="mousemove"&&pe.buttons===0){Ge(pe);return}const{newValue:Ye,activeIndex:Ne}=me({finger:Te,move:!0});Df({sliderRef:ee,activeIndex:Ne,setActive:E}),$(Ye),!_&&L.current>ej&&O(!0),D&&Ye!==I&&D(pe,Ye,Ne)}),Ge=pr(pe=>{const Te=Nf(pe,w);if(O(!1),!Te)return;const{newValue:Ye}=me({finger:Te,move:!0});E(-1),pe.type==="touchend"&&k(-1),f&&f(pe,Ye),w.current=void 0,he()}),De=pr(pe=>{if(r)return;o1()||pe.preventDefault();const Te=pe.changedTouches[0];Te!=null&&(w.current=Te.identifier);const Ye=Nf(pe,w);if(Ye!==!1){const{newValue:q,activeIndex:K}=me({finger:Ye});Df({sliderRef:ee,activeIndex:K,setActive:E}),$(q),D&&D(pe,q,K)}L.current=0;const Ne=Bn(ee.current);Ne.addEventListener("touchmove",Ve),Ne.addEventListener("touchend",Ge)}),he=p.useCallback(()=>{const pe=Bn(ee.current);pe.removeEventListener("mousemove",Ve),pe.removeEventListener("mouseup",Ge),pe.removeEventListener("touchmove",Ve),pe.removeEventListener("touchend",Ge)},[Ge,Ve]);p.useEffect(()=>{const{current:pe}=ee;return pe.addEventListener("touchstart",De,{passive:o1()}),()=>{pe.removeEventListener("touchstart",De,{passive:o1()}),he()}},[he,De]),p.useEffect(()=>{r&&he()},[r,he]);const Et=pe=>Te=>{var Ye;if((Ye=pe.onMouseDown)==null||Ye.call(pe,Te),r||Te.defaultPrevented||Te.button!==0)return;Te.preventDefault();const Ne=Nf(Te,w);if(Ne!==!1){const{newValue:K,activeIndex:se}=me({finger:Ne});Df({sliderRef:ee,activeIndex:se,setActive:E}),$(K),D&&D(Te,K,se)}L.current=0;const q=Bn(ee.current);q.addEventListener("mousemove",Ve),q.addEventListener("mouseup",Ge)},qe=YT(F?U[0]:c,c,l),lt=YT(U[U.length-1],c,l)-qe,Rt=(pe={})=>{const Te={onMouseDown:Et(pe||{})},Ye=an({},pe,Te);return an({ref:Se},Ye)},dt=pe=>Te=>{var Ye;(Ye=pe.onMouseOver)==null||Ye.call(pe,Te);const Ne=Number(Te.currentTarget.getAttribute("data-index"));k(Ne)},nt=pe=>Te=>{var Ye;(Ye=pe.onMouseLeave)==null||Ye.call(pe,Te),k(-1)};return{active:x,axis:et,axisProps:oj,dragging:_,focusedThumbIndex:R,getHiddenInputProps:(pe={})=>{var Te;const Ye={onChange:xe(pe||{}),onFocus:ce(pe||{}),onBlur:Ce(pe||{})},Ne=an({},pe,Ye);return an({tabIndex:v,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":y(l),"aria-valuemin":y(c),name:u,type:"range",min:e.min,max:e.max,step:(Te=e.step)!=null?Te:void 0,disabled:r},Ne,{style:an({},nB,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Rt,getThumbProps:(pe={})=>{const Te={onMouseOver:dt(pe||{}),onMouseLeave:nt(pe||{})};return an({},pe,Te)},marks:Y,open:A,range:F,trackLeap:lt,trackOffset:qe,values:U}}const sj=["onChange","maxRows","minRows","style","value"];function Ff(e,t){return parseInt(e[t],10)||0}const lj={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function JT(e){return e==null||Object.keys(e).length===0}const cj=p.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:l}=t,c=Up(t,sj),{current:u}=p.useRef(l!=null),d=p.useRef(null),f=wn(n,d),h=p.useRef(null),m=p.useRef(0),[y,g]=p.useState({}),v=p.useCallback(()=>{const A=d.current,_=Qo(A).getComputedStyle(A);if(_.width==="0px")return{};const O=h.current;O.style.width=_.width,O.value=A.value||t.placeholder||"x",O.value.slice(-1)===`
91
- `&&(O.value+=" ");const L=_["box-sizing"],I=Ff(_,"padding-bottom")+Ff(_,"padding-top"),$=Ff(_,"border-bottom-width")+Ff(_,"border-top-width"),D=O.scrollHeight;O.value="x";const F=O.scrollHeight;let U=D;a&&(U=Math.max(Number(a)*F,U)),o&&(U=Math.min(Number(o)*F,U)),U=Math.max(U,F);const Y=U+(L==="border-box"?I+$:0),V=Math.abs(U-D)<=1;return{outerHeightStyle:Y,overflow:V}},[o,a,t.placeholder]),b=(A,k)=>{const{outerHeightStyle:_,overflow:O}=k;return m.current<20&&(_>0&&Math.abs((A.outerHeightStyle||0)-_)>1||A.overflow!==O)?(m.current+=1,{overflow:O,outerHeightStyle:_}):A},w=p.useCallback(()=>{const A=v();JT(A)||g(k=>b(k,A))},[v]),x=()=>{const A=v();JT(A)||Ud.flushSync(()=>{g(k=>b(k,A))})};p.useEffect(()=>{const A=fl(()=>{m.current=0,d.current&&x()}),k=Qo(d.current);k.addEventListener("resize",A);let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(A),_.observe(d.current)),()=>{A.clear(),k.removeEventListener("resize",A),_&&_.disconnect()}}),Io(()=>{w()}),p.useEffect(()=>{m.current=0},[l]);const E=A=>{m.current=0,u||w(),r&&r(A)};return T(p.Fragment,{children:[s("textarea",an({value:l,onChange:E,ref:f,rows:a,style:an({height:y.outerHeightStyle,overflow:y.overflow?"hidden":null},i)},c)),s("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:an({},lj.shadow,i,{padding:0})})]})}),uj=cj;function dj(e){return ze("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const pj=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],fj=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ie(t)}`,`fontSize${ie(n)}`]};return We(o,dj,r)},hj=C("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ie(n.color)}`],t[`fontSize${ie(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,l,c,u,d,f,h,m,y,g,v,b,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||(a=o.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(l=i.pxToRem)==null?void 0:l.call(i,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||(f=d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}[t.fontSize],color:(h=(m=(e.vars||e).palette)==null||(y=m[t.color])==null?void 0:y.main)!=null?h:{action:(g=(e.vars||e).palette)==null||(v=g.action)==null?void 0:v.active,disabled:(b=(e.vars||e).palette)==null||(w=b.action)==null?void 0:w.disabled,inherit:void 0}[t.color]}}),P$=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24"}=r,m=$e(r,pj),y=P({},r,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h}),g={};d||(g.viewBox=h);const v=fj(y);return T(hj,P({as:l,className:ve(v.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},g,m,{ownerState:y,children:[o,f?s("title",{children:f}):null]}))});P$.muiName="SvgIcon";const mb=P$;function Ke(e,t){function n(r,o){return s(mb,P({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=mb.muiName,p.memo(p.forwardRef(n))}const mj={configure:e=>{wS.configure(e)}},gj=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ie,createChainedFunction:mm,createSvgIcon:Ke,debounce:fl,deprecatedPropType:U9,isMuiElement:Ad,ownerDocument:Bn,ownerWindow:Qo,requirePropFactory:W9,setRef:ap,unstable_ClassNameGenerator:mj,unstable_useEnhancedEffect:Io,unstable_useId:eu,unsupportedProp:G9,useControlled:ya,useEventCallback:pr,useForkRef:wn,useIsFocusVisible:Bp},Symbol.toStringTag,{value:"Module"}));function I$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function gb(e,t){return gb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},gb(e,t)}function GS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gb(e,t)}const QT={disabled:!1},wm=zt.createContext(null);var vj=function(t){return t.scrollTop},dd="unmounted",zs="exited",js="entering",Yl="entered",vb="exiting",_i=function(e){GS(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,l=i&&!i.isMounting?r.enter:r.appear,c;return a.appearStatus=null,r.in?l?(c=zs,a.appearStatus=js):c=Yl:r.unmountOnExit||r.mountOnEnter?c=dd:c=zs,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===dd?{status:zs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==js&&i!==Yl&&(a=js):(i===js||i===Yl)&&(a=vb)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,l;return a=i=l=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:l}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===js){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:cd.findDOMNode(this);i&&vj(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zs&&this.setState({status:dd})},n.performEnter=function(o){var a=this,i=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[cd.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),h=l?f.appear:f.enter;if(!o&&!i||QT.disabled){this.safeSetState({status:Yl},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:js},function(){a.props.onEntering(u,d),a.onTransitionEnd(h,function(){a.safeSetState({status:Yl},function(){a.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:cd.findDOMNode(this);if(!a||QT.disabled){this.safeSetState({status:zs},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:vb},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:zs},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:cd.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,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===dd)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=I$(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return zt.createElement(wm.Provider,{value:null},typeof i=="function"?i(o,l):zt.cloneElement(zt.Children.only(i),l))},t}(zt.Component);_i.contextType=wm;_i.propTypes={};function jl(){}_i.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:jl,onEntering:jl,onEntered:jl,onExit:jl,onExiting:jl,onExited:jl};_i.UNMOUNTED=dd;_i.EXITED=zs;_i.ENTERING=js;_i.ENTERED=Yl;_i.EXITING=vb;const qg=_i;function yj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qS(e,t){var n=function(a){return t&&p.isValidElement(a)?t(a):a},r=Object.create(null);return e&&p.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function bj(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 a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var i,l={};for(var c in t){if(r[c])for(i=0;i<r[c].length;i++){var u=r[c][i];l[r[c][i]]=n(u)}l[c]=n(c)}for(i=0;i<o.length;i++)l[o[i]]=n(o[i]);return l}function tl(e,t,n){return n[t]!=null?n[t]:e.props[t]}function wj(e,t){return qS(e.children,function(n){return p.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:tl(n,"appear",e),enter:tl(n,"enter",e),exit:tl(n,"exit",e)})})}function Sj(e,t,n){var r=qS(e.children),o=bj(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if(p.isValidElement(i)){var l=a in t,c=a in r,u=t[a],d=p.isValidElement(u)&&!u.props.in;c&&(!l||d)?o[a]=p.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:tl(i,"exit",e),enter:tl(i,"enter",e)}):!c&&l&&!d?o[a]=p.cloneElement(i,{in:!1}):c&&l&&p.isValidElement(u)&&(o[a]=p.cloneElement(i,{onExited:n.bind(null,i),in:u.props.in,exit:tl(i,"exit",e),enter:tl(i,"enter",e)}))}}),o}var xj=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Cj={component:"div",childFactory:function(t){return t}},KS=function(e){GS(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=a.handleExited.bind(yj(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}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,a){var i=a.children,l=a.handleExited,c=a.firstRender;return{children:c?wj(o,l):Sj(o,i,l),firstRender:!1}},n.handleExited=function(o,a){var i=qS(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(l){var c=gm({},l.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,a=o.component,i=o.childFactory,l=I$(o,["component","childFactory"]),c=this.state.contextValue,u=xj(this.state.children).map(i);return delete l.appear,delete l.enter,delete l.exit,a===null?zt.createElement(wm.Provider,{value:c},u):zt.createElement(wm.Provider,{value:c},zt.createElement(a,l,u))},t}(zt.Component);KS.propTypes={};KS.defaultProps=Cj;const Ej=KS,YS=e=>e.scrollTop;function gs(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:i.transitionDelay}}function Tj(e){return ze("MuiCollapse",e)}je("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const kj=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Aj=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return We(r,Tj,n)},_j=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})=>P({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&P({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Rj=C("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>P({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Pj=C("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>P({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),$$=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:f,onEntered:h,onEntering:m,onExit:y,onExited:g,onExiting:v,orientation:b="vertical",style:w,timeout:x=b$.standard,TransitionComponent:E=qg}=r,A=$e(r,kj),k=P({},r,{orientation:b,collapsedSize:l}),_=Aj(k),O=cn(),L=p.useRef(),I=p.useRef(null),$=p.useRef(),D=typeof l=="number"?`${l}px`:l,F=b==="horizontal",U=F?"width":"height";p.useEffect(()=>()=>{clearTimeout(L.current)},[]);const Y=p.useRef(null),V=wn(n,Y),te=ce=>Ce=>{if(ce){const xe=Y.current;Ce===void 0?ce(xe):ce(xe,Ce)}},Z=()=>I.current?I.current[F?"clientWidth":"clientHeight"]:0,W=te((ce,Ce)=>{I.current&&F&&(I.current.style.position="absolute"),ce.style[U]=D,f&&f(ce,Ce)}),z=te((ce,Ce)=>{const xe=Z();I.current&&F&&(I.current.style.position="");const{duration:Ee,easing:et}=gs({style:w,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const me=O.transitions.getAutoHeightDuration(xe);ce.style.transitionDuration=`${me}ms`,$.current=me}else ce.style.transitionDuration=typeof Ee=="string"?Ee:`${Ee}ms`;ce.style[U]=`${xe}px`,ce.style.transitionTimingFunction=et,m&&m(ce,Ce)}),R=te((ce,Ce)=>{ce.style[U]="auto",h&&h(ce,Ce)}),N=te(ce=>{ce.style[U]=`${Z()}px`,y&&y(ce)}),ee=te(g),re=te(ce=>{const Ce=Z(),{duration:xe,easing:Ee}=gs({style:w,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const et=O.transitions.getAutoHeightDuration(Ce);ce.style.transitionDuration=`${et}ms`,$.current=et}else ce.style.transitionDuration=typeof xe=="string"?xe:`${xe}ms`;ce.style[U]=D,ce.style.transitionTimingFunction=Ee,v&&v(ce)});return s(E,P({in:d,onEnter:W,onEntered:R,onEntering:z,onExit:N,onExited:ee,onExiting:re,addEndListener:ce=>{x==="auto"&&(L.current=setTimeout(ce,$.current||0)),o&&o(Y.current,ce)},nodeRef:Y,timeout:x==="auto"?null:x},A,{children:(ce,Ce)=>s(_j,P({as:c,className:ve(_.root,i,{entered:_.entered,exited:!d&&D==="0px"&&_.hidden}[ce]),style:P({[F?"minWidth":"minHeight"]:D},w),ownerState:P({},k,{state:ce}),ref:V},Ce,{children:s(Rj,{ownerState:P({},k,{state:ce}),className:_.wrapper,ref:I,children:s(Pj,{ownerState:P({},k,{state:ce}),className:_.wrapperInner,children:a})})}))}))});$$.muiSupportAuto=!0;const O$=$$;function Ij(e){return ze("MuiPaper",e)}je("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 $j=["className","component","elevation","square","variant"],Oj=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return We(a,Ij,o)},Lj=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 P({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"&&P({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${$t("#fff",$T(t.elevation))}, ${$t("#fff",$T(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Mj=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:i=1,square:l=!1,variant:c="elevation"}=r,u=$e(r,$j),d=P({},r,{component:a,elevation:i,square:l,variant:c}),f=Oj(d);return s(Lj,P({as:a,ownerState:d,className:ve(f.root,o),ref:n},u))}),Ar=Mj,Nj=p.createContext({}),L$=Nj;function Dj(e){return ze("MuiAccordion",e)}const Bj=je("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),zf=Bj,Fj=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],zj=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return We({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},Dj,t)},jj=C(Ar,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zf.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"}},[`&.${zf.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${zf.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>P({},!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&&{[`&.${zf.expanded}`]:{margin:"16px 0"}})),Uj=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:i=!1,disabled:l=!1,disableGutters:c=!1,expanded:u,onChange:d,square:f=!1,TransitionComponent:h=O$,TransitionProps:m}=r,y=$e(r,Fj),[g,v]=ya({controlled:u,default:i,name:"Accordion",state:"expanded"}),b=p.useCallback(_=>{v(!g),d&&d(_,!g)},[g,d,v]),[w,...x]=p.Children.toArray(o),E=p.useMemo(()=>({expanded:g,disabled:l,disableGutters:c,toggle:b}),[g,l,c,b]),A=P({},r,{square:f,disabled:l,disableGutters:c,expanded:g}),k=zj(A);return T(jj,P({className:ve(k.root,a),ref:n,ownerState:A,square:f},y,{children:[s(L$.Provider,{value:E,children:w}),s(h,P({in:g,timeout:"auto"},m,{children:s("div",{"aria-labelledby":w.props.id,id:w.props["aria-controls"],role:"region",className:k.region,children:x})}))]}))}),XS=Uj;function Wj(e){return ze("MuiAccordionDetails",e)}je("MuiAccordionDetails",["root"]);const Hj=["className"],Vj=e=>{const{classes:t}=e;return We({root:["root"]},Wj,t)},Gj=C("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),qj=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiAccordionDetails"}),{className:o}=r,a=$e(r,Hj),i=r,l=Vj(i);return s(Gj,P({className:ve(l.root,o),ref:n,ownerState:i},a))}),JS=qj;function Kj(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:c,timeout:u}=e,[d,f]=p.useState(!1),h=ve(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},y=ve(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&f(!0),p.useEffect(()=>{if(!l&&c!=null){const g=setTimeout(c,u);return()=>{clearTimeout(g)}}},[c,l,u]),s("span",{className:h,style:m,children:s("span",{className:y})})}const Yj=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zo=Yj,Xj=["center","classes","className"];let Kg=e=>e,ZT,ek,tk,nk;const yb=550,Jj=80,Qj=Cs(ZT||(ZT=Kg`
92
- 0% {
93
- transform: scale(0);
94
- opacity: 0.1;
95
- }
96
-
97
- 100% {
98
- transform: scale(1);
99
- opacity: 0.3;
100
- }
101
- `)),Zj=Cs(ek||(ek=Kg`
102
- 0% {
103
- opacity: 1;
104
- }
105
-
106
- 100% {
107
- opacity: 0;
108
- }
109
- `)),eU=Cs(tk||(tk=Kg`
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
- `)),tU=C("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),nU=C(Kj,{name:"MuiTouchRipple",slot:"Ripple"})(nk||(nk=Kg`
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
- `),zo.rippleVisible,Qj,yb,({theme:e})=>e.transitions.easing.easeInOut,zo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,zo.child,zo.childLeaving,Zj,yb,({theme:e})=>e.transitions.easing.easeInOut,zo.childPulsate,eU,({theme:e})=>e.transitions.easing.easeInOut),rU=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,l=$e(r,Xj),[c,u]=p.useState([]),d=p.useRef(0),f=p.useRef(null);p.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const h=p.useRef(!1),m=p.useRef(null),y=p.useRef(null),g=p.useRef(null);p.useEffect(()=>()=>{clearTimeout(m.current)},[]);const v=p.useCallback(E=>{const{pulsate:A,rippleX:k,rippleY:_,rippleSize:O,cb:L}=E;u(I=>[...I,s(nU,{classes:{ripple:ve(a.ripple,zo.ripple),rippleVisible:ve(a.rippleVisible,zo.rippleVisible),ripplePulsate:ve(a.ripplePulsate,zo.ripplePulsate),child:ve(a.child,zo.child),childLeaving:ve(a.childLeaving,zo.childLeaving),childPulsate:ve(a.childPulsate,zo.childPulsate)},timeout:yb,pulsate:A,rippleX:k,rippleY:_,rippleSize:O},d.current)]),d.current+=1,f.current=L},[a]),b=p.useCallback((E={},A={},k=()=>{})=>{const{pulsate:_=!1,center:O=o||A.pulsate,fakeElement:L=!1}=A;if((E==null?void 0:E.type)==="mousedown"&&h.current){h.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(h.current=!0);const I=L?null:g.current,$=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,F,U;if(O||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)D=Math.round($.width/2),F=Math.round($.height/2);else{const{clientX:Y,clientY:V}=E.touches&&E.touches.length>0?E.touches[0]:E;D=Math.round(Y-$.left),F=Math.round(V-$.top)}if(O)U=Math.sqrt((2*$.width**2+$.height**2)/3),U%2===0&&(U+=1);else{const Y=Math.max(Math.abs((I?I.clientWidth:0)-D),D)*2+2,V=Math.max(Math.abs((I?I.clientHeight:0)-F),F)*2+2;U=Math.sqrt(Y**2+V**2)}E!=null&&E.touches?y.current===null&&(y.current=()=>{v({pulsate:_,rippleX:D,rippleY:F,rippleSize:U,cb:k})},m.current=setTimeout(()=>{y.current&&(y.current(),y.current=null)},Jj)):v({pulsate:_,rippleX:D,rippleY:F,rippleSize:U,cb:k})},[o,v]),w=p.useCallback(()=>{b({},{pulsate:!0})},[b]),x=p.useCallback((E,A)=>{if(clearTimeout(m.current),(E==null?void 0:E.type)==="touchend"&&y.current){y.current(),y.current=null,m.current=setTimeout(()=>{x(E,A)});return}y.current=null,u(k=>k.length>0?k.slice(1):k),f.current=A},[]);return p.useImperativeHandle(n,()=>({pulsate:w,start:b,stop:x}),[w,b,x]),s(tU,P({className:ve(zo.root,a.root,i),ref:g},l,{children:s(Ej,{component:null,exit:!0,children:c})}))}),oU=rU;function aU(e){return ze("MuiButtonBase",e)}const iU=je("MuiButtonBase",["root","disabled","focusVisible"]),sU=iU,lU=["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"],cU=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=We({root:["root",t&&"disabled",n&&"focusVisible"]},aU,o);return n&&r&&(i.root+=` ${r}`),i},uU=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"},[`&.${sU.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),dU=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:m="a",onBlur:y,onClick:g,onContextMenu:v,onDragLeave:b,onFocus:w,onFocusVisible:x,onKeyDown:E,onKeyUp:A,onMouseDown:k,onMouseLeave:_,onMouseUp:O,onTouchEnd:L,onTouchMove:I,onTouchStart:$,tabIndex:D=0,TouchRippleProps:F,touchRippleRef:U,type:Y}=r,V=$e(r,lU),te=p.useRef(null),Z=p.useRef(null),W=wn(Z,U),{isFocusVisibleRef:z,onFocus:R,onBlur:N,ref:ee}=Bp(),[re,Se]=p.useState(!1);u&&re&&Se(!1),p.useImperativeHandle(o,()=>({focusVisible:()=>{Se(!0),te.current.focus()}}),[]);const[ce,Ce]=p.useState(!1);p.useEffect(()=>{Ce(!0)},[]);const xe=ce&&!d&&!u;p.useEffect(()=>{re&&h&&!d&&ce&&Z.current.pulsate()},[d,h,re,ce]);function Ee(K,se,ye=f){return pr(Ae=>(se&&se(Ae),!ye&&Z.current&&Z.current[K](Ae),!0))}const et=Ee("start",k),me=Ee("stop",v),Ve=Ee("stop",b),Ge=Ee("stop",O),De=Ee("stop",K=>{re&&K.preventDefault(),_&&_(K)}),he=Ee("start",$),Et=Ee("stop",L),qe=Ee("stop",I),lt=Ee("stop",K=>{N(K),z.current===!1&&Se(!1),y&&y(K)},!1),Rt=pr(K=>{te.current||(te.current=K.currentTarget),R(K),z.current===!0&&(Se(!0),x&&x(K)),w&&w(K)}),dt=()=>{const K=te.current;return c&&c!=="button"&&!(K.tagName==="A"&&K.href)},nt=p.useRef(!1),Lt=pr(K=>{h&&!nt.current&&re&&Z.current&&K.key===" "&&(nt.current=!0,Z.current.stop(K,()=>{Z.current.start(K)})),K.target===K.currentTarget&&dt()&&K.key===" "&&K.preventDefault(),E&&E(K),K.target===K.currentTarget&&dt()&&K.key==="Enter"&&!u&&(K.preventDefault(),g&&g(K))}),xt=pr(K=>{h&&K.key===" "&&Z.current&&re&&!K.defaultPrevented&&(nt.current=!1,Z.current.stop(K,()=>{Z.current.pulsate(K)})),A&&A(K),g&&K.target===K.currentTarget&&dt()&&K.key===" "&&!K.defaultPrevented&&g(K)});let pe=c;pe==="button"&&(V.href||V.to)&&(pe=m);const Te={};pe==="button"?(Te.type=Y===void 0?"button":Y,Te.disabled=u):(!V.href&&!V.to&&(Te.role="button"),u&&(Te["aria-disabled"]=u));const Ye=wn(n,ee,te),Ne=P({},r,{centerRipple:a,component:c,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:h,tabIndex:D,focusVisible:re}),q=cU(Ne);return T(uU,P({as:pe,className:ve(q.root,l),ownerState:Ne,onBlur:lt,onClick:g,onContextMenu:me,onFocus:Rt,onKeyDown:Lt,onKeyUp:xt,onMouseDown:et,onMouseLeave:De,onMouseUp:Ge,onDragLeave:Ve,onTouchEnd:Et,onTouchMove:qe,onTouchStart:he,ref:Ye,tabIndex:u?-1:D,type:Y},Te,V,{children:[i,xe?s(oU,P({ref:W,center:a},F)):null]}))}),Sa=dU;function pU(e){return ze("MuiAccordionSummary",e)}const fU=je("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),rc=fU,hU=["children","className","expandIcon","focusVisibleClassName","onClick"],mU=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return We({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},pU,t)},gU=C(Sa,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return P({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${rc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${rc.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${rc.expanded}`]:{minHeight:64}})}),vU=C("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>P({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${rc.expanded}`]:{margin:"20px 0"}})),yU=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}),[`&.${rc.expanded}`]:{transform:"rotate(180deg)"}})),bU=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:i,focusVisibleClassName:l,onClick:c}=r,u=$e(r,hU),{disabled:d=!1,disableGutters:f,expanded:h,toggle:m}=p.useContext(L$),y=b=>{m&&m(b),c&&c(b)},g=P({},r,{expanded:h,disabled:d,disableGutters:f}),v=mU(g);return T(gU,P({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":h,className:ve(v.root,a),focusVisibleClassName:ve(v.focusVisible,l),onClick:y,ref:n,ownerState:g},u,{children:[s(vU,{className:v.content,ownerState:g,children:o}),i&&s(yU,{className:v.expandIconWrapper,ownerState:g,children:i})]}))}),QS=bU;function wU(e){return ze("MuiAlert",e)}const SU=je("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),rk=SU;function xU(e){return ze("MuiIconButton",e)}const CU=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),EU=CU,TU=["edge","children","className","color","disabled","disableFocusRipple","size"],kU=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${ie(r)}`,o&&`edge${ie(o)}`,`size${ie(a)}`]};return We(i,xU,t)},AU=C(Sa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ie(n.color)}`],n.edge&&t[`edge${ie(n.edge)}`],t[`size${ie(n.size)}`]]}})(({theme:e,ownerState:t})=>P({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})`:$t(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 P({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&P({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":P({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:$t(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)},{[`&.${EU.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),_U=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium"}=r,f=$e(r,TU),h=P({},r,{edge:o,color:l,disabled:c,disableFocusRipple:u,size:d}),m=kU(h);return s(AU,P({className:ve(m.root,i),centerRipple:!0,focusRipple:!u,disabled:c,ref:n,ownerState:h},f,{children:a}))}),en=_U,RU=Ke(s("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"),PU=Ke(s("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),IU=Ke(s("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"),$U=Ke(s("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"),M$=Ke(s("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"),OU=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],LU=e=>{const{variant:t,color:n,severity:r,classes:o}=e,a={root:["root",`${t}${ie(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return We(a,wU,o)},MU=C(Ar,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ie(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?hs:ms,r=e.palette.mode==="light"?ms:hs,o=t.color||t.severity;return P({},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),[`& .${rk.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}`,[`& .${rk.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&P({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)}))}),NU=C("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),DU=C("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),ok=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}),ak={success:s(RU,{fontSize:"inherit"}),warning:s(PU,{fontSize:"inherit"}),error:s(IU,{fontSize:"inherit"}),info:s($U,{fontSize:"inherit"})},BU=p.forwardRef(function(t,n){var r,o,a,i,l,c;const u=He({props:t,name:"MuiAlert"}),{action:d,children:f,className:h,closeText:m="Close",color:y,components:g={},componentsProps:v={},icon:b,iconMapping:w=ak,onClose:x,role:E="alert",severity:A="success",slotProps:k={},slots:_={},variant:O="standard"}=u,L=$e(u,OU),I=P({},u,{color:y,severity:A,variant:O}),$=LU(I),D=(r=(o=_.closeButton)!=null?o:g.CloseButton)!=null?r:en,F=(a=(i=_.closeIcon)!=null?i:g.CloseIcon)!=null?a:M$,U=(l=k.closeButton)!=null?l:v.closeButton,Y=(c=k.closeIcon)!=null?c:v.closeIcon;return T(MU,P({role:E,elevation:0,ownerState:I,className:ve($.root,h),ref:n},L,{children:[b!==!1?s(NU,{ownerState:I,className:$.icon,children:b||w[A]||ak[A]}):null,s(DU,{ownerState:I,className:$.message,children:f}),d!=null?s(ok,{ownerState:I,className:$.action,children:d}):null,d==null&&x?s(ok,{ownerState:I,className:$.action,children:s(D,P({size:"small","aria-label":m,title:m,color:"inherit",onClick:x},U,{children:s(F,P({fontSize:"small"},Y))}))}):null]}))}),Jt=BU;function FU(e){return ze("MuiTypography",e)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const zU=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],jU=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,l={root:["root",a,e.align!=="inherit"&&`align${ie(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return We(l,FU,i)},UU=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${ie(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>P({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})),ik={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},WU={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},HU=e=>WU[e]||e,VU=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTypography"}),o=HU(r.color),a=LS(P({},r,{color:o})),{align:i="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:h="body1",variantMapping:m=ik}=a,y=$e(a,zU),g=P({},a,{align:i,color:o,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:h,variantMapping:m}),v=c||(f?"p":m[h]||ik[h])||"span",b=jU(g);return s(UU,P({as:v,ref:n,ownerState:g,className:ve(b.root,l)},y))}),we=VU;function GU(e){return ze("MuiAlertTitle",e)}je("MuiAlertTitle",["root"]);const qU=["className"],KU=e=>{const{classes:t}=e;return We({root:["root"]},GU,t)},YU=C(we,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),XU=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiAlertTitle"}),{className:o}=r,a=$e(r,qU),i=r,l=KU(i);return s(YU,P({gutterBottom:!0,component:"div",ownerState:i,ref:n,className:ve(l.root,o)},a))}),Sm=XU;function JU(e){return ze("MuiAppBar",e)}je("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const QU=["className","color","enableColorOnDark","position"],ZU=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ie(t)}`,`position${ie(n)}`]};return We(o,JU,r)},jf=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,eW=C(Ar,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ie(n.position)}`],t[`color${ie(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return P({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&&P({},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"&&P({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&P({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:jf(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:jf(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:jf(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:jf(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"}))}),tW=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:l="fixed"}=r,c=$e(r,QU),u=P({},r,{color:a,position:l,enableColorOnDark:i}),d=ZU(u);return s(eW,P({square:!0,component:"header",ownerState:u,elevation:4,className:ve(d.root,o,l==="fixed"&&"mui-fixed"),ref:n},c))}),nW=tW,rW=["components","componentsProps","slots","slotProps"],oW=C(zz,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),aW=p.forwardRef(function(t,n){var r;const o=MS(),a=He({props:t,name:"MuiPopper"}),{components:i,componentsProps:l,slots:c,slotProps:u}=a,d=$e(a,rW),f=(r=c==null?void 0:c.root)!=null?r:i==null?void 0:i.Root;return s(oW,P({direction:o==null?void 0:o.direction,slots:{root:f},slotProps:u??l},d,{ref:n}))}),Yg=aW;function iW(e){return ze("MuiListSubheader",e)}je("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const sW=["className","color","component","disableGutters","disableSticky","inset"],lW=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,i={root:["root",n!=="default"&&`color${ie(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return We(i,iW,t)},cW=C("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ie(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>P({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})),uW=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:i="li",disableGutters:l=!1,disableSticky:c=!1,inset:u=!1}=r,d=$e(r,sW),f=P({},r,{color:a,component:i,disableGutters:l,disableSticky:c,inset:u}),h=lW(f);return s(cW,P({as:i,className:ve(h.root,o),ref:n,ownerState:f},d))}),dW=uW,pW=Ke(s("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 fW(e){return ze("MuiChip",e)}const hW=je("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"]),Zt=hW,mW=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],gW=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${ie(r)}`,`color${ie(o)}`,l&&"clickable",l&&`clickableColor${ie(o)}`,i&&"deletable",i&&`deletableColor${ie(o)}`,`${c}${ie(o)}`],label:["label",`label${ie(r)}`],avatar:["avatar",`avatar${ie(r)}`,`avatarColor${ie(o)}`],icon:["icon",`icon${ie(r)}`,`iconColor${ie(a)}`],deleteIcon:["deleteIcon",`deleteIcon${ie(r)}`,`deleteIconColor${ie(o)}`,`deleteIcon${ie(c)}Color${ie(o)}`]};return We(u,fW,t)},vW=C("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:l,variant:c}=n;return[{[`& .${Zt.avatar}`]:t.avatar},{[`& .${Zt.avatar}`]:t[`avatar${ie(l)}`]},{[`& .${Zt.avatar}`]:t[`avatarColor${ie(r)}`]},{[`& .${Zt.icon}`]:t.icon},{[`& .${Zt.icon}`]:t[`icon${ie(l)}`]},{[`& .${Zt.icon}`]:t[`iconColor${ie(o)}`]},{[`& .${Zt.deleteIcon}`]:t.deleteIcon},{[`& .${Zt.deleteIcon}`]:t[`deleteIcon${ie(l)}`]},{[`& .${Zt.deleteIcon}`]:t[`deleteIconColor${ie(r)}`]},{[`& .${Zt.deleteIcon}`]:t[`deleteIcon${ie(c)}Color${ie(r)}`]},t.root,t[`size${ie(l)}`],t[`color${ie(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${ie(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${ie(r)}`],t[c],t[`${c}${ie(r)}`]]}})(({theme:e,ownerState:t})=>{const n=$t(e.palette.text.primary,.26),r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return P({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",[`&.${Zt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Zt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Zt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Zt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Zt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Zt.icon}`]:P({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&P({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${Zt.deleteIcon}`]:P({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)`:$t(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)`:$t(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&&{[`&.${Zt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$t(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Zt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>P({},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}))`:$t(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Zt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$t(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, &.${Zt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>P({},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]}`,[`&.${Zt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Zt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Zt.avatar}`]:{marginLeft:4},[`& .${Zt.avatarSmall}`]:{marginLeft:2},[`& .${Zt.icon}`]:{marginLeft:4},[`& .${Zt.iconSmall}`]:{marginLeft:2},[`& .${Zt.deleteIcon}`]:{marginRight:5},[`& .${Zt.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)`:$t(e.palette[t.color].main,.7)}`,[`&.${Zt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:$t(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Zt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:$t(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Zt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:$t(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),yW=C("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ie(r)}`]]}})(({ownerState:e})=>P({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function sk(e){return e.key==="Backspace"||e.key==="Delete"}const bW=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:f,label:h,onClick:m,onDelete:y,onKeyDown:g,onKeyUp:v,size:b="medium",variant:w="filled",tabIndex:x,skipFocusWhenDisabled:E=!1}=r,A=$e(r,mW),k=p.useRef(null),_=wn(k,n),O=W=>{W.stopPropagation(),y&&y(W)},L=W=>{W.currentTarget===W.target&&sk(W)&&W.preventDefault(),g&&g(W)},I=W=>{W.currentTarget===W.target&&(y&&sk(W)?y(W):W.key==="Escape"&&k.current&&k.current.blur()),v&&v(W)},$=i!==!1&&m?!0:i,D=$||y?Sa:c||"div",F=P({},r,{component:D,disabled:d,size:b,color:l,iconColor:p.isValidElement(f)&&f.props.color||l,onDelete:!!y,clickable:$,variant:w}),U=gW(F),Y=D===Sa?P({component:c||"div",focusVisibleClassName:U.focusVisible},y&&{disableRipple:!0}):{};let V=null;y&&(V=u&&p.isValidElement(u)?p.cloneElement(u,{className:ve(u.props.className,U.deleteIcon),onClick:O}):s(pW,{className:ve(U.deleteIcon),onClick:O}));let te=null;o&&p.isValidElement(o)&&(te=p.cloneElement(o,{className:ve(U.avatar,o.props.className)}));let Z=null;return f&&p.isValidElement(f)&&(Z=p.cloneElement(f,{className:ve(U.icon,f.props.className)})),T(vW,P({as:D,className:ve(U.root,a),disabled:$&&d?!0:void 0,onClick:m,onKeyDown:L,onKeyUp:I,ref:_,tabIndex:E&&d?-1:x,ownerState:F},Y,A,{children:[te||Z,s(yW,{className:ve(U.label),ownerState:F,children:h}),V]}))}),To=bW;function Ts({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 wW=p.createContext(void 0),Xg=wW;function ni(){return p.useContext(Xg)}function N$(e){return s(sF,P({},e,{defaultTheme:Vg}))}function lk(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ZS(e,t=!1){return e&&(lk(e.value)&&e.value!==""||t&&lk(e.defaultValue)&&e.defaultValue!=="")}function SW(e){return e.startAdornment}function xW(e){return ze("MuiInputBase",e)}const CW=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),xo=CW,EW=["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"],Jg=(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${ie(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Qg=(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]},TW=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:f,size:h,startAdornment:m,type:y}=e,g={root:["root",`color${ie(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",i&&"focused",l&&"formControl",h==="small"&&"sizeSmall",d&&"multiline",m&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return We(g,xW,t)},Zg=C("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Jg})(({theme:e,ownerState:t})=>P({},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",[`&.${xo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&P({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),ev=C("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Qg})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=P({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"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return P({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] + .${xo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${xo.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"})}),kW=s(N$,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),AW=p.forwardRef(function(t,n){var r;const o=He({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:l,className:c,components:u={},componentsProps:d={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:m,endAdornment:y,fullWidth:g=!1,id:v,inputComponent:b="input",inputProps:w={},inputRef:x,maxRows:E,minRows:A,multiline:k=!1,name:_,onBlur:O,onChange:L,onClick:I,onFocus:$,onKeyDown:D,onKeyUp:F,placeholder:U,readOnly:Y,renderSuffix:V,rows:te,slotProps:Z={},slots:W={},startAdornment:z,type:R="text",value:N}=o,ee=$e(o,EW),re=w.value!=null?w.value:N,{current:Se}=p.useRef(re!=null),ce=p.useRef(),Ce=p.useCallback(q=>{},[]),xe=wn(ce,x,w.ref,Ce),[Ee,et]=p.useState(!1),me=ni(),Ve=Ts({props:o,muiFormControl:me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ve.focused=me?me.focused:Ee,p.useEffect(()=>{!me&&h&&Ee&&(et(!1),O&&O())},[me,h,Ee,O]);const Ge=me&&me.onFilled,De=me&&me.onEmpty,he=p.useCallback(q=>{ZS(q)?Ge&&Ge():De&&De()},[Ge,De]);Io(()=>{Se&&he({value:re})},[re,he,Se]);const Et=q=>{if(Ve.disabled){q.stopPropagation();return}$&&$(q),w.onFocus&&w.onFocus(q),me&&me.onFocus?me.onFocus(q):et(!0)},qe=q=>{O&&O(q),w.onBlur&&w.onBlur(q),me&&me.onBlur?me.onBlur(q):et(!1)},lt=(q,...K)=>{if(!Se){const se=q.target||ce.current;if(se==null)throw new Error(fs(1));he({value:se.value})}w.onChange&&w.onChange(q,...K),L&&L(q,...K)};p.useEffect(()=>{he(ce.current)},[]);const Rt=q=>{ce.current&&q.currentTarget===q.target&&ce.current.focus(),I&&I(q)};let dt=b,nt=w;k&&dt==="input"&&(te?nt=P({type:void 0,minRows:te,maxRows:te},nt):nt=P({type:void 0,maxRows:E,minRows:A},nt),dt=uj);const Lt=q=>{he(q.animationName==="mui-auto-fill-cancel"?ce.current:{value:"x"})};p.useEffect(()=>{me&&me.setAdornedStart(Boolean(z))},[me,z]);const xt=P({},o,{color:Ve.color||"primary",disabled:Ve.disabled,endAdornment:y,error:Ve.error,focused:Ve.focused,formControl:me,fullWidth:g,hiddenLabel:Ve.hiddenLabel,multiline:k,size:Ve.size,startAdornment:z,type:R}),pe=TW(xt),Te=W.root||u.Root||Zg,Ye=Z.root||d.root||{},Ne=W.input||u.Input||ev;return nt=P({},nt,(r=Z.input)!=null?r:d.input),T(p.Fragment,{children:[!m&&kW,T(Te,P({},Ye,!Ha(Te)&&{ownerState:P({},xt,Ye.ownerState)},{ref:n,onClick:Rt},ee,{className:ve(pe.root,Ye.className,c),children:[z,s(Xg.Provider,{value:null,children:s(Ne,P({ownerState:xt,"aria-invalid":Ve.error,"aria-describedby":a,autoComplete:i,autoFocus:l,defaultValue:f,disabled:Ve.disabled,id:v,onAnimationStart:Lt,name:_,placeholder:U,readOnly:Y,required:Ve.required,rows:te,value:re,onKeyDown:D,onKeyUp:F,type:R},nt,!Ha(Ne)&&{as:dt,ownerState:P({},xt,nt.ownerState)},{ref:xe,className:ve(pe.input,nt.className),onBlur:qe,onChange:lt,onFocus:Et}))}),y,V?V(P({},Ve,{startAdornment:z})):null]}))]})}),tv=AW;function _W(e){return ze("MuiInput",e)}const RW=P({},xo,je("MuiInput",["root","underline","input"])),Hi=RW;function PW(e){return ze("MuiOutlinedInput",e)}const IW=P({},xo,je("MuiOutlinedInput",["root","notchedOutline","input"])),Aa=IW;function $W(e){return ze("MuiFilledInput",e)}const OW=P({},xo,je("MuiFilledInput",["root","underline","input"])),Co=OW,D$=Ke(s("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function LW(e){return ze("MuiAutocomplete",e)}const MW=je("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"]),Wt=MW;var ck,uk;const NW=["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"],DW=e=>{const{classes:t,disablePortal:n,focused:r,fullWidth:o,hasClearIcon:a,hasPopupIcon:i,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"focused",o&&"fullWidth",a&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ie(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 We(d,LW,t)},BW=C("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:l}=n;return[{[`& .${Wt.tag}`]:t.tag},{[`& .${Wt.tag}`]:t[`tagSize${ie(l)}`]},{[`& .${Wt.inputRoot}`]:t.inputRoot},{[`& .${Wt.input}`]:t.input},{[`& .${Wt.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>P({[`&.${Wt.focused} .${Wt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Wt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Wt.tag}`]:P({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Wt.inputRoot}`]:{flexWrap:"wrap",[`.${Wt.hasPopupIcon}&, .${Wt.hasClearIcon}&`]:{paddingRight:26+4},[`.${Wt.hasPopupIcon}.${Wt.hasClearIcon}&`]:{paddingRight:52+4},[`& .${Wt.input}`]:{width:0,minWidth:30}},[`& .${Hi.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Hi.root}.${xo.sizeSmall}`]:{[`& .${Hi.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Aa.root}`]:{padding:9,[`.${Wt.hasPopupIcon}&, .${Wt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Wt.hasPopupIcon}.${Wt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Wt.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${Wt.endAdornment}`]:{right:9}},[`& .${Aa.root}.${xo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Wt.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${Co.root}`]:{paddingTop:19,paddingLeft:8,[`.${Wt.hasPopupIcon}&, .${Wt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Wt.hasPopupIcon}.${Wt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Co.input}`]:{padding:"7px 4px"},[`& .${Wt.endAdornment}`]:{right:9}},[`& .${Co.root}.${xo.sizeSmall}`]:{paddingBottom:1,[`& .${Co.input}`]:{padding:"2.5px 4px"}},[`& .${xo.hiddenLabel}`]:{paddingTop:8},[`& .${Co.root}.${xo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Wt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Co.root}.${xo.hiddenLabel}.${xo.sizeSmall}`]:{[`& .${Wt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Wt.input}`]:P({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),FW=C("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),zW=C(en,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),jW=C(en,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>P({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>P({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),UW=C(Yg,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Wt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>P({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),WW=C(Ar,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>P({},e.typography.body1,{overflow:"auto"})),HW=C("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),VW=C("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),GW=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",[`& .${Wt.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"},[`&.${Wt.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"},[`&.${Wt.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})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Wt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$t(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Wt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$t(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),qW=C(dW,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),KW=C("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Wt.option}`]:{paddingLeft:24}}),YW=p.forwardRef(function(t,n){var r,o,a,i;const l=He({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:u=!1,autoSelect:d=!1,blurOnSelect:f=!1,ChipProps:h,className:m,clearIcon:y=ck||(ck=s(M$,{fontSize:"small"})),clearOnBlur:g=!l.freeSolo,clearOnEscape:v=!1,clearText:b="Clear",closeText:w="Close",componentsProps:x={},defaultValue:E=l.multiple?[]:null,disableClearable:A=!1,disableCloseOnSelect:k=!1,disabled:_=!1,disabledItemsFocusable:O=!1,disableListWrap:L=!1,disablePortal:I=!1,filterSelectedOptions:$=!1,forcePopupIcon:D="auto",freeSolo:F=!1,fullWidth:U=!1,getLimitTagsText:Y=Dt=>`+${Dt}`,getOptionLabel:V=Dt=>{var Gt;return(Gt=Dt.label)!=null?Gt:Dt},groupBy:te,handleHomeEndKeys:Z=!l.freeSolo,includeInputInList:W=!1,limitTags:z=-1,ListboxComponent:R="ul",ListboxProps:N,loading:ee=!1,loadingText:re="Loading…",multiple:Se=!1,noOptionsText:ce="No options",openOnFocus:Ce=!1,openText:xe="Open",PaperComponent:Ee=Ar,PopperComponent:et=Yg,popupIcon:me=uk||(uk=s(D$,{})),readOnly:Ve=!1,renderGroup:Ge,renderInput:De,renderOption:he,renderTags:Et,selectOnFocus:qe=!l.freeSolo,size:lt="medium",slotProps:Rt={}}=l,dt=$e(l,NW),{getRootProps:nt,getInputProps:Lt,getInputLabelProps:xt,getPopupIndicatorProps:pe,getClearProps:Te,getTagProps:Ye,getListboxProps:Ne,getOptionProps:q,value:K,dirty:se,id:ye,popupOpen:Ae,focused:mt,focusedTag:Ze,anchorEl:ht,setAnchorEl:Kt,inputValue:Mn,groupedOptions:pt}=f8(P({},l,{componentName:"Autocomplete"})),un=!A&&!_&&se&&!Ve,Vt=(!F||D===!0)&&D!==!1,Qt=P({},l,{disablePortal:I,focused:mt,fullWidth:U,hasClearIcon:un,hasPopupIcon:Vt,inputFocused:Ze===-1,popupOpen:Ae,size:lt}),Bt=DW(Qt);let Wn;if(Se&&K.length>0){const Dt=Gt=>P({className:Bt.tag,disabled:_},Ye(Gt));Et?Wn=Et(K,Dt,Qt):Wn=K.map((Gt,zn)=>s(To,P({label:V(Gt),size:lt},Dt({index:zn}),h)))}if(z>-1&&Array.isArray(Wn)){const Dt=Wn.length-z;!mt&&Dt>0&&(Wn=Wn.splice(0,z),Wn.push(s("span",{className:Bt.tag,children:Y(Dt)},Wn.length)))}const to=Ge||(Dt=>T("li",{children:[s(qW,{className:Bt.groupLabel,ownerState:Qt,component:"div",children:Dt.group}),s(KW,{className:Bt.groupUl,ownerState:Qt,children:Dt.children})]},Dt.key)),bo=he||((Dt,Gt)=>s("li",P({},Dt,{children:V(Gt)}))),Rr=(Dt,Gt)=>{const zn=q({option:Dt,index:Gt});return bo(P({},zn,{className:Bt.option}),Dt,{selected:zn["aria-selected"],index:Gt,inputValue:Mn})},no=(r=Rt.clearIndicator)!=null?r:x.clearIndicator,Xn=(o=Rt.paper)!=null?o:x.paper,ro=(a=Rt.popper)!=null?a:x.popper,yr=(i=Rt.popupIndicator)!=null?i:x.popupIndicator;return T(p.Fragment,{children:[s(BW,P({ref:n,className:ve(Bt.root,m),ownerState:Qt},nt(dt),{children:De({id:ye,disabled:_,fullWidth:!0,size:lt==="small"?"small":void 0,InputLabelProps:xt(),InputProps:P({ref:Kt,className:Bt.inputRoot,startAdornment:Wn},(un||Vt)&&{endAdornment:T(FW,{className:Bt.endAdornment,ownerState:Qt,children:[un?s(zW,P({},Te(),{"aria-label":b,title:b,ownerState:Qt},no,{className:ve(Bt.clearIndicator,no==null?void 0:no.className),children:y})):null,Vt?s(jW,P({},pe(),{disabled:_,"aria-label":Ae?w:xe,title:Ae?w:xe,ownerState:Qt},yr,{className:ve(Bt.popupIndicator,yr==null?void 0:yr.className),children:me})):null]})}),inputProps:P({className:Bt.input,disabled:_,readOnly:Ve},Lt())})})),ht?s(UW,P({as:et,disablePortal:I,style:{width:ht?ht.clientWidth:null},ownerState:Qt,role:"presentation",anchorEl:ht,open:Ae},ro,{className:ve(Bt.popper,ro==null?void 0:ro.className),children:T(WW,P({ownerState:Qt,as:Ee},Xn,{className:ve(Bt.paper,Xn==null?void 0:Xn.className),children:[ee&&pt.length===0?s(HW,{className:Bt.loading,ownerState:Qt,children:re}):null,pt.length===0&&!F&&!ee?s(VW,{className:Bt.noOptions,ownerState:Qt,role:"presentation",onMouseDown:Dt=>{Dt.preventDefault()},children:ce}):null,pt.length>0?s(GW,P({as:R,className:Bt.listbox,ownerState:Qt},Ne(),N,{children:pt.map((Dt,Gt)=>te?to({key:Dt.key,group:Dt.group,children:Dt.options.map((zn,ur)=>Rr(zn,Dt.index+ur))}):Rr(Dt,Gt))})):null]}))})):null]})}),nv=YW,XW=Ke(s("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 JW(e){return ze("MuiAvatar",e)}je("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const QW=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],ZW=e=>{const{classes:t,variant:n,colorDefault:r}=e;return We({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},JW,t)},eH=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})=>P({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&&P({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]}))),tH=C("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),nH=C(XW,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function rH({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=p.useState(!1);return p.useEffect(()=>{if(!n&&!r)return;a(!1);let i=!0;const l=new Image;return l.onload=()=>{i&&a("loaded")},l.onerror=()=>{i&&a("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{i=!1}},[e,t,n,r]),o}const oH=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:l="div",imgProps:c,sizes:u,src:d,srcSet:f,variant:h="circular"}=r,m=$e(r,QW);let y=null;const g=rH(P({},c,{src:d,srcSet:f})),v=d||f,b=v&&g!=="error",w=P({},r,{colorDefault:!b,component:l,variant:h}),x=ZW(w);return b?y=s(tH,P({alt:o,src:d,srcSet:f,sizes:u,ownerState:w,className:x.img},c)):a!=null?y=a:v&&o?y=o[0]:y=s(nH,{className:x.fallback}),s(eH,P({as:l,ownerState:w,className:ve(x.root,i),ref:n},m,{children:y}))}),rv=oH,aH=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],iH={entering:{opacity:1},entered:{opacity:1}},sH=p.forwardRef(function(t,n){const r=cn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:h,onExit:m,onExited:y,onExiting:g,style:v,timeout:b=o,TransitionComponent:w=qg}=t,x=$e(t,aH),E=p.useRef(null),A=wn(E,l.ref,n),k=U=>Y=>{if(U){const V=E.current;Y===void 0?U(V):U(V,Y)}},_=k(h),O=k((U,Y)=>{YS(U);const V=gs({style:v,timeout:b,easing:c},{mode:"enter"});U.style.webkitTransition=r.transitions.create("opacity",V),U.style.transition=r.transitions.create("opacity",V),d&&d(U,Y)}),L=k(f),I=k(g),$=k(U=>{const Y=gs({style:v,timeout:b,easing:c},{mode:"exit"});U.style.webkitTransition=r.transitions.create("opacity",Y),U.style.transition=r.transitions.create("opacity",Y),m&&m(U)}),D=k(y);return s(w,P({appear:i,in:u,nodeRef:E,onEnter:O,onEntered:L,onEntering:_,onExit:$,onExited:D,onExiting:I,addEndListener:U=>{a&&a(E.current,U)},timeout:b},x,{children:(U,Y)=>p.cloneElement(l,P({style:P({opacity:0,visibility:U==="exited"&&!u?"hidden":void 0},iH[U],v,l.props.style),ref:A},Y))}))}),ex=sH;function lH(e){return ze("MuiBackdrop",e)}je("MuiBackdrop",["root","invisible"]);const cH=["children","component","components","componentsProps","className","invisible","open","slotProps","slots","transitionDuration","TransitionComponent"],uH=e=>{const{classes:t,invisible:n}=e;return We({root:["root",n&&"invisible"]},lH,t)},dH=C("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>P({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"})),pH=p.forwardRef(function(t,n){var r,o,a;const i=He({props:t,name:"MuiBackdrop"}),{children:l,component:c="div",components:u={},componentsProps:d={},className:f,invisible:h=!1,open:m,slotProps:y={},slots:g={},transitionDuration:v,TransitionComponent:b=ex}=i,w=$e(i,cH),x=P({},i,{component:c,invisible:h}),E=uH(x),A=(r=y.root)!=null?r:d.root;return s(b,P({in:m,timeout:v},w,{children:s(dH,P({"aria-hidden":!0},A,{as:(o=(a=g.root)!=null?a:u.Root)!=null?o:c,className:ve(E.root,f,A==null?void 0:A.className),ownerState:P({},x,A==null?void 0:A.ownerState),classes:E,ref:n,children:l}))}))}),tx=pH,fH=e=>!e||!Ha(e),hH=fH,mH=Hg(),gH=d7({defaultTheme:mH,defaultClassName:"MuiBox-root",generateClassName:wS.generate}),Je=gH,vH=Ke(s("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"),yH=C(Sa)(({theme:e})=>P({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":P({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":P({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:kT(e.palette.grey[200],.12)}:{backgroundColor:kT(e.palette.grey[600],.12)})})),bH=C(vH)({width:24,height:16});function wH(e){const t=e;return s("li",{children:s(yH,P({focusRipple:!0},e,{ownerState:t,children:s(bH,{ownerState:t})}))})}function SH(e){return ze("MuiBreadcrumbs",e)}const xH=je("MuiBreadcrumbs",["root","ol","li","separator"]),CH=xH,EH=["children","className","component","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],TH=e=>{const{classes:t}=e;return We({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},SH,t)},kH=C(we,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${CH.li}`]:t.li},t.root]})({}),AH=C("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),_H=C("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function RH(e,t,n,r){return e.reduce((o,a,i)=>(i<e.length-1?o=o.concat(a,s(_H,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${i}`)):o.push(a),o),[])}const PH=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiBreadcrumbs"}),{children:o,className:a,component:i="nav",expandText:l="Show path",itemsAfterCollapse:c=1,itemsBeforeCollapse:u=1,maxItems:d=8,separator:f="/"}=r,h=$e(r,EH),[m,y]=p.useState(!1),g=P({},r,{component:i,expanded:m,expandText:l,itemsAfterCollapse:c,itemsBeforeCollapse:u,maxItems:d,separator:f}),v=TH(g),b=p.useRef(null),w=E=>{const A=()=>{y(!0);const k=b.current.querySelector("a[href],button,[tabindex]");k&&k.focus()};return u+c>=E.length?E:[...E.slice(0,u),s(wH,{"aria-label":l,onClick:A},"ellipsis"),...E.slice(E.length-c,E.length)]},x=p.Children.toArray(o).filter(E=>p.isValidElement(E)).map((E,A)=>s("li",{className:v.li,children:E},`child-${A}`));return s(kH,P({ref:n,component:i,color:"text.secondary",className:ve(v.root,a),ownerState:g},h,{children:s(AH,{className:v.ol,ref:b,ownerState:g,children:RH(m||d&&x.length<=d?x:w(x),v.separator,f,g)})}))}),IH=PH;function $H(e){return ze("MuiButton",e)}const OH=je("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"]),Uf=OH,LH=p.createContext({}),MH=LH,NH=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],DH=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,l={root:["root",a,`${a}${ie(t)}`,`size${ie(o)}`,`${a}Size${ie(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ie(o)}`],endIcon:["endIcon",`iconSize${ie(o)}`]},c=We(l,$H,i);return P({},i,c)},B$=e=>P({},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}}),BH=C(Sa,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ie(n.color)}`],t[`size${ie(n.size)}`],t[`${n.variant}Size${ie(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;return P({},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":P({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:$t(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})`:$t(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})`:$t(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":P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Uf.focusVisible}`]:P({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Uf.disabled}`]:P({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 ${$t(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"},[`&.${Uf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Uf.disabled}`]:{boxShadow:"none"}}),FH=C("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ie(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},B$(e))),zH=C("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ie(n.size)}`]]}})(({ownerState:e})=>P({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},B$(e))),jH=p.forwardRef(function(t,n){const r=p.useContext(MH),o=bS(r,t),a=He({props:o,name:"MuiButton"}),{children:i,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:y,fullWidth:g=!1,size:v="medium",startIcon:b,type:w,variant:x="text"}=a,E=$e(a,NH),A=P({},a,{color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:h,fullWidth:g,size:v,type:w,variant:x}),k=DH(A),_=b&&s(FH,{className:k.startIcon,ownerState:A,children:b}),O=m&&s(zH,{className:k.endIcon,ownerState:A,children:m});return T(BH,P({ownerState:A,className:ve(r.className,k.root,u),component:c,disabled:d,focusRipple:!h,focusVisibleClassName:ve(k.focusVisible,y),ref:n,type:w},E,{classes:k,children:[_,i,O]}))}),rt=jH;function UH(e){return ze("MuiCard",e)}je("MuiCard",["root"]);const WH=["className","raised"],HH=e=>{const{classes:t}=e;return We({root:["root"]},UH,t)},VH=C(Ar,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),GH=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=r,i=$e(r,WH),l=P({},r,{raised:a}),c=HH(l);return s(VH,P({className:ve(c.root,o),elevation:a?8:void 0,ref:n,ownerState:l},i))}),F$=GH;function qH(e){return ze("MuiCardActions",e)}je("MuiCardActions",["root","spacing"]);const KH=["disableSpacing","className"],YH=e=>{const{classes:t,disableSpacing:n}=e;return We({root:["root",!n&&"spacing"]},qH,t)},XH=C("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>P({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),JH=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:a}=r,i=$e(r,KH),l=P({},r,{disableSpacing:o}),c=YH(l);return s(XH,P({className:ve(c.root,a),ownerState:l,ref:n},i))}),QH=JH;function ZH(e){return ze("PrivateSwitchBase",e)}je("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const eV=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],tV=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${ie(o)}`],input:["input"]};return We(a,ZH,t)},nV=C(Sa)(({ownerState:e})=>P({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),rV=C("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),oV=p.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,className:i,defaultChecked:l,disabled:c,disableFocusRipple:u=!1,edge:d=!1,icon:f,id:h,inputProps:m,inputRef:y,name:g,onBlur:v,onChange:b,onFocus:w,readOnly:x,required:E=!1,tabIndex:A,type:k,value:_}=t,O=$e(t,eV),[L,I]=ya({controlled:o,default:Boolean(l),name:"SwitchBase",state:"checked"}),$=ni(),D=W=>{w&&w(W),$&&$.onFocus&&$.onFocus(W)},F=W=>{v&&v(W),$&&$.onBlur&&$.onBlur(W)},U=W=>{if(W.nativeEvent.defaultPrevented)return;const z=W.target.checked;I(z),b&&b(W,z)};let Y=c;$&&typeof Y>"u"&&(Y=$.disabled);const V=k==="checkbox"||k==="radio",te=P({},t,{checked:L,disabled:Y,disableFocusRipple:u,edge:d}),Z=tV(te);return T(nV,P({component:"span",className:ve(Z.root,i),centerRipple:!0,focusRipple:!u,disabled:Y,tabIndex:null,role:void 0,onFocus:D,onBlur:F,ownerState:te,ref:n},O,{children:[s(rV,P({autoFocus:r,checked:o,defaultChecked:l,className:Z.input,disabled:Y,id:V&&h,name:g,onChange:U,readOnly:x,ref:y,required:E,ownerState:te,tabIndex:A,type:k},k==="checkbox"&&_===void 0?{}:{value:_},m)),L?a:f]}))}),nx=oV,aV=Ke(s("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"),iV=Ke(s("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"),sV=Ke(s("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 lV(e){return ze("MuiCheckbox",e)}const cV=je("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),a1=cV,uV=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],dV=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${ie(r)}`]},a=We(o,lV,t);return P({},t,a)},pV=C(nx,{shouldForwardProp:e=>No(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${ie(n.color)}`]]}})(({theme:e,ownerState:t})=>P({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})`:$t(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${a1.checked}, &.${a1.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${a1.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),fV=s(iV,{}),hV=s(aV,{}),mV=s(sV,{}),gV=p.forwardRef(function(t,n){var r,o;const a=He({props:t,name:"MuiCheckbox"}),{checkedIcon:i=fV,color:l="primary",icon:c=hV,indeterminate:u=!1,indeterminateIcon:d=mV,inputProps:f,size:h="medium",className:m}=a,y=$e(a,uV),g=u?d:c,v=u?d:i,b=P({},a,{color:l,indeterminate:u,size:h}),w=dV(b);return s(pV,P({type:"checkbox",inputProps:P({"data-indeterminate":u},f),icon:p.cloneElement(g,{fontSize:(r=g.props.fontSize)!=null?r:h}),checkedIcon:p.cloneElement(v,{fontSize:(o=v.props.fontSize)!=null?o:h}),ownerState:b,ref:n,className:ve(w.root,m)},y,{classes:w}))}),ks=gV;function vV(e){return ze("MuiCircularProgress",e)}je("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const yV=["className","color","disableShrink","size","style","thickness","value","variant"];let ov=e=>e,dk,pk,fk,hk;const Fi=44,bV=Cs(dk||(dk=ov`
165
- 0% {
166
- transform: rotate(0deg);
167
- }
168
-
169
- 100% {
170
- transform: rotate(360deg);
171
- }
172
- `)),wV=Cs(pk||(pk=ov`
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
- `)),SV=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${ie(r)}`],svg:["svg"],circle:["circle",`circle${ie(n)}`,o&&"circleDisableShrink"]};return We(a,vV,t)},xV=C("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ie(n.color)}`]]}})(({ownerState:e,theme:t})=>P({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"&&nu(fk||(fk=ov`
188
- animation: ${0} 1.4s linear infinite;
189
- `),bV)),CV=C("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),EV=C("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ie(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>P({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&&nu(hk||(hk=ov`
190
- animation: ${0} 1.4s ease-in-out infinite;
191
- `),wV)),TV=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:l=40,style:c,thickness:u=3.6,value:d=0,variant:f="indeterminate"}=r,h=$e(r,yV),m=P({},r,{color:a,disableShrink:i,size:l,thickness:u,value:d,variant:f}),y=SV(m),g={},v={},b={};if(f==="determinate"){const w=2*Math.PI*((Fi-u)/2);g.strokeDasharray=w.toFixed(3),b["aria-valuenow"]=Math.round(d),g.strokeDashoffset=`${((100-d)/100*w).toFixed(3)}px`,v.transform="rotate(-90deg)"}return s(xV,P({className:ve(y.root,o),style:P({width:l,height:l},v,c),ownerState:m,ref:n,role:"progressbar"},b,h,{children:s(CV,{className:y.svg,ownerState:m,viewBox:`${Fi/2} ${Fi/2} ${Fi} ${Fi}`,children:s(EV,{className:y.circle,style:g,ownerState:m,cx:Fi,cy:Fi,r:(Fi-u)/2,fill:"none",strokeWidth:u})})}))}),kV=TV,AV=O7({createStyledComponent:C("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ie(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>He({props:e,name:"MuiContainer"})}),_V=AV,RV=(e,t)=>P({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),PV=e=>P({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}}),IV=(e,t=!1)=>{var n,r;const o={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([l,c])=>{var u;o[e.getColorSchemeSelector(l).replace(/\s*&/,"")]={colorScheme:(u=c.palette)==null?void 0:u.mode}});let a=P({html:RV(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:P({margin:0},PV(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},o);const i=(n=e.components)==null||(r=n.MuiCssBaseline)==null?void 0:r.styleOverrides;return i&&(a=[a,i]),a};function $V(e){const t=He({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return T(p.Fragment,{children:[s(N$,{styles:o=>IV(o,r)}),n]})}const OV=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],LV=e=>e.classes,MV=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})=>P({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),NV=C(tx,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),DV=p.forwardRef(function(t,n){var r,o,a,i,l,c;const u=He({name:"MuiModal",props:t}),{BackdropComponent:d=NV,BackdropProps:f,closeAfterTransition:h=!1,children:m,component:y,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:x=!1,disablePortal:E=!1,disableRestoreFocus:A=!1,disableScrollLock:k=!1,hideBackdrop:_=!1,keepMounted:O=!1,slotProps:L,slots:I,theme:$}=u,D=$e(u,OV),[F,U]=p.useState(!0),Y={closeAfterTransition:h,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:x,disablePortal:E,disableRestoreFocus:A,disableScrollLock:k,hideBackdrop:_,keepMounted:O},V=P({},u,Y,{exited:F}),te=LV(V),Z=(r=(o=I==null?void 0:I.root)!=null?o:g.Root)!=null?r:MV,W=(a=(i=I==null?void 0:I.backdrop)!=null?i:g.Backdrop)!=null?a:d,z=(l=L==null?void 0:L.root)!=null?l:v.root,R=(c=L==null?void 0:L.backdrop)!=null?c:v.backdrop;return s(Zz,P({slots:{root:Z,backdrop:W},slotProps:{root:()=>P({},db(z,V),!Ha(Z)&&{as:y,theme:$}),backdrop:()=>P({},f,db(R,V))},onTransitionEnter:()=>U(!1),onTransitionExited:()=>U(!0),ref:n},D,{classes:te},Y,{children:m}))}),Vp=DV;function BV(e){return ze("MuiDialog",e)}const FV=je("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),i1=FV,zV=p.createContext({}),z$=zV,jV=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],UV=C(tx,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),WV=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container",`scroll${ie(n)}`],paper:["paper",`paperScroll${ie(n)}`,`paperWidth${ie(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return We(i,BV,t)},HV=C(Vp,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),VV=C("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ie(n.scroll)}`]]}})(({ownerState:e})=>P({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"}})),GV=C(Ar,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ie(n.scroll)}`],t[`paperWidth${ie(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>P({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}`,[`&.${i1.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}`,[`&.${i1.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,[`&.${i1.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),qV=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialog"}),o=cn(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":l,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:h=!1,fullScreen:m=!1,fullWidth:y=!1,maxWidth:g="sm",onBackdropClick:v,onClose:b,open:w,PaperComponent:x=Ar,PaperProps:E={},scroll:A="paper",TransitionComponent:k=ex,transitionDuration:_=a,TransitionProps:O}=r,L=$e(r,jV),I=P({},r,{disableEscapeKeyDown:h,fullScreen:m,fullWidth:y,maxWidth:g,scroll:A}),$=WV(I),D=p.useRef(),F=te=>{D.current=te.target===te.currentTarget},U=te=>{D.current&&(D.current=null,v&&v(te),b&&b(te,"backdropClick"))},Y=eu(l),V=p.useMemo(()=>({titleId:Y}),[Y]);return s(HV,P({className:ve($.root,f),closeAfterTransition:!0,components:{Backdrop:UV},componentsProps:{backdrop:P({transitionDuration:_,as:c},u)},disableEscapeKeyDown:h,onClose:b,open:w,ref:n,onClick:U,ownerState:I},L,{children:s(k,P({appear:!0,in:w,timeout:_,role:"presentation"},O,{children:s(VV,{className:ve($.container),onMouseDown:F,ownerState:I,children:s(GV,P({as:x,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":Y},E,{className:ve($.paper,E.className),ownerState:I,children:s(z$.Provider,{value:V,children:d})}))})}))}))}),KV=qV;function YV(e){return ze("MuiDialogActions",e)}je("MuiDialogActions",["root","spacing"]);const XV=["className","disableSpacing"],JV=e=>{const{classes:t,disableSpacing:n}=e;return We({root:["root",!n&&"spacing"]},YV,t)},QV=C("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>P({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),ZV=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1}=r,i=$e(r,XV),l=P({},r,{disableSpacing:a}),c=JV(l);return s(QV,P({className:ve(c.root,o),ownerState:l,ref:n},i))}),eG=ZV;function tG(e){return ze("MuiDialogContent",e)}je("MuiDialogContent",["root","dividers"]);function nG(e){return ze("MuiDialogTitle",e)}const rG=je("MuiDialogTitle",["root"]),oG=rG,aG=["className","dividers"],iG=e=>{const{classes:t,dividers:n}=e;return We({root:["root",n&&"dividers"]},tG,t)},sG=C("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>P({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}`}:{[`.${oG.root} + &`]:{paddingTop:0}})),lG=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogContent"}),{className:o,dividers:a=!1}=r,i=$e(r,aG),l=P({},r,{dividers:a}),c=iG(l);return s(sG,P({className:ve(c.root,o),ownerState:l,ref:n},i))}),cG=lG,uG=["className","id"],dG=e=>{const{classes:t}=e;return We({root:["root"]},nG,t)},pG=C(we,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),fG=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDialogTitle"}),{className:o,id:a}=r,i=$e(r,uG),l=r,c=dG(l),{titleId:u=a}=p.useContext(z$);return s(pG,P({component:"h2",className:ve(c.root,o),ownerState:l,ref:n,variant:"h6",id:u},i))}),hG=fG;function mG(e){return ze("MuiDivider",e)}const gG=je("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),mk=gG,vG=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],yG=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:l,variant:c}=e;return We({root:["root",t&&"absolute",c,a&&"light",i==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",l==="right"&&i!=="vertical"&&"textAlignRight",l==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},mG,r)},bG=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})=>P({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)`:$t(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})=>P({},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})=>P({},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})=>P({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),wG=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})=>P({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)`})),SG=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:i,component:l=a?"div":"hr",flexItem:c=!1,light:u=!1,orientation:d="horizontal",role:f=l!=="hr"?"separator":void 0,textAlign:h="center",variant:m="fullWidth"}=r,y=$e(r,vG),g=P({},r,{absolute:o,component:l,flexItem:c,light:u,orientation:d,role:f,textAlign:h,variant:m}),v=yG(g);return s(bG,P({as:l,className:ve(v.root,i),role:f,ref:n,ownerState:g},y,{children:a?s(wG,{className:v.wrapper,ownerState:g,children:a}):null}))}),fo=SG,xG=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function CG(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),a=Qo(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const u=a.getComputedStyle(t);i=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let l=0,c=0;if(i&&i!=="none"&&typeof i=="string"){const u=i.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),c=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+l-r.left}px)`:`translateX(${a.innerWidth+l-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:e==="up"?o?`translateY(${o.bottom+c-r.top}px)`:`translateY(${a.innerHeight+c-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function EG(e){return typeof e=="function"?e():e}function Wf(e,t,n){const r=EG(n),o=CG(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const TG=p.forwardRef(function(t,n){const r=cn(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:c,container:u,direction:d="down",easing:f=o,in:h,onEnter:m,onEntered:y,onEntering:g,onExit:v,onExited:b,onExiting:w,style:x,timeout:E=a,TransitionComponent:A=qg}=t,k=$e(t,xG),_=p.useRef(null),O=wn(c.ref,_,n),L=Z=>W=>{Z&&(W===void 0?Z(_.current):Z(_.current,W))},I=L((Z,W)=>{Wf(d,Z,u),YS(Z),m&&m(Z,W)}),$=L((Z,W)=>{const z=gs({timeout:E,style:x,easing:f},{mode:"enter"});Z.style.webkitTransition=r.transitions.create("-webkit-transform",P({},z)),Z.style.transition=r.transitions.create("transform",P({},z)),Z.style.webkitTransform="none",Z.style.transform="none",g&&g(Z,W)}),D=L(y),F=L(w),U=L(Z=>{const W=gs({timeout:E,style:x,easing:f},{mode:"exit"});Z.style.webkitTransition=r.transitions.create("-webkit-transform",W),Z.style.transition=r.transitions.create("transform",W),Wf(d,Z,u),v&&v(Z)}),Y=L(Z=>{Z.style.webkitTransition="",Z.style.transition="",b&&b(Z)}),V=Z=>{i&&i(_.current,Z)},te=p.useCallback(()=>{_.current&&Wf(d,_.current,u)},[d,u]);return p.useEffect(()=>{if(h||d==="down"||d==="right")return;const Z=fl(()=>{_.current&&Wf(d,_.current,u)}),W=Qo(_.current);return W.addEventListener("resize",Z),()=>{Z.clear(),W.removeEventListener("resize",Z)}},[d,h,u]),p.useEffect(()=>{h||te()},[h,te]),s(A,P({nodeRef:_,onEnter:I,onEntered:D,onEntering:$,onExit:U,onExited:Y,onExiting:F,addEndListener:V,appear:l,in:h,timeout:E},k,{children:(Z,W)=>p.cloneElement(c,P({ref:O,style:P({visibility:Z==="exited"&&!h?"hidden":void 0},x,c.props.style)},W))}))}),kG=TG;function AG(e){return ze("MuiDrawer",e)}je("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const _G=["BackdropProps"],RG=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],j$=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},PG=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ie(n)}`,r!=="temporary"&&`paperAnchorDocked${ie(n)}`]};return We(o,AG,t)},IG=C(Vp,{name:"MuiDrawer",slot:"Root",overridesResolver:j$})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),gk=C("div",{shouldForwardProp:No,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:j$})({flex:"0 0 auto"}),$G=C(Ar,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ie(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ie(n.anchor)}`]]}})(({theme:e,ownerState:t})=>P({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}`})),U$={left:"right",right:"left",top:"down",bottom:"up"};function OG(e){return["left","right"].indexOf(e)!==-1}function LG(e,t){return e.direction==="rtl"&&OG(t)?U$[t]:t}const MG=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiDrawer"}),o=cn(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:i="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:h}={},onClose:m,open:y=!1,PaperProps:g={},SlideProps:v,TransitionComponent:b=kG,transitionDuration:w=a,variant:x="temporary"}=r,E=$e(r.ModalProps,_G),A=$e(r,RG),k=p.useRef(!1);p.useEffect(()=>{k.current=!0},[]);const _=LG(o,i),L=P({},r,{anchor:i,elevation:d,open:y,variant:x},A),I=PG(L),$=s($G,P({elevation:x==="temporary"?d:0,square:!0},g,{className:ve(I.paper,g.className),ownerState:L,children:c}));if(x==="permanent")return s(gk,P({className:ve(I.root,I.docked,u),ownerState:L,ref:n},A,{children:$}));const D=s(b,P({in:y,direction:U$[_],timeout:w,appear:k.current},v,{children:$}));return x==="persistent"?s(gk,P({className:ve(I.root,I.docked,u),ownerState:L,ref:n},A,{children:D})):s(IG,P({BackdropProps:P({},l,h,{transitionDuration:w}),className:ve(I.root,I.modal,u),open:y,ownerState:L,onClose:m,hideBackdrop:f,ref:n},A,E,{children:D}))}),NG=MG,DG=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],BG=e=>{const{classes:t,disableUnderline:n}=e,o=We({root:["root",!n&&"underline"],input:["input"]},$W,t);return P({},t,o)},FG=C(Zg,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Jg(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)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return P({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Co.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Co.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!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"},[`&.${Co.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Co.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(.${Co.disabled}, .${Co.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Co.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&P({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),zG=C(ev,{name:"MuiFilledInput",slot:"Input",overridesResolver:Qg})(({theme:e,ownerState:t})=>P({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})),W$=p.forwardRef(function(t,n){var r,o,a,i;const l=He({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:f="input",multiline:h=!1,slotProps:m,slots:y={},type:g="text"}=l,v=$e(l,DG),b=P({},l,{fullWidth:d,inputComponent:f,multiline:h,type:g}),w=BG(l),x={root:{ownerState:b},input:{ownerState:b}},E=m??u?Ro(m??u,x):x,A=(r=(o=y.root)!=null?o:c.Root)!=null?r:FG,k=(a=(i=y.input)!=null?i:c.Input)!=null?a:zG;return s(tv,P({slots:{root:A,input:k},componentsProps:E,fullWidth:d,inputComponent:f,multiline:h,ref:n,type:g},v,{classes:w}))});W$.muiName="Input";const H$=W$;function jG(e){return ze("MuiFormControl",e)}je("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const UG=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],WG=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ie(n)}`,r&&"fullWidth"]};return We(o,jG,t)},HG=C("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,t[`margin${ie(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>P({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%"})),VG=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:h=!1,margin:m="none",required:y=!1,size:g="medium",variant:v="outlined"}=r,b=$e(r,UG),w=P({},r,{color:i,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:h,margin:m,required:y,size:g,variant:v}),x=WG(w),[E,A]=p.useState(()=>{let F=!1;return o&&p.Children.forEach(o,U=>{if(!Ad(U,["Input","Select"]))return;const Y=Ad(U,["Select"])?U.props.input:U;Y&&SW(Y.props)&&(F=!0)}),F}),[k,_]=p.useState(()=>{let F=!1;return o&&p.Children.forEach(o,U=>{Ad(U,["Input","Select"])&&ZS(U.props,!0)&&(F=!0)}),F}),[O,L]=p.useState(!1);c&&O&&L(!1);const I=d!==void 0&&!c?d:O;let $;const D=p.useMemo(()=>({adornedStart:E,setAdornedStart:A,color:i,disabled:c,error:u,filled:k,focused:I,fullWidth:f,hiddenLabel:h,size:g,onBlur:()=>{L(!1)},onEmpty:()=>{_(!1)},onFilled:()=>{_(!0)},onFocus:()=>{L(!0)},registerEffect:$,required:y,variant:v}),[E,i,c,u,k,I,f,h,$,y,g,v]);return s(Xg.Provider,{value:D,children:s(HG,P({as:l,ownerState:w,className:ve(x.root,a),ref:n},b,{children:o}))})}),Ri=VG;function GG(e){return ze("MuiFormControlLabel",e)}const qG=je("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),Hf=qG,KG=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],YG=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o}=e,a={root:["root",n&&"disabled",`labelPlacement${ie(r)}`,o&&"error"],label:["label",n&&"disabled"]};return We(a,GG,t)},XG=C("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hf.label}`]:t.label},t.root,t[`labelPlacement${ie(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>P({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Hf.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},{[`& .${Hf.label}`]:{[`&.${Hf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),JG=p.forwardRef(function(t,n){var r;const o=He({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:i={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:f="end",slotProps:h={}}=o,m=$e(o,KG),y=ni();let g=c;typeof g>"u"&&typeof l.props.disabled<"u"&&(g=l.props.disabled),typeof g>"u"&&y&&(g=y.disabled);const v={disabled:g};["checked","name","onChange","value","inputRef"].forEach(k=>{typeof l.props[k]>"u"&&typeof o[k]<"u"&&(v[k]=o[k])});const b=Ts({props:o,muiFormControl:y,states:["error"]}),w=P({},o,{disabled:g,labelPlacement:f,error:b.error}),x=YG(w),E=(r=h.typography)!=null?r:i.typography;let A=d;return A!=null&&A.type!==we&&!u&&(A=s(we,P({component:"span"},E,{className:ve(x.label,E==null?void 0:E.className),children:A}))),T(XG,P({className:ve(x.root,a),ownerState:w,ref:n},m,{children:[p.cloneElement(l,v),A]}))}),Cr=JG;function QG(e){return ze("MuiFormGroup",e)}je("MuiFormGroup",["root","row","error"]);const ZG=["className","row"],eq=e=>{const{classes:t,row:n,error:r}=e;return We({root:["root",n&&"row",r&&"error"]},QG,t)},tq=C("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>P({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),nq=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormGroup"}),{className:o,row:a=!1}=r,i=$e(r,ZG),l=ni(),c=Ts({props:r,muiFormControl:l,states:["error"]}),u=P({},r,{row:a,error:c.error}),d=eq(u);return s(tq,P({className:ve(d.root,o),ownerState:u,ref:n},i))}),rq=nq;function oq(e){return ze("MuiFormHelperText",e)}const aq=je("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),vk=aq;var yk;const iq=["children","className","component","disabled","error","filled","focused","margin","required","variant"],sq=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:l,required:c}=e,u={root:["root",o&&"disabled",a&&"error",r&&`size${ie(r)}`,n&&"contained",l&&"focused",i&&"filled",c&&"required"]};return We(u,oq,t)},lq=C("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ie(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${vk.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${vk.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),cq=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p"}=r,l=$e(r,iq),c=ni(),u=Ts({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),d=P({},r,{component:i,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}),f=sq(d);return s(lq,P({as:i,ownerState:d,className:ve(f.root,a),ref:n},l,{children:o===" "?yk||(yk=s("span",{className:"notranslate",children:"​"})):o}))}),uq=cq;function dq(e){return ze("MuiFormLabel",e)}const pq=je("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Od=pq,fq=["children","className","color","component","disabled","error","filled","focused","required"],hq=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:l}=e,c={root:["root",`color${ie(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return We(c,dq,t)},mq=C("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>P({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>P({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Od.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Od.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Od.error}`]:{color:(e.vars||e).palette.error.main}})),gq=C("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Od.error}`]:{color:(e.vars||e).palette.error.main}})),vq=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiFormLabel"}),{children:o,className:a,component:i="label"}=r,l=$e(r,fq),c=ni(),u=Ts({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),d=P({},r,{color:u.color||"primary",component:i,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=hq(d);return T(mq,P({as:i,ownerState:d,className:ve(f.root,a),ref:n},l,{children:[o,u.required&&T(gq,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),yq=vq,bq=p.createContext(),bk=bq;function wq(e){return ze("MuiGrid",e)}const Sq=[0,1,2,3,4,5,6,7,8,9,10],xq=["column-reverse","column","row-reverse","row"],Cq=["nowrap","wrap-reverse","wrap"],Wu=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],dp=je("MuiGrid",["root","container","item","zeroMinWidth",...Sq.map(e=>`spacing-xs-${e}`),...xq.map(e=>`direction-xs-${e}`),...Cq.map(e=>`wrap-xs-${e}`),...Wu.map(e=>`grid-xs-${e}`),...Wu.map(e=>`grid-sm-${e}`),...Wu.map(e=>`grid-md-${e}`),...Wu.map(e=>`grid-lg-${e}`),...Wu.map(e=>`grid-xl-${e}`)]),Eq=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function bc(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Tq({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Lg({values:t.columns,breakpoints:e.breakpoints.values}),l=typeof i=="object"?i[o]:i;if(l==null)return r;const c=`${Math.round(n/l*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const d=e.spacing(t.columnSpacing);if(d!=="0px"){const f=`calc(${c} + ${bc(d)})`;u={flexBasis:f,maxWidth:f}}}a=P({flexBasis:c,flexGrow:0,maxWidth:c},u)}return e.breakpoints.values[o]===0?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r},{})}function kq({theme:e,ownerState:t}){const n=Lg({values:t.direction,breakpoints:e.breakpoints.values});return Zo({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${dp.item}`]={maxWidth:"none"}),o})}function V$({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,a)=>e[o]-e[a]);return r.slice(0,r.indexOf(n))}function Aq({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const a=Lg({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=V$({breakpoints:e.breakpoints.values,values:a})),o=Zo({theme:e},a,(l,c)=>{var u;const d=e.spacing(l);return d!=="0px"?{marginTop:`-${bc(d)}`,[`& > .${dp.item}`]:{paddingTop:bc(d)}}:(u=i)!=null&&u.includes(c)?{}:{marginTop:0,[`& > .${dp.item}`]:{paddingTop:0}}})}return o}function _q({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const a=Lg({values:r,breakpoints:e.breakpoints.values});let i;typeof a=="object"&&(i=V$({breakpoints:e.breakpoints.values,values:a})),o=Zo({theme:e},a,(l,c)=>{var u;const d=e.spacing(l);return d!=="0px"?{width:`calc(100% + ${bc(d)})`,marginLeft:`-${bc(d)}`,[`& > .${dp.item}`]:{paddingLeft:bc(d)}}:(u=i)!=null&&u.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${dp.item}`]:{paddingLeft:0}}})}return o}function Rq(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 a=e[o];Number(a)>0&&r.push(n[`spacing-${o}-${String(a)}`])}),r}const Pq=C("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:l,zeroMinWidth:c,breakpoints:u}=n;let d=[];r&&(d=Rq(i,u,t));const f=[];return u.forEach(h=>{const m=n[h];m&&f.push(t[`grid-${h}-${String(m)}`])}),[t.root,r&&t.container,a&&t.item,c&&t.zeroMinWidth,...d,o!=="row"&&t[`direction-xs-${String(o)}`],l!=="wrap"&&t[`wrap-xs-${String(l)}`],...f]}})(({ownerState:e})=>P({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}),kq,Aq,_q,Tq);function Iq(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 a=`spacing-${r}-${String(o)}`;n.push(a)}}),n}const $q=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:l,breakpoints:c}=e;let u=[];n&&(u=Iq(a,c));const d=[];c.forEach(h=>{const m=e[h];m&&d.push(`grid-${h}-${String(m)}`)});const f={root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...d]};return We(f,wq,t)},Oq=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiGrid"}),{breakpoints:o}=cn(),a=LS(r),{className:i,columns:l,columnSpacing:c,component:u="div",container:d=!1,direction:f="row",item:h=!1,rowSpacing:m,spacing:y=0,wrap:g="wrap",zeroMinWidth:v=!1}=a,b=$e(a,Eq),w=m||y,x=c||y,E=p.useContext(bk),A=d?l||12:E,k={},_=P({},b);o.keys.forEach(I=>{b[I]!=null&&(k[I]=b[I],delete _[I])});const O=P({},a,{columns:A,container:d,direction:f,item:h,rowSpacing:w,columnSpacing:x,wrap:g,zeroMinWidth:v,spacing:y},k,{breakpoints:o.keys}),L=$q(O);return s(bk.Provider,{value:A,children:s(Pq,P({ownerState:O,className:ve(L.root,i),as:u,ref:n},_))})}),In=Oq,Lq=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function bb(e){return`scale(${e}, ${e**2})`}const Mq={entering:{opacity:1,transform:bb(1)},entered:{opacity:1,transform:"none"}},s1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),G$=p.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:h,onExiting:m,style:y,timeout:g="auto",TransitionComponent:v=qg}=t,b=$e(t,Lq),w=p.useRef(),x=p.useRef(),E=cn(),A=p.useRef(null),k=wn(A,a.ref,n),_=Y=>V=>{if(Y){const te=A.current;V===void 0?Y(te):Y(te,V)}},O=_(d),L=_((Y,V)=>{YS(Y);const{duration:te,delay:Z,easing:W}=gs({style:y,timeout:g,easing:i},{mode:"enter"});let z;g==="auto"?(z=E.transitions.getAutoHeightDuration(Y.clientHeight),x.current=z):z=te,Y.style.transition=[E.transitions.create("opacity",{duration:z,delay:Z}),E.transitions.create("transform",{duration:s1?z:z*.666,delay:Z,easing:W})].join(","),c&&c(Y,V)}),I=_(u),$=_(m),D=_(Y=>{const{duration:V,delay:te,easing:Z}=gs({style:y,timeout:g,easing:i},{mode:"exit"});let W;g==="auto"?(W=E.transitions.getAutoHeightDuration(Y.clientHeight),x.current=W):W=V,Y.style.transition=[E.transitions.create("opacity",{duration:W,delay:te}),E.transitions.create("transform",{duration:s1?W:W*.666,delay:s1?te:te||W*.333,easing:Z})].join(","),Y.style.opacity=0,Y.style.transform=bb(.75),f&&f(Y)}),F=_(h),U=Y=>{g==="auto"&&(w.current=setTimeout(Y,x.current||0)),r&&r(A.current,Y)};return p.useEffect(()=>()=>{clearTimeout(w.current)},[]),s(v,P({appear:o,in:l,nodeRef:A,onEnter:L,onEntered:I,onEntering:O,onExit:D,onExited:F,onExiting:$,addEndListener:U,timeout:g==="auto"?null:g},b,{children:(Y,V)=>p.cloneElement(a,P({style:P({opacity:0,transform:bb(.75),visibility:Y==="exited"&&!l?"hidden":void 0},Mq[Y],y,a.props.style),ref:k},V))}))});G$.muiSupportAuto=!0;const wb=G$;function Nq(e,t,n,r,o){const a=typeof window<"u"&&typeof window.matchMedia<"u",[i,l]=p.useState(()=>o&&a?n(e).matches:r?r(e).matches:t);return Io(()=>{let c=!0;if(!a)return;const u=n(e),d=()=>{c&&l(u.matches)};return d(),u.addListener(d),()=>{c=!1,u.removeListener(d)}},[e,n,a]),i}const q$=ll["useSyncExternalStore"];function Dq(e,t,n,r){const o=p.useCallback(()=>t,[t]),a=p.useMemo(()=>{if(r!==null){const{matches:u}=r(e);return()=>u}return o},[o,e,r]),[i,l]=p.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addListener(d),()=>{u.removeListener(d)})]},[o,n,e]);return q$(l,i,a)}function Tr(e,t={}){const n=MS(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:l}=v$({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(q$!==void 0?Dq:Nq)(c,o,a,i,l)}function Bq(e){return ze("MuiIcon",e)}je("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Fq=["baseClassName","className","color","component","fontSize"],zq=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ie(t)}`,`fontSize${ie(n)}`]};return We(o,Bq,r)},jq=C("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ie(n.color)}`],t[`fontSize${ie(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]})),K$=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiIcon"}),{baseClassName:o="material-icons",className:a,color:i="inherit",component:l="span",fontSize:c="medium"}=r,u=$e(r,Fq),d=P({},r,{baseClassName:o,color:i,component:l,fontSize:c}),f=zq(d);return s(jq,P({as:l,className:ve(o,"notranslate",f.root,a),ownerState:d,"aria-hidden":!0,ref:n},u))});K$.muiName="Icon";const rx=K$,Uq=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Wq=e=>{const{classes:t,disableUnderline:n}=e,o=We({root:["root",!n&&"underline"],input:["input"]},_W,t);return P({},t,o)},Hq=C(Zg,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Jg(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})`),P({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"},[`&.${Hi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Hi.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(.${Hi.disabled}, .${Hi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Hi.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Vq=C(ev,{name:"MuiInput",slot:"Input",overridesResolver:Qg})({}),Y$=p.forwardRef(function(t,n){var r,o,a,i;const l=He({props:t,name:"MuiInput"}),{disableUnderline:c,components:u={},componentsProps:d,fullWidth:f=!1,inputComponent:h="input",multiline:m=!1,slotProps:y,slots:g={},type:v="text"}=l,b=$e(l,Uq),w=Wq(l),E={root:{ownerState:{disableUnderline:c}}},A=y??d?Ro(y??d,E):E,k=(r=(o=g.root)!=null?o:u.Root)!=null?r:Hq,_=(a=(i=g.input)!=null?i:u.Input)!=null?a:Vq;return s(tv,P({slots:{root:k,input:_},slotProps:A,fullWidth:f,inputComponent:h,multiline:m,ref:n,type:v},b,{classes:w}))});Y$.muiName="Input";const X$=Y$;function Gq(e){return ze("MuiInputAdornment",e)}const qq=je("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),wk=qq;var Sk;const Kq=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Yq=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ie(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Xq=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${ie(o)}`,i,r&&"hiddenLabel",a&&`size${ie(a)}`]};return We(l,Gq,t)},Jq=C("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Yq})(({theme:e,ownerState:t})=>P({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${wk.positionStart}&:not(.${wk.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Qq=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d}=r,f=$e(r,Kq),h=ni()||{};let m=d;d&&h.variant,h&&!m&&(m=h.variant);const y=P({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:l,position:u,variant:m}),g=Xq(y);return s(Xg.Provider,{value:null,children:s(Jq,P({as:i,ownerState:y,className:ve(g.root,a),ref:n},f,{children:typeof o=="string"&&!c?s(we,{color:"text.secondary",children:o}):T(p.Fragment,{children:[u==="start"?Sk||(Sk=s("span",{className:"notranslate",children:"​"})):null,o]})}))})}),J$=Qq;function Zq(e){return ze("MuiInputLabel",e)}je("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const eK=["disableAnimation","margin","shrink","variant","className"],tK=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:l}=e,u=We({root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r==="small"&&"sizeSmall",i],asterisk:[l&&"asterisk"]},Zq,t);return P({},t,u)},nK=C(yq,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Od.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})=>P({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"&&P({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&&P({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"&&P({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)"}))),rK=p.forwardRef(function(t,n){const r=He({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:a,className:i}=r,l=$e(r,eK),c=ni();let u=a;typeof u>"u"&&c&&(u=c.filled||c.focused||c.adornedStart);const d=Ts({props:r,muiFormControl:c,states:["size","variant","required"]}),f=P({},r,{disableAnimation:o,formControl:c,shrink:u,size:d.size,variant:d.variant,required:d.required}),h=tK(f);return s(nK,P({"data-shrink":u,ownerState:f,ref:n,className:ve(h.root,i)},l,{classes:h}))}),Gp=rK;function oK(e){return ze("MuiLinearProgress",e)}je("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const aK=["className","color","value","valueBuffer","variant"];let ou=e=>e,xk,Ck,Ek,Tk,kk,Ak;const Sb=4,iK=Cs(xk||(xk=ou`
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
- `)),sK=Cs(Ck||(Ck=ou`
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
- `)),lK=Cs(Ek||(Ek=ou`
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
- `)),cK=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${ie(r)}`,n],dashed:["dashed",`dashedColor${ie(r)}`],bar1:["bar",`barColor${ie(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${ie(r)}`,n==="buffer"&&`color${ie(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return We(o,oK,t)},ox=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?ms(e.palette[t].main,.62):hs(e.palette[t].main,.5),uK=C("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ie(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>P({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:ox(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)"})),dK=C("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ie(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=ox(t,e.color);return P({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"})},nu(Tk||(Tk=ou`
237
- animation: ${0} 3s infinite linear;
238
- `),lK)),pK=C("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ie(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>P({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 .${Sb}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Sb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&nu(kk||(kk=ou`
239
- width: auto;
240
- animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
241
- `),iK)),fK=C("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ie(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>P({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:ox(t,e.color),transition:`transform .${Sb}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&nu(Ak||(Ak=ou`
242
- width: auto;
243
- animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
244
- `),sK)),hK=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:i,valueBuffer:l,variant:c="indeterminate"}=r,u=$e(r,aK),d=P({},r,{color:a,variant:c}),f=cK(d),h=cn(),m={},y={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&i!==void 0){m["aria-valuenow"]=Math.round(i),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let g=i-100;h.direction==="rtl"&&(g=-g),y.bar1.transform=`translateX(${g}%)`}if(c==="buffer"&&l!==void 0){let g=(l||0)-100;h.direction==="rtl"&&(g=-g),y.bar2.transform=`translateX(${g}%)`}return T(uK,P({className:ve(f.root,o),ownerState:d,role:"progressbar"},m,{ref:n},u,{children:[c==="buffer"?s(dK,{className:f.dashed,ownerState:d}):null,s(pK,{className:f.bar1,ownerState:d,style:y.bar1}),c==="determinate"?null:s(fK,{className:f.bar2,ownerState:d,style:y.bar2})]}))}),mK=hK;function gK(e){return ze("MuiLink",e)}const vK=je("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),yK=vK,Q$={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bK=e=>Q$[e]||e,wK=({theme:e,ownerState:t})=>{const n=bK(t.color),r=$c(e,`palette.${n}`,!1)||t.color,o=$c(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:$t(r,.4)},SK=wK,xK=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],CK=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,a={root:["root",`underline${ie(o)}`,n==="button"&&"button",r&&"focusVisible"]};return We(a,gK,t)},EK=C(we,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ie(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>P({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&P({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:SK({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"},[`&.${yK.focusVisible}`]:{outline:"auto"}})),TK=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiLink"}),{className:o,color:a="primary",component:i="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:f="inherit",sx:h}=r,m=$e(r,xK),{isFocusVisibleRef:y,onBlur:g,onFocus:v,ref:b}=Bp(),[w,x]=p.useState(!1),E=wn(n,b),A=L=>{g(L),y.current===!1&&x(!1),l&&l(L)},k=L=>{v(L),y.current===!0&&x(!0),c&&c(L)},_=P({},r,{color:a,component:i,focusVisible:w,underline:d,variant:f}),O=CK(_);return s(EK,P({color:a,className:ve(O.root,o),classes:u,component:i,onBlur:A,onFocus:k,ref:E,ownerState:_,variant:f,sx:[...Object.keys(Q$).includes(a)?[]:[{color:a}],...Array.isArray(h)?h:[h]]},m))}),ho=TK,kK=p.createContext({}),Ga=kK;function AK(e){return ze("MuiList",e)}je("MuiList",["root","padding","dense","subheader"]);const _K=["children","className","component","dense","disablePadding","subheader"],RK=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return We({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},AK,t)},PK=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})=>P({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),IK=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:l=!1,disablePadding:c=!1,subheader:u}=r,d=$e(r,_K),f=p.useMemo(()=>({dense:l}),[l]),h=P({},r,{component:i,dense:l,disablePadding:c}),m=RK(h);return s(Ga.Provider,{value:f,children:T(PK,P({as:i,className:ve(m.root,a),ref:n,ownerState:h},d,{children:[u,o]}))})}),qa=IK;function $K(e){return ze("MuiListItem",e)}const OK=je("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Xl=OK,LK=je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),MK=LK;function NK(e){return ze("MuiListItemSecondaryAction",e)}je("MuiListItemSecondaryAction",["root","disableGutters"]);const DK=["className"],BK=e=>{const{disableGutters:t,classes:n}=e;return We({root:["root",t&&"disableGutters"]},NK,n)},FK=C("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>P({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Z$=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,a=$e(r,DK),i=p.useContext(Ga),l=P({},r,{disableGutters:i.disableGutters}),c=BK(l);return s(FK,P({className:ve(c.root,o),ownerState:l,ref:n},a))});Z$.muiName="ListItemSecondaryAction";const zK=Z$,jK=["className"],UK=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],WK=(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]},HK=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:c,hasSecondaryAction:u,selected:d}=e;return We({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",c&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]},$K,r)},VK=C("div",{name:"MuiListItem",slot:"Root",overridesResolver:WK})(({theme:e,ownerState:t})=>P({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&P({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${MK.root}`]:{paddingRight:48}},{[`&.${Xl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xl.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Xl.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$t(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Xl.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"}},[`&.${Xl.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$t(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})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),GK=C("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),qK=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:l,className:c,component:u,components:d={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:m}={},dense:y=!1,disabled:g=!1,disableGutters:v=!1,disablePadding:b=!1,divider:w=!1,focusVisibleClassName:x,secondaryAction:E,selected:A=!1,slotProps:k={},slots:_={}}=r,O=$e(r.ContainerProps,jK),L=$e(r,UK),I=p.useContext(Ga),$=p.useMemo(()=>({dense:y||I.dense||!1,alignItems:o,disableGutters:v}),[o,I.dense,y,v]),D=p.useRef(null);Io(()=>{a&&D.current&&D.current.focus()},[a]);const F=p.Children.toArray(l),U=F.length&&Ad(F[F.length-1],["ListItemSecondaryAction"]),Y=P({},r,{alignItems:o,autoFocus:a,button:i,dense:$.dense,disabled:g,disableGutters:v,disablePadding:b,divider:w,hasSecondaryAction:U,selected:A}),V=HK(Y),te=wn(D,n),Z=_.root||d.Root||VK,W=k.root||f.root||{},z=P({className:ve(V.root,W.className,c),disabled:g},L);let R=u||"li";return i&&(z.component=u||"div",z.focusVisibleClassName=ve(Xl.focusVisible,x),R=Sa),U?(R=!z.component&&!u?"div":R,h==="li"&&(R==="li"?R="div":z.component==="li"&&(z.component="div")),s(Ga.Provider,{value:$,children:T(GK,P({as:h,className:ve(V.container,m),ref:te,ownerState:Y},O,{children:[s(Z,P({},W,!Ha(Z)&&{as:R,ownerState:P({},Y,W.ownerState)},z,{children:F})),F.pop()]}))})):s(Ga.Provider,{value:$,children:T(Z,P({},W,{as:R,ref:te},!Ha(Z)&&{ownerState:P({},Y,W.ownerState)},z,{children:[F,E&&s(zK,{children:E})]}))})}),Fa=qK;function KK(e){return ze("MuiListItemAvatar",e)}je("MuiListItemAvatar",["root","alignItemsFlexStart"]);const YK=["className"],XK=e=>{const{alignItems:t,classes:n}=e;return We({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},KK,n)},JK=C("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>P({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),QK=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItemAvatar"}),{className:o}=r,a=$e(r,YK),i=p.useContext(Ga),l=P({},r,{alignItems:i.alignItems}),c=XK(l);return s(JK,P({className:ve(c.root,o),ownerState:l,ref:n},a))}),Yi=QK;function ZK(e){return ze("MuiListItemIcon",e)}const eY=je("MuiListItemIcon",["root","alignItemsFlexStart"]),_k=eY,tY=["className"],nY=e=>{const{alignItems:t,classes:n}=e;return We({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},ZK,n)},rY=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})=>P({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),oY=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItemIcon"}),{className:o}=r,a=$e(r,tY),i=p.useContext(Ga),l=P({},r,{alignItems:i.alignItems}),c=nY(l);return s(rY,P({className:ve(c.root,o),ownerState:l,ref:n},a))}),Ih=oY;function aY(e){return ze("MuiListItemText",e)}const iY=je("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),xm=iY,sY=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],lY=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return We({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},aY,t)},cY=C("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xm.primary}`]:t.primary},{[`& .${xm.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>P({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),uY=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:l=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f}=r,h=$e(r,sY),{dense:m}=p.useContext(Ga);let y=c??o,g=d;const v=P({},r,{disableTypography:i,inset:l,primary:!!y,secondary:!!g,dense:m}),b=lY(v);return y!=null&&y.type!==we&&!i&&(y=s(we,P({variant:m?"body2":"body1",className:b.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:y}))),g!=null&&g.type!==we&&!i&&(g=s(we,P({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},f,{children:g}))),T(cY,P({className:ve(b.root,a),ownerState:v,ref:n},h,{children:[y,g]}))}),dn=uY,dY=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function l1(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Rk(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function e4(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 Hu(e,t,n,r,o,a){let i=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!e4(l,a)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const pY=p.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu"}=t,h=$e(t,dY),m=p.useRef(null),y=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Io(()=>{o&&m.current.focus()},[o]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,E)=>{const A=!m.current.style.width;if(x.clientHeight<m.current.clientHeight&&A){const k=`${j5(Bn(x))}px`;m.current.style[E.direction==="rtl"?"paddingLeft":"paddingRight"]=k,m.current.style.width=`calc(100% + ${k})`}return m.current}}),[]);const g=x=>{const E=m.current,A=x.key,k=Bn(E).activeElement;if(A==="ArrowDown")x.preventDefault(),Hu(E,k,u,c,l1);else if(A==="ArrowUp")x.preventDefault(),Hu(E,k,u,c,Rk);else if(A==="Home")x.preventDefault(),Hu(E,null,u,c,l1);else if(A==="End")x.preventDefault(),Hu(E,null,u,c,Rk);else if(A.length===1){const _=y.current,O=A.toLowerCase(),L=performance.now();_.keys.length>0&&(L-_.lastTime>500?(_.keys=[],_.repeating=!0,_.previousKeyMatched=!0):_.repeating&&O!==_.keys[0]&&(_.repeating=!1)),_.lastTime=L,_.keys.push(O);const I=k&&!_.repeating&&e4(k,_);_.previousKeyMatched&&(I||Hu(E,k,!1,c,l1,_))?x.preventDefault():_.previousKeyMatched=!1}d&&d(x)},v=wn(m,n);let b=-1;p.Children.forEach(i,(x,E)=>{p.isValidElement(x)&&(x.props.disabled||(f==="selectedMenu"&&x.props.selected||b===-1)&&(b=E))});const w=p.Children.map(i,(x,E)=>{if(E===b){const A={};return a&&(A.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(A.tabIndex=0),p.cloneElement(x,A)}return x});return s(qa,P({role:"menu",ref:v,className:l,onKeyDown:g,tabIndex:o?0:-1},h,{children:w}))}),t4=pY;function fY(e){return ze("MuiPopover",e)}je("MuiPopover",["root","paper"]);const hY=["onEntering"],mY=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function Pk(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Ik(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function $k(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function c1(e){return typeof e=="function"?e():e}const gY=e=>{const{classes:t}=e;return We({root:["root"],paper:["paper"]},fY,t)},vY=C(Vp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yY=C(Ar,{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}),bY=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:u,className:d,container:f,elevation:h=8,marginThreshold:m=16,open:y,PaperProps:g={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:b=wb,transitionDuration:w="auto",TransitionProps:{onEntering:x}={}}=r,E=$e(r.TransitionProps,hY),A=$e(r,mY),k=p.useRef(),_=wn(k,g.ref),O=P({},r,{anchorOrigin:i,anchorReference:c,elevation:h,marginThreshold:m,PaperProps:g,transformOrigin:v,TransitionComponent:b,transitionDuration:w,TransitionProps:E}),L=gY(O),I=p.useCallback(()=>{if(c==="anchorPosition")return l;const z=c1(a),N=(z&&z.nodeType===1?z:Bn(k.current).body).getBoundingClientRect();return{top:N.top+Pk(N,i.vertical),left:N.left+Ik(N,i.horizontal)}},[a,i.horizontal,i.vertical,l,c]),$=p.useCallback(z=>({vertical:Pk(z,v.vertical),horizontal:Ik(z,v.horizontal)}),[v.horizontal,v.vertical]),D=p.useCallback(z=>{const R={width:z.offsetWidth,height:z.offsetHeight},N=$(R);if(c==="none")return{top:null,left:null,transformOrigin:$k(N)};const ee=I();let re=ee.top-N.vertical,Se=ee.left-N.horizontal;const ce=re+R.height,Ce=Se+R.width,xe=Qo(c1(a)),Ee=xe.innerHeight-m,et=xe.innerWidth-m;if(re<m){const me=re-m;re-=me,N.vertical+=me}else if(ce>Ee){const me=ce-Ee;re-=me,N.vertical+=me}if(Se<m){const me=Se-m;Se-=me,N.horizontal+=me}else if(Ce>et){const me=Ce-et;Se-=me,N.horizontal+=me}return{top:`${Math.round(re)}px`,left:`${Math.round(Se)}px`,transformOrigin:$k(N)}},[a,c,I,$,m]),[F,U]=p.useState(y),Y=p.useCallback(()=>{const z=k.current;if(!z)return;const R=D(z);R.top!==null&&(z.style.top=R.top),R.left!==null&&(z.style.left=R.left),z.style.transformOrigin=R.transformOrigin,U(!0)},[D]),V=(z,R)=>{x&&x(z,R),Y()},te=()=>{U(!1)};p.useEffect(()=>{y&&Y()}),p.useImperativeHandle(o,()=>y?{updatePosition:()=>{Y()}}:null,[y,Y]),p.useEffect(()=>{if(!y)return;const z=fl(()=>{Y()}),R=Qo(a);return R.addEventListener("resize",z),()=>{z.clear(),R.removeEventListener("resize",z)}},[a,y,Y]);let Z=w;w==="auto"&&!b.muiSupportAuto&&(Z=void 0);const W=f||(a?Bn(c1(a)).body:void 0);return s(vY,P({BackdropProps:{invisible:!0},className:ve(L.root,d),container:W,open:y,ref:n,ownerState:O},A,{children:s(b,P({appear:!0,in:y,onEntering:V,onExited:te,timeout:Z},E,{children:s(yY,P({elevation:h},g,{ref:_,className:ve(L.paper,g.className)},F?void 0:{style:P({},g.style,{opacity:0})},{ownerState:O,children:u}))}))}))}),ax=bY;function wY(e){return ze("MuiMenu",e)}je("MuiMenu",["root","paper","list"]);const SY=["onEntering"],xY=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],CY={vertical:"top",horizontal:"right"},EY={vertical:"top",horizontal:"left"},TY=e=>{const{classes:t}=e;return We({root:["root"],paper:["paper"],list:["list"]},wY,t)},kY=C(ax,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AY=C(Ar,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),_Y=C(t4,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),RY=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,disableAutoFocusItem:i=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:y="selectedMenu"}=r,g=$e(r.TransitionProps,SY),v=$e(r,xY),b=cn(),w=b.direction==="rtl",x=P({},r,{autoFocus:o,disableAutoFocusItem:i,MenuListProps:l,onEntering:m,PaperProps:d,transitionDuration:h,TransitionProps:g,variant:y}),E=TY(x),A=o&&!i&&u,k=p.useRef(null),_=(I,$)=>{k.current&&k.current.adjustStyleForScrollbar(I,b),m&&m(I,$)},O=I=>{I.key==="Tab"&&(I.preventDefault(),c&&c(I,"tabKeyDown"))};let L=-1;return p.Children.map(a,(I,$)=>{p.isValidElement(I)&&(I.props.disabled||(y==="selectedMenu"&&I.props.selected||L===-1)&&(L=$))}),s(kY,P({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?CY:EY,PaperProps:P({component:AY},d,{classes:P({},d.classes,{root:E.paper})}),className:E.root,open:u,ref:n,transitionDuration:h,TransitionProps:P({onEntering:_},g),ownerState:x},v,{classes:f,children:s(_Y,P({onKeyDown:O,actions:k,autoFocus:o&&(L===-1||i),autoFocusItem:A,variant:y},l,{className:ve(E.list,l.className),children:a}))}))}),ix=RY;function PY(e){return ze("MuiMenuItem",e)}const IY=je("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Vu=IY,$Y=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],OY=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},LY=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,c=We({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},PY,i);return P({},i,c)},MY=C(Sa,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:OY})(({theme:e,ownerState:t})=>P({},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"}},[`&.${Vu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Vu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$t(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Vu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$t(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})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Vu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Vu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${mk.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${mk.inset}`]:{marginLeft:52},[`& .${xm.root}`]:{marginTop:0,marginBottom:0},[`& .${xm.inset}`]:{paddingLeft:36},[`& .${_k.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&P({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${_k.root} svg`]:{fontSize:"1.25rem"}}))),NY=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:f,className:h}=r,m=$e(r,$Y),y=p.useContext(Ga),g=p.useMemo(()=>({dense:i||y.dense||!1,disableGutters:c}),[y.dense,i,c]),v=p.useRef(null);Io(()=>{o&&v.current&&v.current.focus()},[o]);const b=P({},r,{dense:g.dense,divider:l,disableGutters:c}),w=LY(r),x=wn(v,n);let E;return r.disabled||(E=f!==void 0?f:-1),s(Ga.Provider,{value:g,children:s(MY,P({ref:x,role:d,tabIndex:E,component:a,focusVisibleClassName:ve(w.focusVisible,u),className:ve(w.root,h)},m,{ownerState:b,classes:w}))})}),vs=NY;function DY(e){return ze("MuiNativeSelect",e)}const BY=je("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),sx=BY,FY=["className","disabled","IconComponent","inputRef","variant"],zY=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a}=e,i={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${ie(n)}`,a&&"iconOpen",r&&"disabled"]};return We(i,DY,t)},n4=({ownerState:e,theme:t})=>P({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":P({},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"},[`&.${sx.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}}),jY=C("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:No,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${sx.multiple}`]:t.multiple}]}})(n4),r4=({ownerState:e,theme:t})=>P({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${sx.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),UY=C("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ie(n.variant)}`],n.open&&t.iconOpen]}})(r4),WY=p.forwardRef(function(t,n){const{className:r,disabled:o,IconComponent:a,inputRef:i,variant:l="standard"}=t,c=$e(t,FY),u=P({},t,{disabled:o,variant:l}),d=zY(u);return T(p.Fragment,{children:[s(jY,P({ownerState:u,className:ve(d.select,r),disabled:o,ref:i||n},c)),t.multiple?null:s(UY,{as:a,ownerState:u,className:d.icon})]})}),HY=WY;var Ok;const VY=["children","classes","className","label","notched"],GY=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%"}),qY=C("legend")(({ownerState:e,theme:t})=>P({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&&P({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 KY(e){const{className:t,label:n,notched:r}=e,o=$e(e,VY),a=n!=null&&n!=="",i=P({},e,{notched:r,withLabel:a});return s(GY,P({"aria-hidden":!0,className:t,ownerState:i},o,{children:s(qY,{ownerState:i,children:a?s("span",{children:n}):Ok||(Ok=s("span",{className:"notranslate",children:"​"}))})}))}const YY=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],XY=e=>{const{classes:t}=e,r=We({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},PW,t);return P({},t,r)},JY=C(Zg,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Jg})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return P({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Aa.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Aa.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Aa.focused} .${Aa.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Aa.error} .${Aa.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Aa.disabled} .${Aa.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&P({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),QY=C(KY,{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}}),ZY=C(ev,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Qg})(({theme:e,ownerState:t})=>P({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})),o4=p.forwardRef(function(t,n){var r,o,a,i,l;const c=He({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:f="input",label:h,multiline:m=!1,notched:y,slots:g={},type:v="text"}=c,b=$e(c,YY),w=XY(c),x=ni(),E=Ts({props:c,muiFormControl:x,states:["required"]}),A=P({},c,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:x,fullWidth:d,hiddenLabel:E.hiddenLabel,multiline:m,size:E.size,type:v}),k=(r=(o=g.root)!=null?o:u.Root)!=null?r:JY,_=(a=(i=g.input)!=null?i:u.Input)!=null?a:ZY;return s(tv,P({slots:{root:k,input:_},renderSuffix:O=>s(QY,{ownerState:A,className:w.notchedOutline,label:h!=null&&h!==""&&E.required?l||(l=T(p.Fragment,{children:[h," ","*"]})):h,notched:typeof y<"u"?y:Boolean(O.startAdornment||O.filled||O.focused)}),fullWidth:d,inputComponent:f,multiline:m,ref:n,type:v},b,{classes:P({},w,{notchedOutline:null})}))});o4.muiName="Input";const a4=o4,eX=Ke(s("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"),tX=Ke(s("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"),nX=C("span")({position:"relative",display:"flex"}),rX=C(eX)({transform:"scale(1)"}),oX=C(tX)(({theme:e,ownerState:t})=>P({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 i4(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=P({},e,{checked:t});return T(nX,{className:n.root,ownerState:o,children:[s(rX,{fontSize:r,className:n.background,ownerState:o}),s(oX,{fontSize:r,className:n.dot,ownerState:o})]})}const aX=p.createContext(void 0),s4=aX;function iX(){return p.useContext(s4)}function sX(e){return ze("MuiRadio",e)}const lX=je("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),Lk=lX,cX=["checked","checkedIcon","color","icon","name","onChange","size","className"],uX=e=>{const{classes:t,color:n}=e,r={root:["root",`color${ie(n)}`]};return P({},t,We(r,sX,t))},dX=C(nx,{shouldForwardProp:e=>No(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ie(n.color)}`]]}})(({theme:e,ownerState:t})=>P({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})`:$t(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Lk.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Lk.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function pX(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Mk=s(i4,{checked:!0}),Nk=s(i4,{}),fX=p.forwardRef(function(t,n){var r,o;const a=He({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:l=Mk,color:c="primary",icon:u=Nk,name:d,onChange:f,size:h="medium",className:m}=a,y=$e(a,cX),g=P({},a,{color:c,size:h}),v=uX(g),b=iX();let w=i;const x=mm(f,b&&b.onChange);let E=d;return b&&(typeof w>"u"&&(w=pX(b.value,a.value)),typeof E>"u"&&(E=b.name)),s(dX,P({type:"radio",icon:p.cloneElement(u,{fontSize:(r=Nk.props.fontSize)!=null?r:h}),checkedIcon:p.cloneElement(l,{fontSize:(o=Mk.props.fontSize)!=null?o:h}),ownerState:g,classes:v,name:E,checked:w,onChange:x,ref:n,className:ve(v.root,m)},y))}),nl=fX,hX=["actions","children","defaultValue","name","onChange","value"],mX=p.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:a,name:i,onChange:l,value:c}=t,u=$e(t,hX),d=p.useRef(null),[f,h]=ya({controlled:c,default:a,name:"RadioGroup"});p.useImperativeHandle(r,()=>({focus:()=>{let v=d.current.querySelector("input:not(:disabled):checked");v||(v=d.current.querySelector("input:not(:disabled)")),v&&v.focus()}}),[]);const m=wn(n,d),y=eu(i),g=p.useMemo(()=>({name:y,onChange(v){h(v.target.value),l&&l(v,v.target.value)},value:f}),[y,l,h,f]);return s(s4.Provider,{value:g,children:s(rq,P({role:"radiogroup",ref:m},u,{children:o}))})}),lx=mX;function gX(e){return ze("MuiSelect",e)}const vX=je("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Vf=vX;var Dk;const yX=["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"],bX=C("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Vf.select}`]:t.select},{[`&.${Vf.select}`]:t[n.variant]},{[`&.${Vf.multiple}`]:t.multiple}]}})(n4,{[`&.${Vf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),wX=C("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ie(n.variant)}`],n.open&&t.iconOpen]}})(r4),SX=C("input",{shouldForwardProp:e=>DS(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 Bk(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xX(e){return e==null||typeof e=="string"&&!e.trim()}const CX=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a}=e,i={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${ie(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return We(i,gX,t)},EX=p.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:a,autoWidth:i,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:f,displayEmpty:h,IconComponent:m,inputRef:y,labelId:g,MenuProps:v={},multiple:b,name:w,onBlur:x,onChange:E,onClose:A,onFocus:k,onOpen:_,open:O,readOnly:L,renderValue:I,SelectDisplayProps:$={},tabIndex:D,value:F,variant:U="standard"}=t,Y=$e(t,yX),[V,te]=ya({controlled:F,default:d,name:"Select"}),[Z,W]=ya({controlled:O,default:u,name:"Select"}),z=p.useRef(null),R=p.useRef(null),[N,ee]=p.useState(null),{current:re}=p.useRef(O!=null),[Se,ce]=p.useState(),Ce=wn(n,y),xe=p.useCallback(K=>{R.current=K,K&&ee(K)},[]),Ee=N==null?void 0:N.parentNode;p.useImperativeHandle(Ce,()=>({focus:()=>{R.current.focus()},node:z.current,value:V}),[V]),p.useEffect(()=>{u&&Z&&N&&!re&&(ce(i?null:Ee.clientWidth),R.current.focus())},[N,i]),p.useEffect(()=>{a&&R.current.focus()},[a]),p.useEffect(()=>{if(!g)return;const K=Bn(R.current).getElementById(g);if(K){const se=()=>{getSelection().isCollapsed&&R.current.focus()};return K.addEventListener("click",se),()=>{K.removeEventListener("click",se)}}},[g]);const et=(K,se)=>{K?_&&_(se):A&&A(se),re||(ce(i?null:Ee.clientWidth),W(K))},me=K=>{K.button===0&&(K.preventDefault(),R.current.focus(),et(!0,K))},Ve=K=>{et(!1,K)},Ge=p.Children.toArray(l),De=K=>{const se=Ge.map(Ae=>Ae.props.value).indexOf(K.target.value);if(se===-1)return;const ye=Ge[se];te(ye.props.value),E&&E(K,ye)},he=K=>se=>{let ye;if(se.currentTarget.hasAttribute("tabindex")){if(b){ye=Array.isArray(V)?V.slice():[];const Ae=V.indexOf(K.props.value);Ae===-1?ye.push(K.props.value):ye.splice(Ae,1)}else ye=K.props.value;if(K.props.onClick&&K.props.onClick(se),V!==ye&&(te(ye),E)){const Ae=se.nativeEvent||se,mt=new Ae.constructor(Ae.type,Ae);Object.defineProperty(mt,"target",{writable:!0,value:{value:ye,name:w}}),E(mt,K)}b||et(!1,se)}},Et=K=>{L||[" ","ArrowUp","ArrowDown","Enter"].indexOf(K.key)!==-1&&(K.preventDefault(),et(!0,K))},qe=N!==null&&Z,lt=K=>{!qe&&x&&(Object.defineProperty(K,"target",{writable:!0,value:{value:V,name:w}}),x(K))};delete Y["aria-invalid"];let Rt,dt;const nt=[];let Lt=!1;(ZS({value:V})||h)&&(I?Rt=I(V):Lt=!0);const xt=Ge.map((K,se,ye)=>{var Ae,mt,Ze,ht;if(!p.isValidElement(K))return null;let Kt;if(b){if(!Array.isArray(V))throw new Error(fs(2));Kt=V.some(pt=>Bk(pt,K.props.value)),Kt&&Lt&&nt.push(K.props.children)}else Kt=Bk(V,K.props.value),Kt&&Lt&&(dt=K.props.children);if(K.props.value===void 0)return p.cloneElement(K,{"aria-readonly":!0,role:"option"});const Mn=()=>{if(V)return Kt;const pt=ye.find(un=>{var Vt;return(un==null||(Vt=un.props)==null?void 0:Vt.value)!==void 0&&un.props.disabled!==!0});return K===pt?!0:Kt};return p.cloneElement(K,{"aria-selected":Kt?"true":"false",onClick:he(K),onKeyUp:pt=>{pt.key===" "&&pt.preventDefault(),K.props.onKeyUp&&K.props.onKeyUp(pt)},role:"option",selected:((Ae=ye[0])==null||(mt=Ae.props)==null?void 0:mt.value)===void 0||((Ze=ye[0])==null||(ht=Ze.props)==null?void 0:ht.disabled)===!0?Mn():Kt,value:void 0,"data-value":K.props.value})});Lt&&(b?nt.length===0?Rt=null:Rt=nt.reduce((K,se,ye)=>(K.push(se),ye<nt.length-1&&K.push(", "),K),[]):Rt=dt);let pe=Se;!i&&re&&N&&(pe=Ee.clientWidth);let Te;typeof D<"u"?Te=D:Te=f?null:0;const Ye=$.id||(w?`mui-component-select-${w}`:void 0),Ne=P({},t,{variant:U,value:V,open:qe}),q=CX(Ne);return T(p.Fragment,{children:[s(bX,P({ref:xe,tabIndex:Te,role:"button","aria-disabled":f?"true":void 0,"aria-expanded":qe?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,Ye].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:Et,onMouseDown:f||L?null:me,onBlur:lt,onFocus:k},$,{ownerState:Ne,className:ve($.className,q.select,c),id:Ye,children:xX(Rt)?Dk||(Dk=s("span",{className:"notranslate",children:"​"})):Rt})),s(SX,P({value:Array.isArray(V)?V.join(","):V,name:w,ref:z,"aria-hidden":!0,onChange:De,tabIndex:-1,disabled:f,className:q.nativeInput,autoFocus:a,ownerState:Ne},Y)),s(wX,{as:m,className:q.icon,ownerState:Ne}),s(ix,P({id:`menu-${w||""}`,anchorEl:Ee,open:qe,onClose:Ve,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:P({"aria-labelledby":g,role:"listbox",disableListWrap:!0},v.MenuListProps),PaperProps:P({},v.PaperProps,{style:P({minWidth:pe},v.PaperProps!=null?v.PaperProps.style:null)}),children:xt}))]})}),TX=EX;var Fk,zk;const kX=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],AX=e=>{const{classes:t}=e;return t},cx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>No(e)&&e!=="variant",slot:"Root"},_X=C(X$,cx)(""),RX=C(a4,cx)(""),PX=C(H$,cx)(""),l4=p.forwardRef(function(t,n){const r=He({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=D$,id:f,input:h,inputProps:m,label:y,labelId:g,MenuProps:v,multiple:b=!1,native:w=!1,onClose:x,onOpen:E,open:A,renderValue:k,SelectDisplayProps:_,variant:O="outlined"}=r,L=$e(r,kX),I=w?HY:TX,$=ni(),F=Ts({props:r,muiFormControl:$,states:["variant"]}).variant||O,U=h||{standard:Fk||(Fk=s(_X,{})),outlined:s(RX,{label:y}),filled:zk||(zk=s(PX,{}))}[F],Y=P({},r,{variant:F,classes:i}),V=AX(Y),te=wn(n,U.ref);return s(p.Fragment,{children:p.cloneElement(U,P({inputComponent:I,inputProps:P({children:a,IconComponent:d,variant:F,type:void 0,multiple:b},w?{id:f}:{autoWidth:o,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:v,onClose:x,onOpen:E,open:A,renderValue:k,SelectDisplayProps:P({id:f},_)},m,{classes:m?Ro(V,m.classes):V},h?h.props.inputProps:{})},b&&w&&F==="outlined"?{notched:!0}:{},{ref:te,className:ve(U.props.className,l)},!h&&{variant:F},L))})});l4.muiName="Select";const qp=l4;function IX(e){return ze("MuiSlider",e)}const $X=je("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"]),va=$X,OX=e=>{const{open:t}=e;return{offset:ve(t&&va.valueLabelOpen),circle:va.valueLabelCircle,label:va.valueLabelLabel}};function LX(e){const{children:t,className:n,value:r}=e,o=OX(e);return t?p.cloneElement(t,{className:ve(t.props.className)},T(p.Fragment,{children:[t.props.children,s("span",{className:ve(o.offset,n),"aria-hidden":!0,children:s("span",{className:o.circle,children:s("span",{className:o.label,children:r})})})]})):null}const MX=["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"],jk=(e,t,n)=>(e-t)*100/(n-t);function Uk(e){return e}const NX=C("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ie(n.color)}`],n.size!=="medium"&&t[`size${ie(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})=>P({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"&&P({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"&&P({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"},[`&.${va.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${va.dragging}`]:{[`& .${va.thumb}, & .${va.track}`]:{transition:"none"}}})),DX=C("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>P({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})),BX=C("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?ms(e.palette[t.color].main,.62):hs(e.palette[t.color].main,.5);return P({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})}),FX=C("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ie(n.color)}`],n.size!=="medium"&&t[`thumbSize${ie(n.size)}`]]}})(({theme:e,ownerState:t})=>P({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":P({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, &.${va.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:$t(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${va.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:$t(e.palette[t.color].main,.16)}`},[`&.${va.disabled}`]:{"&:hover":{boxShadow:"none"}}})),zX=C(LX,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>P({[`&.${va.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"})),jX=C("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>DS(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>P({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})),UX=C("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>DS(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>P({},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})),WX=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:a,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${ie(l)}`,c&&`size${ie(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${ie(c)}`,l&&`thumbColor${ie(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return We(u,IX,i)},HX=({children:e})=>e,VX=p.forwardRef(function(t,n){var r,o,a,i,l,c,u,d,f,h,m,y,g,v,b,w,x,E,A,k,_,O,L,I;const $=He({props:t,name:"MuiSlider"}),F=cn().direction==="rtl",{"aria-label":U,"aria-valuetext":Y,"aria-labelledby":V,component:te="span",components:Z={},componentsProps:W={},color:z="primary",classes:R,className:N,disableSwap:ee=!1,disabled:re=!1,getAriaLabel:Se,getAriaValueText:ce,marks:Ce=!1,max:xe=100,min:Ee=0,orientation:et="horizontal",size:me="medium",step:Ve=1,scale:Ge=Uk,slotProps:De,slots:he,track:Et="normal",valueLabelDisplay:qe="off",valueLabelFormat:lt=Uk}=$,Rt=$e($,MX),dt=P({},$,{isRtl:F,max:xe,min:Ee,classes:R,disabled:re,disableSwap:ee,orientation:et,marks:Ce,color:z,size:me,step:Ve,scale:Ge,track:Et,valueLabelDisplay:qe,valueLabelFormat:lt}),{axisProps:nt,getRootProps:Lt,getHiddenInputProps:xt,getThumbProps:pe,open:Te,active:Ye,axis:Ne,focusedThumbIndex:q,range:K,dragging:se,marks:ye,values:Ae,trackOffset:mt,trackLeap:Ze}=ij(P({},dt,{ref:n}));dt.marked=ye.length>0&&ye.some(ue=>ue.label),dt.dragging=se,dt.focusedThumbIndex=q;const ht=WX(dt),Kt=(r=(o=he==null?void 0:he.root)!=null?o:Z.Root)!=null?r:NX,Mn=(a=(i=he==null?void 0:he.rail)!=null?i:Z.Rail)!=null?a:DX,pt=(l=(c=he==null?void 0:he.track)!=null?c:Z.Track)!=null?l:BX,un=(u=(d=he==null?void 0:he.thumb)!=null?d:Z.Thumb)!=null?u:FX,Vt=(f=(h=he==null?void 0:he.valueLabel)!=null?h:Z.ValueLabel)!=null?f:zX,Qt=(m=(y=he==null?void 0:he.mark)!=null?y:Z.Mark)!=null?m:jX,Bt=(g=(v=he==null?void 0:he.markLabel)!=null?v:Z.MarkLabel)!=null?g:UX,Wn=(b=(w=he==null?void 0:he.input)!=null?w:Z.Input)!=null?b:"input",vr=(x=De==null?void 0:De.root)!=null?x:W.root,to=(E=De==null?void 0:De.rail)!=null?E:W.rail,yo=(A=De==null?void 0:De.track)!=null?A:W.track,bo=(k=De==null?void 0:De.thumb)!=null?k:W.thumb,Rr=(_=De==null?void 0:De.valueLabel)!=null?_:W.valueLabel,no=(O=De==null?void 0:De.mark)!=null?O:W.mark,Xn=(L=De==null?void 0:De.markLabel)!=null?L:W.markLabel,ro=(I=De==null?void 0:De.input)!=null?I:W.input,yr=ha({elementType:Kt,getSlotProps:Lt,externalSlotProps:vr,externalForwardedProps:Rt,additionalProps:P({},hH(Kt)&&{as:te}),ownerState:P({},dt,vr==null?void 0:vr.ownerState),className:[ht.root,N]}),Dt=ha({elementType:Mn,externalSlotProps:to,ownerState:dt,className:ht.rail}),Gt=ha({elementType:pt,externalSlotProps:yo,additionalProps:{style:P({},nt[Ne].offset(mt),nt[Ne].leap(Ze))},ownerState:P({},dt,yo==null?void 0:yo.ownerState),className:ht.track}),zn=ha({elementType:un,getSlotProps:pe,externalSlotProps:bo,ownerState:P({},dt,bo==null?void 0:bo.ownerState)}),ur=ha({elementType:Vt,externalSlotProps:Rr,ownerState:P({},dt,Rr==null?void 0:Rr.ownerState),className:ht.valueLabel}),Gr=ha({elementType:Qt,externalSlotProps:no,ownerState:dt,className:ht.mark}),qr=ha({elementType:Bt,externalSlotProps:Xn,ownerState:dt}),ua=ha({elementType:Wn,getSlotProps:xt,externalSlotProps:ro,ownerState:dt});return T(Kt,P({},yr,{children:[s(Mn,P({},Dt)),s(pt,P({},Gt)),ye.filter(ue=>ue.value>=Ee&&ue.value<=xe).map((ue,ae)=>{const Be=jk(ue.value,Ee,xe),ot=nt[Ne].offset(Be);let kt;return Et===!1?kt=Ae.indexOf(ue.value)!==-1:kt=Et==="normal"&&(K?ue.value>=Ae[0]&&ue.value<=Ae[Ae.length-1]:ue.value<=Ae[0])||Et==="inverted"&&(K?ue.value<=Ae[0]||ue.value>=Ae[Ae.length-1]:ue.value>=Ae[0]),T(p.Fragment,{children:[s(Qt,P({"data-index":ae},Gr,!Ha(Qt)&&{markActive:kt},{style:P({},ot,Gr.style),className:ve(Gr.className,kt&&ht.markActive)})),ue.label!=null?s(Bt,P({"aria-hidden":!0,"data-index":ae},qr,!Ha(Bt)&&{markLabelActive:kt},{style:P({},ot,qr.style),className:ve(ht.markLabel,qr.className,kt&&ht.markLabelActive),children:ue.label})):null]},ae)}),Ae.map((ue,ae)=>{const Be=jk(ue,Ee,xe),ot=nt[Ne].offset(Be),kt=qe==="off"?HX:Vt;return s(p.Fragment,{children:s(kt,P({},!Ha(kt)&&{valueLabelFormat:lt,valueLabelDisplay:qe,value:typeof lt=="function"?lt(Ge(ue),ae):lt,index:ae,open:Te===ae||Ye===ae||qe==="on",disabled:re},ur,{children:s(un,P({"data-index":ae,"data-focusvisible":q===ae},zn,{className:ve(ht.thumb,zn.className,Ye===ae&&ht.active,q===ae&&ht.focusVisible),style:P({},ot,{pointerEvents:ee&&Ye!==ae?"none":void 0},zn.style),children:s(Wn,P({"data-index":ae,"aria-label":Se?Se(ae):U,"aria-valuenow":Ge(ue),"aria-labelledby":V,"aria-valuetext":ce?ce(Ge(ue),ae):Y,value:Ae[ae]},ua))}))}))},ae)})]}))}),GX=VX;function qX(e){return ze("MuiTooltip",e)}const KX=je("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),za=KX,YX=["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 XX(e){return Math.round(e*1e5)/1e5}const JX=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ie(a.split("-")[0])}`],arrow:["arrow"]};return We(i,qX,t)},QX=C(Yg,{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})=>P({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${za.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${za.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${za.arrow}`]:P({},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"] .${za.arrow}`]:P({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),ZX=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${ie(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>P({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:$t(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:`${XX(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${za.popper}[data-popper-placement*="left"] &`]:P({transformOrigin:"right center"},t.isRtl?P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):P({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${za.popper}[data-popper-placement*="right"] &`]:P({transformOrigin:"left center"},t.isRtl?P({marginRight:"14px"},t.touch&&{marginRight:"24px"}):P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${za.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${za.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),eJ=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:$t(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Gf=!1,u1=null,Gu={x:0,y:0};function qf(e,t){return n=>{t&&t(n),e(n)}}const tJ=p.forwardRef(function(t,n){var r,o,a,i,l,c,u,d,f,h,m,y,g,v,b,w,x,E,A;const k=He({props:t,name:"MuiTooltip"}),{arrow:_=!1,children:O,components:L={},componentsProps:I={},describeChild:$=!1,disableFocusListener:D=!1,disableHoverListener:F=!1,disableInteractive:U=!1,disableTouchListener:Y=!1,enterDelay:V=100,enterNextDelay:te=0,enterTouchDelay:Z=700,followCursor:W=!1,id:z,leaveDelay:R=0,leaveTouchDelay:N=1500,onClose:ee,onOpen:re,open:Se,placement:ce="bottom",PopperComponent:Ce,PopperProps:xe={},slotProps:Ee={},slots:et={},title:me,TransitionComponent:Ve=wb,TransitionProps:Ge}=k,De=$e(k,YX),he=cn(),Et=he.direction==="rtl",[qe,lt]=p.useState(),[Rt,dt]=p.useState(null),nt=p.useRef(!1),Lt=U||W,xt=p.useRef(),pe=p.useRef(),Te=p.useRef(),Ye=p.useRef(),[Ne,q]=ya({controlled:Se,default:!1,name:"Tooltip",state:"open"});let K=Ne;const se=eu(z),ye=p.useRef(),Ae=p.useCallback(()=>{ye.current!==void 0&&(document.body.style.WebkitUserSelect=ye.current,ye.current=void 0),clearTimeout(Ye.current)},[]);p.useEffect(()=>()=>{clearTimeout(xt.current),clearTimeout(pe.current),clearTimeout(Te.current),Ae()},[Ae]);const mt=yt=>{clearTimeout(u1),Gf=!0,q(!0),re&&!K&&re(yt)},Ze=pr(yt=>{clearTimeout(u1),u1=setTimeout(()=>{Gf=!1},800+R),q(!1),ee&&K&&ee(yt),clearTimeout(xt.current),xt.current=setTimeout(()=>{nt.current=!1},he.transitions.duration.shortest)}),ht=yt=>{nt.current&&yt.type!=="touchstart"||(qe&&qe.removeAttribute("title"),clearTimeout(pe.current),clearTimeout(Te.current),V||Gf&&te?pe.current=setTimeout(()=>{mt(yt)},Gf?te:V):mt(yt))},Kt=yt=>{clearTimeout(pe.current),clearTimeout(Te.current),Te.current=setTimeout(()=>{Ze(yt)},R)},{isFocusVisibleRef:Mn,onBlur:pt,onFocus:un,ref:Vt}=Bp(),[,Qt]=p.useState(!1),Bt=yt=>{pt(yt),Mn.current===!1&&(Qt(!1),Kt(yt))},Wn=yt=>{qe||lt(yt.currentTarget),un(yt),Mn.current===!0&&(Qt(!0),ht(yt))},vr=yt=>{nt.current=!0;const Rn=O.props;Rn.onTouchStart&&Rn.onTouchStart(yt)},to=ht,yo=Kt,bo=yt=>{vr(yt),clearTimeout(Te.current),clearTimeout(xt.current),Ae(),ye.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ye.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ye.current,ht(yt)},Z)},Rr=yt=>{O.props.onTouchEnd&&O.props.onTouchEnd(yt),Ae(),clearTimeout(Te.current),Te.current=setTimeout(()=>{Ze(yt)},N)};p.useEffect(()=>{if(!K)return;function yt(Rn){(Rn.key==="Escape"||Rn.key==="Esc")&&Ze(Rn)}return document.addEventListener("keydown",yt),()=>{document.removeEventListener("keydown",yt)}},[Ze,K]);const no=wn(O.ref,Vt,lt,n);!me&&me!==0&&(K=!1);const Xn=p.useRef(),ro=yt=>{const Rn=O.props;Rn.onMouseMove&&Rn.onMouseMove(yt),Gu={x:yt.clientX,y:yt.clientY},Xn.current&&Xn.current.update()},yr={},Dt=typeof me=="string";$?(yr.title=!K&&Dt&&!F?me:null,yr["aria-describedby"]=K?se:null):(yr["aria-label"]=Dt?me:null,yr["aria-labelledby"]=K&&!Dt?se:null);const Gt=P({},yr,De,O.props,{className:ve(De.className,O.props.className),onTouchStart:vr,ref:no},W?{onMouseMove:ro}:{}),zn={};Y||(Gt.onTouchStart=bo,Gt.onTouchEnd=Rr),F||(Gt.onMouseOver=qf(to,Gt.onMouseOver),Gt.onMouseLeave=qf(yo,Gt.onMouseLeave),Lt||(zn.onMouseOver=to,zn.onMouseLeave=yo)),D||(Gt.onFocus=qf(Wn,Gt.onFocus),Gt.onBlur=qf(Bt,Gt.onBlur),Lt||(zn.onFocus=Wn,zn.onBlur=Bt));const ur=p.useMemo(()=>{var yt;let Rn=[{name:"arrow",enabled:Boolean(Rt),options:{element:Rt,padding:4}}];return(yt=xe.popperOptions)!=null&&yt.modifiers&&(Rn=Rn.concat(xe.popperOptions.modifiers)),P({},xe.popperOptions,{modifiers:Rn})},[Rt,xe]),Gr=P({},k,{isRtl:Et,arrow:_,disableInteractive:Lt,placement:ce,PopperComponentProp:Ce,touch:nt.current}),qr=JX(Gr),ua=(r=(o=et.popper)!=null?o:L.Popper)!=null?r:QX,ue=(a=(i=(l=et.transition)!=null?l:L.Transition)!=null?i:Ve)!=null?a:wb,ae=(c=(u=et.tooltip)!=null?u:L.Tooltip)!=null?c:ZX,Be=(d=(f=et.arrow)!=null?f:L.Arrow)!=null?d:eJ,ot=ud(ua,P({},xe,(h=Ee.popper)!=null?h:I.popper,{className:ve(qr.popper,xe==null?void 0:xe.className,(m=(y=Ee.popper)!=null?y:I.popper)==null?void 0:m.className)}),Gr),kt=ud(ue,P({},Ge,(g=Ee.transition)!=null?g:I.transition),Gr),Sn=ud(ae,P({},(v=Ee.tooltip)!=null?v:I.tooltip,{className:ve(qr.tooltip,(b=(w=Ee.tooltip)!=null?w:I.tooltip)==null?void 0:b.className)}),Gr),_n=ud(Be,P({},(x=Ee.arrow)!=null?x:I.arrow,{className:ve(qr.arrow,(E=(A=Ee.arrow)!=null?A:I.arrow)==null?void 0:E.className)}),Gr);return T(p.Fragment,{children:[p.cloneElement(O,Gt),s(ua,P({as:Ce??Yg,placement:ce,anchorEl:W?{getBoundingClientRect:()=>({top:Gu.y,left:Gu.x,right:Gu.x,bottom:Gu.y,width:0,height:0})}:qe,popperRef:Xn,open:qe?K:!1,id:se,transition:!0},zn,ot,{popperOptions:ur,children:({TransitionProps:yt})=>s(ue,P({timeout:he.transitions.duration.shorter},yt,kt,{children:T(ae,P({},Sn,{children:[me,_?s(Be,P({},_n,{ref:dt})):null]}))}))}))]})}),_t=tJ;function nJ(e){return ze("MuiSwitch",e)}const rJ=je("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Xr=rJ,oJ=["className","color","edge","size","sx"],aJ=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,l={root:["root",n&&`edge${ie(n)}`,`size${ie(r)}`],switchBase:["switchBase",`color${ie(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=We(l,nJ,t);return P({},t,c)},iJ=C("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ie(n.edge)}`],t[`size${ie(n.size)}`]]}})(({ownerState:e})=>P({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,[`& .${Xr.thumb}`]:{width:16,height:16},[`& .${Xr.switchBase}`]:{padding:4,[`&.${Xr.checked}`]:{transform:"translateX(16px)"}}})),sJ=C(nx,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Xr.input}`]:t.input},n.color!=="default"&&t[`color${ie(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}),[`&.${Xr.checked}`]:{transform:"translateX(20px)"},[`&.${Xr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Xr.checked} + .${Xr.track}`]:{opacity:.5},[`&.${Xr.disabled} + .${Xr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Xr.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>P({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:$t(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Xr.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})`:$t(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?ms(e.palette[t.color].main,.62):hs(e.palette[t.color].main,.55)}`}},[`&.${Xr.checked} + .${Xr.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),lJ=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}`})),cJ=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%"})),uJ=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:l="medium",sx:c}=r,u=$e(r,oJ),d=P({},r,{color:a,edge:i,size:l}),f=aJ(d),h=s(cJ,{className:f.thumb,ownerState:d});return T(iJ,{className:ve(f.root,o),sx:c,ownerState:d,children:[s(sJ,P({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:P({},f,{root:f.switchBase})})),s(lJ,{className:f.track,ownerState:d})]})}),Pi=uJ;function dJ(e){return ze("MuiTab",e)}const pJ=je("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Ns=pJ,fJ=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],hJ=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:l,disabled:c}=e,u={root:["root",a&&i&&"labelIcon",`textColor${ie(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return We(u,dJ,t)},mJ=C(Sa,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ie(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>P({},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,[`& > .${Ns.iconWrapper}`]:P({},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,[`&.${Ns.selected}`]:{opacity:1},[`&.${Ns.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ns.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Ns.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ns.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Ns.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)})),gJ=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:l,icon:c,iconPosition:u="top",indicator:d,label:f,onChange:h,onClick:m,onFocus:y,selected:g,selectionFollowsFocus:v,textColor:b="inherit",value:w,wrapped:x=!1}=r,E=$e(r,fJ),A=P({},r,{disabled:a,disableFocusRipple:i,selected:g,icon:!!c,iconPosition:u,label:!!f,fullWidth:l,textColor:b,wrapped:x}),k=hJ(A),_=c&&f&&p.isValidElement(c)?p.cloneElement(c,{className:ve(k.iconWrapper,c.props.className)}):c,O=I=>{!g&&h&&h(I,w),m&&m(I)},L=I=>{v&&!g&&h&&h(I,w),y&&y(I)};return T(mJ,P({focusRipple:!i,className:ve(k.root,o),ref:n,role:"tab","aria-selected":g,disabled:a,onClick:O,onFocus:L,ownerState:A,tabIndex:g?0:-1},E,{children:[u==="top"||u==="start"?T(p.Fragment,{children:[_,f]}):T(p.Fragment,{children:[f,_]}),d]}))}),vJ=gJ,yJ=p.createContext(),c4=yJ;function bJ(e){return ze("MuiTable",e)}je("MuiTable",["root","stickyHeader"]);const wJ=["className","component","padding","size","stickyHeader"],SJ=e=>{const{classes:t,stickyHeader:n}=e;return We({root:["root",n&&"stickyHeader"]},bJ,t)},xJ=C("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>P({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":P({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Wk="table",CJ=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTable"}),{className:o,component:a=Wk,padding:i="normal",size:l="medium",stickyHeader:c=!1}=r,u=$e(r,wJ),d=P({},r,{component:a,padding:i,size:l,stickyHeader:c}),f=SJ(d),h=p.useMemo(()=>({padding:i,size:l,stickyHeader:c}),[i,l,c]);return s(c4.Provider,{value:h,children:s(xJ,P({as:a,role:a===Wk?null:"table",ref:n,className:ve(f.root,o),ownerState:d},u))})}),EJ=CJ,TJ=p.createContext(),av=TJ;function kJ(e){return ze("MuiTableBody",e)}je("MuiTableBody",["root"]);const AJ=["className","component"],_J=e=>{const{classes:t}=e;return We({root:["root"]},kJ,t)},RJ=C("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),PJ={variant:"body"},Hk="tbody",IJ=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTableBody"}),{className:o,component:a=Hk}=r,i=$e(r,AJ),l=P({},r,{component:a}),c=_J(l);return s(av.Provider,{value:PJ,children:s(RJ,P({className:ve(c.root,o),as:a,ref:n,role:a===Hk?null:"rowgroup",ownerState:l},i))})}),Ii=IJ;function $J(e){return ze("MuiTableCell",e)}const OJ=je("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),LJ=OJ,MJ=["align","className","component","padding","scope","size","sortDirection","variant"],NJ=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,l={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${ie(r)}`,o!=="normal"&&`padding${ie(o)}`,`size${ie(a)}`]};return We(l,$J,t)},DJ=C("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ie(n.size)}`],n.padding!=="normal"&&t[`padding${ie(n.padding)}`],n.align!=="inherit"&&t[`align${ie(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>P({},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"?ms($t(e.palette.divider,1),.88):hs($t(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",[`&.${LJ.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})),BJ=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:l,scope:c,size:u,sortDirection:d,variant:f}=r,h=$e(r,MJ),m=p.useContext(c4),y=p.useContext(av),g=y&&y.variant==="head";let v;i?v=i:v=g?"th":"td";let b=c;v==="td"?b=void 0:!b&&g&&(b="col");const w=f||y&&y.variant,x=P({},r,{align:o,component:v,padding:l||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:d,stickyHeader:w==="head"&&m&&m.stickyHeader,variant:w}),E=NJ(x);let A=null;return d&&(A=d==="asc"?"ascending":"descending"),s(DJ,P({as:v,ref:n,className:ve(E.root,a),"aria-sort":A,scope:b,ownerState:x},h))}),u4=BJ;function FJ(e){return ze("MuiTableHead",e)}je("MuiTableHead",["root"]);const zJ=["className","component"],jJ=e=>{const{classes:t}=e;return We({root:["root"]},FJ,t)},UJ=C("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),WJ={variant:"head"},Vk="thead",HJ=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTableHead"}),{className:o,component:a=Vk}=r,i=$e(r,zJ),l=P({},r,{component:a}),c=jJ(l);return s(av.Provider,{value:WJ,children:s(UJ,P({as:a,className:ve(c.root,o),ref:n,role:a===Vk?null:"rowgroup",ownerState:l},i))})}),VJ=HJ,GJ=Ke(s("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),qJ=Ke(s("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function KJ(e){return ze("MuiTableRow",e)}const YJ=je("MuiTableRow",["root","selected","hover","head","footer"]),Gk=YJ,XJ=["className","component","hover","selected"],JJ=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return We({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},KJ,t)},QJ=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,[`&.${Gk.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Gk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$t(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}))`:$t(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),qk="tr",ZJ=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTableRow"}),{className:o,component:a=qk,hover:i=!1,selected:l=!1}=r,c=$e(r,XJ),u=p.useContext(av),d=P({},r,{component:a,hover:i,selected:l,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=JJ(d);return s(QJ,P({as:a,ref:n,className:ve(f.root,o),role:a===qk?null:"row",ownerState:d},c))}),ri=ZJ;function eQ(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function tQ(e,t,n,r={},o=()=>{}){const{ease:a=eQ,duration:i=300}=r;let l=null;const c=t[e];let u=!1;const d=()=>{u=!0},f=h=>{if(u){o(new Error("Animation cancelled"));return}l===null&&(l=h);const m=Math.min(1,(h-l)/i);if(t[e]=a(m)*(n-c)+c,m>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return c===n?(o(new Error("Element already at target position")),d):(requestAnimationFrame(f),d)}const nQ=["onChange"],rQ={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function oQ(e){const{onChange:t}=e,n=$e(e,nQ),r=p.useRef(),o=p.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return p.useEffect(()=>{const i=fl(()=>{const c=r.current;a(),c!==r.current&&t(r.current)}),l=Qo(o.current);return l.addEventListener("resize",i),()=>{i.clear(),l.removeEventListener("resize",i)}},[t]),p.useEffect(()=>{a(),t(r.current)},[t]),s("div",P({style:rQ,ref:o},n))}function aQ(e){return ze("MuiTabScrollButton",e)}const iQ=je("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),sQ=iQ;var Kk,Yk;const lQ=["className","direction","orientation","disabled"],cQ=e=>{const{classes:t,orientation:n,disabled:r}=e;return We({root:["root",n,r&&"disabled"]},aQ,t)},uQ=C(Sa,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>P({width:40,flexShrink:0,opacity:.8,[`&.${sQ.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),dQ=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTabScrollButton"}),{className:o,direction:a}=r,i=$e(r,lQ),c=cn().direction==="rtl",u=P({isRtl:c},r),d=cQ(u);return s(uQ,P({component:"div",className:ve(d.root,o),ref:n,role:null,ownerState:u,tabIndex:null},i,{children:a==="left"?Kk||(Kk=s(GJ,{fontSize:"small"})):Yk||(Yk=s(qJ,{fontSize:"small"}))}))}),pQ=dQ;function fQ(e){return ze("MuiTabs",e)}const hQ=je("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),d1=hQ,mQ=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Xk=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Jk=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Kf=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=n(e,o);else{o.focus();return}}},gQ=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:l,classes:c}=e;return We({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},fQ,c)},vQ=C("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${d1.scrollButtons}`]:t.scrollButtons},{[`& .${d1.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>P({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${d1.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),yQ=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})=>P({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"})),bQ=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})=>P({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),wQ=C("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>P({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})),SQ=C(oQ,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Qk={},xQ=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTabs"}),o=cn(),a=o.direction==="rtl",{"aria-label":i,"aria-labelledby":l,action:c,centered:u=!1,children:d,className:f,component:h="div",allowScrollButtonsMobile:m=!1,indicatorColor:y="primary",onChange:g,orientation:v="horizontal",ScrollButtonComponent:b=pQ,scrollButtons:w="auto",selectionFollowsFocus:x,TabIndicatorProps:E={},TabScrollButtonProps:A={},textColor:k="primary",value:_,variant:O="standard",visibleScrollbar:L=!1}=r,I=$e(r,mQ),$=O==="scrollable",D=v==="vertical",F=D?"scrollTop":"scrollLeft",U=D?"top":"left",Y=D?"bottom":"right",V=D?"clientHeight":"clientWidth",te=D?"height":"width",Z=P({},r,{component:h,allowScrollButtonsMobile:m,indicatorColor:y,orientation:v,vertical:D,scrollButtons:w,textColor:k,variant:O,visibleScrollbar:L,fixed:!$,hideScrollbar:$&&!L,scrollableX:$&&!D,scrollableY:$&&D,centered:u&&!$,scrollButtonsHideMobile:!m}),W=gQ(Z),[z,R]=p.useState(!1),[N,ee]=p.useState(Qk),[re,Se]=p.useState({start:!1,end:!1}),[ce,Ce]=p.useState({overflow:"hidden",scrollbarWidth:0}),xe=new Map,Ee=p.useRef(null),et=p.useRef(null),me=()=>{const q=Ee.current;let K;if(q){const ye=q.getBoundingClientRect();K={clientWidth:q.clientWidth,scrollLeft:q.scrollLeft,scrollTop:q.scrollTop,scrollLeftNormalized:pT(q,o.direction),scrollWidth:q.scrollWidth,top:ye.top,bottom:ye.bottom,left:ye.left,right:ye.right}}let se;if(q&&_!==!1){const ye=et.current.children;if(ye.length>0){const Ae=ye[xe.get(_)];se=Ae?Ae.getBoundingClientRect():null}}return{tabsMeta:K,tabMeta:se}},Ve=pr(()=>{const{tabsMeta:q,tabMeta:K}=me();let se=0,ye;if(D)ye="top",K&&q&&(se=K.top-q.top+q.scrollTop);else if(ye=a?"right":"left",K&&q){const mt=a?q.scrollLeftNormalized+q.clientWidth-q.scrollWidth:q.scrollLeft;se=(a?-1:1)*(K[ye]-q[ye]+mt)}const Ae={[ye]:se,[te]:K?K[te]:0};if(isNaN(N[ye])||isNaN(N[te]))ee(Ae);else{const mt=Math.abs(N[ye]-Ae[ye]),Ze=Math.abs(N[te]-Ae[te]);(mt>=1||Ze>=1)&&ee(Ae)}}),Ge=(q,{animation:K=!0}={})=>{K?tQ(F,Ee.current,q,{duration:o.transitions.duration.standard}):Ee.current[F]=q},De=q=>{let K=Ee.current[F];D?K+=q:(K+=q*(a?-1:1),K*=a&&U5()==="reverse"?-1:1),Ge(K)},he=()=>{const q=Ee.current[V];let K=0;const se=Array.from(et.current.children);for(let ye=0;ye<se.length;ye+=1){const Ae=se[ye];if(K+Ae[V]>q){ye===0&&(K=q);break}K+=Ae[V]}return K},Et=()=>{De(-1*he())},qe=()=>{De(he())},lt=p.useCallback(q=>{Ce({overflow:null,scrollbarWidth:q})},[]),Rt=()=>{const q={};q.scrollbarSizeListener=$?s(SQ,{onChange:lt,className:ve(W.scrollableX,W.hideScrollbar)}):null;const K=re.start||re.end,se=$&&(w==="auto"&&K||w===!0);return q.scrollButtonStart=se?s(b,P({orientation:v,direction:a?"right":"left",onClick:Et,disabled:!re.start},A,{className:ve(W.scrollButtons,A.className)})):null,q.scrollButtonEnd=se?s(b,P({orientation:v,direction:a?"left":"right",onClick:qe,disabled:!re.end},A,{className:ve(W.scrollButtons,A.className)})):null,q},dt=pr(q=>{const{tabsMeta:K,tabMeta:se}=me();if(!(!se||!K)){if(se[U]<K[U]){const ye=K[F]+(se[U]-K[U]);Ge(ye,{animation:q})}else if(se[Y]>K[Y]){const ye=K[F]+(se[Y]-K[Y]);Ge(ye,{animation:q})}}}),nt=pr(()=>{if($&&w!==!1){const{scrollTop:q,scrollHeight:K,clientHeight:se,scrollWidth:ye,clientWidth:Ae}=Ee.current;let mt,Ze;if(D)mt=q>1,Ze=q<K-se-1;else{const ht=pT(Ee.current,o.direction);mt=a?ht<ye-Ae-1:ht>1,Ze=a?ht>1:ht<ye-Ae-1}(mt!==re.start||Ze!==re.end)&&Se({start:mt,end:Ze})}});p.useEffect(()=>{const q=fl(()=>{Ee.current&&(Ve(),nt())}),K=Qo(Ee.current);K.addEventListener("resize",q);let se;return typeof ResizeObserver<"u"&&(se=new ResizeObserver(q),Array.from(et.current.children).forEach(ye=>{se.observe(ye)})),()=>{q.clear(),K.removeEventListener("resize",q),se&&se.disconnect()}},[Ve,nt]);const Lt=p.useMemo(()=>fl(()=>{nt()}),[nt]);p.useEffect(()=>()=>{Lt.clear()},[Lt]),p.useEffect(()=>{R(!0)},[]),p.useEffect(()=>{Ve(),nt()}),p.useEffect(()=>{dt(Qk!==N)},[dt,N]),p.useImperativeHandle(c,()=>({updateIndicator:Ve,updateScrollButtons:nt}),[Ve,nt]);const xt=s(wQ,P({},E,{className:ve(W.indicator,E.className),ownerState:Z,style:P({},N,E.style)}));let pe=0;const Te=p.Children.map(d,q=>{if(!p.isValidElement(q))return null;const K=q.props.value===void 0?pe:q.props.value;xe.set(K,pe);const se=K===_;return pe+=1,p.cloneElement(q,P({fullWidth:O==="fullWidth",indicator:se&&!z&&xt,selected:se,selectionFollowsFocus:x,onChange:g,textColor:k,value:K},pe===1&&_===!1&&!q.props.tabIndex?{tabIndex:0}:{}))}),Ye=q=>{const K=et.current,se=Bn(K).activeElement;if(se.getAttribute("role")!=="tab")return;let Ae=v==="horizontal"?"ArrowLeft":"ArrowUp",mt=v==="horizontal"?"ArrowRight":"ArrowDown";switch(v==="horizontal"&&a&&(Ae="ArrowRight",mt="ArrowLeft"),q.key){case Ae:q.preventDefault(),Kf(K,se,Jk);break;case mt:q.preventDefault(),Kf(K,se,Xk);break;case"Home":q.preventDefault(),Kf(K,null,Xk);break;case"End":q.preventDefault(),Kf(K,null,Jk);break}},Ne=Rt();return T(vQ,P({className:ve(W.root,f),ownerState:Z,ref:n,as:h},I,{children:[Ne.scrollButtonStart,Ne.scrollbarSizeListener,T(yQ,{className:W.scroller,ownerState:Z,style:{overflow:ce.overflow,[D?`margin${a?"Left":"Right"}`:"marginBottom"]:L?void 0:-ce.scrollbarWidth},ref:Ee,onScroll:Lt,children:[s(bQ,{"aria-label":i,"aria-labelledby":l,"aria-orientation":v==="vertical"?"vertical":null,className:W.flexContainer,ownerState:Z,onKeyDown:Ye,ref:et,role:"tablist",children:Te}),z&&xt]}),Ne.scrollButtonEnd]}))}),CQ=xQ;function EQ(e){return ze("MuiTextField",e)}je("MuiTextField",["root"]);const TQ=["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"],kQ={standard:X$,filled:H$,outlined:a4},AQ=e=>{const{classes:t}=e;return We({root:["root"]},EQ,t)},_Q=C(Ri,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),RQ=p.forwardRef(function(t,n){const r=He({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:h,fullWidth:m=!1,helperText:y,id:g,InputLabelProps:v,inputProps:b,InputProps:w,inputRef:x,label:E,maxRows:A,minRows:k,multiline:_=!1,name:O,onBlur:L,onChange:I,onFocus:$,placeholder:D,required:F=!1,rows:U,select:Y=!1,SelectProps:V,type:te,value:Z,variant:W="outlined"}=r,z=$e(r,TQ),R=P({},r,{autoFocus:a,color:c,disabled:d,error:f,fullWidth:m,multiline:_,required:F,select:Y,variant:W}),N=AQ(R),ee={};W==="outlined"&&(v&&typeof v.shrink<"u"&&(ee.notched=v.shrink),ee.label=E),Y&&((!V||!V.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const re=eu(g),Se=y&&re?`${re}-helper-text`:void 0,ce=E&&re?`${re}-label`:void 0,Ce=kQ[W],xe=s(Ce,P({"aria-describedby":Se,autoComplete:o,autoFocus:a,defaultValue:u,fullWidth:m,multiline:_,name:O,rows:U,maxRows:A,minRows:k,type:te,value:Z,id:re,inputRef:x,onBlur:L,onChange:I,onFocus:$,placeholder:D,inputProps:b},ee,w));return T(_Q,P({className:ve(N.root,l),disabled:d,error:f,fullWidth:m,ref:n,required:F,color:c,variant:W,ownerState:R},z,{children:[E!=null&&E!==""&&s(Gp,P({htmlFor:re,id:ce},v,{children:E})),Y?s(qp,P({"aria-describedby":Se,id:re,labelId:ce,value:Z,input:xe},V,{children:i})):xe,y&&s(uq,P({id:Se},h,{children:y}))]}))}),fn=RQ,d4=()=>({type:"success",title:"",text:"",components:[],show:!1,persist:!1}),PQ=()=>{throw new Error("setToast called outside UIContext")},IQ=()=>{throw new Error("setShowFeedback called outside UIContext")},$Q=()=>{throw new Error("setMode called outside UIContext")},As=zt.createContext({toastData:d4(),setToast:PQ,showFeedback:!1,setShowFeedback:IQ,themeMode:"light",setThemeMode:$Q});function pp(e){try{return OQ(window.localStorage.getItem(e))}catch(t){console.warn(t)}}function Dc(e,t){try{window.localStorage.setItem(e,JSON.stringify(t,(n,r)=>r instanceof Set?[...r]:r))}catch(n){console.warn(n)}}function OQ(e){try{return e?JSON.parse(e):void 0}catch(t){console.warn(t)}}const ne={white:"#FFFFFF",black:"#000000",grey:{900:"#202021",800:"#6E6E70",700:"#78787A",600:"#9F9FA1",500:"#BDBDBF",400:"#E1E1E3",300:"#EAEAED",200:"#F2F2F5",100:"#F7F7FA",50:"#FFFFFF"},purple:{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:"#B35300",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"}},Bc=Hg({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)"},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},palette:{primary:{main:ne.purple[800],light:ne.purple[700],dark:ne.purple[900]},secondary:{light:ne.purple[50],main:ne.purple[800],dark:ne.purple[900],border:ne.purple[300]},info:{light:ne.blue[50],main:ne.blue[500],dark:ne.blue[700],border:ne.blue[200]},success:{light:ne.green[50],main:ne.green[600],dark:ne.green[800],border:ne.green[300]},warning:{light:ne.orange[100],main:ne.orange[800],dark:ne.orange[900],border:ne.orange[500]},error:{light:ne.red[50],main:ne.red[700],dark:ne.red[800],border:ne.red[300]},neutral:{light:ne.grey[100],main:ne.grey[700],dark:ne.grey[800],border:ne.grey[500]},tertiary:{light:ne.grey[200],main:ne.grey[400],dark:ne.grey[600],background:"white",contrast:ne.grey[300]},divider:ne.grey[300],dividerAlternative:ne.grey[400],tableHeaderHover:ne.grey[400],tableHeaderBackground:ne.grey[200],tableHeaderColor:ne.grey[900],formSidebarTextColor:ne.white,highlight:"#FFEACC",secondaryContainer:ne.grey[200],contentWrapper:ne.grey[300],headerBackground:ne.white,footerBackground:ne.white,formBackground:ne.white,formSidebar:ne.purple[800],featureMetaData:ne.purple[800],codebox:"rgba(32,32,33, 0.2)",sidebarContainer:"rgba(32,32,33, 0.2)",playgroundBackground:ne.grey[200],playgroundFormBackground:ne.grey[200],standaloneBackground:ne.grey[300],constraintAccordion:{editBackground:"#F6F6FA",background:ne.white,operatorBackground:ne.grey[200]},projectCard:{hover:ne.grey[100],textColor:"#4A4599"},standaloneBannerGradient:{from:ne.purple[900],to:"#173341"},checkmarkBadge:ne.purple[800],inputLabelBackground:ne.white,featureStrategySegmentChipBackground:ne.purple[800],featureSegmentSearchBackground:ne.purple[800],dialogHeaderBackground:ne.purple[800],dialogHeaderText:"#ffffffe6",grey:ne.grey,lightBorder:ne.grey[400],text:{primary:ne.grey[900],secondary:ne.grey[800],disabled:ne.grey[600],tertiaryContrast:"#fff"},code:{main:"#0b8c8f",diffAdd:"#3b6600",diffSub:"#d11525",diffNeutral:"black",edited:"black"},activityIndicators:{unknown:ne.grey[100],recent:ne.green[100],inactive:ne.orange[200],abandoned:ne.red[200],primary:ne.purple[100]},inactiveIcon:ne.grey[600]},components:{MuiLink:{styleOverrides:{root:{color:ne.purple[900],"&:hover":{textDecoration:"none"}}}},MuiBreadcrumbs:{styleOverrides:{root:{color:ne.grey[900],fontSize:"0.875rem","& a":{color:ne.purple[900],textDecoration:"none","&:hover":{textDecoration:"underline"}}}}},MuiTableHead:{styleOverrides:{root:{background:"transparent","& th":{background:ne.grey[200]}}}},MuiTableRow:{styleOverrides:{root:{"&.MuiTableRow-hover:hover":{background:ne.grey[100]}}}},MuiTableCell:{styleOverrides:{root:{borderBottomColor:ne.grey[300]}}},MuiAlert:{styleOverrides:{root:{borderRadius:"8px",a:{color:"inherit"},"&.MuiAlert-standardInfo":{backgroundColor:ne.blue[50],color:ne.blue[700],border:`1px solid ${ne.blue[200]}`,"& .MuiAlert-icon":{color:ne.blue[500]}},"&.MuiAlert-standardSuccess":{backgroundColor:ne.green[50],color:ne.green[800],border:`1px solid ${ne.green[300]}`,"& .MuiAlert-icon":{color:ne.green[500]}},"&.MuiAlert-standardWarning":{backgroundColor:ne.orange[100],color:ne.orange[900],border:`1px solid ${ne.orange[500]}`,"& .MuiAlert-icon":{color:ne.orange[800]}},"&.MuiAlert-standardError":{backgroundColor:ne.red[50],color:ne.red[800],border:`1px solid ${ne.red[300]}`,"& .MuiAlert-icon":{color:ne.red[700]}}}}},MuiTabs:{styleOverrides:{root:({theme:e})=>({"& .MuiTabs-indicator":{height:"4px"},"& .MuiTabs-flexContainer":{minHeight:"70px",maxHeight:"70px"}})}},MuiTab:{styleOverrides:{root:({theme:e})=>({color:ne.grey[900],fontSize:"1rem",textTransform:"none",fontWeight:400,lineHeight:"1",minHeight:"62px","&:hover":{backgroundColor:ne.grey[200]},"&.Mui-selected":{color:ne.grey[900],fontWeight:700},"& > span":{color:ne.purple[900]},[e.breakpoints.down("md")]:{padding:"12px 0px"}})}},MuiAccordion:{styleOverrides:{root:({theme:e})=>({"&:first-of-type, &:last-of-type":{borderRadius:e.shape.borderRadiusMedium}})}},MuiAccordionSummary:{styleOverrides:{root:{"& > .MuiAccordionSummary-content.Mui-expanded":{margin:"12px 0"},"&.Mui-expanded":{minHeight:"0"}}}},MuiSwitch:{styleOverrides:{switchBase:{zIndex:1,"&:not(.Mui-checked) .MuiTouchRipple-child":{color:ne.grey[500]}}}},MuiIcon:{styleOverrides:{colorDisabled:{color:ne.grey[600]}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-disabled":{opacity:.66}}}},MuiChip:{styleOverrides:{root:({ownerState:e,theme:t})=>({...e.variant==="outlined"&&e.size==="small"&&{borderRadius:t.shape.borderRadius,margin:0,borderWidth:1,borderStyle:"solid",fontWeight:t.typography.fontWeightBold,fontSize:t.typography.caption.fontSize,...e.color==="success"&&{backgroundColor:ne.green[50],borderColor:t.palette.success.border,color:t.palette.success.dark},...e.color==="default"&&{color:t.palette.text.secondary},...e.color==="error"&&{color:t.palette.error.dark,background:t.palette.error.light,borderColor:t.palette.error.border}}})}},MuiInputBase:{styleOverrides:{root:{backgroundColor:"#fff"}}},MuiPaper:{styleOverrides:{root:{backgroundColor:"#fff"}}},MuiAppBar:{styleOverrides:{root:{color:ne.black}}}}}),Pt={main:ne.darkblue[900],secondary:ne.darkblue[800],textColor:"#ffffffe6",hover:"rgb(255, 255, 255, 0.7)"},LQ=Hg({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)"},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},h3:{fontSize:"1rem",fontWeight:"700"},caption:{fontSize:`${12/16}rem`}},fontSizes:{largeHeader:"2.25rem",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},palette:{primary:{main:Pt.textColor,light:ne.purple[700],dark:ne.purple[900]},secondary:{main:ne.purple[800],light:ne.purple[700],dark:ne.purple[900]},info:{light:ne.blue[50],main:ne.blue[500],dark:ne.blue[700],border:ne.blue[200]},success:{light:ne.green[50],main:ne.green[600],dark:Pt.main,border:ne.green[300]},warning:{light:ne.orange[100],main:ne.orange[800],dark:ne.orange[900],border:ne.orange[500]},error:{light:ne.red[50],main:ne.red[700],dark:ne.red[800],border:ne.red[300]},background:{paper:Pt.main},divider:Pt.secondary,dividerAlternative:ne.grey[400],tableHeaderHover:ne.darkblue[700],tableHeaderBackground:Pt.secondary,tableHeaderColor:Pt.textColor,highlight:"#FFEACC",secondaryContainer:Pt.secondary,contentWrapper:ne.darkblue[800],formBackground:Pt.main,formSidebar:ne.darkblue[1e3],headerBackground:Pt.main,footerBackground:Pt.main,sidebarContainer:"rgba(32,32,33, 0.2)",codebox:ne.darkblue[600],featureMetaData:ne.darkblue[1e3],playgroundBackground:ne.darkblue[600],playgroundFormBackground:Pt.secondary,standaloneBackground:ne.black,featureStrategySegmentChipBackground:Pt.secondary,featureSegmentSearchBackground:Pt.secondary,dialogHeaderBackground:Pt.secondary,dialogHeaderText:Pt.textColor,lightBorder:ne.darkblue[500],constraintAccordion:{editBackground:ne.darkblue[600],background:Pt.secondary,operatorBackground:Pt.main},standaloneBannerGradient:{from:ne.darkblue[1e3],to:ne.black},projectCard:{hover:Pt.secondary,textColor:Pt.textColor},formSidebarTextColor:Pt.textColor,checkmarkBadge:Pt.secondary,inputLabelBackground:"transparent",grey:ne.grey,text:{primary:Pt.textColor,secondary:ne.grey[800],disabled:ne.grey[600]},code:{main:"#0b8c8f",diffAdd:"green",diffSub:"red",diffNeutral:"black",edited:"blue"},neutral:{light:ne.darkblue[500],main:ne.grey[700],dark:ne.grey[800],border:ne.grey[500]},activityIndicators:{primary:Pt.secondary,unknown:Pt.secondary,recent:Pt.secondary,inactive:Pt.secondary,abandoned:Pt.secondary},tertiary:{light:Pt.secondary,main:ne.grey[400],dark:ne.grey[600],background:"white",contrast:ne.grey[300]},inactiveIcon:ne.grey[600]},components:{MuiAppBar:{styleOverrides:{root:{color:Pt.textColor}}},MuiInputLabel:{styleOverrides:{root:{color:Pt.textColor}}},MuiIconButton:{styleOverrides:{root:{color:ne.white,"&:hover":{backgroundColor:Pt.hover},"&.Mui-disabled":{"& .MuiSvgIcon-root":{color:ne.grey[700]}}}}},MuiLink:{styleOverrides:{root:{color:ne.white,"&:hover":{textDecoration:"none"}}}},MuiBreadcrumbs:{styleOverrides:{root:{color:Pt.textColor,fontSize:"0.875rem","& a":{color:Pt.textColor,textDecoration:"underline","&:hover":{textDecoration:"none"}}}}},MuiTableHead:{styleOverrides:{root:{background:"transparent","& th":{background:ne.grey[200]}}}},MuiTableRow:{styleOverrides:{root:{"&.MuiTableRow-hover:hover":{background:Pt.secondary}}}},MuiTableCell:{styleOverrides:{root:{borderBottomColor:Pt.main}}},MuiAlert:{styleOverrides:{root:{borderRadius:"8px",a:{color:"inherit"},"&.MuiAlert-standardInfo":{backgroundColor:ne.blue[50],color:ne.blue[700],border:`1px solid ${ne.blue[200]}`,"& .MuiAlert-icon .MuiSvgIcon-root":{color:ne.blue[500]}},"&.MuiAlert-standardSuccess":{backgroundColor:ne.green[50],color:ne.green[800],border:`1px solid ${ne.green[300]}`,"& .MuiAlert-icon .MuiSvgIcon-root":{color:ne.green[500]}},"&.MuiAlert-standardWarning":{backgroundColor:ne.orange[100],color:ne.orange[900],border:`1px solid ${ne.orange[500]}`,"& .MuiAlert-icon .MuiSvgIcon-root":{color:ne.orange[800]}},"&.MuiAlert-standardError":{backgroundColor:ne.red[50],color:ne.red[800],border:`1px solid ${ne.red[300]}`,"& .MuiAlert-icon .MuiSvgIcon-root":{color:ne.red[700]}}}}},MuiButton:{styleOverrides:{root:{"&.Mui-disabled":{backgroundColor:ne.grey[400]}}}},MuiSvgIcon:{styleOverrides:{root:{color:Pt.textColor}}},MuiTabs:{styleOverrides:{root:{backgroundColor:Pt.main,color:Pt.textColor,"& .MuiTabs-indicator":{height:"4px"}}}},MuiTab:{styleOverrides:{root:{color:Pt.textColor,fontSize:"1rem",textTransform:"none",fontWeight:400,minHeight:"62px","&:hover":{backgroundColor:Pt.secondary},"&.Mui-selected":{color:Pt.textColor,fontWeight:700},"& > span":{color:ne.purple[900]}}}},MuiAccordionSummary:{styleOverrides:{root:{"& > .MuiAccordionSummary-content.Mui-expanded":{margin:"12px 0"}}}},MuiSwitch:{styleOverrides:{switchBase:{zIndex:1,"&:not(.Mui-checked) .MuiTouchRipple-child":{color:ne.grey[500]}}}},MuiIcon:{styleOverrides:{root:{color:ne.white},colorDisabled:{color:ne.white[600]}}},MuiMenu:{styleOverrides:{root:{".MuiMenu-list":{backgroundColor:ne.darkblue[600]}}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-disabled":{opacity:.66},"&:hover":{backgroundColor:Pt.secondary}}}},MuiInputBase:{styleOverrides:{root:{backgroundColor:ne.darkblue[1e3],".MuiSvgIcon-root":{color:"#fff"}}}},MuiPaper:{styleOverrides:{root:{backgroundColor:Pt.main,color:Pt.textColor}}}}});var Cm={},MQ={get exports(){return Cm},set exports(e){Cm=e}},p4={};/**
246
- * @license React
247
- * use-sync-external-store-shim.production.min.js
248
- *
249
- * Copyright (c) Facebook, Inc. and its affiliates.
250
- *
251
- * This source code is licensed under the MIT license found in the
252
- * LICENSE file in the root directory of this source tree.
253
- */var Fc=p;function NQ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DQ=typeof Object.is=="function"?Object.is:NQ,BQ=Fc.useState,FQ=Fc.useEffect,zQ=Fc.useLayoutEffect,jQ=Fc.useDebugValue;function UQ(e,t){var n=t(),r=BQ({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return zQ(function(){o.value=n,o.getSnapshot=t,p1(o)&&a({inst:o})},[e,n,t]),FQ(function(){return p1(o)&&a({inst:o}),e(function(){p1(o)&&a({inst:o})})},[e]),jQ(n),n}function p1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!DQ(e,n)}catch{return!0}}function WQ(e,t){return t()}var HQ=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?WQ:UQ;p4.useSyncExternalStore=Fc.useSyncExternalStore!==void 0?Fc.useSyncExternalStore:HQ;(function(e){e.exports=p4})(MQ);const mi=new WeakMap,f1={},Yf={},Xi=()=>{},Ho=Xi(),$h=Object,xn=e=>e===Ho,$a=e=>typeof e=="function",Ti=(e,t)=>({...e,...t}),ux="undefined",iv=typeof window!=ux,xb=typeof document!=ux,VQ=()=>iv&&typeof window.requestAnimationFrame!=ux,f4=(e,t)=>{const n=mi.get(e);return[()=>e.get(t)||f1,r=>{if(!xn(t)){const o=e.get(t);t in Yf||(Yf[t]=o),n[5](t,Ti(o,r),o||f1)}},n[6],()=>!xn(t)&&t in Yf?Yf[t]:e.get(t)||f1]},Xf=new WeakMap;let GQ=0;const fp=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if($h(e)===e&&!r&&n!=RegExp){if(o=Xf.get(e),o)return o;if(o=++GQ+"~",Xf.set(e,o),n==Array){for(o="@",a=0;a<e.length;a++)o+=fp(e[a])+",";Xf.set(e,o)}if(n==$h){o="#";const i=$h.keys(e).sort();for(;!xn(a=i.pop());)xn(e[a])||(o+=a+":"+fp(e[a])+",");Xf.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o};let Cb=!0;const qQ=()=>Cb,[Eb,Tb]=iv&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Xi,Xi],KQ=()=>{const e=xb&&document.visibilityState;return xn(e)||e!=="hidden"},YQ=e=>(xb&&document.addEventListener("visibilitychange",e),Eb("focus",e),()=>{xb&&document.removeEventListener("visibilitychange",e),Tb("focus",e)}),XQ=e=>{const t=()=>{Cb=!0,e()},n=()=>{Cb=!1};return Eb("online",t),Eb("offline",n),()=>{Tb("online",t),Tb("offline",n)}},JQ={isOnline:qQ,isVisible:KQ},QQ={initFocus:YQ,initReconnect:XQ},Zk=!zt.useId,hp=!iv||"Deno"in window,ZQ=e=>VQ()?window.requestAnimationFrame(e):setTimeout(e,1),Oh=hp?p.useEffect:p.useLayoutEffect,h1=typeof navigator<"u"&&navigator.connection,eA=!hp&&h1&&(["slow-2g","2g"].includes(h1.effectiveType)||h1.saveData),dx=e=>{if($a(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?fp(e):"",[e,t]};let eZ=0;const kb=()=>++eZ,h4=0,m4=1,g4=2;var m1={__proto__:null,FOCUS_EVENT:h4,RECONNECT_EVENT:m4,MUTATE_EVENT:g4};async function v4(...e){const[t,n,r,o]=e,a=Ti({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=a.populateCache;const l=a.rollbackOnError;let c=a.optimisticData;const u=a.revalidate!==!1,d=m=>typeof l=="function"?l(m):l!==!1,f=a.throwOnError;if($a(n)){const m=n,y=[],g=t.keys();for(let v=g.next();!v.done;v=g.next()){const b=v.value;!b.startsWith("$inf$")&&m(t.get(b)._k)&&y.push(b)}return Promise.all(y.map(h))}return h(n);async function h(m){const[y]=dx(m);if(!y)return;const[g,v]=f4(t,y),[b,w,x]=mi.get(t),E=b[y],A=()=>u&&(delete x[y],E&&E[0])?E[0](g4).then(()=>g().data):g().data;if(e.length<3)return A();let k=r,_;const O=kb();w[y]=[O,0];const L=!xn(c),I=g(),$=I.data,D=I._c,F=xn(D)?$:D;if(L&&(c=$a(c)?c(F):c,v({data:c,_c:F})),$a(k))try{k=k(F)}catch(Y){_=Y}if(k&&$a(k.then))if(k=await k.catch(Y=>{_=Y}),O!==w[y][0]){if(_)throw _;return k}else _&&L&&d(_)&&(i=!0,k=F,v({data:k,_c:Ho}));i&&(_||($a(i)&&(k=i(k,F)),v({data:k,_c:Ho}))),w[y][1]=kb();const U=await A();if(v({_c:Ho}),_){if(f)throw _;return}return i?U:k}}const tA=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},y4=(e,t)=>{if(!mi.has(e)){const n=Ti(QQ,t),r={},o=v4.bind(Ho,e);let a=Xi;const i={},l=(d,f)=>{const h=i[d]||[];return i[d]=h,h.push(f),()=>h.splice(h.indexOf(f),1)},c=(d,f,h)=>{e.set(d,f);const m=i[d];if(m)for(let y=m.length;y--;)m[y](f,h)},u=()=>{if(!mi.has(e)&&(mi.set(e,[r,{},{},{},o,c,l]),!hp)){const d=n.initFocus(setTimeout.bind(Ho,tA.bind(Ho,r,h4))),f=n.initReconnect(setTimeout.bind(Ho,tA.bind(Ho,r,m4)));a=()=>{d&&d(),f&&f(),mi.delete(e)}}};return u(),[e,o,u,a]}return[e,mi.get(e)[4]]},tZ=(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,l=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!xn(a)&&i>a||setTimeout(r,l,o)},nZ=(e,t)=>fp(e)==fp(t),[px,Hr]=y4(new Map),b4=Ti({onLoadingSlow:Xi,onSuccess:Xi,onError:Xi,onErrorRetry:tZ,onDiscarded:Xi,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:eA?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:eA?5e3:3e3,compare:nZ,isPaused:()=>!1,cache:px,mutate:Hr,fallback:{}},JQ),w4=(e,t)=>{const n=Ti(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=Ti(o,i))}return n},Ab=p.createContext({}),rZ=e=>{const{value:t}=e,n=p.useContext(Ab),r=$a(t),o=p.useMemo(()=>r?t(n):t,[r,n,t]),a=p.useMemo(()=>r?o:w4(n,o),[r,n,o]),i=o&&o.provider,[l]=p.useState(()=>i?y4(i(a.cache||px),o):Ho);return l&&(a.cache=l[0],a.mutate=l[1]),Oh(()=>{if(l)return l[2]&&l[2](),l[3]},[]),p.createElement(Ab.Provider,Ti(e,{value:a}))},S4=iv&&window.__SWR_DEVTOOLS_USE__,oZ=S4?window.__SWR_DEVTOOLS_USE__:[],aZ=()=>{S4&&(window.__SWR_DEVTOOLS_REACT__=zt)},x4=e=>$a(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],iZ=()=>Ti(b4,p.useContext(Ab)),sZ=e=>(t,n,r)=>e(t,n&&((...a)=>{const i=dx(t)[0],[,,,l]=mi.get(px),c=l[i];return c?(delete l[i],c):n(...a)}),r),lZ=oZ.concat(sZ),cZ=e=>function(...n){const r=iZ(),[o,a,i]=x4(n),l=w4(r,i);let c=e;const{use:u}=l,d=(u||[]).concat(lZ);for(let f=d.length;f--;)c=d[f](c);return c(o,a||l.fetcher||null,l)},uZ=(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())}},ORe=(e,t)=>(...n)=>{const[r,o,a]=x4(n),i=(a.use||[]).concat(t);return e(r,o,{...a,use:i})};aZ();const g1={dedupe:!0},dZ=(e,t,n)=>{const{cache:r,compare:o,suspense:a,fallbackData:i,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:h}=n,[m,y,g]=mi.get(r),[v,b]=dx(e),w=p.useRef(!1),x=p.useRef(!1),E=p.useRef(v),A=p.useRef(t),k=p.useRef(n),_=()=>k.current,O=()=>_().isVisible()&&_().isOnline(),[L,I,$,D]=f4(r,v),F=p.useRef({}).current,U=xn(i)?n.fallback[v]:i,Y=(me,Ve)=>{let Ge=!0;for(const De in F){const he=De;he==="data"?o(Ve[he],me[he])||xn(me[he])&&o(Ve[he],re)||(Ge=!1):Ve[he]!==me[he]&&(Ge=!1)}return Ge},V=p.useMemo(()=>{const me=(()=>!v||!t?!1:xn(l)?_().isPaused()||a?!1:xn(c)?!0:c:l)(),Ve=he=>{const Et=Ti(he);return delete Et._k,me?{isValidating:!0,isLoading:!0,...Et}:Et};let Ge=Ve(L());const De=Ve(D());return[()=>{const he=Ve(L());return Y(he,Ge)?Ge:Ge=he},()=>De]},[r,v]),te=Cm.useSyncExternalStore(p.useCallback(me=>$(v,(Ve,Ge)=>{Y(Ge,Ve)||me()}),[r,v]),V[0],V[1]),Z=!w.current,W=m[v]&&m[v].length>0,z=te.data,R=xn(z)?U:z,N=te.error,ee=p.useRef(R),re=h?xn(z)?ee.current:z:R,Se=(()=>W&&!xn(N)?!1:Z&&!xn(l)?l:_().isPaused()?!1:a?xn(R)?!1:c:xn(R)||c)(),ce=!!(v&&t&&Z&&Se),Ce=xn(te.isValidating)?ce:te.isValidating,xe=xn(te.isLoading)?ce:te.isLoading,Ee=p.useCallback(async me=>{const Ve=A.current;if(!v||!Ve||x.current||_().isPaused())return!1;let Ge,De,he=!0;const Et=me||{},qe=!g[v]||!Et.dedupe,lt=()=>Zk?!x.current&&v===E.current&&w.current:v===E.current,Rt={isValidating:!1,isLoading:!1},dt=()=>{I(Rt)},nt=()=>{const xt=g[v];xt&&xt[1]===De&&delete g[v]},Lt={isValidating:!0};xn(L().data)&&(Lt.isLoading=!0);try{if(qe&&(I(Lt),n.loadingTimeout&&xn(L().data)&&setTimeout(()=>{he&&lt()&&_().onLoadingSlow(v,n)},n.loadingTimeout),g[v]=[Ve(b),kb()]),[Ge,De]=g[v],Ge=await Ge,qe&&setTimeout(nt,n.dedupingInterval),!g[v]||g[v][1]!==De)return qe&&lt()&&_().onDiscarded(v),!1;Rt.error=Ho;const xt=y[v];if(!xn(xt)&&(De<=xt[0]||De<=xt[1]||xt[1]===0))return dt(),qe&&lt()&&_().onDiscarded(v),!1;const pe=L().data;Rt.data=o(pe,Ge)?pe:Ge,qe&&lt()&&_().onSuccess(Ge,v,n)}catch(xt){nt();const pe=_(),{shouldRetryOnError:Te}=pe;pe.isPaused()||(Rt.error=xt,qe&&lt()&&(pe.onError(xt,v,pe),(Te===!0||$a(Te)&&Te(xt))&&O()&&pe.onErrorRetry(xt,v,pe,Ee,{retryCount:(Et.retryCount||0)+1,dedupe:!0})))}return he=!1,dt(),!0},[v,r]),et=p.useCallback((...me)=>v4(r,E.current,...me),[]);if(Oh(()=>{A.current=t,k.current=n,xn(z)||(ee.current=z)}),Oh(()=>{if(!v)return;const me=Ee.bind(Ho,g1);let Ve=0;const De=uZ(v,m,he=>{if(he==m1.FOCUS_EVENT){const Et=Date.now();_().revalidateOnFocus&&Et>Ve&&O()&&(Ve=Et+_().focusThrottleInterval,me())}else if(he==m1.RECONNECT_EVENT)_().revalidateOnReconnect&&O()&&me();else if(he==m1.MUTATE_EVENT)return Ee()});return x.current=!1,E.current=v,w.current=!0,I({_k:b}),Se&&(xn(R)||hp?me():ZQ(me)),()=>{x.current=!0,De()}},[v]),Oh(()=>{let me;function Ve(){const De=$a(u)?u(R):u;De&&me!==-1&&(me=setTimeout(Ge,De))}function Ge(){!L().error&&(d||_().isVisible())&&(f||_().isOnline())?Ee(g1).then(Ve):Ve()}return Ve(),()=>{me&&(clearTimeout(me),me=-1)}},[u,d,f,v]),p.useDebugValue(re),a&&xn(R)&&v)throw!Zk&&hp?new Error("Fallback data is required when using suspense in SSR."):(A.current=t,k.current=n,x.current=!1,xn(N)?Ee(g1):N);return{mutate:et,get data(){return F.data=!0,re},get error(){return F.error=!0,N},get isValidating(){return F.isValidating=!0,Ce},get isLoading(){return F.isLoading=!0,xe}}},pZ=$h.defineProperty(rZ,"defaultValue",{value:b4});var vn=cZ(dZ);const jt=(e,t=$i)=>fx(t,e),qs=(e,t=$i)=>fx(t,e),fZ=(e=hZ())=>e==="::baseUriPath::"?"":fx(e),fx=(...e)=>["",...e].join("/").replace(/\/+$/g,"").replace(/\/+/g,"/"),hZ=()=>{const e=document.querySelector('meta[name="baseUriPath"]');return(e==null?void 0:e.content)??""},$i=fZ(),xa=Ke(s("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),mZ=Ke(s("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"),gZ=Ke(s("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"),vZ=Ke(s("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"),yZ=Ke(s("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),bZ=Ke(s("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"),Em=Ke(s("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),wZ=Ke(s("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"),SZ=Ke(s("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"),xZ=Ke(s("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"),sv=Ke(s("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"),C4=Ke(s("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"),E4=Ke(s("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"),na=Ke(s("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"),CZ=Ke(s("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"),T4=Ke(s("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"),EZ=Ke(s("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"),Ja=Ke(s("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"),TZ=Ke(s("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"),k4=Ke(s("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"),kZ=Ke(s("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord"),A4=Ke(s("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"),AZ=Ke(s("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),_Z=Ke(s("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"),hx=Ke(s("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"),RZ=Ke(s("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"),Ld=Ke(s("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"),_b=Ke(s("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown"),Rb=Ke(s("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDownOutlined"),PZ=Ke(s("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),IZ=Ke(s("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"),$Z=Ke(s("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"),OZ=Ke(s("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"),LZ=Ke(s("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"),MZ=Ke(s("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}),"Pause"),NZ=Ke(s("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),DZ=Ke(s("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"),nA=Ke(s("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"),mx=Ke(s("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"),gx=Ke(s("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"),vx=Ke(s("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"),BZ=Ke(s("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"),FZ=Ke(s("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"),zZ=Ke(s("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"),jZ=Ke(s("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"),_4=Ke(s("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"),R4=Ke(s("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"),UZ=Ke(s("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"),WZ=Ke(s("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"),HZ=Ke(s("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning"),P4=Ke([s("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2z"},"0"),s("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")],"WarningAmber"),rA={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:$Z,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},yx=400,Kp=200,VZ=201,I4=404,$4=403,O4=401;class L4 extends Error{constructor(n=O4){super("Authentication required");ui(this,"statusCode");this.name="AuthenticationError",this.statusCode=n}}class GZ extends Error{constructor(n=$4,r={}){var o;super((o=r.details)!=null&&o.length?r.details[0].message:"You cannot perform this action");ui(this,"statusCode");ui(this,"body");this.name="ForbiddenError",this.statusCode=n,this.body=r}}class bx extends Error{constructor(n=yx,r={}){var o;super((o=r.details)!=null&&o.length?r.details[0].message:"Bad request");ui(this,"statusCode");ui(this,"body");this.name="BadRequestError",this.statusCode=n,this.body=r}}class wx extends Error{constructor(n=I4){super("The requested resource could not be found.");ui(this,"statusCode");this.name="NotFoundError",this.statusCode=n}}class M4 extends Error{constructor(n,r,o){super(`An error occurred while trying to get ${n}.`);ui(this,"status");ui(this,"body");this.name="ResponseError",this.status=r,this.body=o}}const Pb={Accept:"application/json","Content-Type":"application/json"},Tn=e=>async t=>{if(!t.ok)throw new M4(e,t.status,await qZ(t));return t},qZ=async e=>{try{return await e.json()}catch{return e.statusText}},Nt=()=>{const e=jt("api/admin/ui-config"),{data:t,error:n,mutate:r}=vn(e,KZ),o=p.useCallback(()=>{var c,u;return!Boolean((u=(c=t==null?void 0:t.versionInfo)==null?void 0:c.current)==null?void 0:u.enterprise)},[t]),a=p.useCallback(()=>{var c;return((c=t==null?void 0:t.environment)==null?void 0:c.toLowerCase())==="pro"},[t]),i=p.useCallback(()=>{var c,u,d;return((c=t==null?void 0:t.environment)==null?void 0:c.toLowerCase())!=="pro"&&Boolean((d=(u=t==null?void 0:t.versionInfo)==null?void 0:u.current)==null?void 0:d.enterprise)},[t]);return{uiConfig:p.useMemo(()=>({...rA,...t,flags:{...rA.flags,...t==null?void 0:t.flags}}),[t]),loading:!n&&!t,error:n,refetch:r,isOss:o,isPro:a,isEnterprise:i}},KZ=e=>fetch(e).then(Tn("configuration")).then(t=>t.json()),N4=()=>{const{themeMode:e,setThemeMode:t}=p.useContext(As),{uiConfig:n}=Nt(),r=`${n.baseUriPath}:unleash-theme`;return{resolveTheme:()=>e==="light"?Bc:LQ,onSetThemeMode:()=>{t(i=>i==="light"?(Dc(r,"dark"),"dark"):(Dc(r,"light"),"light"))},themeMode:e}},YZ=J5({key:"mui",prepend:!0}),XZ=({children:e})=>{const{resolveTheme:t}=N4();return s(JB,{value:YZ,children:T(A7,{theme:t(),children:[s($V,{}),e]})})};var JZ=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])})},oA={error:null},QZ=function(e){GS(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=e.call.apply(e,[this].concat(a))||this,r.state=oA,r.resetErrorBoundary=function(){for(var l,c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];r.props.onReset==null||(l=r.props).onReset.apply(l,u),r.reset()},r}t.getDerivedStateFromError=function(o){return{error:o}};var n=t.prototype;return n.reset=function(){this.setState(oA)},n.componentDidCatch=function(o,a){var i,l;(i=(l=this.props).onError)==null||i.call(l,o,a)},n.componentDidUpdate=function(o,a){var i=this.state.error,l=this.props.resetKeys;if(i!==null&&a.error!==null&&JZ(o.resetKeys,l)){var c,u;(c=(u=this.props).onResetKeysChange)==null||c.call(u,o.resetKeys,l),this.reset()}},n.render=function(){var o=this.state.error,a=this.props,i=a.fallbackRender,l=a.FallbackComponent,c=a.fallback;if(o!==null){var u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(p.isValidElement(c))return c;if(typeof i=="function")return i(u);if(l)return p.createElement(l,u);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(p.Component);const X=({condition:e,show:t,elseShow:n})=>{const r=a=>{const i=a();return i||(console.warn("Nothing was returned from your render function. Verify that you are returning a valid react component"),null)},o=a=>typeof a=="function";return e?o(t)?r(t):t:!e&&n?o(n)?r(n):n:null},ZZ="NAVIGATE_TO_CREATE_FEATURE",LRe="NAVIGATE_TO_CREATE_GROUP",eee="NAVIGATE_TO_CREATE_SEGMENT",MRe="CREATE_API_TOKEN_BUTTON",tee="CF_NAME_ID",nee="CF_TYPE_ID",ree="CF_DESC_ID",oee="CF_CREATE_BTN_ID",NRe="UG_NAME_ID",DRe="UG_DESC_ID",BRe="UG_USERS_ID",FRe="UG_CREATE_BTN_ID",zRe="UG_SAVE_BTN_ID",jRe="UG_EDIT_BTN_ID",URe="UG_DELETE_BTN_ID",WRe="UG_EDIT_USERS_BTN_ID",HRe="UG_REMOVE_USER_BTN_ID",VRe="PA_ASSIGN_BUTTON_ID",GRe="PA_USERS_GROUPS_ID",qRe="PA_ROLE_ID",KRe="PA_ASSIGN_CREATE_ID",YRe="PA_USERS_GROUPS_TITLE_ID",XRe="PA_EDIT_BUTTON_ID",JRe="PA_REMOVE_BUTTON_ID",aee="SEGMENT_NAME_ID",iee="SEGMENT_DESC_ID",see="SEGMENT_NEXT_BTN_ID",lee="SEGMENT_CREATE_BTN_ID",cee="SEGMENT_SAVE_BTN_ID",uee="SEGMENT_DELETE_BTN_ID",dee="SEGMENT_DIALOG_NAME_ID",lv="LOGIN_EMAIL_ID",cv="LOGIN_BUTTON",D4="LOGIN_PASSWORD_ID",pee="SSO_LOGIN_BUTTON",fee="FORGOTTEN_PASSWORD_FIELD",hee="INVALID_TOKEN_BUTTON",QRe="FEATURE_ENVIRONMENT_ACCORDION",aA="ADD_NEW_STRATEGY_ID",mee="ROLLOUT_SLIDER_ID",gee="DIALOGUE_CONFIRM_ID",vee="FLEXIBLE_STRATEGY_STICKINESS_ID",yee="FLEXIBLE_STRATEGY_GROUP_ID",B4="SELECT_ITEM_ID",bee="STRATEGY_INPUT_LIST",wee="ADD_TO_STRATEGY_INPUT_LIST",See="STRATEGY_FORM_SUBMIT_ID",ZRe="STRATEGY_FORM_REMOVE_ID",ePe="STRATEGY_FORM_COPY_ID",F4="INPUT_ERROR_TEXT",xee="HEADER_USER_AVATAR",Cee="SIDEBAR_MODAL_ID",Eee="AUTH_PAGE_ID",Tee="ANNOUNCER_ELEMENT_TEST_ID",Sx="INSTANCE_STATUS_BAR_ID",kee="TOAST_TEXT",tPe="LARGE_NUMBER_PRETTIFIED",nPe="IMPORT_BUTTON",rPe="CODE_EDITOR_TAB",oPe="IMPORT_ENVIRONMENT",aPe="CODE_TEXT_FIELD",iPe="VALIDATE_BUTTON",sPe="IMPORT_CONFIGURATION_BUTTON",Aee=C(KV)(({theme:e,maxWidth:t})=>({"& .MuiDialog-paper":{borderRadius:e.shape.borderRadiusLarge,maxWidth:t?void 0:e.spacing(85),backgroundColor:"transparent"}})),_ee=C(hG)(({theme:e})=>({backgroundColor:e.palette.primary.main,color:e.palette.text.tertiaryContrast,padding:e.spacing(3.5,6),fontWeight:e.fontWeight.medium})),Ree=C("div")(({theme:e})=>({padding:e.spacing(6),backgroundColor:e.palette.background.paper})),Pee=C(cG)(({theme:e})=>({padding:0,marginBottom:e.spacing(6)})),Iee=C(eG)(({theme:e})=>({gap:e.spacing(2),padding:0})),lr=({children:e,open:t,onClick:n,onClose:r,title:o,primaryButtonText:a,disabledPrimaryButton:i=!1,secondaryButtonText:l,maxWidth:c,fullWidth:u=!1,formId:d,permissionButton:f})=>{const h=d?m=>{m.preventDefault(),n&&n(m)}:n;return T(Aee,{open:t,onClose:r,fullWidth:u,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",maxWidth:c,children:[s(_ee,{children:o}),T(Ree,{children:[s(X,{condition:Boolean(e),show:s(Pee,{children:e})}),T(Iee,{children:[s(X,{condition:Boolean(f),show:f,elseShow:s(X,{condition:Boolean(n),show:s(rt,{form:d,color:"primary",variant:"contained",onClick:h,autoFocus:!d,disabled:i,"data-testid":gee,type:d?"submit":"button",children:a||"Yes, I'm sure"})})}),s(X,{condition:Boolean(r),show:s(rt,{onClick:r,children:l||"No, take me back"})})]})]})]})},z4=p.createContext(null),Oi=()=>{const e=p.useContext(z4);return{trackEvent:p.useCallback((n,r,o)=>{e!=null&&e.trackEvent?e.trackEvent(n,r,o):r!=null&&r.callback&&r.callback()},[e])}},$ee=({error:e})=>{const t=ut(),{trackEvent:n}=Oi();return p.useEffect(()=>{var a;const{message:r,stack:o="unknown"}=e;n("unknown_ui_error",{props:{location:((a=window==null?void 0:window.location)==null?void 0:a.href)||"unknown",message:r,stack:o}})},[]),s(Je,{sx:{backgroundColor:"neutral.light",height:"100%",p:4},children:T(lr,{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:[s(Je,{component:"pre",sx:{color:"error.main"},children:e.message}),s(X,{condition:Boolean(e.stack),show:s(Je,{component:"pre",sx:{color:"error.main"},children:e.stack})})]})})};var xx={},hn={},Oee={get exports(){return hn},set exports(e){hn=e}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Oee);var v1={};const Lee=LP(gj);var iA;function kn(){return iA||(iA=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Lee}(v1)),v1}const An=LP(fN);var Mee=hn;Object.defineProperty(xx,"__esModule",{value:!0});var uv=xx.default=void 0,Nee=Mee(kn()),Dee=An,Bee=(0,Nee.default)((0,Dee.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");uv=xx.default=Bee;const Fee=e=>p.createElement("svg",{width:23,height:23,viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("rect",{x:.288513,y:.288574,width:7.13461,height:22.4231,fill:"#1A4049"}),p.createElement("rect",{x:15.5769,y:.288574,width:7.13461,height:22.4231,fill:"#1A4049"}),p.createElement("path",{d:"M22.7115 15.5771L22.7115 22.7118L0.28841 22.7118L0.28841 15.5771L22.7115 15.5771Z",fill:"#1A4049"}),p.createElement("rect",{x:15.5769,y:15.5771,width:7.13461,height:7.13461,fill:"#817AFE"})),Cx=({mounted:e,enter:t,start:n,leave:r,children:o,onStart:a,onEnd:i})=>{const[l,c]=p.useState(e),[u,d]=p.useState({}),f=p.useRef(null);return p.useEffect(()=>{(f.current!==e||f===null)&&(e?(c(!0),a==null||a(),setTimeout(()=>{d(t)},50)):(r||c(!1),d(r||{})))},[e,t,a,r]),s(X,{condition:l,show:s("div",{onTransitionEnd:()=>{e||(c(!1),i==null||i())},style:{...n,...u},children:o})})},zee=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 Tm(e){return Object.keys(e)}function j4(e,t){if(!e)throw new Error(t)}function U4(e,t){return t}const Ex=e=>{const t=e.length;let n=0,r="";for(;n<t;n++){const o=e[n];if(o==null)continue;let a;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))a=Ex(o);else{j4(!U4(o,!1)),a="";for(const i in o)o[i]&&i&&(a&&(a+=" "),a+=i)}break}default:a=o}a&&(r&&(r+=" "),r+=a)}return r};function jee(e,t){const n=p.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 Uee(e){return e instanceof Object&&!("styles"in e)&&!("length"in e)&&!("__emotion_styles"in e)}const{createCssAndCx:Wee}=(()=>{function e(n,r,o){const a=[],i=t$(n,a,o);return a.length<2?o:i+r(a)}function t(n){const{cache:r}=n,o=(...i)=>{const l=Og(i,r.registered);AS(r,l,!1);const c=`${r.key}-${l.name}`;e:{const u=i[0];if(!Uee(u))break e;sA.saveClassNameCSSObjectMapping(r,c,u)}return c};return{css:o,cx:(...i)=>{const l=Ex(i),c=sA.fixClassName(r,l,o);return e(r.registered,o,c)}}}return{createCssAndCx:t}})();function Hee(e){const{useCache:t}=e;function n(){const r=t(),{css:o,cx:a}=jee(()=>Wee({cache:r}),[r]);return{css:o,cx:a}}return{useCssAndCx:n}}const sA=(()=>{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,a])=>{if(a===void 0)return o;let i;if(r)i={"&&":a};else{i=o;for(const l in a)if(l.startsWith("@media")){r=!0;break}}return i})}return(n,r,o)=>{const a=e.get(n);return Ex(t(r.split(" ").map(i=>[i,a==null?void 0:a.get(i)])).map(i=>typeof i=="string"?i:o(i)))}})()}})();function Jf(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 lA(e,t,n){if(!(t instanceof Object))return e;const r={};return Tm(e).forEach(o=>r[o]=n(e[o],t[o])),Tm(t).forEach(o=>{if(o in e)return;const a=t[o];typeof a=="string"&&(r[o]=a)}),r}let Vee=0;function W4(e){const{useTheme:t,cache:n}=e;function r(){var l;const c=QB(),u=qee(),d=(l=n??u)!==null&&l!==void 0?l: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(`
254
- `));return d}const{useCssAndCx:o}=Hee({useCache:r});function a(l){const{name:c,uniqId:u=Vee++}=l??{},d=typeof c!="object"?c:Object.keys(c)[0];return function(f){const h=typeof f=="function"?f:()=>f;return function(y,g){var v,b;const w=t(),{css:x,cx:E}=o(),A=r();let k=p.useMemo(()=>{const O={},L=typeof Proxy<"u"&&new Proxy({},{get:(D,F)=>(typeof F=="symbol"&&j4(!1),O[F]=`${A.key}-${u}${d!==void 0?`-${d}`:""}-${F}-ref`)}),I=h(w,y,L||{}),$=zee(Tm(I).map(D=>{const F=I[D];return F.label||(F.label=`${d!==void 0?`${d}-`:""}${D}`),[D,`${x(F)}${U4(D,D in O)?` ${O[D]}`:""}`]}));return Tm(O).forEach(D=>{D in $||($[D]=O[D])}),$},[A,x,E,w,Jf(y)]);const _=g==null?void 0:g.props.classes;k=p.useMemo(()=>lA(k,_,E),[k,Jf(_),E]);{let O;try{O=d!==void 0?(b=(v=w.components)===null||v===void 0?void 0:v[d])===null||b===void 0?void 0:b.styleOverrides:void 0}catch{}const L=p.useMemo(()=>{if(!O)return;const I={};for(const $ in O){const D=O[$];D instanceof Object&&(I[$]=x(typeof D=="function"?D(Object.assign({theme:w,ownerState:g==null?void 0:g.ownerState},g==null?void 0:g.props)):D))}return I},[O===void 0?void 0:JSON.stringify(O),Jf(g==null?void 0:g.props),Jf(g==null?void 0:g.ownerState),x]);k=p.useMemo(()=>lA(k,L,E),[k,L,E])}return{classes:k,theme:w,css:x,cx:E}}}}function i(){const l=t(),{css:c,cx:u}=o();return{theme:l,css:c,cx:u}}return{makeStyles:a,useStyles:i}}const Gee=p.createContext(void 0);function qee(){return p.useContext(Gee)}function cA(e){return e.charAt(0).toUpperCase()+e.slice(1)}var uA=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 Kee(e){const{useTheme:t,cache:n}=e,{makeStyles:r}=W4({useTheme:t,cache:n});function o(a,i,l){const c=typeof a=="string"?(()=>{const m=a,y=function(g){var{children:v}=g,b=uA(g,["children"]);return p.createElement(m,b,v)};return Object.defineProperty(y,"name",{value:cA(m)}),y})():a,u=(()=>{{const{name:m}=l??{};if(m!==void 0)return typeof m!="object"?m:Object.keys(m)[0]}{const m=c.displayName;if(typeof m=="string"&&m!=="")return m}{const{name:m}=c;if(m)return m}})(),d=r(Object.assign(Object.assign({},l),{name:u}))(typeof i=="function"?(m,y,g)=>dA(i(m,y,g)):dA(i));function f(m){for(const y in m)if(y!=="root")return!0;return!1}const h=p.forwardRef(function(m,y){const{className:g,classes:v}=m,b=uA(m,["className","classes"]),{classes:w,cx:x}=d(m,{props:m});return zt.createElement(c,Object.assign({ref:y,className:f(w)?g:x(w.root,g)},typeof a=="string"?{}:{classes:w},b))});return u!==void 0&&(h.displayName=`${cA(u)}WithStyles`,Object.defineProperty(h,"name",{value:h.displayName})),h}return{withStyles:o}}function dA(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(a=>{var i;return t[a]=Object.assign(Object.assign({},(i=t[a])!==null&&i!==void 0?i:{}),{[r]:o[a]})})}),t}function Yee(e){return Object.assign(Object.assign({},W4(e)),Kee(e))}const{makeStyles:Li,withStyles:Xee,useStyles:lPe}=Yee({useTheme:cn}),dv=e=>({"&:focus-visible":{outline:0,outlineStyle:"solid",outlineWidth:2,outlineOffset:2,outlineColor:e.palette.primary.main}}),Yp=e=>({"& > *":{marginTop:`${e.spacing(1)} !important`,marginBottom:`${e.spacing(1)} !important`}}),Jee=e=>({fontSize:e.fontSizes.mainHeader,fontWeight:"bold",marginBottom:e.spacing(1)}),H4={textAlign:"center"},Qee={textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},pv={display:"flex",alignItems:"center"},V4={display:"flex",flexDirection:"column"},Zee={alignItems:"center"},ete={position:"relative"},cPe=e=>({borderRadius:`${e.shape.borderRadius}px`}),G4={opacity:"0",right:"40px",bottom:"40px",transform:"translateY(400px)",zIndex:1400,position:"fixed"},q4={transform:"translateY(0)",opacity:"1",transition:"transform 0.6s ease, opacity 1s ease"},tte={transform:"translateY(400px)",opacity:"0",transition:"transform 1.25s ease, opacity 1s ease"},nte=e=>({opacity:"0",position:"fixed",right:"40px",top:"40px",transform:"translateY(-400px)",[e.breakpoints.down("sm")]:{right:20,left:10,top:40}}),rte={transform:"translateY(100px)",opacity:"1",transition:"transform 0.6s ease, opacity 1s ease"},ote={transform:"translateY(-400px)",opacity:"0",transition:"transform 1.25s ease, opacity 1s ease"},Xp=Li()(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}}));function jn(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Lh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lh=function(n){return typeof n}:Lh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lh(e)}function ir(e){jn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Lh(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 mp(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 pA(e){jn(1,arguments);var t=ir(e);return t.setHours(0,0,0,0),t}var ate=864e5;function ite(e,t){jn(2,arguments);var n=pA(e),r=pA(t),o=n.getTime()-mp(n),a=r.getTime()-mp(r);return Math.round((o-a)/ate)}function fA(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 K4(e,t){jn(2,arguments);var n=ir(e),r=ir(t),o=fA(n,r),a=Math.abs(ite(n,r));n.setDate(n.getDate()-o*a);var i=Number(fA(n,r)===-o),l=o*(a-i);return l===0?0:l}const Y4="pnps",ste=e=>{if(!e)return!1;if(e.length===0)return!0;const t=e.find(n=>n.feedbackId===Y4);if(!t)return!0;if(t.neverShow)return!1;if(t.given){const r=new Date;return K4(r,new Date(t.given))>182}return!1},Jp=()=>{const{data:e,error:t}=vn(Ib,lte,cte),n=p.useCallback(()=>{Hr(Ib).catch(console.warn)},[]);return{data:e,refetchAuth:n,loading:!t&&!e,error:t}},lte=()=>fetch(Ib).then(e=>e.json()),cte={revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:15e3},Ib=jt("api/admin/user"),Tx=()=>{const e=Jp();return{feedback:e.data&&"feedback"in e.data?e.data.feedback:void 0,refetchFeedback:e.refetchAuth,loading:e.loading,error:e.error}},X4=()=>{const{refetchFeedback:e}=Tx(),t=jt("api/admin/feedback"),n=p.useCallback(async o=>{await hA("POST",t,o),await e()},[t,e]),r=p.useCallback(async o=>{const a=`${t}/${o.feedbackId}`;await hA("PUT",a,o),await e()},[t,e]);return{createFeedback:n,updateFeedback:r}},hA=async(e,t,n)=>{await fetch(t,{method:e,headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})},ute=({openUrl:e})=>{const{showFeedback:t,setShowFeedback:n}=p.useContext(As),{createFeedback:r,updateFeedback:o}=X4(),{feedback:a}=Tx(),[i,l]=p.useState(!1),c=cn(),u=Y4,d=p.useMemo(()=>({start:{...nte(c),zIndex:c.zIndex.tooltip},enter:rte,leave:ote}),[c]),f=async()=>{try{await r({feedbackId:u})}catch(m){console.warn(m),n(!1)}window.open(e,"_blank"),setTimeout(()=>{n(!1)},200)},h=async()=>{try{await o({feedbackId:u,neverShow:!0})}catch(m){console.warn(m),n(!1)}setTimeout(()=>{n(!1)},100)};return ste(a)?s(Cx,{mounted:t,start:d.start,enter:d.enter,leave:d.leave,children:s(Je,{sx:{borderRadius:"12.5px",backgroundColor:c.palette.background.paper,zIndex:9999,boxShadow:"2px 2px 4px 4px rgba(143,143,143, 0.25)",padding:c.spacing(3),maxWidth:"400px"},children:T(Je,{sx:{display:"flex",flexDirection:"column",position:"relative",...Yp(c)},children:[s(_t,{title:"Close",arrow:!0,children:s(en,{sx:{position:"absolute",right:"-38px",top:"-47px",backgroundColor:c.palette.background.paper,boxShadow:"2px 2px 4px 4px rgba(143,143,143, 0.25)","&:hover":{backgroundColor:"#fff"}},onClick:()=>n(!1),size:"large",children:s(uv,{})})}),s(Fee,{style:{width:"25px",height:"25px"}}),s(X,{condition:i,show:s("p",{children:"Alright, apologies for the disruption. Have a nice day!"}),elseShow:T("p",{children:["Hi. Do you have 2 minutes to help us improve Unleash?"," "]})}),s(Je,{children:s(X,{condition:i,show:s(rt,{variant:"outlined",onClick:h,children:"Don't show again"}),elseShow:T(ke,{children:[s(rt,{variant:"contained",color:"primary",onClick:f,children:"Yes, no problem"}),s(rt,{sx:{marginLeft:m=>m.spacing(2)},onClick:()=>l(!0),children:"Not now"})]})})})]})})}):null};var kx={},dte=hn;Object.defineProperty(kx,"__esModule",{value:!0});var J4=kx.default=void 0,pte=dte(kn()),fte=An,hte=(0,pte.default)((0,fte.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");J4=kx.default=hte;var Ax={},mte=hn;Object.defineProperty(Ax,"__esModule",{value:!0});var Q4=Ax.default=void 0,gte=mte(kn()),vte=An,yte=(0,gte.default)((0,vte.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");Q4=Ax.default=yte;var _x={},bte=hn;Object.defineProperty(_x,"__esModule",{value:!0});var Z4=_x.default=void 0,wte=bte(kn()),Ste=An,xte=(0,wte.default)((0,Ste.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");Z4=_x.default=xte;var Rx={},Cte=hn;Object.defineProperty(Rx,"__esModule",{value:!0});var e3=Rx.default=void 0,Ete=Cte(kn()),Tte=An,kte=(0,Ete.default)((0,Tte.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");e3=Rx.default=kte;const Ate=C(rv)(({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})),Px=({user:e,src:t,title:n,onMouseEnter:r,onMouseLeave:o,className:a,sx:i,children:l,...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!l&&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())),s(Ate,{className:a,sx:i,...c,"data-loading":!0,alt:"Gravatar",src:t,title:n,onMouseEnter:r,onMouseLeave:o,children:s(X,{condition:Boolean(u),show:u,elseShow:l})})},_te=C(Ar)(({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"}})),Rte=C("div")(({theme:e})=>({alignSelf:"flex-start",display:"flex",alignItems:"center",marginBottom:e.spacing(2)})),Pte=C(Px)(({theme:e})=>({width:e.spacing(4.75),height:e.spacing(4.75),marginRight:e.spacing(1.5)})),Ite=C(we)(({theme:e})=>({color:e.palette.text.secondary})),t3=C(ho)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),padding:0,color:e.palette.primary.dark,fontWeight:e.fontWeight.medium,"&:hover, &:focus":{textDecoration:"underline"},"& svg":{fontSize:e.spacing(2.25)}})),$te=C(t3)(({theme:e})=>({alignSelf:"flex-start"})),Ote=C(rt)(({theme:e})=>({width:"100%",height:e.spacing(5)})),mA=C("div")(({theme:e})=>({width:"100%",height:"1px",backgroundColor:e.palette.divider,margin:e.spacing(3,0)})),Lte=({id:e,showProfile:t,setShowProfile:n,profile:r})=>s(X,{condition:t,show:T(_te,{id:e,children:[T(Rte,{children:[s(Pte,{user:r}),T("div",{children:[s(we,{children:r.name||r.username}),s(Ite,{variant:"body2",children:r.email})]})]}),s(t3,{component:sn,to:"/profile",underline:"hover",onClick:()=>n(!1),children:"View profile settings"}),s(mA,{}),T($te,{component:"a",href:"https://www.getunleash.io/privacy-policy",underline:"hover",rel:"noopener noreferrer",target:"_blank",children:["Privacy Policy ",s(e3,{})]}),s(mA,{}),s(Ote,{variant:"outlined",color:"primary",href:`${$i}/logout`,children:"Log out"})]})}),ys=(e="useId")=>p.useMemo(()=>`${e}-${Mte++}`,[e]);let Mte=0;const Nte=C(Px)(({theme:e})=>({width:e.spacing(4.5),height:e.spacing(4.5)})),Dte=C("div")(({theme:e})=>({position:"relative"})),Bte=C(rt)(({theme:e})=>({...dv(e),...pv,...Zee,color:"inherit",padding:e.spacing(.5,2),"&:hover":{backgroundColor:"transparent"}})),Fte=C(Z4)(({theme:e})=>({color:e.palette.neutral.main})),zte=({profile:e})=>{const[t,n]=p.useState(!1),r=ys();return s(m8,{onClickAway:()=>n(!1),children:T(Dte,{children:[T(Bte,{onClick:()=>n(o=>!o),"aria-controls":t?r:void 0,"aria-expanded":t,color:"secondary",disableRipple:!0,children:[s(Nte,{user:e,"data-testid":xee}),s(Fte,{})]}),s(Lte,{id:r,showProfile:t,setShowProfile:n,profile:e})]})})},sa=()=>{const e=Jp();return{user:e.data&&"user"in e.data?e.data.user:void 0,refetchUser:e.refetchAuth,loading:e.loading,error:e.error}},gA=()=>{const{user:e}=sa();return e?s(zte,{profile:e}):null};var Ix={},jte=hn;Object.defineProperty(Ix,"__esModule",{value:!0});var $x=Ix.default=void 0,Ute=jte(kn()),vA=An,Wte=(0,Ute.default)([(0,vA.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,vA.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");$x=Ix.default=Wte;const Hte=e=>p.createElement("svg",{id:"bg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 653.4 251.24",...e},p.createElement("defs",null,p.createElement("style",null,".cls-1{fill:#1a4049;}.cls-2{fill:#fff;}.cls-3{fill:#817afe;}")),p.createElement("circle",{className:"cls-1",cx:125.62,cy:125.62,r:80}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("rect",{className:"cls-3",x:137.05,y:137.05,width:22.86,height:22.86}),p.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"}),p.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"}),p.createElement("path",{className:"cls-1",d:"M369.42,91.34h11.92V159.9H369.42Z"}),p.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"}),p.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"}),p.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"}),p.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"})),Vte=e=>p.createElement("svg",{id:"bg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 653.4 251.24",...e},p.createElement("defs",null,p.createElement("style",null,".cls-1{fill:#fff;}.cls-2{fill:#1a4049;}.cls-3{fill:#817afe;}")),p.createElement("circle",{className:"cls-1",cx:125.62,cy:125.62,r:80}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("rect",{className:"cls-3",x:137.05,y:137.05,width:22.86,height:22.86}),p.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"}),p.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"}),p.createElement("path",{className:"cls-1",d:"M369.42,91.34h11.92V159.9H369.42Z"}),p.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"}),p.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"}),p.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"}),p.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 Ox={},Gte=hn;Object.defineProperty(Ox,"__esModule",{value:!0});var n3=Ox.default=void 0;Yte(p);var qte=Gte(kn()),Kte=An;function r3(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(r3=function(r){return r?n:t})(e)}function Yte(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=r3(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var Xte=(0,qte.default)((0,Kte.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");n3=Ox.default=Xte;var Lx={},Jte=hn;Object.defineProperty(Lx,"__esModule",{value:!0});var o3=Lx.default=void 0,Qte=Jte(kn()),Zte=An,ene=(0,Qte.default)((0,Zte.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");o3=Lx.default=ene;var Mx={},tne=hn;Object.defineProperty(Mx,"__esModule",{value:!0});var a3=Mx.default=void 0,nne=tne(kn()),rne=An,one=(0,nne.default)((0,rne.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");a3=Mx.default=one;const i3=e=>p.createElement("svg",{id:"bg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 251.43 251.03",...e},p.createElement("defs",null,p.createElement("style",null,".cls-1{fill:#1a4049;}.cls-2{fill:#fff;}.cls-3{fill:#817afe;}")),p.createElement("circle",{className:"cls-1",cx:125.71,cy:125.31,r:80}),p.createElement("polygon",{className:"cls-2",points:"137.14 91.03 137.14 113.88 137.14 136.74 160 136.74 160 113.88 160 91.03 137.14 91.03"}),p.createElement("polygon",{className:"cls-2",points:"114.29 113.88 114.29 91.03 91.43 91.03 91.43 113.88 91.43 136.74 91.43 159.6 114.29 159.6 137.14 159.6 137.14 136.74 114.29 136.74 114.29 113.88"}),p.createElement("rect",{className:"cls-3",x:137.14,y:136.74,width:22.86,height:22.86})),uPe="/static/logoBg-6e3a3ec3.svg",ane=C(Fa)({minWidth:"150px",height:"100%",width:"100%",margin:"0",padding:"0"}),ine=C(sn)(({theme:e})=>({textDecoration:"none",alignItems:"center",display:"flex",color:"inherit",height:"100%",width:"100%","&&":{color:"black",padding:e.spacing(1,2)}})),sne=C("span")(({theme:e})=>({width:"12.5px",height:"12.5px",display:"block",backgroundColor:e.palette.primary.main,marginRight:"1rem",borderRadius:"2px"})),yA=({path:e,text:t,handleClose:n})=>s(ane,{onClick:()=>{n()},children:T(ho,{style:{textDecoration:"none"},component:ine,to:e,underline:"hover",children:[s(sne,{}),t]})}),lne="_drawer_cxqms_1",cne="_drawerTitle_cxqms_6",une="_drawerContainer_cxqms_13",dne="_drawerTitleLogo_cxqms_17",pne="_drawerTitleText_cxqms_22",fne="_drawerList_cxqms_27",hne="_iconLinkList_cxqms_28",mne="_iconLink_cxqms_28",gne="_navigationLink_cxqms_42",vne="_navigationLinkActive_cxqms_50",yne="_navigationIcon_cxqms_56",bne="_iconGitHub_cxqms_61",wo={drawer:lne,drawerTitle:cne,drawerContainer:une,drawerTitleLogo:dne,drawerTitleText:pne,drawerList:fne,iconLinkList:hne,iconLink:mne,navigationLink:gne,navigationLinkActive:vne,navigationIcon:yne,iconGitHub:bne},wne=({links:e=[],title:t="Unleash",flags:n={},open:r=!1,toggleDrawer:o,admin:a=!1,routes:i})=>{const l=()=>e.map(c=>{let u=null;return c.value==="GitHub"?u=s(n3,{className:wo.navigationIcon}):c.value==="Documentation"&&(u=s(o3,{className:wo.navigationIcon})),T("a",{href:c.href,rel:"noopener noreferrer",target:"_blank",className:wo.iconLink,children:[u,c.value]},c.value)});return s(NG,{className:wo.drawer,open:r,anchor:"left",onClose:o,children:T("nav",{id:"header-drawer",className:wo.drawerContainer,children:[s("div",{children:T(sn,{to:"/",className:wo.drawerTitle,"aria-label":"Home",onClick:()=>o(),children:[s(i3,{className:wo.drawerTitleLogo,"aria-label":"Unleash logo"}),s("span",{className:wo.drawerTitleText,children:t})]})}),s(fo,{}),s(qa,{className:wo.drawerList,children:i.mobileRoutes.map(c=>s(yA,{handleClose:()=>o(),path:c.path,text:c.title},c.path))}),s(X,{condition:a,show:T(ke,{children:[s(fo,{}),s(qa,{className:wo.drawerList,children:i.adminRoutes.map(c=>s(yA,{handleClose:()=>o(),path:c.path,text:c.title},c.path))})]})}),s(fo,{}),T("div",{className:wo.iconLinkList,children:[l(),T("a",{className:wo.iconLink,href:`${$i}/logout`,children:[s(a3,{className:wo.navigationIcon}),"Sign out"]})]})]})})},Ca="ADMIN",gp="CREATE_FEATURE",s3="UPDATE_FEATURE",Sne="DELETE_FEATURE",km="CREATE_STRATEGY",fv="UPDATE_STRATEGY",xne="DELETE_STRATEGY",bA="UPDATE_APPLICATION",Am="CREATE_CONTEXT_FIELD",l3="UPDATE_CONTEXT_FIELD",Cne="DELETE_CONTEXT_FIELD",wA="CREATE_PROJECT",$b="UPDATE_PROJECT",Ene="DELETE_PROJECT",Tne="DELETE_TAG_TYPE",vp="UPDATE_TAG_TYPE",c3="CREATE_ADDON",Ob="UPDATE_ADDON",kne="DELETE_ADDON",dPe="CREATE_API_TOKEN",pPe="DELETE_API_TOKEN",fPe="READ_API_TOKEN",Ane="DELETE_ENVIRONMENT",Lb="UPDATE_ENVIRONMENT",u3="CREATE_FEATURE_STRATEGY",Nx="UPDATE_FEATURE_STRATEGY",_ne="DELETE_FEATURE_STRATEGY",Rne="UPDATE_FEATURE_ENVIRONMENT",Pne="UPDATE_FEATURE_ENVIRONMENT_VARIANTS",hPe="MOVE_FEATURE_TOGGLE",hv="CREATE_SEGMENT",Dx="UPDATE_SEGMENT",Ine="DELETE_SEGMENT",mPe="APPLY_CHANGE_REQUEST",gPe="APPROVE_CHANGE_REQUEST",vPe="READ_PROJECT_API_TOKEN",yPe="CREATE_PROJECT_API_TOKEN",$ne=C(sn)(({theme:e})=>({textDecoration:"none",alignItems:"center",display:"flex",color:"inherit",height:"100%",width:"100%","&&":{padding:e.spacing(1,2)}})),One=C("span")(({theme:e})=>({width:"12.5px",height:"12.5px",display:"block",backgroundColor:e.palette.primary.main,marginRight:e.spacing(2),borderRadius:"2px"})),SA=({options:e,id:t,handleClose:n,anchorEl:r,style:o})=>s(ix,{id:t,onClose:n,anchorEl:r,open:Boolean(r),style:o,children:e.map(a=>T(vs,{component:$ne,to:a.path,onClick:n,children:[s(One,{}),a.title]},a.path))});var rn={},Lne={get exports(){return rn},set exports(e){rn=e}},_m={},Mne={get exports(){return _m},set exports(e){_m=e}};(function(e,t){(function(n,r){r(t,p)})(Ma,function(n,r){function o(S,M,B,j,J,G,Q){try{var le=S[G](Q),de=le.value}catch(fe){return void B(fe)}le.done?M(de):Promise.resolve(de).then(j,J)}function a(S){return function(){var M=this,B=arguments;return new Promise(function(j,J){var G=S.apply(M,B);function Q(de){o(G,j,J,Q,le,"next",de)}function le(de){o(G,j,J,Q,le,"throw",de)}Q(void 0)})}}function i(){return(i=Object.assign||function(S){for(var M=1;M<arguments.length;M++){var B=arguments[M];for(var j in B)Object.prototype.hasOwnProperty.call(B,j)&&(S[j]=B[j])}return S}).apply(this,arguments)}function l(S,M){if(S==null)return{};var B,j,J={},G=Object.keys(S);for(j=0;j<G.length;j++)B=G[j],M.indexOf(B)>=0||(J[B]=S[B]);return J}function c(S){var M=function(B,j){if(typeof B!="object"||B===null)return B;var J=B[Symbol.toPrimitive];if(J!==void 0){var G=J.call(B,j||"default");if(typeof G!="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(B)}(S,"string");return typeof M=="symbol"?M:String(M)}r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r;var u={init:"init"},d=function(S){var M=S.value;return M===void 0?"":M},f=function(){return r.createElement(r.Fragment,null," ")},h={Cell:d,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function m(){for(var S=arguments.length,M=new Array(S),B=0;B<S;B++)M[B]=arguments[B];return M.reduce(function(j,J){var G=J.style,Q=J.className;return j=i({},j,{},l(J,["style","className"])),G&&(j.style=j.style?i({},j.style||{},{},G||{}):G),Q&&(j.className=j.className?j.className+" "+Q:Q),j.className===""&&delete j.className,j},{})}var y=function(S,M){return M===void 0&&(M={}),function(B){return B===void 0&&(B={}),[].concat(S,[B]).reduce(function(j,J){return function G(Q,le,de){return typeof le=="function"?G({},le(Q,de)):Array.isArray(le)?m.apply(void 0,[Q].concat(le)):m(Q,le)}(j,J,i({},M,{userProps:B}))},{})}},g=function(S,M,B,j){return B===void 0&&(B={}),S.reduce(function(J,G){return G(J,B)},M)},v=function(S,M,B){return B===void 0&&(B={}),S.forEach(function(j){j(M,B)})};function b(S,M,B,j){S.findIndex(function(J){return J.pluginName===B}),M.forEach(function(J){S.findIndex(function(G){return G.pluginName===J})})}function w(S,M){return typeof S=="function"?S(M):S}function x(S){var M=r.useRef();return M.current=S,r.useCallback(function(){return M.current},[])}var E=typeof document<"u"?r.useLayoutEffect:r.useEffect;function A(S,M){var B=r.useRef(!1);E(function(){B.current&&S(),B.current=!0},M)}function k(S,M,B){return B===void 0&&(B={}),function(j,J){J===void 0&&(J={});var G=typeof j=="string"?M[j]:j;if(G===void 0)throw console.info(M),new Error("Renderer Error ☝️");return _(G,i({},S,{column:M},B,{},J))}}function _(S,M){return function(j){return typeof j=="function"&&(J=Object.getPrototypeOf(j)).prototype&&J.prototype.isReactComponent;var J}(B=S)||typeof B=="function"||function(j){return typeof j=="object"&&typeof j.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(j.$$typeof.description)}(B)?r.createElement(S,M):S;var B}function O(S,M,B){return B===void 0&&(B=0),S.map(function(j){return I(j=i({},j,{parent:M,depth:B})),j.columns&&(j.columns=O(j.columns,j,B+1)),j})}function L(S){return V(S,"columns")}function I(S){var M=S.id,B=S.accessor,j=S.Header;if(typeof B=="string"){M=M||B;var J=B.split(".");B=function(G){return function(Q,le,de){if(!le)return Q;var fe,Le=typeof le=="function"?le:JSON.stringify(le),Re=F.get(Le)||function(){var Pe=function(be){return function Ie(Fe,Ue){if(Ue===void 0&&(Ue=[]),Array.isArray(Fe))for(var it=0;it<Fe.length;it+=1)Ie(Fe[it],Ue);else Ue.push(Fe);return Ue}(be).map(function(Ie){return String(Ie).replace(".","_")}).join(".").replace(N,".").replace(ee,"").split(".")}(le);return F.set(Le,Pe),Pe}();try{fe=Re.reduce(function(Pe,be){return Pe[be]},Q)}catch{}return fe!==void 0?fe:de}(G,J)}}if(!M&&typeof j=="string"&&j&&(M=j),!M&&S.columns)throw console.error(S),new Error('A column ID (or unique "Header" value) is required!');if(!M)throw console.error(S),new Error("A column ID (or string accessor) is required!");return Object.assign(S,{id:M,accessor:B}),S}function $(S,M){if(!M)throw new Error;return Object.assign(S,i({Header:f,Footer:f},h,{},M,{},S)),Object.assign(S,{originalWidth:S.width}),S}function D(S,M,B){B===void 0&&(B=function(){return{}});for(var j=[],J=S,G=0,Q=function(){return G++},le=function(){var de={headers:[]},fe=[],Le=J.some(function(Re){return Re.parent});J.forEach(function(Re){var Pe,be=[].concat(fe).reverse()[0];Le&&(Re.parent?Pe=i({},Re.parent,{originalId:Re.parent.id,id:Re.parent.id+"_"+Q(),headers:[Re]},B(Re)):Pe=$(i({originalId:Re.id+"_placeholder",id:Re.id+"_placeholder_"+Q(),placeholderOf:Re,headers:[Re]},B(Re)),M),be&&be.originalId===Pe.originalId?be.headers.push(Re):fe.push(Pe)),de.headers.push(Re)}),j.push(de),J=fe};J.length;)le();return j.reverse()}var F=new Map;function U(){for(var S=arguments.length,M=new Array(S),B=0;B<S;B++)M[B]=arguments[B];for(var j=0;j<M.length;j+=1)if(M[j]!==void 0)return M[j]}function Y(S){if(typeof S=="function")return S}function V(S,M){var B=[];return function j(J){J.forEach(function(G){G[M]?j(G[M]):B.push(G)})}(S),B}function te(S,M){var B=M.manualExpandedKey,j=M.expanded,J=M.expandSubRows,G=J===void 0||J,Q=[];return S.forEach(function(le){return function de(fe,Le){Le===void 0&&(Le=!0),fe.isExpanded=fe.original&&fe.original[B]||j[fe.id],fe.canExpand=fe.subRows&&!!fe.subRows.length,Le&&Q.push(fe),fe.subRows&&fe.subRows.length&&fe.isExpanded&&fe.subRows.forEach(function(Re){return de(Re,G)})}(le)}),Q}function Z(S,M,B){return Y(S)||M[S]||B[S]||B.text}function W(S,M,B){return S?S(M,B):M===void 0}function z(){throw new Error("React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.")}var R=null,N=/\[/g,ee=/\]/g,re=function(S){return i({role:"table"},S)},Se=function(S){return i({role:"rowgroup"},S)},ce=function(S,M){var B=M.column;return i({key:"header_"+B.id,colSpan:B.totalVisibleHeaderCount,role:"columnheader"},S)},Ce=function(S,M){var B=M.column;return i({key:"footer_"+B.id,colSpan:B.totalVisibleHeaderCount},S)},xe=function(S,M){return i({key:"headerGroup_"+M.index,role:"row"},S)},Ee=function(S,M){return i({key:"footerGroup_"+M.index},S)},et=function(S,M){return i({key:"row_"+M.row.id,role:"row"},S)},me=function(S,M){var B=M.cell;return i({key:"cell_"+B.row.id+"_"+B.column.id,role:"cell"},S)};function Ve(){return{useOptions:[],stateReducers:[],useControlledState:[],columns:[],columnsDeps:[],allColumns:[],allColumnsDeps:[],accessValue:[],materializedColumns:[],materializedColumnsDeps:[],useInstanceAfterData:[],visibleColumns:[],visibleColumnsDeps:[],headerGroups:[],headerGroupsDeps:[],useInstanceBeforeDimensions:[],useInstance:[],prepareRow:[],getTableProps:[re],getTableBodyProps:[Se],getHeaderGroupProps:[xe],getFooterGroupProps:[Ee],getHeaderProps:[ce],getFooterProps:[Ce],getRowProps:[et],getCellProps:[me],useFinalInstance:[]}}u.resetHiddenColumns="resetHiddenColumns",u.toggleHideColumn="toggleHideColumn",u.setHiddenColumns="setHiddenColumns",u.toggleHideAllColumns="toggleHideAllColumns";var Ge=function(S){S.getToggleHiddenProps=[De],S.getToggleHideAllColumnsProps=[he],S.stateReducers.push(Et),S.useInstanceBeforeDimensions.push(qe),S.headerGroupsDeps.push(function(M,B){var j=B.instance;return[].concat(M,[j.state.hiddenColumns])}),S.useInstance.push(lt)};Ge.pluginName="useColumnVisibility";var De=function(S,M){var B=M.column;return[S,{onChange:function(j){B.toggleHidden(!j.target.checked)},style:{cursor:"pointer"},checked:B.isVisible,title:"Toggle Column Visible"}]},he=function(S,M){var B=M.instance;return[S,{onChange:function(j){B.toggleHideAllColumns(!j.target.checked)},style:{cursor:"pointer"},checked:!B.allColumnsHidden&&!B.state.hiddenColumns.length,title:"Toggle All Columns Hidden",indeterminate:!B.allColumnsHidden&&B.state.hiddenColumns.length}]};function Et(S,M,B,j){if(M.type===u.init)return i({hiddenColumns:[]},S);if(M.type===u.resetHiddenColumns)return i({},S,{hiddenColumns:j.initialState.hiddenColumns||[]});if(M.type===u.toggleHideColumn){var J=(M.value!==void 0?M.value:!S.hiddenColumns.includes(M.columnId))?[].concat(S.hiddenColumns,[M.columnId]):S.hiddenColumns.filter(function(G){return G!==M.columnId});return i({},S,{hiddenColumns:J})}return M.type===u.setHiddenColumns?i({},S,{hiddenColumns:w(M.value,S.hiddenColumns)}):M.type===u.toggleHideAllColumns?i({},S,{hiddenColumns:(M.value!==void 0?M.value:!S.hiddenColumns.length)?j.allColumns.map(function(G){return G.id}):[]}):void 0}function qe(S){var M=S.headers,B=S.state.hiddenColumns;r.useRef(!1).current;var j=0;M.forEach(function(J){return j+=function G(Q,le){Q.isVisible=le&&!B.includes(Q.id);var de=0;return Q.headers&&Q.headers.length?Q.headers.forEach(function(fe){return de+=G(fe,Q.isVisible)}):de=Q.isVisible?1:0,Q.totalVisibleHeaderCount=de,de}(J,!0)})}function lt(S){var M=S.columns,B=S.flatHeaders,j=S.dispatch,J=S.allColumns,G=S.getHooks,Q=S.state.hiddenColumns,le=S.autoResetHiddenColumns,de=le===void 0||le,fe=x(S),Le=J.length===Q.length,Re=r.useCallback(function(Ue,it){return j({type:u.toggleHideColumn,columnId:Ue,value:it})},[j]),Pe=r.useCallback(function(Ue){return j({type:u.setHiddenColumns,value:Ue})},[j]),be=r.useCallback(function(Ue){return j({type:u.toggleHideAllColumns,value:Ue})},[j]),Ie=y(G().getToggleHideAllColumnsProps,{instance:fe()});B.forEach(function(Ue){Ue.toggleHidden=function(it){j({type:u.toggleHideColumn,columnId:Ue.id,value:it})},Ue.getToggleHiddenProps=y(G().getToggleHiddenProps,{instance:fe(),column:Ue})});var Fe=x(de);A(function(){Fe()&&j({type:u.resetHiddenColumns})},[j,M]),Object.assign(S,{allColumnsHidden:Le,toggleHideColumn:Re,setHiddenColumns:Pe,toggleHideAllColumns:be,getToggleHideAllColumnsProps:Ie})}var Rt={},dt={},nt=function(S,M,B){return S},Lt=function(S,M){return S.subRows||[]},xt=function(S,M,B){return""+(B?[B.id,M].join("."):M)},pe=function(S){return S};function Te(S){var M=S.initialState,B=M===void 0?Rt:M,j=S.defaultColumn,J=j===void 0?dt:j,G=S.getSubRows,Q=G===void 0?Lt:G,le=S.getRowId,de=le===void 0?xt:le,fe=S.stateReducer,Le=fe===void 0?nt:fe,Re=S.useControlledState,Pe=Re===void 0?pe:Re;return i({},l(S,["initialState","defaultColumn","getSubRows","getRowId","stateReducer","useControlledState"]),{initialState:B,defaultColumn:J,getSubRows:Q,getRowId:de,stateReducer:Le,useControlledState:Pe})}function Ye(S,M){M===void 0&&(M=0);var B=0,j=0,J=0,G=0;return S.forEach(function(Q){var le=Q.headers;if(Q.totalLeft=M,le&&le.length){var de=Ye(le,M),fe=de[0],Le=de[1],Re=de[2],Pe=de[3];Q.totalMinWidth=fe,Q.totalWidth=Le,Q.totalMaxWidth=Re,Q.totalFlexWidth=Pe}else Q.totalMinWidth=Q.minWidth,Q.totalWidth=Math.min(Math.max(Q.minWidth,Q.width),Q.maxWidth),Q.totalMaxWidth=Q.maxWidth,Q.totalFlexWidth=Q.canResize?Q.totalWidth:0;Q.isVisible&&(M+=Q.totalWidth,B+=Q.totalMinWidth,j+=Q.totalWidth,J+=Q.totalMaxWidth,G+=Q.totalFlexWidth)}),[B,j,J,G]}function Ne(S){var M=S.data,B=S.rows,j=S.flatRows,J=S.rowsById,G=S.column,Q=S.getRowId,le=S.getSubRows,de=S.accessValueHooks,fe=S.getInstance;M.forEach(function(Le,Re){return function Pe(be,Ie,Fe,Ue,it){Fe===void 0&&(Fe=0);var It=be,at=Q(be,Ie,Ue),Me=J[at];if(Me)Me.subRows&&Me.originalSubRows.forEach(function(Xe,wt){return Pe(Xe,wt,Fe+1,Me)});else if((Me={id:at,original:It,index:Ie,depth:Fe,cells:[{}]}).cells.map=z,Me.cells.filter=z,Me.cells.forEach=z,Me.cells[0].getCellProps=z,Me.values={},it.push(Me),j.push(Me),J[at]=Me,Me.originalSubRows=le(be,Ie),Me.originalSubRows){var Ct=[];Me.originalSubRows.forEach(function(Xe,wt){return Pe(Xe,wt,Fe+1,Me,Ct)}),Me.subRows=Ct}G.accessor&&(Me.values[G.id]=G.accessor(be,Ie,Me,it,M)),Me.values[G.id]=g(de,Me.values[G.id],{row:Me,column:G,instance:fe()})}(Le,Re,0,void 0,B)})}u.resetExpanded="resetExpanded",u.toggleRowExpanded="toggleRowExpanded",u.toggleAllRowsExpanded="toggleAllRowsExpanded";var q=function(S){S.getToggleAllRowsExpandedProps=[K],S.getToggleRowExpandedProps=[se],S.stateReducers.push(ye),S.useInstance.push(Ae),S.prepareRow.push(mt)};q.pluginName="useExpanded";var K=function(S,M){var B=M.instance;return[S,{onClick:function(j){B.toggleAllRowsExpanded()},style:{cursor:"pointer"},title:"Toggle All Rows Expanded"}]},se=function(S,M){var B=M.row;return[S,{onClick:function(){B.toggleRowExpanded()},style:{cursor:"pointer"},title:"Toggle Row Expanded"}]};function ye(S,M,B,j){if(M.type===u.init)return i({expanded:{}},S);if(M.type===u.resetExpanded)return i({},S,{expanded:j.initialState.expanded||{}});if(M.type===u.toggleAllRowsExpanded){var J=M.value,G=j.rowsById,Q=Object.keys(G).length===Object.keys(S.expanded).length;if(J!==void 0?J:!Q){var le={};return Object.keys(G).forEach(function(Ie){le[Ie]=!0}),i({},S,{expanded:le})}return i({},S,{expanded:{}})}if(M.type===u.toggleRowExpanded){var de,fe=M.id,Le=M.value,Re=S.expanded[fe],Pe=Le!==void 0?Le:!Re;if(!Re&&Pe)return i({},S,{expanded:i({},S.expanded,(de={},de[fe]=!0,de))});if(Re&&!Pe){var be=S.expanded;return be[fe],i({},S,{expanded:l(be,[fe].map(c))})}return S}}function Ae(S){var M=S.data,B=S.rows,j=S.rowsById,J=S.manualExpandedKey,G=J===void 0?"expanded":J,Q=S.paginateExpandedRows,le=Q===void 0||Q,de=S.expandSubRows,fe=de===void 0||de,Le=S.autoResetExpanded,Re=Le===void 0||Le,Pe=S.getHooks,be=S.plugins,Ie=S.state.expanded,Fe=S.dispatch;b(be,["useSortBy","useGroupBy","usePivotColumns","useGlobalFilter"],"useExpanded");var Ue=x(Re),it=Boolean(Object.keys(j).length&&Object.keys(Ie).length);it&&Object.keys(j).some(function(Ft){return!Ie[Ft]})&&(it=!1),A(function(){Ue()&&Fe({type:u.resetExpanded})},[Fe,M]);var It=r.useCallback(function(Ft,gt){Fe({type:u.toggleRowExpanded,id:Ft,value:gt})},[Fe]),at=r.useCallback(function(Ft){return Fe({type:u.toggleAllRowsExpanded,value:Ft})},[Fe]),Me=r.useMemo(function(){return le?te(B,{manualExpandedKey:G,expanded:Ie,expandSubRows:fe}):B},[le,B,G,Ie,fe]),Ct=r.useMemo(function(){return function(Ft){var gt=0;return Object.keys(Ft).forEach(function(bt){var Yt=bt.split(".");gt=Math.max(gt,Yt.length)}),gt}(Ie)},[Ie]),Xe=x(S),wt=y(Pe().getToggleAllRowsExpandedProps,{instance:Xe()});Object.assign(S,{preExpandedRows:B,expandedRows:Me,rows:Me,expandedDepth:Ct,isAllRowsExpanded:it,toggleRowExpanded:It,toggleAllRowsExpanded:at,getToggleAllRowsExpandedProps:wt})}function mt(S,M){var B=M.instance.getHooks,j=M.instance;S.toggleRowExpanded=function(J){return j.toggleRowExpanded(S.id,J)},S.getToggleRowExpandedProps=y(B().getToggleRowExpandedProps,{instance:j,row:S})}var Ze=function(S,M,B){return S=S.filter(function(j){return M.some(function(J){var G=j.values[J];return String(G).toLowerCase().includes(String(B).toLowerCase())})})};Ze.autoRemove=function(S){return!S};var ht=function(S,M,B){return S.filter(function(j){return M.some(function(J){var G=j.values[J];return G===void 0||String(G).toLowerCase()===String(B).toLowerCase()})})};ht.autoRemove=function(S){return!S};var Kt=function(S,M,B){return S.filter(function(j){return M.some(function(J){var G=j.values[J];return G===void 0||String(G)===String(B)})})};Kt.autoRemove=function(S){return!S};var Mn=function(S,M,B){return S.filter(function(j){return M.some(function(J){return j.values[J].includes(B)})})};Mn.autoRemove=function(S){return!S||!S.length};var pt=function(S,M,B){return S.filter(function(j){return M.some(function(J){var G=j.values[J];return G&&G.length&&B.every(function(Q){return G.includes(Q)})})})};pt.autoRemove=function(S){return!S||!S.length};var un=function(S,M,B){return S.filter(function(j){return M.some(function(J){var G=j.values[J];return G&&G.length&&B.some(function(Q){return G.includes(Q)})})})};un.autoRemove=function(S){return!S||!S.length};var Vt=function(S,M,B){return S.filter(function(j){return M.some(function(J){var G=j.values[J];return B.includes(G)})})};Vt.autoRemove=function(S){return!S||!S.length};var Qt=function(S,M,B){return S.filter(function(j){return M.some(function(J){return j.values[J]===B})})};Qt.autoRemove=function(S){return S===void 0};var Bt=function(S,M,B){return S.filter(function(j){return M.some(function(J){return j.values[J]==B})})};Bt.autoRemove=function(S){return S==null};var Wn=function(S,M,B){var j=B||[],J=j[0],G=j[1];if((J=typeof J=="number"?J:-1/0)>(G=typeof G=="number"?G:1/0)){var Q=J;J=G,G=Q}return S.filter(function(le){return M.some(function(de){var fe=le.values[de];return fe>=J&&fe<=G})})};Wn.autoRemove=function(S){return!S||typeof S[0]!="number"&&typeof S[1]!="number"};var vr=Object.freeze({__proto__:null,text:Ze,exactText:ht,exactTextCase:Kt,includes:Mn,includesAll:pt,includesSome:un,includesValue:Vt,exact:Qt,equals:Bt,between:Wn});u.resetFilters="resetFilters",u.setFilter="setFilter",u.setAllFilters="setAllFilters";var to=function(S){S.stateReducers.push(yo),S.useInstance.push(bo)};function yo(S,M,B,j){if(M.type===u.init)return i({filters:[]},S);if(M.type===u.resetFilters)return i({},S,{filters:j.initialState.filters||[]});if(M.type===u.setFilter){var J=M.columnId,G=M.filterValue,Q=j.allColumns,le=j.filterTypes,de=Q.find(function(Fe){return Fe.id===J});if(!de)throw new Error("React-Table: Could not find a column with id: "+J);var fe=Z(de.filter,le||{},vr),Le=S.filters.find(function(Fe){return Fe.id===J}),Re=w(G,Le&&Le.value);return W(fe.autoRemove,Re,de)?i({},S,{filters:S.filters.filter(function(Fe){return Fe.id!==J})}):i({},S,Le?{filters:S.filters.map(function(Fe){return Fe.id===J?{id:J,value:Re}:Fe})}:{filters:[].concat(S.filters,[{id:J,value:Re}])})}if(M.type===u.setAllFilters){var Pe=M.filters,be=j.allColumns,Ie=j.filterTypes;return i({},S,{filters:w(Pe,S.filters).filter(function(Fe){var Ue=be.find(function(it){return it.id===Fe.id});return!W(Z(Ue.filter,Ie||{},vr).autoRemove,Fe.value,Ue)})})}}function bo(S){var M=S.data,B=S.rows,j=S.flatRows,J=S.rowsById,G=S.allColumns,Q=S.filterTypes,le=S.manualFilters,de=S.defaultCanFilter,fe=de!==void 0&&de,Le=S.disableFilters,Re=S.state.filters,Pe=S.dispatch,be=S.autoResetFilters,Ie=be===void 0||be,Fe=r.useCallback(function(Xe,wt){Pe({type:u.setFilter,columnId:Xe,filterValue:wt})},[Pe]),Ue=r.useCallback(function(Xe){Pe({type:u.setAllFilters,filters:Xe})},[Pe]);G.forEach(function(Xe){var wt=Xe.id,Ft=Xe.accessor,gt=Xe.defaultCanFilter,bt=Xe.disableFilters;Xe.canFilter=Ft?U(bt!==!0&&void 0,Le!==!0&&void 0,!0):U(gt,fe,!1),Xe.setFilter=function(St){return Fe(Xe.id,St)};var Yt=Re.find(function(St){return St.id===wt});Xe.filterValue=Yt&&Yt.value});var it=r.useMemo(function(){if(le||!Re.length)return[B,j,J];var Xe=[],wt={};return[function Ft(gt,bt){bt===void 0&&(bt=0);var Yt=gt;return(Yt=Re.reduce(function(St,qt){var Ht=qt.id,yn=qt.value,st=G.find(function(Hn){return Hn.id===Ht});if(!st)return St;bt===0&&(st.preFilteredRows=St);var Ut=Z(st.filter,Q||{},vr);return Ut?(st.filteredRows=Ut(St,[Ht],yn),st.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+st.id+"."),St)},gt)).forEach(function(St){Xe.push(St),wt[St.id]=St,St.subRows&&(St.subRows=St.subRows&&St.subRows.length>0?Ft(St.subRows,bt+1):St.subRows)}),Yt}(B),Xe,wt]},[le,Re,B,j,J,G,Q]),It=it[0],at=it[1],Me=it[2];r.useMemo(function(){G.filter(function(Xe){return!Re.find(function(wt){return wt.id===Xe.id})}).forEach(function(Xe){Xe.preFilteredRows=It,Xe.filteredRows=It})},[It,Re,G]);var Ct=x(Ie);A(function(){Ct()&&Pe({type:u.resetFilters})},[Pe,le?null:M]),Object.assign(S,{preFilteredRows:B,preFilteredFlatRows:j,preFilteredRowsById:J,filteredRows:It,filteredFlatRows:at,filteredRowsById:Me,rows:It,flatRows:at,rowsById:Me,setFilter:Fe,setAllFilters:Ue})}to.pluginName="useFilters",u.resetGlobalFilter="resetGlobalFilter",u.setGlobalFilter="setGlobalFilter";var Rr=function(S){S.stateReducers.push(no),S.useInstance.push(Xn)};function no(S,M,B,j){if(M.type===u.resetGlobalFilter)return i({},S,{globalFilter:j.initialState.globalFilter||void 0});if(M.type===u.setGlobalFilter){var J=M.filterValue,G=j.userFilterTypes,Q=Z(j.globalFilter,G||{},vr),le=w(J,S.globalFilter);return W(Q.autoRemove,le)?(S.globalFilter,l(S,["globalFilter"])):i({},S,{globalFilter:le})}}function Xn(S){var M=S.data,B=S.rows,j=S.flatRows,J=S.rowsById,G=S.allColumns,Q=S.filterTypes,le=S.globalFilter,de=S.manualGlobalFilter,fe=S.state.globalFilter,Le=S.dispatch,Re=S.autoResetGlobalFilter,Pe=Re===void 0||Re,be=S.disableGlobalFilter,Ie=r.useCallback(function(Me){Le({type:u.setGlobalFilter,filterValue:Me})},[Le]),Fe=r.useMemo(function(){if(de||fe===void 0)return[B,j,J];var Me=[],Ct={},Xe=Z(le,Q||{},vr);if(!Xe)return console.warn("Could not find a valid 'globalFilter' option."),B;G.forEach(function(Ft){var gt=Ft.disableGlobalFilter;Ft.canFilter=U(gt!==!0&&void 0,be!==!0&&void 0,!0)});var wt=G.filter(function(Ft){return Ft.canFilter===!0});return[function Ft(gt){return(gt=Xe(gt,wt.map(function(bt){return bt.id}),fe)).forEach(function(bt){Me.push(bt),Ct[bt.id]=bt,bt.subRows=bt.subRows&&bt.subRows.length?Ft(bt.subRows):bt.subRows}),gt}(B),Me,Ct]},[de,fe,le,Q,G,B,j,J,be]),Ue=Fe[0],it=Fe[1],It=Fe[2],at=x(Pe);A(function(){at()&&Le({type:u.resetGlobalFilter})},[Le,de?null:M]),Object.assign(S,{preGlobalFilteredRows:B,preGlobalFilteredFlatRows:j,preGlobalFilteredRowsById:J,globalFilteredRows:Ue,globalFilteredFlatRows:it,globalFilteredRowsById:It,rows:Ue,flatRows:it,rowsById:It,setGlobalFilter:Ie,disableGlobalFilter:be})}function ro(S,M){return M.reduce(function(B,j){return B+(typeof j=="number"?j:0)},0)}Rr.pluginName="useGlobalFilter";var yr=Object.freeze({__proto__:null,sum:ro,min:function(S){var M=S[0]||0;return S.forEach(function(B){typeof B=="number"&&(M=Math.min(M,B))}),M},max:function(S){var M=S[0]||0;return S.forEach(function(B){typeof B=="number"&&(M=Math.max(M,B))}),M},minMax:function(S){var M=S[0]||0,B=S[0]||0;return S.forEach(function(j){typeof j=="number"&&(M=Math.min(M,j),B=Math.max(B,j))}),M+".."+B},average:function(S){return ro(0,S)/S.length},median:function(S){if(!S.length)return null;var M=Math.floor(S.length/2),B=[].concat(S).sort(function(j,J){return j-J});return S.length%2!=0?B[M]:(B[M-1]+B[M])/2},unique:function(S){return Array.from(new Set(S).values())},uniqueCount:function(S){return new Set(S).size},count:function(S){return S.length}}),Dt=[],Gt={};u.resetGroupBy="resetGroupBy",u.setGroupBy="setGroupBy",u.toggleGroupBy="toggleGroupBy";var zn=function(S){S.getGroupByToggleProps=[ur],S.stateReducers.push(Gr),S.visibleColumnsDeps.push(function(M,B){var j=B.instance;return[].concat(M,[j.state.groupBy])}),S.visibleColumns.push(qr),S.useInstance.push(ue),S.prepareRow.push(ae)};zn.pluginName="useGroupBy";var ur=function(S,M){var B=M.header;return[S,{onClick:B.canGroupBy?function(j){j.persist(),B.toggleGroupBy()}:void 0,style:{cursor:B.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function Gr(S,M,B,j){if(M.type===u.init)return i({groupBy:[]},S);if(M.type===u.resetGroupBy)return i({},S,{groupBy:j.initialState.groupBy||[]});if(M.type===u.setGroupBy)return i({},S,{groupBy:M.value});if(M.type===u.toggleGroupBy){var J=M.columnId,G=M.value,Q=G!==void 0?G:!S.groupBy.includes(J);return i({},S,Q?{groupBy:[].concat(S.groupBy,[J])}:{groupBy:S.groupBy.filter(function(le){return le!==J})})}}function qr(S,M){var B=M.instance.state.groupBy,j=B.map(function(G){return S.find(function(Q){return Q.id===G})}).filter(Boolean),J=S.filter(function(G){return!B.includes(G.id)});return(S=[].concat(j,J)).forEach(function(G){G.isGrouped=B.includes(G.id),G.groupedIndex=B.indexOf(G.id)}),S}var ua={};function ue(S){var M=S.data,B=S.rows,j=S.flatRows,J=S.rowsById,G=S.allColumns,Q=S.flatHeaders,le=S.groupByFn,de=le===void 0?Be:le,fe=S.manualGroupBy,Le=S.aggregations,Re=Le===void 0?ua:Le,Pe=S.plugins,be=S.state.groupBy,Ie=S.dispatch,Fe=S.autoResetGroupBy,Ue=Fe===void 0||Fe,it=S.disableGroupBy,It=S.defaultCanGroupBy,at=S.getHooks;b(Pe,["useColumnOrder","useFilters"],"useGroupBy");var Me=x(S);G.forEach(function(st){var Ut=st.accessor,Hn=st.defaultGroupBy,Kr=st.disableGroupBy;st.canGroupBy=Ut?U(st.canGroupBy,Kr!==!0&&void 0,it!==!0&&void 0,!0):U(st.canGroupBy,Hn,It,!1),st.canGroupBy&&(st.toggleGroupBy=function(){return S.toggleGroupBy(st.id)}),st.Aggregated=st.Aggregated||st.Cell});var Ct=r.useCallback(function(st,Ut){Ie({type:u.toggleGroupBy,columnId:st,value:Ut})},[Ie]),Xe=r.useCallback(function(st){Ie({type:u.setGroupBy,value:st})},[Ie]);Q.forEach(function(st){st.getGroupByToggleProps=y(at().getGroupByToggleProps,{instance:Me(),header:st})});var wt=r.useMemo(function(){if(fe||!be.length)return[B,j,J,Dt,Gt,j,J];var st=be.filter(function(br){return G.find(function(Bi){return Bi.id===br})}),Ut=[],Hn={},Kr=[],vt={},Nn=[],er={},Yr=function br(Bi,ci,R2){if(ci===void 0&&(ci=0),ci===st.length)return Bi.map(function(vf){return i({},vf,{depth:ci})});var Cy=st[ci],UM=de(Bi,Cy);return Object.entries(UM).map(function(vf,WM){var P2=vf[0],yf=vf[1],bf=Cy+":"+P2,I2=br(yf,ci+1,bf=R2?R2+">"+bf:bf),$2=ci?V(yf,"leafRows"):yf,HM=function(Fo,Ey,GM){var wf={};return G.forEach(function(tr){if(st.includes(tr.id))wf[tr.id]=Ey[0]?Ey[0].values[tr.id]:null;else{var O2=typeof tr.aggregate=="function"?tr.aggregate:Re[tr.aggregate]||yr[tr.aggregate];if(O2){var qM=Ey.map(function(Sf){return Sf.values[tr.id]}),KM=Fo.map(function(Sf){var Ty=Sf.values[tr.id];if(!GM&&tr.aggregateValue){var L2=typeof tr.aggregateValue=="function"?tr.aggregateValue:Re[tr.aggregateValue]||yr[tr.aggregateValue];if(!L2)throw console.info({column:tr}),new Error("React Table: Invalid column.aggregateValue option for column listed above");Ty=L2(Ty,Sf,tr)}return Ty});wf[tr.id]=O2(KM,qM)}else{if(tr.aggregate)throw console.info({column:tr}),new Error("React Table: Invalid column.aggregate option for column listed above");wf[tr.id]=null}}}),wf}($2,yf,ci),VM={id:bf,isGrouped:!0,groupByID:Cy,groupByVal:P2,values:HM,subRows:I2,leafRows:$2,depth:ci,index:WM};return I2.forEach(function(Fo){Ut.push(Fo),Hn[Fo.id]=Fo,Fo.isGrouped?(Kr.push(Fo),vt[Fo.id]=Fo):(Nn.push(Fo),er[Fo.id]=Fo)}),VM})}(B);return Yr.forEach(function(br){Ut.push(br),Hn[br.id]=br,br.isGrouped?(Kr.push(br),vt[br.id]=br):(Nn.push(br),er[br.id]=br)}),[Yr,Ut,Hn,Kr,vt,Nn,er]},[fe,be,B,j,J,G,Re,de]),Ft=wt[0],gt=wt[1],bt=wt[2],Yt=wt[3],St=wt[4],qt=wt[5],Ht=wt[6],yn=x(Ue);A(function(){yn()&&Ie({type:u.resetGroupBy})},[Ie,fe?null:M]),Object.assign(S,{preGroupedRows:B,preGroupedFlatRow:j,preGroupedRowsById:J,groupedRows:Ft,groupedFlatRows:gt,groupedRowsById:bt,onlyGroupedFlatRows:Yt,onlyGroupedRowsById:St,nonGroupedFlatRows:qt,nonGroupedRowsById:Ht,rows:Ft,flatRows:gt,rowsById:bt,toggleGroupBy:Ct,setGroupBy:Xe})}function ae(S){S.allCells.forEach(function(M){var B;M.isGrouped=M.column.isGrouped&&M.column.id===S.groupByID,M.isPlaceholder=!M.isGrouped&&M.column.isGrouped,M.isAggregated=!M.isGrouped&&!M.isPlaceholder&&((B=S.subRows)==null?void 0:B.length)})}function Be(S,M){return S.reduce(function(B,j,J){var G=""+j.values[M];return B[G]=Array.isArray(B[G])?B[G]:[],B[G].push(j),B},{})}var ot=/([0-9]+)/gm;function kt(S,M){return S===M?0:S>M?1:-1}function Sn(S,M,B){return[S.values[B],M.values[B]]}function _n(S){return typeof S=="number"?isNaN(S)||S===1/0||S===-1/0?"":String(S):typeof S=="string"?S:""}var yt=Object.freeze({__proto__:null,alphanumeric:function(S,M,B){var j=Sn(S,M,B),J=j[0],G=j[1];for(J=_n(J),G=_n(G),J=J.split(ot).filter(Boolean),G=G.split(ot).filter(Boolean);J.length&&G.length;){var Q=J.shift(),le=G.shift(),de=parseInt(Q,10),fe=parseInt(le,10),Le=[de,fe].sort();if(isNaN(Le[0])){if(Q>le)return 1;if(le>Q)return-1}else{if(isNaN(Le[1]))return isNaN(de)?-1:1;if(de>fe)return 1;if(fe>de)return-1}}return J.length-G.length},datetime:function(S,M,B){var j=Sn(S,M,B),J=j[0],G=j[1];return kt(J=J.getTime(),G=G.getTime())},basic:function(S,M,B){var j=Sn(S,M,B);return kt(j[0],j[1])},string:function(S,M,B){var j=Sn(S,M,B),J=j[0],G=j[1];for(J=J.split("").filter(Boolean),G=G.split("").filter(Boolean);J.length&&G.length;){var Q=J.shift(),le=G.shift(),de=Q.toLowerCase(),fe=le.toLowerCase();if(de>fe)return 1;if(fe>de)return-1;if(Q>le)return 1;if(le>Q)return-1}return J.length-G.length},number:function(S,M,B){var j=Sn(S,M,B),J=j[0],G=j[1],Q=/[^0-9.]/gi;return kt(J=Number(String(J).replace(Q,"")),G=Number(String(G).replace(Q,"")))}});u.resetSortBy="resetSortBy",u.setSortBy="setSortBy",u.toggleSortBy="toggleSortBy",u.clearSortBy="clearSortBy",h.sortType="alphanumeric",h.sortDescFirst=!1;var Rn=function(S){S.getSortByToggleProps=[Yv],S.stateReducers.push(Xv),S.useInstance.push(Jv)};Rn.pluginName="useSortBy";var Yv=function(S,M){var B=M.instance,j=M.column,J=B.isMultiSortEvent,G=J===void 0?function(Q){return Q.shiftKey}:J;return[S,{onClick:j.canSort?function(Q){Q.persist(),j.toggleSortBy(void 0,!B.disableMultiSort&&G(Q))}:void 0,style:{cursor:j.canSort?"pointer":void 0},title:j.canSort?"Toggle SortBy":void 0}]};function Xv(S,M,B,j){if(M.type===u.init)return i({sortBy:[]},S);if(M.type===u.resetSortBy)return i({},S,{sortBy:j.initialState.sortBy||[]});if(M.type===u.clearSortBy)return i({},S,{sortBy:S.sortBy.filter(function(Me){return Me.id!==M.columnId})});if(M.type===u.setSortBy)return i({},S,{sortBy:M.sortBy});if(M.type===u.toggleSortBy){var J,G=M.columnId,Q=M.desc,le=M.multi,de=j.allColumns,fe=j.disableMultiSort,Le=j.disableSortRemove,Re=j.disableMultiRemove,Pe=j.maxMultiSortColCount,be=Pe===void 0?Number.MAX_SAFE_INTEGER:Pe,Ie=S.sortBy,Fe=de.find(function(Me){return Me.id===G}).sortDescFirst,Ue=Ie.find(function(Me){return Me.id===G}),it=Ie.findIndex(function(Me){return Me.id===G}),It=Q!=null,at=[];return(J=!fe&&le?Ue?"toggle":"add":it!==Ie.length-1||Ie.length!==1?"replace":Ue?"toggle":"replace")!="toggle"||Le||It||le&&Re||!(Ue&&Ue.desc&&!Fe||!Ue.desc&&Fe)||(J="remove"),J==="replace"?at=[{id:G,desc:It?Q:Fe}]:J==="add"?(at=[].concat(Ie,[{id:G,desc:It?Q:Fe}])).splice(0,at.length-be):J==="toggle"?at=Ie.map(function(Me){return Me.id===G?i({},Me,{desc:It?Q:!Ue.desc}):Me}):J==="remove"&&(at=Ie.filter(function(Me){return Me.id!==G})),i({},S,{sortBy:at})}}function Jv(S){var M=S.data,B=S.rows,j=S.flatRows,J=S.allColumns,G=S.orderByFn,Q=G===void 0?lf:G,le=S.sortTypes,de=S.manualSortBy,fe=S.defaultCanSort,Le=S.disableSortBy,Re=S.flatHeaders,Pe=S.state.sortBy,be=S.dispatch,Ie=S.plugins,Fe=S.getHooks,Ue=S.autoResetSortBy,it=Ue===void 0||Ue;b(Ie,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var It=r.useCallback(function(gt){be({type:u.setSortBy,sortBy:gt})},[be]),at=r.useCallback(function(gt,bt,Yt){be({type:u.toggleSortBy,columnId:gt,desc:bt,multi:Yt})},[be]),Me=x(S);Re.forEach(function(gt){var bt=gt.accessor,Yt=gt.canSort,St=gt.disableSortBy,qt=gt.id,Ht=bt?U(St!==!0&&void 0,Le!==!0&&void 0,!0):U(fe,Yt,!1);gt.canSort=Ht,gt.canSort&&(gt.toggleSortBy=function(st,Ut){return at(gt.id,st,Ut)},gt.clearSortBy=function(){be({type:u.clearSortBy,columnId:gt.id})}),gt.getSortByToggleProps=y(Fe().getSortByToggleProps,{instance:Me(),column:gt});var yn=Pe.find(function(st){return st.id===qt});gt.isSorted=!!yn,gt.sortedIndex=Pe.findIndex(function(st){return st.id===qt}),gt.isSortedDesc=gt.isSorted?yn.desc:void 0});var Ct=r.useMemo(function(){if(de||!Pe.length)return[B,j];var gt=[],bt=Pe.filter(function(Yt){return J.find(function(St){return St.id===Yt.id})});return[function Yt(St){var qt=Q(St,bt.map(function(Ht){var yn=J.find(function(Hn){return Hn.id===Ht.id});if(!yn)throw new Error("React-Table: Could not find a column with id: "+Ht.id+" while sorting");var st=yn.sortType,Ut=Y(st)||(le||{})[st]||yt[st];if(!Ut)throw new Error("React-Table: Could not find a valid sortType of '"+st+"' for column '"+Ht.id+"'.");return function(Hn,Kr){return Ut(Hn,Kr,Ht.id,Ht.desc)}}),bt.map(function(Ht){var yn=J.find(function(st){return st.id===Ht.id});return yn&&yn.sortInverted?Ht.desc:!Ht.desc}));return qt.forEach(function(Ht){gt.push(Ht),Ht.subRows&&Ht.subRows.length!==0&&(Ht.subRows=Yt(Ht.subRows))}),qt}(B),gt]},[de,Pe,B,j,J,Q,le]),Xe=Ct[0],wt=Ct[1],Ft=x(it);A(function(){Ft()&&be({type:u.resetSortBy})},[de?null:M]),Object.assign(S,{preSortedRows:B,preSortedFlatRows:j,sortedRows:Xe,sortedFlatRows:wt,rows:Xe,flatRows:wt,setSortBy:It,toggleSortBy:at})}function lf(S,M,B){return[].concat(S).sort(function(j,J){for(var G=0;G<M.length;G+=1){var Q=M[G],le=B[G]===!1||B[G]==="desc",de=Q(j,J);if(de!==0)return le?-de:de}return B[0]?j.index-J.index:J.index-j.index})}u.resetPage="resetPage",u.gotoPage="gotoPage",u.setPageSize="setPageSize";var cf=function(S){S.stateReducers.push(Qv),S.useInstance.push(uf)};function Qv(S,M,B,j){if(M.type===u.init)return i({pageSize:10,pageIndex:0},S);if(M.type===u.resetPage)return i({},S,{pageIndex:j.initialState.pageIndex||0});if(M.type===u.gotoPage){var J=j.pageCount,G=j.page,Q=w(M.pageIndex,S.pageIndex),le=!1;return Q>S.pageIndex?le=J===-1?G.length>=S.pageSize:Q<J:Q<S.pageIndex&&(le=Q>-1),le?i({},S,{pageIndex:Q}):S}if(M.type===u.setPageSize){var de=M.pageSize,fe=S.pageSize*S.pageIndex;return i({},S,{pageIndex:Math.floor(fe/de),pageSize:de})}}function uf(S){var M=S.rows,B=S.autoResetPage,j=B===void 0||B,J=S.manualExpandedKey,G=J===void 0?"expanded":J,Q=S.plugins,le=S.pageCount,de=S.paginateExpandedRows,fe=de===void 0||de,Le=S.expandSubRows,Re=Le===void 0||Le,Pe=S.state,be=Pe.pageSize,Ie=Pe.pageIndex,Fe=Pe.expanded,Ue=Pe.globalFilter,it=Pe.filters,It=Pe.groupBy,at=Pe.sortBy,Me=S.dispatch,Ct=S.data,Xe=S.manualPagination;b(Q,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var wt=x(j);A(function(){wt()&&Me({type:u.resetPage})},[Me,Xe?null:Ct,Ue,it,It,at]);var Ft=Xe?le:Math.ceil(M.length/be),gt=r.useMemo(function(){return Ft>0?[].concat(new Array(Ft)).fill(null).map(function(Ut,Hn){return Hn}):[]},[Ft]),bt=r.useMemo(function(){var Ut;if(Xe)Ut=M;else{var Hn=be*Ie,Kr=Hn+be;Ut=M.slice(Hn,Kr)}return fe?Ut:te(Ut,{manualExpandedKey:G,expanded:Fe,expandSubRows:Re})},[Re,Fe,G,Xe,Ie,be,fe,M]),Yt=Ie>0,St=Ft===-1?bt.length>=be:Ie<Ft-1,qt=r.useCallback(function(Ut){Me({type:u.gotoPage,pageIndex:Ut})},[Me]),Ht=r.useCallback(function(){return qt(function(Ut){return Ut-1})},[qt]),yn=r.useCallback(function(){return qt(function(Ut){return Ut+1})},[qt]),st=r.useCallback(function(Ut){Me({type:u.setPageSize,pageSize:Ut})},[Me]);Object.assign(S,{pageOptions:gt,pageCount:Ft,page:bt,canPreviousPage:Yt,canNextPage:St,gotoPage:qt,previousPage:Ht,nextPage:yn,setPageSize:st})}cf.pluginName="usePagination",u.resetPivot="resetPivot",u.togglePivot="togglePivot";var Is=function(S){S.getPivotToggleProps=[wu],S.stateReducers.push(Zv),S.useInstanceAfterData.push(ey),S.allColumns.push(ty),S.accessValue.push(ny),S.materializedColumns.push(ry),S.materializedColumnsDeps.push(oy),S.visibleColumns.push(Su),S.visibleColumnsDeps.push(ay),S.useInstance.push(iy),S.prepareRow.push(sy)};Is.pluginName="usePivotColumns";var df=[],wu=function(S,M){var B=M.header;return[S,{onClick:B.canPivot?function(j){j.persist(),B.togglePivot()}:void 0,style:{cursor:B.canPivot?"pointer":void 0},title:"Toggle Pivot"}]};function Zv(S,M,B,j){if(M.type===u.init)return i({pivotColumns:df},S);if(M.type===u.resetPivot)return i({},S,{pivotColumns:j.initialState.pivotColumns||df});if(M.type===u.togglePivot){var J=M.columnId,G=M.value,Q=G!==void 0?G:!S.pivotColumns.includes(J);return i({},S,Q?{pivotColumns:[].concat(S.pivotColumns,[J])}:{pivotColumns:S.pivotColumns.filter(function(le){return le!==J})})}}function ey(S){S.allColumns.forEach(function(M){M.isPivotSource=S.state.pivotColumns.includes(M.id)})}function ty(S,M){var B=M.instance;return S.forEach(function(j){j.isPivotSource=B.state.pivotColumns.includes(j.id),j.uniqueValues=new Set}),S}function ny(S,M){var B=M.column;return B.uniqueValues&&S!==void 0&&B.uniqueValues.add(S),S}function ry(S,M){var B=M.instance,j=B.allColumns,J=B.state;if(!J.pivotColumns.length||!J.groupBy||!J.groupBy.length)return S;var G=J.pivotColumns.map(function(de){return j.find(function(fe){return fe.id===de})}).filter(Boolean),Q=j.filter(function(de){return!de.isPivotSource&&!J.groupBy.includes(de.id)&&!J.pivotColumns.includes(de.id)}),le=L(function de(fe,Le,Re){fe===void 0&&(fe=0),Re===void 0&&(Re=[]);var Pe=G[fe];return Pe?Array.from(Pe.uniqueValues).sort().map(function(be){var Ie=i({},Pe,{Header:Pe.PivotHeader||typeof Pe.header=="string"?Pe.Header+": "+be:be,isPivotGroup:!0,parent:Le,depth:fe,id:Le?Le.id+"."+Pe.id+"."+be:Pe.id+"."+be,pivotValue:be});return Ie.columns=de(fe+1,Ie,[].concat(Re,[function(Fe){return Fe.values[Pe.id]===be}])),Ie}):Q.map(function(be){return i({},be,{canPivot:!1,isPivoted:!0,parent:Le,depth:fe,id:""+(Le?Le.id+"."+be.id:be.id),accessor:function(Ie,Fe,Ue){if(Re.every(function(it){return it(Ue)}))return Ue.values[be.id]}})})}());return[].concat(S,le)}function oy(S,M){var B=M.instance.state,j=B.pivotColumns,J=B.groupBy;return[].concat(S,[j,J])}function Su(S,M){var B=M.instance.state;return S=S.filter(function(j){return!j.isPivotSource}),B.pivotColumns.length&&B.groupBy&&B.groupBy.length&&(S=S.filter(function(j){return j.isGrouped||j.isPivoted})),S}function ay(S,M){var B=M.instance;return[].concat(S,[B.state.pivotColumns,B.state.groupBy])}function iy(S){var M=S.columns,B=S.allColumns,j=S.flatHeaders,J=S.getHooks,G=S.plugins,Q=S.dispatch,le=S.autoResetPivot,de=le===void 0||le,fe=S.manaulPivot,Le=S.disablePivot,Re=S.defaultCanPivot;b(G,["useGroupBy"],"usePivotColumns");var Pe=x(S);B.forEach(function(Ie){var Fe=Ie.accessor,Ue=Ie.defaultPivot,it=Ie.disablePivot;Ie.canPivot=Fe?U(Ie.canPivot,it!==!0&&void 0,Le!==!0&&void 0,!0):U(Ie.canPivot,Ue,Re,!1),Ie.canPivot&&(Ie.togglePivot=function(){return S.togglePivot(Ie.id)}),Ie.Aggregated=Ie.Aggregated||Ie.Cell}),j.forEach(function(Ie){Ie.getPivotToggleProps=y(J().getPivotToggleProps,{instance:Pe(),header:Ie})});var be=x(de);A(function(){be()&&Q({type:u.resetPivot})},[Q,fe?null:M]),Object.assign(S,{togglePivot:function(Ie,Fe){Q({type:u.togglePivot,columnId:Ie,value:Fe})}})}function sy(S){S.allCells.forEach(function(M){M.isPivoted=M.column.isPivoted})}u.resetSelectedRows="resetSelectedRows",u.toggleAllRowsSelected="toggleAllRowsSelected",u.toggleRowSelected="toggleRowSelected",u.toggleAllPageRowsSelected="toggleAllPageRowsSelected";var pf=function(S){S.getToggleRowSelectedProps=[ly],S.getToggleAllRowsSelectedProps=[cy],S.getToggleAllPageRowsSelectedProps=[uy],S.stateReducers.push(ff),S.useInstance.push(dy),S.prepareRow.push(py)};pf.pluginName="useRowSelect";var ly=function(S,M){var B=M.instance,j=M.row,J=B.manualRowSelectedKey,G=J===void 0?"isSelected":J;return[S,{onChange:function(Q){j.toggleRowSelected(Q.target.checked)},style:{cursor:"pointer"},checked:!(!j.original||!j.original[G])||j.isSelected,title:"Toggle Row Selected",indeterminate:j.isSomeSelected}]},cy=function(S,M){var B=M.instance;return[S,{onChange:function(j){B.toggleAllRowsSelected(j.target.checked)},style:{cursor:"pointer"},checked:B.isAllRowsSelected,title:"Toggle All Rows Selected",indeterminate:Boolean(!B.isAllRowsSelected&&Object.keys(B.state.selectedRowIds).length)}]},uy=function(S,M){var B=M.instance;return[S,{onChange:function(j){B.toggleAllPageRowsSelected(j.target.checked)},style:{cursor:"pointer"},checked:B.isAllPageRowsSelected,title:"Toggle All Current Page Rows Selected",indeterminate:Boolean(!B.isAllPageRowsSelected&&B.page.some(function(j){var J=j.id;return B.state.selectedRowIds[J]}))}]};function ff(S,M,B,j){if(M.type===u.init)return i({selectedRowIds:{}},S);if(M.type===u.resetSelectedRows)return i({},S,{selectedRowIds:j.initialState.selectedRowIds||{}});if(M.type===u.toggleAllRowsSelected){var J=M.value,G=j.isAllRowsSelected,Q=j.rowsById,le=j.nonGroupedRowsById,de=le===void 0?Q:le,fe=J!==void 0?J:!G,Le=Object.assign({},S.selectedRowIds);return fe?Object.keys(de).forEach(function(qt){Le[qt]=!0}):Object.keys(de).forEach(function(qt){delete Le[qt]}),i({},S,{selectedRowIds:Le})}if(M.type===u.toggleRowSelected){var Re=M.id,Pe=M.value,be=j.rowsById,Ie=j.selectSubRows,Fe=Ie===void 0||Ie,Ue=j.getSubRows,it=S.selectedRowIds[Re],It=Pe!==void 0?Pe:!it;if(it===It)return S;var at=i({},S.selectedRowIds);return function qt(Ht){var yn=be[Ht];if(yn&&(yn.isGrouped||(It?at[Ht]=!0:delete at[Ht]),Fe&&Ue(yn)))return Ue(yn).forEach(function(st){return qt(st.id)})}(Re),i({},S,{selectedRowIds:at})}if(M.type===u.toggleAllPageRowsSelected){var Me=M.value,Ct=j.page,Xe=j.rowsById,wt=j.selectSubRows,Ft=wt===void 0||wt,gt=j.isAllPageRowsSelected,bt=j.getSubRows,Yt=Me!==void 0?Me:!gt,St=i({},S.selectedRowIds);return Ct.forEach(function(qt){return function Ht(yn){var st=Xe[yn];if(st.isGrouped||(Yt?St[yn]=!0:delete St[yn]),Ft&&bt(st))return bt(st).forEach(function(Ut){return Ht(Ut.id)})}(qt.id)}),i({},S,{selectedRowIds:St})}return S}function dy(S){var M=S.data,B=S.rows,j=S.getHooks,J=S.plugins,G=S.rowsById,Q=S.nonGroupedRowsById,le=Q===void 0?G:Q,de=S.autoResetSelectedRows,fe=de===void 0||de,Le=S.state.selectedRowIds,Re=S.selectSubRows,Pe=Re===void 0||Re,be=S.dispatch,Ie=S.page,Fe=S.getSubRows;b(J,["useFilters","useGroupBy","useSortBy","useExpanded","usePagination"],"useRowSelect");var Ue=r.useMemo(function(){var bt=[];return B.forEach(function(Yt){var St=Pe?function qt(Ht,yn,st){if(yn[Ht.id])return!0;var Ut=st(Ht);if(Ut&&Ut.length){var Hn=!0,Kr=!1;return Ut.forEach(function(vt){Kr&&!Hn||(qt(vt,yn,st)?Kr=!0:Hn=!1)}),!!Hn||!!Kr&&null}return!1}(Yt,Le,Fe):!!Le[Yt.id];Yt.isSelected=!!St,Yt.isSomeSelected=St===null,St&&bt.push(Yt)}),bt},[B,Pe,Le,Fe]),it=Boolean(Object.keys(le).length&&Object.keys(Le).length),It=it;it&&Object.keys(le).some(function(bt){return!Le[bt]})&&(it=!1),it||Ie&&Ie.length&&Ie.some(function(bt){var Yt=bt.id;return!Le[Yt]})&&(It=!1);var at=x(fe);A(function(){at()&&be({type:u.resetSelectedRows})},[be,M]);var Me=r.useCallback(function(bt){return be({type:u.toggleAllRowsSelected,value:bt})},[be]),Ct=r.useCallback(function(bt){return be({type:u.toggleAllPageRowsSelected,value:bt})},[be]),Xe=r.useCallback(function(bt,Yt){return be({type:u.toggleRowSelected,id:bt,value:Yt})},[be]),wt=x(S),Ft=y(j().getToggleAllRowsSelectedProps,{instance:wt()}),gt=y(j().getToggleAllPageRowsSelectedProps,{instance:wt()});Object.assign(S,{selectedFlatRows:Ue,isAllRowsSelected:it,isAllPageRowsSelected:It,toggleRowSelected:Xe,toggleAllRowsSelected:Me,getToggleAllRowsSelectedProps:Ft,getToggleAllPageRowsSelectedProps:gt,toggleAllPageRowsSelected:Ct})}function py(S,M){var B=M.instance;S.toggleRowSelected=function(j){return B.toggleRowSelected(S.id,j)},S.getToggleRowSelectedProps=y(B.getHooks().getToggleRowSelectedProps,{instance:B,row:S})}var $s=function(S){return{}},ii=function(S){return{}};u.setRowState="setRowState",u.setCellState="setCellState",u.resetRowState="resetRowState";var xu=function(S){S.stateReducers.push(si),S.useInstance.push(fy),S.prepareRow.push(hy)};function si(S,M,B,j){var J=j.initialRowStateAccessor,G=J===void 0?$s:J,Q=j.initialCellStateAccessor,le=Q===void 0?ii:Q,de=j.rowsById;if(M.type===u.init)return i({rowState:{}},S);if(M.type===u.resetRowState)return i({},S,{rowState:j.initialState.rowState||{}});if(M.type===u.setRowState){var fe,Le=M.rowId,Re=M.value,Pe=S.rowState[Le]!==void 0?S.rowState[Le]:G(de[Le]);return i({},S,{rowState:i({},S.rowState,(fe={},fe[Le]=w(Re,Pe),fe))})}if(M.type===u.setCellState){var be,Ie,Fe,Ue,it,It=M.rowId,at=M.columnId,Me=M.value,Ct=S.rowState[It]!==void 0?S.rowState[It]:G(de[It]),Xe=(Ct==null||(be=Ct.cellState)==null?void 0:be[at])!==void 0?Ct.cellState[at]:le((Ie=de[It])==null||(Fe=Ie.cells)==null?void 0:Fe.find(function(wt){return wt.column.id===at}));return i({},S,{rowState:i({},S.rowState,(it={},it[It]=i({},Ct,{cellState:i({},Ct.cellState||{},(Ue={},Ue[at]=w(Me,Xe),Ue))}),it))})}}function fy(S){var M=S.autoResetRowState,B=M===void 0||M,j=S.data,J=S.dispatch,G=r.useCallback(function(de,fe){return J({type:u.setRowState,rowId:de,value:fe})},[J]),Q=r.useCallback(function(de,fe,Le){return J({type:u.setCellState,rowId:de,columnId:fe,value:Le})},[J]),le=x(B);A(function(){le()&&J({type:u.resetRowState})},[j]),Object.assign(S,{setRowState:G,setCellState:Q})}function hy(S,M){var B=M.instance,j=B.initialRowStateAccessor,J=j===void 0?$s:j,G=B.initialCellStateAccessor,Q=G===void 0?ii:G,le=B.state.rowState;S&&(S.state=le[S.id]!==void 0?le[S.id]:J(S),S.setState=function(de){return B.setRowState(S.id,de)},S.cells.forEach(function(de){S.state.cellState||(S.state.cellState={}),de.state=S.state.cellState[de.column.id]!==void 0?S.state.cellState[de.column.id]:Q(de),de.setState=function(fe){return B.setCellState(S.id,de.column.id,fe)}}))}xu.pluginName="useRowState",u.resetColumnOrder="resetColumnOrder",u.setColumnOrder="setColumnOrder";var hf=function(S){S.stateReducers.push(my),S.visibleColumnsDeps.push(function(M,B){var j=B.instance;return[].concat(M,[j.state.columnOrder])}),S.visibleColumns.push(gy),S.useInstance.push(vy)};function my(S,M,B,j){return M.type===u.init?i({columnOrder:[]},S):M.type===u.resetColumnOrder?i({},S,{columnOrder:j.initialState.columnOrder||[]}):M.type===u.setColumnOrder?i({},S,{columnOrder:w(M.columnOrder,S.columnOrder)}):void 0}function gy(S,M){var B=M.instance.state.columnOrder;if(!B||!B.length)return S;for(var j=[].concat(B),J=[].concat(S),G=[],Q=function(){var le=j.shift(),de=J.findIndex(function(fe){return fe.id===le});de>-1&&G.push(J.splice(de,1)[0])};J.length&&j.length;)Q();return[].concat(G,J)}function vy(S){var M=S.dispatch;S.setColumnOrder=r.useCallback(function(B){return M({type:u.setColumnOrder,columnOrder:B})},[M])}hf.pluginName="useColumnOrder",h.canResize=!0,u.columnStartResizing="columnStartResizing",u.columnResizing="columnResizing",u.columnDoneResizing="columnDoneResizing",u.resetResize="resetResize";var Cu=function(S){S.getResizerProps=[li],S.getHeaderProps.push({style:{position:"relative"}}),S.stateReducers.push(yy),S.useInstance.push(by),S.useInstanceBeforeDimensions.push(mf)},li=function(S,M){var B=M.instance,j=M.header,J=B.dispatch,G=function(Q,le){var de=!1;if(Q.type==="touchstart"){if(Q.touches&&Q.touches.length>1)return;de=!0}var fe,Le,Re=function(at){var Me=[];return function Ct(Xe){Xe.columns&&Xe.columns.length&&Xe.columns.map(Ct),Me.push(Xe)}(at),Me}(le).map(function(at){return[at.id,at.totalWidth]}),Pe=de?Math.round(Q.touches[0].clientX):Q.clientX,be=function(){window.cancelAnimationFrame(fe),fe=null,J({type:u.columnDoneResizing})},Ie=function(){window.cancelAnimationFrame(fe),fe=null,J({type:u.columnResizing,clientX:Le})},Fe=function(at){Le=at,fe||(fe=window.requestAnimationFrame(Ie))},Ue={mouse:{moveEvent:"mousemove",moveHandler:function(at){return Fe(at.clientX)},upEvent:"mouseup",upHandler:function(at){document.removeEventListener("mousemove",Ue.mouse.moveHandler),document.removeEventListener("mouseup",Ue.mouse.upHandler),be()}},touch:{moveEvent:"touchmove",moveHandler:function(at){return at.cancelable&&(at.preventDefault(),at.stopPropagation()),Fe(at.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(at){document.removeEventListener(Ue.touch.moveEvent,Ue.touch.moveHandler),document.removeEventListener(Ue.touch.upEvent,Ue.touch.moveHandler),be()}}},it=de?Ue.touch:Ue.mouse,It=!!function(){if(typeof R=="boolean")return R;var at=!1;try{var Me={get passive(){return at=!0,!1}};window.addEventListener("test",null,Me),window.removeEventListener("test",null,Me)}catch{at=!1}return R=at}()&&{passive:!1};document.addEventListener(it.moveEvent,it.moveHandler,It),document.addEventListener(it.upEvent,it.upHandler,It),J({type:u.columnStartResizing,columnId:le.id,columnWidth:le.totalWidth,headerIdWidths:Re,clientX:Pe})};return[S,{onMouseDown:function(Q){return Q.persist()||G(Q,j)},onTouchStart:function(Q){return Q.persist()||G(Q,j)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function yy(S,M){if(M.type===u.init)return i({columnResizing:{columnWidths:{}}},S);if(M.type===u.resetResize)return i({},S,{columnResizing:{columnWidths:{}}});if(M.type===u.columnStartResizing){var B=M.clientX,j=M.columnId,J=M.columnWidth,G=M.headerIdWidths;return i({},S,{columnResizing:i({},S.columnResizing,{startX:B,headerIdWidths:G,columnWidth:J,isResizingColumn:j})})}if(M.type===u.columnResizing){var Q=M.clientX,le=S.columnResizing,de=le.startX,fe=le.columnWidth,Le=le.headerIdWidths,Re=(Q-de)/fe,Pe={};return(Le===void 0?[]:Le).forEach(function(be){var Ie=be[0],Fe=be[1];Pe[Ie]=Math.max(Fe+Fe*Re,0)}),i({},S,{columnResizing:i({},S.columnResizing,{columnWidths:i({},S.columnResizing.columnWidths,{},Pe)})})}return M.type===u.columnDoneResizing?i({},S,{columnResizing:i({},S.columnResizing,{startX:null,isResizingColumn:null})}):void 0}Cu.pluginName="useResizeColumns";var mf=function(S){var M=S.flatHeaders,B=S.disableResizing,j=S.getHooks,J=S.state.columnResizing,G=x(S);M.forEach(function(Q){var le=U(Q.disableResizing!==!0&&void 0,B!==!0&&void 0,!0);Q.canResize=le,Q.width=J.columnWidths[Q.id]||Q.originalWidth||Q.width,Q.isResizing=J.isResizingColumn===Q.id,le&&(Q.getResizerProps=y(j().getResizerProps,{instance:G(),header:Q}))})};function by(S){var M=S.plugins,B=S.dispatch,j=S.autoResetResize,J=j===void 0||j,G=S.columns;b(M,["useAbsoluteLayout"],"useResizeColumns");var Q=x(J);A(function(){Q()&&B({type:u.resetResize})},[G]);var le=r.useCallback(function(){return B({type:u.resetResize})},[B]);Object.assign(S,{resetResizing:le})}var Os={position:"absolute",top:0},Eu=function(S){S.getTableBodyProps.push($l),S.getRowProps.push($l),S.getHeaderGroupProps.push($l),S.getFooterGroupProps.push($l),S.getHeaderProps.push(function(M,B){var j=B.column;return[M,{style:i({},Os,{left:j.totalLeft+"px",width:j.totalWidth+"px"})}]}),S.getCellProps.push(function(M,B){var j=B.cell;return[M,{style:i({},Os,{left:j.column.totalLeft+"px",width:j.column.totalWidth+"px"})}]}),S.getFooterProps.push(function(M,B){var j=B.column;return[M,{style:i({},Os,{left:j.totalLeft+"px",width:j.totalWidth+"px"})}]})};Eu.pluginName="useAbsoluteLayout";var $l=function(S,M){return[S,{style:{position:"relative",width:M.instance.totalColumnsWidth+"px"}}]},Tu={display:"inline-block",boxSizing:"border-box"},Ol=function(S,M){return[S,{style:{display:"flex",width:M.instance.totalColumnsWidth+"px"}}]},gf=function(S){S.getRowProps.push(Ol),S.getHeaderGroupProps.push(Ol),S.getFooterGroupProps.push(Ol),S.getHeaderProps.push(function(M,B){var j=B.column;return[M,{style:i({},Tu,{width:j.totalWidth+"px"})}]}),S.getCellProps.push(function(M,B){var j=B.cell;return[M,{style:i({},Tu,{width:j.column.totalWidth+"px"})}]}),S.getFooterProps.push(function(M,B){var j=B.column;return[M,{style:i({},Tu,{width:j.totalWidth+"px"})}]})};function Ls(S){S.getTableProps.push(wy),S.getRowProps.push(Ms),S.getHeaderGroupProps.push(Ms),S.getFooterGroupProps.push(Ms),S.getHeaderProps.push(Sy),S.getCellProps.push(xy),S.getFooterProps.push(H)}gf.pluginName="useBlockLayout",Ls.pluginName="useFlexLayout";var wy=function(S,M){return[S,{style:{minWidth:M.instance.totalColumnsMinWidth+"px"}}]},Ms=function(S,M){return[S,{style:{display:"flex",flex:"1 0 auto",minWidth:M.instance.totalColumnsMinWidth+"px"}}]},Sy=function(S,M){var B=M.column;return[S,{style:{boxSizing:"border-box",flex:B.totalFlexWidth?B.totalFlexWidth+" 0 auto":void 0,minWidth:B.totalMinWidth+"px",width:B.totalWidth+"px"}}]},xy=function(S,M){var B=M.cell;return[S,{style:{boxSizing:"border-box",flex:B.column.totalFlexWidth+" 0 auto",minWidth:B.column.totalMinWidth+"px",width:B.column.totalWidth+"px"}}]},H=function(S,M){var B=M.column;return[S,{style:{boxSizing:"border-box",flex:B.totalFlexWidth?B.totalFlexWidth+" 0 auto":void 0,minWidth:B.totalMinWidth+"px",width:B.totalWidth+"px"}}]};function oe(S){S.stateReducers.push(Pr),S.getTableProps.push(ge),S.getHeaderProps.push(tt),S.getRowProps.push(Zn)}u.columnStartResizing="columnStartResizing",u.columnResizing="columnResizing",u.columnDoneResizing="columnDoneResizing",u.resetResize="resetResize",oe.pluginName="useGridLayout";var ge=function(S,M){var B=M.instance;return[S,{style:{display:"grid",gridTemplateColumns:B.visibleColumns.map(function(j){var J;return B.state.gridLayout.columnWidths[j.id]?B.state.gridLayout.columnWidths[j.id]+"px":(J=B.state.columnResizing)!=null&&J.isResizingColumn?B.state.gridLayout.startWidths[j.id]+"px":typeof j.width=="number"?j.width+"px":j.width}).join(" ")}}]},tt=function(S,M){var B=M.column;return[S,{id:"header-cell-"+B.id,style:{position:"sticky",gridColumn:"span "+B.totalVisibleHeaderCount}}]},Zn=function(S,M){var B=M.row;return B.isExpanded?[S,{style:{gridColumn:"1 / "+(B.cells.length+1)}}]:[S,{}]};function Pr(S,M,B,j){if(M.type===u.init)return i({gridLayout:{columnWidths:{}}},S);if(M.type===u.resetResize)return i({},S,{gridLayout:{columnWidths:{}}});if(M.type===u.columnStartResizing){var J=M.columnId,G=M.headerIdWidths,Q=Dr(J);if(Q!==void 0){var le=j.visibleColumns.reduce(function(Me,Ct){var Xe;return i({},Me,((Xe={})[Ct.id]=Dr(Ct.id),Xe))},{}),de=j.visibleColumns.reduce(function(Me,Ct){var Xe;return i({},Me,((Xe={})[Ct.id]=Ct.minWidth,Xe))},{}),fe=j.visibleColumns.reduce(function(Me,Ct){var Xe;return i({},Me,((Xe={})[Ct.id]=Ct.maxWidth,Xe))},{}),Le=G.map(function(Me){var Ct=Me[0];return[Ct,Dr(Ct)]});return i({},S,{gridLayout:i({},S.gridLayout,{startWidths:le,minWidths:de,maxWidths:fe,headerIdGridWidths:Le,columnWidth:Q})})}return S}if(M.type===u.columnResizing){var Re=M.clientX,Pe=S.columnResizing.startX,be=S.gridLayout,Ie=be.columnWidth,Fe=be.minWidths,Ue=be.maxWidths,it=be.headerIdGridWidths,It=(Re-Pe)/Ie,at={};return(it===void 0?[]:it).forEach(function(Me){var Ct=Me[0],Xe=Me[1];at[Ct]=Math.min(Math.max(Fe[Ct],Xe+Xe*It),Ue[Ct])}),i({},S,{gridLayout:i({},S.gridLayout,{columnWidths:i({},S.gridLayout.columnWidths,{},at)})})}return M.type===u.columnDoneResizing?i({},S,{gridLayout:i({},S.gridLayout,{startWidths:{},minWidths:{},maxWidths:{}})}):void 0}function Dr(S){var M,B=(M=document.getElementById("header-cell-"+S))==null?void 0:M.offsetWidth;if(B!==void 0)return B}n._UNSTABLE_usePivotColumns=Is,n.actions=u,n.defaultColumn=h,n.defaultGroupByFn=Be,n.defaultOrderByFn=lf,n.defaultRenderer=d,n.emptyRenderer=f,n.ensurePluginOrder=b,n.flexRender=_,n.functionalUpdate=w,n.loopHooks=v,n.makePropGetter=y,n.makeRenderer=k,n.reduceHooks=g,n.safeUseLayoutEffect=E,n.useAbsoluteLayout=Eu,n.useAsyncDebounce=function(S,M){M===void 0&&(M=0);var B=r.useRef({}),j=x(S),J=x(M);return r.useCallback(function(){var G=a(regeneratorRuntime.mark(function Q(){var le,de,fe,Le=arguments;return regeneratorRuntime.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:for(le=Le.length,de=new Array(le),fe=0;fe<le;fe++)de[fe]=Le[fe];return B.current.promise||(B.current.promise=new Promise(function(Pe,be){B.current.resolve=Pe,B.current.reject=be})),B.current.timeout&&clearTimeout(B.current.timeout),B.current.timeout=setTimeout(a(regeneratorRuntime.mark(function Pe(){return regeneratorRuntime.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return delete B.current.timeout,be.prev=1,be.t0=B.current,be.next=5,j().apply(void 0,de);case 5:be.t1=be.sent,be.t0.resolve.call(be.t0,be.t1),be.next=12;break;case 9:be.prev=9,be.t2=be.catch(1),B.current.reject(be.t2);case 12:return be.prev=12,delete B.current.promise,be.finish(12);case 15:case"end":return be.stop()}},Pe,null,[[1,9,12,15]])})),J()),Re.abrupt("return",B.current.promise);case 5:case"end":return Re.stop()}},Q)}));return function(){return G.apply(this,arguments)}}(),[j,J])},n.useBlockLayout=gf,n.useColumnOrder=hf,n.useExpanded=q,n.useFilters=to,n.useFlexLayout=Ls,n.useGetLatest=x,n.useGlobalFilter=Rr,n.useGridLayout=oe,n.useGroupBy=zn,n.useMountedLayoutEffect=A,n.usePagination=cf,n.useResizeColumns=Cu,n.useRowSelect=pf,n.useRowState=xu,n.useSortBy=Rn,n.useTable=function(S){for(var M=arguments.length,B=new Array(M>1?M-1:0),j=1;j<M;j++)B[j-1]=arguments[j];S=Te(S),B=[Ge].concat(B);var J=r.useRef({}),G=x(J.current);Object.assign(G(),i({},S,{plugins:B,hooks:Ve()})),B.filter(Boolean).forEach(function(vt){vt(G().hooks)});var Q=x(G().hooks);G().getHooks=Q,delete G().hooks,Object.assign(G(),g(Q().useOptions,Te(S)));var le=G(),de=le.data,fe=le.columns,Le=le.initialState,Re=le.defaultColumn,Pe=le.getSubRows,be=le.getRowId,Ie=le.stateReducer,Fe=le.useControlledState,Ue=x(Ie),it=r.useCallback(function(vt,Nn){if(!Nn.type)throw console.info({action:Nn}),new Error("Unknown Action 👆");return[].concat(Q().stateReducers,Array.isArray(Ue())?Ue():[Ue()]).reduce(function(er,Yr){return Yr(er,Nn,vt,G())||er},vt)},[Q,Ue,G]),It=r.useReducer(it,void 0,function(){return it(Le,{type:u.init})}),at=It[0],Me=It[1],Ct=g([].concat(Q().useControlledState,[Fe]),at,{instance:G()});Object.assign(G(),{state:Ct,dispatch:Me});var Xe=r.useMemo(function(){return O(g(Q().columns,fe,{instance:G()}))},[Q,G,fe].concat(g(Q().columnsDeps,[],{instance:G()})));G().columns=Xe;var wt=r.useMemo(function(){return g(Q().allColumns,L(Xe),{instance:G()}).map(I)},[Xe,Q,G].concat(g(Q().allColumnsDeps,[],{instance:G()})));G().allColumns=wt;var Ft=r.useMemo(function(){for(var vt=[],Nn=[],er={},Yr=[].concat(wt);Yr.length;){var br=Yr.shift();Ne({data:de,rows:vt,flatRows:Nn,rowsById:er,column:br,getRowId:be,getSubRows:Pe,accessValueHooks:Q().accessValue,getInstance:G})}return[vt,Nn,er]},[wt,de,be,Pe,Q,G]),gt=Ft[0],bt=Ft[1],Yt=Ft[2];Object.assign(G(),{rows:gt,initialRows:[].concat(gt),flatRows:bt,rowsById:Yt}),v(Q().useInstanceAfterData,G());var St=r.useMemo(function(){return g(Q().visibleColumns,wt,{instance:G()}).map(function(vt){return $(vt,Re)})},[Q,wt,G,Re].concat(g(Q().visibleColumnsDeps,[],{instance:G()})));wt=r.useMemo(function(){var vt=[].concat(St);return wt.forEach(function(Nn){vt.find(function(er){return er.id===Nn.id})||vt.push(Nn)}),vt},[wt,St]),G().allColumns=wt;var qt=r.useMemo(function(){return g(Q().headerGroups,D(St,Re),G())},[Q,St,Re,G].concat(g(Q().headerGroupsDeps,[],{instance:G()})));G().headerGroups=qt;var Ht=r.useMemo(function(){return qt.length?qt[0].headers:[]},[qt]);G().headers=Ht,G().flatHeaders=qt.reduce(function(vt,Nn){return[].concat(vt,Nn.headers)},[]),v(Q().useInstanceBeforeDimensions,G());var yn=St.filter(function(vt){return vt.isVisible}).map(function(vt){return vt.id}).sort().join("_");St=r.useMemo(function(){return St.filter(function(vt){return vt.isVisible})},[St,yn]),G().visibleColumns=St;var st=Ye(Ht),Ut=st[0],Hn=st[1],Kr=st[2];return G().totalColumnsMinWidth=Ut,G().totalColumnsWidth=Hn,G().totalColumnsMaxWidth=Kr,v(Q().useInstance,G()),[].concat(G().flatHeaders,G().allColumns).forEach(function(vt){vt.render=k(G(),vt),vt.getHeaderProps=y(Q().getHeaderProps,{instance:G(),column:vt}),vt.getFooterProps=y(Q().getFooterProps,{instance:G(),column:vt})}),G().headerGroups=r.useMemo(function(){return qt.filter(function(vt,Nn){return vt.headers=vt.headers.filter(function(er){return er.headers?function Yr(br){return br.filter(function(Bi){return Bi.headers?Yr(Bi.headers):Bi.isVisible}).length}(er.headers):er.isVisible}),!!vt.headers.length&&(vt.getHeaderGroupProps=y(Q().getHeaderGroupProps,{instance:G(),headerGroup:vt,index:Nn}),vt.getFooterGroupProps=y(Q().getFooterGroupProps,{instance:G(),headerGroup:vt,index:Nn}),!0)})},[qt,G,Q]),G().footerGroups=[].concat(G().headerGroups).reverse(),G().prepareRow=r.useCallback(function(vt){vt.getRowProps=y(Q().getRowProps,{instance:G(),row:vt}),vt.allCells=wt.map(function(Nn){var er=vt.values[Nn.id],Yr={column:Nn,row:vt,value:er};return Yr.getCellProps=y(Q().getCellProps,{instance:G(),cell:Yr}),Yr.render=k(G(),Nn,{row:vt,cell:Yr,value:er}),Yr}),vt.cells=St.map(function(Nn){return vt.allCells.find(function(er){return er.column.id===Nn.id})}),v(Q().prepareRow,vt,{instance:G()})},[Q,G,wt,St]),G().getTableProps=y(Q().getTableProps,{instance:G()}),G().getTableBodyProps=y(Q().getTableBodyProps,{instance:G()}),v(Q().useFinalInstance,G()),G()},Object.defineProperty(n,"__esModule",{value:!0})})})(Mne,_m);(function(e){e.exports=_m})(Lne);const Nne=()=>{throw new Error("setAnnouncement called outside AnnouncerContext")},Bx=zt.createContext({setAnnouncement:Nne}),Dne=C(u4,{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.tableHeaderHover,"& svg":{color:"inherit"}}},...r&&{flexGrow:1}})),Bne=C("button",{shouldForwardProp:e=>e!=="isSorted"})(({theme:e,isSorted:t})=>({all:"unset",whiteSpace:"nowrap",width:"100%",position:"relative",zIndex:1,":hover, :focus, &:focus-visible, &:active":{outline:"revert",".hover-only":{display:"inline-block"}},display:"flex",boxSizing:"inherit",cursor:"pointer",...t&&{fontWeight:e.typography.fontWeightBold}})),Fne=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"}})),zne=C("span")(({theme:e})=>({padding:e.spacing(2),visibility:"hidden",display:"flex",alignItems:"center",width:"100%"})),jne=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 Mb={},Une={get exports(){return Mb},set exports(e){Mb=e}};/*!
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 a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var l=n.apply(null,a);l&&r.push(l)}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var c in a)t.call(a,c)&&a[c]&&r.push(c)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Une);const ba=Mb,y1=e=>({marginLeft:e.spacing(.25),marginRight:e.spacing(-.5),color:e.palette.neutral.main,fontSize:e.fontSizes.mainHeader,verticalAlign:"middle"}),xA=({isSorted:e,isDesc:t=!1,className:n})=>s(X,{condition:Boolean(e),show:s(X,{condition:Boolean(t),show:s(_b,{sx:r=>({...y1(r),color:r.palette.tableHeaderColor}),className:n,fontSize:"inherit"}),elseShow:s(PZ,{sx:r=>({...y1(r),color:r.palette.tableHeaderColor}),className:n,fontSize:"inherit"})}),elseShow:s(jZ,{sx:r=>({...y1(r)}),className:ba(n,"hover-only"),fontSize:"inherit"})}),Wne=({children:e,isSortable:t=!0,isSorted:n=!1,isDescending:r,width:o,minWidth:a,maxWidth:i,align:l,ariaTitle:c,isFlex:u,isFlexGrow:d,onClick:f=()=>{}})=>{const{setAnnouncement:h}=p.useContext(Bx),[m,y]=p.useState(""),g=p.useRef(null),v=n?r?"descending":"ascending":void 0,b=x=>{f(x),h(`Sorted${c?` by ${c} `:""}, ${r?"ascending":"descending"}`)},w=p.useMemo(()=>{switch(l){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}},[l]);return p.useEffect(()=>{(()=>{var A,k;const E=c&&g.current&&((A=g==null?void 0:g.current)==null?void 0:A.offsetWidth)<((k=g==null?void 0:g.current)==null?void 0:k.scrollWidth)?`${e}`:"";E!==m&&y(E)})()},[y,c]),s(Dne,{component:"th","aria-sort":v,style:{width:o,minWidth:a,maxWidth:i},isFlex:u,isFlexGrow:d,isSortable:t,children:s(X,{condition:t,show:s(_t,{title:m,arrow:!0,children:T(Bne,{isSorted:n,type:"button",onClick:b,children:[T(zne,{style:w,"aria-hidden":!0,children:[s(Fne,{tabIndex:-1,"data-text":e,children:e}),s(xA,{isSorted:n,isDesc:r})]}),T(jne,{style:w,children:[s("span",{ref:g,tabIndex:-1,children:s("span",{children:e})}),s(xA,{isSorted:n,isDesc:r,className:"sort-arrow"})]})]})}),elseShow:s("div",{style:w,children:e})})})},Hne=C(ri)(({theme:e})=>({"& > th":{height:e.shape.tableRowHeightCompact,border:0,backgroundColor:e.palette.tableHeaderBackground,color:e.palette.tableHeaderColor,"&:first-of-type":{borderTopLeftRadius:e.shape.borderRadiusMedium,borderBottomLeftRadius:e.shape.borderRadiusMedium},"&:last-of-type":{borderTopRightRadius:e.shape.borderRadiusMedium,borderBottomRightRadius:e.shape.borderRadiusMedium}}})),Mi=({headerGroups:e,className:t,flex:n})=>s(VJ,{className:t,children:e.map(r=>s(Hne,{...r.getHeaderGroupProps(),children:r.headers.map(o=>{const a=o.render("Header");return s(Wne,{...o.getHeaderProps(o.canSort?o.getSortByToggleProps():void 0),ariaTitle:typeof a=="string"?a:void 0,isSortable:Boolean(o.canSort),isSorted:o.isSorted,isDescending:o.isSortedDesc,maxWidth:o.maxWidth,minWidth:o.minWidth,width:o.width,isFlex:n,isFlexGrow:Boolean(o.minWidth),align:o.align,children:a})})}))}),Ni=({rowHeight:e="auto",...t})=>s(EJ,{sx:{position:"relative","& tbody tr":{height:n=>({auto:"auto",standard:n.shape.tableRowHeight,compact:n.shape.tableRowHeightCompact,dense:n.shape.tableRowHeightDense})[e]??e}},...t}),Vne=C(u4)(({theme:e})=>({padding:0})),Qa=p.forwardRef(({className:e,...t},n)=>s(Vne,{...t,ref:n})),Qn=({children:e})=>s(Je,{sx:{border:t=>`2px dashed ${t.palette.neutral.light}`,p:1.6,textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",mt:2,width:"100%"},children:e}),Gne=(e,t=40,n=5)=>{const[r,o]=p.useState(Math.floor(window.pageYOffset/e));return p.useEffect(()=>{const a=()=>{requestAnimationFrame(()=>{o(Math.floor(window.pageYOffset/(e*n))*n)})};return window.addEventListener("scroll",a,{passive:!0}),()=>{window.removeEventListener("scroll",a)}},[e,n]),[r-t,r+t]},Fx=({rowHeight:e,headerGroups:t,rows:n,prepareRow:r})=>{const o=cn(),a=p.useMemo(()=>e||o.shape.tableRowHeight,[e,o.shape.tableRowHeight]),[i,l]=Gne(a),c=p.useMemo(()=>a*n.length+o.shape.tableRowHeightCompact,[a,n.length,o.shape.tableRowHeightCompact]);return T(Ni,{role:"table",rowHeight:a,style:{height:c},children:[s(Mi,{headerGroups:t,flex:!0}),s(Ii,{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((u,d)=>{const f=d*a+o.shape.tableRowHeightCompact;return d<i||d>l?null:(r(u),p.createElement(ri,{hover:!0,...u.getRowProps({style:{display:"flex",top:f}}),key:u.id},u.cells.map(m=>s(Qa,{...m.getCellProps({style:{flex:m.column.minWidth?"1 0 auto":void 0}}),children:m.render("Cell")}))))})})]})},qne=e=>fetch(e).then(Tn("Feature toggle")).then(t=>t.json()),zx=()=>{const{data:e,error:t,mutate:n}=vn(jt("api/admin/features"),qne,{refreshInterval:15e3});return{features:e==null?void 0:e.features,loading:!t&&!e,refetchFeatures:n,error:t}},d3=p.createContext(""),_s=d3.Provider,Qp=()=>({searchQuery:p.useContext(d3)}),CA=e=>{let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(d!==t){const f=t;t=u?d:Object.assign({},t,d),n.forEach(h=>h(t,f))}},o=()=>t,l={setState:r,getState:o,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return t=e(r,o,l),l},Kne=e=>e?CA(e):CA;var Nb={},Yne={get exports(){return Nb},set exports(e){Nb=e}},p3={};/**
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 mv=p,Xne=Cm;function Jne(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qne=typeof Object.is=="function"?Object.is:Jne,Zne=Xne.useSyncExternalStore,ere=mv.useRef,tre=mv.useEffect,nre=mv.useMemo,rre=mv.useDebugValue;p3.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var a=ere(null);if(a.current===null){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=nre(function(){function c(m){if(!u){if(u=!0,d=m,m=r(m),o!==void 0&&i.hasValue){var y=i.value;if(o(y,m))return f=y}return f=m}if(y=f,Qne(d,m))return y;var g=r(m);return o!==void 0&&o(y,g)?y:(d=m,f=g)}var u=!1,d,f,h=n===void 0?null:n;return[function(){return c(t())},h===null?void 0:function(){return c(h())}]},[t,n,r,o]);var l=Zne(e,a[0],a[1]);return tre(function(){i.hasValue=!0,i.value=l},[l]),rre(l),l};(function(e){e.exports=p3})(Yne);const ore=Gm(Nb),{useSyncExternalStoreWithSelector:are}=ore;function ire(e,t=e.getState,n){const r=are(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return p.useDebugValue(r),r}const EA=e=>{const t=typeof e=="function"?Kne(e):e,n=(r,o)=>ire(t,r,o);return Object.assign(n,t),n},sre=e=>e?EA(e):EA;var lre=sre;const cre=e=>{const t=lre(()=>e),n=(r,o)=>{t.setState(a=>{return{[r]:(i=a[r],l=o,typeof l=="function"?l(i):l)};var i,l})};return{useGlobalState:r=>{const o=p.useCallback(a=>a[r],[r]);return[t(o),p.useCallback(a=>n(r,a),[r])]},getGlobalState:r=>t.getState()[r],setGlobalState:n,subscribe:(r,o)=>{t.subscribe((a,i)=>{a[r]!==i[r]&&o(a[r])})}}},jx=(e,t)=>{const n=cre({[e]:pp(e)??t}),r=o=>{const a=n.getGlobalState(e),i=o instanceof Function?o(a):o;n.setGlobalState(e,i),Dc(e,i)};return()=>[n.useGlobalState(e)[0],r]},oi=()=>{const[e,t]=dre();return{locationSettings:e,setLocationSettings:t}},ure=()=>({locale:navigator.language}),dre=jx(`${$i}:useLocationSettings:v1`,ure()),Ux=(e,t)=>new Date(e).toLocaleString(t,{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}),zc=(e,t)=>new Date(e).toLocaleString(t,{day:"2-digit",month:"2-digit",year:"numeric"}),bPe=(e,t)=>new Date(e).toLocaleString(t,{hour:"2-digit",minute:"2-digit"});function bs(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 pre(e,t){jn(2,arguments);var n=ir(e).getTime(),r=bs(t);return new Date(n+r)}var fre={};function Zp(){return fre}function hre(e,t){jn(2,arguments);var n=ir(e),r=ir(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var f3=6e4,h3=36e5,wPe=1e3;function Mh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mh=function(n){return typeof n}:Mh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mh(e)}function mre(e){return jn(1,arguments),e instanceof Date||Mh(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Wx(e){if(jn(1,arguments),!mre(e)&&typeof e!="number")return!1;var t=ir(e);return!isNaN(Number(t))}function gre(e,t){jn(2,arguments);var n=bs(t);return pre(e,-n)}var vre=864e5;function yre(e){jn(1,arguments);var t=ir(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/vre)+1}function Rm(e){jn(1,arguments);var t=1,n=ir(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 m3(e){jn(1,arguments);var t=ir(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=Rm(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var i=Rm(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function bre(e){jn(1,arguments);var t=m3(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Rm(n);return r}var wre=6048e5;function Sre(e){jn(1,arguments);var t=ir(e),n=Rm(t).getTime()-bre(t).getTime();return Math.round(n/wre)+1}function Pm(e,t){var n,r,o,a,i,l,c,u;jn(1,arguments);var d=Zp(),f=bs((n=(r=(o=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(i=t.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.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(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=ir(e),m=h.getUTCDay(),y=(m<f?7:0)+m-f;return h.setUTCDate(h.getUTCDate()-y),h.setUTCHours(0,0,0,0),h}function g3(e,t){var n,r,o,a,i,l,c,u;jn(1,arguments);var d=ir(e),f=d.getUTCFullYear(),h=Zp(),m=bs((n=(r=(o=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(i=t.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:h.firstWeekContainsDate)!==null&&r!==void 0?r:(c=h.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(f+1,0,m),y.setUTCHours(0,0,0,0);var g=Pm(y,t),v=new Date(0);v.setUTCFullYear(f,0,m),v.setUTCHours(0,0,0,0);var b=Pm(v,t);return d.getTime()>=g.getTime()?f+1:d.getTime()>=b.getTime()?f:f-1}function xre(e,t){var n,r,o,a,i,l,c,u;jn(1,arguments);var d=Zp(),f=bs((n=(r=(o=(a=t==null?void 0:t.firstWeekContainsDate)!==null&&a!==void 0?a:t==null||(i=t.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.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),h=g3(e,t),m=new Date(0);m.setUTCFullYear(h,0,f),m.setUTCHours(0,0,0,0);var y=Pm(m,t);return y}var Cre=6048e5;function Ere(e,t){jn(1,arguments);var n=ir(e),r=Pm(n,t).getTime()-xre(n,t).getTime();return Math.round(r/Cre)+1}function pn(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Tre={y:function(t,n){var r=t.getUTCFullYear(),o=r>0?r:1-r;return pn(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):pn(r+1,2)},d:function(t,n){return pn(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 pn(t.getUTCHours()%12||12,n.length)},H:function(t,n){return pn(t.getUTCHours(),n.length)},m:function(t,n){return pn(t.getUTCMinutes(),n.length)},s:function(t,n){return pn(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),a=Math.floor(o*Math.pow(10,r-3));return pn(a,n.length)}};const zi=Tre;var Ul={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kre={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(),a=o>0?o:1-o;return r.ordinalNumber(a,{unit:"year"})}return zi.y(t,n)},Y:function(t,n,r,o){var a=g3(t,o),i=a>0?a:1-a;if(n==="YY"){var l=i%100;return pn(l,2)}return n==="Yo"?r.ordinalNumber(i,{unit:"year"}):pn(i,n.length)},R:function(t,n){var r=m3(t);return pn(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return pn(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 pn(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 pn(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 zi.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 pn(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 a=Ere(t,o);return n==="wo"?r.ordinalNumber(a,{unit:"week"}):pn(a,n.length)},I:function(t,n,r){var o=Sre(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):pn(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):zi.d(t,n)},D:function(t,n,r){var o=yre(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):pn(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 a=t.getUTCDay(),i=(a-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(i);case"ee":return pn(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var a=t.getUTCDay(),i=(a-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(i);case"cc":return pn(i,n.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),a=o===0?7:o;switch(n){case"i":return String(a);case"ii":return pn(a,n.length);case"io":return r.ordinalNumber(a,{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(),a=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),a;switch(o===12?a=Ul.noon:o===0?a=Ul.midnight:a=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),a;switch(o>=17?a=Ul.evening:o>=12?a=Ul.afternoon:o>=4?a=Ul.morning:a=Ul.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{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 zi.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):zi.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):pn(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):pn(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):zi.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):zi.s(t,n)},S:function(t,n){return zi.S(t,n)},X:function(t,n,r,o){var a=o._originalDate||t,i=a.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return kA(i);case"XXXX":case"XX":return Us(i);case"XXXXX":case"XXX":default:return Us(i,":")}},x:function(t,n,r,o){var a=o._originalDate||t,i=a.getTimezoneOffset();switch(n){case"x":return kA(i);case"xxxx":case"xx":return Us(i);case"xxxxx":case"xxx":default:return Us(i,":")}},O:function(t,n,r,o){var a=o._originalDate||t,i=a.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+TA(i,":");case"OOOO":default:return"GMT"+Us(i,":")}},z:function(t,n,r,o){var a=o._originalDate||t,i=a.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+TA(i,":");case"zzzz":default:return"GMT"+Us(i,":")}},t:function(t,n,r,o){var a=o._originalDate||t,i=Math.floor(a.getTime()/1e3);return pn(i,n.length)},T:function(t,n,r,o){var a=o._originalDate||t,i=a.getTime();return pn(i,n.length)}};function TA(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;if(a===0)return n+String(o);var i=t||"";return n+String(o)+i+pn(a,2)}function kA(e,t){if(e%60===0){var n=e>0?"-":"+";return n+pn(Math.abs(e)/60,2)}return Us(e,t)}function Us(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),a=pn(Math.floor(o/60),2),i=pn(o%60,2);return r+a+n+i}const Are=kre;var AA=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"})}},v3=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"})}},_re=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return AA(t,n);var i;switch(o){case"P":i=n.dateTime({width:"short"});break;case"PP":i=n.dateTime({width:"medium"});break;case"PPP":i=n.dateTime({width:"long"});break;case"PPPP":default:i=n.dateTime({width:"full"});break}return i.replace("{{date}}",AA(o,n)).replace("{{time}}",v3(a,n))},Rre={p:v3,P:_re};const Pre=Rre;var Ire=["D","DD"],$re=["YY","YYYY"];function Ore(e){return Ire.indexOf(e)!==-1}function Lre(e){return $re.indexOf(e)!==-1}function _A(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 Mre={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"}},Nre=function(t,n,r){var o,a=Mre[t];return typeof a=="string"?o=a:n===1?o=a.one:o=a.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const Dre=Nre;function b1(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 Bre={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Fre={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zre={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jre={date:b1({formats:Bre,defaultWidth:"full"}),time:b1({formats:Fre,defaultWidth:"full"}),dateTime:b1({formats:zre,defaultWidth:"full"})};const Ure=jre;var Wre={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Hre=function(t,n,r,o){return Wre[t]};const Vre=Hre;function qu(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,i=n!=null&&n.width?String(n.width):a;o=e.formattingValues[i]||e.formattingValues[a]}else{var l=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[c]||e.values[l]}var u=e.argumentCallback?e.argumentCallback(t):t;return o[u]}}var Gre={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qre={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Kre={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"]},Yre={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"]},Xre={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"}},Jre={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"}},Qre=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"},Zre={ordinalNumber:Qre,era:qu({values:Gre,defaultWidth:"wide"}),quarter:qu({values:qre,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:qu({values:Kre,defaultWidth:"wide"}),day:qu({values:Yre,defaultWidth:"wide"}),dayPeriod:qu({values:Xre,defaultWidth:"wide",formattingValues:Jre,defaultFormattingWidth:"wide"})};const eoe=Zre;function Ku(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],a=t.match(o);if(!a)return null;var i=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?noe(l,function(f){return f.test(i)}):toe(l,function(f){return f.test(i)}),u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;var d=t.slice(i.length);return{value:u,rest:d}}}function toe(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function noe(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function roe(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],a=t.match(e.parsePattern);if(!a)return null;var i=e.valueCallback?e.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;var l=t.slice(o.length);return{value:i,rest:l}}}var ooe=/^(\d+)(th|st|nd|rd)?/i,aoe=/\d+/i,ioe={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},soe={any:[/^b/i,/^(a|c)/i]},loe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},coe={any:[/1/i,/2/i,/3/i,/4/i]},uoe={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},doe={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]},poe={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},foe={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]},hoe={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},moe={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}},goe={ordinalNumber:roe({matchPattern:ooe,parsePattern:aoe,valueCallback:function(t){return parseInt(t,10)}}),era:Ku({matchPatterns:ioe,defaultMatchWidth:"wide",parsePatterns:soe,defaultParseWidth:"any"}),quarter:Ku({matchPatterns:loe,defaultMatchWidth:"wide",parsePatterns:coe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ku({matchPatterns:uoe,defaultMatchWidth:"wide",parsePatterns:doe,defaultParseWidth:"any"}),day:Ku({matchPatterns:poe,defaultMatchWidth:"wide",parsePatterns:foe,defaultParseWidth:"any"}),dayPeriod:Ku({matchPatterns:hoe,defaultMatchWidth:"any",parsePatterns:moe,defaultParseWidth:"any"})};const voe=goe;var yoe={code:"en-US",formatDistance:Dre,formatLong:Ure,formatRelative:Vre,localize:eoe,match:voe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const y3=yoe;var boe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,woe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Soe=/^'([^]*?)'?$/,xoe=/''/g,Coe=/[a-zA-Z]/;function yp(e,t,n){var r,o,a,i,l,c,u,d,f,h,m,y,g,v,b,w,x,E;jn(2,arguments);var A=String(t),k=Zp(),_=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:k.locale)!==null&&r!==void 0?r:y3,O=bs((a=(i=(l=(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&&l!==void 0?l:k.firstWeekContainsDate)!==null&&i!==void 0?i:(f=k.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=bs((m=(y=(g=(v=n==null?void 0:n.weekStartsOn)!==null&&v!==void 0?v:n==null||(b=n.locale)===null||b===void 0||(w=b.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&g!==void 0?g:k.weekStartsOn)!==null&&y!==void 0?y:(x=k.locale)===null||x===void 0||(E=x.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&m!==void 0?m:0);if(!(L>=0&&L<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var I=ir(e);if(!Wx(I))throw new RangeError("Invalid time value");var $=mp(I),D=gre(I,$),F={firstWeekContainsDate:O,weekStartsOn:L,locale:_,_originalDate:I},U=A.match(woe).map(function(Y){var V=Y[0];if(V==="p"||V==="P"){var te=Pre[V];return te(Y,_.formatLong)}return Y}).join("").match(boe).map(function(Y){if(Y==="''")return"'";var V=Y[0];if(V==="'")return Eoe(Y);var te=Are[V];if(te)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Lre(Y)&&_A(Y,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Ore(Y)&&_A(Y,t,String(e)),te(D,Y,_.localize,F);if(V.match(Coe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+V+"`");return Y}).join("");return U}function Eoe(e){var t=e.match(Soe);return t?t[1].replace(xoe,"'"):e}function b3(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 Toe(e){return b3({},e)}var RA=1e3*60,Im=60*24,PA=Im*30,IA=Im*365;function koe(e,t,n){var r,o,a;jn(2,arguments);var i=Zp(),l=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:i.locale)!==null&&r!==void 0?r:y3;if(!l.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var c=hre(e,t);if(isNaN(c))throw new RangeError("Invalid time value");var u=b3(Toe(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:c}),d,f;c>0?(d=ir(t),f=ir(e)):(d=ir(e),f=ir(t));var h=String((a=n==null?void 0:n.roundingMethod)!==null&&a!==void 0?a:"round"),m;if(h==="floor")m=Math.floor;else if(h==="ceil")m=Math.ceil;else if(h==="round")m=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var y=f.getTime()-d.getTime(),g=y/RA,v=mp(f)-mp(d),b=(y-v)/RA,w=n==null?void 0:n.unit,x;if(w?x=String(w):g<1?x="second":g<60?x="minute":g<Im?x="hour":b<PA?x="day":b<IA?x="month":x="year",x==="second"){var E=m(y/1e3);return l.formatDistance("xSeconds",E,u)}else if(x==="minute"){var A=m(g);return l.formatDistance("xMinutes",A,u)}else if(x==="hour"){var k=m(g/60);return l.formatDistance("xHours",k,u)}else if(x==="day"){var _=m(b/Im);return l.formatDistance("xDays",_,u)}else if(x==="month"){var O=m(b/PA);return O===12&&w!=="month"?l.formatDistance("xYears",1,u):l.formatDistance("xMonths",O,u)}else if(x==="year"){var L=m(b/IA);return l.formatDistance("xYears",L,u)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function Aoe(e,t){return jn(1,arguments),koe(e,Date.now(),t)}function _oe(e){return jn(1,arguments),ir(e).getTime()<Date.now()}function ef(e,t){var n;jn(1,arguments);var r=bs((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=$oe(e),a;if(o.date){var i=Ooe(o.date,r);a=Loe(i.restDateString,i.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var l=a.getTime(),c=0,u;if(o.time&&(c=Moe(o.time),isNaN(c)))return new Date(NaN);if(o.timezone){if(u=Noe(o.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(l+c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}return new Date(l+c+u)}var Qf={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Roe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Poe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ioe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $oe(e){var t={},n=e.split(Qf.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Qf.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Qf.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var o=Qf.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function Ooe(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,a=r[2]?parseInt(r[2]):null;return{year:a===null?o:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function Loe(e,t){if(t===null)return new Date(NaN);var n=e.match(Roe);if(!n)return new Date(NaN);var r=!!n[4],o=Yu(n[1]),a=Yu(n[2])-1,i=Yu(n[3]),l=Yu(n[4]),c=Yu(n[5])-1;if(r)return joe(t,l,c)?Doe(t,l,c):new Date(NaN);var u=new Date(0);return!Foe(t,a,i)||!zoe(t,o)?new Date(NaN):(u.setUTCFullYear(t,a,Math.max(o,i)),u)}function Yu(e){return e?parseInt(e):1}function Moe(e){var t=e.match(Poe);if(!t)return NaN;var n=w1(t[1]),r=w1(t[2]),o=w1(t[3]);return Uoe(n,r,o)?n*h3+r*f3+o*1e3:NaN}function w1(e){return e&&parseFloat(e.replace(",","."))||0}function Noe(e){if(e==="Z")return 0;var t=e.match(Ioe);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return Woe(r,o)?n*(r*h3+o*f3):NaN}function Doe(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,a=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}var Boe=[31,null,31,30,31,30,31,31,30,31,30,31];function w3(e){return e%400===0||e%4===0&&e%100!==0}function Foe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Boe[t]||(w3(e)?29:28))}function zoe(e,t){return t>=1&&t<=(w3(e)?366:365)}function joe(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Uoe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Woe(e,t){return t>=0&&t<=59}const Hoe=C(Je,{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"}})),mo=({value:e,children:t,lineClamp:n,sx:r,"data-testid":o})=>s(Hoe,{lineClamp:n,sx:r,children:s("span",{"data-loading":"true","data-testid":o,children:t??e})}),bp=({value:e})=>{const{locationSettings:t}=oi(),n=e?e instanceof Date?zc(e,t.locale):zc(ef(e),t.locale):void 0;return s(mo,{lineClamp:1,children:n})};function Hx(e,t){return new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t)}const Voe=C("span")(({theme:e})=>({"&>mark":{backgroundColor:e.palette.highlight}})),jc=({search:e,children:t,caseSensitive:n})=>{if(!t)return null;if(!e)return s(ke,{children:t});const r=Hx(e,n?"g":"gi");return s(Voe,{dangerouslySetInnerHTML:{__html:(t==null?void 0:t.replaceAll(r,"<mark>$&</mark>"))||""}})},S3=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"}),Goe=C("div")(({theme:e})=>S3(e)),$A=C(ho)(({theme:e})=>({...S3(e),"&:hover, &:focus":{textDecoration:"none","& > div > span:first-of-type":{textDecoration:"underline"}}})),qoe=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",wordBreak:"break-all"})),Koe=C("span")(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical"})),Yoe=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"})),Rs=({title:e,to:t,onClick:n,subtitle:r,children:o})=>{const{searchQuery:a}=Qp(),i=T(qoe,{children:[T(Koe,{"data-loading":!0,style:{WebkitLineClamp:Boolean(r)?1:2,lineClamp:Boolean(r)?1:2},children:[s(jc,{search:a,children:e}),o]}),s(X,{condition:Boolean(r),show:s(ke,{children:s(Yoe,{"data-loading":!0,children:s(jc,{search:a,children:r})})})})]});return t?s($A,{component:sn,to:t,underline:"hover",children:i}):n?s($A,{onClick:n,underline:"hover",children:i}):s(Goe,{children:i})};function Zf(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,...a]=n.map(c=>parseInt(c)),i=[r,o-1,...a];return new Date(Date.UTC(...i))}}function OA(e,t,n){const r=e!==1?t+"s":t;return e+" "+r+" "+n}function Db(){return Db=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},Db.apply(this,arguments)}const pd=60,fd=pd*60,wc=fd*24,eh=wc*7,LA=wc*30,MA=wc*365;function Vx({date:e,formatter:t=OA,component:n="time",live:r=!0,minPeriod:o=0,maxPeriod:a=eh,title:i,now:l=()=>Date.now(),...c}){const[u,d]=p.useState(l());p.useEffect(()=>{if(!r)return;const A=(()=>{const k=Zf(e).valueOf();if(!k)return console.warn("[react-timeago] Invalid Date provided"),0;const _=Math.round(Math.abs(u-k)/1e3),O=_<pd?1e3:_<fd?1e3*pd:_<wc?1e3*fd:1e3*eh,L=Math.min(Math.max(O,o*1e3),a*1e3);return L?setTimeout(()=>{d(l())},L):0})();return()=>{A&&clearTimeout(A)}},[e,r,a,o,l,u]);const f=n,h=Zf(e).valueOf();if(!h)return null;const m=Math.round(Math.abs(u-h)/1e3),y=h<u?"ago":"from now",[g,v]=m<pd?[Math.round(m),"second"]:m<fd?[Math.round(m/pd),"minute"]:m<wc?[Math.round(m/fd),"hour"]:m<eh?[Math.round(m/wc),"day"]:m<LA?[Math.round(m/eh),"week"]:m<MA?[Math.round(m/LA),"month"]:[Math.round(m/MA),"year"],b=typeof i>"u"?typeof e=="string"?e:Zf(e).toISOString().substr(0,16).replace("T"," "):i,w=f==="time"?{...c,dateTime:Zf(e).toISOString()}:c,x=OA.bind(null,g,v,y);return p.createElement(f,Db({},w,{title:b}),t(g,v,y,h,x,l))}function Xoe(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 Joe=()=>{const e=cn();return t=>{switch(t){case"second":return e.palette.activityIndicators.recent;case"minute":return e.palette.activityIndicators.recent;case"hour":return e.palette.activityIndicators.recent;case"day":return e.palette.activityIndicators.recent;case"week":return e.palette.activityIndicators.inactive;case"month":return e.palette.activityIndicators.abandoned;case"year":return e.palette.activityIndicators.abandoned;default:return e.palette.activityIndicators.unknown}}},Qoe=C("div")(({theme:e})=>({display:"flex",padding:e.spacing(1.5)})),Zoe=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"})),NA=({unit:e,tooltip:t,children:n})=>{const r=Joe();return s(Qoe,{children:s(_t,{title:t,arrow:!0,describeChild:!0,children:s(Zoe,{style:{background:r(e)},"data-loading":!0,children:n})})})},x3=({value:e})=>s(X,{condition:Boolean(e),show:s(Vx,{date:e,title:"",live:!1,formatter:(t,n,r)=>T(NA,{tooltip:`Last usage reported ${t} ${n}${t!==1?"s":""} ${r}`,unit:n,children:[t,Xoe(n)]})}),elseShow:s(NA,{tooltip:"No usage reported from connected applications",children:"–"})}),eae="experiment",tae="release",nae="operational",rae="kill-switch",oae="permission";var Gx={},aae=hn;Object.defineProperty(Gx,"__esModule",{value:!0});var Bb=Gx.default=void 0,iae=aae(kn()),sae=An,lae=(0,iae.default)((0,sae.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");Bb=Gx.default=lae;var qx={},cae=hn;Object.defineProperty(qx,"__esModule",{value:!0});var C3=qx.default=void 0,uae=cae(kn()),dae=An,pae=(0,uae.default)((0,dae.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");C3=qx.default=pae;var Kx={},fae=hn;Object.defineProperty(Kx,"__esModule",{value:!0});var Yx=Kx.default=void 0,hae=fae(kn()),mae=An,gae=(0,hae.default)((0,mae.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");Yx=Kx.default=gae;var Xx={},vae=hn;Object.defineProperty(Xx,"__esModule",{value:!0});var E3=Xx.default=void 0,yae=vae(kn()),bae=An,wae=(0,yae.default)((0,bae.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");E3=Xx.default=wae;var Jx={},Sae=hn;Object.defineProperty(Jx,"__esModule",{value:!0});var T3=Jx.default=void 0,xae=Sae(kn()),Cae=An,Eae=(0,xae.default)((0,Cae.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");T3=Jx.default=Eae;const Tae=e=>{switch(e){case tae:return Bb;case eae:return C3;case rae:return Yx;case nae:return T3;case oae:return E3;default:return Bb}},Qx=(e={})=>{const t=async()=>{const c=jt("api/admin/feature-types");return(await fetch(c,{method:"GET"}).then(Tn("Feature types"))).json()},n="api/admin/feature-types",{data:r,error:o}=vn(n,t,e),[a,i]=p.useState(!o&&!r),l=()=>{Hr(n)};return p.useEffect(()=>{i(!o&&!r)},[r,o]),{featureTypes:(r==null?void 0:r.types)||[],error:o,loading:a,refetch:l}},kae=C("div")(({theme:e})=>({padding:e.spacing(1.5),display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),k3=({value:e})=>{const{featureTypes:t}=Qx(),n=Tae(e),o=`This is a "${t.filter(a=>a.id===e).map(a=>a.name)||e}" toggle`;return s(kae,{children:s(_t,{arrow:!0,title:o,describeChild:!0,children:s(n,{"data-loading":!0})})})},Aae=({row:e})=>s(Rs,{title:e.original.name,subtitle:e.original.description,to:`/projects/${e.original.project}/features/${e.original.name}`}),A3=e=>{const{setAnnouncement:t}=p.useContext(Bx);p.useEffect(()=>{if(e)return document.title=e,()=>{document.title=DA}},[e]),p.useEffect(()=>{e&&e!==DA&&t(`Navigated to ${e}`)},[t,e])},DA="Unleash",_ae=C(fo)(({theme:e})=>({height:"100%",borderColor:e.palette.dividerAlternative,width:"1px",display:"inline-block",marginLeft:e.spacing(2),marginRight:e.spacing(2),padding:e.spacing(.5,0),verticalAlign:"middle"})),Rae=C("div")(()=>({display:"flex",flexDirection:"column"})),Pae=C("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative"})),Iae=C("div")(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginRight:e.spacing(2)})),$ae=C(we)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,fontWeight:"normal"})),Oae=C("div")(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-end",alignItems:"center",gap:e.spacing(1)})),_3=({title:e,titleElement:t,actions:n,subtitle:r,variant:o,loading:a,className:i="",secondary:l,children:c})=>{const u=ba({skeleton:a});return A3(l?"":e),T(Rae,{children:[T(Pae,{children:[T(Iae,{className:ba(u),"data-loading":!0,children:[s($ae,{variant:o||l?"h2":"h1",className:ba(i),children:t||e}),r&&s("small",{children:r})]}),s(X,{condition:Boolean(n),show:s(Oae,{children:n})})]}),c]})},Lae=({sx:e})=>s(_ae,{orientation:"vertical",variant:"middle",sx:e});_3.Divider=Lae;const En=_3,Mae=Li()(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"}})),gv=(e,t="[data-loading=true]")=>{const n=p.createRef();return p.useLayoutEffect(()=>{n.current&&n.current.querySelectorAll(t).forEach(o=>{e?o.classList.add("skeleton"):o.classList.remove("skeleton")})},[e,n]),n},Nae=C("div")(({theme:e})=>({borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:e.palette.divider,[e.breakpoints.down("md")]:{padding:e.spacing(3,2)}})),Dae=C(Ar)(({theme:e})=>({borderRadius:e.shape.borderRadiusLarge,boxShadow:"none"})),Bae=({children:e,isLoading:t})=>{const n=gv(t);return s("div",{ref:n,"aria-busy":t,"aria-live":"polite",children:e})},gr=({children:e,header:t,disablePadding:n=!1,disableBorder:r=!1,bodyClass:o="",headerClass:a="",isLoading:i=!1,disableLoading:l=!1,className:c,...u})=>{const{classes:d}=Mae(),f=ba("header",a||d.headerPadding,{[d.paddingDisabled]:n,[d.borderDisabled]:r}),h=ba("body",o||d.bodyContainer,{[d.paddingDisabled]:n,[d.borderDisabled]:r}),y=T(Dae,{...u,...r?{elevation:0}:{},className:ba(c),children:[s(X,{condition:Boolean(t),show:s(Nae,{className:f,children:s(X,{condition:typeof t=="string",show:s(En,{title:t}),elseShow:t})})}),s("div",{className:h,children:e})]});return l?y:s(Bae,{isLoading:i,children:y})},vv=(e,t)=>{const n=`${$i}:${e}:localStorage:v2`;return{value:(()=>{const a=pp(n);return a===void 0?t:a})(),setValue:a=>{if(a instanceof Function){const i=pp(n),l=a(i??t);return Dc(n,l),l}return Dc(n,a),a}}},Di=(e={})=>{const t=()=>{const c=jt("api/admin/projects");return fetch(c,{method:"GET"}).then(Tn("Projects")).then(u=>u.json())},n="api/admin/projects",{data:r,error:o}=vn(n,t,e),[a,i]=p.useState(!o&&!r),l=()=>{Hr(n)};return p.useEffect(()=>{i(!o&&!r)},[r,o]),{projects:(r==null?void 0:r.projects)||[],error:o,loading:a,refetch:l}},Nh="default",Fae=()=>{var n;const{projects:e=[]}=Di(),t=e.find(r=>r.id===Nh);return(t==null?void 0:t.id)||((n=e[0])==null?void 0:n.id)},$m=(e,t)=>`/projects/${e}/features/${t}`,zae=(e,t)=>{const n=`/projects/${e}/create-toggle`;let r;return t&&(r=Object.keys(t).reduce((o,a)=>(o+=`${a}=${t[a]}`,o),"")),r?`${n}?${r}`:n},jae=e=>`/projects/${e}/edit`,Uae=e=>{const t=Fae(),n=e.project==="*"||!e.project?t:e.project;if(n)return{path:zae(n),projectId:n}},Wae=C("div")(({theme:e})=>({overflow:"auto",padding:e.spacing(1,1.5)})),Hae=C(({className:e,maxWidth:t,maxHeight:n,fontSize:r,...o})=>s(_t,{...o,title:s(Wae,{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,[`& .${za.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.lightBorder}`,maxHeight:n,fontSize:r},[`& .${za.arrow}`]:{"&:before":{border:`1px solid ${e.palette.lightBorder}`},color:e.palette.background.paper}})),Zx=e=>s(Hae,{...e,children:e.children}),au=({title:e,children:t,variant:n="default",titleComponent:r,...o})=>!e&&!r?t:n==="custom"?s(Zx,{...o,title:e||r,arrow:!0,children:t}):s(_t,{...o,title:e||r,arrow:!0,children:t}),Fb="Access denied",yv=(e,t)=>e?t:t?`${t} (${Fb})`:Fb,Vae=()=>{throw new Error("hasAccess called outside AccessContext")},Zr=zt.createContext({isAdmin:!1,hasAccess:Vae}),eC=(e,t,n,r,o={})=>{const a=vn(e?n:null,r,o);return{...a,error:e?a.error:void 0,data:e?a.data:t}},Gae=e=>{const{isEnterprise:t}=Nt(),{data:n,error:r,mutate:o}=eC(Boolean(e)&&t(),[],jt(`api/admin/projects/${e}/change-requests/config`),qae);return{data:n||[],loading:!r&&!n,refetchChangeRequestConfig:o,error:r}},qae=e=>fetch(e).then(Tn("Request changes")).then(t=>t.json()),tf=e=>{const{data:t}=Gae(e),n=zt.useCallback(o=>t.some(a=>a.environment===o&&a.changeRequestEnabled),[JSON.stringify(t)]),r=zt.useCallback(()=>t.some(o=>o.changeRequestEnabled),[JSON.stringify(t)]);return{isChangeRequestConfigured:n,isChangeRequestConfiguredInAnyEnv:r}},tC=e=>{const{hasAccess:t}=p.useContext(Zr),n=(o,a,i)=>a&&i?t(o,a,i):a?t(o,a):t(o),r=(o,a,i)=>Array.isArray(o)?o.some(l=>n(l,a,i)):n(o,a,i);return(o,a)=>r(o,e,a)},SPe=e=>{const{isChangeRequestConfigured:t}=tf(e),n=tC(e);return(r,o)=>t(o)||n(r,o)},Kae=[u3,Nx,_ne,Rne,Pne],Yae=(e,t)=>e.filter(n=>t.includes(n)).length>0,Uc=(e,t,n)=>{const{isChangeRequestConfigured:r}=tf(t),o=tC(t);return r(n)&&Yae(Kae,[].concat(e))||o(e,n)},nC=(e,t,n)=>tC(t)(e,n),Xae=zt.forwardRef((e,t)=>{const n=Uc(e.permission,e.projectId,e.environmentId);return s(R3,{...e,access:n,ref:t})}),Jae=zt.forwardRef((e,t)=>{const n=nC(e.permission,e.projectId,e.environmentId);return s(R3,{...e,access:n,ref:t})}),R3=zt.forwardRef(({permission:e,access:t,variant:n="contained",color:r="primary",onClick:o,children:a,disabled:i,projectId:l,environmentId:c,tooltipProps:u,...d},f)=>{const h=ys();return s(au,{...u,title:yv(t,u==null?void 0:u.title),arrow:!0,children:s("span",{id:h,children:s(rt,{ref:f,onClick:o,disabled:i||!t,"aria-labelledby":h,variant:n,color:r,...d,endIcon:s(ke,{children:s(X,{condition:!t,show:s(LZ,{titleAccess:"Locked"}),elseShow:Boolean(d.endIcon)&&d.endIcon})}),children:a})})})}),Do=zt.forwardRef((e,t)=>typeof e.projectId<"u"&&typeof e.environmentId<"u"?s(Xae,{...e,environmentId:e.environmentId,projectId:e.projectId,ref:t}):s(Jae,{...e,ref:t})),Qae=e=>{const t=nC(e.permission,e.projectId,e.environmentId);return s(P3,{...e,access:t})},Zae=e=>{const t=Uc(e.permission,e.projectId,e.environmentId);return s(P3,{...e,access:t})},P3=({access:e,permission:t,projectId:n,children:r,environmentId:o,tooltipProps:a,disabled:i,...l})=>{const c=ys();return s(au,{...a,title:yv(e,a==null?void 0:a.title),arrow:!0,onClick:u=>u.preventDefault(),children:s("div",{id:c,children:s(en,{...l,disabled:!e||i,"aria-labelledby":c,size:"large",children:r})})})},mr=e=>typeof e.projectId<"u"&&typeof e.environmentId<"u"?s(Zae,{...e,projectId:e.projectId,environmentId:e.environmentId}):s(Qae,{...e}),eie=({loading:e,filter:t})=>{const n=Tr("(max-width:800px)"),r=Uae(t),o=ut();return r?s(X,{condition:n,show:s(mr,{permission:gp,projectId:r.projectId,component:sn,to:r.path,size:"large",tooltipProps:{title:"Create feature toggle"},children:s(xa,{})}),elseShow:s(Do,{onClick:()=>{o(r.path)},permission:gp,projectId:r.projectId,color:"primary",variant:"contained","data-testid":ZZ,className:ba({skeleton:e}),children:"New feature toggle"})}):null},tie=e=>({color:e.palette.error.dark,fontSize:"inherit"}),nie=e=>({color:e.palette.success.dark,fontSize:"inherit"}),rie=C(Je)(({theme:e})=>({padding:e.spacing(1.5,2)})),I3=({value:e})=>s(rie,{children:s(X,{condition:Boolean(e),show:s(we,{component:"span",sx:tie,"data-loading":!0,children:"Stale"}),elseShow:s(we,{component:"span",sx:nie,"data-loading":!0,children:"Active"})})}),rC=(e,t,n)=>{const r=$3(e),o=()=>({data:n,searchValue:t,columns:e});return t?{data:(()=>{const i=oie(e,t,n);return aie(e,r(t),i)})(),getSearchText:r,getSearchContext:o}:{data:n,getSearchText:r,getSearchContext:o}},oie=(e,t,n)=>{let r=n;return L3(e).filter(o=>O3(t,o.filterName)).forEach(o=>{const a=M3(o.filterName,t);r=r.filter(i=>o.filterBy?o.filterBy(i,a):iie(Om(o,i),a))}),r},aie=(e,t,n)=>{const r=e.filter(o=>o.searchable&&o.accessor);return n.filter(o=>r.some(a=>a.searchBy?a.searchBy(o,t):sie(Om(a,o),t)))},iie=(e,t)=>t.some(n=>(e==null?void 0:e.toLowerCase())===(n==null?void 0:n.toLowerCase())),sie=(e,t)=>e==null?void 0:e.toLowerCase().includes(t==null?void 0:t.toLowerCase()),$3=e=>{const t=e.filter(r=>r.filterName).map(r=>r.filterName),n=r=>t.some(o=>O3(r,o));return r=>r.split(" ").filter(o=>!n(o)).join(" ")},O3=(e,t)=>new RegExp(`${t}:\\w+`).test(e),L3=e=>e.filter(t=>t.filterName&&t.accessor),Om=(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},M3=(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))??[]},BA=C("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.primary})),FA=C("span")(({theme:e})=>({backgroundColor:e.palette.secondaryContainer,color:e.palette.text.primary,padding:e.spacing(0,.5),borderRadius:e.spacing(.5)})),lie=({filters:e,getSearchContext:t,searchableColumnsString:n})=>{const r=t(),a=$3(r.columns)(r.searchValue),i=e.filter(l=>l.values.length>0);return T(ke,{children:[s(X,{condition:Boolean(a),show:T(ke,{children:[s(BA,{children:"Searching for:"}),T("p",{children:[s(FA,{children:a})," ",n?` in ${n}`:""]})]})}),s(X,{condition:i.length>0,show:T(ke,{children:[s(BA,{children:"Filtering by:"}),i.map(l=>T("p",{children:[s(FA,{children:l.values.join(",")})," ","in ",l.header,". Options:"," ",l.options.join(", ")]},l.name))]})})]})},cie=C("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.primary})),zA=C("span")(({theme:e})=>({backgroundColor:e.palette.secondaryContainer,color:e.palette.text.primary,padding:e.spacing(0,.5),borderRadius:e.spacing(.5)})),uie=({filters:e,getSearchContext:t,searchableColumnsString:n})=>T(ke,{children:[s(cie,{children:e.length>0?"Filter your search with operators like:":`Start typing to search${n?` in ${n}`:"..."}`}),e.map(r=>T("p",{children:["Filter by ",r.header,":"," ",T(zA,{children:[r.name,":",r.options[0]]}),s(X,{condition:r.options.length>1,show:T(ke,{children:[" or ",T(zA,{children:[r.name,":",r.options.slice(0,2).join(",")]})]})})]},r.name))]}),die=e=>Math.floor(Math.random()*e.length),pie=C(Ar)(({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"})),fie=C(Je)(({theme:e})=>({display:"flex",gap:e.spacing(2)})),hie=C(AZ)(({theme:e})=>({color:e.palette.text.secondary})),mie=C(fo)(({theme:e})=>({border:`1px dashed ${e.palette.dividerAlternative}`,margin:e.spacing(1.5,0)})),gie=C("span")(({theme:e})=>({backgroundColor:e.palette.secondaryContainer,color:e.palette.text.primary,padding:e.spacing(0,.5),borderRadius:e.spacing(.5)})),vie=({getSearchContext:e})=>{const t=e(),n=p.useMemo(()=>die(t.data),[t.data]),r=L3(t.columns).map(l=>{const c=t.data.map(u=>Om(l,u));return{name:l.filterName,header:l.Header??l.filterName,options:[...new Set(c)].sort((u,d)=>u.localeCompare(d)),suggestedOption:c[n]??`example-${l.filterName}`,values:M3(l.filterName,t.searchValue)}}).sort((l,c)=>l.name.localeCompare(c.name)),o=t.columns.filter(l=>l.searchable&&l.accessor),a=o.map(l=>l.Header??l.accessor).join(", "),i=t.data.length&&o.length?Om(o[0],t.data[n]):"example-search-text";return T(pie,{children:[T(fie,{children:[s(hie,{}),s(Je,{children:s(X,{condition:Boolean(t.searchValue),show:s(lie,{filters:r,getSearchContext:e,searchableColumnsString:a}),elseShow:s(uie,{filters:r,getSearchContext:e,searchableColumnsString:a})})})]}),s(mie,{}),s(X,{condition:r.length>0,show:"Combine filters and search."}),T("p",{children:["Example:"," ",T(gie,{children:[r.map(l=>T("span",{children:[l.name,":",l.suggestedOption," "]},l.name)),s("span",{children:i})]})]})]})},yie=()=>{const[e,t]=p.useState();return p.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},jA=({key:e,modifiers:t=[],preventDefault:n=!1},r)=>{const o=yie();p.useEffect(()=>{const l=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",l),()=>{window.removeEventListener("keydown",l)}},[o,e,t,n,r]);const a=p.useMemo(()=>t.map(l=>({ctrl:o?"⌘":"Ctrl",alt:"Alt",shift:"Shift"})[l]),[o,t]);return p.useMemo(()=>[...a,`${e[0].toUpperCase()}${e.slice(1)}`].join("+"),[a,e])},bie=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%"}})),wie=C("div")(({theme:e})=>({display:"flex",alignItems:"center",backgroundColor:e.palette.background.paper,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.light,boxShadow:e.boxShadows.main}})),Sie=C(tv)(({theme:e})=>({width:"100%"})),xie=C(sv)(({theme:e})=>({color:e.palette.neutral.main,fontSize:e.typography.body1.fontSize})),vo=({initialValue:e="",onChange:t,className:n,placeholder:r,hasFilters:o,disabled:a,getSearchContext:i,containerStyles:l,debounceTime:c=200})=>{const u=p.useRef(),[d,f]=p.useState(!1),[h,m]=p.useState(e),y=rn.useAsyncDebounce(t,c),g=w=>{y(w),m(w)},v=jA({modifiers:["ctrl"],key:"k",preventDefault:!0},()=>{var w,x;document.activeElement===u.current?(w=u.current)==null||w.blur():(x=u.current)==null||x.focus()});jA({key:"Escape"},()=>{var w;document.activeElement===u.current&&((w=u.current)==null||w.blur())});const b=`${r??"Search"} (${v})`;return T(bie,{style:l,children:[T(wie,{className:n,children:[s(mx,{sx:{mr:1,color:w=>w.palette.inactiveIcon}}),s(Sie,{inputRef:u,placeholder:b,inputProps:{"aria-label":b},value:h,onChange:w=>g(w.target.value),onFocus:()=>f(!0),onBlur:()=>f(!1),disabled:a}),s(Je,{sx:{width:w=>w.spacing(4)},children:s(X,{condition:Boolean(h),show:s(_t,{title:"Clear search query",arrow:!0,children:s(en,{size:"small",onClick:()=>{var w;g(""),(w=u.current)==null||w.focus()},sx:{padding:w=>w.spacing(1)},children:s(xie,{})})})})})]}),s(X,{condition:Boolean(o)&&d,show:s(vie,{getSearchContext:i})})]})},Cie=C(ho,{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)})),Eie=({tooltip:e,highlighted:t,tooltipProps:n,children:r,...o})=>s(Zx,{title:e,...n,arrow:!0,children:s(Cie,{highlighted:t,...o,children:r})}),Tie=C(we)(({theme:e})=>({fontSize:e.fontSizes.smallerBody})),kie=({row:e,value:t})=>{var r,o,a;const{searchQuery:n}=Qp();return!e.original.tags||e.original.tags.length===0?s(mo,{}):s(mo,{children:s(Eie,{highlighted:n.length>0&&t.toLowerCase().includes(n.toLowerCase()),tooltip:s(ke,{children:(r=e.original.tags)==null?void 0:r.map(i=>s(Tie,{children:s(jc,{search:n,children:`${i.type}:${i.value}`})},i.type+i.value))}),children:((o=e.original.tags)==null?void 0:o.length)===1?"1 tag":`${(a=e.original.tags)==null?void 0:a.length} tags`})})},ai={date:(e,t,n,r)=>{var i,l;const o=new Date(((i=e==null?void 0:e.values)==null?void 0:i[n])||0),a=new Date(((l=t==null?void 0:t.values)==null?void 0:l[n])||0);return(a==null?void 0:a.getTime())-(o==null?void 0:o.getTime())},boolean:(e,t,n,r)=>{var i,l;const o=(i=e==null?void 0:e.values)==null?void 0:i[n],a=(l=t==null?void 0:t.values)==null?void 0:l[n];return o===a?0:o?1:-1},alphanumeric:(e,t,n,r)=>{var i,l;const o=`${((i=e==null?void 0:e.values)==null?void 0:i[n])||""}`.toLowerCase(),a=`${((l=t==null?void 0:t.values)==null?void 0:l[n])||""}`.toLowerCase();return o==null?void 0:o.localeCompare(a)},playgroundResultState:(e,t,n,r)=>{var i,l;const o=(i=e==null?void 0:e.values)==null?void 0:i[n],a=(l=t==null?void 0:t.values)==null?void 0:l[n];return o===a?0:o==="true"?1:a==="true"||o==="false"?-1:a==="false"?1:0}},Aie=Object.assign({},...Object.entries(ai).map(([e,t])=>({[e]:(n,r,o,a)=>{var i,l,c,u;return(i=n==null?void 0:n.original)!=null&&i.favorite&&!((l=r==null?void 0:r.original)!=null&&l.favorite)?a?1:-1:!((c=n==null?void 0:n.original)!=null&&c.favorite)&&((u=r==null?void 0:r.original)!=null&&u.favorite)?a?-1:1:t(n,r,o,a)}}))),_ie=(e=!1)=>{const[t,n]=p.useState(e),{trackEvent:r}=Oi(),o=i=>{r("favorite",{props:{eventType:`features ${i?"":"un"}pinned `}}),n(i)},a=p.useMemo(()=>t?Aie:ai,[t]);return{isFavoritesPinned:t,onChangeIsFavoritePinned:o,sortTypes:a}},Ot=()=>{const{setToast:e}=p.useContext(As),t=()=>e(o=>({...o,show:!1})),n=p.useCallback((o,a)=>{e({title:"Something went wrong",text:o,type:"error",show:!0,autoHideDuration:12e3,...a})},[e]);return{setToastData:p.useCallback(o=>{o.persist?e({...o,show:!0}):e({...o,show:!0,autoHideDuration:6e3})},[e]),setToastApiError:n,hideToast:t}},ft=e=>e instanceof Error?e.message||e.toString():typeof e=="string"?e:"Unknown error",Un=({handleBadRequest:e,handleNotFound:t,handleForbidden:n,handleUnauthorized:r,propagateErrors:o=!1})=>{const[a,i]=p.useState({}),[l,c]=p.useState(!1),u=p.useCallback(async(h,m)=>{var y;if(h.status===yx){if(e)return e(i,h,m);if(i(g=>({...g,badRequest:"Bad request format"})),o){const g=await h.json();throw new bx(h.status,g)}}if(h.status===I4){if(t)return t(i,h,m);if(i(g=>({...g,notFound:"Could not find the requested resource"})),o)throw new wx(h.status)}if(h.status===O4){if(r)return r(i,h,m);if(i(g=>({...g,unauthorized:Fb})),o)throw new L4(h.status)}if(h.status===$4){if(n)return n(i,h,m);if(i(g=>({...g,forbidden:"This operation is forbidden"})),o){const g=await h.json();throw new GZ(h.status,g)}}if(h.status>399){const g=await h.json();if(((y=g==null?void 0:g.details)==null?void 0:y.length)>0&&o){const v=g.details[0];if(o)throw new Error(v.message||v.msg);return v}if((g==null?void 0:g.length)>0&&o){const v=g[0];throw new Error(v.message||v.msg)}if(o)throw new Error("Action could not be performed")}},[e,n,t,r,o]),d=p.useCallback(async(h,m,y=!0)=>{y&&c(!0);try{const g=await h();return c(!1),g.status>299&&await u(g,m),g.status===Kp&&i({}),g}catch(g){throw c(!1),g}},[u]),f=p.useCallback((h,m,y="")=>{const g={headers:Pb,credentials:"include"};return{caller:()=>fetch(jt(h),{...g,...m}),id:y}},[]);return{loading:l,makeRequest:d,createRequest:f,errors:a}},Rie=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0}),{setToastData:o,setToastApiError:a}=Ot(),{trackEvent:i}=Oi(),l=p.useCallback(async(u,d)=>{const f=`api/admin/projects/${u}/features/${d}/favorites`,h=t(f,{method:"POST"},"addFavoriteFeature");try{await e(h.caller,h.id),o({title:"Toggle added to favorites",type:"success"}),i("favorite",{props:{eventType:"feature favorited"}})}catch(m){a(ft(m))}},[t,e]),c=p.useCallback(async(u,d)=>{const f=`api/admin/projects/${u}/features/${d}/favorites`,h=t(f,{method:"DELETE"},"removeFavoriteFeature");try{await e(h.caller,h.id),o({title:"Toggle removed from favorites",type:"success"}),i("favorite",{props:{eventType:"feature unfavorited"}})}catch(m){a(ft(m))}},[t,e]);return{favorite:l,unfavorite:c,errors:n,loading:r}},Pie=C(Je)(({theme:e})=>({paddingLeft:e.spacing(1.25)})),N3=C(en)(({theme:e})=>({color:e.palette.primary.main,padding:e.spacing(1.25)})),Iie=C(N3)({opacity:0}),$ie=({value:e,onClick:t})=>s(Pie,{children:s(X,{condition:Boolean(e),show:s(N3,{onClick:t,size:"small",children:s(gx,{fontSize:"small"})}),elseShow:s(Iie,{className:"show-row-hover",onClick:t,size:"small",children:s(vx,{fontSize:"small"})})})}),Oie=({isActive:e=!1,onClick:t})=>{const[n,r]=p.useState(e);return s(au,{title:n?"Unpin favorite features from the top":"Pin favorite features to the top",children:s(en,{sx:{mx:-.75,display:"flex",alignItems:"center",justifyContent:"center",padding:1.25},onClick:()=>{r(!n),t(!n)},size:"small",children:s(X,{condition:n,show:s(gx,{fontSize:"small"}),elseShow:s(vx,{fontSize:"small"})})})})},Lie=()=>{const{value:e,setValue:t}=vv("global:v1",{});return{value:e,setValue:t}},bv=(e,t,n)=>{p.useEffect(()=>{const r=e.filter(({condition:a})=>a).flatMap(({columns:a})=>a),o=e.flatMap(({columns:a})=>a).filter(a=>!r.includes(a));t(a=>[...new Set([...a,...r].filter(i=>!o.includes(i)))])},[...e.map(({condition:r})=>r),t,n])};var oC={},Mie=hn;Object.defineProperty(oC,"__esModule",{value:!0});var D3=oC.default=void 0,Nie=Mie(kn()),Die=An,Bie=(0,Nie.default)((0,Die.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"FileDownload");D3=oC.default=Bie;const iu=()=>{const{data:e,error:t,mutate:n}=vn(jt("api/admin/environments"),Fie),r=p.useMemo(()=>e||[],[e]),o=p.useCallback(async()=>{await n()},[n]),a=p.useCallback(async i=>{await n(i,!1)},[n]);return{environments:r,refetchEnvironments:o,mutateEnvironments:a,loading:!t&&!e,error:t}},Fie=async e=>(await fetch(e).then(Tn("Environments")).then(n=>n.json())).environments.sort((n,r)=>n.sortOrder-r.sortOrder),su=({name:e,value:t="",label:n="",options:r,onChange:o,id:a,disabled:i=!1,className:l,classes:c,fullWidth:u,...d})=>T(Ri,{variant:"outlined",size:"small",classes:c,fullWidth:u,children:[s(Gp,{htmlFor:a,children:n}),s(qp,{name:e,disabled:i,onChange:h=>{h.preventDefault(),o(String(h.target.value))},className:l,label:n,id:a,value:t,IconComponent:Rb,...d,children:r.map(h=>s(vs,{sx:h.sx,value:h.key,title:h.title||"","data-testid":`${B4}-${h.label}`,disabled:h.disabled,children:h.label},h.key))})]}),zie=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0}),{trackEvent:o}=Oi();return{loading:r,errors:n,createExport:async i=>{const c=t("api/admin/features-batch/export",{method:"POST",body:JSON.stringify(i)});try{const u=await e(c.caller,c.id);return o("export_import",{props:{eventType:"features exported"}}),u}catch(u){throw u}}}},jie=C(su)(({theme:e})=>({minWidth:"250px",marginTop:e.spacing(2)})),Uie=({showExportDialog:e,data:t,onClose:n,environments:r})=>{const[o,a]=p.useState(r[0]),{createExport:i}=zie(),l=p.createRef(),{setToastApiError:c}=Ot(),u=()=>r.map(m=>({key:m,label:m})),d=()=>({features:t.map(m=>m.name),environment:o}),f=m=>{var w,x;const y=document.createElement("a");(w=l.current)==null||w.appendChild(y),y.style.display="display: none";const g=new Blob([JSON.stringify(m)],{type:"application/json"}),v=window.URL.createObjectURL(g);y.href=v;const b=new Date;y.download=`${b.toISOString()}-export.json`,y.click(),window.URL.revokeObjectURL(v),(x=l.current)==null||x.removeChild(y)};return s(lr,{open:e,title:"Export feature toggle configuration",onClose:n,onClick:async()=>{try{const m=d(),g=await(await i(m)).json();f(g),n()}catch(m){c(ft(m))}},primaryButtonText:"Export selection",secondaryButtonText:"Cancel",children:T(Je,{ref:l,children:["The current search filter will be used to export feature toggles. Currently ",t.length," feature toggles will be exported.",s("br",{}),s("br",{}),s(we,{children:"Select which environment to export feature toggle configuration from:"}),s(jie,{options:u(),value:o,onChange:m=>a(m)})]})})},B3=Array(15).fill({name:"Name of the feature",description:"Short description of the feature",type:"-",createdAt:new Date(2022,1,1),project:"projectID"}),Wie={id:"createdAt"},{value:UA,setValue:Hie}=vv("FeatureToggleListTable:v1",Wie),Vie=()=>{var Z,W;const e=cn(),{environments:t}=iu(),n=t.filter(z=>z.enabled).map(z=>z.name),r=Tr(e.breakpoints.down("md")),o=Tr(e.breakpoints.down("lg")),[a,i]=p.useState(!1),{features:l=[],loading:c,refetchFeatures:u}=zx(),[d,f]=Dp(),{uiConfig:h}=Nt(),[m]=p.useState(()=>({sortBy:[{id:d.get("sort")||UA.id,desc:d.has("order")?d.get("order")==="desc":UA.desc}],hiddenColumns:["description"],globalFilter:d.get("search")||""})),{value:y,setValue:g}=Lie(),{isFavoritesPinned:v,sortTypes:b,onChangeIsFavoritePinned:w}=_ie(d.has("favorites")?d.get("favorites")==="true":y.favorites),[x,E]=p.useState(m.globalFilter),{favorite:A,unfavorite:k}=Rie(),_=p.useCallback(async z=>{z!=null&&z.favorite?await k(z.project,z.name):await A(z.project,z.name),u()},[A,u,k]),O=p.useMemo(()=>[{Header:s(Oie,{isActive:v,onClick:w}),accessor:"favorite",Cell:({row:{original:z}})=>s($ie,{value:z==null?void 0:z.favorite,onClick:()=>_(z)}),maxWidth:50,disableSortBy:!0},{Header:"Seen",accessor:"lastSeenAt",Cell:x3,sortType:"date",align:"center",maxWidth:85},{Header:"Type",accessor:"type",Cell:k3,align:"center",maxWidth:85},{Header:"Name",accessor:"name",minWidth:150,Cell:Aae,sortType:"alphanumeric",searchable:!0},{id:"tags",Header:"Tags",accessor:z=>{var R;return((R=z.tags)==null?void 0:R.map(({type:N,value:ee})=>`${N}:${ee}`).join(`
267
- `))||""},Cell:kie,width:80,searchable:!0},{Header:"Created",accessor:"createdAt",Cell:bp,sortType:"date",maxWidth:150},{Header:"Project ID",accessor:"project",Cell:({value:z})=>s(Rs,{title:z,to:`/projects/${z}`}),sortType:"alphanumeric",maxWidth:150,filterName:"project",searchable:!0},{Header:"State",accessor:"stale",Cell:I3,sortType:"boolean",maxWidth:120,filterName:"state",filterParsing:z=>z?"stale":"active"},{accessor:"description",Header:"Description",searchable:!0}],[v]),{data:L,getSearchText:I,getSearchContext:$}=rC(O,x,l),D=p.useMemo(()=>(L==null?void 0:L.length)===0&&c?B3:L,[L,c]),{headerGroups:F,rows:U,prepareRow:Y,state:{sortBy:V},setHiddenColumns:te}=rn.useTable({columns:O,data:D,initialState:m,sortTypes:b,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0},rn.useSortBy,rn.useFlexLayout);return bv([{condition:!l.some(({tags:z})=>z==null?void 0:z.length),columns:["tags"]},{condition:r,columns:["type","createdAt","tags"]},{condition:o,columns:["lastSeenAt","stale"]}],te,O),p.useEffect(()=>{const z={};z.sort=V[0].id,V[0].desc&&(z.order="desc"),x&&(z.search=x),v&&(z.favorites="true"),f(z,{replace:!0}),Hie({id:V[0].id,desc:V[0].desc||!1}),g(R=>({...R,favorites:Boolean(v)}))},[V,x,f,v]),t.length>0?T(gr,{isLoading:c,header:s(En,{title:`Feature toggles (${U.length<D.length?`${U.length} of ${D.length}`:D.length})`,actions:T(ke,{children:[s(X,{condition:!r,show:T(ke,{children:[s(vo,{initialValue:x,onChange:E,hasFilters:!0,getSearchContext:$}),s(En.Divider,{})]})}),s(ho,{component:sn,to:"/archive",underline:"always",sx:{marginRight:2},children:"View archive"}),s(X,{condition:Boolean((Z=h==null?void 0:h.flags)==null?void 0:Z.featuresExportImport),show:s(_t,{title:"Export current selection",arrow:!0,children:s(en,{onClick:()=>i(!0),sx:z=>({marginRight:z.spacing(2)}),children:s(D3,{})})})}),s(eie,{loading:!1,filter:{query:"",project:"default"}})]}),children:s(X,{condition:r,show:s(vo,{initialValue:x,onChange:E,hasFilters:!0,getSearchContext:$})})}),children:[s(_s,{value:I(x),children:s(Fx,{rows:U,headerGroups:F,prepareRow:Y})}),s(X,{condition:U.length===0,show:s(X,{condition:(x==null?void 0:x.length)>0,show:T(Qn,{children:["No feature toggles found matching “",x,"”"]}),elseShow:s(Qn,{children:"No feature toggles available. Get started by adding a new feature toggle."})})}),s(X,{condition:Boolean((W=h==null?void 0:h.flags)==null?void 0:W.featuresExportImport),show:s(Uie,{showExportDialog:a,data:D,onClose:()=>i(!1),environments:n})})]}):null},lu=()=>{const{data:e,error:t}=vn(zb,Gie),n=p.useCallback(()=>{Hr(zb).catch(console.warn)},[]);return{strategies:(e==null?void 0:e.strategies)||Kie,refetchStrategies:n,loading:!t&&!e,error:t}},Gie=()=>fetch(zb).then(Tn("Strategy types")).then(e=>e.json()),qie={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}]},Kie=[qie],zb=jt("api/admin/strategies"),Yie=jt("api/admin/metrics/applications"),F3=(e={})=>{const t=async()=>fetch(Yie,{method:"GET"}).then(Tn("Applications data")).then(c=>c.json()),n="api/admin/metrics/applications",{data:r,error:o}=vn(n,t,{...e}),[a,i]=p.useState(!o&&!r),l=()=>{Hr(n)};return p.useEffect(()=>{i(!o&&!r)},[r,o]),{applications:(r==null?void 0:r.applications)||[],error:o,loading:a,refetchApplications:l,APPLICATIONS_CACHE_KEY:n}},Xie="_truncate_h6uff_2",Jie="_fullwidth_h6uff_8",Qie="_sectionPadding_h6uff_12",Zie="_horisontalScroll_h6uff_16",ese="_listLink_h6uff_25",tse="_hideLt920_h6uff_37",nse="_hideLt600_h6uff_42",rse="_dataTableHeader_h6uff_46",ose="_titleText_h6uff_51",ase="_actions_h6uff_56",ise="_switchWithLabel_h6uff_60",sse="_label_h6uff_63",lse="_emptyState_h6uff_72",cse="_toggleName_h6uff_80",use="_toolbar_h6uff_85",dse="_toolbarButton_h6uff_91",pse="_error_h6uff_98",fse="_headerTitle_h6uff_102",hse="_listItem_h6uff_107",mse="_section_h6uff_12",gse="_contentPadding_h6uff_115",vse="_contentSpacing_h6uff_119",yse="_searchField_h6uff_123",Sc={truncate:Xie,fullwidth:Jie,sectionPadding:Qie,horisontalScroll:Zie,listLink:ese,hideLt920:tse,hideLt600:nse,dataTableHeader:rse,titleText:ose,actions:ase,switchWithLabel:ise,label:sse,switch:"_switch_h6uff_60",emptyState:lse,toggleName:cse,toolbar:use,toolbarButton:dse,error:pse,headerTitle:fse,listItem:hse,section:mse,contentPadding:gse,contentSpacing:vse,searchField:yse},aC=({apps:e})=>s(qa,{children:s(X,{condition:e.length>0,show:e.map(({appName:t,description:n,icon:r})=>T(Fa,{className:Sc.listItem,children:[s(Yi,{children:s(rv,{children:s(X,{condition:r,show:s(rx,{children:r}),elseShow:s(vZ,{})},`avatar_conditional_${t}`)})}),s(dn,{primary:s(sn,{to:`/applications/${encodeURIComponent(t)}`,className:[Sc.listLink,Sc.truncate].join(" "),children:t}),secondary:n||"No description"})]},t))})});aC.propTypes={apps:ct.array.isRequired};ct.string,ct.any;ct.string,ct.func.isRequired,ct.string;ct.string,ct.object;const bse=zt.forwardRef(({icon:e,label:t,disabled:n,...r},o)=>T(vs,{disabled:n,style:{display:"flex",alignItems:"center"},...r,children:[s(e,{}),t]}));bse.propTypes={icon:ct.object,label:ct.string,disabled:ct.bool};const wse="_deprecated_nqviu_10",Sse="_formButtons_nqviu_14",xse="_header_nqviu_18",Cse="_formContainer_nqviu_32",Ese="_inset_nqviu_38",Tse="_parameter_menu_nqviu_42",kse="_listcontainer_nqviu_52",Ase="_listItem_nqviu_56",_se={"non-style-button":"_non-style-button_nqviu_1",deprecated:wse,formButtons:Sse,header:xse,formContainer:Cse,inset:Ese,parameter_menu:Tse,listcontainer:kse,listItem:Ase},Rse=({toggles:e})=>s(qa,{style:{textAlign:"left"},className:Sc.truncate,children:s(X,{condition:e.length>0,show:e.map(({name:t,description:n="-",enabled:r})=>T(Fa,{children:[s(Yi,{children:s(X,{condition:Boolean(r),show:s(_t,{title:"Enabled",arrow:!0,children:s(NZ,{"aria-hidden":!1})}),elseShow:s(_t,{title:"Disabled",arrow:!0,children:s(MZ,{"aria-hidden":!1})})})}),s(dn,{primary:s(sn,{to:`/features/view/${t}`,children:t},t),secondary:n})]},t))})}),Pse=({strategy:e,applications:t,toggles:n})=>{const r=cn(),{parameters:o=[]}=e,a=i=>i.length>0?i.map(({name:l,type:c,description:u,required:d},f)=>T(Fa,{children:[s(X,{condition:d,show:s(Yi,{children:s(_t,{title:"Required parameter",arrow:!0,children:s(xa,{"aria-hidden":!1})})}),elseShow:s(Yi,{children:s(_t,{title:"Optional parameter",arrow:!0,children:s(DZ,{"aria-hidden":!1})})})}),s(dn,{primary:T("div",{children:[l," ",T("small",{children:["(",c,")"]})]}),secondary:u})]},`${l}-${f}`)):s(Fa,{children:"No params"});return s("div",{className:_se.listcontainer,children:T(In,{container:!0,children:[s(X,{condition:e.deprecated,show:s(In,{item:!0,children:s("h5",{style:{color:r.palette.error.main},children:"Deprecated"})})}),T(In,{item:!0,sm:12,md:12,children:[s("h6",{children:"Parameters"}),s("hr",{}),s(qa,{children:a(o)})]}),T(In,{item:!0,sm:12,md:n.length>0?6:12,children:[s("h6",{children:"Applications using this strategy"}),s("hr",{}),s(aC,{apps:t})]}),s(X,{condition:n.length>0,show:()=>T(In,{item:!0,sm:12,md:6,children:[s("h6",{children:"Toggles using this strategy"}),s("hr",{}),s(Rse,{toggles:n})]})})]})})},z3=e=>o9()[e],cr=e=>{const t=z3(e);if(!t)throw new Error(`Missing required path param: ${e}`);return t},Ise=()=>{const e=cr("name"),{strategies:t}=lu(),{features:n=[]}=zx(),{applications:r}=F3(),o=ut(),a=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)}),i=t.find(c=>c.name===e),l=()=>{o(`/strategies/${e}/edit`)};return i?s(gr,{header:s(En,{title:i==null?void 0:i.name,subtitle:i==null?void 0:i.description,actions:s(X,{condition:i.editable,show:s(mr,{permission:fv,"data-loading":!0,onClick:l,tooltipProps:{title:"Edit strategy"},children:s(Ja,{})})})}),children:s(In,{container:!0,children:s(In,{item:!0,xs:12,sm:12,children:s(Pse,{strategy:i,toggles:a,applications:r})})})}):null},$se=C(Je)(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",padding:e.spacing(0,1.5)})),Ose=C(fo)(({theme:e})=>({borderColor:e.palette.dividerAlternative,height:e.spacing(3),margin:e.spacing(0,2)})),Lse=()=>s(Ose,{orientation:"vertical",variant:"middle"}),j3=({children:e})=>s($se,{children:e});j3.Divider=Lse;const Za=j3;var iC={},Mse=hn;Object.defineProperty(iC,"__esModule",{value:!0});var U3=iC.default=void 0,Nse=Mse(kn()),Dse=An,Bse=(0,Nse.default)((0,Dse.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");U3=iC.default=Bse;var sC={},Fse=hn;Object.defineProperty(sC,"__esModule",{value:!0});var W3=sC.default=void 0,zse=Fse(kn()),jse=An,Use=(0,zse.default)((0,jse.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");W3=sC.default=Use;var lC={},Wse=hn;Object.defineProperty(lC,"__esModule",{value:!0});var H3=lC.default=void 0,Hse=Wse(kn()),Vse=An,Gse=(0,Hse.default)((0,Vse.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");H3=lC.default=Gse;var cC={},qse=hn;Object.defineProperty(cC,"__esModule",{value:!0});var V3=cC.default=void 0,Kse=qse(kn()),Yse=An,Xse=(0,Kse.default)((0,Yse.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");V3=cC.default=Xse;const Jse=e=>p.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},p.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"})),wp=e=>tle[e]??e,Qse=e=>s(mb,{...e,component:t=>s(Jse,{...t}),inheritViewBox:!0}),Zse=e=>{switch(e){case"default":return Yx;case"remoteAddress":return H3;case"flexibleRollout":return Qse;case"userWithId":return W3;case"applicationHostname":return U3;default:return V3}},ele=({strategyName:e})=>{const t=cn(),n=Zse(e);return s(n,{style:{color:t.palette.neutral.main}})},tle={applicationHostname:"Hosts",default:"Standard",flexibleRollout:"Gradual rollout",gradualRolloutRandom:"Randomized",gradualRolloutSessionId:"Sessions",gradualRolloutUserId:"Users",remoteAddress:"IPs",userWithId:"UserIDs"},Xu="api/admin/strategies",uC=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0}),o=p.useCallback(async u=>{const d=t(Xu,{method:"POST",body:JSON.stringify(u)});return e(d.caller,d.id)},[t,e]),a=p.useCallback(async u=>{const d=`${Xu}/${u.name}`,f=t(d,{method:"PUT",body:JSON.stringify(u)});try{return await e(f.caller,f.id)}catch(h){throw h}},[t,e]),i=p.useCallback(async u=>{const d=`${Xu}/${u.name}`,f=t(d,{method:"DELETE"});try{return await e(f.caller,f.id)}catch(h){throw h}},[t,e]),l=p.useCallback(async u=>{const d=`${Xu}/${u.name}/deprecate`,f=t(d,{method:"POST"});try{return await e(f.caller,f.id)}catch(h){throw h}},[t,e]),c=p.useCallback(async u=>{const d=`${Xu}/${u.name}/reactivate`,f=t(d,{method:"POST"});try{return await e(f.caller,f.id)}catch(h){throw h}},[t,e]);return{createStrategy:o,updateStrategy:a,removeStrategy:i,deprecateStrategy:l,reactivateStrategy:c,errors:n,loading:r}},nle=()=>{const e=Tr("(max-width:700px)"),t=ut();return s(X,{condition:e,show:s(mr,{"data-testid":aA,onClick:()=>t("/strategies/create"),permission:km,size:"large",tooltipProps:{title:"New strategy type"},children:s(xa,{})}),elseShow:s(Do,{onClick:()=>t("/strategies/create"),color:"primary",permission:km,"data-testid":aA,children:"New strategy type"})})},rle=zt.forwardRef((e,t)=>{const n=Uc(e.permission,e.projectId,e.environmentId);return s(G3,{...e,access:n,ref:t})}),ole=zt.forwardRef((e,t)=>{const n=nC(e.permission,e.projectId,e.environmentId);return s(G3,{...e,access:n,ref:t})}),G3=zt.forwardRef((e,t)=>{const{access:n,permission:r,tooltip:o,disabled:a,projectId:i,environmentId:l,checked:c,onChange:u,...d}=e;return s(au,{title:yv(n,o),arrow:!0,children:s("span",{"data-loading":!0,children:s(Pi,{"data-testid":"toggle-switch",onChange:u,disabled:a||!n,checked:c,ref:t,...d})})})}),q3=zt.forwardRef((e,t)=>typeof e.projectId<"u"&&typeof e.environmentId<"u"?s(rle,{...e,projectId:e.projectId,environmentId:e.environmentId,ref:t}):s(ole,{...e,ref:t})),ale=({deprecated:e,disabled:t,onToggle:n})=>{const r=()=>{n(e)},o=ys();return s(_t,{title:t?"You cannot disable default strategy":e?"Excluded from strategy list":"Included in strategy list",describeChild:!0,arrow:!0,children:s("div",{id:o,children:s(q3,{checked:!e,permission:fv,onClick:r,disabled:t,inputProps:{"aria-labelledby":o}})})})},ile=({strategy:e,onClick:t})=>{const n=ys();return s(X,{condition:e==null?void 0:e.editable,show:s(mr,{onClick:t,permission:fv,tooltipProps:{title:"Edit strategy"},children:s(Ja,{})}),elseShow:s(_t,{title:"You cannot edit a built-in strategy",arrow:!0,children:s("div",{id:n,children:s(en,{disabled:!0,size:"large",children:s(Ja,{"aria-labelledby":n})})})})})},sle=({strategy:e,onClick:t})=>{const n=ys();return s(X,{condition:e==null?void 0:e.editable,show:s(mr,{onClick:t,permission:xne,tooltipProps:{title:"Delete strategy"},children:s(na,{})}),elseShow:s(_t,{title:"You cannot delete a built-in strategy",arrow:!0,children:s("div",{id:n,children:s(en,{disabled:!0,size:"large",children:s(na,{"aria-labelledby":n})})})})})},lle=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,backgroundColor:e.palette[t].light,color:e.palette[t].dark,border:`1px solid ${e.palette[t].border}`})),cle=C("div")(({theme:e,color:t="neutral",iconRight:n=!1})=>({display:"flex",color:e.palette[t].main,margin:n?e.spacing(0,0,0,.5):e.spacing(0,.5,0,0)})),WA=(e,t,n=!1)=>s(cle,{color:e,iconRight:n,children:s(X,{condition:Boolean(t==null?void 0:t.props.sx),show:t,elseShow:()=>p.cloneElement(t,{sx:{fontSize:"16px"}})})}),wa=p.forwardRef(({color:e="neutral",icon:t,iconRight:n,className:r,sx:o,children:a,...i},l)=>T(lle,{color:e,icon:t,className:r,sx:o,...i,ref:l,children:[s(X,{condition:Boolean(t)&&!Boolean(n),show:WA(e,t)}),a,s(X,{condition:Boolean(t)&&Boolean(n),show:WA(e,t,!0)})]})),ule=C(wa)(({theme:e})=>({marginLeft:e.spacing(1),display:"inline-block"})),dle=()=>{const e=ut(),[t,n]=p.useState({show:!1,title:"",onConfirm:()=>{}}),{strategies:r,refetchStrategies:o,loading:a}=lu(),{removeStrategy:i,deprecateStrategy:l,reactivateStrategy:c}=uC(),{setToastData:u,setToastApiError:d}=Ot(),f=p.useMemo(()=>a?Array(5).fill({name:"Context name",description:"Context description when loading"}):r.map(({name:I,description:$,editable:D,deprecated:F})=>({name:I,description:$,editable:D,deprecated:F})),[r,a]),h=p.useCallback(I=>$=>{n($?{show:!0,title:"Really reactivate strategy?",onConfirm:async()=>{try{await c(I),o(),u({type:"success",title:"Success",text:"Strategy reactivated successfully"})}catch(D){d(ft(D))}}}:{show:!0,title:"Really deprecate strategy?",onConfirm:async()=>{try{await l(I),o(),u({type:"success",title:"Success",text:"Strategy deprecated successfully"})}catch(D){d(ft(D))}}})},[l,c,o,d,u]),m=p.useCallback(I=>{n({show:!0,title:"Really delete strategy?",onConfirm:async()=>{try{await i(I),o(),u({type:"success",title:"Success",text:"Strategy deleted successfully"})}catch($){d(ft($))}}})},[i,o,d,u]),y=p.useCallback(I=>{e(`/strategies/${I.name}/edit`)},[e]),g=p.useMemo(()=>[{id:"Icon",Cell:()=>s(Je,{"data-loading":!0,sx:{pl:3,pr:1,display:"flex",alignItems:"center"},children:s(k4,{color:"disabled"})}),disableGlobalFilter:!0},{id:"Name",Header:"Name",accessor:I=>wp(I.name),width:"90%",Cell:({row:{original:{name:I,description:$,deprecated:D,editable:F}}})=>{const U=D?`${$} (deprecated)`:$;return s(Rs,{"data-loading":!0,title:wp(I),subtitle:U,to:`/strategies/${I}`,children:s(X,{condition:!F,show:()=>s(ule,{color:"success",children:"Predefined"})})})},sortType:"alphanumeric"},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:I}})=>T(Za,{children:[s(ale,{deprecated:I.deprecated,onToggle:h(I),disabled:I.name==="default"}),s(Za.Divider,{}),s(ile,{strategy:I,onClick:()=>y(I)}),s(sle,{strategy:I,onClick:()=>m(I)})]}),width:150,disableGlobalFilter:!0,disableSortBy:!0},{accessor:"description",disableSortBy:!0},{accessor:"sortOrder",disableGlobalFilter:!0,sortType:"number"}],[h,y,m]),v=p.useMemo(()=>({sortBy:[{id:"Name",desc:!1}],hiddenColumns:["description","sortOrder"]}),[]),{getTableProps:b,getTableBodyProps:w,headerGroups:x,rows:E,prepareRow:A,state:{globalFilter:k},setGlobalFilter:_}=rn.useTable({columns:g,data:f,initialState:v,sortTypes:ai,autoResetGlobalFilter:!1,autoResetSortBy:!1,disableSortRemove:!0},rn.useGlobalFilter,rn.useSortBy),O=()=>{t==null||t.onConfirm(),n(I=>({...I,show:!1}))};let L=E.length;return T(gr,{isLoading:a,header:s(En,{title:`Strategy types (${L})`,actions:T(ke,{children:[s(vo,{initialValue:k,onChange:_}),s(En.Divider,{}),s(nle,{})]})}),children:[s(_s,{value:k,children:T(Ni,{...b(),children:[s(Mi,{headerGroups:x}),s(Ii,{...w(),children:E.map(I=>(A(I),s(ri,{hover:!0,...I.getRowProps(),children:I.cells.map($=>s(Qa,{...$.getCellProps(),children:$.render("Cell")}))})))})]})}),s(X,{condition:E.length===0,show:s(X,{condition:(k==null?void 0:k.length)>0,show:T(Qn,{children:["No strategies found matching “",k,"”"]}),elseShow:s(Qn,{children:"No strategies available. Get started by adding one."})})}),s(lr,{open:t.show,onClick:O,title:t==null?void 0:t.title,onClose:()=>n(I=>({...I,show:!1}))})]})},wv=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({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(f){throw f}},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(f){throw f}},updateTagType:async(c,u)=>{const d=`api/admin/tag-types/${c}`,f=t(d,{method:"PUT",body:JSON.stringify(u)});try{return await e(f.caller,f.id)}catch(h){throw h}},deleteTagType:async c=>{const u=`api/admin/tag-types/${c}`,d=t(u,{method:"DELETE"});try{return await e(d.caller,d.id)}catch(f){throw f}},errors:n,loading:r}},ple=(e={})=>{const t=async()=>{const c=jt("api/admin/tag-types");return(await fetch(c,{method:"GET"}).then(Tn("Tag types"))).json()},n="api/admin/tag-types",{data:r,error:o}=vn(n,t,e),[a,i]=p.useState(!o&&!r),l=()=>{Hr(n)};return p.useEffect(()=>{i(!o&&!r)},[r,o]),{tagTypes:(r==null?void 0:r.tagTypes)||[],error:o,loading:a,refetch:l}},fle=()=>{const e=ut(),t=Tr("(max-width:700px)");return s(X,{condition:t,show:s(mr,{onClick:()=>e("/tag-types/create"),size:"large",permission:vp,children:s(xa,{})}),elseShow:s(Do,{permission:vp,onClick:()=>e("/tag-types/create"),children:"New tag type"})})},hle=()=>{const[e,t]=p.useState({open:!1}),n=ut(),{deleteTagType:r}=wv(),{tagTypes:o,refetch:a,loading:i}=ple(),{setToastData:l,setToastApiError:c}=Ot(),u=p.useMemo(()=>i?Array(5).fill({name:"Tag type name",description:"Tag type description when loading"}):o.map(({name:E,description:A})=>({name:E,description:A})),[o,i]),d=p.useMemo(()=>[{id:"Icon",Cell:()=>s(Je,{"data-loading":!0,sx:{pl:2,pr:1,display:"flex",alignItems:"center"},children:s(IZ,{color:"disabled"})}),disableGlobalFilter:!0},{Header:"Name",accessor:"name",width:"90%",Cell:({row:{original:{name:E,description:A}}})=>s(Rs,{"data-loading":!0,title:E,subtitle:A}),sortType:"alphanumeric"},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:E}})=>T(Je,{sx:{display:"flex",justifyContent:"flex-end"},"data-loading":!0,children:[s(mr,{onClick:()=>n(`/tag-types/edit/${E.name}`),permission:vp,tooltipProps:{title:"Edit tag type"},children:s(Ja,{})}),s(mr,{permission:Tne,tooltipProps:{title:"Delete tag type"},onClick:()=>t({open:!0,name:E.name}),children:s(na,{})})]}),width:150,disableGlobalFilter:!0,disableSortBy:!0},{accessor:"description",disableSortBy:!0}],[n]),f=p.useMemo(()=>({sortBy:[{id:"name",desc:!1}],hiddenColumns:["description"]}),[]),{getTableProps:h,getTableBodyProps:m,headerGroups:y,rows:g,prepareRow:v,state:{globalFilter:b},setGlobalFilter:w}=rn.useTable({columns:d,data:u,initialState:f,sortTypes:ai,autoResetGlobalFilter:!1,autoResetSortBy:!1,disableSortRemove:!0},rn.useGlobalFilter,rn.useSortBy),x=async()=>{try{e.name&&(await r(e.name),a(),t({open:!1}),l({type:"success",show:!0,title:"Successfully deleted tag type."}))}catch(E){c(ft(E))}};return T(gr,{isLoading:i,header:s(En,{title:`Tag types (${g.length})`,actions:T(ke,{children:[s(vo,{initialValue:b,onChange:w}),s(En.Divider,{}),s(fle,{})]})}),children:[s(_s,{value:b,children:T(Ni,{...h(),children:[s(Mi,{headerGroups:y}),s(Ii,{...m(),children:g.map(E=>(v(E),s(ri,{hover:!0,...E.getRowProps(),children:E.cells.map(A=>s(Qa,{...A.getCellProps(),children:A.render("Cell")}))})))})]})}),s(X,{condition:g.length===0,show:s(X,{condition:(b==null?void 0:b.length)>0,show:T(Qn,{children:["No tags found matching “",b,"”"]}),elseShow:s(Qn,{children:"No tags available. Get started by adding one."})})}),s(lr,{title:"Really delete Tag type?",open:e.open,onClick:x,onClose:()=>{t({open:!1})}})]})},Sv=(e={})=>{const t=async()=>{const c=jt("api/admin/addons");return(await fetch(c,{method:"GET"}).then(Tn("Addons"))).json()},n="api/admin/addons",{data:r,error:o}=vn(n,t,e),[a,i]=p.useState(!o&&!r),l=p.useCallback(()=>{Hr(n)},[n]);return p.useEffect(()=>{i(!o&&!r)},[r,o]),{addons:(r==null?void 0:r.addons)||[],providers:(r==null?void 0:r.providers)||[],error:o,loading:a,refetchAddons:l}},K3=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0}),o="api/admin/addons",a=async c=>{const d=t(o,{method:"POST",body:JSON.stringify(c)});return e(d.caller,d.id)},i=async c=>{const u=`${o}/${c}`,d=t(u,{method:"DELETE"});return await e(d.caller,d.id)},l=p.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:a,updateAddon:l,removeAddon:i,errors:n,loading:r}},xv=({icon:e})=>s(Je,{sx:{pl:2,pr:1,display:"flex",alignItems:"center"},children:e}),mle="/static/slack-c0af31c6.svg",gle="/static/jira-d9eb9af9.svg",vle="/static/webhooks-ffa904ac.svg",yle="/static/teams-62e72076.svg",ble="/static/datadog-591b6a73.svg",Ju={width:"32.5px",height:"32.5px",marginRight:"16px"},Y3=({name:e})=>{switch(e){case"slack":return s("img",{style:Ju,alt:"Slack logo",src:qs(mle)});case"jira-comment":return s("img",{style:Ju,alt:"JIRA logo",src:qs(gle)});case"webhook":return s("img",{style:Ju,alt:"Generic Webhook logo",src:qs(vle)});case"teams":return s("img",{style:Ju,alt:"Microsoft Teams logo",src:qs(yle)});case"datadog":return s("img",{style:Ju,alt:"Datadog logo",src:qs(ble)});default:return s(rv,{children:s(CZ,{})})}},wle=e=>{const[t,n]=p.useState(e),r=p.useCallback(()=>n(e),[e]);return p.useEffect(()=>{n(e)},[e]),[t,n,r]},Sle=({toggleAddon:e,setShowDelete:t,setDeletedAddon:n,original:r})=>{const o=ut(),[a,i,l]=wle(r.enabled),c=()=>{i(!a),e(r).catch(l)};return T(Za,{children:[s(_t,{title:a?`Disable addon ${r.provider}`:`Enable addon ${r.provider}`,arrow:!0,describeChild:!0,children:s(q3,{permission:Ob,checked:a,onClick:c})}),s(Za.Divider,{}),s(mr,{permission:Ob,tooltipProps:{title:"Edit Addon"},onClick:()=>o(`/addons/edit/${r.id}`),children:s(Ja,{})}),s(mr,{permission:kne,tooltipProps:{title:"Remove Addon"},onClick:()=>{n(r),t(!0)},children:s(na,{})})]})},xle=()=>{const{refetchAddons:e,addons:t,loading:n}=Sv(),{updateAddon:r,removeAddon:o}=K3(),{setToastData:a,setToastApiError:i}=Ot(),[l,c]=p.useState(!1),[u,d]=p.useState({id:0,provider:"",description:"",enabled:!1,events:[],parameters:{}}),f=p.useMemo(()=>n?Array(5).fill({name:"Addon name",description:"Addon description when loading"}):t.map(k=>({...k})),[t,n]),h=p.useCallback(async k=>{try{await r({...k,enabled:!k.enabled}),e(),a({type:"success",title:"Success",text:k.enabled?"Addon is now disabled":"Addon is now enabled"})}catch(_){throw i(ft(_)),_}},[i,e,a,r]),m=p.useMemo(()=>[{id:"Icon",Cell:({row:{original:{provider:k}}})=>s(xv,{icon:s(Y3,{name:k})})},{Header:"Name",accessor:"provider",width:"90%",Cell:({row:{original:{provider:k,description:_}}})=>s(Rs,{"data-loading":!0,title:k,subtitle:_}),sortType:"alphanumeric"},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:k}})=>s(Sle,{setShowDelete:c,toggleAddon:h,setDeletedAddon:d,original:k}),width:150,disableSortBy:!0},{accessor:"description",disableSortBy:!0}],[h]),y=p.useMemo(()=>({sortBy:[{id:"provider",desc:!1}],hiddenColumns:["description"]}),[]),{getTableProps:g,getTableBodyProps:v,headerGroups:b,rows:w,prepareRow:x,state:{globalFilter:E}}=rn.useTable({columns:m,data:f,initialState:y,sortTypes:ai,autoResetGlobalFilter:!1,autoResetSortBy:!1,disableSortRemove:!0},rn.useSortBy),A=async k=>{try{await o(k.id),e(),a({type:"success",title:"Success",text:"Deleted addon successfully"})}catch(_){i(ft(_))}};return T(gr,{isLoading:n,header:s(En,{title:`Configured addons (${w.length})`}),sx:k=>({marginBottom:k.spacing(2)}),children:[T(Ni,{...g(),children:[s(Mi,{headerGroups:b}),s(Ii,{...v(),children:w.map(k=>(x(k),s(ri,{hover:!0,...k.getRowProps(),children:k.cells.map(_=>s(Qa,{..._.getCellProps(),padding:"none",children:_.render("Cell")}))})))})]}),s(X,{condition:w.length===0,show:s(X,{condition:(E==null?void 0:E.length)>0,show:T(Qn,{children:["No addons found matching “",E,"”"]}),elseShow:s(Qn,{children:"No addons configured"})})}),s(lr,{open:l,onClick:()=>{A(u),c(!1)},onClose:()=>{c(!1)},title:"Confirm deletion",children:s("div",{children:"Are you sure you want to delete this Addon?"})})]})},Cle=({name:e})=>{const t=ut();return s(Do,{permission:c3,variant:"outlined",onClick:()=>t(`/addons/create/${e}`),children:"Configure"})},Ele=({providers:e,loading:t})=>{const n=p.useMemo(()=>t?Array(5).fill({name:"Provider name",description:"Provider description when loading"}):e.map(({name:f,displayName:h,description:m})=>({name:f,displayName:h,description:m})),[e,t]),r=p.useMemo(()=>[{id:"Icon",Cell:({row:{original:{name:f}}})=>s(xv,{icon:s(Y3,{name:f})})},{Header:"Name",accessor:"name",width:"90%",Cell:({row:{original:{name:f,description:h}}})=>s(Rs,{"data-loading":!0,title:f,subtitle:h}),sortType:"alphanumeric"},{id:"Actions",align:"center",Cell:({row:{original:f}})=>s(Za,{children:s(Cle,{name:f.name})}),width:150,disableSortBy:!0},{accessor:"description",disableSortBy:!0}],[]),o=p.useMemo(()=>({sortBy:[{id:"name",desc:!1}],hiddenColumns:["description"]}),[]),{getTableProps:a,getTableBodyProps:i,headerGroups:l,rows:c,prepareRow:u,state:{globalFilter:d}}=rn.useTable({columns:r,data:n,initialState:o,sortTypes:ai,autoResetGlobalFilter:!1,autoResetSortBy:!1,disableSortRemove:!0},rn.useSortBy);return T(gr,{isLoading:t,header:s(En,{title:`Available addons (${c.length})`}),children:[T(Ni,{...a(),children:[s(Mi,{headerGroups:l}),s(Ii,{...i(),children:c.map(f=>(u(f),s(ri,{hover:!0,...f.getRowProps(),children:f.cells.map(h=>s(Qa,{...h.getCellProps(),children:h.render("Cell")}))})))})]}),s(X,{condition:c.length===0,show:s(X,{condition:(d==null?void 0:d.length)>0,show:T(Qn,{children:["No providers found matching “",d,"”"]}),elseShow:s(Qn,{children:"No providers available."})})})]})},Tle=()=>{const{providers:e,addons:t,loading:n}=Sv();return T(ke,{children:[s(X,{condition:t.length>0,show:s(xle,{})}),s(Ele,{loading:n,providers:e})]})},kl=()=>new URLSearchParams(oa().search),kle=({children:e,from:t,to:n,style:r,...o})=>s("div",{style:{background:`linear-gradient(${t}, ${n})`,height:"100%",width:"100%",position:"relative",...r},...o,children:e}),Ale=e=>p.createElement("svg",{width:334,height:334,viewBox:"0 0 334 334",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("circle",{cx:167,cy:167,r:167,fill:"white"}),p.createElement("rect",{x:96.3462,y:96.3457,width:44.9615,height:141.308,fill:"#1A4049"}),p.createElement("rect",{x:192.692,y:96.3457,width:44.9615,height:141.308,fill:"#1A4049"}),p.createElement("path",{d:"M237.654 192.693L237.654 237.655L96.3461 237.655L96.3461 192.693L237.654 192.693Z",fill:"#1A4049"}),p.createElement("rect",{x:192.692,y:192.693,width:44.9615,height:44.9615,fill:"#817AFE"})),_le=e=>p.createElement("svg",{id:"bg",width:"100%",height:"100%",viewBox:"0 0 622 318",fill:"none",...e},p.createElement("defs",null,p.createElement("style",null,".cls-1{fill:#fff;}.cls-2{fill:#1a4049;}.cls-3{fill:#817afe;}")),p.createElement("circle",{className:"cls-1",cx:125.62,cy:125.62,r:80}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("rect",{className:"cls-3",x:137.05,y:137.05,width:22.86,height:22.86}),p.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"}),p.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"}),p.createElement("path",{className:"cls-1",d:"M369.42,91.34h11.92V159.9H369.42Z"}),p.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"}),p.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"}),p.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"}),p.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"})),Rle=C(kle)(({theme:e})=>({display:"flex",justifyContent:"center",[e.breakpoints.up("sm")]:{borderBottomLeftRadius:"3px",borderTopLeftRadius:"3px"}})),Ple=C("div")(({theme:e})=>({padding:e.spacing(12,8),color:"#fff",position:"relative",borderTopLeftRadius:"3px",borderBottomLeftRadius:"3px",textAlign:"right",[e.breakpoints.down("md")]:{padding:e.spacing(6,4)},[e.breakpoints.down("sm")]:{padding:e.spacing(6,2)}})),Ile=C(we)(({theme:e})=>({color:"#fff",marginBottom:e.spacing(2),fontSize:e.spacing(4),marginTop:e.spacing(10),[e.breakpoints.down("md")]:{display:"none"}})),$le=C(we)(({theme:e})=>({[e.breakpoints.down("md")]:{display:"none"},[e.breakpoints.down("sm")]:{display:"none"},fontSize:e.spacing(4),fontWeight:"normal"})),Ole=C("div")(({theme:e})=>({position:"absolute",[e.breakpoints.up("md")]:{bottom:"-50px",left:"-50px",display:"flex",flexDirection:"column"}})),X3=e=>({width:"200px",[e.breakpoints.up("md")]:{width:"240px",height:"200px"}}),Lle=C(_le)(({theme:e})=>({...X3(e)})),Mle=C(Ale)(({theme:e})=>({...X3(e)})),J3=({title:e})=>{const t=cn(),n=Tr(t.breakpoints.down("md"));return T(Rle,{from:t.palette.standaloneBannerGradient.from,to:t.palette.standaloneBannerGradient.to,children:[T(Ple,{children:[s(Ile,{variant:"h1",children:e}),s($le,{children:"Committed to creating new ways of developing software"})]}),s(Ole,{children:s(X,{condition:n,show:s(Lle,{"aria-label":"Unleash logo"}),elseShow:s(Mle,{"aria-label":"Unleash logo"})})})]})},Nle=C("div")(({theme:e})=>({padding:e.spacing(11),background:e.palette.standaloneBackground,display:"flex",[e.breakpoints.down("md")]:{flexDirection:"column"},[e.breakpoints.down("sm")]:{padding:"0"},minHeight:"100vh"})),Dle=C("header")(({theme:e})=>({width:"40%",borderRadius:e.shape.borderRadius,[e.breakpoints.down("md")]:{borderRadius:"0",width:"100%",minHeight:"auto"}})),Ble=C("main")(({theme:e})=>({width:"60%",flex:"1",borderTopRightRadius:"3px",borderBottomRightRadius:"3px",backgroundColor:e.palette.background.paper,position:"relative",[e.breakpoints.down("md")]:{borderRadius:"0",width:"100%",position:"static",minHeight:"auto"}})),Fle=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)}})),Cv=({children:e,BannerComponent:t})=>{let n=s(J3,{title:"Unleash"});return t&&(n=t),T(Nle,{children:[s(Dle,{children:n}),s(Ble,{children:s(Fle,{children:e})})]})},zle="unsecure",Q3="demo",jle="password",Ule="enterprise-hosted",Wle="_container_wn392_1",Hle="_button_wn392_10",HA={container:Wle,button:Hle},Ev=()=>{const{makeRequest:e,errors:t,loading:n}=Un({propagateErrors:!0});return{passwordAuth:(a,i,l)=>{const c={caller:()=>fetch(a,{headers:Pb,method:"POST",body:JSON.stringify({username:i,password:l})}),id:"passwordAuth"};return e(c.caller,c.id)},emailAuth:(a,i)=>{const l={caller:()=>fetch(a,{headers:Pb,method:"POST",body:JSON.stringify({email:i})}),id:"emailAuth"};return e(l.caller,l.id)},errors:t,loading:n}},Vle=({authDetails:e,redirect:t})=>{const[n,r]=p.useState(""),{refetchUser:o}=sa(),{emailAuth:a}=Ev(),i=ut(),{setToastApiError:l}=Ot(),c=async d=>{d.preventDefault();try{await a(e.path,n),o(),i(t,{replace:!0})}catch(f){l(ft(f))}},u=d=>{const f=d.target.value;r(f)};return s("form",{onSubmit:c,children:T("div",{className:HA.container,children:[s("p",{children:e.message}),T("p",{children:["This instance of Unleash is not set up with a secure authentication provider. You can read more about"," ",s("a",{href:"https://github.com/Unleash/unleash/blob/master/docs/securing-unleash.md",target:"_blank",rel:"noreferrer",children:"securing Unleash on GitHub"})]}),s(fn,{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":lv,autoFocus:!0}),s("br",{}),s("div",{children:s(rt,{type:"submit",variant:"contained",color:"primary",className:HA.button,"data-testid":cv,children:"Sign in"})})]})})},Gle=({authDetails:e})=>T("div",{children:[s("p",{children:e.message}),s(QH,{style:{textAlign:"center"},children:s("a",{href:e.path,style:{width:"100%"},children:s(rt,{variant:"contained",color:"primary",style:{width:"150px",margin:"0 auto"},children:"Sign In"})})})]}),qle=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"46px",height:"46px",viewBox:"0 0 46 46",...e},p.createElement("defs",null,p.createElement("filter",{x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"objectBoundingBox",id:"filter-1"},p.createElement("feOffset",{dx:0,dy:1,in:"SourceAlpha",result:"shadowOffsetOuter1"}),p.createElement("feGaussianBlur",{stdDeviation:.5,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),p.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"}),p.createElement("feOffset",{dx:0,dy:0,in:"SourceAlpha",result:"shadowOffsetOuter2"}),p.createElement("feGaussianBlur",{stdDeviation:.5,in:"shadowOffsetOuter2",result:"shadowBlurOuter2"}),p.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"}),p.createElement("feMerge",null,p.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),p.createElement("feMergeNode",{in:"shadowMatrixOuter2"}),p.createElement("feMergeNode",{in:"SourceGraphic"}))),p.createElement("rect",{id:"path-2",x:0,y:0,width:40,height:40,rx:2})),p.createElement("g",{id:"Google-Button",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},p.createElement("g",{id:"9-PATCH",transform:"translate(-608.000000, -160.000000)"}),p.createElement("g",{id:"btn_google_light_normal",transform:"translate(-1.000000, -1.000000)"},p.createElement("g",{id:"button",transform:"translate(4.000000, 4.000000)",filter:"url(#filter-1)"},p.createElement("g",{id:"button-bg"},p.createElement("use",{fill:"#FFFFFF",fillRule:"evenodd"}),p.createElement("use",{fill:"none"}),p.createElement("use",{fill:"none"}),p.createElement("use",{fill:"none"}))),p.createElement("g",{id:"logo_googleg_48dp",transform:"translate(15.000000, 15.000000)"},p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{d:"M0,0 L18,0 L18,18 L0,18 L0,0 Z",id:"Shape"})),p.createElement("g",{id:"handles_square"}))));var dC={},Kle=hn;Object.defineProperty(dC,"__esModule",{value:!0});var Z3=dC.default=void 0,Yle=Kle(kn()),Xle=An,Jle=(0,Yle.default)((0,Xle.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");Z3=dC.default=Jle;const pC=({options:e})=>{const{classes:t}=Xp();return s(ke,{children:e==null?void 0:e.map(n=>s("div",{className:ba(t.flexColumn,t.contentSpacingY),children:s(rt,{color:"primary","data-loading":!0,variant:"outlined",href:n.path,size:"small","data-testid":`${pee}-${n.type}`,style:{height:"40px",color:"#000"},startIcon:s(X,{condition:n.type==="google",show:s(qle,{style:{height:"35px",width:"35px"}}),elseShow:s(Z3,{style:{height:"25px",width:"25px"}})}),children:n.message})},n.type))})},Qle=C("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",margin:e.spacing(2,"auto")})),VA=C("span")(({theme:e})=>({width:"80px",height:"3px",backgroundColor:e.palette.divider,borderRadius:e.shape.borderRadius})),Zle=C(we)(({theme:e})=>({textAlign:"center",display:"block",margin:e.spacing(0,2)})),Tv=({text:e,...t})=>T(Qle,{...t,children:[s(VA,{}),s(Zle,{variant:"body2",children:e}),s(VA,{})]}),Wc=({...e})=>{const[t,n]=p.useState(!1);return s(fn,{variant:"outlined",size:"small",type:t?"text":"password",InputProps:{style:{paddingRight:"0px"},endAdornment:s(J$,{position:"end",children:s(en,{onClick:()=>{n(!t)},onMouseDown:l=>{l.preventDefault()},size:"large",children:s(t?_4:R4,{titleAccess:"Toggle password visibility"})})})},...e})},ece=C(Jt)(({theme:e})=>({color:e.palette.error.main,marginBottom:e.spacing(1)})),tce=C("div")(({theme:e})=>({...Yp(e),display:"flex",flexDirection:"column"})),nce=({authDetails:e,redirect:t})=>{const n=ut(),{refetchUser:r}=sa(),o=kl(),[a,i]=p.useState(o.get("email")||""),[l,c]=p.useState(""),{passwordAuth:u}=Ev(),[d,f]=p.useState({}),h=async g=>{if(g.preventDefault(),a||f(v=>({...v,usernameError:"This is a required field"})),l||f(v=>({...v,passwordError:"This is a required field"})),!(!l||!a))try{await u(e.path,a,l),r(),n(t,{replace:!0})}catch(v){v instanceof wx||v instanceof bx?(f(b=>({...b,apiError:"Invalid login details"})),c(""),i("")):v instanceof L4?f({apiError:"Invalid password and username combination."}):f({apiError:"Unknown error while trying to authenticate."})}},m=()=>{const{usernameError:g,passwordError:v,apiError:b}=d;return s(X,{condition:!e.defaultHidden,show:T("form",{onSubmit:h,children:[s(X,{condition:Boolean(b),show:s(ece,{severity:"error",children:b})}),T(tce,{children:[s(fn,{label:"Username or email",name:"username",id:"username",type:"text",onChange:w=>i(w.target.value),value:a,error:Boolean(g),helperText:g,autoComplete:"username","data-testid":lv,variant:"outlined",size:"small",autoFocus:!0}),s(Wc,{label:"Password",onChange:w=>c(w.target.value),name:"password",id:"password",value:l,error:Boolean(v),helperText:v,autoComplete:"current-password","data-testid":D4}),s(rt,{variant:"contained",color:"primary",type:"submit",style:{width:"150px",margin:"1rem auto"},"data-testid":cv,children:"Sign in"})]})]})})},{options:y=[]}=e;return s(ke,{children:s(X,{condition:y.length>0,show:T(ke,{children:[s(pC,{options:y}),s(X,{condition:!e.defaultHidden,show:s(Tv,{text:"Or sign in with username"})}),m()]}),elseShow:m()})})},rce=C(we)(({theme:e})=>({color:e.palette.error.main})),oce=C("div")(({theme:e})=>({...Yp(e),display:"flex",flexDirection:"column"})),ace=C(rt)(({theme:e})=>({width:"150px",margin:e.spacing(2,"auto",0,"auto"),display:"block",textAlign:"center"})),ice=({authDetails:e,redirect:t})=>{const{refetchUser:n}=sa(),r=ut(),o=kl(),{passwordAuth:a}=Ev(),[i,l]=p.useState(o.get("email")||""),[c,u]=p.useState(""),[d,f]=p.useState({}),h=async b=>{if(b.preventDefault(),i||f(w=>({...w,usernameError:"This is a required field"})),c||f(w=>({...w,passwordError:"This is a required field"})),!(!c||!i))try{await a(e.path,i,c),n(),r(t,{replace:!0})}catch(w){w instanceof wx||w instanceof bx?(f(x=>({...x,apiError:"Invalid login details"})),u(""),l("")):f({apiError:"Unknown error while trying to authenticate."})}},{usernameError:m,passwordError:y,apiError:g}=d,{options:v=[]}=e;return T(ke,{children:[s(X,{condition:v.length>0,show:T(ke,{children:[s(pC,{options:v}),s(Tv,{text:"or signin with username"})]})}),s(X,{condition:!e.defaultHidden,show:T("form",{onSubmit:h,children:[s(rce,{variant:"subtitle2",children:g}),T(oce,{children:[s(fn,{label:"Username or email",name:"username",id:"username",type:"text",onChange:b=>l(b.target.value),value:i,error:Boolean(m),helperText:m,variant:"outlined",size:"small","data-testid":lv}),s(Wc,{label:"Password",onChange:b=>u(b.target.value),name:"password",id:"password",value:c,error:Boolean(y),helperText:y,autoComplete:"current-password","data-testid":D4}),s(In,{container:!0,children:s(ace,{variant:"contained",color:"primary",type:"submit","data-testid":cv,children:"Sign in"})})]})]})})]})},sce="_container_abcn7_1",lce="_emailField_abcn7_9",cce="_form_abcn7_13",uce="_logo_abcn7_17",dce="_button_abcn7_24",Qu={container:sce,emailField:lce,form:cce,logo:uce,button:dce},pce=e=>p.createElement("svg",{width:52,height:52,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("circle",{cx:26,cy:26,r:26,fill:"white"}),p.createElement("rect",{x:15,y:15,width:7,height:22,fill:"#1A4049"}),p.createElement("rect",{x:30,y:15,width:7,height:22,fill:"#1A4049"}),p.createElement("path",{d:"M37 30L37 37L15 37L15 30L37 30Z",fill:"#1A4049"}),p.createElement("rect",{x:30,y:30,width:7,height:7,fill:"#817AFE"})),fce=({authDetails:e,redirect:t})=>{const[n,r]=p.useState(""),o=ut(),{refetchUser:a}=sa(),{emailAuth:i}=Ev(),{setToastApiError:l}=Ot(),c=async d=>{d.preventDefault();try{await i(e.path,n),a(),o(t,{replace:!0})}catch(f){l(ft(f))}},u=d=>{const f=d.target.value;r(f)};return T("form",{onSubmit:c,children:[s(pce,{className:Qu.logo,"aria-label":"Unleash logo"}),T("div",{className:Qu.container,children:[s("h2",{children:"Access the Unleash demo instance"}),s("p",{children:"No further data or Credit Card required"}),T("div",{className:Qu.form,children:[s(fn,{value:n,className:Qu.emailField,onChange:u,inputProps:{"data-testid":"email-input-field"},size:"small",variant:"outlined",label:"Email",name:"email",id:"email","data-testid":lv,required:!0,type:"email"}),s(rt,{type:"submit",variant:"contained",color:"primary",className:Qu.button,"data-testid":cv,children:"Sign in"})]}),T("p",{children:["By accessing our demo instance, you agree to the Unleash ",s("a",{href:"https://www.unleash-hosted.com/tos/",target:"_blank",rel:"noreferrer",children:"Customer Terms of Service"})," ","and ",s("a",{href:"https://www.unleash-hosted.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:"Privacy Policy"})]})]})]})},hce=C("div")(({theme:e})=>({margin:"auto auto 0 auto",width:"230px",[e.breakpoints.down("md")]:{marginTop:e.spacing(2)}})),mce=C(sn)(({theme:e})=>({fontWeight:"bold",textAlign:"center"})),gce=C(we)(({theme:e})=>({fontWeight:"bold",marginBottom:e.spacing(1)})),vce=C("a")(({theme:e})=>({fontWeight:"bold",textAlign:"center"})),GA=()=>T(hce,{children:[s(mce,{to:"/forgotten-password",children:s(gce,{variant:"body2",children:"Forgot password?"})}),T(we,{variant:"body2",children:["Don't have an account?"," ",s(vce,{href:"https://www.getunleash.io/plans",target:"_blank",rel:"noopener noreferrer",children:"Sign up"})]})]}),cu=()=>{const e=Jp();return{authDetails:e.data&&"type"in e.data?e.data:void 0,refetchAuthDetails:e.refetchAuth,loading:e.loading,error:e.error}},yce=({redirect:e,invited:t=!1})=>{const{authDetails:n}=cu(),o=kl().get("errorMsg"),{trackEvent:a}=Oi();if(p.useEffect(()=>{t&&a("invite",{props:{eventType:"user created"}})},[t,a]),!n)return null;let i;return n.type===jle?i=T(ke,{children:[s(nce,{authDetails:n,redirect:e}),s(X,{condition:!n.defaultHidden,show:s(GA,{})})]}):n.type===zle?i=s(Vle,{authDetails:n,redirect:e}):n.type===Q3?i=s(fce,{authDetails:n,redirect:e}):n.type===Ule?i=T(ke,{children:[s(ice,{authDetails:n,redirect:e}),s(X,{condition:!n.defaultHidden,show:s(GA,{})})]}):i=s(Gle,{authDetails:n}),T(ke,{children:[s("div",{style:{maxWidth:"350px"},"data-testid":Eee,children:s(X,{condition:Boolean(o),show:s(Jt,{severity:"error",children:o})})}),i]})},bce=e=>{const t=new URL(decodeURIComponent(e),window.location.protocol+"//"+window.location.host);return{pathname:t.pathname,search:t.search}},wce=C("div")(({theme:e})=>({display:"flex",flexDirection:"column"})),Sce=C("h2")(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(2),textAlign:"center"})),xce=()=>{const{authDetails:e}=cu(),{user:t}=sa(),n=kl(),r=n.get("reset")==="true",o=n.get("invited")==="true",a=n.get("redirect")||"/";return t?s(Tl,{to:bce(a),replace:!0}):s(Cv,{children:T(wce,{children:[s(X,{condition:r,show:T(Jt,{severity:"success",sx:{mb:4},children:[s(Sm,{children:"Success"}),"You successfully reset your password."]})}),s(X,{condition:o,show:T(Jt,{severity:"success",sx:{mb:4},children:[s(Sm,{children:"Success"}),"Your account has been created."]})}),s(X,{condition:(e==null?void 0:e.type)!==Q3,show:s(Sce,{children:"Log in to continue the great work"})}),s(yce,{redirect:a,invited:o})]})})},Cce="P",Ece="EEA",Tce="RE",S1="SE",kce="UG",Ace=e=>()=>{if(!e)return Promise.resolve({name:eO});const t=jt(`auth/reset/validate?token=${e}`);return fetch(t,{method:"GET"}).then(n=>n.json())},eO="InvalidTokenError",_ce="UsedTokenError",tO=(e={})=>{const t=kl(),n=t.get("token")||"",[r,o]=p.useState(n),a=Ace(r),i=`auth/reset/validate?token=${r}`,{data:l,error:c}=vn(i,a,e),[u,d]=p.useState(!c&&!l),f=()=>{const m=t.get("token")||"";o(m)};p.useEffect(()=>{d(!c&&!l)},[l,c]);const h=!(!u&&(l==null?void 0:l.name)===eO||(l==null?void 0:l.name)===_ce);return{token:r,data:l,error:c,loading:u,isValidToken:h,setLoading:d,retry:f}},Rce=(e,t)=>()=>{if(!e)return Promise.resolve(!1);const n=jt(t);return fetch(n,{method:"GET"}).then(r=>r.status===Kp)},nO=(e={})=>{const n=kl().get("invite")||"",r=`/invite/${n}/validate`,{data:o,error:a}=vn(r,Rce(n,r),e),[i,l]=p.useState(!a&&!o);return p.useEffect(()=>{l(!a&&o===void 0)},[o,a]),{secret:n,isValid:o,error:a,loading:i}},qA="api/admin/invite-link/tokens",Pce=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0}),o=p.useCallback(async l=>{const c=t(qA,{method:"POST",body:JSON.stringify(l)});return await e(c.caller,c.id)},[t,e]),a=p.useCallback(async(l,c)=>{const u=t(`${qA}/${l}`,{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]),i=p.useCallback(async(l,c)=>{const u=t(`/invite/${l}/signup`,{method:"POST",body:JSON.stringify(c)});return await e(u.caller,u.id)},[t,e]);return{createToken:o,updateToken:a,addUser:i,errors:n,loading:r}},rO=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0});return{resetPassword:p.useCallback(a=>{const i=t("auth/reset/password",{method:"POST",body:JSON.stringify(a)});return e(i.caller,i.id)},[t,e]),errors:n,loading:r}},Ice=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.neutral.main,marginLeft:e.spacing(.5)}})),Lm=({tooltip:e,placement:t,children:n})=>s(_t,{title:e,placement:t,arrow:!0,children:s(Ice,{tabIndex:0,"aria-label":"Help",children:n??s(hx,{})})}),$ce="The password must be at least 10 characters long.",Oce="The password must contain at least one number.",Lce="The password must contain at least one special character.",Mce="The password must contain at least one uppercase letter.",Nce="The password must contain at least one lowercase letter.",Dce="The password may not contain sequences of three or more repeated characters.",oO="The password must be at least 10 characters long and must include an uppercase letter, a lowercase letter, a number, and a symbol.",Bce=C(we)(({theme:e})=>({marginBottom:"0",display:"flex",alignItems:"center",gap:"1ch"})),Fce=C("div")(({theme:e})=>({border:"1px solid #f1f1f1",borderRadius:e.shape.borderRadius,position:"relative",maxWidth:"350px",color:"#44606e"})),zce=C("div")(({theme:e})=>({display:"flex",padding:e.spacing(1)})),ji=C("div")(({theme:e})=>({width:"95px",margin:e.spacing(0,.5),display:"flex",justifyContent:"center"})),jce=C("div")(({theme:e})=>({backgroundColor:e.palette.neutral.light,height:"1px",width:"100%"})),Uce=C("div")(({theme:e})=>({display:"flex",padding:e.spacing(1)})),Wce=C(Jt)(({theme:e})=>({marginTop:e.spacing(1),bottom:"0",position:"absolute"})),th=C("div",{shouldForwardProp:e=>e!=="error"})(({theme:e,error:t})=>({width:"50px",borderRadius:e.shape.borderRadius,height:"6px",backgroundColor:t?"red":e.palette.primary.main})),aO=({password:e,callback:t,style:n={}})=>{const[r,o]=p.useState(!0),[a,i]=p.useState(!0),[l,c]=p.useState(!0),[u,d]=p.useState(!0),[f,h]=p.useState(!1),m=p.useCallback(()=>{const w=jt("auth/reset/validate-password");return fetch(w,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({password:e})})},[e]),y=p.useCallback(()=>{v(!1)},[]),g=p.useCallback(async()=>{if(!e){v(!0);return}if(e.length<3){d(!0);return}try{const w=await m();if(w.status===yx){const x=await w.json();b(x),t(!1)}w.status===Kp&&(y(),h(!1),t(!0))}catch{console.log("An exception was caught and handled")}},[m,t,e,y]);p.useEffect(()=>{g()},[e,g]);const v=w=>{o(w),i(w),c(w),d(w)},b=w=>{const x=w.details[0].validationErrors;x.includes(Oce)?i(!0):i(!1),x.includes(Lce)?c(!0):c(!1),x.includes($ce)?d(!0):d(!1),x.includes(Nce)||x.includes(Mce)?o(!0):o(!1),x.includes(Dce)?h(!0):h(!1)};return T(ke,{children:[T(Bce,{variant:"body2","data-loading":!0,children:["Please set a strong password",s(Lm,{tooltip:oO})]}),T(Fce,{style:{...n},children:[T(zce,{children:[s(ji,{children:s(we,{variant:"body2","data-loading":!0,children:"Length"})}),s(ji,{children:s(we,{variant:"body2","data-loading":!0,children:"Casing"})}),s(ji,{children:s(we,{variant:"body2","data-loading":!0,children:"Number"})}),s(ji,{children:s(we,{variant:"body2","data-loading":!0,children:"Symbol"})})]}),s(jce,{}),T(Uce,{children:[s(ji,{children:s(th,{error:u,"data-loading":!0})}),s(ji,{children:s(th,{error:r,"data-loading":!0})})," ",s(ji,{children:s(th,{error:a,"data-loading":!0})}),s(ji,{children:s(th,{error:l,"data-loading":!0})})]}),s(X,{condition:f,show:s(Wce,{severity:"error",children:"You may not repeat three characters in a row."})})]})]})};var fC={},Hce=hn;Object.defineProperty(fC,"__esModule",{value:!0});var iO=fC.default=void 0,Vce=Hce(kn()),Gce=An,qce=(0,Vce.default)((0,Gce.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");iO=fC.default=qce;const Kce=C("div")(({theme:e})=>({position:"relative",paddingTop:e.spacing(.5)})),Yce=C(we,{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})),Xce=C(iO)(({theme:e})=>({marginRight:"5px"})),sO=({started:e,matchingPasswords:t})=>s(Kce,{children:s(X,{condition:e,show:T(Yce,{variant:"body2","data-loading":!0,matchingPasswords:t,children:[s(Xce,{})," ",s(X,{condition:t,show:s(we,{children:" Passwords match"}),elseShow:s(we,{children:" Passwords do not match"})})]})})}),Jce=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",position:"relative","& > *":{marginTop:`${e.spacing(1)} !important`,marginBottom:`${e.spacing(1)} !important`}})),Qce=C(rt)(({theme:e})=>({width:"150px",margin:e.spacing(2,"auto"),display:"block"})),lO=({onSubmit:e})=>{const[t,n]=p.useState(""),[r,o]=p.useState(!1),[a,i]=p.useState(""),[l,c]=p.useState(!1),[u,d]=p.useState(!1),f=l&&u,h=p.useCallback(d,[d]);p.useEffect(()=>{t||d(!1),c(t===a)},[t,a]);const m=g=>{g.preventDefault(),f&&e(t)},y=Boolean(t&&a);return T(Jce,{onSubmit:m,children:[s(Wc,{placeholder:"Password",value:t||"",onChange:g=>n(g.target.value),onFocus:()=>o(!0),autoComplete:"new-password","data-loading":!0}),s(Wc,{value:a||"",placeholder:"Confirm password",onChange:g=>i(g.target.value),autoComplete:"new-password","data-loading":!0}),s(X,{condition:r,show:s(aO,{password:t,callback:h,style:{marginBottom:"1rem"}})}),s(sO,{started:y,matchingPasswords:l}),s(Qce,{variant:"contained",color:"primary",type:"submit","data-loading":!0,disabled:!f,children:"Submit"})]})},cO=()=>{const{authDetails:e}=cu(),{classes:t}=Xp(),n=(e==null?void 0:e.defaultHidden)===!0,{secret:r}=nO();return T("div",{className:ba(t.contentSpacingY,t.flexColumn,t.itemsCenter),children:[s(we,{variant:"h2",className:t.title,children:"Invalid token"}),s(X,{condition:n,show:T(ke,{children:[s(we,{variant:"subtitle1",children:"Your instance does not support password authentication. Use correct work email to access your account."}),s(rt,{variant:"contained",color:"primary",component:sn,to:"/login",children:"Login"})]}),elseShow:s(X,{condition:Boolean(r),show:s(we,{variant:"subtitle1",children:"Provided invite link is invalid or expired. Please request a new URL in order to create your account."}),elseShow:T(ke,{children:[s(we,{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."}),s(rt,{variant:"contained",color:"primary",component:sn,to:"/forgotten-password","data-testid":hee,children:"Reset password"})]})})})]})},KA=({children:e,loading:t,title:n})=>{const r=gv(t||!1);return s("div",{ref:r,children:s(Cv,{showMenu:!1,BannerComponent:s(J3,{title:"Unleash"}),children:T(Je,{sx:{width:["100%","350px"]},children:[s(X,{condition:Boolean(n),show:s(we,{component:"h2",sx:{fontSize:o=>o.fontSizes.mainHeader,marginBottom:2,textAlign:"center",fontWeight:o=>o.fontWeight.bold},children:n})}),e]})})})},uO=()=>T(Jt,{severity:"error","data-loading":!0,children:[s(Sm,{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."]}),Zce=()=>{var O,L;const{authDetails:e}=cu(),{setToastApiError:t}=Ot(),n=ut(),[r,o]=p.useState(!1),[a,i]=p.useState(""),[l,c]=p.useState(""),{token:u,data:d,loading:f,isValidToken:h}=tO(),{secret:m,loading:y,isValid:g}=nO(),{addUser:v,loading:b}=Pce(),{resetPassword:w,loading:x}=rO(),E=(e==null?void 0:e.defaultHidden)===!0,A=async I=>{try{(await v(m,{name:l,email:a,password:I})).status===VZ?n("/login?invited=true"):t("Couldn't create user. Check if your invite link is valid.")}catch($){t(ft($))}},k=async I=>{try{(await w({token:u,password:I})).status===Kp?n("/login?reset=true"):o(!0)}catch{o(!0)}},_=I=>{g?A(I):k(I)};return!h&&!g?s(KA,{loading:f||y,children:s(cO,{})}):T(KA,{loading:f||y||b||x,title:E?"Connect your account and start your journey":"Enter your personal details and start your journey",children:[s(X,{condition:d==null?void 0:d.createdBy,show:T(we,{variant:"body1","data-loading":!0,sx:{textAlign:"center",mb:2},children:[d==null?void 0:d.createdBy,s("br",{})," has invited you to join Unleash."]})}),T(we,{color:"text.secondary",children:["We suggest using"," ",s(we,{component:"strong",fontWeight:"bold",children:"the email you use for work"}),"."]}),s(X,{condition:Boolean((O=e==null?void 0:e.options)==null?void 0:O.length),show:s(Je,{sx:{mt:2},children:s(pC,{options:e==null?void 0:e.options})})}),s(X,{condition:Boolean((L=e==null?void 0:e.options)==null?void 0:L.length)&&!E,show:s(Tv,{text:"or sign-up with an email address","data-loading":!0})}),s(X,{condition:!E,show:T(ke,{children:[s(X,{condition:d==null?void 0:d.email,show:()=>s(we,{"data-loading":!0,variant:"body1",sx:{my:1},children:"Your username is"})}),s(fn,{"data-loading":!0,type:"email",value:h?(d==null?void 0:d.email)||"":a,id:"email",label:"Email",variant:"outlined",size:"small",sx:{my:1},disabled:h,fullWidth:!0,required:!0,onChange:I=>{h||i(I.target.value)}}),s(X,{condition:Boolean(g),show:()=>s(fn,{"data-loading":!0,value:l,id:"username",label:"Full name",variant:"outlined",size:"small",sx:{my:1},fullWidth:!0,required:!0,onChange:I=>{c(I.target.value)}})}),s(we,{variant:"body1","data-loading":!0,sx:{mt:2},children:"Set a password for your account."}),s(X,{condition:r&&h,show:s(uO,{})}),s(lO,{onSubmit:_})]})})]})},eue=C("div")(({theme:e})=>({width:"350px",maxWidth:"350px",[e.breakpoints.down("sm")]:{width:"100%"}})),tue=C(we)(({theme:e})=>({fontWeight:"bold",fontSize:e.spacing(2.5),marginBottom:e.spacing(2)})),nue=()=>{const{token:e,loading:t,isValidToken:n}=tO(),{resetPassword:r,loading:o}=rO(),{authDetails:a}=cu(),i=gv(t||o),l=ut(),[c,u]=p.useState(!1),d=(a==null?void 0:a.defaultHidden)===!0;return s("div",{ref:i,children:s(Cv,{children:s(eue,{children:s(X,{condition:!n||d,show:s(cO,{}),elseShow:T(ke,{children:[s(tue,{variant:"h2","data-loading":!0,children:"Reset password"}),s(X,{condition:c,show:s(uO,{})}),s(lO,{onSubmit:async h=>{try{(await r({token:e,password:h})).status===Kp?(l("/login?reset=true"),u(!1)):u(!0)}catch{u(!0)}}})]})})})})})},rue=C("div")(({theme:e})=>({...Yp,...V4,width:"350px",[e.breakpoints.down("sm")]:{width:"100%"}})),oue=C("strong")(({theme:e})=>({display:"block",margin:e.spacing(1,0)})),aue=C(rt)(({theme:e})=>({width:"150px",margin:e.spacing(2,"auto")})),iue=C("h2")(({theme:e})=>({...Jee(e),...H4})),sue=C("form")(({theme:e})=>({...Yp(e),...V4})),lue=C(we)(({theme:e})=>({...H4})),cue=()=>{const[e,t]=p.useState(""),[n,r]=p.useState(!1),[o,a]=p.useState(!1),[i,l]=p.useState(""),c=gv(o);return s(Cv,{children:T(rue,{ref:c,children:[s(iue,{"data-loading":!0,children:"Forgotten password"}),s(X,{condition:n,show:T(Jt,{severity:"success","data-loading":!0,children:[s(Sm,{children:"Attempted to send email"}),"We've attempted to send a reset password email to:",s(oue,{children:i}),"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."]})}),T(sue,{onSubmit:async d=>{d.preventDefault(),a(!0),l(e);const f=jt("auth/reset/password-email");await fetch(f,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({email:e})}),r(!0),a(!1)},children:[s(lue,{variant:"body1","data-loading":!0,children:"Please provide your email address. If it exists in the system we'll send a new reset link."}),s(fn,{variant:"outlined",size:"small",placeholder:"email",type:"email","data-loading":!0,"data-testid":fee,value:e,onChange:d=>{t(d.target.value)}}),s(aue,{variant:"contained",type:"submit","data-loading":!0,color:"primary",disabled:o,children:s(X,{condition:!n,show:s("span",{children:"Submit"}),elseShow:s("span",{children:"Try again"})})}),s(Tv,{text:"Or log in"}),s(rt,{type:"submit","data-loading":!0,variant:"outlined",disabled:o,component:sn,to:"/login",sx:d=>({width:"150px",margin:d.spacing(2,"auto")}),children:"Log in"})]})]})})},dO=e=>{const t=()=>{const r=jt(`api/admin/projects/${e}`);return fetch(r,{method:"GET"}).then(Tn("Project overview")).then(o=>o.json())},n=`api/admin/projects/${e}`;return{fetcher:t,KEY:n}};var hC={},uue=hn;Object.defineProperty(hC,"__esModule",{value:!0});var mC=hC.default=void 0,due=uue(kn()),pue=An,fue=(0,due.default)((0,pue.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");mC=hC.default=fue;const hue=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0}),{setToastData:o,setToastApiError:a}=Ot(),{trackEvent:i}=Oi(),l=p.useCallback(async u=>{const d=`api/admin/projects/${u}/favorites`,f=t(d,{method:"POST"},"addFavoriteProject");try{await e(f.caller,f.id),o({title:"Project added to favorites",type:"success"}),i("favorite",{props:{eventType:"project favorited"}})}catch(h){a(ft(h))}},[t,e]),c=p.useCallback(async u=>{const d=`api/admin/projects/${u}/favorites`,f=t(d,{method:"DELETE"},"removeFavoriteProject");try{await e(f.caller,f.id),o({title:"Project removed from favorites",type:"success"}),i("favorite",{props:{eventType:"project unfavorited"}})}catch(h){a(ft(h))}},[t,e]);return{favorite:l,unfavorite:c,errors:n,loading:r}},mue=({isFavorite:e,size:t="large",...n})=>s(au,{title:e?"Remove from favorites":"Add to favorites",children:s(en,{size:t,"data-loading":!0,...n,children:s(X,{condition:e,show:s(gx,{color:"primary",sx:{fontSize:r=>t==="medium"?r.spacing(2):r.spacing(3)}}),elseShow:s(vx,{sx:{fontSize:r=>t==="medium"?r.spacing(2):r.spacing(3)}})})})}),gC=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0});return{createProject:async v=>{const w=t("api/admin/projects",{method:"POST",body:JSON.stringify(v)});try{return await e(w.caller,w.id)}catch(x){throw x}},validateId:async v=>{const w=t("api/admin/projects/validate",{method:"POST",body:JSON.stringify(v)});try{return await e(w.caller,w.id)}catch(x){throw x}},editProject:async(v,b)=>{const w=`api/admin/projects/${v}`,x=t(w,{method:"PUT",body:JSON.stringify(b)});try{return await e(x.caller,x.id)}catch(E){throw E}},deleteProject:async v=>{const b=`api/admin/projects/${v}`,w=t(b,{method:"DELETE"});try{return await e(w.caller,w.id)}catch(x){throw x}},addEnvironmentToProject:async(v,b)=>{const w=`api/admin/projects/${v}/environments`,x=t(w,{method:"POST",body:JSON.stringify({environment:b})});try{return await e(x.caller,x.id)}catch(E){throw E}},removeEnvironmentFromProject:async(v,b)=>{const w=`api/admin/projects/${v}/environments/${b}`,x=t(w,{method:"DELETE"});try{return await e(x.caller,x.id)}catch(E){throw E}},addAccessToProject:async(v,b,w)=>{const x=`api/admin/projects/${v}/role/${b}/access`,E=t(x,{method:"POST",body:JSON.stringify(w)});try{return await e(E.caller,E.id)}catch(A){throw A}},removeUserFromRole:async(v,b,w)=>{const x=`api/admin/projects/${v}/users/${w}/roles/${b}`,E=t(x,{method:"DELETE"});try{return await e(E.caller,E.id)}catch(A){throw A}},removeGroupFromRole:async(v,b,w)=>{const x=`api/admin/projects/${v}/groups/${w}/roles/${b}`,E=t(x,{method:"DELETE"});try{return await e(E.caller,E.id)}catch(A){throw A}},changeUserRole:(v,b,w)=>{const x=`api/admin/projects/${v}/users/${w}/roles/${b}`,E=t(x,{method:"PUT"});return e(E.caller,E.id)},changeGroupRole:(v,b,w)=>{const x=`api/admin/projects/${v}/groups/${w}/roles/${b}`,E=t(x,{method:"PUT"});return e(E.caller,E.id)},errors:n,loading:r,searchProjectUser:async v=>{const b=`api/admin/user-admin/search?q=${v}`,w=t(b,{method:"GET"});try{return await e(w.caller,w.id)}catch(x){throw x}}}},gue=({open:e,onClose:t,project:n,onSuccess:r})=>{const{deleteProject:o}=gC(),{refetch:a}=Di(),{setToastData:i,setToastApiError:l}=Ot();return s(lr,{open:e,onClick:async u=>{u.preventDefault();try{await o(n),a(),i({title:"Deleted project",type:"success",text:"Successfully deleted project"}),r==null||r()}catch(d){l(ft(d))}t==null||t()},onClose:t,title:"Really delete project"})},vue=e=>p.createElement("svg",{width:88,height:40,viewBox:"0 0 88 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("rect",{width:9,height:39,fill:"#635DC5"}),p.createElement("rect",{x:13,width:10,height:39,fill:"#635DC5"}),p.createElement("rect",{x:27,y:6,width:9,height:33,fill:"#635DC5"}),p.createElement("rect",{x:40,y:12,width:9,height:27,fill:"#635DC5"}),p.createElement("rect",{x:52,y:15,width:9,height:24,fill:"#635DC5"}),p.createElement("rect",{x:65.0752,y:15.2578,width:9.2957,height:23.9101,fill:"#635DC5"}),p.createElement("rect",{x:78.355,y:19.0352,width:9.2957,height:20.1348,fill:"#635DC5"})),yue=C(F$)(({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.tertiary.contrast}`,[e.breakpoints.down("sm")]:{justifyContent:"center"},"&:hover":{transition:"background-color 0.2s ease-in-out",backgroundColor:e.palette.projectCard.hover}})),bue=C("div")(()=>({...pv,width:"100%"})),wue=C("h2")(({theme:e})=>({fontWeight:"normal",fontSize:e.fontSizes.bodySize,lineClamp:2,display:"-webkit-box",boxOrient:"vertical",textOverflow:"ellipsis",overflow:"hidden",alignItems:"flex-start"})),Sue=C(Je)(()=>({...pv,marginRight:"auto"})),xue=C(Ja)(({theme:e})=>({color:e.palette.neutral.main,marginRight:e.spacing(1)})),Cue=C(na)(({theme:e})=>({color:e.palette.neutral.main,marginRight:e.spacing(1)})),Eue=C(vue)(({theme:e})=>({margin:e.spacing(2,"auto"),width:"80px",display:"block"})),Tue=C("div")(({theme:e})=>({display:"flex",justifyContent:"space-between",fontSize:e.fontSizes.smallerBody})),x1=C("div")(()=>({textAlign:"center"})),C1=C("p")(({theme:e})=>({color:e.palette.projectCard.textColor,fontWeight:"bold"})),YA=({name:e,featureCount:t,health:n,memberCount:r,onHover:o,id:a,isFavorite:i=!1})=>{const{hasAccess:l}=p.useContext(Zr),{isOss:c}=Nt(),[u,d]=p.useState(null),[f,h]=p.useState(!1),m=ut(),{favorite:y,unfavorite:g}=hue(),{refetch:v}=Di(),b=E=>{E.preventDefault(),d(E.currentTarget)},w=l(Ene,a)&&a!==Nh;return T(yue,{onMouseEnter:o,children:[T(bue,{"data-loading":!0,children:[T(Sue,{children:[s(mue,{onClick:async E=>{E.preventDefault(),i?await g(a):await y(a),v()},isFavorite:i,size:"medium",sx:{ml:-1}}),s(wue,{children:e})]}),s(mr,{style:{transform:"translateX(7px)"},permission:$b,hidden:c(),projectId:a,"data-loading":!0,onClick:b,tooltipProps:{title:"Options"},children:s(mC,{})}),T(ix,{id:"project-card-menu",open:Boolean(u),anchorEl:u,style:{top:0,left:-100},onClick:E=>{E.preventDefault()},onClose:E=>{E.preventDefault(),d(null)},children:[T(vs,{onClick:E=>{E.preventDefault(),m(jae(a))},children:[s(xue,{}),"Edit project"]}),T(vs,{onClick:E=>{E.preventDefault(),h(!0)},disabled:!w,children:[s(Cue,{}),a===Nh&&!w?"You can't delete the default project":"Delete project"]})]})]}),s("div",{"data-loading":!0,children:s(Eue,{})}),T(Tue,{children:[T(x1,{children:[s(C1,{"data-loading":!0,children:t}),s("p",{"data-loading":!0,children:"toggles"})]}),T(x1,{children:[T(C1,{"data-loading":!0,children:[n,"%"]}),s("p",{"data-loading":!0,children:"health"})]}),s(X,{condition:a!==Nh,show:T(x1,{children:[s(C1,{"data-loading":!0,children:r}),s("p",{"data-loading":!0,children:"members"})]})})]}),s(gue,{project:a,open:f,onClose:()=>{d(null),h(!1)}})]})},kue=[{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:""}],pO=({Icon:e,onClick:t,maxWidth:n,disabled:r=!1,children:o,permission:a,environmentId:i,projectId:l,...c})=>{const u=Tr(`(max-width:${n})`);return s(X,{condition:u,show:s(mr,{disabled:r,onClick:t,permission:a,projectId:l,environmentId:i,"data-loading":!0,...c,children:s(e,{})}),elseShow:s(Do,{onClick:t,permission:a,projectId:l,color:"primary",variant:"contained",disabled:r,environmentId:i,"data-loading":!0,...c,children:o})})},Aue=({className:e,onClick:t,text:n,...r})=>s(Jt,{className:e||"",action:s(rt,{color:"inherit",size:"small",onClick:t,children:"TRY AGAIN"}),severity:"error",...r,children:n}),fO=e=>p.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.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"}),p.createElement("path",{d:"M10.4351 7.3042H7.30469V16.6955H16.696V7.3042H13.5656V13.5651H10.4351V7.3042Z",fill:"white"}),p.createElement("path",{d:"M13.5664 13.5649H16.6968V16.6954H13.5664V13.5649Z",fill:"#817AFE"})),_ue=C(Je,{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.secondaryContainer,borderRadius:t?0:e.shape.borderRadiusLarge,padding:t?e.spacing(1,.5):e.spacing(7.5,1)})),Rue=C(we)(({theme:e})=>({display:"inline-flex",alignItems:"center",fontWeight:e.fontWeight.bold,gap:e.spacing(1)})),XA=C("div",{shouldForwardProp:e=>e!=="tooltip"})(({theme:e,tooltip:t})=>({margin:t?e.spacing(1,0):e.spacing(3,0,5,0)})),E1=C(we)(({theme:e})=>({fontSize:e.fontSizes.smallBody})),JA=C("div")(()=>({display:"flex"})),QA=C(ho)(({theme:e})=>({fontSize:e.fontSizes.smallBody})),Pue={"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"}},Iue="https://www.getunleash.io/plans",$ue=({feature:e,tooltip:t})=>{const{url:n,plan:r,label:o}=Pue[e],a=Oi(),i=()=>{a.trackEvent("upgrade_plan_clicked",{props:{feature:o}})},l=Boolean(n)?s(QA,{href:n,target:"_blank",children:o}):o,c=T(ke,{children:[l," is a feature available for the"," ",s("strong",{children:r})," ",r==="Pro & Enterprise"?"plans":"plan"]}),u=`${Iue}?feature=${e}`;return T(_ue,{tooltip:t,children:[T(Rue,{children:[s(fO,{}),`${r} feature`]}),s(X,{condition:Boolean(t),show:T(ke,{children:[s(XA,{tooltip:!0,children:T(E1,{children:[c,". You need to upgrade your plan if you want to use it"]})}),s(JA,{children:s(QA,{href:u,target:"_blank",onClick:i,children:"Upgrade now"})})]}),elseShow:T(ke,{children:[T(XA,{children:[s(E1,{children:c}),s(E1,{children:"You need to upgrade your plan if you want to use it"})]}),s(JA,{children:s(rt,{variant:"outlined",href:u,target:"_blank",onClick:i,children:"Upgrade now"})})]})})]})},Oue=C("div")(({theme:e})=>({display:"flex",flexWrap:"wrap",[e.breakpoints.down("sm")]:{justifyContent:"center"}})),Lue=C(Aue)(({theme:e})=>({maxWidth:"400px",marginBottom:e.spacing(2)})),Mue=C(sn)(({theme:e})=>({color:"inherit",textDecoration:"none",border:"none",padding:"0",background:"transparent",fontFamily:e.typography.fontFamily,pointer:"cursor"}));function Nue(e,t){return e?{disabled:!0,tooltip:{titleComponent:s($ue,{feature:"adding-new-projects",tooltip:!0}),sx:{maxWidth:"320px"},variant:"custom"},endIcon:s(fO,{})}: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 Due=()=>{const{hasAccess:e}=p.useContext(Zr),t=ut(),{projects:n,loading:r,error:o,refetch:a}=Di(),[i,l]=p.useState({}),{isOss:c}=Nt(),u=Tr(Bc.breakpoints.down("md")),[d,f]=Dp(),[h,m]=p.useState(d.get("search")||"");p.useEffect(()=>{const x={};h&&(x.search=h),f(x,{replace:!0})},[h,f]);const y=p.useMemo(()=>{const x=Hx(h,"i");return(h?n.filter(E=>x.test(E.name)):n).sort((E,A)=>E!=null&&E.favorite&&!(A!=null&&A.favorite)?-1:!(E!=null&&E.favorite)&&(A!=null&&A.favorite)?1:0)},[n,h]),g=x=>{if(i[x])return;const{KEY:E,fetcher:A}=dO(x);Hr(E,A),l(k=>({...k,[x]:!0}))},v=Nue(c(),e(wA)),b=()=>s(Lue,{onClick:a,text:"Error fetching projects"});let w=y.length<n.length?`${y.length} of ${n.length}`:n.length;return T(gr,{isLoading:r,header:s(En,{title:`Projects (${w})`,actions:T(ke,{children:[s(X,{condition:!u,show:T(ke,{children:[s(vo,{initialValue:h,onChange:m}),s(En.Divider,{})]})}),s(pO,{Icon:xa,endIcon:v.endIcon,onClick:()=>t("/projects/create"),maxWidth:"700px",permission:wA,disabled:v.disabled,tooltipProps:v.tooltip,children:"New project"})]}),children:s(X,{condition:u,show:s(vo,{initialValue:h,onChange:m})})}),children:[s(X,{condition:o,show:b()}),s(Oue,{children:s(X,{condition:y.length<1&&!r,show:s(X,{condition:(h==null?void 0:h.length)>0,show:T(Qn,{children:["No projects found matching “",h,"”"]}),elseShow:s(Qn,{children:"No projects available."})}),elseShow:s(X,{condition:r,show:()=>kue.map(x=>s(YA,{"data-loading":!0,onHover:()=>{},name:x.name,id:x.id,memberCount:2,health:95,featureCount:4},x.id)),elseShow:()=>y.map(x=>s(Mue,{to:`/projects/${x.id}`,children:s(YA,{onHover:()=>g(x.id),name:x.name,memberCount:x.memberCount??0,health:x.health,id:x.id,featureCount:x.featureCount,isFavorite:x.favorite})},x.id))})})})]})},Bue=()=>s(Tl,{to:"/archive",replace:!0}),uu=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0});return{validateEnvName:async h=>{const y=t("api/admin/environments/validate",{method:"POST",body:JSON.stringify({name:h})},"validateEnvName");try{return await e(y.caller,y.id,!1)}catch(g){throw g}},createEnvironment:async h=>{const y=t("api/admin/environments",{method:"POST",body:JSON.stringify(h)},"createEnvironment");try{return await e(y.caller,y.id)}catch(g){throw g}},errors:n,loading:r,deleteEnvironment:async h=>{const m=`api/admin/environments/${h}`,y=t(m,{method:"DELETE"},"deleteEnvironment");try{return await e(y.caller,y.id)}catch(g){throw g}},updateEnvironment:async(h,m)=>{const y=`api/admin/environments/update/${h}`,g=t(y,{method:"PUT",body:JSON.stringify(m)},"updateEnvironment");try{return await e(g.caller,g.id)}catch(v){throw v}},cloneEnvironment:async(h,m)=>{const y=`api/admin/environments/${h}/clone`,g=t(y,{method:"POST",body:JSON.stringify(m)},"cloneEnvironment");return await e(g.caller,g.id)},changeSortOrder:async h=>{const y=t("api/admin/environments/sort-order",{method:"PUT",body:JSON.stringify(h)},"changeSortOrder");try{return await e(y.caller,y.id)}catch(g){throw g}},toggleEnvironmentOff:async h=>{const m=`api/admin/environments/${h}/off`,y=t(m,{method:"POST"},"toggleEnvironmentOff");try{return await e(y.caller,y.id)}catch(g){throw g}},toggleEnvironmentOn:async h=>{const m=`api/admin/environments/${h}/on`,y=t(m,{method:"POST"},"toggleEnvironmentOn");try{return await e(y.caller,y.id)}catch(g){throw g}}}},Fue=e=>e.reduce((t,n,r)=>(t[n.name]=r+1,t),{}),hO=(e="",t="development")=>{const[n,r]=p.useState(e),[o,a]=p.useState(t),[i,l]=p.useState({});p.useEffect(()=>{r(e)},[e]),p.useEffect(()=>{a(t)},[t]);const{validateEnvName:c}=uu();return{name:n,setName:r,type:o,setType:a,getEnvPayload:()=>({name:n,type:o}),validateEnvironmentName:async()=>{if(n.length===0)return l(h=>({...h,name:"Environment name can not be empty"})),!1;try{return await c(n),!0}catch(h){return l(m=>({...m,name:ft(h)})),!1}},clearErrors:()=>{l({})},errors:i}},zue=Li()(e=>({helperText:{position:"absolute",bottom:"-1rem",whiteSpace:"nowrap",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis"}})),jue=C("div")({position:"relative"}),_r=({label:e,placeholder:t,error:n,errorText:r,style:o,className:a,value:i,onChange:l,...c})=>{const{classes:u}=zue();return s(jue,{"data-loading":!0,children:s(fn,{size:"small",variant:"outlined",label:e,placeholder:t,error:n,helperText:r,style:o,className:a||"",value:i,onChange:l,FormHelperTextProps:{["data-testid"]:F4,title:r,classes:{root:u.helperText}},...c})})},Uue=C(lx)({flexDirection:"row"}),ZA=C("div")({display:"flex",flexDirection:"column"}),mO=({onChange:e,value:t})=>s(Ri,{component:"fieldset",children:T(Uue,{"data-loading":!0,value:t,onChange:e,children:[T(ZA,{children:[s(Cr,{value:"development",label:"Development",control:s(nl,{})}),s(Cr,{value:"test",label:"Test",control:s(nl,{})})]}),T(ZA,{children:[s(Cr,{value:"preproduction",label:"Pre production",control:s(nl,{})}),s(Cr,{value:"production",label:"Production",control:s(nl,{})})]})]})}),Mm={FIX:"fix",VARIABLE:"variable"},T1=e=>t=>{if(t.flag){const n=e.flags;return Boolean(n[t.flag])}return t.configFlag?Boolean(e[t.configFlag]):!0},Wue=()=>{window.scrollTo(0,0)},ws=e=>e&&e.trim?e.trim():e,Hue=e=>{const t=new Date(e);return yp(t,"yyyy-MM-dd")+"T"+yp(t,"HH:mm")},gO=e=>{const t=new Date(e);if(Wx(t))return t},xPe=e=>e/10;function CPe(e,t){if(e.length===0)return[];const n=e.reduce(({remainingPercentage:i,variableVariantCount:l},c)=>(c.weight&&c.weightType===Mm.FIX?i-=Number(c.weight):l+=1,{remainingPercentage:i,variableVariantCount:l}),{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 a=parseInt(String(r/o));return e.map(i=>(i.weightType!==Mm.FIX&&(i.weight=a),i))}function EPe(e,t){if(e.length===0)return[];const{remainingPercentage:n,variableVariantCount:r}=e.reduce(({remainingPercentage:a,variableVariantCount:i},l)=>(l.weight&&l.weightType===Mm.FIX?a-=Number(l.weight):i+=1,{remainingPercentage:a,variableVariantCount:i}),{remainingPercentage:t,variableVariantCount:0}),o=parseInt(String(n/r));return e.map(a=>(a.weightType!==Mm.FIX&&(a.weight=o),a))}const Vue=C("form")({display:"flex",flexDirection:"column",height:"100%"}),Gue=C("h3")({fontWeight:"normal",marginTop:"0"}),que=C("div")({maxWidth:"440px"}),e_=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),Kue=C(_r)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),Yue=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end"})),Xue=C(rt)(({theme:e})=>({marginLeft:e.spacing(3)})),vO=({children:e,handleSubmit:t,handleCancel:n,name:r,type:o,setName:a,setType:i,validateEnvironmentName:l,errors:c,mode:u,clearErrors:d})=>T(Vue,{onSubmit:t,children:[s(Gue,{children:"Environment information"}),T(que,{children:[s(e_,{children:"What is your environment name? (Can't be changed later)"}),s(Kue,{label:"Environment name",value:r,onChange:f=>a(ws(f.target.value)),error:Boolean(c.name),errorText:c.name,onFocus:()=>d(),onBlur:l,disabled:u==="Edit",autoFocus:!0}),s(e_,{children:"What type of environment do you want to create?"}),s(mO,{onChange:f=>i(f.currentTarget.value),value:o})]}),T(Yue,{children:[e,s(Xue,{onClick:n,children:"Cancel"})]})]}),Jue=C("div")(({theme:e})=>({backgroundColor:e.palette.codebox,padding:e.spacing(2),borderRadius:e.shape.borderRadiusMedium,position:"relative",maxHeight:"500px",overflow:"auto"})),Que=C("pre")(({theme:e})=>({margin:0,wordBreak:"break-all",whiteSpace:"pre-wrap",color:e.palette.formSidebarTextColor,fontSize:e.fontSizes.smallBody})),Zue=({text:e})=>s(Jue,{children:s(Que,{children:e})}),ede="/static/unleashLogoIconDarkAlpha-de056a82.gif",tde=C("div")(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",backgroundColor:e.palette.background.paper})),nde=C("img")(({theme:e})=>({width:"100px",height:"100px"})),Nm=()=>s(tde,{role:"alert","aria-label":"Loading",children:s(nde,{src:qs(ede),alt:""})});var rde=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()}},ode=rde,t_={"text/plain":"Text","text/html":"Url",default:"Text"},ade="Copy to clipboard: #{key}, Enter";function ide(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function sde(e,t){var n,r,o,a,i,l,c=!1;t||(t={}),n=t.debug||!1;try{o=ode(),a=document.createRange(),i=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.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 f=t_[t.format]||t_.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(l),a.selectNodeContents(l),i.addRange(a);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(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=ide("message"in t?t.message:ade),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(a):i.removeAllRanges()),l&&document.body.removeChild(l),o()}return c}var yO=sde;const lde=e=>p.createElement("svg",{width:48,height:50,viewBox:"0 0 48 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.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"})),bO="27.5rem",cde=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:"hidden",[e.breakpoints.down(1100)]:{flexDirection:"column",minHeight:0}})),ude=C("div")(({theme:e})=>ete),dde=C("div")(({theme:e})=>({backgroundColor:e.palette.formBackground,display:"flex",flexDirection:"column",padding:e.spacing(6),flexGrow:1,[e.breakpoints.down("lg")]:{padding:e.spacing(4)},[e.breakpoints.down(1100)]:{width:"100%"},[e.breakpoints.down(500)]:{padding:e.spacing(4,2)}})),pde=C("h1")(({theme:e})=>({marginBottom:e.fontSizes.mainHeader,fontWeight:"normal"})),fde=C(fo)(({theme:e})=>({opacity:.3,marginBottom:e.spacing(.5)})),hde=C("h2")(({theme:e})=>({color:e.palette.formSidebarTextColor,marginBottom:e.spacing(2),display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:e.fontWeight.bold,fontSize:e.fontSizes.bodySize})),mde=C(A4)(({theme:e})=>({fill:e.palette.text.tertiaryContrast})),gde=C("div")(()=>({zIndex:1,position:"absolute",right:-3,top:-3})),vde=C(lde)(()=>({width:"75px",height:"75px"})),yde=C(en)(()=>({position:"absolute",zIndex:400,right:0})),bde=C(RZ)(({theme:e})=>({fill:e.palette.text.tertiaryContrast})),wde=C("aside")(({theme:e})=>({backgroundColor:e.palette.formSidebar,padding:e.spacing(4),flexGrow:0,flexShrink:0,width:bO,[e.breakpoints.down(1100)]:{width:"100%",color:"red"},[e.breakpoints.down(500)]:{padding:e.spacing(4,2)}})),Sde=C("p")(({theme:e})=>({color:e.palette.formSidebarTextColor,zIndex:1,position:"relative"})),xde=C("div")(({theme:e})=>({margin:e.spacing(3,0),display:"flex",alignItems:"center"})),Cde=C($x)(({theme:e})=>({marginRight:e.spacing(1),color:e.palette.text.tertiaryContrast})),Ede=C("a")(({theme:e})=>({color:e.palette.text.tertiaryContrast,display:"block","&:hover":{textDecoration:"none"}})),Nr=({title:e,description:t,children:n,documentationLink:r,documentationLinkLabel:o,loading:a,modal:i,formatApiCode:l})=>{const{setToastData:c}=Ot(),u=Tr(`(max-width:${1099}px)`);return T(cde,{modal:i,children:[s(X,{condition:u,show:s(ude,{children:s(Tde,{description:t,documentationLink:r,documentationLinkLabel:o})})}),T(dde,{children:[s(X,{condition:a||!1,show:s(Nm,{}),elseShow:T(ke,{children:[s(pde,{children:e}),n]})})," "]}),s(X,{condition:!u,show:T(wO,{description:t,documentationLink:r,documentationLinkLabel:o,children:[s(fde,{}),T(hde,{children:["API Command"," ",s(_t,{title:"Copy command",arrow:!0,children:s(en,{onClick:()=>{yO(l())?c({title:"Successfully copied the command",text:"The command should now be automatically copied to your clipboard",autoHideDuration:6e3,type:"success",show:!0}):c({title:"Could not copy the command",text:"Sorry, but we could not copy the command.",autoHideDuration:6e3,type:"error",show:!0})},size:"large",children:s(mde,{})})})]}),s(Zue,{text:l()})]})})]})},Tde=({description:e,documentationLink:t,documentationLinkLabel:n})=>{const[r,o]=p.useState(!1);return T(ke,{children:[s(gde,{children:s(vde,{})}),s(_t,{title:"Toggle help",arrow:!0,children:s(yde,{onClick:()=>o(a=>!a),size:"large",children:s(bde,{})})}),s(O$,{in:r,timeout:500,children:s(wO,{description:e,documentationLink:t,documentationLinkLabel:n})})]})},wO=({description:e,children:t,documentationLink:n,documentationLinkLabel:r="Learn more"})=>T(wde,{children:[s(Sde,{children:e}),T(xde,{children:[s(Cde,{}),s(Ede,{href:n,rel:"noopener noreferrer",target:"_blank",children:r})]}),t]}),du=({name:e,...t})=>T(Do,{type:"submit",...t,children:["Create ",e]}),vC=(e={})=>{const t=()=>{const c=jt("api/admin/permissions");return fetch(c,{method:"GET"}).then(Tn("Project permissions")).then(u=>u.json())},n="api/admin/permissions",{data:r,error:o}=vn(n,t,e),[a,i]=p.useState(!o&&!r),l=()=>{Hr(n)};return p.useEffect(()=>{i(!o&&!r)},[r,o]),{permissions:(r==null?void 0:r.permissions)||{project:[],environments:[]},error:o,loading:a,refetch:l}},Bo=-1,Dm=50,kde=()=>{const{setToastApiError:e,setToastData:t}=Ot(),{uiConfig:n}=Nt(),r=ut(),{environments:o}=iu(),a=o.length<Dm,{createEnvironment:i,loading:l}=uu(),{refetch:c}=vC(),{name:u,setName:d,type:f,setType:h,getEnvPayload:m,validateEnvironmentName:y,clearErrors:g,errors:v}=hO(),b=async E=>{if(E.preventDefault(),g(),await y()){const k=m();try{await i(k),c(),t({title:"Environment created",type:"success",confetti:!0}),r("/environments")}catch(_){e(ft(_))}}},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(m(),void 0,2)}'`,x=()=>{r(Bo)};return s(X,{condition:a,show:s(Nr,{loading:l,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:s(vO,{errors:v,handleSubmit:b,handleCancel:x,validateEnvironmentName:y,name:u,type:f,setName:d,setType:h,mode:"Create",clearErrors:g,children:s(du,{name:"environment",permission:Ca})})}),elseShow:s(ke,{children:T(gr,{header:s(En,{title:"Create environment"}),children:[s(Jt,{severity:"error",children:T("p",{children:["Currently Unleash does not support more than"," ",Dm," environments. If you need more please reach out."]})}),s("br",{}),s(rt,{onClick:x,variant:"contained",color:"primary",children:"Go back"})]})})})},Al=({...e})=>s(Do,{type:"submit",...e,children:"Save"}),Ade={name:"",type:"",createdAt:"",sortOrder:0,enabled:!1,protected:!1},_de=(e,t={})=>{const n=async()=>{const u=jt(`api/admin/environments/${e}`);return fetch(u,{method:"GET"}).then(Tn("Environment data")).then(d=>d.json())},r=`api/admin/environments/${e}`,{data:o,error:a}=vn(r,n,{...t}),[i,l]=p.useState(!a&&!o),c=()=>{Hr(r)};return p.useEffect(()=>{l(!a&&!o)},[o,a]),{environment:o||Ade,error:a,loading:i,refetch:c,FEATURE_CACHE_KEY:r}},Rde=()=>{const{uiConfig:e}=Nt(),{setToastData:t,setToastApiError:n}=Ot(),r=cr("id"),{environment:o}=_de(r),{updateEnvironment:a}=uu(),i=ut(),{name:l,type:c,setName:u,setType:d,errors:f,clearErrors:h}=hO(o.name,o.type),{refetch:m}=vC(),y=()=>({type:c,sortOrder:o.sortOrder});return s(Nr,{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(y(),void 0,2)}'`,children:s(vO,{handleSubmit:async w=>{w.preventDefault();try{await a(r,y()),m(),i("/environments"),t({type:"success",title:"Successfully updated environment."})}catch(x){n(ft(x))}},handleCancel:()=>{i(Bo)},name:l,type:c,setName:u,setType:d,mode:"Edit",errors:f,clearErrors:h,children:s(Al,{permission:Ca})})})},kv=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0}),o="api/admin/context";return{createContext:async u=>{const f=t(o,{method:"POST",body:JSON.stringify(u)});try{return await e(f.caller,f.id)}catch(h){throw h}},validateContextName:async u=>{const d=`${o}/validate`,f=t(d,{method:"POST",body:JSON.stringify({name:u})});try{return await e(f.caller,f.id)}catch(h){throw h}},updateContext:async u=>{const d=`${o}/${u.name}`,f=t(d,{method:"PUT",body:JSON.stringify(u)});try{return await e(f.caller,f.id)}catch(h){throw h}},removeContext:async u=>{const d=`${o}/${u}`,f=t(d,{method:"DELETE"});try{return await e(f.caller,f.id)}catch(h){throw h}},errors:n,loading:r}},Pde=(e,t={})=>{const n=async()=>{const u=jt(`api/admin/context/${e}`);return fetch(u,{method:"GET"}).then(Tn("Context data")).then(d=>d.json())},r=`api/admin/context/${e}`,{data:o,error:a}=vn(r,n,{...t}),[i,l]=p.useState(!a&&!o),c=()=>{Hr(r)};return p.useEffect(()=>{l(!a&&!o)},[o,a]),{context:o||{name:"",description:"",legalValues:[],stickiness:!1},error:a,loading:i,refetch:c,FEATURE_CACHE_KEY:r}},Ide=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.secondaryContainer,borderRadius:e.shape.borderRadius,wordBreak:"break-word"})),$de=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallBody})),Ode=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallerBody,color:e.palette.neutral.main})),Lde=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}})),Mde=({label:e,description:t,onRemove:n})=>T(Ide,{children:[T("div",{children:[s($de,{children:e}),s(X,{condition:Boolean(t),show:()=>s(Ode,{children:t})})]}),s(Lde,{onClick:n,children:s(bZ,{titleAccess:"Remove"})})]}),Nde=C("ul")(({theme:e})=>({listStyleType:"none",display:"flex",flexWrap:"wrap",gap:e.spacing(1),padding:0,margin:0,marginBottom:"1rem !important"})),Dde=Nde,Bde="Enter",Fde=C("form")({display:"flex",flexDirection:"column",height:"100%"}),zde=C("div")({maxWidth:"470px"}),k1=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),n_=e=>({width:"100%",marginBottom:e.spacing(2)}),jde=C("div")(({theme:e})=>({display:"grid",gridTemplateColumns:"1fr auto",gap:e.spacing(1),marginBottom:e.spacing(2)})),Ude=C("p")(({theme:e})=>({marginBottom:e.spacing(.5)})),Wde=C("div")({display:"flex",alignItems:"center",marginLeft:"-9px"}),Hde=C("div")({marginTop:"auto",display:"flex",justifyContent:"flex-end"}),Vde=C(rt)(({theme:e})=>({marginLeft:e.spacing(3)})),SO=({children:e,handleSubmit:t,onCancel:n,contextName:r,contextDesc:o,legalValues:a,stickiness:i,setContextName:l,setContextDesc:c,setLegalValues:u,setStickiness:d,errors:f,mode:h,validateContext:m,setErrors:y,clearErrors:g})=>{const[v,b]=p.useState(""),[w,x]=p.useState(""),[E,A]=p.useState(!1),k=w.trim()&&!v.trim(),_=a.some(F=>F.value.trim()===v.trim());p.useEffect(()=>{y(F=>({...F,tag:k?"Value cannot be empty":_?"Duplicate value":void 0}))},[y,k,_]);const O=F=>{F.preventDefault(),t(F)},L=F=>{F.key===Bde&&(F.preventDefault(),E?$():t(F))},I=(F,U)=>F.value.toLowerCase().localeCompare(U.value.toLowerCase()),$=()=>{const F={value:v.trim(),description:w.trim()};F.value&&!_&&(b(""),x(""),u(U=>[...U,F].sort(I)))},D=F=>{u(U=>U.filter(Y=>Y.value!==F.value))};return T(Fde,{onSubmit:O,children:[T(zde,{children:[s(k1,{children:"What is your context name?"}),s(_r,{sx:n_,label:"Context name",value:r,disabled:h==="Edit",onChange:F=>l(F.target.value.trim()),error:Boolean(f.name),errorText:f.name,onFocus:()=>g("name"),onBlur:m,autoFocus:!0}),s(k1,{children:"What is this context for?"}),s(fn,{sx:n_,label:"Context description (optional)",variant:"outlined",multiline:!0,maxRows:4,value:o,size:"small",onChange:F=>c(F.target.value)}),s(k1,{children:"Which values do you want to allow?"}),T(jde,{children:[s(fn,{label:"Legal value (optional)",name:"value",sx:{gridColumn:1},value:v,error:Boolean(f.tag),helperText:f.tag,variant:"outlined",size:"small",onChange:F=>b(F.target.value),onKeyPress:F=>L(F),onBlur:()=>A(!1),onFocus:()=>A(!0),inputProps:{maxLength:100}}),s(fn,{label:"Value description (optional)",sx:{gridColumn:1},value:w,variant:"outlined",size:"small",onChange:F=>x(F.target.value),onKeyPress:F=>L(F),onBlur:()=>A(!1),onFocus:()=>A(!0),inputProps:{maxLength:100}}),s(rt,{sx:{gridColumn:2},startIcon:s(xa,{}),onClick:$,variant:"outlined",color:"primary",disabled:!v.trim()||_,children:"Add"})]}),s(Dde,{children:a.map(F=>s(Mde,{label:F.value,description:F.description,onRemove:()=>D(F)},F.value))}),s(Ude,{children:"Custom stickiness"}),T("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!"," ",s("a",{href:"https://docs.getunleash.io/reference/stickiness",target:"_blank",rel:"noreferrer",children:"Read more"})]}),T(Wde,{children:[s(Pi,{checked:i,value:i,onChange:()=>d(!i)}),s(we,{children:i?"On":"Off"})]})]}),T(Hde,{children:[e,s(Vde,{onClick:n,children:"Cancel"})]})]})},xO=(e="",t="",n=[],r=!1)=>{const[o,a]=p.useState(e),[i,l]=p.useState(t),[c,u]=p.useState(n),[d,f]=p.useState(r),[h,m]=p.useState({}),{validateContextName:y}=kv();return p.useEffect(()=>{a(e)},[e]),p.useEffect(()=>{l(t)},[t]),p.useEffect(()=>{u(n)},[n.length]),p.useEffect(()=>{f(r)},[r]),{contextName:o,contextDesc:i,legalValues:c,stickiness:d,setContextName:a,setContextDesc:l,setLegalValues:u,setStickiness:f,getContextPayload:()=>({name:o,description:i,legalValues:c,stickiness:d}),validateContext:async()=>{if(o.length===0)return m(w=>({...w,name:"Name can not be empty."})),!1;try{return await y(o),!0}catch(w){return m(x=>({...x,name:ft(w)})),!1}},setErrors:m,clearErrors:w=>{m(w?x=>({...x,[w]:void 0}):{})},errors:h}},Gde=()=>{p.useEffect(()=>{Wue()},[]);const{uiConfig:e}=Nt(),{setToastData:t,setToastApiError:n}=Ot(),r=cr("name"),{context:o,refetch:a}=Pde(r),{updateContext:i,loading:l}=kv(),c=ut(),{contextName:u,contextDesc:d,legalValues:f,stickiness:h,setContextName:m,setContextDesc:y,setLegalValues:g,setStickiness:v,getContextPayload:b,clearErrors:w,setErrors:x,errors:E}=xO(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 s(Nr,{loading:l,title:"Edit context",description:`Context fields are a basic building block used in Unleash to control roll-out.
292
- 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}' \\
293
- --header 'Authorization: INSERT_API_KEY' \\
294
- --header 'Content-Type: application/json' \\
295
- --data-raw '${JSON.stringify(b(),void 0,2)}'`,children:s(SO,{errors:E,handleSubmit:async O=>{O.preventDefault();const L=b();try{await i(L),a(),c("/context"),t({title:"Context information updated",type:"success"})}catch(I){n(ft(I))}},onCancel:()=>{c(Bo)},contextName:u,setContextName:m,contextDesc:d,setContextDesc:y,legalValues:f,setLegalValues:g,stickiness:h,setStickiness:v,mode:"Edit",setErrors:x,clearErrors:w,children:s(Al,{permission:l3})})})},CO=(e="",t="")=>{const[n,r]=p.useState(e),[o,a]=p.useState(t),[i,l]=p.useState({}),{validateTagName:c}=wv();return p.useEffect(()=>{r(e)},[e]),p.useEffect(()=>{a(t)},[t]),{tagName:n,tagDesc:o,setTagName:r,setTagDesc:a,getTagPayload:()=>({name:n,description:o}),clearErrors:()=>{l({})},validateNameUniqueness:async()=>{if(n.length===0)return l(h=>({...h,name:"Name can not be empty."})),!1;if(n.length<2)return l(h=>({...h,name:"Tag name length must be at least 2 characters long"})),!1;try{return await c(n),!0}catch(h){return l(m=>({...m,name:ft(h)})),!1}},errors:i}},qde="Edit",TPe="Create",Kde=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%"})),Yde=C("div")(({theme:e})=>({maxWidth:"400px"})),r_=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),Xde=C(_r)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),Jde=C(fn)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),Qde=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end"})),Zde=C(rt)(({theme:e})=>({marginLeft:e.spacing(3)})),EO=({children:e,handleSubmit:t,handleCancel:n,tagName:r,tagDesc:o,setTagName:a,setTagDesc:i,errors:l,mode:c,validateNameUniqueness:u,clearErrors:d})=>T(Kde,{onSubmit:t,children:[T(Yde,{children:[s(r_,{children:"What is your tag name?"}),s(Xde,{label:"Tag name",value:r,onChange:f=>a(ws(f.target.value)),error:Boolean(l.name),errorText:l.name,onFocus:()=>d(),disabled:c===qde,onBlur:u,autoFocus:!0}),s(r_,{children:"What is this tag for?"}),s(Jde,{label:"Tag description",variant:"outlined",multiline:!0,maxRows:4,value:o,onChange:f=>i(f.target.value)})]}),T(Qde,{children:[e,s(Zde,{onClick:n,children:"Cancel"})]})]}),epe=(e,t={})=>{const n=async()=>{const u=jt(`api/admin/tag-types/${e}`);return fetch(u,{method:"GET"}).then(Tn("Tag data")).then(d=>d.json())},r=`api/admin/tag-types/${e}`,{data:o,error:a}=vn(r,n,{...t}),[i,l]=p.useState(!a&&!o),c=()=>{Hr(r)};return p.useEffect(()=>{l(!a&&!o)},[o,a]),{tagType:(o==null?void 0:o.tagType)||{name:"",description:""},error:a,loading:i,refetch:c,FEATURE_CACHE_KEY:r}},tpe=()=>{const{setToastData:e,setToastApiError:t}=Ot(),{uiConfig:n}=Nt(),r=ut(),o=cr("name"),{tagType:a}=epe(o),{tagName:i,tagDesc:l,setTagName:c,setTagDesc:u,getTagPayload:d,errors:f,clearErrors:h}=CO(a==null?void 0:a.name,a==null?void 0:a.description),{updateTagType:m,loading:y}=wv();return s(Nr,{loading:y,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}' \\
296
- --header 'Authorization: INSERT_API_KEY' \\
297
- --header 'Content-Type: application/json' \\
298
- --data-raw '${JSON.stringify(d(),void 0,2)}'`,children:s(EO,{errors:f,handleSubmit:async w=>{w.preventDefault(),h();const x=d();try{await m(i,x),r("/tag-types"),e({title:"Tag type updated",type:"success"})}catch(E){t(ft(E))}},handleCancel:()=>{r(Bo)},tagName:i,setTagName:c,tagDesc:l,setTagDesc:u,mode:"Edit",clearErrors:h,children:s(Al,{permission:vp})})})},npe=()=>{const{setToastData:e,setToastApiError:t}=Ot(),{uiConfig:n}=Nt(),r=ut(),{tagName:o,tagDesc:a,setTagName:i,setTagDesc:l,getTagPayload:c,validateNameUniqueness:u,errors:d,clearErrors:f}=CO(),{createTag:h,loading:m}=wv();return s(Nr,{loading:m,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' \\
299
- --header 'Authorization: INSERT_API_KEY' \\
300
- --header 'Content-Type: application/json' \\
301
- --data-raw '${JSON.stringify(c(),void 0,2)}'`,children:s(EO,{errors:d,handleSubmit:async b=>{if(b.preventDefault(),f(),await u()){const x=c();try{await h(x),r("/tag-types"),e({title:"Tag type created",confetti:!0,type:"success"})}catch(E){t(ft(E))}}},handleCancel:()=>{r(Bo)},tagName:o,setTagName:i,tagDesc:a,setTagDesc:l,mode:"Create",clearErrors:f,validateNameUniqueness:u,children:s(du,{name:"type",permission:vp})})})},rpe=C("form")(()=>({display:"flex",flexDirection:"column",height:"100%"})),ope=C("div")(()=>({maxWidth:"400px"})),A1=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),o_=C(_r)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),ape=C(fn)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),ipe=C("div")(()=>({marginTop:"auto",display:"flex",justifyContent:"flex-end"})),spe=C(rt)(({theme:e})=>({marginLeft:e.spacing(3)})),lpe=({children:e,handleSubmit:t,handleCancel:n,projectId:r,projectName:o,projectDesc:a,setProjectId:i,setProjectName:l,setProjectDesc:c,errors:u,mode:d,validateProjectId:f,clearErrors:h})=>T(rpe,{onSubmit:t,children:[T(ope,{children:[s(A1,{children:"What is your project Id?"}),s(o_,{label:"Project Id",value:r,onChange:m=>i(ws(m.target.value)),error:Boolean(u.id),errorText:u.id,onFocus:()=>h(),onBlur:f,disabled:d==="Edit",autoFocus:!0,required:!0}),s(A1,{children:"What is your project name?"}),s(o_,{label:"Project name",value:o,onChange:m=>l(m.target.value),error:Boolean(u.name),errorText:u.name,onFocus:()=>h(),required:!0}),s(A1,{children:"What is your project description?"}),s(ape,{label:"Project description",variant:"outlined",multiline:!0,maxRows:4,value:a,onChange:m=>c(m.target.value)})]}),T(ipe,{children:[e,s(spe,{onClick:n,children:"Cancel"})]})]}),cpe=(e="",t="",n="")=>{const[r,o]=p.useState(e),[a,i]=p.useState(t),[l,c]=p.useState(n),[u,d]=p.useState({}),{validateId:f}=gC();p.useEffect(()=>{o(e)},[e]),p.useEffect(()=>{i(t)},[t]),p.useEffect(()=>{c(n)},[n]);const h=()=>({id:r,name:a,description:l});return{projectId:r,projectName:a,projectDesc:l,setProjectId:o,setProjectName:i,setProjectDesc:c,getProjectPayload:h,validateName:()=>a.length===0?(d(v=>({...v,name:"Name can not be empty."})),!1):!0,validateProjectId:async()=>{if(r.length===0)return d(v=>({...v,id:"Id can not be empty."})),!1;try{return await f(h()),!0}catch(v){return d(b=>({...b,id:ft(v)})),!1}},clearErrors:()=>{d({})},errors:u}},upe={features:[],environments:[],name:"",health:0,members:0,version:"1",description:"Default",favorite:!1,stats:{archivedCurrentWindow:0,archivedPastWindow:0,avgTimeToProdCurrentWindow:0,avgTimeToProdPastWindow:0,createdCurrentWindow:0,createdPastWindow:0,projectActivityCurrentWindow:0,projectActivityPastWindow:0,projectMembersAddedCurrentWindow:0}},jb=(e,t={})=>{const{KEY:n,fetcher:r}=dO(e),{data:o,error:a,mutate:i}=vn(n,r,t),l=p.useCallback(()=>{i()},[i]);return{project:o||upe,loading:!a&&!o,error:a,refetch:l}},kPe=e=>jb(e).project.name||e,dpe=()=>{const{uiConfig:e}=Nt(),{setToastData:t,setToastApiError:n}=Ot(),{hasAccess:r}=p.useContext(Zr),o=cr("projectId"),{project:a}=jb(o),i=ut(),{projectId:l,projectName:c,projectDesc:u,setProjectId:d,setProjectName:f,setProjectDesc:h,getProjectPayload:m,clearErrors:y,validateProjectId:g,validateName:v,errors:b}=cpe(o,a.name,a.description),w=()=>`curl --location --request PUT '${e.unleashUrl}/api/admin/projects/${o}' \\
302
- --header 'Authorization: INSERT_API_KEY' \\
303
- --header 'Content-Type: application/json' \\
304
- --data-raw '${JSON.stringify(m(),void 0,2)}'`,{refetch:x}=jb(o),{editProject:E,loading:A}=gC(),k=async L=>{L.preventDefault();const I=m();if(v())try{await E(o,I),x(),i(`/projects/${o}`),t({title:"Project information updated",type:"success"})}catch(D){n(ft(D))}},_=()=>{i(Bo)},O=!r($b,l)&&s(Jt,{severity:"error",sx:{mb:4},children:"You do not have the required permissions to edit this project."});return T(Nr,{loading:A,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:w,children:[O,s(lpe,{errors:b,handleSubmit:k,handleCancel:_,projectId:l,setProjectId:d,projectName:c,setProjectName:f,projectDesc:u,setProjectDesc:h,mode:"Edit",clearErrors:y,validateProjectId:g,children:s(Al,{permission:$b,projectId:l})})]})},ppe=({editable:e,value:t,id:n,label:r,onChange:o,...a})=>{const{featureTypes:i}=Qx(),l=i.map(c=>({key:c.id,label:c.name,title:c.description}));return l.some(c=>c.key===t)||l.push({key:t,label:t}),s(ke,{children:s(su,{disabled:!e,options:l,value:t,onChange:o,label:r,id:n,...a})})},fpe=(e=[],t)=>{let n=!1;const r=e.reduce((o,a)=>(a.permission===Ca&&(n=!0),a.project&&a.permission===t&&(o[a.project]=t),o),{});return o=>n||Boolean(r[o])},hpe=({enabled:e,value:t,onChange:n,filter:r,...o})=>{const{projects:a}=Di();if(!e)return null;const i=c=>({key:c.id,label:c.name,title:c.description});let l;return r?l=a.filter(c=>r(c.id)).map(i):l=a.map(i),t&&!l.find(c=>c.key===t)&&l.push({key:t,label:t}),s(su,{label:"Project",options:l,value:t,onChange:n,...o})},mpe=(e,t)=>{var r,o;let n=e.data&&"permissions"in e.data?e.data.permissions:void 0;return n&&((r=t==null?void 0:t.flags)!=null&&r.maintenance)&&((o=t==null?void 0:t.flags)!=null&&o.maintenanceMode)&&(n=n.filter(a=>a.permission==="ADMIN")),n},yC=()=>{const e=Jp(),{uiConfig:t}=Nt();return{permissions:mpe(e,t),refetchPermissions:e.refetchAuth,loading:e.loading,error:e.error}},gpe=C("form")({display:"flex",flexDirection:"column",height:"100%"}),vpe=C("div")({maxWidth:"400px"}),nh=C("p")(({theme:e})=>({marginBottom:e.spacing(1),color:e.palette.text.secondary})),a_=C(_r)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),ype=C(Ri)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),i_=e=>({marginBottom:e.spacing(2),minWidth:"400px",[e.breakpoints.down("sm")]:{minWidth:"379px"}}),bpe=C("p")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary,top:"-13px",position:"relative"})),wpe=C("div")({marginTop:"auto",display:"flex",justifyContent:"flex-end"}),Spe=C("div")(({theme:e})=>({display:"flex",alignItems:"center",marginTop:e.spacing(1)})),xpe=C(rt)(({theme:e})=>({marginLeft:e.spacing(3)})),Cpe=e=>({margin:e.spacing(1,0)}),TO=({children:e,type:t,name:n,description:r,project:o,setType:a,setName:i,setDescription:l,setProject:c,validateToggleName:u,setImpressionData:d,impressionData:f,handleSubmit:h,handleCancel:m,errors:y,mode:g,clearErrors:v})=>{const{featureTypes:b}=Qx(),w=ut(),{permissions:x}=yC(),E=g!=="Edit",A=()=>{var k;return(k=b.find(_=>_.id===t))==null?void 0:k.description};return T(gpe,{onSubmit:h,children:[T(vpe,{children:[s(nh,{children:"What would you like to call your toggle?"}),s(a_,{autoFocus:!0,disabled:g==="Edit",label:"Name",id:"feature-toggle-name",error:Boolean(y.name),errorText:y.name,onFocus:()=>v(),value:n,onChange:k=>i(ws(k.target.value)),"data-testid":tee,onBlur:u}),s(nh,{children:"What kind of feature toggle do you want?"}),s(ppe,{sx:i_,value:t,onChange:a,label:"Toggle type",id:"feature-type-select",editable:!0,"data-testid":nee,IconComponent:Rb}),s(bpe,{children:A()}),s(X,{condition:E,show:s(nh,{children:"In which project do you want to save the toggle?"})}),s(hpe,{value:o,onChange:k=>{c(k),w(`/projects/${k}/create-toggle`,{replace:!0})},enabled:E,filter:fpe(x,gp),IconComponent:Rb,sx:i_}),s(nh,{children:"How would you describe your feature toggle?"}),s(a_,{multiline:!0,rows:4,label:"Description",placeholder:"A short description of the feature toggle",value:r,"data-testid":ree,onChange:k=>l(k.target.value)}),T(ype,{children:[s(we,{variant:"subtitle1",sx:Cpe,"data-loading":!0,component:"h2",children:"Impression Data"}),T("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"," ",s("a",{target:"_blank",rel:"noopener noreferrer",href:"https://docs.getunleash.io/advanced/impression_data",children:"the impression data documentation"})]}),s(Spe,{children:s(Cr,{labelPlacement:"start",style:{marginLeft:0},control:s(Pi,{name:"impressionData",onChange:()=>d(!f),checked:f}),label:"Enable impression data"})})]})]}),T(wpe,{children:[e,s(xpe,{onClick:m,children:"Cancel"})]})]})},pu=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0}),o=async w=>{const E=t("api/admin/features/validate",{method:"POST",body:JSON.stringify({name:w})});try{return await e(E.caller,E.id)}catch(A){throw A}},a=async w=>{const E=t("api/admin/constraints/validate",{method:"POST",body:JSON.stringify(w)});await e(E.caller,E.id)},i=async(w,x)=>{const E=`/api/admin/projects/${w}/features`,A=t(E,{method:"POST",body:JSON.stringify(x)});await e(A.caller,A.id)},l=p.useCallback(async(w,x,E)=>{const A=`api/admin/projects/${w}/features/${x}/environments/${E}/on`,k=t(A,{method:"POST"},"toggleFeatureEnvironmentOn");try{return await e(k.caller,k.id)}catch(_){throw _}},[t,e]),c=p.useCallback(async(w,x,E)=>{const A=`api/admin/projects/${w}/features/${x}/environments/${E}/off`,k=t(A,{method:"POST"},"toggleFeatureEnvironmentOff");try{return await e(k.caller,k.id)}catch(_){throw _}},[t,e]);return{validateFeatureToggleName:o,validateConstraint:a,createFeatureToggle:i,changeFeatureProject:async(w,x,E)=>{const A=`api/admin/projects/${w}/features/${x}/changeProject`,k=t(A,{method:"POST",body:JSON.stringify({newProjectId:E})});try{return await e(k.caller,k.id)}catch(_){throw _}},errors:n,toggleFeatureEnvironmentOn:l,toggleFeatureEnvironmentOff:c,addTagToFeature:async(w,x)=>{const E=`api/admin/features/${w}/tags`,A=t(E,{method:"POST",body:JSON.stringify({...x})});try{return await e(A.caller,A.id)}catch(k){throw k}},deleteTagFromFeature:async(w,x,E)=>{const A=`api/admin/features/${w}/tags/${x}/${E}`,k=t(A,{method:"DELETE"});try{return await e(k.caller,k.id)}catch(_){throw _}},archiveFeatureToggle:async(w,x)=>{const E=`api/admin/projects/${w}/features/${x}`,A=t(E,{method:"DELETE"});try{return await e(A.caller,A.id)}catch(k){throw k}},patchFeatureToggle:async(w,x,E)=>{const A=`api/admin/projects/${w}/features/${x}`,k=t(A,{method:"PATCH",body:JSON.stringify(E)});try{return await e(k.caller,k.id)}catch(_){throw _}},patchFeatureVariants:async(w,x,E)=>{const A=`api/admin/projects/${w}/features/${x}/variants`,k=t(A,{method:"PATCH",body:JSON.stringify(E)});try{return await e(k.caller,k.id)}catch(_){throw _}},patchFeatureEnvironmentVariants:async(w,x,E,A)=>{const k=`api/admin/projects/${w}/features/${x}/environments/${E}/variants`,_=t(k,{method:"PATCH",body:JSON.stringify(A)});try{return await e(_.caller,_.id)}catch(O){throw O}},overrideVariantsInEnvironments:async(w,x,E,A)=>{const k=`api/admin/projects/${w}/features/${x}/variants-batch`,_=t(k,{method:"PUT",body:JSON.stringify({variants:E,environments:A})});try{return await e(_.caller,_.id)}catch(O){throw O}},cloneFeatureToggle:async(w,x,E)=>{const A=`api/admin/projects/${w}/features/${x}/clone`,k=t(A,{method:"POST",body:JSON.stringify(E)});try{return await e(k.caller,k.id)}catch(_){throw _}},loading:r}},kO=(e="",t="release",n="default",r="",o=!1)=>{const a=cr("projectId"),i=kl(),{validateFeatureToggleName:l}=pu(),c=i.get("name"),[u,d]=p.useState(t),[f,h]=p.useState(c||e),[m,y]=p.useState(a||n),[g,v]=p.useState(r),[b,w]=p.useState(o),[x,E]=p.useState({});return p.useEffect(()=>{d(t)},[t]),p.useEffect(()=>{f||h(c||e)},[f,e,c]),p.useEffect(()=>{y(a||n)},[n,a]),p.useEffect(()=>{v(r)},[r]),p.useEffect(()=>{w(o)},[o]),{type:u,setType:d,name:f,setName:h,project:m,setProject:y,description:g,setDescription:v,impressionData:b,setImpressionData:w,getTogglePayload:()=>({type:u,name:f,description:g,impressionData:b}),validateToggleName:async()=>{if(f.length===0)return E(O=>({...O,name:"Name can not be empty."})),!1;try{return await l(f),!0}catch(O){return E(L=>({...L,name:ft(O)})),!1}},clearErrors:()=>{E({})},errors:x}},Epe=()=>{const{setToastData:e,setToastApiError:t}=Ot(),{setShowFeedback:n}=p.useContext(As),{uiConfig:r}=Nt(),o=ut(),{type:a,setType:i,name:l,setName:c,project:u,setProject:d,description:f,setDescription:h,validateToggleName:m,impressionData:y,setImpressionData:g,getTogglePayload:v,clearErrors:b,errors:w}=kO(),{createFeatureToggle:x,loading:E}=pu();return s(Nr,{loading:E,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.
305
- 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 POST '${r.unleashUrl}/api/admin/projects/${u}/features' \\
306
- --header 'Authorization: INSERT_API_KEY' \\
307
- --header 'Content-Type: application/json' \\
308
- --data-raw '${JSON.stringify(v(),void 0,2)}'`,children:s(TO,{type:a,name:l,project:u,description:f,setType:i,setName:c,setProject:d,setDescription:h,validateToggleName:m,setImpressionData:g,impressionData:y,errors:w,handleSubmit:async O=>{if(O.preventDefault(),b(),await m()){const I=v();try{await x(u,I),o(`/projects/${u}/features/${l}`),e({title:"Toggle created successfully",text:"Now you can start using your toggle.",confetti:!0,type:"success"}),n(!0)}catch($){t(ft($))}}},handleCancel:()=>{o(Bo)},mode:"Create",clearErrors:b,children:s(du,{name:"feature toggle",permission:gp,projectId:u,"data-testid":oee})})})};/*!
309
- * https://github.com/Starcounter-Jack/JSON-Patch
310
- * (c) 2017-2022 Joachim Wester
311
- * MIT licensed
312
- */var Tpe=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 a in o)o.hasOwnProperty(a)&&(r[a]=o[a])},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)}}(),kpe=Object.prototype.hasOwnProperty;function Ub(e,t){return kpe.call(e,t)}function Wb(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)Ub(e,o)&&r.push(o);return r}function ko(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Hb(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 Ws(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function AO(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Vb(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(Vb(e[t]))return!0}else if(typeof e=="object"){for(var r=Wb(e),o=r.length,a=0;a<o;a++)if(Vb(e[r[a]]))return!0}}return!1}function s_(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(`
313
- `)}var _O=function(e){Tpe(t,e);function t(n,r,o,a,i){var l=this.constructor,c=e.call(this,s_(n,{name:r,index:o,operation:a,tree:i}))||this;return c.name=r,c.index=o,c.operation=a,c.tree=i,Object.setPrototypeOf(c,l.prototype),c.message=s_(n,{name:r,index:o,operation:a,tree:i}),c}return t}(Error),qn=_O,Ape=ko,oc={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=Bm(n,this.path);r&&(r=ko(r));var o=il(n,{op:"remove",path:this.from}).removed;return il(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=Bm(n,this.from);return il(n,{op:"add",path:this.path,value:ko(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:Sp(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},_pe={add:function(e,t,n){return Hb(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:oc.move,copy:oc.copy,test:oc.test,_get:oc._get};function Bm(e,t){if(t=="")return e;var n={op:"_get",path:t};return il(e,n),n.value}function il(e,t,n,r,o,a){if(n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!0),a===void 0&&(a=0),n&&(typeof n=="function"?n(t,0,e,t.path):Fm(t,0)),t.path===""){var i={newDocument:e};if(t.op==="add")return i.newDocument=t.value,i;if(t.op==="replace")return i.newDocument=t.value,i.removed=e,i;if(t.op==="move"||t.op==="copy")return i.newDocument=Bm(e,t.from),t.op==="move"&&(i.removed=e),i;if(t.op==="test"){if(i.test=Sp(e,t.value),i.test===!1)throw new qn("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i.newDocument=e,i}else{if(t.op==="remove")return i.removed=e,i.newDocument=null,i;if(t.op==="_get")return t.value=e,i;if(n)throw new qn("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",a,t,e);return i}}else{r||(e=ko(e));var l=t.path||"",c=l.split("/"),u=e,d=1,f=c.length,h=void 0,m=void 0,y=void 0;for(typeof n=="function"?y=n:y=Fm;;){if(m=c[d],m&&m.indexOf("~")!=-1&&(m=AO(m)),o&&(m=="__proto__"||m=="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&&h===void 0&&(u[m]===void 0?h=c.slice(0,d).join("/"):d==f-1&&(h=t.path),h!==void 0&&y(t,0,e,h)),d++,Array.isArray(u)){if(m==="-")m=u.length;else{if(n&&!Hb(m))throw new qn("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",a,t,e);Hb(m)&&(m=~~m)}if(d>=f){if(n&&t.op==="add"&&m>u.length)throw new qn("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);var i=_pe[t.op].call(t,u,m,e);if(i.test===!1)throw new qn("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}}else if(d>=f){var i=oc[t.op].call(t,u,m,e);if(i.test===!1)throw new qn("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return i}if(u=u[m],n&&d<f&&(!u||typeof u!="object"))throw new qn("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",a,t,e)}}}function bC(e,t,n,r,o){if(r===void 0&&(r=!0),o===void 0&&(o=!0),n&&!Array.isArray(t))throw new qn("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=ko(e));for(var a=new Array(t.length),i=0,l=t.length;i<l;i++)a[i]=il(e,t[i],n,!0,o,i),e=a[i].newDocument;return a.newDocument=e,a}function Rpe(e,t,n){var r=il(e,t);if(r.test===!1)throw new qn("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function Fm(e,t,n,r){if(typeof e!="object"||e===null||Array.isArray(e))throw new qn("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(oc[e.op]){if(typeof e.path!="string")throw new qn("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new qn('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 qn("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 qn("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")&&Vb(e.value))throw new qn("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,a=r.split("/").length;if(o!==a+1&&o!==a)throw new qn("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 qn("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 i={op:"_get",path:e.from,value:void 0},l=RO([i],n);if(l&&l.name==="OPERATION_PATH_UNRESOLVABLE")throw new qn("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new qn("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function RO(e,t,n){try{if(!Array.isArray(e))throw new qn("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)bC(ko(t),ko(e),n||!0);else{n=n||Fm;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(o){if(o instanceof qn)return o;throw o}}function Sp(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,a,i;if(n&&r){if(a=e.length,a!=t.length)return!1;for(o=a;o--!==0;)if(!Sp(e[o],t[o]))return!1;return!0}if(n!=r)return!1;var l=Object.keys(e);if(a=l.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!t.hasOwnProperty(l[o]))return!1;for(o=a;o--!==0;)if(i=l[o],!Sp(e[i],t[i]))return!1;return!0}return e!==e&&t!==t}const Ppe=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:qn,_areEquals:Sp,applyOperation:il,applyPatch:bC,applyReducer:Rpe,deepClone:Ape,getValueByPointer:Bm,validate:RO,validator:Fm},Symbol.toStringTag,{value:"Module"}));/*!
314
- * https://github.com/Starcounter-Jack/JSON-Patch
315
- * (c) 2017-2021 Joachim Wester
316
- * MIT license
317
- */var wC=new WeakMap,Ipe=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),$pe=function(){function e(t,n){this.callback=t,this.observer=n}return e}();function Ope(e){return wC.get(e)}function Lpe(e,t){return e.observers.get(t)}function Mpe(e,t){e.observers.delete(t.callback)}function Npe(e,t){t.unobserve()}function Dpe(e,t){var n=[],r,o=Ope(e);if(!o)o=new Ipe(e),wC.set(e,o);else{var a=Lpe(o,t);r=a&&a.observer}if(r)return r;if(r={},o.value=ko(e),t){r.callback=t,r.next=null;var i=function(){Gb(r)},l=function(){clearTimeout(r.next),r.next=setTimeout(i)};typeof window<"u"&&(window.addEventListener("mouseup",l),window.addEventListener("keyup",l),window.addEventListener("mousedown",l),window.addEventListener("keydown",l),window.addEventListener("change",l))}return r.patches=n,r.object=e,r.unobserve=function(){Gb(r),clearTimeout(r.next),Mpe(o,r),typeof window<"u"&&(window.removeEventListener("mouseup",l),window.removeEventListener("keyup",l),window.removeEventListener("mousedown",l),window.removeEventListener("keydown",l),window.removeEventListener("change",l))},o.observers.set(t,new $pe(t,r)),r}function Gb(e,t){t===void 0&&(t=!1);var n=wC.get(e.object);SC(n.value,e.object,e.patches,"",t),e.patches.length&&bC(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function SC(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var a=Wb(t),i=Wb(e),l=!1,c=i.length-1;c>=0;c--){var u=i[c],d=e[u];if(Ub(t,u)&&!(t[u]===void 0&&d!==void 0&&Array.isArray(t)===!1)){var f=t[u];typeof d=="object"&&d!=null&&typeof f=="object"&&f!=null&&Array.isArray(d)===Array.isArray(f)?SC(d,f,n,r+"/"+Ws(u),o):d!==f&&(o&&n.push({op:"test",path:r+"/"+Ws(u),value:ko(d)}),n.push({op:"replace",path:r+"/"+Ws(u),value:ko(f)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Ws(u),value:ko(d)}),n.push({op:"remove",path:r+"/"+Ws(u)}),l=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!l&&a.length==i.length))for(var c=0;c<a.length;c++){var u=a[c];!Ub(e,u)&&t[u]!==void 0&&n.push({op:"add",path:r+"/"+Ws(u),value:ko(t[u])})}}}function PO(e,t,n){n===void 0&&(n=!1);var r=[];return SC(e,t,r,"",n),r}const Bpe=Object.freeze(Object.defineProperty({__proto__:null,compare:PO,generate:Gb,observe:Dpe,unobserve:Npe},Symbol.toStringTag,{value:"Module"}));Object.assign({},Ppe,Bpe,{JsonPatchError:_O,deepClone:ko,escapePathComponent:Ws,unescapePathComponent:AO});const Fpe={environments:[],name:"",type:"",stale:!1,archived:!1,createdAt:"",lastSeenAt:"",project:"",variants:[],description:"",favorite:!1,impressionData:!1},gl=(e,t,n)=>{const r=jpe(e,t),{data:o,error:a,mutate:i}=vn(["useFeature",r],()=>zpe(r),n),l=p.useCallback(()=>{i().catch(console.warn)},[i]);return{feature:(o==null?void 0:o.body)||Fpe,refetchFeature:l,loading:!a&&!o,status:o==null?void 0:o.status,error:a}},zpe=async e=>{const t=await fetch(e);return t.status===404?{status:404}:(t.ok||await Tn("Feature toggle data")(t),{status:t.status,body:await t.json()})},jpe=(e,t)=>jt(`api/admin/projects/${e}/features/${t}?variantEnvironments=true`),Upe=()=>{const e=cr("projectId"),t=cr("featureId"),{setToastData:n,setToastApiError:r}=Ot(),{uiConfig:o}=Nt(),a=ut(),{patchFeatureToggle:i,loading:l}=pu(),{feature:c}=gl(e,t),{type:u,setType:d,name:f,setName:h,project:m,setProject:y,description:g,setDescription:v,impressionData:b,setImpressionData:w,clearErrors:x,errors:E}=kO(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 L={...c,type:u,description:g,impressionData:b};return PO(c,L)};return s(Nr,{loading:l,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.
318
- 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}' \\
319
- --header 'Authorization: INSERT_API_KEY' \\
320
- --header 'Content-Type: application/json' \\
321
- --data-raw '${JSON.stringify(A(),void 0,2)}'`,children:s(TO,{type:u,name:f,project:m,description:g,setType:d,setName:h,setProject:y,setDescription:v,errors:E,handleSubmit:async L=>{L.preventDefault(),x();const I=A();try{await i(m,t,I),a(`/projects/${m}/features/${f}`),n({title:"Toggle updated successfully",type:"success"})}catch($){r(ft($))}},handleCancel:()=>{a(Bo)},impressionData:b,setImpressionData:w,mode:"Edit",clearErrors:x,children:s(Al,{permission:s3,projectId:m})})})},xC=(e,t={})=>{const n=jt(`api/admin/metrics/applications/${e}`),r=async()=>fetch(n,{method:"GET"}).then(Tn("Application")).then(d=>d.json()),o=`api/admin/metrics/applications/${e}`,{data:a,error:i}=vn(o,r,{...t}),[l,c]=p.useState(!i&&!a),u=()=>{Hr(o)};return p.useEffect(()=>{c(!i&&!a)},[a,i]),{application:a||{appName:e,color:"",createdAt:"2022-02-02T21:04:00.268Z",descriotion:"",instances:[],strategies:[],seenToggles:[],url:""},error:i,loading:l,refetchApplication:u,APPLICATION_CACHE_KEY:o}},Wpe=()=>{const{hasAccess:e}=p.useContext(Zr),t=cr("name"),{application:n}=xC(t),{locationSettings:r}=oi(),{instances:o,strategies:a,seenToggles:i}=n,l=({createUrl:u,name:d,permission:f})=>s(X,{condition:e(f),show:T(Fa,{children:[s(Yi,{children:s(nA,{style:{color:"red"}})}),s(dn,{primary:s(sn,{to:`${u}`,children:d}),secondary:"Missing, want to create?"})]},`not_found_${d}`),elseShow:T(Fa,{children:[s(Yi,{children:s(nA,{})}),s(dn,{primary:d,secondary:`Could not find feature toggle with name ${d}`})]},`not_found_${d}`)},`not_found_conditional_${d}`),c=({viewUrl:u,name:d,description:f,Icon:h,i:m})=>T(Fa,{children:[s(Yi,{children:s(h,{})}),s(dn,{primary:s(sn,{to:`${u}/${d}`,style:{wordBreak:"break-all"},children:d}),secondary:f})]},`found_${d}-${m}`);return T(In,{container:!0,style:{margin:0},children:[T(In,{item:!0,xl:6,md:6,xs:12,children:[s(we,{variant:"subtitle1",style:{padding:"1rem 0"},children:"Toggles"}),s(fo,{}),s(qa,{children:i.map(({name:u,description:d,notFound:f,project:h},m)=>s(X,{condition:f,show:l({createUrl:`/projects/default/create-toggle?name=${u}`,name:u,permission:gp}),elseShow:c({viewUrl:$m(h,u),name:u,description:d,Icon:_Z,i:m})},`toggle_conditional_${u}`))})]}),T(In,{item:!0,xl:6,md:6,xs:12,children:[s(we,{variant:"subtitle1",style:{padding:"1rem 0"},children:"Implemented strategies"}),s(fo,{}),s(qa,{children:a.map(({name:u,description:d,notFound:f},h)=>s(X,{condition:f,show:l({createUrl:"/strategies/create",name:u,permission:km}),elseShow:c({viewUrl:"/strategies",name:u,Icon:k4,description:d,i:h})},`strategies_conditional_${u}`))})]}),T(In,{item:!0,xl:12,md:12,children:[T(we,{variant:"subtitle1",style:{padding:"1rem 0"},children:[o.length," Instances registered"]}),s(fo,{}),s(qa,{children:o.map(({instanceId:u,clientIp:d,lastSeen:f,sdkVersion:h})=>T(Fa,{children:[s(Yi,{children:s(BZ,{})}),s(dn,{primary:s(X,{condition:Boolean(h),show:T("span",{children:[u," ",h]}),elseShow:s("span",{children:u})},`${u}_conditional`),secondary:T("span",{children:[d," last seen at"," ",s("small",{children:Ux(f,r.locale)})]})})]},`${u}`))})]})]})},Hpe=["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"],IO=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0}),o="api/admin/metrics/applications";return{storeApplicationMetaData:async(l,c,u)=>{const d={};d[c]=u;const f=`${o}/${l}`,h=t(f,{method:"POST",body:JSON.stringify(d)});try{return await e(h.caller,h.id)}catch(m){throw m}},deleteApplication:async l=>{const c=`${o}/${encodeURIComponent(l)}`,u=t(c,{method:"DELETE"});try{return await e(u.caller,u.id)}catch(d){throw d}},errors:n,loading:r}},Vpe=({application:e})=>{const{storeApplicationMetaData:t}=IO(),{appName:n,icon:r,url:o,description:a}=e,{refetchApplication:i}=xC(n),[l,c]=p.useState(o||""),[u,d]=p.useState(a||""),{setToastData:f,setToastApiError:h}=Ot(),{classes:m}=Xp(),y=async(g,v,b)=>{b==null||b.preventDefault();try{await t(n,g,v),i(),f({type:"success",title:"Updated Successfully",text:`${g} successfully updated`})}catch(w){h(ft(w))}};return s(In,{container:!0,style:{marginTop:"1rem"},children:T(In,{item:!0,sm:12,xs:12,className:m.contentSpacingY,children:[s(In,{item:!0,children:s(su,{name:"iconSelect",id:"selectIcon",label:"Icon",options:Hpe.map(g=>({key:g,label:g})),value:r||"apps",onChange:g=>y("icon",g)})}),s(In,{item:!0,children:s(fn,{value:l,onChange:g=>c(g.target.value),label:"Application URL",placeholder:"https://example.com",type:"url",variant:"outlined",size:"small",onBlur:g=>y("url",l,g)})}),s(In,{item:!0,children:s(fn,{value:u,label:"Description",variant:"outlined",size:"small",rows:2,onChange:g=>d(g.target.value),onBlur:g=>y("description",u,g)})})]})})},Gpe=({children:e,value:t,index:n})=>s("div",{role:"tabpanel",hidden:t!==n,id:`tabpanel-${n}`,"aria-labelledby":`tab-${n}`,children:t===n&&e}),qpe=({tabData:e,className:t="",navClass:n="",startingTab:r=0})=>{const[o,a]=p.useState(r),i=()=>e.map((c,u)=>s(vJ,{label:c.label,id:`tab-${u}`,"aria-controls":`tabpanel-${u}`,sx:{minWidth:{lg:160}}},`${c.label}_${u}`)),l=()=>e.map((c,u)=>s(Gpe,{value:o,index:u,children:c.component},u));return T(ke,{children:[s(Ar,{className:n,elevation:0,sx:{backgroundColor:c=>c.palette.background.paper,borderBottom:"1px solid",borderBottomColor:c=>c.palette.grey[300],borderRadius:0},children:s(CQ,{value:o,onChange:(c,u)=>{a(u)},indicatorColor:"primary",textColor:"primary",centered:!0,children:i()})}),s("div",{className:t,children:l()})]})},Kpe=()=>{const e=ut(),t=cr("name"),{application:n,loading:r}=xC(t),{appName:o,url:a,description:i,icon:l="apps",createdAt:c}=n,{hasAccess:u}=p.useContext(Zr),{deleteApplication:d}=IO(),{locationSettings:f}=oi(),{setToastData:h,setToastApiError:m}=Ot(),[y,g]=p.useState(!1),v=()=>{g(!y)},b=A=>zc(A,f.locale),w=async A=>{A.preventDefault();try{await d(o),h({title:"Deleted Successfully",text:"Application deleted successfully",type:"success"}),e("/applications")}catch(k){m(ft(k))}},x=()=>s(lr,{open:y,onClose:v,onClick:w,title:"Are you sure you want to delete this application?"}),E=[{label:"Application overview",component:s(Wpe,{})},{label:"Edit application",component:s(Vpe,{application:n})}];return r?T("div",{children:[s("p",{children:"Loading..."}),s(mK,{})]}):n?T(gr,{header:s(En,{titleElement:T("span",{style:{display:"flex",alignItems:"center"},children:[s(rv,{style:{marginRight:"8px"},children:s(rx,{children:l||"apps"})}),o]}),title:o,actions:T(ke,{children:[s(X,{condition:Boolean(a),show:s(en,{component:ho,href:a,size:"large",children:s(OZ,{titleAccess:a})})}),s(Do,{tooltipProps:{title:"Delete application"},onClick:v,permission:bA,children:"Delete"})]})}),children:[T("div",{children:[s(we,{variant:"body1",children:i||""}),T(we,{variant:"body2",children:["Created: ",s("strong",{children:b(c)})]})]}),s(X,{condition:u(bA),show:T("div",{children:[x(),s(qpe,{tabData:E})]})})]}):T("p",{children:["Application (",o,") not found"]})},Ype=()=>{const{applications:e,loading:t}=F3(),[n,r]=Dp(),[o,a]=p.useState(n.get("search")||"");p.useEffect(()=>{const u={};o&&(u.search=o),r(u,{replace:!0})},[o,r]);const i=p.useMemo(()=>{const u=Hx(o,"i");return o?e==null?void 0:e.filter(d=>u.test(d.appName)):e},[e,o]),l=()=>s(ke,{children:T("section",{style:{textAlign:"center"},children:[s(HZ,{titleAccess:"Warning"})," ",s("br",{}),s("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.",s("br",{}),s("br",{}),"You can read more about how to use Unleash in your application in the"," ",s("a",{href:"https://docs.getunleash.io/docs/sdks/",children:"documentation."})]})});if(!i)return s(kV,{variant:"indeterminate"});let c=i.length<e.length?`${i.length} of ${e.length}`:e.length;return s(ke,{children:s(gr,{header:s(En,{title:`Applications (${c})`,actions:s(vo,{initialValue:o,onChange:a})}),children:s("div",{className:Sc.fullwidth,children:s(X,{condition:i.length>0,show:s(aC,{apps:i}),elseShow:s(X,{condition:t,show:s("div",{children:"...loading"}),elseShow:l()})})})})})},_l=(e={revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0})=>{const t=()=>{const l=jt("api/admin/context");return fetch(l,{method:"GET"}).then(Tn("Context variables")).then(c=>c.json())},n="api/admin/context",{data:r,mutate:o,error:a,isValidating:i}=vn(n,t,e);return{context:r||[],error:a,loading:i&&!a&&!r,refetchUnleashContext:o}},Xpe=()=>{const e=Tr("(max-width:700px)"),t=ut();return s(X,{condition:e,show:s(mr,{permission:Am,onClick:()=>t("/context/create"),size:"large",tooltipProps:{title:"Add context type"},children:s(xa,{})}),elseShow:s(Do,{onClick:()=>t("/context/create"),permission:Am,color:"primary",variant:"contained",children:"New context field"})})},Jpe=({name:e,onDelete:t})=>{const n=ut();return T(Za,{children:[s(mr,{permission:l3,onClick:()=>n(`/context/edit/${e}`),"data-loading":!0,"aria-label":"edit",tooltipProps:{title:"Edit context field"},children:s(Ja,{})}),s(mr,{permission:Cne,onClick:t,"data-loading":!0,"aria-label":"delete",tooltipProps:{title:"Delete context field"},children:s(na,{})})]})},Qpe=()=>{const[e,t]=p.useState(!1),[n,r]=p.useState(),{context:o,refetchUnleashContext:a,loading:i}=_l(),{removeContext:l}=kv(),{setToastData:c,setToastApiError:u}=Ot(),d=p.useMemo(()=>i?Array(5).fill({name:"Context name",description:"Context description when loading"}):o.map(({name:A,description:k,sortOrder:_})=>({name:A,description:k,sortOrder:_})).sort((A,k)=>A.sortOrder-k.sortOrder),[o,i]),f=p.useMemo(()=>[{id:"Icon",Cell:()=>s(xv,{icon:s(gZ,{color:"disabled"})}),disableGlobalFilter:!0},{Header:"Name",accessor:"name",width:"90%",Cell:({row:{original:{name:A,description:k}}})=>s(Rs,{title:A,to:`/context/edit/${A}`,subtitle:k}),sortType:"alphanumeric"},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:{name:A}}})=>s(Jpe,{name:A,onDelete:()=>{r(A),t(!0)}}),width:150,disableGlobalFilter:!0,disableSortBy:!0},{accessor:"description",disableSortBy:!0},{accessor:"sortOrder",disableGlobalFilter:!0,sortType:"number"}],[]),h=p.useMemo(()=>({sortBy:[{id:"name",desc:!1}],hiddenColumns:["description","sortOrder"]}),[]),m=async()=>{try{if(n===void 0)throw new Error;await l(n),a(),c({type:"success",title:"Successfully deleted context",text:"Your context is now deleted"})}catch(A){u(ft(A))}r(void 0),t(!1)},{getTableProps:y,getTableBodyProps:g,headerGroups:v,rows:b,prepareRow:w,state:{globalFilter:x},setGlobalFilter:E}=rn.useTable({columns:f,data:d,initialState:h,sortTypes:ai,autoResetGlobalFilter:!1,autoResetSortBy:!1,disableSortRemove:!0},rn.useGlobalFilter,rn.useSortBy);return T(gr,{isLoading:i,header:s(En,{title:`Context fields (${b.length})`,actions:T(ke,{children:[s(vo,{initialValue:x,onChange:E}),s(En.Divider,{}),s(Xpe,{})]})}),children:[s(_s,{value:x,children:T(Ni,{...y(),children:[s(Mi,{headerGroups:v}),s(Ii,{...g(),children:b.map(A=>(w(A),s(ri,{hover:!0,...A.getRowProps(),children:A.cells.map(k=>s(Qa,{...k.getCellProps(),children:k.render("Cell")}))})))})]})}),s(X,{condition:b.length===0,show:s(X,{condition:(x==null?void 0:x.length)>0,show:T(Qn,{children:["No contexts found matching “",x,"”"]}),elseShow:s(Qn,{children:"No contexts available. Get started by adding one."})})}),s(lr,{open:e,onClick:m,onClose:()=>{r(void 0),t(!1)},title:"Really delete context field"})]})},l_=()=>{const e=cr("featureId"),{features:t=[]}=zx(),[n,r]=p.useState();return p.useEffect(()=>{const o=t.find(a=>a.name===e);r(o)},[t,e]),n!=null&&n.project?s(Tl,{to:$m(n.project,n.name),replace:!0}):null};function ma(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 Hc(e){return!!e&&!!e[$o]}function vl(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)===ife}(e)||Array.isArray(e)||!!e[g_]||!!(!((t=e.constructor)===null||t===void 0)&&t[g_])||CC(e)||EC(e))}function xp(e,t,n){n===void 0&&(n=!1),fu(e)===0?(n?Object.keys:RC)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function fu(e){var t=e[$o];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:CC(e)?2:EC(e)?3:0}function qb(e,t){return fu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Zpe(e,t){return fu(e)===2?e.get(t):e[t]}function $O(e,t,n){var r=fu(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function efe(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function CC(e){return ofe&&e instanceof Map}function EC(e){return afe&&e instanceof Set}function Hs(e){return e.o||e.t}function TC(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=sfe(e);delete t[$o];for(var n=RC(t),r=0;r<n.length;r++){var o=n[r],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function kC(e,t){return t===void 0&&(t=!1),AC(e)||Hc(e)||!vl(e)||(fu(e)>1&&(e.set=e.add=e.clear=e.delete=tfe),Object.freeze(e),t&&xp(e,function(n,r){return kC(r,!0)},!0)),e}function tfe(){ma(2)}function AC(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ka(e){var t=lfe[e];return t||ma(18,e),t}function c_(){return Cp}function _1(e,t){t&&(Ka("Patches"),e.u=[],e.s=[],e.v=t)}function zm(e){Kb(e),e.p.forEach(nfe),e.p=null}function Kb(e){e===Cp&&(Cp=e.l)}function u_(e){return Cp={p:[],l:Cp,h:e,m:!0,_:0}}function nfe(e){var t=e[$o];t.i===0||t.i===1?t.j():t.O=!0}function R1(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Ka("ES5").S(t,e,r),r?(n[$o].P&&(zm(t),ma(4)),vl(e)&&(e=jm(t,e),t.l||Um(t,e)),t.u&&Ka("Patches").M(n[$o].t,e,t.u,t.s)):e=jm(t,n,[]),zm(t),t.u&&t.v(t.u,t.s),e!==OO?e:void 0}function jm(e,t,n){if(AC(t))return t;var r=t[$o];if(!r)return xp(t,function(l,c){return d_(e,r,t,l,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Um(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=TC(r.k):r.o,a=o,i=!1;r.i===3&&(a=new Set(o),o.clear(),i=!0),xp(a,function(l,c){return d_(e,r,o,l,c,n,i)}),Um(e,o,!1),n&&e.u&&Ka("Patches").N(r,n,e.u,e.s)}return r.o}function d_(e,t,n,r,o,a,i){if(Hc(o)){var l=jm(e,o,a&&t&&t.i!==3&&!qb(t.R,r)?a.concat(r):void 0);if($O(n,r,l),!Hc(l))return;e.m=!1}else i&&n.add(o);if(vl(o)&&!AC(o)){if(!e.h.D&&e._<1)return;jm(e,o),t&&t.A.l||Um(e,o)}}function Um(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&kC(t,n)}function P1(e,t){var n=e[$o];return(n?Hs(n):e)[t]}function p_(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 Yb(e){e.P||(e.P=!0,e.l&&Yb(e.l))}function I1(e){e.o||(e.o=TC(e.t))}function Xb(e,t,n){var r=CC(t)?Ka("MapSet").F(t,n):EC(t)?Ka("MapSet").T(t,n):e.g?function(o,a){var i=Array.isArray(o),l={i:i?1:0,A:a?a.A:c_(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},c=l,u=Jb;i&&(c=[l],u=hd);var d=Proxy.revocable(c,u),f=d.revoke,h=d.proxy;return l.k=h,l.j=f,h}(t,n):Ka("ES5").J(t,n);return(n?n.A:c_()).p.push(r),r}function rfe(e){return Hc(e)||ma(22,e),function t(n){if(!vl(n))return n;var r,o=n[$o],a=fu(n);if(o){if(!o.P&&(o.i<4||!Ka("ES5").K(o)))return o.t;o.I=!0,r=f_(n,a),o.I=!1}else r=f_(n,a);return xp(r,function(i,l){o&&Zpe(o.t,i)===l||$O(r,i,t(l))}),a===3?new Set(r):r}(e)}function f_(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return TC(e)}var h_,Cp,_C=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ofe=typeof Map<"u",afe=typeof Set<"u",m_=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",OO=_C?Symbol.for("immer-nothing"):((h_={})["immer-nothing"]=!0,h_),g_=_C?Symbol.for("immer-draftable"):"__$immer_draftable",$o=_C?Symbol.for("immer-state"):"__$immer_state",ife=""+Object.prototype.constructor,RC=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,sfe=Object.getOwnPropertyDescriptors||function(e){var t={};return RC(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},lfe={},Jb={get:function(e,t){if(t===$o)return e;var n=Hs(e);if(!qb(n,t))return function(o,a,i){var l,c=p_(a,i);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!vl(r)?r:r===P1(e.t,t)?(I1(e),e.o[t]=Xb(e.A.h,r,e)):r},has:function(e,t){return t in Hs(e)},ownKeys:function(e){return Reflect.ownKeys(Hs(e))},set:function(e,t,n){var r=p_(Hs(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=P1(Hs(e),t),a=o==null?void 0:o[$o];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(efe(n,o)&&(n!==void 0||qb(e.t,t)))return!0;I1(e),Yb(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 P1(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,I1(e),Yb(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Hs(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){ma(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ma(12)}},hd={};xp(Jb,function(e,t){hd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),hd.deleteProperty=function(e,t){return hd.set.call(this,e,t,void 0)},hd.set=function(e,t,n){return Jb.set.call(this,e[0],t,n,e[0])};var cfe=function(){function e(n){var r=this;this.g=m_,this.D=!0,this.produce=function(o,a,i){if(typeof o=="function"&&typeof a!="function"){var l=a;a=o;var c=r;return function(g){var v=this;g===void 0&&(g=l);for(var b=arguments.length,w=Array(b>1?b-1:0),x=1;x<b;x++)w[x-1]=arguments[x];return c.produce(g,function(E){var A;return(A=a).call.apply(A,[v,E].concat(w))})}}var u;if(typeof a!="function"&&ma(6),i!==void 0&&typeof i!="function"&&ma(7),vl(o)){var d=u_(r),f=Xb(r,o,void 0),h=!0;try{u=a(f),h=!1}finally{h?zm(d):Kb(d)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(g){return _1(d,i),R1(g,d)},function(g){throw zm(d),g}):(_1(d,i),R1(u,d))}if(!o||typeof o!="object"){if((u=a(o))===void 0&&(u=o),u===OO&&(u=void 0),r.D&&kC(u,!0),i){var m=[],y=[];Ka("Patches").M(o,u,m,y),i(m,y)}return u}ma(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(u){for(var d=arguments.length,f=Array(d>1?d-1:0),h=1;h<d;h++)f[h-1]=arguments[h];return r.produceWithPatches(u,function(m){return o.apply(void 0,[m].concat(f))})};var i,l,c=r.produce(o,a,function(u,d){i=u,l=d});return typeof Promise<"u"&&c instanceof Promise?c.then(function(u){return[u,i,l]}):[c,i,l]},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){vl(n)||ma(8),Hc(n)&&(n=rfe(n));var r=u_(this),o=Xb(this,n,void 0);return o[$o].C=!0,Kb(r),o},t.finishDraft=function(n,r){var o=n&&n[$o],a=o.A;return _1(a,r),R1(void 0,a)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!m_&&ma(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var a=r[o];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}o>-1&&(r=r.slice(o+1));var i=Ka("Patches").$;return Hc(n)?i(n,r):this.produce(n,function(l){return i(l,r)})},e}(),Oo=new cfe,ufe=Oo.produce;Oo.produceWithPatches.bind(Oo);Oo.setAutoFreeze.bind(Oo);Oo.setUseProxies.bind(Oo);Oo.applyPatches.bind(Oo);Oo.createDraft.bind(Oo);Oo.finishDraft.bind(Oo);const Vo=ufe,dfe=Mr("form")({display:"flex",flexDirection:"column",height:"100%",gap:"1rem"}),Wl=Mr("section")({marginBottom:"36px"}),Qb=Mr("p")({marginBottom:"0.5rem"}),pfe=Mr("div")({maxWidth:"600px"}),ffe=Mr("div")({marginTop:"auto",display:"flex",justifyContent:"flex-end"}),hfe=Mr("section")(({theme:e})=>({paddingTop:e.spacing(2),"& > *":{marginRight:e.spacing(1)}})),v_=Mr(fn)({width:"100%",marginBottom:"1rem",marginTop:"0px"}),mfe=Mr(Cr)({paddingBottom:"16px"}),LO=Mr("h4")({marginBottom:"8px"}),gfe=Mr("div")({marginTop:"25px"}),vfe=({type:e="text",sensitive:t=!1},n)=>t&&n===yfe||e==="textfield"?"text":e,yfe="*****",bfe=({definition:e,config:t,parametersErrors:n,setParameterValue:r})=>{const o=t.parameters[e.name]||"",a=vfe(e,o),i=n[e.name];return s(gfe,{children:s(fn,{size:"small",style:{width:"100%"},minRows:e.type==="textfield"?9:0,multiline:e.type==="textfield",type:a,label:T(ke,{children:[e.displayName,e.required?s(we,{component:"span",color:"error",children:"*"}):null]}),name:e.name,placeholder:e.placeholder||"",InputLabelProps:{shrink:!0},value:o,error:Boolean(i),onChange:r(e.name),variant:"outlined",helperText:e.description})})},wfe=({provider:e,config:t,parametersErrors:n,setParameterValue:r,editMode:o})=>e?T(zt.Fragment,{children:[s(LO,{children:"Parameters"}),o?T("p",{children:['Sensitive parameters will be masked with value "',s("i",{children:"*****"}),`". If you don't change the value they will not be updated when saving.`]}):null,e.parameters.map(a=>s(bfe,{definition:a,parametersErrors:n,config:t,setParameterValue:r},a.name))]}):null;var Wm={},Sfe={get exports(){return Wm},set exports(e){Wm=e}};(function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",f="[object GeneratorFunction]",h="[object Map]",m="[object Number]",y="[object Object]",g="[object Promise]",v="[object RegExp]",b="[object Set]",w="[object String]",x="[object Symbol]",E="[object WeakMap]",A="[object ArrayBuffer]",k="[object DataView]",_="[object Float32Array]",O="[object Float64Array]",L="[object Int8Array]",I="[object Int16Array]",$="[object Int32Array]",D="[object Uint8Array]",F="[object Uint8ClampedArray]",U="[object Uint16Array]",Y="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,te=/\w*$/,Z=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,z={};z[a]=z[i]=z[A]=z[k]=z[l]=z[c]=z[_]=z[O]=z[L]=z[I]=z[$]=z[h]=z[m]=z[y]=z[v]=z[b]=z[w]=z[x]=z[D]=z[F]=z[U]=z[Y]=!0,z[u]=z[d]=z[E]=!1;var R=typeof Ma=="object"&&Ma&&Ma.Object===Object&&Ma,N=typeof self=="object"&&self&&self.Object===Object&&self,ee=R||N||Function("return this")(),re=t&&!t.nodeType&&t,Se=re&&!0&&e&&!e.nodeType&&e,ce=Se&&Se.exports===re;function Ce(H,oe){return H.set(oe[0],oe[1]),H}function xe(H,oe){return H.add(oe),H}function Ee(H,oe){for(var ge=-1,tt=H?H.length:0;++ge<tt&&oe(H[ge],ge,H)!==!1;);return H}function et(H,oe){for(var ge=-1,tt=oe.length,Zn=H.length;++ge<tt;)H[Zn+ge]=oe[ge];return H}function me(H,oe,ge,tt){var Zn=-1,Pr=H?H.length:0;for(tt&&Pr&&(ge=H[++Zn]);++Zn<Pr;)ge=oe(ge,H[Zn],Zn,H);return ge}function Ve(H,oe){for(var ge=-1,tt=Array(H);++ge<H;)tt[ge]=oe(ge);return tt}function Ge(H,oe){return H==null?void 0:H[oe]}function De(H){var oe=!1;if(H!=null&&typeof H.toString!="function")try{oe=!!(H+"")}catch{}return oe}function he(H){var oe=-1,ge=Array(H.size);return H.forEach(function(tt,Zn){ge[++oe]=[Zn,tt]}),ge}function Et(H,oe){return function(ge){return H(oe(ge))}}function qe(H){var oe=-1,ge=Array(H.size);return H.forEach(function(tt){ge[++oe]=tt}),ge}var lt=Array.prototype,Rt=Function.prototype,dt=Object.prototype,nt=ee["__core-js_shared__"],Lt=function(){var H=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return H?"Symbol(src)_1."+H:""}(),xt=Rt.toString,pe=dt.hasOwnProperty,Te=dt.toString,Ye=RegExp("^"+xt.call(pe).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=ce?ee.Buffer:void 0,q=ee.Symbol,K=ee.Uint8Array,se=Et(Object.getPrototypeOf,Object),ye=Object.create,Ae=dt.propertyIsEnumerable,mt=lt.splice,Ze=Object.getOwnPropertySymbols,ht=Ne?Ne.isBuffer:void 0,Kt=Et(Object.keys,Object),Mn=ii(ee,"DataView"),pt=ii(ee,"Map"),un=ii(ee,"Promise"),Vt=ii(ee,"Set"),Qt=ii(ee,"WeakMap"),Bt=ii(Object,"create"),Wn=li(Mn),vr=li(pt),to=li(un),yo=li(Vt),bo=li(Qt),Rr=q?q.prototype:void 0,no=Rr?Rr.valueOf:void 0;function Xn(H){var oe=-1,ge=H?H.length:0;for(this.clear();++oe<ge;){var tt=H[oe];this.set(tt[0],tt[1])}}function ro(){this.__data__=Bt?Bt(null):{}}function yr(H){return this.has(H)&&delete this.__data__[H]}function Dt(H){var oe=this.__data__;if(Bt){var ge=oe[H];return ge===r?void 0:ge}return pe.call(oe,H)?oe[H]:void 0}function Gt(H){var oe=this.__data__;return Bt?oe[H]!==void 0:pe.call(oe,H)}function zn(H,oe){var ge=this.__data__;return ge[H]=Bt&&oe===void 0?r:oe,this}Xn.prototype.clear=ro,Xn.prototype.delete=yr,Xn.prototype.get=Dt,Xn.prototype.has=Gt,Xn.prototype.set=zn;function ur(H){var oe=-1,ge=H?H.length:0;for(this.clear();++oe<ge;){var tt=H[oe];this.set(tt[0],tt[1])}}function Gr(){this.__data__=[]}function qr(H){var oe=this.__data__,ge=Is(oe,H);if(ge<0)return!1;var tt=oe.length-1;return ge==tt?oe.pop():mt.call(oe,ge,1),!0}function ua(H){var oe=this.__data__,ge=Is(oe,H);return ge<0?void 0:oe[ge][1]}function ue(H){return Is(this.__data__,H)>-1}function ae(H,oe){var ge=this.__data__,tt=Is(ge,H);return tt<0?ge.push([H,oe]):ge[tt][1]=oe,this}ur.prototype.clear=Gr,ur.prototype.delete=qr,ur.prototype.get=ua,ur.prototype.has=ue,ur.prototype.set=ae;function Be(H){var oe=-1,ge=H?H.length:0;for(this.clear();++oe<ge;){var tt=H[oe];this.set(tt[0],tt[1])}}function ot(){this.__data__={hash:new Xn,map:new(pt||ur),string:new Xn}}function kt(H){return $s(this,H).delete(H)}function Sn(H){return $s(this,H).get(H)}function _n(H){return $s(this,H).has(H)}function yt(H,oe){return $s(this,H).set(H,oe),this}Be.prototype.clear=ot,Be.prototype.delete=kt,Be.prototype.get=Sn,Be.prototype.has=_n,Be.prototype.set=yt;function Rn(H){this.__data__=new ur(H)}function Yv(){this.__data__=new ur}function Xv(H){return this.__data__.delete(H)}function Jv(H){return this.__data__.get(H)}function lf(H){return this.__data__.has(H)}function cf(H,oe){var ge=this.__data__;if(ge instanceof ur){var tt=ge.__data__;if(!pt||tt.length<n-1)return tt.push([H,oe]),this;ge=this.__data__=new Be(tt)}return ge.set(H,oe),this}Rn.prototype.clear=Yv,Rn.prototype.delete=Xv,Rn.prototype.get=Jv,Rn.prototype.has=lf,Rn.prototype.set=cf;function Qv(H,oe){var ge=Os(H)||by(H)?Ve(H.length,String):[],tt=ge.length,Zn=!!tt;for(var Pr in H)(oe||pe.call(H,Pr))&&!(Zn&&(Pr=="length"||my(Pr,tt)))&&ge.push(Pr);return ge}function uf(H,oe,ge){var tt=H[oe];(!(pe.call(H,oe)&&mf(tt,ge))||ge===void 0&&!(oe in H))&&(H[oe]=ge)}function Is(H,oe){for(var ge=H.length;ge--;)if(mf(H[ge][0],oe))return ge;return-1}function df(H,oe){return H&&ff(oe,Ms(oe),H)}function wu(H,oe,ge,tt,Zn,Pr,Dr){var S;if(tt&&(S=Pr?tt(H,Zn,Pr,Dr):tt(H)),S!==void 0)return S;if(!Ls(H))return H;var M=Os(H);if(M){if(S=fy(H),!oe)return uy(H,S)}else{var B=si(H),j=B==d||B==f;if(Tu(H))return oy(H,oe);if(B==y||B==a||j&&!Pr){if(De(H))return Pr?H:{};if(S=hy(j?{}:H),!oe)return dy(H,df(S,H))}else{if(!z[B])return Pr?H:{};S=hf(H,B,wu,oe)}}Dr||(Dr=new Rn);var J=Dr.get(H);if(J)return J;if(Dr.set(H,S),!M)var G=ge?py(H):Ms(H);return Ee(G||H,function(Q,le){G&&(le=Q,Q=H[le]),uf(S,le,wu(Q,oe,ge,tt,le,H,Dr))}),S}function Zv(H){return Ls(H)?ye(H):{}}function ey(H,oe,ge){var tt=oe(H);return Os(H)?tt:et(tt,ge(H))}function ty(H){return Te.call(H)}function ny(H){if(!Ls(H)||vy(H))return!1;var oe=Ol(H)||De(H)?Ye:Z;return oe.test(li(H))}function ry(H){if(!Cu(H))return Kt(H);var oe=[];for(var ge in Object(H))pe.call(H,ge)&&ge!="constructor"&&oe.push(ge);return oe}function oy(H,oe){if(oe)return H.slice();var ge=new H.constructor(H.length);return H.copy(ge),ge}function Su(H){var oe=new H.constructor(H.byteLength);return new K(oe).set(new K(H)),oe}function ay(H,oe){var ge=oe?Su(H.buffer):H.buffer;return new H.constructor(ge,H.byteOffset,H.byteLength)}function iy(H,oe,ge){var tt=oe?ge(he(H),!0):he(H);return me(tt,Ce,new H.constructor)}function sy(H){var oe=new H.constructor(H.source,te.exec(H));return oe.lastIndex=H.lastIndex,oe}function pf(H,oe,ge){var tt=oe?ge(qe(H),!0):qe(H);return me(tt,xe,new H.constructor)}function ly(H){return no?Object(no.call(H)):{}}function cy(H,oe){var ge=oe?Su(H.buffer):H.buffer;return new H.constructor(ge,H.byteOffset,H.length)}function uy(H,oe){var ge=-1,tt=H.length;for(oe||(oe=Array(tt));++ge<tt;)oe[ge]=H[ge];return oe}function ff(H,oe,ge,tt){ge||(ge={});for(var Zn=-1,Pr=oe.length;++Zn<Pr;){var Dr=oe[Zn],S=tt?tt(ge[Dr],H[Dr],Dr,ge,H):void 0;uf(ge,Dr,S===void 0?H[Dr]:S)}return ge}function dy(H,oe){return ff(H,xu(H),oe)}function py(H){return ey(H,Ms,xu)}function $s(H,oe){var ge=H.__data__;return gy(oe)?ge[typeof oe=="string"?"string":"hash"]:ge.map}function ii(H,oe){var ge=Ge(H,oe);return ny(ge)?ge:void 0}var xu=Ze?Et(Ze,Object):Sy,si=ty;(Mn&&si(new Mn(new ArrayBuffer(1)))!=k||pt&&si(new pt)!=h||un&&si(un.resolve())!=g||Vt&&si(new Vt)!=b||Qt&&si(new Qt)!=E)&&(si=function(H){var oe=Te.call(H),ge=oe==y?H.constructor:void 0,tt=ge?li(ge):void 0;if(tt)switch(tt){case Wn:return k;case vr:return h;case to:return g;case yo:return b;case bo:return E}return oe});function fy(H){var oe=H.length,ge=H.constructor(oe);return oe&&typeof H[0]=="string"&&pe.call(H,"index")&&(ge.index=H.index,ge.input=H.input),ge}function hy(H){return typeof H.constructor=="function"&&!Cu(H)?Zv(se(H)):{}}function hf(H,oe,ge,tt){var Zn=H.constructor;switch(oe){case A:return Su(H);case l:case c:return new Zn(+H);case k:return ay(H,tt);case _:case O:case L:case I:case $:case D:case F:case U:case Y:return cy(H,tt);case h:return iy(H,tt,ge);case m:case w:return new Zn(H);case v:return sy(H);case b:return pf(H,tt,ge);case x:return ly(H)}}function my(H,oe){return oe=oe??o,!!oe&&(typeof H=="number"||W.test(H))&&H>-1&&H%1==0&&H<oe}function gy(H){var oe=typeof H;return oe=="string"||oe=="number"||oe=="symbol"||oe=="boolean"?H!=="__proto__":H===null}function vy(H){return!!Lt&&Lt in H}function Cu(H){var oe=H&&H.constructor,ge=typeof oe=="function"&&oe.prototype||dt;return H===ge}function li(H){if(H!=null){try{return xt.call(H)}catch{}try{return H+""}catch{}}return""}function yy(H){return wu(H,!0,!0)}function mf(H,oe){return H===oe||H!==H&&oe!==oe}function by(H){return $l(H)&&pe.call(H,"callee")&&(!Ae.call(H,"callee")||Te.call(H)==a)}var Os=Array.isArray;function Eu(H){return H!=null&&gf(H.length)&&!Ol(H)}function $l(H){return wy(H)&&Eu(H)}var Tu=ht||xy;function Ol(H){var oe=Ls(H)?Te.call(H):"";return oe==d||oe==f}function gf(H){return typeof H=="number"&&H>-1&&H%1==0&&H<=o}function Ls(H){var oe=typeof H;return!!H&&(oe=="object"||oe=="function")}function wy(H){return!!H&&typeof H=="object"}function Ms(H){return Eu(H)?Qv(H):ry(H)}function Sy(){return[]}function xy(){return!1}e.exports=yy})(Sfe,Wm);const PC=Wm;var IC={},xfe=hn;Object.defineProperty(IC,"__esModule",{value:!0});var Av=IC.default=void 0,Cfe=xfe(kn()),Efe=An,Tfe=(0,Cfe.default)((0,Efe.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");Av=IC.default=Tfe;var $C={},kfe=hn;Object.defineProperty($C,"__esModule",{value:!0});var _v=$C.default=void 0,Afe=kfe(kn()),_fe=An,Rfe=(0,Afe.default)((0,_fe.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");_v=$C.default=Rfe;const Pfe=C(ho)(({theme:e})=>({cursor:"pointer",fontSize:e.fontSizes.bodySize})),OC=({isAllSelected:e,onClick:t})=>s(Je,{sx:{ml:3.5,my:.5},children:s(Pfe,{onClick:t,component:"button",underline:"hover",children:e?"Deselect all":"Select all"})}),rh="*",Ife=Mr(ks)(()=>({marginRight:"0.2em"})),$fe=({...e})=>s(Ar,{elevation:8,...e}),$1=({options:e,selectedItems:t,onChange:n,error:r,onFocus:o,entityName:a,selectAllEnabled:i=!0,description:l,required:c})=>{const[u,d]=p.useState(t.includes(rh)),f=x=>s(fn,{...x,error:Boolean(r),helperText:r,variant:"outlined",label:`${ie(a)}s`,placeholder:`Select ${a}s to filter by`,onFocus:o,"data-testid":`select-${a}-input`}),h=t.length>0&&t.length===e.length&&t[0]!==rh,m=(x,E)=>{E?(d(!0),n([rh])):(d(!1),n(t.includes(rh)?[]:t))},y=()=>{const x=h?[]:e.map(({value:E})=>E);n(x)},g=(x,E,{selected:A})=>T("li",{...x,children:[s(Ife,{icon:s(Av,{fontSize:"small"}),checkedIcon:s(_v,{fontSize:"small"}),checked:A}),E.label]}),v=({key:x,children:E})=>T(p.Fragment,{children:[s(X,{condition:e.length>2&&i,show:s(OC,{isAllSelected:h,onClick:y})}),E]},x),b=()=>s(mfe,{"data-testid":`select-all-${a}s`,control:s(ks,{checked:u,onChange:m}),label:`ALL current and future ${a}s`}),w=()=>T(Qb,{children:["Selecting ",a,"(s) here will filter events so that your addon will only receive events that are tagged with one of your"," ",a,"s."]});return T(zt.Fragment,{children:[T(LO,{children:[ie(a),"s",c?s(we,{component:"span",color:"error",children:"*"}):null]}),s(X,{condition:l!==void 0,show:s(Qb,{children:l})}),s(X,{condition:i,show:s(w,{})}),s(X,{condition:i,show:s(b,{})}),s(nv,{sx:{mb:8},disabled:u,multiple:!0,limitTags:2,options:e,disableCloseOnSelect:!0,getOptionLabel:({label:x})=>x,fullWidth:!0,groupBy:()=>"Select/Deselect all",renderGroup:v,PaperComponent:$fe,renderOption:g,renderInput:f,value:u?e:e.filter(x=>t.includes(x.value)),onChange:(x,E)=>{const A=E.map(({value:k})=>k);n(A)}})]})},MO=({editMode:e,provider:t,addon:n,fetch:r})=>{const{createAddon:o,updateAddon:a}=K3(),{setToastData:i,setToastApiError:l}=Ot(),c=ut(),u=ru(),{projects:d}=Di(),f=d.map(Z=>({value:Z.id,label:Z.name})),{environments:h}=iu(),m=h.map(Z=>({value:Z.name,label:Z.name})),y=t==null?void 0:t.events.map(Z=>({value:Z,label:Z})),{uiConfig:g}=Nt(),[v,b]=p.useState(n),[w,x]=p.useState({containsErrors:!1,parameters:{}}),E=e?"Update":"Create";let A=`${g.unleashUrl}/api/admin/addons${e?`/${v.id}`:""}`;const k=()=>`curl --location --request ${e?"PUT":"POST"} '${A}' \\
322
- --header 'Authorization: INSERT_API_KEY' \\
323
- --header 'Content-Type: application/json' \\
324
- --data-raw '${JSON.stringify(v,void 0,2)}'`;p.useEffect(()=>{t||r()},[r,t]),p.useEffect(()=>{b({...n})},[n.description,n.provider]),p.useEffect(()=>{t&&!v.provider&&b({...n,provider:t.name})},[t,n,v.provider]);const _=Z=>W=>{W.preventDefault(),b({...v,[Z]:W.target.value})},O=Z=>{Z.preventDefault(),b(({enabled:W})=>({...v,enabled:!W}))},L=Z=>W=>{W.preventDefault();const z=ws(W.target.value)===""?void 0:W.target.value;b(Vo(R=>{R.parameters[Z]=z}))},I=Z=>{b(Vo(W=>{W.events=Z})),x(W=>({...W,events:void 0}))},$=Z=>{b(Vo(W=>{W.projects=Z})),x(W=>({...W,projects:void 0}))},D=Z=>{b(Vo(W=>{W.environments=Z})),x(W=>({...W,environments:void 0}))},F=()=>{c(Bo)},U=async Z=>{if(Z.preventDefault(),!t)return;const W=PC(w);if(W.parameters={},W.containsErrors=!1,v.events.length===0&&(W.events="You must listen to at least one event",W.containsErrors=!0),t.parameters.forEach(z=>{const R=ws(v.parameters[z.name]);z.required&&!R&&(W.parameters[z.name]="This field is required",W.containsErrors=!0)}),W.containsErrors){x(W);return}try{e?(await a(v),c("/addons"),i({type:"success",title:"Addon updated successfully"})):(await o(v),c("/addons"),i({type:"success",confetti:!0,title:"Addon created successfully"}))}catch(z){const R=ft(z);l(R),x({parameters:{},general:R,containsErrors:!0})}},{name:Y,description:V,documentationUrl:te="https://unleash.github.io/docs/addons"}=t||{};return s(Nr,{title:`${E} ${Y} addon`,description:V||"",documentationLink:te,documentationLinkLabel:"Addon documentation",formatApiCode:k,children:T(dfe,{onSubmit:U,children:[T(pfe,{children:[T(Wl,{children:[s(v_,{size:"small",label:"Provider",name:"provider",value:v.provider,disabled:!0,hidden:!0,variant:"outlined"}),s(Cr,{control:s(Pi,{checked:v.enabled,onClick:O}),label:v.enabled?"Enabled":"Disabled"})]}),T(Wl,{children:[s(Qb,{children:"What is your addon description?"}),s(v_,{size:"small",style:{width:"80%"},minRows:4,multiline:!0,label:"Description",name:"description",placeholder:"",value:v.description,error:Boolean(w.description),helperText:w.description,onChange:_("description"),variant:"outlined"})]}),s(Wl,{children:s($1,{options:y||[],selectedItems:v.events,onChange:I,entityName:"event",selectAllEnabled:!1,error:w.events,description:"Select what events you want your addon to be notified about.",required:!0})}),s(Wl,{children:s($1,{options:f,selectedItems:v.projects||[],onChange:$,entityName:"project",selectAllEnabled:!0})}),s(Wl,{children:s($1,{options:m,selectedItems:v.environments||[],onChange:D,entityName:"environment",selectAllEnabled:!0})}),s(Wl,{children:s(wfe,{provider:t,config:v,parametersErrors:w.parameters,editMode:e,setParameterValue:L})})]}),s(fo,{}),s(ffe,{children:T(hfe,{theme:u,children:[s(Do,{type:"submit",color:"primary",variant:"contained",permission:e?Ob:c3,children:E}),s(rt,{type:"button",onClick:F,children:"Cancel"})]})})]})})},NO={provider:"",description:"",enabled:!0,parameters:{},events:[],projects:[],environments:[]},Ofe=()=>{const e=cr("providerId"),{providers:t,refetchAddons:n}=Sv(),r=!1,o=t.find(i=>i.name===e),a={...PC(NO),provider:o?o.name:""};return s(MO,{editMode:r,provider:o,fetch:n,addon:a})},Lfe=()=>{const e=cr("addonId"),{providers:t,addons:n,refetchAddons:r}=Sv(),o=!0,a=n.find(l=>l.id===Number(e))||{...PC(NO)},i=a?t.find(l=>l.name===a.provider):void 0;return s(MO,{editMode:o,provider:i,fetch:r,addon:a})},Mfe="_header_1nxx3_1",Nfe="_content_1nxx3_10",Dfe="_text_1nxx3_25",O1={header:Mfe,content:Nfe,text:Dfe},Bfe=()=>{const[e,t]=p.useState(!0),[n,r]=p.useState(""),[o,a]=p.useState(),[i,l]=p.useState(),{cloneFeatureToggle:c,validateFeatureToggleName:u}=pu(),d=cr("featureId"),f=cr("projectId"),{feature:h}=gl(f,d),m=ut(),y=w=>{const x=ws(w.target.value);l(x)},g=()=>{t(w=>!w)},v=async()=>{try{return await u(i),a(void 0),!0}catch(w){a(ft(w))}return!1},b=async w=>{if(w.preventDefault(),!!await v())try{await c(f,d,{name:i,replaceGroupId:e}),m($m(f,i))}catch(E){r(ft(E))}};return!h||!h.name?s("span",{children:"Toggle not found"}):T(Ar,{className:Sc.fullwidth,style:{overflow:"visible"},children:[s("div",{className:O1.header,children:T("h1",{children:["Copy ",d]})}),s(X,{condition:Boolean(n),show:s(Jt,{severity:"error",children:n})}),T("section",{className:O1.content,children:[T("p",{className:O1.text,children:["You are about to create a new feature toggle by cloning the configuration of feature toggle ",s(sn,{to:$m(f,d),children:d}),". You must give the new feature toggle a unique name before you can proceed."]}),T("form",{onSubmit:b,children:[s(fn,{label:"Name",name:"name",value:i||"",onBlur:v,onChange:y,error:o!==void 0,helperText:o,variant:"outlined",size:"small","aria-required":!0,autoFocus:!0}),s(Cr,{control:s(Pi,{value:e,checked:e,onChange:g}),label:"Replace groupId"}),T(rt,{type:"submit",color:"primary",variant:"contained",children:[s(A4,{}),"    Create from copy"]})]})]})]})},Ffe=()=>s(Jt,{severity:"error",children:"You need instance admin to access this section."}),zfe=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%"}})),jfe=({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 s(zfe,{children:s("div",{children:s("code",{children:n})})})};var Zb={},Ufe={get exports(){return Zb},set exports(e){Zb=e}};(function(e,t){(function(n,r){var o=r(n);e.exports=o})(Ma,function(n){var r=["N","E","A","D"];function o(O,L){O.super_=L,O.prototype=Object.create(L.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}})}function a(O,L){Object.defineProperty(this,"kind",{value:O,enumerable:!0}),L&&L.length&&Object.defineProperty(this,"path",{value:L,enumerable:!0})}function i(O,L,I){i.super_.call(this,"E",O),Object.defineProperty(this,"lhs",{value:L,enumerable:!0}),Object.defineProperty(this,"rhs",{value:I,enumerable:!0})}o(i,a);function l(O,L){l.super_.call(this,"N",O),Object.defineProperty(this,"rhs",{value:L,enumerable:!0})}o(l,a);function c(O,L){c.super_.call(this,"D",O),Object.defineProperty(this,"lhs",{value:L,enumerable:!0})}o(c,a);function u(O,L,I){u.super_.call(this,"A",O),Object.defineProperty(this,"index",{value:L,enumerable:!0}),Object.defineProperty(this,"item",{value:I,enumerable:!0})}o(u,a);function d(O,L,I){var $=O.slice((I||L)+1||O.length);return O.length=L<0?O.length+L:L,O.push.apply(O,$),O}function f(O){var L=typeof O;return L!=="object"?L:O===Math?"math":O===null?"null":Array.isArray(O)?"array":Object.prototype.toString.call(O)==="[object Date]"?"date":typeof O.toString=="function"&&/^\/.*\//.test(O.toString())?"regexp":"object"}function h(O){var L=0;if(O.length===0)return L;for(var I=0;I<O.length;I++){var $=O.charCodeAt(I);L=(L<<5)-L+$,L=L&L}return L}function m(O){var L=0,I=f(O);if(I==="array"){O.forEach(function(Y){L+=m(Y)});var $="[type: array, hash: "+L+"]";return L+h($)}if(I==="object"){for(var D in O)if(O.hasOwnProperty(D)){var F="[ type: object, key: "+D+", value hash: "+m(O[D])+"]";L+=h(F)}return L}var U="[ type: "+I+" ; value: "+O+"]";return L+h(U)}function y(O,L,I,$,D,F,U,Y){I=I||[],D=D||[],U=U||[];var V=D.slice(0);if(typeof F<"u"&&F!==null){if($){if(typeof $=="function"&&$(V,F))return;if(typeof $=="object"){if($.prefilter&&$.prefilter(V,F))return;if($.normalize){var te=$.normalize(V,F,O,L);te&&(O=te[0],L=te[1])}}}V.push(F)}f(O)==="regexp"&&f(L)==="regexp"&&(O=O.toString(),L=L.toString());var Z=typeof O,W=typeof L,z,R,N,ee,re=Z!=="undefined"||U&&U.length>0&&U[U.length-1].lhs&&Object.getOwnPropertyDescriptor(U[U.length-1].lhs,F),Se=W!=="undefined"||U&&U.length>0&&U[U.length-1].rhs&&Object.getOwnPropertyDescriptor(U[U.length-1].rhs,F);if(!re&&Se)I.push(new l(V,L));else if(!Se&&re)I.push(new c(V,O));else if(f(O)!==f(L))I.push(new i(V,O,L));else if(f(O)==="date"&&O-L!==0)I.push(new i(V,O,L));else if(Z==="object"&&O!==null&&L!==null){for(z=U.length-1;z>-1;--z)if(U[z].lhs===O){ee=!0;break}if(ee)O!==L&&I.push(new i(V,O,L));else{if(U.push({lhs:O,rhs:L}),Array.isArray(O)){for(Y&&(O.sort(function(xe,Ee){return m(xe)-m(Ee)}),L.sort(function(xe,Ee){return m(xe)-m(Ee)})),z=L.length-1,R=O.length-1;z>R;)I.push(new u(V,z,new l(void 0,L[z--])));for(;R>z;)I.push(new u(V,R,new c(void 0,O[R--])));for(;z>=0;--z)y(O[z],L[z],I,$,V,z,U,Y)}else{var ce=Object.keys(O),Ce=Object.keys(L);for(z=0;z<ce.length;++z)N=ce[z],ee=Ce.indexOf(N),ee>=0?(y(O[N],L[N],I,$,V,N,U,Y),Ce[ee]=null):y(O[N],void 0,I,$,V,N,U,Y);for(z=0;z<Ce.length;++z)N=Ce[z],N&&y(void 0,L[N],I,$,V,N,U,Y)}U.length=U.length-1}}else O!==L&&(Z==="number"&&isNaN(O)&&isNaN(L)||I.push(new i(V,O,L)))}function g(O,L,I,$,D){var F=[];if(y(O,L,F,$,null,null,null,D),I)for(var U=0;U<F.length;++U)I(F[U]);return F}function v(O,L,I,$,D,F,U){return y(O,L,I,$,D,F,U,!0)}function b(O,L,I,$){var D=$?function(U){U&&$.push(U)}:void 0,F=g(O,L,D,I);return $||(F.length?F:void 0)}function w(O,L,I,$){var D=$?function(U){U&&$.push(U)}:void 0,F=g(O,L,D,I,!0);return $||(F.length?F:void 0)}function x(O,L,I){if(I.path&&I.path.length){var $=O[L],D,F=I.path.length-1;for(D=0;D<F;D++)$=$[I.path[D]];switch(I.kind){case"A":x($[I.path[D]],I.index,I.item);break;case"D":delete $[I.path[D]];break;case"E":case"N":$[I.path[D]]=I.rhs;break}}else switch(I.kind){case"A":x(O[L],I.index,I.item);break;case"D":O=d(O,L);break;case"E":case"N":O[L]=I.rhs;break}return O}function E(O,L,I){if(typeof I>"u"&&L&&~r.indexOf(L.kind)&&(I=L),O&&I&&I.kind){for(var $=O,D=-1,F=I.path?I.path.length-1:0;++D<F;)typeof $[I.path[D]]>"u"&&($[I.path[D]]=typeof I.path[D+1]<"u"&&typeof I.path[D+1]=="number"?[]:{}),$=$[I.path[D]];switch(I.kind){case"A":I.path&&typeof $[I.path[D]]>"u"&&($[I.path[D]]=[]),x(I.path?$[I.path[D]]:$,I.index,I.item);break;case"D":delete $[I.path[D]];break;case"E":case"N":$[I.path[D]]=I.rhs;break}}}function A(O,L,I){if(I.path&&I.path.length){var $=O[L],D,F=I.path.length-1;for(D=0;D<F;D++)$=$[I.path[D]];switch(I.kind){case"A":A($[I.path[D]],I.index,I.item);break;case"D":$[I.path[D]]=I.lhs;break;case"E":$[I.path[D]]=I.lhs;break;case"N":delete $[I.path[D]];break}}else switch(I.kind){case"A":A(O[L],I.index,I.item);break;case"D":O[L]=I.lhs;break;case"E":O[L]=I.lhs;break;case"N":O=d(O,L);break}return O}function k(O,L,I){if(O&&L&&I&&I.kind){var $=O,D,F;for(F=I.path.length-1,D=0;D<F;D++)typeof $[I.path[D]]>"u"&&($[I.path[D]]={}),$=$[I.path[D]];switch(I.kind){case"A":A($[I.path[D]],I.index,I.item);break;case"D":$[I.path[D]]=I.lhs;break;case"E":$[I.path[D]]=I.lhs;break;case"N":delete $[I.path[D]];break}}}function _(O,L,I){if(O&&L){var $=function(D){(!I||I(O,L,D))&&E(O,L,D)};g(O,L,$)}}return Object.defineProperties(b,{diff:{value:b,enumerable:!0},orderIndependentDiff:{value:w,enumerable:!0},observableDiff:{value:g,enumerable:!0},orderIndependentObservableDiff:{value:v,enumerable:!0},orderIndepHash:{value:m,enumerable:!0},applyDiff:{value:_,enumerable:!0},applyChange:{value:E,enumerable:!0},revertChange:{value:k,enumerable:!0},isConflict:{value:function(){return typeof $conflict<"u"},enumerable:!0}}),b.DeepDiff=b,n&&(n.DeepDiff=b),b})})(Ufe);const Wfe={A:" ",E:" ",D:"-",N:"+"},Rv=({entry:e})=>{const t=ru(),n={A:{color:t.palette.code.edited},E:{color:t.palette.code.edited},D:{color:t.palette.code.diffSub},N:{color:t.palette.code.diffAdd}},r=e.data&&e.preData?Zb.diff(e.preData,e.data):void 0,o=(l,c)=>{let u;return l.lhs!==void 0?u=T("div",{style:n.D,children:["- ",c,": ",JSON.stringify(l.lhs)]}):l.rhs!==void 0&&(u=T("div",{style:n.N,children:["+ ",c,": ",JSON.stringify(l.rhs)]})),u},a=(l,c)=>{var f;let u;const d=((f=l.path)==null?void 0:f.join("."))??l.index;return l.item?u=o(l.item,d):l.lhs!==void 0&&l.rhs!==void 0?u=T("div",{children:[T("div",{style:n.D,children:["- ",d,": ",JSON.stringify(l.lhs)]}),T("div",{style:n.N,children:["+ ",d,": ",JSON.stringify(l.rhs)]})]}):u=T("div",{style:n[l.kind],children:[Wfe[l.kind]," ",d,":"," ",JSON.stringify(l.rhs||l.item)]}),{key:d.toString(),value:s("div",{children:u},c)}};let i;if(r)i=r.map(a).sort((l,c)=>l.key.localeCompare(c.key)).map(({value:l})=>l);else{const l=e.data||e.preData;i=[s("div",{style:e.data?n.N:n.D,children:JSON.stringify(l,null,2)},0)]}return s("pre",{style:{overflowX:"auto",overflowY:"hidden"},tabIndex:0,children:s("code",{children:i.length===0?"(no changes)":i})})},Ds=C("dt")(({theme:e})=>({color:e.palette.text.secondary})),Hfe=C("strong")(({theme:e})=>({fontWeight:"inherit",color:e.palette.text.secondary})),Vfe=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)}}})),DO=C("div")(({theme:e})=>({backgroundColor:"white",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}})),Gfe=({entry:e})=>{const{locationSettings:t}=oi(),n=Ux(e.createdAt,t.locale);return T(Vfe,{children:[T("dl",{children:[s(Ds,{children:"Event id:"}),s("dd",{children:e.id}),s(Ds,{children:"Changed at:"}),s("dd",{children:n}),s(Ds,{children:"Event:"}),s("dd",{children:e.type}),s(Ds,{children:"Changed by:"}),s("dd",{title:e.createdBy,children:e.createdBy}),s(X,{condition:Boolean(e.project),show:T(ke,{children:[s(Ds,{children:"Project:"}),s("dd",{children:s(sn,{to:`/projects/${e.project}`,children:e.project})})]})}),s(X,{condition:Boolean(e.featureName),show:T(ke,{children:[s(Ds,{children:"Feature:"}),s("dd",{children:s(sn,{to:`/projects/${e.project}/features/${e.featureName}`,children:e.featureName})})]})}),s(X,{condition:Boolean(e.environment),show:T(ke,{children:[s(Ds,{children:"Environment:"}),s("dd",{children:e.environment})]})})]}),s(X,{condition:e.data||e.preData,show:T(DO,{children:[s(Hfe,{children:"Changes:"}),s(Rv,{entry:e})]})})]})},qfe=()=>{const[e,t]=Yfe();return{eventSettings:e,setEventSettings:t}},Kfe=()=>({showData:!1}),Yfe=jx(`${$i}:useEventSettings:v1`,Kfe()),y_=jt("api/admin/events/search"),Xfe=(e,t,n)=>{const[r,o]=p.useState(),[a,i]=p.useState(0),[l,c]=p.useState(0),u=p.useMemo(()=>({project:e,feature:t,query:n,limit:50}),[e,t,n]),{data:d,error:f,isValidating:h}=vn([y_,u,l],()=>Jfe(y_,{...u,offset:l}));p.useEffect(()=>{c(0),i(0),o(void 0)},[u]),p.useEffect(()=>{d&&(o(y=>[...(y==null?void 0:y.slice(0,l))||[],...d.events]),d.totalEvents&&i(d.totalEvents))},[d]);const m=p.useCallback(()=>{r&&!h&&c(r.length)},[r,h]);return{events:r,loading:!f&&!d,fetchNextPage:m,totalEvents:a,error:f}},Jfe=(e,t)=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(Tn("Event history")).then(n=>n.json()),Qfe=e=>{const t=p.useRef(null);return p.useEffect(()=>{if(t.current){const n=o=>{o[0].isIntersecting&&e()},r=new IntersectionObserver(n);return r.observe(t.current),()=>r.disconnect()}},[e]),t},Zfe=Mr("ul")(({theme:e})=>({listStyleType:"none",margin:0,padding:0,display:"grid",gap:e.spacing(2)})),ehe=({title:e,project:t,feature:n,displayInline:r})=>{const[o,a]=p.useState(""),{events:i,totalEvents:l,fetchNextPage:c}=Xfe(t,n,o),u=Qfe(c),{eventSettings:d,setEventSettings:f}=qfe(),h=Tr(Bc.breakpoints.down("md")),[m,y]=p.useState();p.useEffect(()=>i&&y(i),[i]);const g=()=>{f(A=>({showData:!A.showData}))},v=s(vo,{onChange:a,debounceTime:500}),b=s(Cr,{label:"Full events",control:s(Pi,{checked:d.showData,onChange:g,color:"primary"})});let E=`${(i==null?void 0:i.length)||0} of ${l||0}`;return T(gr,{disablePadding:r,disableBorder:r,header:s(En,{title:`${e} (${E})`,actions:T(ke,{children:[b,!h&&v]}),children:h&&v}),children:[r&&s(Je,{sx:{mt:4}}),s(X,{condition:Boolean(m&&m.length===0),show:()=>s("p",{children:"No events found."})}),s(X,{condition:Boolean(m&&m.length>0),show:()=>s(Zfe,{children:m==null?void 0:m.map(A=>s(X,{condition:d.showData,show:()=>s(jfe,{entry:A}),elseShow:()=>s(Gfe,{entry:A})},A.id))})}),s("div",{ref:u})]})},the=()=>{const{hasAccess:e}=p.useContext(Zr);return s(X,{condition:e(Ca),show:()=>s(ehe,{title:"Event log"}),elseShow:s(Ffe,{})})},BO=(e="",t="",n=[])=>{const[r,o]=p.useState(e),[a,i]=p.useState(t),[l,c]=p.useState(n),[u,d]=p.useState({}),{strategies:f}=lu();return p.useEffect(()=>{o(e)},[e]),p.useEffect(()=>{i(t)},[t]),p.useEffect(()=>{c(n)},[JSON.stringify(n)]),{strategyName:r,strategyDesc:a,params:l,setStrategyName:o,setStrategyDesc:i,setParams:c,getStrategyPayload:()=>({name:r,description:a,parameters:l}),validateStrategyName:()=>r.length===0?(d(v=>({...v,name:"Name can not be empty."})),!1):f.some(v=>v.name===r)?(d(v=>({...v,name:"A strategy name with that name already exist"})),!1):!0,validateParams:()=>{let v=!0;for(const[b,w]of Object.entries(l))l.forEach((x,E)=>{x.name.length===0&&(d(A=>({...A,[`paramName${E}`]:"Name can not be empty"})),v=!1)});return v},setErrors:d,clearErrors:()=>{d({})},errors:u}},nhe=[{key:"string",label:"string"},{key:"percentage",label:"percentage"},{key:"list",label:"list"},{key:"number",label:"number"},{key:"boolean",label:"boolean"}],rhe=C("div")(({theme:e})=>({maxWidth:"400px",margin:e.spacing(2,0)})),ohe=C(fo)(({theme:e})=>({borderStyle:"dashed",margin:e.spacing(2,0,3,0),borderColor:e.palette.neutral.border})),ahe=C("p")(({theme:e})=>({minWidth:"365px",width:"100%",marginBottom:e.spacing(2)})),ihe=C("div")(({theme:e})=>({display:"flex",alignItems:"center",marginBottom:e.spacing(2)})),she=C(_r)(({theme:e})=>({minWidth:"365px",width:"100%"})),lhe=C(su)(({theme:e})=>({minWidth:"365px",width:"100%",marginBottom:e.spacing(2)})),che=C(_r)(({theme:e})=>({minWidth:"365px",marginBottom:e.spacing(2)})),uhe=C(Cr)(({theme:e})=>({marginTop:e.spacing(-1)})),dhe=({set:e,input:t,index:n,params:r,setParams:o,errors:a})=>{const i=l=>{e({type:l})};return T(rhe,{children:[s(ohe,{}),s(X,{condition:n===0,show:T(ahe,{children:["Parameters let you provide arguments to your strategy that it can access for evaluation. Read more in the"," ",s("a",{href:"https://docs.getunleash.io/reference/custom-activation-strategies#parameter-types",target:"_blank",rel:"noreferrer",children:"parameter types documentation"}),"."]})}),T(ihe,{children:[s(she,{autoFocus:!0,label:`Parameter name ${n+1}*`,onChange:l=>e({name:l.target.value}),value:t.name,error:Boolean(a==null?void 0:a[`paramName${n}`]),errorText:a==null?void 0:a[`paramName${n}`]}),s(_t,{title:"Remove parameter",arrow:!0,children:s(en,{onClick:()=>{o(r.filter((l,c)=>c!==n))},size:"large",children:s(na,{})})})]}),s(lhe,{label:"Type*",name:"type",options:nhe,value:t.type,onChange:i,id:`prop-type-${n}-select`}),s(che,{rows:2,multiline:!0,label:`Parameter name ${n+1} description`,onChange:({target:l})=>e({description:l.value}),value:t.description}),s(uhe,{control:s(ks,{checked:Boolean(t.required),onChange:()=>e({required:!t.required})}),label:"Required"})]})},phe=({input:e=[],updateParameter:t,setParams:n,errors:r})=>s("div",{style:{marginTop:"0.5rem"},children:e.map((o,a)=>s(dhe,{params:e,set:i=>t(a,i),index:a,input:e[a],setParams:n,errors:r},a))}),fhe=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%"})),hhe=C("div")(({theme:e})=>({maxWidth:400})),b_=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),w_=C(_r)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),mhe=C(rt)(({theme:e})=>({color:e.palette.primary.dark})),ghe=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end"})),vhe=C(rt)(({theme:e})=>({marginLeft:e.spacing(3)})),FO=({children:e,handleSubmit:t,handleCancel:n,strategyName:r,strategyDesc:o,params:a,setParams:i,setStrategyName:l,validateStrategyName:c,setStrategyDesc:u,errors:d,mode:f,clearErrors:h})=>{const m=(g,v)=>{let b={...a[g]};a[g]=Object.assign({},b,v),i(w=>[...w])},y=()=>{i(g=>[...g,{name:"",type:"string",description:"",required:!1}])};return T(fhe,{onSubmit:t,children:[T(hhe,{children:[s(b_,{children:"What would you like to call your strategy?"}),s(w_,{disabled:f==="Edit",autoFocus:!0,label:"Strategy name*",value:r,onChange:g=>l(ws(g.target.value)),error:Boolean(d.name),errorText:d.name,onFocus:h,onBlur:c}),s(b_,{children:"What is your strategy description?"}),s(w_,{label:"Strategy description",value:o,onChange:g=>u(g.target.value),rows:2,multiline:!0}),s(phe,{input:a,updateParameter:m,setParams:i,errors:d}),s(mhe,{onClick:g=>{g.preventDefault(),y()},variant:"outlined",color:"secondary",startIcon:s(xa,{}),children:"Add parameter"})]}),T(ghe,{children:[e,s(vhe,{type:"button",onClick:n,children:"Cancel"})]})]})},yhe=()=>{const{setToastData:e,setToastApiError:t}=Ot(),{uiConfig:n}=Nt(),r=ut(),{strategyName:o,strategyDesc:a,params:i,setParams:l,setStrategyName:c,setStrategyDesc:u,getStrategyPayload:d,validateStrategyName:f,validateParams:h,clearErrors:m,setErrors:y,errors:g}=BO(),{createStrategy:v,loading:b}=uC(),{refetchStrategies:w}=lu();return s(Nr,{loading:b,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.
325
- 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' \\
326
- --header 'Authorization: INSERT_API_KEY' \\
327
- --header 'Content-Type: application/json' \\
328
- --data-raw '${JSON.stringify(d(),void 0,2)}'`,children:s(FO,{errors:g,handleSubmit:async k=>{if(m(),k.preventDefault(),f()&&h()){const O=d();try{await v(O),w(),r(`/strategies/${o}`),e({title:"Strategy created",text:"Successfully created strategy",confetti:!0,type:"success"})}catch(L){t(ft(L))}}},handleCancel:()=>{r(Bo)},strategyName:o,setStrategyName:c,validateStrategyName:f,strategyDesc:a,setStrategyDesc:u,params:i,setParams:l,mode:"Create",setErrors:y,clearErrors:m,children:s(du,{name:"strategy",permission:km,children:"Create strategy"})})})},LC=e=>{const{data:t,error:n,mutate:r}=vn(e?jt(`api/admin/strategies/${e}`):null,bhe),o=p.useCallback(()=>{r().catch(console.warn)},[r]);return{strategyDefinition:t,refetchStrategy:o,loading:!n&&!t,error:n}},bhe=e=>fetch(e).then(Tn("Strategy")).then(t=>t.json()),whe=()=>{const{setToastData:e,setToastApiError:t}=Ot(),{uiConfig:n}=Nt(),r=ut(),o=cr("name"),{strategyDefinition:a}=LC(o),{strategyName:i,strategyDesc:l,params:c,setParams:u,setStrategyName:d,setStrategyDesc:f,getStrategyPayload:h,validateParams:m,clearErrors:y,setErrors:g,errors:v}=BO(a==null?void 0:a.name,a==null?void 0:a.description,a==null?void 0:a.parameters),{updateStrategy:b,loading:w}=uC(),{refetchStrategies:x}=lu();return s(Nr,{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.
329
- 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}' \\
330
- --header 'Authorization: INSERT_API_KEY' \\
331
- --header 'Content-Type: application/json' \\
332
- --data-raw '${JSON.stringify(h(),void 0,2)}'`,children:s(FO,{errors:v,handleSubmit:async _=>{if(y(),_.preventDefault(),m()){const O=h();try{await b(O),r(`/strategies/${i}`),e({type:"success",title:"Success",text:"Successfully updated strategy"}),x()}catch(L){t(ft(L))}}},handleCancel:()=>{r(Bo)},strategyName:i,setStrategyName:d,strategyDesc:l,setStrategyDesc:f,params:c,setParams:u,mode:"Edit",setErrors:g,clearErrors:y,children:s(Al,{permission:fv})})})},She=()=>{const{makeRequest:e,createRequest:t}=Un({propagateErrors:!0});return{setSplashSeen:async r=>{const o=`api/admin/splash/${r}`,a=t(o,{method:"POST"});try{return await e(a.caller,a.id)}catch{console.log("An exception was caught and handled.")}}}},zO=()=>T(Jt,{severity:"warning",children:["Remember to update your Unleash client! New operators require new SDK versions. ",s(xhe,{}),"."]}),xhe=()=>s("a",{href:"https://docs.getunleash.io/reference/strategy-constraints#strategy-constraint-operators",target:"_blank",rel:"noreferrer",style:{color:"inherit"},children:"Read more"}),Che=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})),Ehe=C("div")(({theme:e})=>({position:"relative",padding:e.spacing(4),borderRadius:e.spacing(1),backgroundColor:e.palette.primary.main,color:"white",[e.breakpoints.up("md")]:{padding:e.spacing(8)}})),The=C("header")(({theme:e})=>({textAlign:"center"})),khe=C("h1")(({theme:e})=>({fontWeight:"inherit"})),Ahe=C(en)(({theme:e})=>({position:"absolute",top:0,right:0,color:"inherit"})),_he=C("p")(({theme:e})=>({maxWidth:e.spacing(64),margin:e.spacing(3,"auto",0,"auto")})),Rhe=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})),Phe=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)"}})),Ihe=C("footer")(({theme:e})=>({display:"grid",gap:e.spacing(4),textAlign:"center",justifyItems:"center"})),$he=C("a")(({theme:e})=>({color:"inherit"})),Ohe=()=>{const e=ut();return T(Che,{children:[T(Ehe,{children:[T(The,{children:[s(khe,{children:"New strategy operators"}),s(Ahe,{onClick:()=>e("/"),size:"large",children:s(C4,{titleAccess:"Close"})}),s(_he,{children:"We've added some new feature strategy constraint operators. Fine-tune your feature targeting like never before."})]}),T(Rhe,{children:[s("p",{children:"For example:"}),T(Phe,{children:[T("li",{children:[s("span",{children:"Toggle features at dates: "}),T("span",{children:[s("strong",{children:"DATE_BEFORE"})," ",s("strong",{children:"DATE_AFTER"})]})]}),T("li",{children:[s("span",{children:"Toggle features for versions: "}),T("span",{children:[s("strong",{children:"SEMVER_EQ"})," ",s("strong",{children:"SEMVER_GT"})," ",s("strong",{children:"SEMVER_LT"})]})]}),T("li",{children:[s("span",{children:"Toggle features for strings: "}),T("span",{children:[s("strong",{children:"STR_CONTAINS"})," ",s("strong",{children:"STR_ENDS_WITH"})," ",s("strong",{children:"STR_STARTS_WITH"})]})]}),T("li",{children:[s("span",{children:"Toggle features for numbers: "}),T("span",{children:[s("strong",{children:"NUM_GT"})," ",s("strong",{children:"NUM_GTE"})," ",s("strong",{children:"NUM_LT"})," ",s("strong",{children:"NUM_LTE"})]})]})]})]}),T(Ihe,{children:[T("p",{children:[T($he,{href:"https://docs.getunleash.io/reference/strategy-constraints#numeric-operators",target:"_blank",rel:"noreferrer",children:["Read all about operators in our in-depth"," ",s("strong",{children:"docs"})]}),"."]}),s("p",{children:s(rt,{sx:t=>({background:"white !important",color:t.palette.primary.main}),variant:"contained",component:sn,to:"/",children:"Fine, whatever, I have work to do!"})})]})]}),s(zO,{})]})},jO=()=>{const e=Jp();return{splash:e.data&&"splash"in e.data?e.data.splash:void 0,refetchSplash:e.refetchAuth,loading:e.loading,error:e.error}},Lhe=["operators"],Mhe=[],Nhe=()=>{const e=cr("splashId"),t=Bhe(e),{refetchSplash:n}=jO(),{setSplashSeen:r}=She();if(Dhe("Escape","/"),p.useEffect(()=>{e&&t&&r(e).then(()=>n()).catch(console.warn)},[e,t]),!t)return null;switch(e){case"operators":return s(Ohe,{});default:return s(Tl,{to:"/",replace:!0})}},Dhe=(e,t)=>{const n=ut();p.useEffect(()=>{const r=o=>{o.code===e&&n(t)};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[e,t,n])},Bhe=e=>Lhe.includes(e),UO=({onSubmit:e,onCancel:t,modal:n})=>{const{setToastData:r,setToastApiError:o}=Ot(),{uiConfig:a}=Nt(),{contextName:i,contextDesc:l,legalValues:c,stickiness:u,setContextName:d,setContextDesc:f,setLegalValues:h,setStickiness:m,getContextPayload:y,validateContext:g,clearErrors:v,setErrors:b,errors:w}=xO(),{createContext:x,loading:E}=kv(),{refetchUnleashContext:A}=_l();return s(Nr,{loading:E,title:"Create context",description:`Context fields are a basic building block used in Unleash to control roll-out.
333
- 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 '${a.unleashUrl}/api/admin/context' \\
334
- --header 'Authorization: INSERT_API_KEY' \\
335
- --header 'Content-Type: application/json' \\
336
- --data-raw '${JSON.stringify(y(),void 0,2)}'`,modal:n,children:s(SO,{errors:w,handleSubmit:async O=>{if(O.preventDefault(),O.stopPropagation(),await g()){const I=y();try{await x(I),A(),r({title:"Context created",confetti:!0,type:"success"}),e()}catch($){o(ft($))}}},onCancel:t,contextName:i,setContextName:d,contextDesc:l,setContextDesc:f,legalValues:c,setLegalValues:h,stickiness:u,setStickiness:m,mode:"Create",validateContext:g,setErrors:b,clearErrors:v,children:s(du,{name:"context",permission:Am})})})},Fhe=()=>{const e=ut();return s(UO,{onSubmit:()=>e("/context"),onCancel:()=>e(Bo)})},MC=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0});return{createSegment:async c=>{const u=t(NC(),{method:"POST",body:JSON.stringify(c)});return e(u.caller,u.id)},deleteSegment:async c=>{const u=t(S_(c),{method:"DELETE"});return e(u.caller,u.id)},updateSegment:async(c,u)=>{const d=t(S_(c),{method:"PUT",body:JSON.stringify(u)});return e(d.caller,d.id)},setStrategySegments:async c=>{const u=t(zhe(),{method:"POST",body:JSON.stringify(c)});return e(u.caller,u.id)},errors:n,loading:r}},NC=()=>"api/admin/segments",S_=e=>`${NC()}/${e}`,zhe=()=>`${NC()}/strategies`,DC=e=>{const t=Boolean(e&&e.length===0),[n,r]=p.useState(t),{validateConstraint:o}=pu();return p.useEffect(()=>{if(!e)return;const a=e.map(i=>o(i));Promise.all(a).then(()=>r(!0)).catch(()=>r(!1))},[e]),n},Rl=e=>{var l;const{uiConfig:t}=Nt(),n=jt(e?`api/admin/segments/strategies/${e}`:"api/admin/segments"),{data:r,error:o,mutate:a}=eC(Boolean((l=t.flags)==null?void 0:l.SE),[],n,()=>jhe(n),{refreshInterval:15*1e3}),i=p.useCallback(()=>{a().catch(console.warn)},[a]);return{segments:r,refetchSegments:i,loading:!o&&!r,error:o}},jhe=async e=>fetch(e).then(Tn("Segments")).then(t=>t.json()).then(t=>t.segments),Uhe=(e,t)=>{const[n,r]=p.useState(),o=e!==t;return p.useEffect(()=>{r(void 0),e&&o&&Whe(e).then(Hhe).then(r).catch(()=>r(void 0))},[e,o]),n},Whe=e=>fetch(jt("api/admin/segments/validate"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e})}),Hhe=async e=>e.ok?void 0:(await e.json()).details[0].message,WO=(e="",t="",n=[])=>{const[r,o]=p.useState(e),[a,i]=p.useState(t),[l,c]=p.useState(n),[u,d]=p.useState({}),f=Uhe(r,e);return p.useEffect(()=>{o(e)},[e]),p.useEffect(()=>{i(t)},[t]),p.useEffect(()=>{c(n)},[JSON.stringify(n)]),p.useEffect(()=>{d(y=>({...y,name:f}))},[f]),{name:r,setName:o,description:a,setDescription:i,constraints:l,setConstraints:c,getSegmentPayload:()=>({name:r,description:a,constraints:l}),clearErrors:()=>{d({})},errors:u}},Vhe=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%"})),Ghe=C("div")(({theme:e})=>({maxWidth:"400px"})),x_=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),C_=C(_r)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),qhe=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end"})),Khe=C(rt)(({theme:e})=>({marginLeft:e.spacing(3)})),Yhe=({children:e,name:t,description:n,setName:r,setDescription:o,errors:a,clearErrors:i,setCurrentStep:l})=>{const c=ut();return T(Vhe,{children:[T(Ghe,{children:[s(x_,{children:"What is the segment name?"}),s(C_,{label:"Segment name",value:t,onChange:u=>r(u.target.value),error:Boolean(a.name),errorText:a.name,autoFocus:!0,required:!0,"data-testid":aee}),s(x_,{children:"What is the segment description?"}),s(C_,{label:"Description (optional)",value:n,onChange:u=>o(u.target.value),error:Boolean(a.description),errorText:a.description,"data-testid":iee})]}),T(qhe,{children:[s(rt,{type:"button",variant:"contained",color:"primary",onClick:()=>l(2),disabled:t.length===0||Boolean(a.name),"data-testid":see,children:"Next"}),s(Khe,{type:"button",onClick:()=>{c("/segments")},children:"Cancel"})]})]})},E_=250,HO=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)"}),Xhe=C(HO)({width:1300}),Jhe=C(en)(({theme:e})=>({zIndex:1,position:"absolute",top:e.spacing(3),right:e.spacing(3)})),VO=({open:e,onClose:t,label:n,children:r})=>s(Vp,{open:e,onClose:t,closeAfterTransition:!0,"aria-label":n,BackdropComponent:tx,BackdropProps:{timeout:E_},"data-testid":Cee,sx:{minHeight:"100vh"},children:s(ex,{timeout:E_,in:e,children:r})}),BC=e=>s(VO,{...e,children:s(Xhe,{children:e.children})}),T_=e=>s(VO,{...e,children:T(HO,{children:[s(_t,{title:"Close",arrow:!0,describeChild:!0,children:s(Jhe,{onClick:e.onClose,children:s(uv,{})})}),e.children]})}),FC="NOT_IN",Pv="IN",zC="STR_ENDS_WITH",jC="STR_STARTS_WITH",UC="STR_CONTAINS",WC="NUM_EQ",HC="NUM_GT",VC="NUM_GTE",GC="NUM_LT",qC="NUM_LTE",Iv="DATE_AFTER",KC="DATE_BEFORE",YC="SEMVER_EQ",XC="SEMVER_GT",JC="SEMVER_LT",Qhe=[Pv,FC,UC,jC,zC,WC,HC,VC,GC,qC,KC,Iv,YC,XC,JC],Si=[UC,jC,zC],sl=[Pv,FC],xc=[WC,HC,VC,GC,qC],Ko=[KC,Iv],Cc=[YC,XC,JC],GO=[...Cc,...Ko,...xc];[...Si,...sl];const Zhe=[...Si,...Ko,...GO],bn=(e,t)=>e.some(n=>n===t),eme=C("div")(({theme:e})=>({padding:e.spacing(2),backgroundColor:e.palette.neutral.light})),tme=C("div")(({theme:e})=>({display:"flex",alignItems:"center",marginTop:e.spacing(2),borderTop:`1px solid ${e.palette.divider}`,width:"100%",padding:e.spacing(2)})),nme=C("div")({marginLeft:"auto"}),rme=C(rt)(({theme:e})=>({marginRight:e.spacing(1),minWidth:"125px"})),ome=C(rt)(({theme:e})=>({marginLeft:e.spacing(1),minWidth:"125px"})),ame=({localConstraint:e,children:t,triggerTransition:n,setAction:r,onSubmit:o})=>T(ke,{children:[T(eme,{children:[s(X,{condition:bn(Zhe,e.operator),show:s(zO,{})}),t]}),s(tme,{children:T(nme,{children:[s(rme,{type:"button",onClick:o,variant:"contained",color:"primary",children:"Save"}),s(ome,{onClick:()=>{r(yL),n()},children:"Cancel"})]})})]}),qO=({compact:e})=>s(Je,{sx:{backgroundColor:"primary.light",p:e?"1px":"2px",borderRadius:"50%",width:e?"18px":"24px",height:e?"18px":"24px",marginRight:"13px"},children:s(FZ,{sx:{fill:"white",display:"block",width:e?"16px":"20px",height:e?"16px":"20px"}})}),ime=(e,t)=>{const n=`To satisfy this constraint, values passed into the SDK as ${t} must`;if(e===Pv)return`${n} include:`;if(e===FC)return`${n} not include:`;if(e===zC)return`${n} end with:`;if(e===jC)return`${n} start with:`;if(e===UC)return`${n} contain:`;if(e===WC)return`${n} match:`;if(e===HC)return`${n} be greater than:`;if(e===VC)return`${n} be greater than or equal to:`;if(e===GC)return`${n} be less than:`;if(e===qC)return`${n} be less than or equal to:`;if(e===Iv)return`${n} be after the following date`;if(e===KC)return`${n} be before the following date:`;if(e===YC)return`${n} match the following version:`;if(e===XC)return`${n} be greater than the following version:`;if(e===JC)return`${n} be less than the following version:`},ew=e=>sme[e],sme={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"},lme=C("div")(({theme:e})=>({lineHeight:1.1,marginTop:-2,marginBottom:-10})),k_=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallBody})),A_=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallerBody,color:e.palette.neutral.main,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"})),cme=C(Ri)(({theme:e})=>({[e.breakpoints.between(1101,1365)]:{width:"170px",marginRight:e.spacing(.5)}})),ume=C(vs,{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.tertiary.contrast}}:{}),dme=C("div")(({theme:e})=>({lineHeight:1.2})),pme=({options:e,value:t,onChange:n})=>{const[r,o]=p.useState(!1);return T(cme,{variant:"outlined",size:"small",fullWidth:!0,children:[s(Gp,{htmlFor:"operator-select",children:"Operator"}),s(qp,{id:"operator-select",name:"operator",label:"Operator",value:t,open:r,onOpen:()=>o(!0),onClose:()=>o(!1),onChange:l=>{n(l.target.value)},renderValue:()=>T(lme,{children:[s(k_,{children:t}),s(A_,{children:ew(t)})]}),children:e.map(l=>s(ume,{value:l,separator:fme(e,l),children:T(dme,{children:[s(k_,{children:l}),s(A_,{children:ew(l)})]})},l))})]})},fme=(e,t)=>t===e[0]?!1:hme.some(n=>n[0]===t),hme=[sl,Si,xc,Ko,Cc],Ep="currentTime",KO=e=>Qhe.filter(t=>!(bn(Ko,t)&&e!==Ep||!bn(Ko,t)&&e===Ep)),tw=e=>p.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},p.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"})),__=e=>p.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},p.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"})),YO=Mr(en)(({theme:e})=>({width:"28px",minWidth:"28px",maxWidth:"28px",height:"auto",backgroundColor:e.palette.tertiary.background,borderRadius:e.shape.borderRadius,padding:"0 1px 0",marginRight:"1rem","&:hover":{background:e.palette.tertiary.contrast[300]},[e.breakpoints.between(1101,1365)]:{marginRight:"0.5rem",alignItems:"center"}})),XO=Mr(en)(({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"}})),nw=({darkmode:e,lightmode:t})=>{const{themeMode:n}=p.useContext(As);return s(X,{condition:n==="dark",show:e,elseShow:t})},mme=({localConstraint:e,setInvertedOperator:t})=>{const n=cn();return s(_t,{title:Boolean(e.inverted)?"Remove negation":"Negate operator",arrow:!0,children:s(Je,{sx:{display:"flex",alignItems:"stretch"},children:s(X,{condition:Boolean(e.inverted),show:s(XO,{onClick:t,disableRipple:!0,children:s(nw,{darkmode:s(tw,{style:{fill:n.palette.background.paper}}),lightmode:s(tw,{})})}),elseShow:s(YO,{onClick:t,disableRipple:!0,children:s(nw,{darkmode:s(__,{style:{fill:n.palette.background.paper}}),lightmode:s(__,{})})})})})})},JO=e=>p.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},p.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"})),gme=e=>p.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},p.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"})),vme=({localConstraint:e,setCaseInsensitive:t})=>s(_t,{title:Boolean(e.caseInsensitive)?"Make it case sensitive":"Make it case insensitive",arrow:!0,children:s(Je,{sx:{display:"flex",alignItems:"stretch"},children:s(X,{condition:Boolean(e.caseInsensitive),show:s(YO,{onClick:t,disableRipple:!0,children:s(gme,{})}),elseShow:s(XO,{onClick:t,disableRipple:!0,children:s(JO,{})})})})}),yme=C("div")(({theme:e})=>({marginLeft:"auto",whiteSpace:"nowrap",[e.breakpoints.down("sm")]:{display:"none"}})),QO=({onEdit:e,onDelete:t,disableDelete:n=!1,disableEdit:r=!1})=>{const o=e&&(i=>{i.stopPropagation(),e()}),a=t&&(i=>{i.stopPropagation(),t()});return T(yme,{children:[s(X,{condition:Boolean(o)&&!r,show:s(_t,{title:"Edit constraint",arrow:!0,children:s(en,{type:"button",onClick:o,disabled:r,children:s(Ja,{})})})}),s(X,{condition:Boolean(a)&&!n,show:s(_t,{title:"Delete constraint",arrow:!0,children:s(en,{type:"button",onClick:a,disabled:n,children:s(na,{})})})})]})},bme=C("div")(({theme:e})=>({display:"flex",alignItems:"center",width:"100%",[e.breakpoints.down("sm")]:{flexDirection:"column",alignItems:"center",position:"relative"}})),wme=C("div")(({theme:e})=>({display:"flex",alignItems:"center",[e.breakpoints.down(770)]:{flexDirection:"column"}})),Sme=C("div")(({theme:e})=>({[e.breakpoints.down(770)]:{marginTop:e.spacing(2)},display:"inline-flex"})),xme=C("div")(({theme:e})=>({marginRight:e.spacing(2),width:"200px",[e.breakpoints.between(1101,1365)]:{width:"170px",marginRight:e.spacing(1)}})),Cme=C(su)(({theme:e})=>({marginRight:e.spacing(2),width:"200px",[e.breakpoints.between(1101,1365)]:{width:"170px",marginRight:e.spacing(1)}})),Eme=C("p")(({theme:e})=>({maxWidth:"400px",fontSize:e.fontSizes.smallBody,[e.breakpoints.down("xl")]:{display:"none"}})),Tme=({compact:e,localConstraint:t,setLocalConstraint:n,setContextName:r,setOperator:o,onDelete:a,setInvertedOperator:i,setCaseInsensitive:l})=>{const{context:c}=_l(),{contextName:u,operator:d}=t,[f,h]=p.useState(!1),{uiConfig:m}=Nt(),y=Boolean(m.flags.caseInsensitiveInOperators);if(p.useEffect(()=>{u===Ep&&!bn(Ko,d)?n(b=>({...b,operator:Iv,value:new Date().toISOString()})):u!==Ep&&bn(Ko,d)&&o(Pv),bn(Si,d)||bn(sl,d)&&y?h(!0):h(!1)},[u,o,d,n,y]),!c)return null;const g=c.map(b=>({key:b.name,label:b.name})),v=b=>{bn(Si,b)||bn(sl,b)&&y?h(!0):h(!1),bn(Ko,b)?n(w=>({...w,operator:b,value:new Date().toISOString()})):o(b)};return T(bme,{children:[s(qO,{}),T(wme,{children:[s("div",{children:s(Cme,{id:"context-field-select",name:"contextName",label:"Context Field",autoFocus:!0,options:g,value:u||"",onChange:r})}),T(Sme,{children:[s(mme,{localConstraint:t,setInvertedOperator:i}),s(xme,{children:s(pme,{options:KO(u),value:d,onChange:v})}),s(X,{condition:f,show:s(vme,{localConstraint:t,setCaseInsensitive:l})})]})]}),s(X,{condition:!e,show:s(Eme,{children:ime(d,u)})}),s(QO,{onDelete:a,disableEdit:!0})]})},R_=e=>Vo(e,t=>{bn(GO,e.operator)?delete t.values:delete t.value});var ki={},kme={get exports(){return ki},set exports(e){ki=e}};const Ame="2.0.0",_me=256,Rme=Number.MAX_SAFE_INTEGER||9007199254740991,Pme=16;var $v={SEMVER_SPEC_VERSION:Ame,MAX_LENGTH:_me,MAX_SAFE_INTEGER:Rme,MAX_SAFE_COMPONENT_LENGTH:Pme};const Ime=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Ov=Ime;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=$v,r=Ov;t=e.exports={};const o=t.re=[],a=t.src=[],i=t.t={};let l=0;const c=(u,d,f)=>{const h=l++;r(u,h,d),i[u]=h,a[h]=d,o[h]=new RegExp(d,f?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${a[i.NUMERICIDENTIFIER]})\\.(${a[i.NUMERICIDENTIFIER]})\\.(${a[i.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${a[i.NUMERICIDENTIFIERLOOSE]})\\.(${a[i.NUMERICIDENTIFIERLOOSE]})\\.(${a[i.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${a[i.NUMERICIDENTIFIER]}|${a[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${a[i.NUMERICIDENTIFIERLOOSE]}|${a[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${a[i.PRERELEASEIDENTIFIER]}(?:\\.${a[i.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${a[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[i.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${a[i.BUILDIDENTIFIER]}(?:\\.${a[i.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${a[i.MAINVERSION]}${a[i.PRERELEASE]}?${a[i.BUILD]}?`),c("FULL",`^${a[i.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${a[i.MAINVERSIONLOOSE]}${a[i.PRERELEASELOOSE]}?${a[i.BUILD]}?`),c("LOOSE",`^${a[i.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${a[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${a[i.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${a[i.XRANGEIDENTIFIER]})(?:\\.(${a[i.XRANGEIDENTIFIER]})(?:\\.(${a[i.XRANGEIDENTIFIER]})(?:${a[i.PRERELEASE]})?${a[i.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${a[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[i.XRANGEIDENTIFIERLOOSE]})(?:${a[i.PRERELEASELOOSE]})?${a[i.BUILD]}?)?)?`),c("XRANGE",`^${a[i.GTLT]}\\s*${a[i.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${a[i.GTLT]}\\s*${a[i.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),c("COERCERTL",a[i.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${a[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${a[i.LONETILDE]}${a[i.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${a[i.LONETILDE]}${a[i.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${a[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${a[i.LONECARET]}${a[i.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${a[i.LONECARET]}${a[i.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${a[i.GTLT]}\\s*(${a[i.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${a[i.GTLT]}\\s*(${a[i.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${a[i.GTLT]}\\s*(${a[i.LOOSEPLAIN]}|${a[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${a[i.XRANGEPLAIN]})\\s+-\\s+(${a[i.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${a[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[i.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(kme,ki);const $me=["includePrerelease","loose","rtl"],Ome=e=>e?typeof e!="object"?{loose:!0}:$me.filter(t=>e[t]).reduce((t,n)=>(t[n]=!0,t),{}):{};var Lv=Ome;const P_=/^[0-9]+$/,ZO=(e,t)=>{const n=P_.test(e),r=P_.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},Lme=(e,t)=>ZO(t,e);var eL={compareIdentifiers:ZO,rcompareIdentifiers:Lme};const oh=Ov,{MAX_LENGTH:I_,MAX_SAFE_INTEGER:ah}=$v,{re:$_,t:O_}=ki,Mme=Lv,{compareIdentifiers:Hl}=eL;let Nme=class ka{constructor(t,n){if(n=Mme(n),t instanceof ka){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid Version: ${t}`);if(t.length>I_)throw new TypeError(`version is longer than ${I_} characters`);oh("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?$_[O_.LOOSE]:$_[O_.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>ah||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ah||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ah||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const a=+o;if(a>=0&&a<ah)return a}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(oh("SemVer.compare",this.version,this.options,t),!(t instanceof ka)){if(typeof t=="string"&&t===this.version)return 0;t=new ka(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof ka||(t=new ka(t,this.options)),Hl(this.major,t.major)||Hl(this.minor,t.minor)||Hl(this.patch,t.patch)}comparePre(t){if(t instanceof ka||(t=new ka(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(oh("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 Hl(r,o)}while(++n)}compareBuild(t){t instanceof ka||(t=new ka(t,this.options));let n=0;do{const r=this.build[n],o=t.build[n];if(oh("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 Hl(r,o)}while(++n)}inc(t,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n),this.inc("pre",n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n),this.inc("pre",n);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":if(this.prerelease.length===0)this.prerelease=[0];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]=="number"&&(this.prerelease[r]++,r=-2);r===-1&&this.prerelease.push(0)}n&&(Hl(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=[n,0]):this.prerelease=[n,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}};var eo=Nme;const{MAX_LENGTH:Dme}=$v,{re:L_,t:M_}=ki,N_=eo,Bme=Lv,Fme=(e,t)=>{if(t=Bme(t),e instanceof N_)return e;if(typeof e!="string"||e.length>Dme||!(t.loose?L_[M_.LOOSE]:L_[M_.FULL]).test(e))return null;try{return new N_(e,t)}catch{return null}};var hu=Fme;const zme=hu,jme=(e,t)=>{const n=zme(e,t);return n?n.version:null};var Ume=jme;const Wme=hu,Hme=(e,t)=>{const n=Wme(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var Vme=Hme;const D_=eo,Gme=(e,t,n,r)=>{typeof n=="string"&&(r=n,n=void 0);try{return new D_(e instanceof D_?e.version:e,n).inc(t,r).version}catch{return null}};var qme=Gme;const B_=eo,Kme=(e,t,n)=>new B_(e,n).compare(new B_(t,n));var Ea=Kme;const Yme=Ea,Xme=(e,t,n)=>Yme(e,t,n)===0;var QC=Xme;const F_=hu,Jme=QC,Qme=(e,t)=>{if(Jme(e,t))return null;{const n=F_(e),r=F_(t),o=n.prerelease.length||r.prerelease.length,a=o?"pre":"",i=o?"prerelease":"";for(const l in n)if((l==="major"||l==="minor"||l==="patch")&&n[l]!==r[l])return a+l;return i}};var Zme=Qme;const ege=eo,tge=(e,t)=>new ege(e,t).major;var nge=tge;const rge=eo,oge=(e,t)=>new rge(e,t).minor;var age=oge;const ige=eo,sge=(e,t)=>new ige(e,t).patch;var lge=sge;const cge=hu,uge=(e,t)=>{const n=cge(e,t);return n&&n.prerelease.length?n.prerelease:null};var dge=uge;const pge=Ea,fge=(e,t,n)=>pge(t,e,n);var hge=fge;const mge=Ea,gge=(e,t)=>mge(e,t,!0);var vge=gge;const z_=eo,yge=(e,t,n)=>{const r=new z_(e,n),o=new z_(t,n);return r.compare(o)||r.compareBuild(o)};var ZC=yge;const bge=ZC,wge=(e,t)=>e.sort((n,r)=>bge(n,r,t));var Sge=wge;const xge=ZC,Cge=(e,t)=>e.sort((n,r)=>xge(r,n,t));var Ege=Cge;const Tge=Ea,kge=(e,t,n)=>Tge(e,t,n)>0;var Mv=kge;const Age=Ea,_ge=(e,t,n)=>Age(e,t,n)<0;var e2=_ge;const Rge=Ea,Pge=(e,t,n)=>Rge(e,t,n)!==0;var tL=Pge;const Ige=Ea,$ge=(e,t,n)=>Ige(e,t,n)>=0;var t2=$ge;const Oge=Ea,Lge=(e,t,n)=>Oge(e,t,n)<=0;var n2=Lge;const Mge=QC,Nge=tL,Dge=Mv,Bge=t2,Fge=e2,zge=n2,jge=(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 Mge(e,n,r);case"!=":return Nge(e,n,r);case">":return Dge(e,n,r);case">=":return Bge(e,n,r);case"<":return Fge(e,n,r);case"<=":return zge(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var nL=jge;const Uge=eo,Wge=hu,{re:ih,t:sh}=ki,Hge=(e,t)=>{if(e instanceof Uge)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(ih[sh.COERCE]);else{let r;for(;(r=ih[sh.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),ih[sh.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;ih[sh.COERCERTL].lastIndex=-1}return n===null?null:Wge(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var Vge=Hge,L1,j_;function Gge(){return j_||(j_=1,L1=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),L1}var qge=tn;tn.Node=yl;tn.create=tn;function tn(e){var t=this;if(t instanceof tn||(t=new tn),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}tn.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};tn.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++}};tn.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++}};tn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)Yge(this,arguments[e]);return this.length};tn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)Xge(this,arguments[e]);return this.length};tn.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}};tn.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}};tn.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};tn.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};tn.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};tn.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};tn.prototype.map=function(e,t){t=t||this;for(var n=new tn,r=this.head;r!==null;)n.push(e.call(t,r.value,this)),r=r.next;return n};tn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new tn,r=this.tail;r!==null;)n.push(e.call(t,r.value,this)),r=r.prev;return n};tn.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};tn.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};tn.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};tn.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};tn.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 tn;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};tn.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 tn;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};tn.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 a=[],r=0;o&&r<t;r++)a.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=Kge(this,o,n[r]);return a};tn.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 Kge(e,t,n){var r=t===e.head?new yl(n,null,t,e):new yl(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function Yge(e,t){e.tail=new yl(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function Xge(e,t){e.head=new yl(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function yl(e,t,n,r){if(!(this instanceof yl))return new yl(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{Gge()(tn)}catch{}const Jge=qge,Ks=Symbol("max"),fi=Symbol("length"),Vl=Symbol("lengthCalculator"),Md=Symbol("allowStale"),rl=Symbol("maxAge"),di=Symbol("dispose"),U_=Symbol("noDisposeOnSet"),xr=Symbol("lruList"),pa=Symbol("cache"),rL=Symbol("updateAgeOnGet"),M1=()=>1;class Qge{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[Ks]=t.max||1/0;const n=t.length||M1;if(this[Vl]=typeof n!="function"?M1:n,this[Md]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[rl]=t.maxAge||0,this[di]=t.dispose,this[U_]=t.noDisposeOnSet||!1,this[rL]=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[Ks]=t||1/0,Zu(this)}get max(){return this[Ks]}set allowStale(t){this[Md]=!!t}get allowStale(){return this[Md]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[rl]=t,Zu(this)}get maxAge(){return this[rl]}set lengthCalculator(t){typeof t!="function"&&(t=M1),t!==this[Vl]&&(this[Vl]=t,this[fi]=0,this[xr].forEach(n=>{n.length=this[Vl](n.value,n.key),this[fi]+=n.length})),Zu(this)}get lengthCalculator(){return this[Vl]}get length(){return this[fi]}get itemCount(){return this[xr].length}rforEach(t,n){n=n||this;for(let r=this[xr].tail;r!==null;){const o=r.prev;W_(this,t,r,n),r=o}}forEach(t,n){n=n||this;for(let r=this[xr].head;r!==null;){const o=r.next;W_(this,t,r,n),r=o}}keys(){return this[xr].toArray().map(t=>t.key)}values(){return this[xr].toArray().map(t=>t.value)}reset(){this[di]&&this[xr]&&this[xr].length&&this[xr].forEach(t=>this[di](t.key,t.value)),this[pa]=new Map,this[xr]=new Jge,this[fi]=0}dump(){return this[xr].map(t=>Hm(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[xr]}set(t,n,r){if(r=r||this[rl],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const o=r?Date.now():0,a=this[Vl](n,t);if(this[pa].has(t)){if(a>this[Ks])return Ec(this,this[pa].get(t)),!1;const c=this[pa].get(t).value;return this[di]&&(this[U_]||this[di](t,c.value)),c.now=o,c.maxAge=r,c.value=n,this[fi]+=a-c.length,c.length=a,this.get(t),Zu(this),!0}const i=new Zge(t,n,a,o,r);return i.length>this[Ks]?(this[di]&&this[di](t,n),!1):(this[fi]+=i.length,this[xr].unshift(i),this[pa].set(t,this[xr].head),Zu(this),!0)}has(t){if(!this[pa].has(t))return!1;const n=this[pa].get(t).value;return!Hm(this,n)}get(t){return N1(this,t,!0)}peek(t){return N1(this,t,!1)}pop(){const t=this[xr].tail;return t?(Ec(this,t),t.value):null}del(t){Ec(this,this[pa].get(t))}load(t){this.reset();const n=Date.now();for(let r=t.length-1;r>=0;r--){const o=t[r],a=o.e||0;if(a===0)this.set(o.k,o.v);else{const i=a-n;i>0&&this.set(o.k,o.v,i)}}}prune(){this[pa].forEach((t,n)=>N1(this,n,!1))}}const N1=(e,t,n)=>{const r=e[pa].get(t);if(r){const o=r.value;if(Hm(e,o)){if(Ec(e,r),!e[Md])return}else n&&(e[rL]&&(r.value.now=Date.now()),e[xr].unshiftNode(r));return o.value}},Hm=(e,t)=>{if(!t||!t.maxAge&&!e[rl])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[rl]&&n>e[rl]},Zu=e=>{if(e[fi]>e[Ks])for(let t=e[xr].tail;e[fi]>e[Ks]&&t!==null;){const n=t.prev;Ec(e,t),t=n}},Ec=(e,t)=>{if(t){const n=t.value;e[di]&&e[di](n.key,n.value),e[fi]-=n.length,e[pa].delete(n.key),e[xr].removeNode(t)}};class Zge{constructor(t,n,r,o,a){this.key=t,this.value=n,this.length=r,this.now=o,this.maxAge=a||0}}const W_=(e,t,n,r)=>{let o=n.value;Hm(e,o)&&(Ec(e,n),e[Md]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};var eve=Qge,D1,H_;function Ta(){if(H_)return D1;H_=1;class e{constructor(D,F){if(F=r(F),D instanceof e)return D.loose===!!F.loose&&D.includePrerelease===!!F.includePrerelease?D:new e(D.raw,F);if(D instanceof o)return this.raw=D.value,this.set=[[D]],this.format(),this;if(this.options=F,this.loose=!!F.loose,this.includePrerelease=!!F.includePrerelease,this.raw=D,this.set=D.split("||").map(U=>this.parseRange(U.trim())).filter(U=>U.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${D}`);if(this.set.length>1){const U=this.set[0];if(this.set=this.set.filter(Y=>!h(Y[0])),this.set.length===0)this.set=[U];else if(this.set.length>1){for(const Y of this.set)if(Y.length===1&&m(Y[0])){this.set=[Y];break}}}this.format()}format(){return this.range=this.set.map(D=>D.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(D){D=D.trim();const U=`parseRange:${Object.keys(this.options).join(",")}:${D}`,Y=n.get(U);if(Y)return Y;const V=this.options.loose,te=V?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];D=D.replace(te,L(this.options.includePrerelease)),a("hyphen replace",D),D=D.replace(l[c.COMPARATORTRIM],u),a("comparator trim",D),D=D.replace(l[c.TILDETRIM],d),D=D.replace(l[c.CARETTRIM],f),D=D.split(/\s+/).join(" ");let Z=D.split(" ").map(N=>g(N,this.options)).join(" ").split(/\s+/).map(N=>O(N,this.options));V&&(Z=Z.filter(N=>(a("loose invalid filter",N,this.options),!!N.match(l[c.COMPARATORLOOSE])))),a("range list",Z);const W=new Map,z=Z.map(N=>new o(N,this.options));for(const N of z){if(h(N))return[N];W.set(N.value,N)}W.size>1&&W.has("")&&W.delete("");const R=[...W.values()];return n.set(U,R),R}intersects(D,F){if(!(D instanceof e))throw new TypeError("a Range is required");return this.set.some(U=>y(U,F)&&D.set.some(Y=>y(Y,F)&&U.every(V=>Y.every(te=>V.intersects(te,F)))))}test(D){if(!D)return!1;if(typeof D=="string")try{D=new i(D,this.options)}catch{return!1}for(let F=0;F<this.set.length;F++)if(I(this.set[F],D,this.options))return!0;return!1}}D1=e;const t=eve,n=new t({max:1e3}),r=Lv,o=Nv(),a=Ov,i=eo,{re:l,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=ki,h=$=>$.value==="<0.0.0-0",m=$=>$.value==="",y=($,D)=>{let F=!0;const U=$.slice();let Y=U.pop();for(;F&&U.length;)F=U.every(V=>Y.intersects(V,D)),Y=U.pop();return F},g=($,D)=>(a("comp",$,D),$=x($,D),a("caret",$),$=b($,D),a("tildes",$),$=A($,D),a("xrange",$),$=_($,D),a("stars",$),$),v=$=>!$||$.toLowerCase()==="x"||$==="*",b=($,D)=>$.trim().split(/\s+/).map(F=>w(F,D)).join(" "),w=($,D)=>{const F=D.loose?l[c.TILDELOOSE]:l[c.TILDE];return $.replace(F,(U,Y,V,te,Z)=>{a("tilde",$,U,Y,V,te,Z);let W;return v(Y)?W="":v(V)?W=`>=${Y}.0.0 <${+Y+1}.0.0-0`:v(te)?W=`>=${Y}.${V}.0 <${Y}.${+V+1}.0-0`:Z?(a("replaceTilde pr",Z),W=`>=${Y}.${V}.${te}-${Z} <${Y}.${+V+1}.0-0`):W=`>=${Y}.${V}.${te} <${Y}.${+V+1}.0-0`,a("tilde return",W),W})},x=($,D)=>$.trim().split(/\s+/).map(F=>E(F,D)).join(" "),E=($,D)=>{a("caret",$,D);const F=D.loose?l[c.CARETLOOSE]:l[c.CARET],U=D.includePrerelease?"-0":"";return $.replace(F,(Y,V,te,Z,W)=>{a("caret",$,Y,V,te,Z,W);let z;return v(V)?z="":v(te)?z=`>=${V}.0.0${U} <${+V+1}.0.0-0`:v(Z)?V==="0"?z=`>=${V}.${te}.0${U} <${V}.${+te+1}.0-0`:z=`>=${V}.${te}.0${U} <${+V+1}.0.0-0`:W?(a("replaceCaret pr",W),V==="0"?te==="0"?z=`>=${V}.${te}.${Z}-${W} <${V}.${te}.${+Z+1}-0`:z=`>=${V}.${te}.${Z}-${W} <${V}.${+te+1}.0-0`:z=`>=${V}.${te}.${Z}-${W} <${+V+1}.0.0-0`):(a("no pr"),V==="0"?te==="0"?z=`>=${V}.${te}.${Z}${U} <${V}.${te}.${+Z+1}-0`:z=`>=${V}.${te}.${Z}${U} <${V}.${+te+1}.0-0`:z=`>=${V}.${te}.${Z} <${+V+1}.0.0-0`),a("caret return",z),z})},A=($,D)=>(a("replaceXRanges",$,D),$.split(/\s+/).map(F=>k(F,D)).join(" ")),k=($,D)=>{$=$.trim();const F=D.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return $.replace(F,(U,Y,V,te,Z,W)=>{a("xRange",$,U,Y,V,te,Z,W);const z=v(V),R=z||v(te),N=R||v(Z),ee=N;return Y==="="&&ee&&(Y=""),W=D.includePrerelease?"-0":"",z?Y===">"||Y==="<"?U="<0.0.0-0":U="*":Y&&ee?(R&&(te=0),Z=0,Y===">"?(Y=">=",R?(V=+V+1,te=0,Z=0):(te=+te+1,Z=0)):Y==="<="&&(Y="<",R?V=+V+1:te=+te+1),Y==="<"&&(W="-0"),U=`${Y+V}.${te}.${Z}${W}`):R?U=`>=${V}.0.0${W} <${+V+1}.0.0-0`:N&&(U=`>=${V}.${te}.0${W} <${V}.${+te+1}.0-0`),a("xRange return",U),U})},_=($,D)=>(a("replaceStars",$,D),$.trim().replace(l[c.STAR],"")),O=($,D)=>(a("replaceGTE0",$,D),$.trim().replace(l[D.includePrerelease?c.GTE0PRE:c.GTE0],"")),L=$=>(D,F,U,Y,V,te,Z,W,z,R,N,ee,re)=>(v(U)?F="":v(Y)?F=`>=${U}.0.0${$?"-0":""}`:v(V)?F=`>=${U}.${Y}.0${$?"-0":""}`:te?F=`>=${F}`:F=`>=${F}${$?"-0":""}`,v(z)?W="":v(R)?W=`<${+z+1}.0.0-0`:v(N)?W=`<${z}.${+R+1}.0-0`:ee?W=`<=${z}.${R}.${N}-${ee}`:$?W=`<${z}.${R}.${+N+1}-0`:W=`<=${W}`,`${F} ${W}`.trim()),I=($,D,F)=>{for(let U=0;U<$.length;U++)if(!$[U].test(D))return!1;if(D.prerelease.length&&!F.includePrerelease){for(let U=0;U<$.length;U++)if(a($[U].semver),$[U].semver!==o.ANY&&$[U].semver.prerelease.length>0){const Y=$[U].semver;if(Y.major===D.major&&Y.minor===D.minor&&Y.patch===D.patch)return!0}return!1}return!0};return D1}var B1,V_;function Nv(){if(V_)return B1;V_=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(d,f){if(f=n(f),d instanceof t){if(d.loose===!!f.loose)return d;d=d.value}i("comparator",d,f),this.options=f,this.loose=!!f.loose,this.parse(d),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(d){const f=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],h=d.match(f);if(!h)throw new TypeError(`Invalid comparator: ${d}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new l(h[2],this.options.loose):this.semver=e}toString(){return this.value}test(d){if(i("Comparator.test",d,this.options.loose),this.semver===e||d===e)return!0;if(typeof d=="string")try{d=new l(d,this.options)}catch{return!1}return a(d,this.operator,this.semver,this.options)}intersects(d,f){if(!(d instanceof t))throw new TypeError("a Comparator is required");if((!f||typeof f!="object")&&(f={loose:!!f,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new c(d.value,f).test(this.value);if(d.operator==="")return d.value===""?!0:new c(this.value,f).test(d.semver);const h=(this.operator===">="||this.operator===">")&&(d.operator===">="||d.operator===">"),m=(this.operator==="<="||this.operator==="<")&&(d.operator==="<="||d.operator==="<"),y=this.semver.version===d.semver.version,g=(this.operator===">="||this.operator==="<=")&&(d.operator===">="||d.operator==="<="),v=a(this.semver,"<",d.semver,f)&&(this.operator===">="||this.operator===">")&&(d.operator==="<="||d.operator==="<"),b=a(this.semver,">",d.semver,f)&&(this.operator==="<="||this.operator==="<")&&(d.operator===">="||d.operator===">");return h||m||y&&g||v||b}}B1=t;const n=Lv,{re:r,t:o}=ki,a=nL,i=Ov,l=eo,c=Ta();return B1}const tve=Ta(),nve=(e,t,n)=>{try{t=new tve(t,n)}catch{return!1}return t.test(e)};var Dv=nve;const rve=Ta(),ove=(e,t)=>new rve(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var ave=ove;const ive=eo,sve=Ta(),lve=(e,t,n)=>{let r=null,o=null,a=null;try{a=new sve(t,n)}catch{return null}return e.forEach(i=>{a.test(i)&&(!r||o.compare(i)===-1)&&(r=i,o=new ive(r,n))}),r};var cve=lve;const uve=eo,dve=Ta(),pve=(e,t,n)=>{let r=null,o=null,a=null;try{a=new dve(t,n)}catch{return null}return e.forEach(i=>{a.test(i)&&(!r||o.compare(i)===1)&&(r=i,o=new uve(r,n))}),r};var fve=pve;const F1=eo,hve=Ta(),G_=Mv,mve=(e,t)=>{e=new hve(e,t);let n=new F1("0.0.0");if(e.test(n)||(n=new F1("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 a=null;o.forEach(i=>{const l=new F1(i.semver.version);switch(i.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!a||G_(l,a))&&(a=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${i.operator}`)}}),a&&(!n||G_(n,a))&&(n=a)}return n&&e.test(n)?n:null};var gve=mve;const vve=Ta(),yve=(e,t)=>{try{return new vve(e,t).range||"*"}catch{return null}};var bve=yve;const wve=eo,oL=Nv(),{ANY:Sve}=oL,xve=Ta(),Cve=Dv,q_=Mv,K_=e2,Eve=n2,Tve=t2,kve=(e,t,n,r)=>{e=new wve(e,r),t=new xve(t,r);let o,a,i,l,c;switch(n){case">":o=q_,a=Eve,i=K_,l=">",c=">=";break;case"<":o=K_,a=Tve,i=q_,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Cve(e,t,r))return!1;for(let u=0;u<t.set.length;++u){const d=t.set[u];let f=null,h=null;if(d.forEach(m=>{m.semver===Sve&&(m=new oL(">=0.0.0")),f=f||m,h=h||m,o(m.semver,f.semver,r)?f=m:i(m.semver,h.semver,r)&&(h=m)}),f.operator===l||f.operator===c||(!h.operator||h.operator===l)&&a(e,h.semver))return!1;if(h.operator===c&&i(e,h.semver))return!1}return!0};var r2=kve;const Ave=r2,_ve=(e,t,n)=>Ave(e,t,">",n);var Rve=_ve;const Pve=r2,Ive=(e,t,n)=>Pve(e,t,"<",n);var $ve=Ive;const Y_=Ta(),Ove=(e,t,n)=>(e=new Y_(e,n),t=new Y_(t,n),e.intersects(t));var Lve=Ove;const Mve=Dv,Nve=Ea;var Dve=(e,t,n)=>{const r=[];let o=null,a=null;const i=e.sort((d,f)=>Nve(d,f,n));for(const d of i)Mve(d,t,n)?(a=d,o||(o=d)):(a&&r.push([o,a]),a=null,o=null);o&&r.push([o,null]);const l=[];for(const[d,f]of r)d===f?l.push(d):!f&&d===i[0]?l.push("*"):f?d===i[0]?l.push(`<=${f}`):l.push(`${d} - ${f}`):l.push(`>=${d}`);const c=l.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t};const X_=Ta(),Dh=Nv(),{ANY:z1}=Dh,ed=Dv,o2=Ea,Bve=(e,t,n={})=>{if(e===t)return!0;e=new X_(e,n),t=new X_(t,n);let r=!1;e:for(const o of e.set){for(const a of t.set){const i=Fve(o,a,n);if(r=r||i!==null,i)continue e}if(r)return!1}return!0},Fve=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===z1){if(t.length===1&&t[0].semver===z1)return!0;n.includePrerelease?e=[new Dh(">=0.0.0-0")]:e=[new Dh(">=0.0.0")]}if(t.length===1&&t[0].semver===z1){if(n.includePrerelease)return!0;t=[new Dh(">=0.0.0")]}const r=new Set;let o,a;for(const m of e)m.operator===">"||m.operator===">="?o=J_(o,m,n):m.operator==="<"||m.operator==="<="?a=Q_(a,m,n):r.add(m.semver);if(r.size>1)return null;let i;if(o&&a){if(i=o2(o.semver,a.semver,n),i>0)return null;if(i===0&&(o.operator!==">="||a.operator!=="<="))return null}for(const m of r){if(o&&!ed(m,String(o),n)||a&&!ed(m,String(a),n))return null;for(const y of t)if(!ed(m,String(y),n))return!1;return!0}let l,c,u,d,f=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1,h=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1;f&&f.prerelease.length===1&&a.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(const m of t){if(d=d||m.operator===">"||m.operator===">=",u=u||m.operator==="<"||m.operator==="<=",o){if(h&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===h.major&&m.semver.minor===h.minor&&m.semver.patch===h.patch&&(h=!1),m.operator===">"||m.operator===">="){if(l=J_(o,m,n),l===m&&l!==o)return!1}else if(o.operator===">="&&!ed(o.semver,String(m),n))return!1}if(a){if(f&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===f.major&&m.semver.minor===f.minor&&m.semver.patch===f.patch&&(f=!1),m.operator==="<"||m.operator==="<="){if(c=Q_(a,m,n),c===m&&c!==a)return!1}else if(a.operator==="<="&&!ed(a.semver,String(m),n))return!1}if(!m.operator&&(a||o)&&i!==0)return!1}return!(o&&u&&!a&&i!==0||a&&d&&!o&&i!==0||h||f)},J_=(e,t,n)=>{if(!e)return t;const r=o2(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},Q_=(e,t,n)=>{if(!e)return t;const r=o2(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var zve=Bve;const j1=ki,jve=$v,Uve=eo,Z_=eL,Wve=hu,Hve=Ume,Vve=Vme,Gve=qme,qve=Zme,Kve=nge,Yve=age,Xve=lge,Jve=dge,Qve=Ea,Zve=hge,eye=vge,tye=ZC,nye=Sge,rye=Ege,oye=Mv,aye=e2,iye=QC,sye=tL,lye=t2,cye=n2,uye=nL,dye=Vge,pye=Nv(),fye=Ta(),hye=Dv,mye=ave,gye=cve,vye=fve,yye=gve,bye=bve,wye=r2,Sye=Rve,xye=$ve,Cye=Lve,Eye=Dve,Tye=zve;var eR={parse:Wve,valid:Hve,clean:Vve,inc:Gve,diff:qve,major:Kve,minor:Yve,patch:Xve,prerelease:Jve,compare:Qve,rcompare:Zve,compareLoose:eye,compareBuild:tye,sort:nye,rsort:rye,gt:oye,lt:aye,eq:iye,neq:sye,gte:lye,lte:cye,cmp:uye,coerce:dye,Comparator:pye,Range:fye,satisfies:hye,toComparators:mye,maxSatisfying:gye,minSatisfying:vye,minVersion:yye,validRange:bye,outside:wye,gtr:Sye,ltr:xye,intersects:Cye,simplifyRange:Eye,subset:Tye,SemVer:Uve,re:j1.re,src:j1.src,tokens:j1.t,SEMVER_SPEC_VERSION:jve.SEMVER_SPEC_VERSION,compareIdentifiers:Z_.compareIdentifiers,rcompareIdentifiers:Z_.rcompareIdentifiers};const kye=e=>()=>{const t=Number(e);return typeof t!="number"||Number.isNaN(t)?[!1,"Value must be a number"]:[!0,""]},Aye=e=>()=>{const t=[!1,"Values must be a list of strings"];return!Array.isArray(e)||!e.every(n=>typeof n=="string")?t:[!0,""]},_ye=e=>()=>{const t=eR.clean(e)===e;return!eR.valid(e)||!t?[!1,"Value is not a valid semver. For example 1.2.4"]:[!0,""]},Rye=e=>()=>Wx(ef(e))?[!0,""]:[!1,"Value must be a valid date matching RFC3339"],lh=e=>Boolean(e)&&Array.isArray(e)&&e.length>0,rw="IN_OPERATORS_LEGAL_VALUES",aL="STRING_OPERATORS_LEGAL_VALUES",iL="NUM_OPERATORS_LEGAL_VALUES",sL="SEMVER_OPERATORS_LEGAL_VALUES",lL="DATE_OPERATORS_SINGLE_VALUE",cL="IN_OPERATORS_FREETEXT",uL="STRING_OPERATORS_FREETEXT",dL="NUM_OPERATORS_SINGLE_VALUE",pL="SEMVER_OPERATORS_SINGLE_VALUE",tR="NUMBER_VALIDATOR",nR="SEMVER_VALIDATOR",U1="STRING_ARRAY_VALIDATOR",rR="DATE_VALIDATOR",Pye=({contextDefinition:e,localConstraint:t})=>{const[n,r]=p.useState(rw),[o,a]=p.useState(U1),[i,l]=p.useState(""),c=p.useCallback(()=>{lh(e.legalValues)&&bn(sl,t.operator)?r(rw):lh(e.legalValues)&&bn(Si,t.operator)?r(aL):lh(e.legalValues)&&bn(xc,t.operator)?r(iL):lh(e.legalValues)&&bn(Cc,t.operator)?r(sL):bn(Ko,t.operator)?r(lL):bn(sl,t.operator)?r(cL):bn(Si,t.operator)?r(uL):bn(xc,t.operator)?r(dL):bn(Cc,t.operator)&&r(pL)},[t,e]),u=()=>{switch(o){case tR:return kye(t.value);case U1:return Aye(t.values||[]);case nR:return _ye(t.value||"");case rR:return Rye(t.value||"")}},d=p.useCallback(f=>{bn(xc,f)&&a(tR),bn([...Si,...sl],f)&&a(U1),bn(Cc,f)&&a(nR),bn(Ko,f)&&a(rR)},[a]);return p.useEffect(()=>{d(t.operator)},[t.operator,t.value,t.values,d]),p.useEffect(()=>{c()},[e,t,c]),{input:n,error:i,validator:u(),setError:l}},Iye=C("h3")(({theme:e})=>({fontSize:e.fontSizes.bodySize,fontWeight:e.typography.fontWeightMedium,marginTop:e.spacing(2),marginBottom:e.spacing(.5)})),nf=({children:e,...t})=>s(Iye,{...t,children:e});function oR(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 Tp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oR(Object(n),!0).forEach(function(r){Bv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ye(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Oye(e,t){if(e==null)return{};var n=$ye(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lye(e,t){return Mye(e)||Nye(e,t)||Dye(e,t)||Bye()}function Mye(e){if(Array.isArray(e))return e}function Nye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,a=!1,i,l;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(c){a=!0,l=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function Dye(e,t){if(e){if(typeof e=="string")return aR(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 aR(e,t)}}function aR(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 Bye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
337
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Fye={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",BV:"Bouvet Island",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",HM:"Heard Island and McDonald Islands",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"},zye={"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,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:-180,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":{u:-420,d:-360,c:["CA"]},"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","BV"],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","HM"],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","UM"]},"Pacific/Johnston":{a:"Pacific/Honolulu",c:["UM"],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",c:["US"],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}},rf={countries:Fye,timezones:zye},W1;function jye(e,t){var n=e.countries[t];if(!n)return null;var r=Uye(e)[t]||{};return{id:t,name:n,timezones:r.current||[],allTimezones:r.all||[]}}function Uye(e){return W1||(W1=Wye(e)),W1}function Wye(e){return Object.keys(e.timezones).reduce(function(t,n){var r=e.timezones[n],o=r.c,a=r.a,i=e.timezones[a]||{},l=o||i.c;return l&&l.forEach(function(c){t[c]||Object.assign(t,Bv({},c,{current:[],all:[]})),r.r===void 0&&t[c].current.push(n),t[c].all.push(n)}),t},{})}function Hye(e,t){var n=e.timezones[t];if(!n)return null;var r=n.a,o=r===void 0?null:r,a=o?e.timezones[o]:{},i=Tp(Tp({},a),e.timezones[t]),l=i.c||[],c=i.u,u=Number.isInteger(i.d)?i.d:c,d={name:t,countries:l,utcOffset:c,utcOffsetStr:iR(c),dstOffset:u,dstOffsetStr:iR(u),aliasOf:o};return n.r&&(d.deprecated=!0),d}function iR(e){var t=Math.floor(e/60),n=e%60,r=e<0?"-":"+";return"".concat(r).concat(sR(t),":").concat(sR(n))}function sR(e){var t=Math.abs(e),n=t<10?"0":"";return"".concat(n).concat(t)}var Vye=["allTimezones"],Gye=Object.keys(rf.timezones).length,ow={},Nd={},fL=0;function qye(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(rf.countries).reduce(function(t,n){return Object.assign(t,Bv({},n,Fv(n,e)))},{})}function Kye(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Gye!==fL&&Object.keys(rf.timezones).forEach(zv),Zye(Nd,e)}function Fv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ow[e]||Yye(jye(rf,e)),e1e(ow[e],t)}function Yye(e){e&&(ow[e.id]=e)}function zv(e){return Nd[e]||Xye(Hye(rf,e)),Nd[e]?Tp({},Nd[e]):null}function Xye(e){e&&(Nd[e.name]=e,fL=Object.keys(e).length)}function hL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=zv(e)||{},r=n.countries||[];return r.map(function(o){return Fv(o,t)})}function Jye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=hL(e,t),r=Lye(n,1),o=r[0];return o||null}function Qye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Fv(e,t);if(!n)return null;var r=n.timezones||[];return r.map(zv)}function Zye(e,t){var n=t||{},r=n.deprecated;return r===!0?e:Object.keys(e).reduce(function(o,a){return e[a].deprecated||Object.assign(o,Bv({},a,e[a])),o},{})}function e1e(e,t){if(!e)return null;var n=t||{},r=n.deprecated;e.allTimezones;var o=Oye(e,Vye),a=r?e.allTimezones:e.timezones;return Tp(Tp({},o),{},{timezones:a})}var t1e={getCountry:Fv,getTimezone:zv,getAllCountries:qye,getAllTimezones:Kye,getTimezonesForCountry:Qye,getCountriesForTimezone:hL,getCountryForTimezone:Jye};const n1e=C("div")(({theme:e})=>({display:"flex",flexDirection:"row",marginBottom:e.spacing(1),alignItems:"center",gap:e.spacing(1)})),r1e=({setValue:e,value:t,error:n,setError:r})=>{const o=Object.values(t1e.getAllTimezones({deprecated:!1})).map(u=>({key:u.name,label:`${u.name}`,utcOffset:u.utcOffsetStr})),{timeZone:a}=Intl.DateTimeFormat().resolvedOptions(),[i,l]=p.useState(t||""),c=p.useMemo(()=>{const u=o.find(d=>d.key===a);return u!=null?`${u.key} (UTC ${u.utcOffset})`:"The time shown is in your local time zone according to your browser."},[o,a]);return t?T(ke,{children:[s(nf,{children:"Select a date"}),T(n1e,{children:[s(_r,{id:"date",label:"Date",type:"datetime-local",value:Hue(i),onChange:u=>{r("");const d=gO(u.target.value),f=d==null?void 0:d.toISOString();f&&l(f),f&&e(f)},InputLabelProps:{shrink:!0},error:Boolean(n),errorText:n,required:!0}),s("p",{children:c})]})]}):null},Oa=({text:e,maxWidth:t,maxLength:n,className:r,...o})=>s(X,{condition:((e==null?void 0:e.length)??0)>n,show:s(_t,{title:e,arrow:!0,children:s("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:s("span",{className:r,children:e})}),Dd=e=>{const t=Number(ss(e));return Number.isFinite(t)?t:0},ss=e=>String(e??"").trim(),Ji=e=>ss(e).split(",").map(t=>t.trim()).filter(Boolean),mL=Li()(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"}})),o1e="Enter",lR=({values:e,removeValue:t,setValues:n,error:r,setError:o})=>{const[a,i]=p.useState(""),{classes:l}=mL(),c=d=>{d.key===o1e&&(d.preventDefault(),u())},u=()=>{const d=i1e([...e,...Ji(a)]);d.length===0?o("values cannot be empty"):d.some(f=>f.length>100)?o("values cannot be longer than 100 characters"):(o(""),i(""),n(d))};return T("div",{children:[s(nf,{style:{marginBottom:0},children:"Set values (maximum 100 char length per value)"}),T("div",{className:l.inputContainer,children:[s("div",{className:l.inputInnerContainer,children:s(_r,{onKeyPress:c,label:"Values",name:"values",value:a,onFocus:()=>{o("")},onChange:d=>i(d.target.value),placeholder:"value1, value2, value3...",className:l.input,error:Boolean(r),errorText:r})}),s(rt,{className:l.button,variant:"outlined",color:"secondary",onClick:()=>u(),children:"Add values"})]}),s("div",{className:l.valuesContainer,children:s(a1e,{values:e,removeValue:t})})]})},a1e=({values:e,removeValue:t})=>{const{classes:n}=mL();return s(ke,{children:e.map((r,o)=>s(To,{label:s(Oa,{text:r,maxLength:35,maxWidth:"100",className:n.chipValue}),onDelete:()=>t(o),className:n.valueChip},`${r}-${o}`))})},i1e=e=>Array.from(new Set(e)),a2=({filter:e,setFilter:t})=>T("div",{style:{display:"flex",alignItems:"center"},children:[s("div",{style:{width:"300px"},children:s(fn,{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:s(J$,{position:"start",children:s(mx,{})})}})}),s(X,{condition:Boolean(e),show:s(To,{style:{marginLeft:"1rem"},label:`filter active: ${e}`,onDelete:()=>t("")})})]}),s1e=Li()(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.grey[700]}})),gL=({legal:e,control:t})=>{const{classes:n}=s1e();return s("div",{className:n.container,children:s(Cr,{value:e.value,control:t,label:T(ke,{children:[s("div",{className:n.value,children:e.value}),s("div",{className:n.description,children:e.description})]})})})},vL=(e,t)=>e.filter(n=>n.value.includes(t)),cR=e=>e.reduce((t,n)=>(t[n]||(t[n]=!0),t),{}),uR=({legalValues:e,values:t,setValues:n,error:r,setError:o})=>{const[a,i]=p.useState(""),l=vL(e,a),[c,u]=p.useState(()=>cR(t)),{classes:d}=Xp();p.useEffect(()=>{u(cR(t))},[t,u]);const f=h=>{if(o(""),c[h]){const m=t.findIndex(g=>g===h),y=[...t];y.splice(m,1),n(y);return}n([...t,h])};return T(ke,{children:[s(nf,{children:"Select values from a predefined set"}),s(X,{condition:e.length>100,show:s(a2,{filter:a,setFilter:i})}),l.map(h=>s(gL,{legal:h,control:s(ks,{checked:Boolean(c[h.value]),onChange:()=>f(h.value),name:h.value,color:"primary"})},h.value)),s(X,{condition:Boolean(r),show:s("p",{className:d.error,children:r})})]})},dR=({setValue:e,value:t,type:n,legalValues:r,error:o,setError:a})=>{const[i,l]=p.useState(""),{classes:c}=Xp(),u=vL(r,i);return T(ke,{children:[T(nf,{children:["Add a single ",n.toLowerCase()," value"]}),s(X,{condition:Boolean(r.length>100),show:s(a2,{filter:i,setFilter:l})}),s(X,{condition:Boolean(r.length),show:s(Ri,{component:"fieldset",children:s(lx,{"aria-label":"selected-value",name:"selected",value:t,onChange:d=>{a(""),e(d.target.value)},children:u.map(d=>s(gL,{legal:d,control:s(nl,{})},d.value))})}),elseShow:s("p",{children:"No valid legal values available for this operator."})}),s(X,{condition:Boolean(o),show:s("p",{className:c.error,children:o})})]})},l1e=Li()(e=>({singleValueContainer:{maxWidth:"300px",marginTop:"-1rem"},singleValueInput:{width:"100%",margin:"1rem 0"}})),pR=({setValue:e,value:t,type:n,error:r,setError:o})=>{const{classes:a}=l1e();return T(ke,{children:[T(nf,{children:["Add a single ",n.toLowerCase()," value"]}),s("div",{className:a.singleValueContainer,children:s(_r,{label:n,name:"value",value:t||"",onChange:i=>{o(""),e(i.target.value.trim())},onFocus:()=>o(""),placeholder:`Enter a single ${n} value`,className:a.singleValueInput,error:Boolean(r),errorText:r})})]})},c1e=({input:e,contextDefinition:t,localConstraint:n,setValue:r,setValues:o,setError:a,removeValue:i,error:l})=>s(ke,{children:(()=>{var u;switch(e){case rw:return s(uR,{legalValues:t.legalValues||[],values:n.values||[],setValues:o,error:l,setError:a});case aL:return s(ke,{children:s(uR,{legalValues:t.legalValues||[],values:n.values||[],setValues:o,error:l,setError:a})});case iL:return s(ke,{children:s(dR,{setValue:r,value:n.value,type:"number",legalValues:((u=t.legalValues)==null?void 0:u.filter(d=>Number(d.value)))||[],error:l,setError:a})});case sL:return s(ke,{children:s(dR,{setValue:r,value:n.value,type:"semver",legalValues:t.legalValues||[],error:l,setError:a})});case lL:return s(r1e,{value:n.value,setValue:r,error:l,setError:a});case cL:return s(lR,{values:n.values||[],removeValue:i,setValues:o,error:l,setError:a});case uL:return s(ke,{children:s(lR,{values:n.values||[],removeValue:i,setValues:o,error:l,setError:a})});case dL:return s(pR,{setValue:r,value:n.value,type:"number",error:l,setError:a});case pL:return s(pR,{setValue:r,value:n.value,type:"semver",error:l,setError:a})}})()}),yL="cancel",fR="save",hR=(e,t)=>e.find(r=>r.name===t)||{name:"",description:"",createdAt:"",sortOrder:1,stickiness:!1},u1e=C("div")({padding:0,margin:0,width:"100%"}),d1e=C(XS)(({theme:e})=>({border:`1px solid ${e.palette.dividerAlternative}`,borderRadius:e.shape.borderRadiusMedium,backgroundColor:e.palette.constraintAccordion.editBackground,boxShadow:"none",margin:0,"& .expanded":{"&:before":{opacity:"0 !important"}}})),p1e=C(QS)(({theme:e})=>({border:"none",padding:e.spacing(.5,3),"&:hover .valuesExpandLabel":{textDecoration:"underline"}})),f1e=C(JS)(({theme:e})=>({borderTop:`1px dashed ${e.palette.divider}`,display:"flex",flexDirection:"column",padding:0})),h1e=({constraint:e,compact:t,onCancel:n,onSave:r,onDelete:o})=>{const[a,i]=p.useState(R_(e)),{context:l}=_l(),[c,u]=p.useState(hR(l,a.contextName)),{validateConstraint:d}=pu(),[f,h]=p.useState(!1),[m,y]=p.useState("");p.useEffect(()=>{h(!0)},[]),p.useEffect(()=>{u(hR(l,a.contextName))},[a.contextName,l]);const g=p.useCallback(F=>{i(U=>({...U,contextName:F,values:[],value:""}))},[]),v=p.useCallback(F=>{i(U=>({...U,operator:F,values:[],value:""}))},[]),b=p.useCallback(F=>{i(U=>({...U,values:F}))},[]),w=p.useCallback(F=>{i(U=>({...U,value:F}))},[]),x=()=>{i(F=>({...F,inverted:!F.inverted}))},E=p.useCallback(()=>{i(F=>({...F,caseInsensitive:!F.caseInsensitive}))},[]),A=p.useCallback(F=>{const U=[...a.values];U.splice(F,1),b(U)},[a,b]),k=()=>{h(!1)},_=()=>{const F=Array.isArray(a.values)&&Boolean(a.values.length>0),U=Boolean(a.value);return F||U?($(""),!0):($("You must provide a value for the constraint"),!1)},O=async()=>{if(!_())return;const[U,Y]=I();if(U||$(Y),U)try{await d(a),$(""),y(fR),k();return}catch(V){$(ft(V))}},{input:L,validator:I,setError:$,error:D}=Pye({contextDefinition:c,localConstraint:a});return p.useEffect(()=>{$(""),i(F=>R_(F))},[a.operator,a.contextName,$]),s(u1e,{children:T(d1e,{expanded:f,TransitionProps:{onExited:()=>{m===yL?(y(""),n()):m===fR&&(y(""),r(a))}},children:[s(p1e,{children:s(Tme,{localConstraint:a,setLocalConstraint:i,setContextName:g,setOperator:v,action:m,compact:t,setInvertedOperator:x,setCaseInsensitive:E,onDelete:o})}),s(f1e,{children:s(ame,{localConstraint:a,setValues:b,setValue:w,triggerTransition:k,setAction:y,onSubmit:O,children:s(c1e,{setValues:b,setValue:w,setError:$,localConstraint:a,input:L,error:D,contextDefinition:c,removeValue:A})})})]})})},bL=(e,t)=>e.value&&e.contextName===Ep?Ux(e.value,t.locale):e.value,m1e=C(Oa)({whiteSpace:"pre"}),g1e=C(To)(({theme:e})=>({margin:e.spacing(0,1,1,0)})),v1e=({values:e})=>{const[t,n]=p.useState("");return!e||e.length===0?null:T(ke,{children:[s(X,{condition:e.length>20,show:s(a2,{filter:t,setFilter:n})}),e.filter(r=>r.includes(t)).map((r,o)=>s(g1e,{label:s(m1e,{maxWidth:"400",text:r,maxLength:50})},`${r}-${o}`))]})},y1e=C("div")(({theme:e})=>({display:"flex",alignItems:"center",[e.breakpoints.down(600)]:{flexDirection:"column"}})),b1e=C("p")(({theme:e})=>({marginRight:e.spacing(1.5),[e.breakpoints.down(600)]:{marginBottom:e.spacing(1.5),marginRight:0}})),w1e=C(To)(({theme:e})=>({margin:e.spacing(0,1,1,0)})),S1e=({value:e,operator:t})=>e?T(y1e,{children:[T(b1e,{children:["Value must be ",t]})," ",s(w1e,{label:s(Oa,{maxWidth:"400",text:e,maxLength:50})})]}):null,x1e=C("div")(({theme:e})=>({padding:e.spacing(2,0),maxHeight:"400px",overflowY:"auto"})),C1e=({constraint:e})=>{const{locationSettings:t}=oi();return s("div",{children:T(x1e,{children:[s(v1e,{values:e.values}),s(S1e,{value:bL(e,t),operator:e.operator})]})})},E1e=C("div")(({theme:e})=>({padding:e.spacing(.5,1.5),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.constraintAccordion.operatorBackground,lineHeight:1.25})),T1e=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallBody,lineHeight:17/14})),k1e=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallerBody,color:e.palette.neutral.main})),A1e=({constraint:e,hasPrefix:t})=>{const n=e.operator,r=ew(e.operator);return T(E1e,{style:{borderTopLeftRadius:t?0:void 0,borderBottomLeftRadius:t?0:void 0,paddingLeft:t?0:void 0},children:[s(T1e,{children:n}),s(k1e,{children:r})]})},wL=C("div")(({theme:e})=>({backgroundColor:e.palette.grey[200],width:24,display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"stretch",color:e.palette.primary.main,marginLeft:e.spacing(1),borderRadius:e.shape.borderRadius})),_1e=C(wL)(()=>({marginLeft:0,borderTopRightRadius:0,borderBottomRightRadius:0})),mR=p.forwardRef(({isPrefix:e,...t},n)=>s(X,{condition:Boolean(e),show:()=>s(_1e,{ref:n,...t}),elseShow:()=>s(wL,{ref:n,...t})})),R1e=C("div")(({theme:e})=>({display:"flex",alignItems:"stretch",margin:"auto 0"})),P1e=C("div")(({theme:e})=>({minWidth:"152px",position:"relative",[e.breakpoints.down("sm")]:{paddingRight:0}})),I1e=({constraint:e})=>T(R1e,{children:[s(X,{condition:Boolean(e.inverted),show:s(_t,{title:"Operator is negated",arrow:!0,children:s(Je,{sx:{display:"flex"},children:s(mR,{isPrefix:!0,children:s(tw,{})})})})}),s(P1e,{children:s(A1e,{constraint:e,hasPrefix:Boolean(e.inverted)})}),s(X,{condition:!Boolean(e.caseInsensitive)&&bn(Si,e.operator),show:s(_t,{title:"Case sensitive is active",arrow:!0,children:s(mR,{children:s(JO,{})})})})]}),$1e=C(To)(({theme:e})=>({margin:"auto 0",marginLeft:e.spacing(1),[e.breakpoints.down("sm")]:{margin:e.spacing(1,0)}})),O1e=C("div")(({theme:e})=>({display:"flex",alignItems:"stretch",margin:"auto 0"})),L1e=({constraint:e,allowExpand:t})=>{const{locationSettings:n}=oi();return p.useEffect(()=>{t(!1)},[t]),s(O1e,{children:s($1e,{label:bL(e,n)})})},M1e=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"}})),N1e=C("div")(({theme:e})=>({display:"flex",alignItems:"stretch",margin:"auto 0"})),D1e=C("div")(({theme:e})=>({display:"flex",justifyContent:"stretch",margin:"auto 0",flexDirection:"column",marginLeft:e.spacing(1),[e.breakpoints.down("sm")]:{marginLeft:0}})),B1e=C("p")(({theme:e})=>({fontSize:e.fontSizes.smallBody,marginTop:e.spacing(.5),color:e.palette.primary.dark,[e.breakpoints.down("sm")]:{textAlign:"center"}})),F1e=({constraint:e,expanded:t,allowExpand:n,maxLength:r})=>{var l;const[o,a]=p.useState(!1),i=p.useMemo(()=>{var c;return(c=e==null?void 0:e.values)==null?void 0:c.map(u=>u).join(", ")},[e]);return p.useEffect(()=>{i&&(n(((i==null?void 0:i.length)??0)>r),a(((i==null?void 0:i.length)??0)>r))},[i,r,n,a]),s(N1e,{children:T(D1e,{children:[s(M1e,{children:i}),s(X,{condition:o,show:s(B1e,{className:"valuesExpandLabel",children:t?"View less":`View all (${(l=e==null?void 0:e.values)==null?void 0:l.length})`})})]})})},z1e=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"}})),j1e=C("div")(({theme:e})=>({display:"flex",width:"100%",justifyContent:"space-between",borderRadius:e.spacing(1)})),U1e=C("div")(({theme:e})=>({display:"flex",alignItems:"stretch",marginLeft:e.spacing(1),[e.breakpoints.down("sm")]:{marginLeft:0,flexDirection:"column",alignItems:"center",width:"100%"}})),W1e=({constraint:e,singleValue:t,allowExpand:n,expanded:r,maxLength:o=112})=>s(j1e,{children:T(U1e,{children:[s(_t,{title:e.contextName,arrow:!0,children:s(z1e,{children:e.contextName})}),s(I1e,{constraint:e}),s(X,{condition:t,show:s(L1e,{constraint:e,allowExpand:n}),elseShow:s(F1e,{constraint:e,expanded:r,allowExpand:n,maxLength:o})})]})}),H1e=Mr("div")(({theme:e})=>({display:"flex",alignItems:"center",width:"100%",[e.breakpoints.down("sm")]:{flexDirection:"column",alignItems:"center",position:"relative"}})),V1e=({constraint:e,onEdit:t,onDelete:n,singleValue:r,allowExpand:o,expanded:a,compact:i})=>T(H1e,{children:[s(qO,{compact:i}),s(W1e,{constraint:e,singleValue:r,allowExpand:o,expanded:a}),s(QO,{onEdit:t,onDelete:n})]}),G1e=C(XS)(({theme:e})=>({border:`1px solid ${e.palette.dividerAlternative}`,borderRadius:e.shape.borderRadiusMedium,backgroundColor:e.palette.constraintAccordion.background,boxShadow:"none",margin:0,"& .root":{"&:before":{opacity:"0 !important"}}})),q1e=C(QS)(({theme:e})=>({"& .root":{border:"none",padding:e.spacing(.5,3),"&:hover .valuesExpandLabel":{textDecoration:"underline"}}})),K1e=C(JS)(({theme:e})=>({borderTop:`1px dashed ${e.palette.divider}`,display:"flex",flexDirection:"column"})),Y1e=C("div")({display:"flex",flexDirection:"column",width:"100%"}),X1e=({constraint:e,onEdit:t,onDelete:n,sx:r=void 0,compact:o=!1,renderAfter:a})=>{const[i,l]=p.useState(!0),[c,u]=p.useState(!1),d=bn([...Cc,...xc,...Ko],e.operator);return T(G1e,{expanded:c,sx:r,children:[s(q1e,{expandIcon:null,onClick:()=>{i&&u(!c)},sx:{cursor:i?"pointer":"default!important","&:hover":{cursor:i?"pointer":"default!important"}},children:T(Y1e,{children:[s(V1e,{constraint:e,onEdit:t,onDelete:n,singleValue:d,allowExpand:l,expanded:c,compact:o}),a]})}),s(K1e,{children:s(C1e,{constraint:e})})]})},J1e=({constraint:e,compact:t=!1,editing:n,onEdit:r,onCancel:o,onDelete:a,onSave:i})=>e?s(X,{condition:Boolean(n&&i),show:s(h1e,{constraint:e,onCancel:o,onSave:i,onDelete:a,compact:t}),elseShow:s(X1e,{constraint:e,onEdit:r,onDelete:a})}):null,Q1e=e=>{const t=p.useRef(e??new WeakMap),[,n]=p.useState(0),r=p.useCallback((a,i)=>{t.current.set(a,i),n(l=>l+1)},[]),o=p.useCallback(a=>t.current.get(a),[]);return p.useMemo(()=>({set:r,get:o}),[r,o])},SL=e=>(H1.has(e)||(gR++,H1.set(e,gR)),H1.get(e)),H1=new WeakMap;let gR=0;const Z1e=e=>{const t=KO(e)[0],n=bn(Ko,t)?new Date().toISOString():"";return{contextName:e,operator:t,value:n,values:[],caseInsensitive:!1,inverted:!1}},xL=C("div")(({theme:e})=>({padding:e.spacing(.75,1),color:e.palette.text.primary,fontSize:e.fontSizes.smallerBody,backgroundColor:e.palette.secondaryContainer,borderRadius:e.shape.borderRadius,position:"absolute",zIndex:e.zIndex.fab,top:"50%",left:e.spacing(2),transform:"translateY(-50%)",lineHeight:1})),e0e=C(xL)(({theme:e})=>({top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:e.palette.activityIndicators.primary,border:`1px solid ${e.palette.primary.border}`,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(.75,1.5)})),i2=({text:e})=>{const t=cn();return s(Je,{sx:{height:t.spacing(e==="AND"?1:1.5),position:"relative",width:"100%"},children:s(X,{condition:e==="AND",show:()=>s(xL,{children:e}),elseShow:()=>s(e0e,{children:e})})})},CL="constraintAccordionListId",t0e=C("div")({width:"100%",display:"flex",flexDirection:"column"}),n0e=C(_t)(({theme:e})=>({marginLeft:e.spacing(.75),height:e.spacing(1.5)})),r0e=C(hx)(({theme:e})=>({fill:e.palette.tertiary.dark,[e.breakpoints.down(860)]:{display:"none"}})),o0e=C("p")(({theme:e})=>({marginBottom:e.spacing(1),color:e.palette.text.secondary})),a0e=C("div")(({theme:e})=>({marginTop:e.spacing(1),marginBottom:e.spacing(1),color:e.palette.text.secondary,display:"flex"})),jv=p.forwardRef(({constraints:e,setConstraints:t,showCreateButton:n,showLabel:r=!0},o)=>{const a=Q1e(),{context:i}=_l(),l=t&&(m=>{const y=Z1e(m);a.set(y,{editing:!0,new:!0}),t(g=>[...g,y])});p.useImperativeHandle(o,()=>({addConstraint:l}));const c=l&&(()=>{l(i[0].name)}),u=t&&(m=>{a.set(m,{editing:!0})}),d=t&&(m=>{const y=e[m];a.set(y,{}),t(Vo(g=>{g.splice(m,1)}))}),f=t&&((m,y)=>{a.set(y,{}),t(Vo(g=>{g[m]=y}))}),h=m=>{var g;const y=e[m];(g=a.get(y))!=null&&g.new&&(d==null||d(m)),a.set(y,{})};return i.length===0?null:T(t0e,{id:CL,children:[s(X,{condition:e&&e.length>0&&r,show:s(o0e,{children:"Constraints"})}),e.map((m,y)=>{var g;return T(p.Fragment,{children:[s(X,{condition:y>0,show:s(i2,{text:"AND"})}),s(J1e,{constraint:m,onEdit:u&&u.bind(null,m),onCancel:h.bind(null,y),onDelete:d&&d.bind(null,y),onSave:f&&f.bind(null,y),editing:Boolean((g=a.get(m))==null?void 0:g.editing),compact:!0})]},SL(m))}),s(X,{condition:Boolean(n&&c),show:T("div",{children:[T(a0e,{children:[s("p",{children:"Add any number of constraints"}),s(n0e,{title:"Help",arrow:!0,children:s("a",{href:"https://docs.getunleash.io/reference/strategy-constraints",target:"_blank",rel:"noopener noreferrer",children:s(r0e,{})})})]}),s(rt,{type:"button",onClick:c,variant:"outlined",color:"secondary",children:"Add constraint"})]})})]})}),i0e=Li()(e=>({inputRoot:{height:48,borderTopLeftRadius:0,borderBottomLeftRadius:0,borderTopRightRadius:50,borderBottomRightRadius:50,"& fieldset":{borderColor:e.palette.grey[300],borderLeftColor:"transparent"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:1}}})),s0e=C("div")(({theme:e})=>({display:"flex",alignItems:"center",borderRadius:e.spacing(2),'& .MuiInputLabel-root[data-shrink="false"]':{top:3}})),l0e=C("div",{shouldForwardProp:e=>!e.startsWith("$")})(({theme:e,$disabled:t})=>({background:t?e.palette.primary.light:e.palette.featureSegmentSearchBackground,height:"48px",width:"48px",display:"flex",alignItems:"center",justifyContent:"center",paddingLeft:6,borderTopLeftRadius:"40px",borderBottomLeftRadius:"40px",color:e.palette.text.tertiaryContrast})),c0e=C(nv)({flex:1}),EL=({label:e,options:t,value:n=[],onChange:r,disabled:o})=>{const{classes:a}=i0e(),i=l=>s(fn,{...l,variant:"outlined",label:e});return T(s0e,{children:[s(l0e,{$disabled:Boolean(o),"aria-hidden":!0,children:s(mx,{})}),s(c0e,{classes:{inputRoot:a.inputRoot},options:t,value:n,popupIcon:s(yZ,{titleAccess:"Toggle"}),onChange:(l,c)=>r(c||[]),renderInput:i,getOptionLabel:l=>l.label,disabled:o,size:"small",multiple:!0})]})},Pl=()=>{const{uiConfig:e}=Nt();return{segmentValuesLimit:e.segmentValuesLimit,strategySegmentsLimit:e.strategySegmentsLimit}},u0e=()=>{const{segmentValuesLimit:e}=Pl();return typeof e>"u"?null:T(Jt,{severity:"warning",children:["Segments is an experimental feature, currently limited to at most"," ",e," values. ",s(TL,{})]})},d0e=e=>{const{segmentValuesLimit:t}=Pl();return typeof t>"u"?null:T(Jt,{severity:"error",children:["Segments are limited to at most ",t," values. This segment currently has ",e.values," ",e.values===1?"value":"values","."]})},p0e=()=>{const{strategySegmentsLimit:e}=Pl();return typeof e>"u"?null:T(Jt,{severity:"warning",children:["Strategies are limited to ",e," segments."," ",s(TL,{})]})},TL=()=>T(ke,{children:["Please"," ",s("a",{href:"https://slack.unleash.run",target:"_blank",rel:"noreferrer",style:{color:"inherit"},children:"get in touch"})," ","if you would like this limit increased."]}),kL="https://docs.getunleash.io/reference/segments",s2=e=>p.useMemo(()=>e.map(t=>t.values).reduce((t,n)=>t+((n==null?void 0:n.length)??0),0),[e]),f0e=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%"})),h0e=C("div")(({theme:e})=>({marginBottom:"1.5rem"})),V1=C("p")(({theme:e})=>({marginBottom:"1rem"})),m0e=C("div")(({theme:e})=>({marginTop:"1rem",borderBottom:`1px solid ${e.palette.grey[300]}`,paddingBottom:"2rem"})),g0e=C("div")(({theme:e})=>({marginTop:"1.5rem"})),v0e=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",marginTop:e.spacing(12)})),y0e=C("p")(({theme:e})=>({fontSize:e.fontSizes.bodySize,color:e.palette.tertiary.dark,maxWidth:515,marginBottom:e.spacing(2.5),wordBreak:"break-word",whiteSpace:"normal",textAlign:"center"})),b0e=C("div")(({theme:e})=>({marginBlock:e.spacing(4)})),w0e=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end",borderTop:`1px solid ${e.palette.tertiary.contrast}`,paddingTop:e.spacing(2)})),S0e=C(rt)(({theme:e})=>({marginRight:"auto"})),x0e=C(rt)(({theme:e})=>({marginLeft:e.spacing(3)})),C0e=({children:e,constraints:t,setConstraints:n,setCurrentStep:r,mode:o})=>{const a=p.useRef(),i=ut(),{hasAccess:l}=p.useContext(Zr),{context:c=[]}=_l(),[u,d]=p.useState(!1),f=s2(t),h=o==="create"?hv:Dx,{segmentValuesLimit:m}=Pl(),y=Boolean(m&&f>m),g=c.map(b=>({value:b.name,label:b.name}));return T(ke,{children:[T(f0e,{children:[s(h0e,{children:s(u0e,{})}),T("div",{children:[s(V1,{children:"Select the context fields you want to include in the segment."}),s(V1,{children:"Use a predefined context field:"}),s(EL,{label:"Select a context",options:g,onChange:([b])=>{var w,x;(x=(w=a.current)==null?void 0:w.addConstraint)==null||x.call(w,b.value)}})]}),T(m0e,{children:[s(V1,{children:"...or add a new context field:"}),s(BC,{label:"Create new context",onClose:()=>d(!1),open:u,children:s(UO,{onSubmit:()=>d(!1),onCancel:()=>d(!1),modal:!0})}),s(Do,{permission:Am,variant:"outlined",color:"primary",startIcon:s(xa,{}),onClick:()=>d(!0),children:"Add context field"}),y&&s(g0e,{children:s(d0e,{values:f})})]}),s(X,{condition:t.length===0,show:s(v0e,{children:s(y0e,{children:"Start adding context fields by selecting an option from above, or you can create a new context field and use it right away"})})}),s(b0e,{children:s(jv,{ref:a,constraints:t,setConstraints:l(h)?n:void 0})})]}),T(w0e,{children:[s(S0e,{type:"button",onClick:()=>r(1),children:"Back"}),e,s(x0e,{type:"button",onClick:()=>{i("/segments")},children:"Cancel"})]})]})},E0e=C("div")(({theme:e})=>({display:"flex",position:"absolute",alignItems:"center",justifyContent:"center",top:30,left:0,right:bO,[e.breakpoints.down(1100)]:{right:0}})),T0e=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"})),k0e=C("span")(({theme:e})=>({marginRight:15,fontSize:e.fontSizes.smallBody})),A0e=C(kZ,{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})),_0e=({total:e,current:t})=>{const n=Array.from({length:e}).map((r,o)=>o+1);return s(E0e,{children:T(T0e,{children:[T(k0e,{children:["Step ",t," of ",e]}),n.map(r=>s(A0e,{filled:r===t},r))]})})},R0e=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%"})),AL=({children:e,name:t,description:n,constraints:r,setName:o,setDescription:a,setConstraints:i,handleSubmit:l,errors:c,clearErrors:u,mode:d})=>{const[h,m]=p.useState(1);return T(ke,{children:[s(_0e,{total:2,current:h}),T(R0e,{onSubmit:l,children:[s(X,{condition:h===1,show:s(Yhe,{name:t,description:n,setName:o,setDescription:a,errors:c,clearErrors:u,setCurrentStep:m})}),s(X,{condition:h===2,show:s(C0e,{constraints:r,setConstraints:i,setCurrentStep:m,mode:d,children:e})})]})]})},P0e=()=>{throw new Error("showFeedbackCES called outside feedbackCESContext")},I0e=()=>{throw new Error("hideFeedbackCES called outside feedbackCESContext")},l2=p.createContext({showFeedbackCES:P0e,hideFeedbackCES:I0e}),$0e=()=>{const{uiConfig:e}=Nt(),{setToastData:t,setToastApiError:n}=Ot(),{showFeedbackCES:r}=p.useContext(l2),o=ut(),{createSegment:a,loading:i}=MC(),{refetchSegments:l}=Rl(),{name:c,setName:u,description:d,setDescription:f,constraints:h,setConstraints:m,getSegmentPayload:y,errors:g,clearErrors:v}=WO(),b=DC(h),{segmentValuesLimit:w}=Pl(),x=s2(h),E=Boolean(w&&x>w);return s(Nr,{loading:i,title:"Create segment",description:_L,documentationLink:kL,documentationLinkLabel:"Segments documentation",formatApiCode:()=>`curl --location --request POST '${e.unleashUrl}/api/admin/segments' \\
338
- --header 'Authorization: INSERT_API_KEY' \\
339
- --header 'Content-Type: application/json' \\
340
- --data-raw '${JSON.stringify(y(),void 0,2)}'`,children:s(AL,{handleSubmit:async _=>{_.preventDefault(),v();try{await a(y()),await l(),o("/segments/"),t({title:"Segment created",confetti:!0,type:"success"}),r({title:"How easy was it to create a segment?",text:"Please help us understand how we can improve segments",path:"/segments/create"})}catch(O){n(ft(O))}},name:c,setName:u,description:d,setDescription:f,constraints:h,setConstraints:m,errors:g,clearErrors:v,mode:"create",children:s(du,{name:"segment",permission:hv,disabled:!b||E,"data-testid":lee})})})},_L=`
341
- Segments make it easy for you to define which of your users should get access to a feature.
342
- A segment is a reusable collection of constraints.
343
- 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.
344
- `,O0e=e=>{const t=jt(`api/admin/segments/${e}`),{data:n,error:r}=vn(t,()=>L0e(t)),o=p.useCallback(()=>{Hr(t).catch(console.warn)},[t]);return{segment:n,refetchSegment:o,loading:!r&&!n,error:r}},L0e=e=>fetch(e,{method:"GET"}).then(Tn("Segment")).then(t=>t.json()),M0e=()=>{const e=cr("segmentId"),{segment:t}=O0e(Number(e)),{uiConfig:n}=Nt(),{setToastData:r,setToastApiError:o}=Ot(),a=ut(),{updateSegment:i,loading:l}=MC(),{refetchSegments:c}=Rl(),{name:u,setName:d,description:f,setDescription:h,constraints:m,setConstraints:y,getSegmentPayload:g,errors:v,clearErrors:b}=WO(t==null?void 0:t.name,t==null?void 0:t.description,t==null?void 0:t.constraints),w=DC(m),x=s2(m),{segmentValuesLimit:E}=Pl(),A=Boolean(E&&x>E);return s(Nr,{loading:l,title:"Edit segment",description:_L,documentationLink:kL,documentationLinkLabel:"Segments documentation",formatApiCode:()=>`curl --location --request PUT '${n.unleashUrl}/api/admin/segments/${e}' \\
345
- --header 'Authorization: INSERT_API_KEY' \\
346
- --header 'Content-Type: application/json' \\
347
- --data-raw '${JSON.stringify(g(),void 0,2)}'`,children:s(AL,{handleSubmit:async O=>{if(t){O.preventDefault(),b();try{await i(t.id,g()),await c(),a("/segments/"),r({title:"Segment updated",type:"success"})}catch(L){o(ft(L))}}},name:u,setName:d,description:f,setDescription:h,constraints:m,setConstraints:y,errors:v,clearErrors:b,mode:"edit",children:s(Al,{permission:Dx,disabled:!w||A,"data-testid":cee})})})},N0e=()=>{const{uiConfig:e}=Nt(),t=ut();return s(pO,{onClick:()=>t("/environments/create"),maxWidth:"700px",Icon:xa,permission:Ca,disabled:!Boolean(e.flags.EEA),children:"New environment"})},D0e=(e,t,n)=>{const r=p.useRef(null);return p.useEffect(()=>{if(r.current)return r.current.dataset.index=String(e),B0e(r.current,t,(n==null?void 0:n.current)??void 0)},[e,t]),r},B0e=(e,t,n)=>{const r=f=>{ch&&t(Number(ch.dataset.index),Number(e.dataset.index),f)},o=n??e,a=f=>{f.target===o&&(e.draggable=!0)},i=()=>{e.draggable=!1},l=()=>{e.draggable=!0,ch=e},c=()=>{r(!1)},u=f=>{f.preventDefault()},d=()=>{r(!0),ch=null};return o.addEventListener("mouseenter",a),o.addEventListener("mouseleave",i),n&&e.addEventListener("mouseenter",i),e.addEventListener("dragstart",l),e.addEventListener("dragenter",c),e.addEventListener("dragover",u),e.addEventListener("drop",d),()=>{o.removeEventListener("mouseenter",a),o.removeEventListener("mouseleave",i),n&&e.removeEventListener("mouseenter",i),e.removeEventListener("dragstart",l),e.removeEventListener("dragenter",c),e.removeEventListener("dragover",u),e.removeEventListener("drop",d)}};let ch;const F0e=C(ri)(()=>({"&:hover":{".drag-handle .drag-icon":{display:"inherit",cursor:"grab"}}})),z0e=({row:e,moveListItem:t})=>{const{hasAccess:n}=p.useContext(Zr),r=p.useRef(null),{searchQuery:o}=Qp(),a=!o&&n(Lb),i=D0e(e.index,t,r),l=(c,u)=>a&&c.column.isDragHandle?s(Qa,{...c.getCellProps(),ref:u,className:"drag-handle",children:c.render("Cell")}):s(Qa,{...c.getCellProps(),children:c.render("Cell")});return s(F0e,{hover:!0,ref:a?i:void 0,children:e.cells.map(c=>l(c,r))})},j0e=C(we)(({theme:e})=>({fontWeight:"bold",fontSize:e.fontSizes.smallerBody})),U0e=C(we)(({theme:e})=>({fontSize:e.fontSizes.smallerBody})),vR=C(wa)(({theme:e})=>({marginLeft:e.spacing(1)})),W0e=({environment:e})=>{const{searchQuery:t}=Qp();return T(mo,{sx:n=>({[n.breakpoints.up("sm")]:{minWidth:"350px"}}),children:[s(jc,{search:t,children:e.name}),s(X,{condition:e.protected,show:s(vR,{color:"success",children:"Predefined"})}),s(X,{condition:!e.enabled,show:s(Zx,{maxWidth:"270px",title:T(ke,{children:[s(j0e,{children:"Deprecated environment"}),s(U0e,{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:s(vR,{color:"neutral",children:"Deprecated"})})})]})},uh=({permission:e,projectId:t,children:n,environmentId:r,tooltip:o,tooltipProps:a})=>{const{hasAccess:i}=p.useContext(Zr);let l;return t&&r?l=i(e,t,r):t?l=i(e,t):l=i(e),s(au,{...a,title:yv(l,o),children:n({hasAccess:l})})},H0e=C(t4)(({theme:e})=>({padding:e.spacing(1)})),Bh=C(vs)(({theme:e})=>({borderRadius:e.shape.borderRadius})),V0e=C(Bh)(({theme:e})=>({color:e.palette.error.main})),G0e=C(Ih)(({theme:e})=>({color:e.palette.error.main})),q0e=({environment:e,onEdit:t,onDeprecateToggle:n,onClone:r,onDelete:o})=>{const[a,i]=p.useState(null),l=Boolean(a),c=h=>{i(h.currentTarget)},u=()=>{i(null)},d=`environment-${e.name}-actions`,f=`${d}-menu`;return T(ke,{children:[s(_t,{title:"Environment actions",arrow:!0,describeChild:!0,children:s(en,{id:d,"aria-controls":l?f:void 0,"aria-haspopup":"true","aria-expanded":l?"true":void 0,onClick:c,type:"button",children:s(mC,{})})}),s(ax,{id:f,anchorEl:a,open:l,onClose:u,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},disableScrollLock:!0,children:T(H0e,{"aria-labelledby":d,children:[s(uh,{permission:Lb,children:({hasAccess:h})=>T(Bh,{onClick:()=>{t(),u()},disabled:!h||e.protected,children:[s(Ih,{children:s(Ja,{})}),s(dn,{children:s(we,{variant:"body2",children:"Edit"})})]})}),s(uh,{permission:Ca,children:({hasAccess:h})=>T(Bh,{onClick:()=>{r(),u()},disabled:!h,children:[s(Ih,{children:s(mZ,{})}),s(dn,{children:s(we,{variant:"body2",children:"Clone"})})]})}),s(uh,{permission:Lb,children:({hasAccess:h})=>T(Bh,{onClick:()=>{n(),u()},disabled:!h||e.protected,children:[s(Ih,{children:s(X,{condition:e.enabled,show:s(UZ,{}),elseShow:s(WZ,{})})}),s(dn,{children:s(we,{variant:"body2",children:e.enabled?"Deprecate":"Undeprecate"})})]})}),s(uh,{permission:Ane,children:({hasAccess:h})=>T(V0e,{onClick:()=>{o(),u()},disabled:!h||e.protected,children:[s(G0e,{children:s(na,{})}),s(dn,{children:s(we,{variant:"body2",children:"Delete"})})]})})]})})]})},yR=(e,t)=>{var n;return Boolean((n=t==null?void 0:t.toLowerCase())==null?void 0:n.includes(e.toLowerCase()))},K0e=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",color:e.palette.text.secondary,"& > span:first-of-type":{color:e.palette.text.primary}})),Y0e=C("div")(({theme:e})=>({paddingLeft:e.spacing(1)})),X0e=C("div")(({theme:e})=>({display:"flex",marginBottom:e.spacing(3),"& > div:first-of-type":{width:"100%",maxWidth:e.spacing(50),marginRight:e.spacing(1)}})),J0e=(e,t,n)=>T("li",{...e,children:[s(ks,{icon:s(Av,{fontSize:"small"}),checkedIcon:s(_v,{fontSize:"small"}),style:{marginRight:8},checked:n}),T(K0e,{children:[s("span",{children:t.name}),s("span",{children:t.description})]})]}),Q0e=e=>s(Y0e,{children:e.length>1?`${e.length} projects selected`:e[0].name}),Z0e=({projects:e,setProjects:t})=>{const{projects:n}=Di(),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)),a=e.length>0&&e.length===r.length,i=()=>{const c=a?[]:r.map(({id:u})=>u);t(c)};return s(X0e,{children:s(nv,{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:f})=>f))},options:r,renderOption:(c,u,{selected:d})=>J0e(c,u,d),filterOptions:(c,{inputValue:u})=>c.filter(({name:d,description:f})=>yR(u,d)||yR(u,f)),isOptionEqualToValue:(c,u)=>c.id===u.id,getOptionLabel:c=>c.name||c.description||"",renderInput:c=>s(fn,{...c,label:"Projects"}),renderTags:c=>Q0e(c),groupBy:()=>"Select/Deselect all",renderGroup:({key:c,children:u})=>T(p.Fragment,{children:[s(X,{condition:r.length>2,show:s(OC,{isAllSelected:a,onClick:i})}),u]},c)})})},td="*",ebe=({...e})=>s(Ar,{elevation:8,...e}),tbe=C(ks)(({theme:e})=>({marginRight:e.spacing(.4)})),nbe=({options:e,defaultValue:t=[td],onChange:n,disabled:r,error:o,onFocus:a})=>{const[i,l]=p.useState(typeof t=="string"?[t]:t),[c,u]=p.useState(typeof t=="string"||t.includes(td)),d=i.length>0&&i.length===e.length&&i[0]!==td,f=(v,b)=>{b?(u(!0),n([td])):(u(!1),n(i.includes(td)?[]:i))},h=()=>{const v=d?[]:e.map(({value:b})=>b);l(v),n(v)};return T(Je,{sx:{mt:-1,mb:3},children:[s(Je,{sx:{mt:1,mb:.25,ml:1.5},children:s(Cr,{disabled:r,"data-testid":"select-all-projects",control:s(ks,{checked:r||c,onChange:f}),label:"ALL current and future projects"})}),s(nv,{disabled:r||c,multiple:!0,limitTags:2,options:e,disableCloseOnSelect:!0,getOptionLabel:({label:v})=>v,groupBy:()=>"Select/Deselect all",renderGroup:({key:v,children:b})=>T(p.Fragment,{children:[s(X,{condition:e.length>2,show:s(OC,{isAllSelected:d,onClick:h})}),b]},v),fullWidth:!0,PaperComponent:ebe,renderOption:(v,b,{selected:w})=>T("li",{...v,children:[s(tbe,{icon:s(Av,{fontSize:"small"}),checkedIcon:s(_v,{fontSize:"small"}),checked:w}),b.label]}),renderInput:v=>s(fn,{...v,error:Boolean(o),helperText:o,variant:"outlined",label:"Projects",placeholder:"Select one or more projects",onFocus:a,"data-testid":"select-input"}),value:c||r?e:e.filter(v=>i.includes(v.value)),onChange:(v,b)=>{const w=b.map(({value:x})=>x);l(w),n(w)}})]})},rbe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0});return{deleteToken:async i=>{const l=`api/admin/api-tokens/${i}`,c=t(l,{method:"DELETE"});try{return await e(c.caller,c.id)}catch(u){throw u}},createToken:async i=>{const c=t("api/admin/api-tokens",{method:"POST",body:JSON.stringify(i)});try{return await e(c.caller,c.id)}catch(u){throw u}},errors:n,loading:r}},obe=C("form")(()=>({display:"flex",flexDirection:"column",height:"100%"})),Gl=C("p")(({theme:e})=>({display:"flex",color:e.palette.text.primary,marginBottom:e.spacing(1),"&:not(:first-of-type)":{marginTop:e.spacing(4)}})),G1=C("p")(({theme:e})=>({color:e.palette.text.secondary,marginBottom:e.spacing(1)})),abe=C(_r)(({theme:e})=>({width:"100%",maxWidth:e.spacing(50)})),ibe=C("div")(({theme:e})=>({padding:e.spacing(3),backgroundColor:e.palette.secondaryContainer,borderRadius:e.shape.borderRadiusMedium,marginTop:e.spacing(4)})),sbe=C("div")(({theme:e})=>({padding:e.spacing(0,4),"& > p:not(:first-of-type)":{marginTop:e.spacing(2)}})),lbe=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end",[e.breakpoints.down("sm")]:{marginTop:e.spacing(4)}})),cbe=C(rt)(({theme:e})=>({marginLeft:e.spacing(3)})),ube=({environment:e,open:t,setOpen:n,newToken:r})=>{const{environments:o,refetchEnvironments:a}=iu(),{cloneEnvironment:i,loading:l}=uu(),{createToken:c}=rbe(),{projects:u}=Di(),{setToastData:d,setToastApiError:f}=Ot(),{uiConfig:h}=Nt(),[m,y]=p.useState(`${e.name}_clone`),[g,v]=p.useState("development"),[b,w]=p.useState([]),[x,E]=p.useState(["*"]),[A,k]=p.useState(!0),[_,O]=p.useState("later"),[L,I]=p.useState({}),$=ee=>{I(re=>({...re,[ee]:void 0}))},D=(ee,re)=>{I(Se=>({...Se,[ee]:re}))};p.useEffect(()=>{y(F(e.name)),v("development"),w([]),E(["*"]),k(!0),O("later"),I({})},[e]);const F=ee=>{let re=`${ee}_clone`,Se=2;for(;!W(re);)re=`${e.name}_clone_${Se}`,Se++;return re},U=()=>({name:m,type:g,projects:b,clonePermissions:A}),Y=()=>({username:`${m}_token`,type:"CLIENT",environment:m,projects:x}),V=async ee=>{ee.preventDefault();try{if(await i(e.name,U()),_==="now"){const Se=await(await c(Y())).json();r(Se)}d({title:"Environment successfully cloned!",type:"success"}),a(),n(!1)}catch(re){f(ft(re))}},te=()=>`curl --location --request POST '${h.unleashUrl}/api/admin/environments/${e.name}/clone' \\
348
- --header 'Authorization: INSERT_API_KEY' \\
349
- --header 'Content-Type: application/json' \\
350
- --data-raw '${JSON.stringify(U(),void 0,2)}'`,Z=ee=>ee.length,W=ee=>!(o!=null&&o.some(re=>re.name===ee)),z=Z(m)&&W(m)&&x.length,R=ee=>{$("name"),W(ee)||D("name","An environment with that name already exists."),y(ee)},N=u.map(ee=>({value:ee.id,label:ee.name}));return s(BC,{open:t,onClose:()=>{n(!1)},label:`Clone ${e.name} environment`,children:s(Nr,{loading:l,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:te,children:T(obe,{onSubmit:V,children:[T("div",{children:[s(Gl,{children:"What is your new environment name? (Can't be changed later)"}),s(abe,{autoFocus:!0,label:"Environment name",error:Boolean(L.name),errorText:L.name,value:m,onChange:ee=>R(ee.target.value),required:!0}),s(Gl,{children:"What type of environment do you want to create?"}),s(mO,{onChange:ee=>v(ee.currentTarget.value),value:g}),T(Gl,{children:["Select which projects you want to clone the environment configuration in?",s(Lm,{tooltip:"The cloned environment will keep the feature toggle state for the selected projects, where it will be enabled by default."})]}),s(Z0e,{projects:b,setProjects:w}),s(Gl,{children:"Keep the users permission for this environment?"}),s(G1,{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."}),s(Cr,{label:A?"Yes":"No",control:s(Pi,{onChange:ee=>k(ee.target.checked),checked:A})}),T(ibe,{children:[s(Gl,{children:"API Token"}),T(G1,{children:["In order to connect your SDKs to your newly cloned environment, you will also need an API token."," ",s(ho,{href:"https://docs.getunleash.io/reference/api-tokens-and-client-keys",target:"_blank",children:"Read more about API tokens"}),"."]}),s(Ri,{children:T(lx,{value:_,onChange:ee=>O(ee.target.value),name:"api-token-generation",children:[s(Cr,{value:"later",control:s(nl,{}),label:"I want to generate an API token later"}),s(Cr,{value:"now",control:s(nl,{}),label:"Generate an API token now"})]})}),T(sbe,{children:[s(G1,{children:"A new Server-side SDK (CLIENT) API token will be generated for the cloned environment, so you can get started right away."}),s(X,{condition:_==="now",show:T(ke,{children:[s(Gl,{children:"Which projects do you want this token to give access to?"}),s(nbe,{options:N,defaultValue:x,onChange:E,error:L.projects,onFocus:()=>$("projects")})]})})]})]})]}),T(lbe,{children:[s(rt,{type:"submit",variant:"contained",color:"primary",disabled:!z,children:"Clone environment"}),s(cbe,{onClick:()=>{n(!1)},children:"Cancel"})]})]})})})};var c2={},dbe=hn;Object.defineProperty(c2,"__esModule",{value:!0});var RL=c2.default=void 0,pbe=dbe(kn()),fbe=An,hbe=(0,pbe.default)((0,fbe.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");RL=c2.default=hbe;const PL=({token:e})=>{const{setToastData:t}=Ot();return T("div",{style:{backgroundColor:"#efefef",padding:"2rem",borderRadius:"3px",margin:"0",marginTop:"1rem",display:"flex",justifyContent:"space-between",alignItems:"center",wordBreak:"break-all"},children:[e,s(_t,{title:"Copy token",arrow:!0,children:s(en,{onClick:()=>{yO(e)?t({type:"success",title:"Token copied to clipboard"}):t({type:"error",title:"Could not copy token"})},size:"large",children:s(RL,{})})})]})},mbe=({open:e,setOpen:t,token:n})=>T(lr,{open:e,secondaryButtonText:"Close",onClose:(r,o)=>{o||t(!1)},title:"New API token created",children:[s(we,{variant:"body1",children:"Your new token has been created successfully."}),T(we,{variant:"body1",children:['You can also find it as "',s("strong",{children:n==null?void 0:n.username}),'" in the'," ",s(sn,{to:"/admin/api",children:"API access page"}),"."]}),s(PL,{token:(n==null?void 0:n.secret)||""})]}),gbe=C(Je)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",paddingLeft:e.spacing(.5),minWidth:e.spacing(6.5)})),vbe=C(en)(({theme:e})=>({padding:e.spacing(1.5,0),cursor:"inherit",transition:"color 0.2s ease-in-out",display:"none",color:e.palette.neutral.main})),ybe=C(E4,{shouldForwardProp:e=>e!=="deprecated"})(({theme:e,deprecated:t})=>({color:t?e.palette.neutral.border:e.palette.primary.main})),IL=({environment:e})=>T(gbe,{children:[s(vbe,{size:"large",disableRipple:!0,className:"drag-icon",children:s(EZ,{titleAccess:"Drag to reorder"})}),s(ybe,{deprecated:!e.enabled})]}),bbe=C(Ni)(({theme:e})=>({marginTop:e.spacing(3)})),wbe=C("p",{shouldForwardProp:e=>e!=="warning"})(({theme:e,warning:t})=>({color:t?e.palette.error.dark:e.palette.text.primary})),$L=({environment:e,warnEnabledToggles:t})=>{const n=p.useMemo(()=>[{id:"Icon",width:"1%",Cell:({row:{original:c}})=>s(IL,{environment:c})},{Header:"Name",accessor:"name",Cell:mo},{Header:"Type",accessor:"type",Cell:mo},{Header:"Visible in",accessor:c=>c.projectCount===1?"1 project":`${c.projectCount} projects`,Cell:({row:{original:c},value:u})=>T(mo,{children:[u,s(X,{condition:Boolean(t),show:s(wbe,{warning:Boolean(c.enabledToggleCount&&c.enabledToggleCount>0),children:c.enabledToggleCount===1?"1 toggle enabled":`${c.enabledToggleCount} toggles enabled`})})]})}],[t]),{getTableProps:r,getTableBodyProps:o,headerGroups:a,rows:i,prepareRow:l}=rn.useTable({columns:n,data:[e],disableSortBy:!0});return T(bbe,{...r(),rowHeight:"compact",children:[s(Mi,{headerGroups:a}),s(Ii,{...o(),children:i.map(c=>(l(c),s(ri,{hover:!0,...c.getRowProps(),children:c.cells.map(u=>s(Qa,{...u.getCellProps(),children:u.render("Cell")}))})))})]})},Sbe=({environment:e,open:t,setOpen:n,onConfirm:r})=>{const{enabled:o}=e,a=o?"Deprecate":"Undeprecate";return T(lr,{title:`${a} environment?`,open:t,primaryButtonText:a,secondaryButtonText:"Close",onClick:r,onClose:()=>{n(!1)},children:[s(X,{condition:o,show:s(Jt,{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:s(Jt,{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."})}),s($L,{environment:e})]})},xbe=C("p")(({theme:e})=>({marginTop:e.spacing(3),marginBottom:e.spacing(1.5)})),Cbe=C(_r)(()=>({width:"100%"})),Ebe=({environment:e,open:t,setOpen:n,onConfirm:r})=>{const[o,a]=p.useState("");return p.useEffect(()=>{a("")},[t]),T(lr,{title:"Delete environment?",open:t,primaryButtonText:"Delete environment",disabledPrimaryButton:e.name!==o,secondaryButtonText:"Close",onClick:r,onClose:()=>{n(!1)},children:[T(Jt,{severity:"error",children:[s("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."]}),s($L,{environment:e,warnEnabledToggles:!0}),T(xbe,{children:["In order to delete this environment, please enter the id of the environment in the textfield below:"," ",s("strong",{children:e.name})]}),s(Cbe,{label:"Environment name",value:o,onChange:i=>a(i.target.value)})]})},Tbe=({environment:e})=>{const t=ut(),{setToastApiError:n,setToastData:r}=Ot(),{environments:o,refetchEnvironments:a}=iu(),{refetch:i}=vC(),{deleteEnvironment:l,toggleEnvironmentOn:c,toggleEnvironmentOff:u}=uu(),[d,f]=p.useState(!1),[h,m]=p.useState(!1),[y,g]=p.useState(!1),[v,b]=p.useState(!1),[w,x]=p.useState();return T(Za,{children:[s(q0e,{environment:e,onEdit:()=>t(`/environments/${e.name}`),onDeprecateToggle:()=>m(!0),onClone:()=>{o.length<Dm?g(!0):r({type:"error",title:"Environment limit reached",text:`You have reached the maximum number of environments (${Dm}). Please reach out if you need more.`})},onDelete:()=>f(!0)}),s(Ebe,{environment:e,open:d,setOpen:f,onConfirm:async()=>{try{await l(e.name),i(),r({type:"success",title:"Environment deleted",text:`You have successfully deleted the ${e.name} environment.`})}catch(k){n(ft(k))}finally{f(!1),await a()}}}),s(Sbe,{environment:e,open:h,setOpen:m,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(k){n(ft(k))}finally{m(!1),await a()}}}),s(ube,{environment:e,open:y,setOpen:g,newToken:k=>{x(k),b(!0)}}),s(mbe,{open:v,setOpen:b,token:w})]})},kbe=C(Je)(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",wordBreak:"break-word",padding:e.spacing(1,2)})),Abe=C("span")(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"1",lineClamp:"1"})),_be=C("span")(({theme:e})=>({color:e.palette.text.secondary,overflow:"hidden",textOverflow:"ellipsis",fontSize:"inherit",WebkitLineClamp:"1",lineClamp:"1",display:"-webkit-box",WebkitBoxOrient:"vertical"})),of=({value:e,subtitle:t})=>{const{searchQuery:n}=Qp();return T(kbe,{children:[s(Abe,{style:{WebkitLineClamp:Boolean(t)?1:2,lineClamp:Boolean(t)?1:2},"data-loading":!0,children:s(jc,{search:n,children:e})}),s(X,{condition:Boolean(t),show:()=>s(_be,{"data-loading":!0,children:s(jc,{search:n,children:t})})})]})},Rbe=C(Jt)(({theme:e})=>({marginBottom:e.spacing(4)})),Pbe=()=>{const{changeSortOrder:e}=uu(),{setToastApiError:t}=Ot(),{environments:n,mutateEnvironments:r}=iu(),o=p.useCallback(async(v,b,w=!1)=>{const x=[...n],E=x[v];if(x.splice(v,1),x.splice(b,0,E),await r(x),w)try{await e(Fue(x))}catch(A){t(ft(A))}},[e,n,r,t]),{getTableProps:a,getTableBodyProps:i,headerGroups:l,rows:c,prepareRow:u,state:{globalFilter:d},setGlobalFilter:f}=rn.useTable({columns:Ibe,data:n,disableSortBy:!0},rn.useGlobalFilter),m=T(ke,{children:[s(vo,{initialValue:d,onChange:f}),s(En.Divider,{}),s(N0e,{})]});let y=c.length;const g=s(En,{title:`Environments (${y})`,actions:m});return T(gr,{header:g,children:[s(Rbe,{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."}),s(_s,{value:d,children:T(Ni,{...a(),rowHeight:"compact",children:[s(Mi,{headerGroups:l}),s(Ii,{...i(),children:c.map(v=>(u(v),s(z0e,{row:v,moveListItem:o},v.original.name)))})]})}),s(X,{condition:c.length===0,show:s(X,{condition:(d==null?void 0:d.length)>0,show:T(Qn,{children:["No environments found matching “",d,"”"]}),elseShow:s(Qn,{children:"No environments available. Get started by adding one."})})})]})},Ibe=[{id:"Icon",width:"1%",Cell:({row:{original:e}})=>s(IL,{environment:e}),disableGlobalFilter:!0,isDragHandle:!0},{Header:"Name",accessor:"name",Cell:({row:{original:e}})=>s(W0e,{environment:e}),minWidth:350},{Header:"Type",accessor:"type",Cell:of},{Header:"Visible in",accessor:e=>e.projectCount===1?"1 project":`${e.projectCount} projects`,Cell:mo},{Header:"API Tokens",accessor:e=>e.apiTokenCount===1?"1 token":`${e.apiTokenCount} tokens`,Cell:mo},{Header:"Actions",id:"Actions",align:"center",width:"1%",Cell:({row:{original:e}})=>s(Tbe,{environment:e}),disableGlobalFilter:!0}],$be=()=>{const e=ut();return s(Do,{onClick:()=>e("/segments/create"),permission:hv,"data-testid":eee,children:"New segment"})},Obe=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",margin:e.spacing(6),marginLeft:"auto",marginRight:"auto"})),Lbe=C(we)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(2.5)})),Mbe=C("p")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary,maxWidth:515,marginBottom:e.spacing(2.5),textAlign:"center"})),Nbe=C(sn)(({theme:e})=>({textDecoration:"none",color:e.palette.primary.main,fontWeight:e.fontWeight.bold})),Dbe=()=>{const{hasAccess:e}=p.useContext(Zr);return T(Obe,{children:[s(Lbe,{children:"No segments yet!"}),s(Mbe,{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."}),s(X,{condition:e(hv),show:s(Nbe,{to:"/segments/create",children:"Create your first segment"})})]})},Bbe=e=>{const t=jt(`api/admin/segments/${e}/strategies`),{data:n,error:r}=vn(t,()=>Fbe(t)),o=p.useCallback(()=>{Hr(t).catch(console.warn)},[t]);return{strategies:n==null?void 0:n.strategies,refetchUsedSegments:o,loading:!r&&!n,error:r}},Fbe=e=>fetch(e,{method:"GET"}).then(Tn("Strategies by segment")).then(t=>t.json()),zbe=C(_r)(({theme:e})=>({marginTop:e.spacing(2)})),jbe=({segment:e,open:t,onClose:n,onRemove:r})=>{const[o,a]=p.useState(""),i=u=>a(u.currentTarget.value),l=()=>{n(),a("")},c="delete-segment-confirmation-form";return T(lr,{title:"Are you sure you want to delete this segment?",open:t,primaryButtonText:"Delete segment",secondaryButtonText:"Cancel",onClick:()=>{r(),a("")},disabledPrimaryButton:(e==null?void 0:e.name)!==o,onClose:l,formId:c,children:[T("p",{children:["In order to delete this segment, please enter the name of the segment in the field below: ",s("strong",{children:e==null?void 0:e.name})]}),s("form",{id:c,children:s(zbe,{autoFocus:!0,onChange:i,value:o,label:"Segment name","data-testid":dee})})]})},Ube=({strategyDefinition:e})=>s("p",{children:e==null?void 0:e.description}),Wbe=Xee(GX,e=>({root:{height:8},thumb:{height:24,width:24,backgroundColor:"#fff",border:"2px solid currentColor"},active:{},valueLabel:{},track:{height:8,borderRadius:e.shape.borderRadius},rail:{height:8,borderRadius:e.shape.borderRadius}})),Hbe=Li()(e=>({slider:{width:"100%",maxWidth:"100%"},margin:{height:e.spacing(3)}})),Vbe=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"},{value:100,label:"100%"}],OL=({name:e,value:t,onChange:n,disabled:r=!1})=>{const{classes:o}=Hbe(),a=i=>`${i}%`;return T("div",{className:o.slider,children:[s(we,{id:"discrete-slider-always",variant:"h3",gutterBottom:!0,component:"h3",children:e}),s(Wbe,{min:0,max:100,value:t,getAriaValueText:a,"aria-labelledby":"discrete-slider-always",step:1,"data-testid":mee,marks:Vbe,onChange:n,valueLabelDisplay:"on",disabled:r})]})},LL=({name:e,value:t="",label:n="",options:r,onChange:o,id:a,disabled:i=!1,className:l,classes:c,...u})=>T(Ri,{variant:"outlined",size:"small",classes:c,children:[s(Gp,{htmlFor:a,children:n}),s(qp,{name:e,disabled:i,onChange:o,className:l,label:n,id:a,value:t,...u,children:(()=>r.map(f=>s(vs,{value:f.key,title:f.title||"","data-testid":`${B4}-${f.label}`,children:f.label},f.key)))()})]}),bR=[{key:"default",label:"default"},{key:"userId",label:"userId"},{key:"sessionId",label:"sessionId"},{key:"random",label:"random"}],Gbe=({updateParameter:e,parameters:t,context:n,editable:r=!0})=>{const o=u=>d=>{e(u,d)},a=(u,d)=>{e("rollout",d.toString())},l=(()=>bR.concat(n.filter(u=>u.stickiness).filter(u=>!bR.find(d=>d.key===u.name)).map(u=>({key:u.name,label:u.name}))))(),c=t.rollout!==void 0?Dd(t.rollout):100;return T("div",{children:[s(OL,{name:"Rollout",value:c,disabled:!r,onChange:a}),s("br",{}),T("div",{children:[T(we,{variant:"subtitle2",style:{marginBottom:"1rem",display:"flex",gap:"1ch"},component:"h2",children:["Stickiness",s(Lm,{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."})]}),s(LL,{id:"stickiness-select",name:"stickiness",label:"Stickiness",options:l,value:ss(t.stickiness),disabled:!r,"data-testid":vee,onChange:u=>o("stickiness")(u.target.value)})," ",s("br",{}),s("br",{}),T(we,{variant:"subtitle2",style:{marginBottom:"1rem",display:"flex",gap:"1ch"},component:"h2",children:["GroupId",s(Lm,{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."})]}),s(_r,{label:"groupId",id:"groupId-input",value:ss(t.groupId),disabled:!r,onChange:u=>o("groupId")(u.target.value),"data-testid":yee})]})]})},qbe=C("div")(({theme:e})=>({display:"grid",gap:e.spacing(1)})),Kbe=C("div")(({theme:e})=>({display:"flex",gap:e.spacing(1),flexWrap:"wrap"})),Ybe=C("div")(({theme:e})=>({display:"flex",gap:e.spacing(1),alignItems:"start"})),ML=({name:e,list:t,setConfig:n,disabled:r,errors:o})=>{const[a,i]=p.useState(""),l="Enter",c=m=>{d(m)},u=m=>{(m==null?void 0:m.key)===l&&(d(m),m.preventDefault(),m.stopPropagation())},d=m=>{m.preventDefault();const y=m.target.value;if(y){const g=y.split(/,\s*/).filter(v=>!t.includes(v));if(g.length>0){const v=t.concat(g).filter(b=>b);n(e,v.join(","))}i("")}},f=m=>{t[m]=null,n(e,t.length===1?"":t.filter(Boolean).join(","))},h=m=>{i(m.currentTarget.value)};return T(qbe,{children:[T(we,{variant:"subtitle2",component:"h2",children:["List of ",e]}),s(X,{condition:t.length>0,show:s(Kbe,{children:t.map((m,y)=>s(To,{label:s(Oa,{maxWidth:"300",text:m,maxLength:50}),onDelete:r?void 0:()=>f(y),title:"Remove value"},y+m))})}),s(X,{condition:!r,show:T(Ybe,{children:[s(fn,{error:Boolean(o.getFormError(e)),helperText:o.getFormError(e),name:"input_field",variant:"outlined",label:"Add items",id:"input-add-items",value:a,size:"small",placeholder:"",onBlur:c,onChange:h,onKeyDown:u,"data-testid":bee}),s(rt,{onClick:d,"data-testid":wee,variant:"outlined",color:"secondary",startIcon:s(xa,{}),children:"Add"})]})})]})},Xbe=({editable:e,parameters:t,updateParameter:n,errors:r})=>s("div",{children:s(ML,{name:"userIds",list:Ji(t.userIds),disabled:!e,setConfig:n,errors:r})}),nd=({text:e})=>e?s(Je,{sx:t=>({color:t.palette.text.secondary,fontSize:t.fontSizes.smallerBody,marginTop:t.spacing(1)}),children:e}):null,Jbe=({definition:e,parameters:t,updateParameter:n,editable:r,errors:o})=>{const{type:a,name:i,description:l,required:c}=e,u=t[i],d=o.getFormError(i),f=c?`${i} * `:i,h=b=>{n(i,b.target.value)},m=b=>{n(i,ss(b.target.value))},y=(b,w)=>{n(i,w.toString())},g=(b,w)=>{n(i,String(w))},v=(b,w)=>{n(b,Ji(w).join(","))};if(a==="percentage")return T("div",{children:[s(OL,{name:i,onChange:y,disabled:!r,value:Dd(t[i]),minLabel:"off",maxLabel:"on"}),s(nd,{text:l})]});if(a==="list")return T("div",{children:[s(ML,{name:i,list:Ji(t[i]),disabled:!r,setConfig:v,errors:o}),s(nd,{text:l})]});if(a==="number")return T("div",{children:[s(fn,{error:Boolean(d),helperText:d,variant:"outlined",size:"small","aria-required":c,style:{width:"100%"},disabled:!r,label:f,onChange:h,value:u}),s(nd,{text:l})]});if(a==="boolean"){const w=ss(t[i])==="true";return T("div",{children:[s(Cr,{label:i,control:s(Pi,{name:i,onChange:g,checked:w})}),s(nd,{text:l})]})}return T("div",{children:[s(fn,{rows:1,placeholder:"",variant:"outlined",size:"small",style:{width:"100%"},"aria-required":c,disabled:!r,error:Boolean(d),helperText:d,name:i,label:f,onChange:m,value:ss(t[i])}),s(nd,{text:l})]})},Qbe=Mr("div")(({theme:e})=>({display:"grid",gap:e.spacing(4)})),Zbe=({parameters:e,strategyDefinition:t,updateParameter:n,editable:r,errors:o})=>!t||t.parameters.length===0?null:s(Qbe,{children:t.parameters.map((a,i)=>s("div",{children:s(Jbe,{definition:a,parameters:e,updateParameter:n,editable:r,errors:o})},i))}),ewe=({hasAccess:e,strategy:t,strategyDefinition:n,setStrategy:r,validateParameter:o,errors:a})=>{const{context:i}=_l(),l=(c,u)=>{r(Vo(d=>{d.parameters=d.parameters??{},d.parameters[c]=u})),o(c,u)};switch(t.name){case"default":return s(Ube,{strategyDefinition:n});case"flexibleRollout":return s(Gbe,{context:i,parameters:t.parameters??{},updateParameter:l,editable:e});case"userWithId":return s(Xbe,{parameters:t.parameters??{},updateParameter:l,editable:e,errors:a});default:return s(Zbe,{strategyDefinition:n,parameters:t.parameters??{},updateParameter:l,editable:e,errors:a})}},twe=({projectId:e,featureId:t,environmentId:n,children:r})=>{const o=d2(e,t),{feature:a}=gl(e,t),i=s(sn,{to:o,style:{color:"inherit"},children:"feature toggle page"});return s(X,{condition:nwe(a,n),show:r,elseShow:T(Jt,{severity:"warning",children:["This feature toggle is currently disabled in the"," ",s("strong",{children:n})," environment. Any changes made here will not take effect until the toggle has been enabled on the ",i,"."]})})},nwe=(e,t)=>{const n=e.environments.find(r=>r.name===t);return n?n.enabled:!1},rwe=({projectId:e,environmentId:t,strategy:n,setStrategy:r})=>{const o=p.useMemo(()=>n.constraints??[],[n]),a=c=>{r(u=>({...u,constraints:c instanceof Function?c(o):c}))},i=Uc(u3,e,t),l=Uc(Nx,e,t);return s(jv,{constraints:o,setConstraints:l?a:void 0,showCreateButton:i})},owe=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.featureStrategySegmentChipBackground,color:e.palette.text.tertiaryContrast})),wR=C("button")(({theme:e})=>({all:"unset",height:e.spacing(2),cursor:"pointer"})),awe=C(sn)(({theme:e})=>({marginRight:e.spacing(1),color:"inherit",textDecoration:"none"})),q1=e=>({fontSize:e.fontSizes.bodySize}),iwe=({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)},a=()=>{r(c=>c===e?void 0:e)},i=s(X,{condition:e===n,show:s(R4,{titleAccess:"Hide",sx:q1}),elseShow:s(_4,{titleAccess:"Show",sx:q1})}),l=e===n?"Hide segment constraints":"Preview segment constraints";return T(owe,{children:[s(awe,{to:`/segments/edit/${e.id}`,target:"_blank",children:e.name}),s(_t,{title:l,arrow:!0,children:s(wR,{type:"button",onClick:a,"aria-expanded":e===n,"aria-controls":CL,children:i})}),s(_t,{title:"Remove segment",arrow:!0,children:s(wR,{type:"button",onClick:o,children:s(xZ,{titleAccess:"Remove",sx:q1})})})]})},swe=C(XS)(({theme:e})=>({border:`1px solid ${e.palette.dividerAlternative}`,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}})),lwe=C(QS)(({theme:e})=>({margin:e.spacing(0,.5),fontSize:e.typography.body2.fontSize,".MuiAccordionSummary-content":{display:"flex",alignItems:"center"}})),cwe=C(sn)(({theme:e})=>({textDecoration:"none",marginLeft:e.spacing(1),"&:hover":{textDecoration:"underline"}})),NL=({segment:e,isExpanded:t,headerContent:n,constraintList:r})=>{var i;const[o,a]=p.useState(t||!1);return T(swe,{expanded:o,children:[T(lwe,{id:`segment-accordion-${e.id}`,children:[s(T4,{color:"secondary",sx:{mr:1}}),s("span",{children:"Segment:"}),s(cwe,{to:`/segments/edit/${e.id}`,children:e.name}),s(X,{condition:Boolean(n),show:n}),s(X,{condition:!t,show:s(rt,{size:"small",variant:"outlined",onClick:()=>a(l=>!l),sx:{my:0,ml:"auto",fontSize:l=>l.typography.body2.fontSize},children:o?"Close preview":"Preview"})})]}),s(JS,{sx:{pt:0},children:s(X,{condition:Boolean(r),show:r,elseShow:s(X,{condition:(((i=e==null?void 0:e.constraints)==null?void 0:i.length)||0)>0,show:s(jv,{constraints:e.constraints,showLabel:!1}),elseShow:s(we,{children:"This segment has no constraints."})})})})]})},uwe=C("div")(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(1)})),dwe=C("p")(({theme:e})=>({color:e.palette.text.secondary})),pwe=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.secondaryContainer})),fwe=({segments:e,setSegments:t})=>{const[n,r]=p.useState(),o=e.length-1;return e.length===0?null:T(ke,{children:[s(X,{condition:e&&e.length>0,show:s(dwe,{children:"Selected Segments"})}),s(uwe,{children:e.map((a,i)=>T(p.Fragment,{children:[s(iwe,{segment:a,setSegments:t,preview:n,setPreview:r}),s(X,{condition:i<o,show:s(pwe,{children:"AND"})})]},a.id))}),s(X,{condition:Boolean(n),show:()=>s(NL,{segment:n,isExpanded:!0})})]})},hwe=C(fo)(({theme:e})=>({fontSize:e.fontSizes.smallBody})),mwe=({segments:e,setSegments:t})=>{const{segments:n}=Rl(),{strategySegmentsLimit:r}=Pl(),o=Boolean(r&&e.length>=r);if(!n||n.length===0)return null;const i=n.filter(c=>!e.find(u=>u.id===c.id)).map(c=>({value:String(c.id),label:c.name}));return T(ke,{children:[s(we,{component:"h3",sx:{m:0},variant:"h3",children:"Segmentation"}),o&&s(p0e,{}),s("p",{children:"Add a predefined segment to constrain this feature toggle:"}),s(EL,{label:"Select segments",options:i,onChange:([c])=>{const u=n.find(d=>String(d.id)===c.value);u&&t(d=>[...d,u])},disabled:o}),s(fwe,{segments:e,setSegments:t}),s(hwe,{})]})},gwe=(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"&&!vwe(t))return"Not a valid number."}},vwe=e=>typeof e>"u"||e===""||/^\d+$/.test(String(e)),ywe=({environment:e})=>T(Jt,{severity:"info",children:[s("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."]}),bwe="production",wwe=({open:e,onClose:t,onClick:n,label:r,loading:o})=>{const[a,i]=DL(),l=()=>{i(c=>({hide:!c.hide}))};return T(lr,{title:"Changing production environment!",primaryButtonText:r,disabledPrimaryButton:o,secondaryButtonText:"Cancel",onClick:n,onClose:t,open:e,children:[s(Jt,{severity:"error",children:"WARNING. You are about to make changes to a production environment. These changes will affect your customers."}),s("p",{style:{marginTop:"1rem"},children:"Are you sure you want to proceed?"}),s(Cr,{label:"Don't show again",control:s(ks,{checked:a.hide,onChange:l})})]})},Swe=(e,t)=>{const[n]=DL(),r=e.environments.find(o=>o.name===t);return n.hide?!1:(r==null?void 0:r.type)===bwe},xwe="useFeatureStrategyProdGuardSettings:v2",DL=jx(xwe,{hide:!1}),Cwe=e=>({changeRequestInReviewOrApproved:n=>e?e.some(r=>r.environment===n&&bn(["In review","Approved"],r.state)):!1,alert:s(Jt,{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?"})}),Ewe=(e,t,n,r={})=>{const{isEnterprise:o}=Nt();return eC(o(),e,t,n,r)},Twe=e=>fetch(e).then(Tn("ChangeRequest")).then(t=>t.json()),Uv=e=>{const{data:t,error:n,mutate:r}=Ewe([],jt(`api/admin/projects/${e}/change-requests/pending`),Twe);return{data:t,loading:!n&&!t,refetch:r,error:n}},kwe=C("form")(({theme:e})=>({display:"grid",gap:e.spacing(2)})),K1=C("hr")(({theme:e})=>({width:"100%",height:"1px",margin:e.spacing(2,0),border:"none",background:e.palette.tertiary.light})),Awe=C("div")(({theme:e})=>({display:"flex",justifyContent:"end",gap:e.spacing(2),paddingBottom:e.spacing(10)})),_we=({projectId:e,feature:t,environmentId:n,permission:r,onSubmit:o,loading:a,strategy:i,setStrategy:l,segments:c,setSegments:u,errors:d,isChangeRequest:f})=>{const[h,m]=p.useState(!1),y=DC(i.constraints),g=Swe(t,n),v=Uc(r,e,n),{strategyDefinition:b}=LC(i==null?void 0:i.name),{data:w}=Uv(t.project),{changeRequestInReviewOrApproved:x,alert:E}=Cwe(w),A=x(n||""),k=A?"Add to existing change request":"Add change to draft",_=ut(),{uiConfig:O,error:L,loading:I}=Nt();if(L)throw L;if(I||!b)return null;const $=V=>b.parameters.find(te=>te.name===V),D=(V,te)=>{const Z=gwe($(V),te);return Z?(d.setFormError(V,Z),!1):(d.removeFormError(V),!0)},F=()=>b.parameters.map(V=>V.name).map(V=>{var te;return D(V,(te=i.parameters)==null?void 0:te[V])}).every(Boolean),U=()=>{_(d2(t.project,t.name))};return T(kwe,{onSubmit:async V=>{V.preventDefault(),F()&&(g&&!f?m(!0):o())},children:[s(X,{condition:A,show:E,elseShow:s(X,{condition:Boolean(f),show:s(ywe,{environment:n})})}),s(twe,{projectId:t.project,featureId:t.name,environmentId:n,children:s(X,{condition:Boolean(f),show:T(Jt,{severity:"success",children:["This feature toggle is currently enabled in the"," ",s("strong",{children:n})," environment. Any changes made here will be available to users as soon as these changes are approved and applied."]}),elseShow:T(Jt,{severity:"success",children:["This feature toggle is currently enabled in the"," ",s("strong",{children:n})," environment. Any changes made here will be available to users as soon as you hit ",s("strong",{children:"save"}),"."]})})}),s(K1,{}),s(X,{condition:Boolean(O.flags.SE),show:s(mwe,{segments:c,setSegments:u})}),s(rwe,{projectId:t.project,environmentId:n,strategy:i,setStrategy:l}),s(K1,{}),s(ewe,{strategy:i,strategyDefinition:b,setStrategy:l,validateParameter:D,errors:d,hasAccess:v}),s(K1,{}),T(Awe,{children:[s(Do,{permission:r,projectId:t.project,environmentId:n,variant:"contained",color:"primary",type:"submit",disabled:a||!y||d.hasFormErrors(),"data-testid":See,children:f?k:"Save strategy"}),s(rt,{type:"button",color:"secondary",onClick:U,disabled:a,children:"Cancel"}),s(wwe,{open:h,onClose:()=>m(!1),onClick:o,loading:a,label:"Save strategy"})]})]})},SR=e=>{const t=new URLSearchParams(window.location.search).get(e);if(!t)throw new Error(`Missing required query param: ${e}`);return t},Rwe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0});return{addStrategyToFeature:async(c,u,d,f)=>{const h=`api/admin/projects/${c}/features/${u}/environments/${d}/strategies`,m=t(h,{method:"POST",body:JSON.stringify(f)},"addStrategyToFeature");return(await e(m.caller,m.id)).json()},updateStrategyOnFeature:async(c,u,d,f,h)=>{const m=`api/admin/projects/${c}/features/${u}/environments/${d}/strategies/${f}`,y=t(m,{method:"PUT",body:JSON.stringify(h)},"updateStrategyOnFeature");await e(y.caller,y.id)},deleteStrategyFromFeature:async(c,u,d,f)=>{const h=`api/admin/projects/${c}/features/${u}/environments/${d}/strategies/${f}`,m=t(h,{method:"DELETE"},"deleteStrategyFromFeature");await e(m.caller,m.id)},setStrategiesSortOrder:async(c,u,d,f)=>{const h=`api/admin/projects/${c}/features/${u}/environments/${d}/strategies/set-sort-order`,m=t(h,{method:"POST",body:JSON.stringify(f)},"setStrategiesSortOrderOnFeature");await e(m.caller,m.id)},loading:r,errors:n}},Pwe=()=>{const[e,t]=p.useState({}),n=p.useCallback(i=>e[i],[e]),r=p.useCallback((i,l)=>{t(Vo(c=>{c[i]=l}))},[t]),o=p.useCallback(i=>{t(Vo(l=>{delete l[i]}))},[t]),a=p.useCallback(()=>Object.values(e).some(Boolean),[e]);return{getFormError:n,setFormError:r,removeFormError:o,hasFormErrors:a}},Iwe=(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 xR=Object.prototype.hasOwnProperty;function CR(e,t,n){for(n of e.keys())if(Bd(n,t))return n}function Bd(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--&&Bd(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=CR(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=CR(t,o),!o)||!Bd(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(xR.call(e,n)&&++r&&!xR.call(t,n)||!(n in t)||!Bd(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const $we=({refresh:e,show:t,afterSubmitAction:n,data:r,cache:o})=>{const a=cn(),i=Tr(a.breakpoints.down("sm")),l=p.useMemo(()=>{const c={...G4,padding:`${a.spacing(3)} ${a.spacing(4)}`,boxShadow:a.boxShadows.elevated,borderRadius:a.shape.borderRadiusLarge,backgroundColor:a.palette.background.paper,maxWidth:a.spacing(75),zIndex:a.zIndex.mobileStepper};return i?{...c,right:0,left:0,bottom:0,borderRadius:0}:c},[a,i]);return T(Cx,{mounted:t,start:l,enter:q4,children:[s(we,{variant:"h5",sx:{my:2,mb:2},children:"Your data is stale"}),s(we,{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."}),s(Rv,{entry:{preData:o,data:r}}),s(rt,{sx:{mb:2},variant:"contained",color:"primary",onClick:()=>{e(),n()},children:"Refresh data"})]})},Owe=({unleashGetter:e,dataKey:t="",refetchFunctionKey:n="",options:r={},params:o=[""]})=>{const a=e(...o,{refreshInterval:5,...r});return{data:a[t],refetch:a[n]}},Lwe=(e,t,n,r)=>{const{data:o,refetch:a}=Owe(e),[i,l]=p.useState(t||null),[c,u]=p.useState(!1),d=h=>{u(!1),l(h)},f=h=>h&&(r&&typeof r=="function"?r(h):h);return p.useEffect(()=>{i===null&&l(t)},[t]),p.useEffect(()=>{if(!i||!o)return;Bd(f(i),f(o))||u(!0)},[o]),{data:i,refetch:a,staleDataNotification:s($we,{cache:f(i),data:f(o),refresh:()=>d(o),show:c,afterSubmitAction:n.afterSubmitAction}),forceRefreshCache:d}},Mwe=e=>{const t={...e};return delete t.lastSeenAt,t},u2=()=>{const{trackEvent:e}=Oi(),{makeRequest:t,createRequest:n,errors:r,loading:o}=Un({propagateErrors:!0});return{addChange:async(f,h,m)=>{e("change_request",{props:{eventType:"change added"}});const y=`api/admin/projects/${f}/environments/${h}/change-requests`,g=n(y,{method:"POST",body:JSON.stringify(m)});try{return(await t(g.caller,g.id)).json()}catch(v){throw v}},changeState:async(f,h,m)=>{e("change_request",{props:{eventType:m.state}});const y=`api/admin/projects/${f}/change-requests/${h}/state`,g=n(y,{method:"PUT",body:JSON.stringify(m)});try{return(await t(g.caller,g.id)).json()}catch(v){throw v}},discardChange:async(f,h,m)=>{const y=`api/admin/projects/${f}/change-requests/${h}/changes/${m}`,g=n(y,{method:"DELETE"});try{return await t(g.caller,g.id)}catch(v){throw v}},updateChangeRequestEnvironmentConfig:async({project:f,enabled:h,environment:m,requiredApprovals:y})=>{const g=`api/admin/projects/${f}/environments/${m}/change-requests/config`,v=n(g,{method:"PUT",body:JSON.stringify({changeRequestsEnabled:h,requiredApprovals:y})});try{return await t(v.caller,v.id)}catch(b){throw b}},discardDraft:async(f,h)=>{const m=`api/admin/projects/${f}/change-requests/${h}`,y=n(m,{method:"DELETE"});try{return await t(y.caller,y.id)}catch(g){throw g}},addComment:async(f,h,m)=>{e("change_request",{props:{eventType:"comment added"}});const y=`/api/admin/projects/${f}/change-requests/${h}/comments`,g=n(y,{method:"POST",body:JSON.stringify({text:m})});try{return await t(g.caller,g.id)}catch(v){throw v}},errors:r,loading:o}},APe=()=>{const e=cr("projectId"),t=cr("featureId"),n=SR("environmentId"),r=SR("strategyId"),[o,a]=p.useState({}),[i,l]=p.useState([]),{updateStrategyOnFeature:c,loading:u}=Rwe(),{strategyDefinition:d}=LC(o.name),{setToastData:f,setToastApiError:h}=Ot(),m=Pwe(),{uiConfig:y}=Nt(),{unleashUrl:g}=y,v=ut(),{addChange:b}=u2(),{isChangeRequestConfigured:w}=tf(e),{refetch:x}=Uv(e),{feature:E,refetchFeature:A}=gl(e,t),k=p.useRef(E),{data:_,staleDataNotification:O,forceRefreshCache:L}=Lwe({unleashGetter:gl,params:[e,t],dataKey:"feature",refetchFunctionKey:"refetchFeature",options:{}},E,{afterSubmitAction:A},Mwe);p.useEffect(()=>{k.current.name===""&&E.name&&(L(E),k.current=E)},[E]);const{segments:I,refetchSegments:$}=Rl(r);p.useEffect(()=>{const Y=_==null?void 0:_.environments.flatMap(V=>V.strategies).find(V=>V.id===r);a(V=>({...V,...Y}))},[r,_]),p.useEffect(()=>{I&&l(I)},[JSON.stringify(I)]);const D=async Y=>{await c(e,t,n,r,Y),await $(),f({title:"Strategy updated",type:"success",confetti:!0})},F=async Y=>{await b(e,n,{action:"updateStrategy",feature:t,payload:{...Y,id:r}}),f({title:"Change added to draft",type:"success",confetti:!0}),x()},U=async()=>{const Y=y!=null&&y.flags.SE?i:[],V=Nwe(o,Y);try{w(n)?await F(V):await D(V),A(),v(d2(e,t))}catch(te){h(ft(te))}};return!o.id||!d||!_?null:T(Nr,{modal:!0,title:wp(o.name??""),description:Fwe,documentationLink:zwe,documentationLinkLabel:jwe,formatApiCode:()=>Bwe(e,t,n,o,d,g),children:[s(_we,{projectId:e,feature:_,strategy:o,setStrategy:a,segments:i,setSegments:l,environmentId:n,onSubmit:U,loading:u,permission:Nx,errors:m,isChangeRequest:w(n)}),O]})},Nwe=(e,t)=>({name:e.name,constraints:e.constraints??[],parameters:e.parameters??{},segments:t.map(n=>n.id)}),d2=(e,t)=>`/projects/${e}/features/${t}`,Dwe=(e,t,n,r)=>{const o=new URLSearchParams({environmentId:n,strategyId:r});return`/projects/${e}/features/${t}/strategies/edit?${o}`},Bwe=(e,t,n,r,o,a)=>{if(!a)return"";const i={...r,parameters:Iwe(r.parameters??{},o)},l=`${a}/api/admin/projects/${e}/features/${t}/environments/${n}/strategies/${r.id}`,c=JSON.stringify(i,void 0,2);return`curl --location --request PUT '${l}' \\
351
- --header 'Authorization: INSERT_API_KEY' \\
352
- --header 'Content-Type: application/json' \\
353
- --data-raw '${c}'`},Fwe=`
354
- 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.
355
- If any of a feature toggle's activation strategies returns true, the user will get access.
356
- `,zwe="https://docs.getunleash.io/reference/activation-strategies",jwe="Strategies documentation",Uwe=C("ul")({marginBottom:0}),Wwe=C(sn)(({theme:e})=>({textDecoration:"none",color:e.palette.primary.main,fontWeight:e.fontWeight.bold})),Hwe=({segment:e,open:t,onClose:n,strategies:r})=>T(lr,{title:"You can't delete a segment that's currently in use",open:t,primaryButtonText:"OK",onClick:n,children:[T("p",{children:["The following feature toggles are using the"," ",s("strong",{children:e.name})," segment for their strategies:"]}),s(Uwe,{children:r==null?void 0:r.map(o=>s("li",{children:T(Wwe,{to:Dwe(o.projectId,o.featureName,o.environment,o.id),target:"_blank",rel:"noopener noreferrer",children:[o.featureName," ",Vwe(o)]})},o.id))})]}),Vwe=e=>e.strategyName?`(${wp(e.strategyName)})`:"",Gwe=({segment:e,open:t,onClose:n,onRemove:r})=>{const{strategies:o,loading:a}=Bbe(e.id),i=(o==null?void 0:o.length)===0;return a?null:s(X,{condition:i,show:s(jbe,{segment:e,open:t,onClose:n,onRemove:r}),elseShow:s(Hwe,{segment:e,open:t,onClose:n,strategies:o})})},qwe=({segment:e})=>{const{refetchSegments:t}=Rl(),{deleteSegment:n}=MC(),{setToastData:r,setToastApiError:o}=Ot(),[a,i]=p.useState(!1),l=async()=>{try{await n(e.id),await t(),r({type:"success",title:"Successfully deleted segment"})}catch(c){o(ft(c))}finally{i(!1)}};return T(ke,{children:[s(mr,{onClick:()=>i(!0),permission:Ine,tooltipProps:{title:"Remove segment"},"data-testid":`${uee}_${e.name}`,children:s(na,{"data-loading":!0})}),s(X,{condition:a,show:()=>s(Gwe,{segment:e,open:a,onClose:()=>i(!1),onRemove:l})})]})},Kwe=({segment:e})=>{const t=ut();return s(mr,{onClick:()=>t(`/segments/edit/${e.id}`),permission:Dx,tooltipProps:{title:"Edit segment"},children:s(Ja,{"data-loading":!0})})},Ywe=({segment:e})=>T(Za,{children:[s(Kwe,{segment:e}),s(qwe,{segment:e})]}),Xwe=()=>{const{segments:e,loading:t}=Rl(),n=Tr(Bc.breakpoints.down("md")),[r]=p.useState({sortBy:[{id:"createdAt"}],hiddenColumns:["description"]}),o=p.useMemo(()=>e??Array(5).fill({name:"Segment name",description:"Segment descripton",createdAt:new Date().toISOString(),createdBy:"user"}),[e]),{getTableProps:a,getTableBodyProps:i,headerGroups:l,rows:c,prepareRow:u,state:{globalFilter:d},setGlobalFilter:f,setHiddenColumns:h}=rn.useTable({initialState:r,columns:ER,data:o,sortTypes:ai,autoResetGlobalFilter:!1,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,defaultColumn:{Cell:of}},rn.useGlobalFilter,rn.useSortBy);return bv([{condition:n,columns:["createdAt","createdBy"]}],h,ER),s(gr,{header:s(En,{title:`Segments (${c.length})`,actions:T(ke,{children:[s(vo,{initialValue:d,onChange:f}),s(En.Divider,{}),s($be,{})]})}),isLoading:t,children:s(X,{condition:!t&&o.length===0,show:s(Qn,{children:s(Dbe,{})}),elseShow:()=>T(ke,{children:[s(_s,{value:d,children:T(Ni,{...a(),rowHeight:"standard",children:[s(Mi,{headerGroups:l}),s(Ii,{...i(),children:c.map(m=>(u(m),s(ri,{hover:!0,...m.getRowProps(),children:m.cells.map(y=>s(Qa,{...y.getCellProps(),children:y.render("Cell")}))})))})]})}),s(X,{condition:c.length===0&&(d==null?void 0:d.length)>0,show:T(Qn,{children:["No segments found matching “",d,"”"]})})]})})})},ER=[{id:"Icon",width:"1%",disableGlobalFilter:!0,disableSortBy:!0,Cell:()=>s(xv,{icon:s(T4,{color:"disabled"})})},{Header:"Name",accessor:"name",width:"60%",Cell:({value:e,row:{original:t}})=>s(of,{value:e,subtitle:t.description})},{Header:"Created at",accessor:"createdAt",minWidth:150,Cell:bp,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}})=>s(Ywe,{segment:e})},{accessor:"description"}],Jwe=e=>fetch(e).then(Tn("Feature toggle archive")).then(t=>t.json()),Qwe=e=>{const{data:t,error:n,mutate:r,isLoading:o}=vn(jt(e?`/api/admin/archive/features/${e}`:"api/admin/features"),Jwe,{refreshInterval:15e3});return{archivedFeatures:t==null?void 0:t.features,refetchArchived:r,loading:o,error:n}},Zwe=({onRevive:e,onDelete:t,project:n})=>T(Za,{children:[s(mr,{onClick:e,projectId:n,permission:s3,tooltipProps:{title:"Revive feature toggle"},children:s(zZ,{})}),s(mr,{permission:Sne,projectId:n,tooltipProps:{title:"Delete feature toggle"},onClick:t,children:s(na,{})})]}),BL=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0});return{reviveFeature:async i=>{const l=`api/admin/archive/revive/${i}`,c=t(l,{method:"POST"});return e(c.caller,c.id)},deleteFeature:async i=>{const l=`api/admin/archive/${i}`,c=t(l,{method:"DELETE"});return e(c.caller,c.id)},errors:n,loading:r}},eSe=({value:e})=>{const{locationSettings:t}=oi(),n=cn();return e?s(mo,{children:s(_t,{title:`Archived on: ${zc(e,t.locale)}`,arrow:!0,children:s(we,{noWrap:!0,variant:"body2","data-loading":!0,children:s(Vx,{date:new Date(e),title:"",live:!1})})})}):s(mo,{children:s(we,{variant:"body2",color:n.palette.text.secondary,children:"not available"})})},tSe=C("p")(({theme:e})=>({marginTop:e.spacing(3)})),nSe=C(_r)(({theme:e})=>({marginTop:e.spacing(2),width:"100%"})),rSe=({deletedFeature:e,open:t,setOpen:n,refetch:r})=>{const[o,a]=p.useState(""),{setToastData:i,setToastApiError:l}=Ot(),{deleteFeature:c}=BL(),u=async()=>{try{if(!e)return;await c(e.name),await r(),i({type:"success",title:"Feature toggle deleted",text:`You have successfully deleted the ${e.name} feature toggle.`})}catch(h){l(ft(h))}finally{d()}},d=()=>{n(!1),a("")},f="delete-feature-toggle-confirmation-form";return T(lr,{title:"Delete feature toggle?",open:t,primaryButtonText:"Delete feature toggle",secondaryButtonText:"Cancel",onClick:u,onClose:d,disabledPrimaryButton:(e==null?void 0:e.name)!==o,formId:f,children:[T(Jt,{severity:"warning",children:[s("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."]}),T(tSe,{children:["In order to delete this feature toggle, please enter its name in the text field below: ",s("strong",{children:e==null?void 0:e.name})]}),s("form",{id:f,children:s(nSe,{autoFocus:!0,onChange:h=>{a(h.currentTarget.value)},value:o,placeholder:"<feature toggle name>",label:"Feature toggle name"})})]})},oSe=({archivedFeatures:e=[],loading:t,refetch:n,storedParams:r,setStoredParams:o,title:a,projectId:i})=>{const l=Tr(Bc.breakpoints.down("md")),c=Tr(Bc.breakpoints.down("lg")),{setToastData:u,setToastApiError:d}=Ot(),[f,h]=p.useState(!1),[m,y]=p.useState(),[g,v]=Dp(),{reviveFeature:b}=BL(),[w,x]=p.useState(g.get("search")||""),E=p.useCallback(async V=>{try{await b(V),await n(),u({type:"success",title:"And we're back!",text:"The feature toggle has been revived."})}catch(te){d(ft(te))}},[n,b,d,u]),A=p.useMemo(()=>[{Header:"Seen",width:85,canSort:!0,Cell:x3,accessor:"lastSeenAt",align:"center"},{Header:"Type",accessor:"type",width:85,canSort:!0,Cell:k3,align:"center"},{Header:"Name",accessor:"name",searchable:!0,minWidth:100,Cell:({value:V,row:{original:te}})=>s(of,{value:V,subtitle:te.description}),sortType:"alphanumeric"},{Header:"Created",accessor:"createdAt",width:150,Cell:bp,sortType:"date"},{Header:"Archived",accessor:"archivedAt",width:150,Cell:eSe,sortType:"date"},...i?[]:[{Header:"Project ID",accessor:"project",sortType:"alphanumeric",filterName:"project",searchable:!0,maxWidth:170,Cell:({value:V})=>s(Rs,{title:V,to:`/projects/${V}`})}],{Header:"State",accessor:"stale",Cell:I3,sortType:"boolean",maxWidth:120,filterName:"state",filterParsing:V=>V?"stale":"active"},{Header:"Actions",id:"Actions",align:"center",maxWidth:120,canSort:!1,Cell:({row:{original:V}})=>s(Zwe,{project:V.project,onRevive:()=>E(V.name),onDelete:()=>{y(V),h(!0)}})},{accessor:"description",header:"Description",searchable:!0}],[i]),{data:k,getSearchText:_,getSearchContext:O}=rC(A,w,e),L=p.useMemo(()=>t?B3:k,[k,t]),[I]=p.useState(()=>({sortBy:[{id:g.get("sort")||r.id,desc:g.has("order")?g.get("order")==="desc":r.desc}],hiddenColumns:["description"]})),{headerGroups:$,rows:D,state:{sortBy:F},prepareRow:U,setHiddenColumns:Y}=rn.useTable({columns:A,data:L,initialState:I,sortTypes:ai,autoResetHiddenColumns:!1,disableSortRemove:!0,autoResetSortBy:!1},rn.useFlexLayout,rn.useSortBy);return bv([{condition:l,columns:["type","createdAt"]},{condition:c,columns:["lastSeenAt","stale"]}],Y,A),p.useEffect(()=>{if(t)return;const V={};V.sort=F[0].id,F[0].desc&&(V.order="desc"),w&&(V.search=w),v(V,{replace:!0}),o({id:F[0].id,desc:F[0].desc||!1})},[t,F,w]),T(gr,{isLoading:t,header:s(En,{titleElement:`${a} (${D.length<L.length?`${D.length} of ${L.length}`:L.length})`,actions:s(vo,{initialValue:w,onChange:x,hasFilters:!0,getSearchContext:O})}),children:[s(_s,{value:_(w),children:s(Fx,{rows:D,headerGroups:$,prepareRow:U})}),s(X,{condition:D.length===0,show:()=>s(X,{condition:(w==null?void 0:w.length)>0,show:T(Qn,{children:["No feature toggles found matching “",w,"”"]}),elseShow:s(Qn,{children:"None of the feature toggles were archived yet."})})}),s(rSe,{deletedFeature:m,open:f,setOpen:h,refetch:n})]})},aSe={id:"createdAt"},{value:iSe,setValue:sSe}=vv("FeaturesArchiveTable:v1",aSe),lSe=()=>{A3("Archive");const{archivedFeatures:e=[],loading:t,refetchArchived:n}=Qwe();return s(oSe,{title:"Archive",archivedFeatures:e,loading:t,storedParams:iSe,setStoredParams:sSe,refetch:n})},cSe=p.lazy(()=>import("./Playground-ee072216.js")),uSe=C(rt)(({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.primary.main:"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"},justifyContent:"space-between"})),dSe=({label:e,selected:t,onClick:n})=>s(uSe,{selected:Boolean(t),onClick:n,disableRipple:!0,disableElevation:!0,disableFocusRipple:!0,disableTouchRipple:!0,fullWidth:!0,children:e}),pSe=C("div")(({theme:e})=>({display:"flex",gap:e.spacing(3),[e.breakpoints.down("md")]:{flexDirection:"column"}})),fSe=C("div")(()=>({flexGrow:1,display:"flex",flexDirection:"column"})),hSe=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(1),width:e.spacing(30),flexShrink:0,[e.breakpoints.down("md")]:{width:"100%"}})),mSe=({tabs:e,value:t,onChange:n,children:r})=>T(pSe,{children:[s(hSe,{children:e.filter(o=>!o.hidden).map(o=>s(dSe,{label:o.label,selected:o.id===t,onClick:()=>n(o)},o.id))}),s(fSe,{children:r})]}),gSe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0});return{changePassword:async a=>{const i=t("api/admin/user/change-password",{method:"POST",body:JSON.stringify(a)});try{await e(i.caller,i.id)}catch(l){throw l}},errors:n,loading:r}},vSe=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(2),maxWidth:e.spacing(44)})),ySe=()=>{const[e,t]=p.useState(!1),{setToastData:n,setToastApiError:r}=Ot(),[o,a]=p.useState(!1),[i,l]=p.useState(),[c,u]=p.useState(""),[d,f]=p.useState(""),{changePassword:h}=gSe(),m=async y=>{if(y.preventDefault(),c===d){if(!o)l(oO);else{t(!0),l(void 0);try{await h({password:c,confirmPassword:d}),n({title:"Password changed successfully",text:"Now you can sign in using your new password.",type:"success"})}catch(g){const v=ft(g);l(v),r(v)}}t(!1)}};return s(gr,{isLoading:e,header:"Change password",children:T(vSe,{children:[s(aO,{password:c,callback:a,"data-loading":!0}),s(Wc,{"data-loading":!0,label:"Password",name:"password",value:c,error:Boolean(i),helperText:i,autoComplete:"new-password",onChange:y=>u(y.target.value)}),s(Wc,{"data-loading":!0,label:"Confirm password",name:"confirmPassword",value:d,autoComplete:"new-password",onChange:y=>f(y.target.value)}),s(sO,{"data-loading":!0,started:Boolean(c&&d),matchingPasswords:c===d}),s(rt,{"data-loading":!0,variant:"contained",color:"primary",type:"submit",onClick:m,children:"Save"})]})})},bSe=10,p2=e=>{const{data:t,error:n,mutate:r}=vn(jt(e?`api/admin/user-admin/${e}/pat`:"api/admin/user/tokens"),wSe);return{tokens:t?t.pats:void 0,loading:!n&&!t,refetchTokens:()=>r(),error:n}},wSe=e=>fetch(e).then(Tn("Personal API Tokens")).then(t=>t.json()),FL=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({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(f){throw f}},deleteUserPersonalAPIToken:async(c,u)=>{const d=t(`api/admin/user-admin/${c}/pat/${u}`,{method:"DELETE"});try{await e(d.caller,d.id)}catch(f){throw f}},errors:n,loading:r}},SSe=e=>{const t=new Date(e);return yp(t,"yyyy-MM-dd")},xSe=e=>{const t=new Date(e);return yp(t,"yyyy-MM-dd")+"T"+yp(t,"HH:mm")},CSe=({label:e,type:t="datetime",error:n,errorText:r,min:o,max:a,value:i,onChange:l,...c})=>{const u=t==="datetime"?xSe:SSe;return s(fn,{type:t==="datetime"?"datetime-local":"date",size:"small",variant:"outlined",label:e,error:n,helperText:r,value:u(i.toISOString()),onChange:f=>{const h=gO(f.target.value);l(h??i)},FormHelperTextProps:{["data-testid"]:F4},inputProps:{min:o&&u(o.toISOString()),max:a&&u(a.toISOString())},...c})},TR=C("p")(({theme:e})=>({color:e.palette.text.secondary,marginBottom:e.spacing(1)})),ESe=C(_r)(({theme:e})=>({width:"100%",maxWidth:e.spacing(50),marginBottom:e.spacing(2)})),TSe=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"}})),kSe=C(LL)(({theme:e})=>({minWidth:e.spacing(20),marginRight:e.spacing(.5),[e.breakpoints.down("sm")]:{width:e.spacing(50)}})),ASe=C(CSe)(({theme:e})=>({width:e.spacing(28),[e.breakpoints.down("sm")]:{width:e.spacing(50)}})),_Se=C(Jt)(({theme:e})=>({marginBottom:e.spacing(2),maxWidth:e.spacing(50)}));var zL=(e=>(e["7DAYS"]="7d",e["30DAYS"]="30d",e["60DAYS"]="60d",e.NEVER="never",e.CUSTOM="custom",e))(zL||{});const jL=[{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"}],aw=e=>{const t=new Date,n=jL.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},RSe=({description:e,setDescription:t,isDescriptionUnique:n,expiration:r,setExpiration:o,expiresAt:a,setExpiresAt:i,errors:l,setErrors:c})=>{const{locationSettings:u}=oi(),d=g=>{c(v=>({...v,[g]:void 0}))},f=(g,v)=>{c(b=>({...b,[g]:v}))};p.useEffect(()=>{d("expiresAt"),i(aw(r))},[r]);const h=g=>{d("description"),n&&!n(g)&&f("description","A token with that description already exists."),t(g)},m=r==="custom",y=a.getFullYear()>new Date().getFullYear()+100;return T(ke,{children:[s(TR,{children:"Describe what this token will be used for"}),s(ESe,{autoFocus:!0,label:"Description",error:Boolean(l.description),errorText:l.description,value:e,onChange:g=>h(g.target.value),required:!0}),s(TR,{children:"Token expiration date"}),T(TSe,{custom:m,children:[s(kSe,{name:"expiration",id:"expiration",label:"Token will expire in",value:r,onChange:g=>o(g.target.value),options:jL}),s(X,{condition:m,show:()=>s(ASe,{label:"Date",value:a,onChange:g=>{d("expiresAt"),g<new Date&&f("expiresAt","Invalid date, must be in the future"),i(g)},min:new Date,error:Boolean(l.expiresAt),errorText:l.expiresAt,required:!0}),elseShow:s(X,{condition:y,show:T(we,{variant:"body2",children:["The token will ",s("strong",{children:"never"})," ","expire!"]}),elseShow:()=>T(we,{variant:"body2",children:["Token will expire on"," ",s("strong",{children:zc(a,u.locale)})]})})})]}),s(X,{condition:y,show:s(_Se,{severity:"warning",children:"We strongly recommend that you set an expiration date for your token to help keep your information secure."})})]})},PSe=C("form")(()=>({display:"flex",flexDirection:"column",height:"100%"})),ISe=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end",[e.breakpoints.down("sm")]:{marginTop:e.spacing(4)}})),$Se=C(rt)(({theme:e})=>({marginLeft:e.spacing(3)})),dh=zL["30DAYS"],OSe=({open:e,setOpen:t,newToken:n})=>{const{tokens:r,refetchTokens:o}=p2(),{createPersonalAPIToken:a,loading:i}=FL(),{setToastApiError:l}=Ot(),{uiConfig:c}=Nt(),[u,d]=p.useState(""),[f,h]=p.useState(dh),[m,y]=p.useState(aw(dh)),[g,v]=p.useState({});p.useEffect(()=>{d(""),h(dh),y(aw(dh)),v({})},[e]);const b=()=>({description:u,expiresAt:m}),w=async _=>{_.preventDefault();try{const O=await a(b());n(O),o(),t(!1)}catch(O){l(ft(O))}},x=()=>`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(b(),void 0,2)}'`,E=_=>_.length,A=_=>!(r!=null&&r.some(O=>O.description===_)),k=E(u)&&A(u)&&m>new Date;return s(BC,{open:e,onClose:()=>{t(!1)},label:"Create personal API token",children:s(Nr,{loading:i,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:x,children:T(PSe,{onSubmit:w,children:[s("div",{children:s(RSe,{description:u,setDescription:d,isDescriptionUnique:A,expiration:f,setExpiration:h,expiresAt:m,setExpiresAt:y,errors:g,setErrors:v})}),T(ISe,{children:[s(rt,{type:"submit",variant:"contained",color:"primary",disabled:!k,children:"Create token"}),s($Se,{onClick:()=>{t(!1)},children:"Cancel"})]})]})})})},LSe=({open:e,setOpen:t,token:n})=>{const{refetchTokens:r}=p2(),{deletePersonalAPIToken:o}=FL(),{setToastData:a,setToastApiError:i}=Ot();return s(lr,{open:e,primaryButtonText:"Delete token",secondaryButtonText:"Cancel",onClick:async()=>{if(n)try{await o(n==null?void 0:n.id),r(),t(!1),a({title:"Token deleted successfully",type:"success"})}catch(c){i(ft(c))}},onClose:()=>{t(!1)},title:"Delete token?",children:T(we,{children:['Any applications or scripts using this token "',s("strong",{children:n==null?void 0:n.description}),'" will no longer be able to access the Unleash API. You cannot undo this action.']})})},MSe=C(Jt)(({theme:e})=>({marginBottom:e.spacing(3)})),NSe=({open:e,setOpen:t,token:n})=>T(lr,{open:e,secondaryButtonText:"Close",onClose:(r,o)=>{o||t(!1)},title:"Personal API token created",children:[s(MSe,{severity:"info",children:"Make sure to copy your personal API token now. You won't be able to see it again!"}),s(we,{variant:"body1",children:"Your token:"}),s(PL,{token:(n==null?void 0:n.secret)||""})]}),DSe=({value:e,live:t=!1,emptyText:n,title:r})=>{const{locationSettings:o}=oi();if(!e)return s(mo,{children:n});const a=zc(e,o.locale);return s(mo,{children:s(_t,{title:(r==null?void 0:r(a))??a,arrow:!0,children:s(we,{noWrap:!0,component:"span",variant:"body2","data-loading":!0,children:s(Vx,{date:new Date(e),live:t,title:""})})})})},BSe=C(Jt)(({theme:e})=>({marginBottom:e.spacing(3)})),FSe=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(10,2)})),zSe=C(we)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(1.5)})),jSe=C(we)(({theme:e})=>({color:e.palette.text.secondary,marginBottom:e.spacing(4.5)})),USe=Array(15).fill({description:"Short description of the feature",type:"-",createdAt:new Date(2022,1,1),project:"projectID"}),WSe={id:"createdAt"},{value:kR,setValue:HSe}=vv("PersonalAPITokensTable:v1",WSe),VSe=()=>{const e=cn(),t=Tr(e.breakpoints.down("md")),n=Tr(e.breakpoints.down("sm")),{tokens:r=[],loading:o}=p2(),[a,i]=Dp(),[l]=p.useState(()=>({sortBy:[{id:a.get("sort")||kR.id,desc:a.has("order")?a.get("order")==="desc":kR.desc}],globalFilter:a.get("search")||""})),[c,u]=p.useState(l.globalFilter),[d,f]=p.useState(!1),[h,m]=p.useState(!1),[y,g]=p.useState(!1),[v,b]=p.useState(),[w,x]=p.useState(),E=p.useMemo(()=>[{Header:"Description",accessor:"description",Cell:of,minWidth:100,searchable:!0},{Header:"Expires",accessor:"expiresAt",Cell:({value:U})=>new Date(U).getFullYear()>new Date().getFullYear()+100?s(mo,{children:"Never"}):s(bp,{value:U}),sortType:"date",maxWidth:150},{Header:"Created",accessor:"createdAt",Cell:bp,sortType:"date",maxWidth:150},{Header:"Last seen",accessor:"seenAt",Cell:DSe,sortType:"date",maxWidth:150},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:U}})=>s(Za,{children:s(_t,{title:"Delete token",arrow:!0,describeChild:!0,children:s("span",{children:s(en,{onClick:()=>{x(U),g(!0)},children:s(na,{})})})})}),maxWidth:100,disableSortBy:!0}],[x,g]),{data:A,getSearchText:k,getSearchContext:_}=rC(E,c,r),O=p.useMemo(()=>(A==null?void 0:A.length)===0&&o?USe:A,[A,o]),{headerGroups:L,rows:I,prepareRow:$,state:{sortBy:D},setHiddenColumns:F}=rn.useTable({columns:E,data:O,initialState:l,sortTypes:ai,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0},rn.useSortBy,rn.useFlexLayout);return bv([{condition:n,columns:["expiresAt"]},{condition:t,columns:["createdAt"]}],F,E),p.useEffect(()=>{const U={};U.sort=D[0].id,D[0].desc&&(U.order="desc"),c&&(U.search=c),i(U,{replace:!0}),HSe({id:D[0].id,desc:D[0].desc||!1})},[D,c,i]),T(gr,{isLoading:o,header:s(En,{title:`Personal API tokens (${I.length<O.length?`${I.length} of ${O.length}`:O.length})`,actions:T(ke,{children:[s(X,{condition:!t,show:T(ke,{children:[s(vo,{initialValue:c,onChange:u,getSearchContext:_}),s(En.Divider,{})]})}),s(rt,{variant:"contained",color:"primary",disabled:r.length>=bSe,onClick:()=>f(!0),children:"New token"})]}),children:s(X,{condition:t,show:s(vo,{initialValue:c,onChange:u,hasFilters:!0,getSearchContext:_})})}),children:[s(BSe,{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."}),s(_s,{value:k(c),children:s(Fx,{rows:I,headerGroups:L,prepareRow:$})}),s(X,{condition:I.length===0,show:s(X,{condition:(c==null?void 0:c.length)>0,show:T(Qn,{children:["No tokens found matching “",c,"”"]}),elseShow:T(FSe,{children:[s(zSe,{children:"You have no personal API tokens yet."}),s(jSe,{variant:"body2",children:"Need an API token for scripts or testing? Create a personal API token for quick access to the Unleash API."}),s(rt,{variant:"outlined",onClick:()=>f(!0),children:"Create your first token"})]})})}),s(OSe,{open:d,setOpen:f,newToken:U=>{b(U),m(!0)}}),s(NSe,{open:h,setOpen:m,token:v}),s(LSe,{open:y,setOpen:g,token:w})]})},GSe=()=>{const{data:e,error:t,mutate:n}=vn(jt("api/admin/user/profile"),qSe);return{profile:e,loading:!t&&!e,refetchProfile:()=>n(),error:t}},qSe=e=>fetch(e).then(Tn("Profile")).then(t=>t.json());var f2={},KSe=hn;Object.defineProperty(f2,"__esModule",{value:!0});var UL=f2.default=void 0,YSe=KSe(kn()),XSe=An,JSe=(0,YSe.default)((0,XSe.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");UL=f2.default=JSe;var h2={},QSe=hn;Object.defineProperty(h2,"__esModule",{value:!0});var WL=h2.default=void 0,ZSe=QSe(kn()),exe=An,txe=(0,ZSe.default)((0,exe.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");WL=h2.default=txe;const nxe=C("div")(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",padding:e.spacing(6),borderRadius:e.shape.borderRadiusLarge,backgroundColor:e.palette.primary.main,color:e.palette.text.tertiaryContrast,marginBottom:e.spacing(3),boxShadow:e.boxShadows.primaryHeader})),rxe=C("div")(()=>({flexGrow:1})),oxe=C(we)(({theme:e})=>({fontSize:e.spacing(3.75)})),axe=C(Px)(({theme:e})=>({width:e.spacing(9.5),height:e.spacing(9.5),marginRight:e.spacing(3)})),AR=C(we)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(3)})),ixe=C("div")(({theme:e})=>({display:"flex",flexDirection:"row","& > div > p":{marginBottom:e.spacing(1.5)}})),sxe=C(wa)(({theme:e})=>({cursor:"pointer",marginRight:e.spacing(1)})),lxe=C("div")(({theme:e})=>({width:"100%",height:"1px",backgroundColor:e.palette.divider,margin:e.spacing(3,0)})),cxe=C(Ri)(({theme:e})=>({marginTop:e.spacing(1.5),width:e.spacing(30)})),uxe=C(Gp)(({theme:e})=>({backgroundColor:e.palette.inputLabelBackground})),dxe=({user:e})=>{const{profile:t}=GSe(),n=ut(),{locationSettings:r,setLocationSettings:o}=oi(),[a,i]=p.useState(),[l,c]=p.useState(["en-US","en-GB","nb-NO","sv-SE","da-DK","en-IN","de","cs","pt-BR","fr-FR"]);p.useEffect(()=>{const d=l.find(f=>f.toLowerCase().includes(r.locale.toLowerCase()));i(d),d||c(f=>[...f,r.locale])},[r]);const u=d=>{const f=d.target.value;i(f),o({locale:f})};return T(ke,{children:[T(nxe,{children:[s(axe,{user:e}),T(rxe,{children:[s(oxe,{children:e.name||e.username}),s(we,{variant:"body1",children:e.email})]})]}),T(gr,{children:[s(AR,{children:"Access"}),T(ixe,{children:[T(Je,{sx:{width:"50%"},children:[s(we,{variant:"body2",children:"Your root role"}),s(_t,{title:(t==null?void 0:t.rootRole.description)||"",arrow:!0,placement:"bottom-end",describeChild:!0,children:s(wa,{color:"success",icon:s(UL,{}),iconRight:!0,children:t==null?void 0:t.rootRole.name})})]}),T(Je,{children:[s(we,{variant:"body2",children:"Projects"}),s(X,{condition:Boolean(t==null?void 0:t.projects.length),show:t==null?void 0:t.projects.map(d=>s(_t,{title:"View project",arrow:!0,placement:"bottom-end",describeChild:!0,children:s(sxe,{onClick:f=>{f.preventDefault(),n(`/projects/${d}`)},color:"secondary",icon:s(WL,{}),children:d})},d)),elseShow:s(_t,{title:"You are not assigned to any projects",arrow:!0,describeChild:!0,children:s(wa,{children:"No projects"})})})]})]}),s(lxe,{}),s(AR,{children:"Settings"}),s(we,{variant:"body2",children:"This is the format used across the system for time and date"}),T(cxe,{variant:"outlined",size:"small",children:[s(uxe,{htmlFor:"locale-select",children:"Date/Time formatting"}),s(qp,{id:"locale-select",value:a||"",native:!0,onChange:u,MenuProps:{style:{zIndex:9999}},children:l.map(d=>s("option",{value:d,children:d},d))})]})]})]})},pxe=()=>{const{user:e}=sa(),t=oa(),n=ut(),r=[{id:"profile",label:"Profile"},{id:"password",label:"Change password",path:"change-password"},{id:"pat",label:"Personal API tokens",path:"personal-api-tokens"}],o=c=>{n(c.path?`/profile/${c.path}`:"/profile",{replace:!0}),l(c.id)},a=()=>{const c=t.pathname;return(r.find(({path:d})=>d&&c.includes(d))||r[0]).id},[i,l]=p.useState(a());return p.useEffect(()=>{l(a())},[t]),T(mSe,{tabs:r,value:i,onChange:o,children:[s(X,{condition:i==="profile",show:s(dxe,{user:e})}),s(X,{condition:i==="password",show:s(ySe,{})}),s(X,{condition:i==="pat",show:s(VSe,{})})]})},fxe=p.lazy(()=>import("./CreateProject-b852657c.js")),hxe=p.lazy(()=>import("./FeatureViewLazyExport-1366d6bf.js")),mxe=p.lazy(()=>import("./LazyAdminExport-d9800386.js")),gxe=p.lazy(()=>import("./LazyProjectExport-ef4471a8.js")),vxe=()=>s(Tl,{to:"/admin/users",replace:!0}),kp=[{path:"/splash/:splashId",title:"Unleash",component:Nhe,type:"protected",menu:{},isStandalone:!0},{path:"/projects/create",parent:"/projects",title:"Create",component:fxe,type:"protected",enterprise:!0,menu:{}},{path:"/projects/:projectId/edit",parent:"/projects",title:":projectId",component:dpe,type:"protected",enterprise:!0,menu:{}},{path:"/projects/:projectId/archived",title:":projectId",parent:"/archive",component:Bue,type:"protected",menu:{}},{path:"/projects/:projectId/features/:featureId/:activeTab/copy",parent:"/projects/:projectId/features/:featureId/:activeTab",title:"Copy",component:Bfe,type:"protected",menu:{}},{path:"/projects/:projectId/features/:featureId/edit",parent:"/projects",title:"Edit feature",component:Upe,type:"protected",menu:{}},{path:"/projects/:projectId/features/:featureId/*",parent:"/projects",title:"FeatureView",component:hxe,type:"protected",menu:{}},{path:"/projects/:projectId/create-toggle",parent:"/projects/:projectId/features",title:"Create feature toggle",component:Epe,type:"protected",menu:{}},{path:"/projects/:projectId/features2/:featureId",parent:"/features",title:":featureId",component:l_,type:"protected",menu:{}},{path:"/projects/:projectId/*",parent:"/projects",title:":projectId",component:gxe,flag:Cce,type:"protected",menu:{}},{path:"/projects",title:"Projects",component:Due,type:"protected",menu:{mobile:!0}},{path:"/features/:activeTab/:featureId",parent:"/features",title:":featureId",component:l_,type:"protected",menu:{}},{path:"/features",title:"Feature toggles",component:Vie,type:"protected",menu:{mobile:!0}},{path:"/playground",title:"Playground",component:cSe,hidden:!1,type:"protected",menu:{mobile:!0}},{path:"/applications/:name",title:":name",parent:"/applications",component:Kpe,type:"protected",menu:{}},{path:"/applications",title:"Applications",component:Ype,type:"protected",menu:{mobile:!0,advanced:!0}},{path:"/context/create",parent:"/context",title:"Create",component:Fhe,type:"protected",menu:{}},{path:"/context/edit/:name",parent:"/context",title:":name",component:Gde,type:"protected",menu:{}},{path:"/context",title:"Context fields",component:Qpe,type:"protected",menu:{mobile:!0,advanced:!0}},{path:"/strategies/create",title:"Create",parent:"/strategies",component:yhe,type:"protected",menu:{}},{path:"/strategies/:name/edit",title:":name",parent:"/strategies",component:whe,type:"protected",menu:{}},{path:"/strategies/:name",title:":name",parent:"/strategies",component:Ise,type:"protected",menu:{}},{path:"/strategies",title:"Strategy types",component:dle,type:"protected",menu:{mobile:!0,advanced:!0}},{path:"/environments/create",title:"Environments",component:kde,parent:"/environments",type:"protected",menu:{}},{path:"/environments/:id",title:"Edit",component:Rde,type:"protected",menu:{}},{path:"/environments",title:"Environments",component:Pbe,type:"protected",flag:Ece,menu:{mobile:!0,advanced:!0}},{path:"/tag-types/create",parent:"/tag-types",title:"Create",component:npe,type:"protected",menu:{}},{path:"/tag-types/edit/:name",parent:"/tag-types",title:":name",component:tpe,type:"protected",menu:{}},{path:"/tag-types",title:"Tag types",component:hle,type:"protected",menu:{mobile:!0,advanced:!0}},{path:"/addons/create/:providerId",parent:"/addons",title:"Create",component:Ofe,type:"protected",menu:{}},{path:"/addons/edit/:addonId",parent:"/addons",title:"Edit",component:Lfe,type:"protected",menu:{}},{path:"/addons",title:"Addons",component:Tle,hidden:!1,type:"protected",menu:{mobile:!0,advanced:!0}},{path:"/segments/create",title:"Segments",component:$0e,hidden:!1,type:"protected",layout:"main",menu:{},flag:S1},{path:"/segments/edit/:segmentId",title:"Segments",component:M0e,hidden:!1,type:"protected",layout:"main",menu:{},flag:S1},{path:"/segments",title:"Segments",component:Xwe,hidden:!1,type:"protected",menu:{mobile:!0,advanced:!0},flag:S1},{path:"/history",title:"Event log",component:the,type:"protected",menu:{adminSettings:!0}},{path:"/archive",title:"Archived toggles",component:lSe,type:"protected",menu:{}},{path:"/admin",title:"Admin",component:vxe,hidden:!1,type:"protected",menu:{}},{path:"/admin/*",title:"Admin",component:mxe,hidden:!1,type:"protected",menu:{}},{path:"/profile/*",title:"Profile",component:pxe,type:"protected",menu:{}},{path:"/login",title:"Log in",component:xce,type:"unprotected",hidden:!0,menu:{},isStandalone:!0},{path:"/new-user",title:"New user",hidden:!0,component:Zce,type:"unprotected",menu:{},isStandalone:!0},{path:"/reset-password",title:"Reset password",hidden:!0,component:nue,type:"unprotected",menu:{},isStandalone:!0},{path:"/forgotten-password",title:"Forgotten password",hidden:!0,component:cue,type:"unprotected",menu:{},isStandalone:!0}],yxe=[{path:"/history",title:"Event log",menu:{adminSettings:!0}},{path:"/admin/users",title:"Users",menu:{adminSettings:!0}},{path:"/admin/groups",title:"Groups",menu:{adminSettings:!0},flag:kce},{path:"/admin/roles",title:"Project roles",flag:Tce,menu:{adminSettings:!0}},{path:"/admin/auth",title:"Single sign-on",menu:{adminSettings:!0}},{path:"/admin/instance",title:"Instance stats",menu:{adminSettings:!0}},{path:"/admin/service-accounts",title:"Service accounts",menu:{adminSettings:!0,isEnterprise:!0}},{path:"/admin/network/*",title:"Network",menu:{adminSettings:!0},configFlag:"networkViewEnabled"},{path:"/admin/maintenance",title:"Maintenance",menu:{adminSettings:!0},flag:"maintenance"},{path:"/admin/cors",title:"CORS origins",flag:"embedProxyFrontend",menu:{adminSettings:!0}},{path:"/admin/admin-invoices",title:"Billing & invoices",menu:{adminSettings:!0,isEnterprise:!0}}],bxe=kp.filter(e=>!e.hidden),wxe=()=>{const e=bxe.filter(o=>o.menu.advanced),t=kp.filter(o=>o.menu.adminSettings),n=kp.filter(o=>o.menu.mobile),r={mainNavRoutes:e,adminRoutes:t,mobileRoutes:n};return()=>r},_R=e=>e.map(t=>({path:t.path,flag:t.flag,title:t.title,menu:t.menu,configFlag:t.configFlag})),Sxe=wxe(),RR=C(nW)(({theme:e})=>({backgroundColor:e.palette.headerBackground,padding:e.spacing(1),boxShadow:"none",position:"relative",zIndex:300})),PR=C(_V)(({theme:e})=>({display:"flex",alignItems:"center",maxWidth:1280,[e.breakpoints.down("md")]:{padding:"0"}})),IR=C("div")({marginLeft:"auto",display:"flex",alignItems:"center"}),xxe=C("nav")({display:"flex",alignItems:"center",flexGrow:1}),Cxe=C(Vte)({width:"150px"}),Exe=C(Hte)({width:"150px"}),Txe=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"}})),kxe=C("button")(({theme:e})=>({border:"none",background:"transparent",height:"100%",display:"flex",fontSize:e.fontSizes.bodySize,fontFamily:e.typography.fontFamily,alignItems:"center",color:"inherit",cursor:"pointer"})),$R=e=>({color:e.palette.neutral.main}),ph=C(sn)(({theme:e})=>dv(e)),Axe=C(en)(({theme:e})=>({...dv(e),borderRadius:100})),_xe=()=>{const{onSetThemeMode:e,themeMode:t}=N4(),n=cn(),r=ys(),o=ys(),[a,i]=p.useState(null),[l,c]=p.useState(null),[u,d]=p.useState(!1),{permissions:f}=yC(),{uiConfig:h,isOss:m}=Nt(),y=Tr(n.breakpoints.down("md")),[g,v]=p.useState(!1),b=()=>v(_=>!_),w=()=>i(null),x=()=>c(null);p.useEffect(()=>{(f==null?void 0:f.find(O=>O.permission===Ca))&&d(!0)},[f]);const E=Sxe(),A=_=>!_.menu.isEnterprise||!m(),k={mainNavRoutes:_R(E.mainNavRoutes).concat([{path:"/admin/api",title:"API access",menu:{}}]).filter(T1(h)),mobileRoutes:_R(E.mobileRoutes).filter(T1(h)),adminRoutes:yxe.filter(T1(h)).filter(A).map(_=>({..._,path:_.path.replace("/*","")}))};return y?s(RR,{position:"static",children:T(PR,{children:[s(_t,{title:"Menu",arrow:!0,children:s(en,{sx:{color:_=>_.palette.text.primary},onClick:b,"aria-controls":"header-drawer","aria-expanded":g,size:"large",children:s(J4,{})})}),s(wne,{title:h.name,flags:h.flags,links:h.links,open:g,toggleDrawer:b,admin:u,routes:k}),s(IR,{children:s(gA,{})})]})}):s(RR,{position:"static",children:T(PR,{children:[s(ph,{to:"/",sx:pv,"aria-label":"Home",children:s(nw,{darkmode:s(Cxe,{"aria-label":"Unleash logo"}),lightmode:s(Exe,{"aria-label":"Unleash logo"})})}),T(xxe,{children:[T(Txe,{children:[s(ph,{to:"/projects",children:"Projects"}),s(ph,{to:"/features",children:"Feature toggles"}),s(ph,{to:"/playground",children:"Playground"}),T(kxe,{onClick:_=>c(_.currentTarget),"aria-controls":l?o:void 0,"aria-expanded":Boolean(l),children:["Configure",s(_b,{sx:$R})]}),s(SA,{id:o,options:k.mainNavRoutes,anchorEl:l,handleClose:x,style:{top:10}})]}),T(IR,{children:[s(X,{condition:Boolean(h.flags.ENABLE_DARK_MODE_SUPPORT),show:s(Cr,{control:s(Pi,{onChange:e,checked:t==="dark"}),label:"darkmode"})}),s(_t,{title:"Documentation",arrow:!0,children:s(en,{href:"https://docs.getunleash.io/",target:"_blank",rel:"noopener noreferrer",size:"large",disableRipple:!0,sx:dv,children:s($x,{})})}),s(X,{condition:u,show:s(_t,{title:"Settings",arrow:!0,children:T(Axe,{onClick:_=>i(_.currentTarget),"aria-controls":a?r:void 0,"aria-expanded":Boolean(a),size:"large",disableRipple:!0,children:[s(Q4,{}),s(_b,{sx:$R})]})})}),s(SA,{id:r,options:k.adminRoutes,anchorEl:a,handleClose:w,style:{top:5,left:-100}})," ",s(gA,{})]})]})]})})},Rxe=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}`},Pxe=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}`},Fh=C("h2")(({theme:e})=>({all:"unset",display:"block",margin:e.spacing(2,0),fontSize:e.fontSizes.bodySize,fontWeight:e.fontWeight.bold})),Ixe=e=>{var a;const t=(a=e.uiConfig.versionInfo)==null?void 0:a.instanceId,n=Rxe(e.uiConfig),r=e.uiConfig.environment,o=Pxe(e.uiConfig);return T("section",{title:"API details",children:[T(Fh,{children:[n," ",s(X,{condition:Boolean(r),show:T("small",{children:["(",r,")"]})})]}),s(X,{condition:Boolean(o),show:T("small",{children:[o,s("br",{})]})}),s("br",{}),s("small",{children:e.uiConfig.slogan}),s("br",{}),s(X,{condition:Boolean(t),show:s("small",{children:`${t}`})})]})},$xe=C("footer")(({theme:e})=>({padding:e.spacing(4,8),width:"100%",flexGrow:1,zIndex:100,backgroundColor:e.palette.footerBackground})),Y1=C(qa)({padding:0,margin:0}),Sr=C(Fa)(({theme:e})=>({padding:0,margin:0,"& a":{textDecoration:"none",color:e.palette.text.primary}})),Oxe=()=>{const{uiConfig:e}=Nt();return s($xe,{children:T(In,{container:!0,justifyContent:"center",spacing:10,style:{marginBottom:0},children:[s(In,{item:!0,md:4,xs:12,children:s(Ixe,{uiConfig:e})}),s(In,{item:!0,xs:12,md:"auto",children:T(In,{container:!0,spacing:7,direction:"row",children:[s(In,{item:!0,children:T("section",{title:"Unleash SDK",children:[s(Fh,{children:"Server SDKs"}),T(Y1,{dense:!0,children:[s(Sr,{children:s(dn,{primary:s("a",{href:"https://docs.getunleash.io/reference/sdks/node",target:"_blank",children:"Node.js"})})}),s(Sr,{children:s(dn,{primary:s("a",{href:"https://docs.getunleash.io/reference/sdks/java",target:"_blank",children:"Java"})})}),s(Sr,{children:s(dn,{primary:s("a",{href:"https://docs.getunleash.io/reference/sdks/go",target:"_blank",children:"Go"})})})," ",s(Sr,{children:s(dn,{primary:s("a",{href:"https://docs.getunleash.io/reference/sdks/ruby",target:"_blank",children:"Ruby"})})})," ",s(Sr,{children:s(dn,{primary:s("a",{href:"https://docs.getunleash.io/reference/sdks/python",target:"_blank",children:"Python"})})}),s(Sr,{children:s(dn,{primary:s("a",{href:"https://docs.getunleash.io/reference/sdks/dotnet",target:"_blank",children:".NET"})})}),s(Sr,{children:s(dn,{primary:s("a",{href:"https://docs.getunleash.io/reference/sdks/php",target:"_blank",children:"PHP"})})}),s(Sr,{children:s(dn,{primary:s("a",{href:"https://docs.getunleash.io/reference/sdks",target:"_blank",children:"All SDKs"})})})]})]})}),s(In,{item:!0,children:T("section",{title:"Unleash SDK",children:[s(Fh,{children:"Frontend SDKs"}),T(Y1,{dense:!0,children:[s(Sr,{children:s(dn,{primary:s("a",{href:"https://docs.getunleash.io/reference/unleash-proxy",target:"_blank",children:"Unleash Proxy"})})}),s(Sr,{children:s(dn,{primary:s("a",{href:"https://docs.getunleash.io/reference/sdks/javascript-browser",target:"_blank",children:"JavaScript SDK"})})}),s(Sr,{children:s(dn,{primary:s("a",{href:"https://docs.getunleash.io/reference/sdks/react",target:"_blank",children:"React SDK"})})}),s(Sr,{children:s(dn,{primary:s("a",{href:"https://docs.getunleash.io/reference/sdks/ios-proxy",target:"_blank",children:"iOS SDK"})})}),s(Sr,{children:s(dn,{primary:s("a",{href:"https://docs.getunleash.io/reference/sdks/android-proxy",target:"_blank",children:"Android SDK"})})})]})]})}),s(In,{item:!0,children:T("section",{children:[s(Fh,{children:"About"}),T(Y1,{dense:!0,children:[s(Sr,{children:s(dn,{primary:s("a",{href:"https://www.getunleash.io/",target:"_blank",children:"getunleash.io"})})}),s(Sr,{children:s(dn,{primary:s("a",{href:"https://twitter.com/getunleash",target:"_blank",children:"Twitter"})})}),s(Sr,{children:s(dn,{primary:s("a",{href:"https://www.linkedin.com/company/getunleash",target:"_blank",children:"LinkedIn"})})}),s(Sr,{children:s(dn,{primary:s("a",{href:"https://github.com/Unleash/unleash",target:"_blank",children:"GitHub"})})}),s(Sr,{children:s(dn,{primary:s("a",{href:"https://slack.unleash.run",target:"_blank",children:"Slack Community"})})})]})]})})]})})]})})},Lxe=C(Jt)(({theme:e})=>({marginBottom:e.spacing(2)})),Mxe=C(we)(({theme:e})=>({maxWidth:"800px"})),Nxe=C("a")(({theme:e})=>({display:"block",marginTop:e.spacing(1),width:"100px"})),Dxe=e=>!(!e||localStorage&&localStorage.getItem(e)),Bxe=({toast:e})=>{const[t,n]=p.useState(!1);p.useEffect(()=>{n(Dxe((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?s(X,{condition:t,show:T(Lxe,{severity:e.severity,onClose:r,children:[s(Mxe,{variant:"body2",children:e.message}),s(Nxe,{href:e.link,target:"_blank",rel:"noopener noreferrer",children:"View more"})]})}):null},Fxe=C("div")(({theme:e})=>({height:e.spacing(2.5),margin:e.spacing(2,0)})),zxe=C(IH)({"& > ol":{flexWrap:"nowrap","& > li:last-child":{minWidth:0}}}),OR=C("p")(Qee),jxe=C(sn)(({theme:e})=>({"& > *":{maxWidth:e.spacing(25)}})),Uxe=()=>{const{isAdmin:e}=p.useContext(Zr),t=oa(),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 s(Fxe,{children:s(X,{condition:t.pathname.includes("admin")&&e||!t.pathname.includes("admin"),show:s(X,{condition:n.length>1,show:s(zxe,{"aria-label":"Breadcrumbs",children:n.map((r,o)=>{if(o===n.length-1)return s(OR,{children:r},r);let i="/";return n.forEach((l,c)=>{c!==o&&c<o?i+=l+"/":c===o&&(i+=l)}),s(jxe,{to:i,children:s(OR,{children:r})},r)})})})})})},Wxe="/static/texture-c29e66c0.png",HL="skip-nav-target-id",Hxe=()=>s("div",{id:HL}),Vxe=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.primary.dark,color:e.palette.primary.contrastText,borderRadius:e.shape.borderRadius,fontSize:e.fontSizes.smallBody,[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}})),Gxe=()=>T(Vxe,{href:`#${HL}`,children:["Skip to content ",s("span",{"aria-hidden":!0,children:"↓"})]}),qxe=({featureName:e,projectId:t,conflict:n,onNavigate:r,children:o})=>T(F$,{elevation:0,sx:a=>({marginTop:a.spacing(2),overflow:"hidden"}),children:[T(Je,{sx:a=>({backgroundColor:(Boolean(n),a.palette.neutral.light),borderRadius:i=>`${i.shape.borderRadiusLarge}px ${i.shape.borderRadiusLarge}px 0 0`,border:"1px solid",borderColor:i=>n?i.palette.warning.border:i.palette.tertiary.main,borderBottom:"none",overflow:"hidden"}),children:[s(X,{condition:Boolean(n),show:T(Jt,{severity:"warning",sx:{px:3,mb:2,"&.MuiAlert-standardWarning":{borderStyle:"none"}},children:[s("strong",{children:"Conflict!"})," ",n,"."]})}),T(Je,{sx:{display:"flex",pt:n?0:2,pb:2,px:3},children:[s(we,{children:"Feature toggle name: "}),s(ho,{component:sn,to:`/projects/${t}/features/${e}`,color:"primary",underline:"hover",sx:{marginLeft:1,"& :hover":{textDecoration:"underline"}},onClick:r,children:s("strong",{children:e})})]})]}),s(Je,{children:o})]}),Kxe=e=>typeof e=="object"&&e!==null&&"name"in e;var Yxe=200,m2="__lodash_hash_undefined__",Xxe=1/0,VL=9007199254740991,Jxe="[object Arguments]",Qxe="[object Function]",Zxe="[object GeneratorFunction]",eCe="[object Symbol]",tCe=/[\\^$.*+?()[\]{}|]/g,nCe=/^\[object .+?Constructor\]$/,rCe=/^(?:0|[1-9]\d*)$/,oCe=typeof Ma=="object"&&Ma&&Ma.Object===Object&&Ma,aCe=typeof self=="object"&&self&&self.Object===Object&&self,g2=oCe||aCe||Function("return this")();function iCe(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 sCe(e,t){var n=e?e.length:0;return!!n&&uCe(e,t,0)>-1}function lCe(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)if(n(t,e[r]))return!0;return!1}function GL(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 v2(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function cCe(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}function uCe(e,t,n){if(t!==t)return cCe(e,dCe,n);for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function dCe(e){return e!==e}function pCe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function fCe(e){return function(t){return e(t)}}function hCe(e,t){return e.has(t)}function mCe(e,t){return e==null?void 0:e[t]}function gCe(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function qL(e,t){return function(n){return e(t(n))}}var vCe=Array.prototype,yCe=Function.prototype,Wv=Object.prototype,X1=g2["__core-js_shared__"],LR=function(){var e=/[^.]+$/.exec(X1&&X1.keys&&X1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),KL=yCe.toString,mu=Wv.hasOwnProperty,y2=Wv.toString,bCe=RegExp("^"+KL.call(mu).replace(tCe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),MR=g2.Symbol,wCe=qL(Object.getPrototypeOf,Object),SCe=Wv.propertyIsEnumerable,xCe=vCe.splice,NR=MR?MR.isConcatSpreadable:void 0,iw=Object.getOwnPropertySymbols,DR=Math.max,CCe=XL(g2,"Map"),Ap=XL(Object,"create");function bl(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 ECe(){this.__data__=Ap?Ap(null):{}}function TCe(e){return this.has(e)&&delete this.__data__[e]}function kCe(e){var t=this.__data__;if(Ap){var n=t[e];return n===m2?void 0:n}return mu.call(t,e)?t[e]:void 0}function ACe(e){var t=this.__data__;return Ap?t[e]!==void 0:mu.call(t,e)}function _Ce(e,t){var n=this.__data__;return n[e]=Ap&&t===void 0?m2:t,this}bl.prototype.clear=ECe;bl.prototype.delete=TCe;bl.prototype.get=kCe;bl.prototype.has=ACe;bl.prototype.set=_Ce;function gu(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 RCe(){this.__data__=[]}function PCe(e){var t=this.__data__,n=Hv(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():xCe.call(t,n,1),!0}function ICe(e){var t=this.__data__,n=Hv(t,e);return n<0?void 0:t[n][1]}function $Ce(e){return Hv(this.__data__,e)>-1}function OCe(e,t){var n=this.__data__,r=Hv(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}gu.prototype.clear=RCe;gu.prototype.delete=PCe;gu.prototype.get=ICe;gu.prototype.has=$Ce;gu.prototype.set=OCe;function vu(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 LCe(){this.__data__={hash:new bl,map:new(CCe||gu),string:new bl}}function MCe(e){return Vv(this,e).delete(e)}function NCe(e){return Vv(this,e).get(e)}function DCe(e){return Vv(this,e).has(e)}function BCe(e,t){return Vv(this,e).set(e,t),this}vu.prototype.clear=LCe;vu.prototype.delete=MCe;vu.prototype.get=NCe;vu.prototype.has=DCe;vu.prototype.set=BCe;function Vm(e){var t=-1,n=e?e.length:0;for(this.__data__=new vu;++t<n;)this.add(e[t])}function FCe(e){return this.__data__.set(e,m2),this}function zCe(e){return this.__data__.has(e)}Vm.prototype.add=Vm.prototype.push=FCe;Vm.prototype.has=zCe;function jCe(e,t){var n=b2(e)||JL(e)?pCe(e.length,String):[],r=n.length,o=!!r;for(var a in e)(t||mu.call(e,a))&&!(o&&(a=="length"||ZCe(a,r)))&&n.push(a);return n}function Hv(e,t){for(var n=e.length;n--;)if(i2e(e[n][0],t))return n;return-1}function UCe(e,t,n,r){var o=-1,a=sCe,i=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=GL(t,fCe(n))),r?(a=lCe,i=!1):t.length>=Yxe&&(a=hCe,i=!1,t=new Vm(t));e:for(;++o<l;){var d=e[o],f=n?n(d):d;if(d=r||d!==0?d:0,i&&f===f){for(var h=u;h--;)if(t[h]===f)continue e;c.push(d)}else a(t,f,r)||c.push(d)}return c}function YL(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=QCe),o||(o=[]);++a<i;){var l=e[a];t>0&&n(l)?t>1?YL(l,t-1,n,r,o):v2(o,l):r||(o[o.length]=l)}return o}function WCe(e,t,n){var r=t(e);return b2(e)?r:v2(r,n(e))}function HCe(e){if(!w2(e)||t2e(e))return!1;var t=ZL(e)||gCe(e)?bCe:nCe;return t.test(a2e(e))}function VCe(e){if(!w2(e))return r2e(e);var t=n2e(e),n=[];for(var r in e)r=="constructor"&&(t||!mu.call(e,r))||n.push(r);return n}function GCe(e,t){return e=Object(e),qCe(e,t,function(n,r){return r in e})}function qCe(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],l=e[i];n(l,i)&&(a[i]=l)}return a}function KCe(e,t){return t=DR(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=DR(n.length-t,0),a=Array(o);++r<o;)a[r]=n[t+r];r=-1;for(var i=Array(t+1);++r<t;)i[r]=n[r];return i[t]=a,iCe(e,this,i)}}function YCe(e){return WCe(e,u2e,JCe)}function Vv(e,t){var n=e.__data__;return e2e(t)?n[typeof t=="string"?"string":"hash"]:n.map}function XL(e,t){var n=mCe(e,t);return HCe(n)?n:void 0}var XCe=iw?qL(iw,Object):tM,JCe=iw?function(e){for(var t=[];e;)v2(t,XCe(e)),e=wCe(e);return t}:tM;function QCe(e){return b2(e)||JL(e)||!!(NR&&e&&e[NR])}function ZCe(e,t){return t=t??VL,!!t&&(typeof e=="number"||rCe.test(e))&&e>-1&&e%1==0&&e<t}function e2e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function t2e(e){return!!LR&&LR in e}function n2e(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Wv;return e===n}function r2e(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}function o2e(e){if(typeof e=="string"||c2e(e))return e;var t=e+"";return t=="0"&&1/e==-Xxe?"-0":t}function a2e(e){if(e!=null){try{return KL.call(e)}catch{}try{return e+""}catch{}}return""}function i2e(e,t){return e===t||e!==e&&t!==t}function JL(e){return s2e(e)&&mu.call(e,"callee")&&(!SCe.call(e,"callee")||y2.call(e)==Jxe)}var b2=Array.isArray;function QL(e){return e!=null&&l2e(e.length)&&!ZL(e)}function s2e(e){return eM(e)&&QL(e)}function ZL(e){var t=w2(e)?y2.call(e):"";return t==Qxe||t==Zxe}function l2e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=VL}function w2(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function eM(e){return!!e&&typeof e=="object"}function c2e(e){return typeof e=="symbol"||eM(e)&&y2.call(e)==eCe}function u2e(e){return QL(e)?jCe(e,!0):VCe(e)}var d2e=KCe(function(e,t){return e==null?{}:(t=GL(YL(t,1),o2e),GCe(e,UCe(YCe(e),t)))});function tM(){return[]}var p2e=d2e;const f2e=(e,t,n,r)=>{var i,l;return(l=(i=gl(t,n).feature)==null?void 0:i.environments.find(c=>c.name===r))==null?void 0:l.strategies.find(c=>"id"in e.payload&&c.id===e.payload.id)},J1=({change:e,project:t,feature:n,environmentName:r})=>{const o=f2e(e,t,n,r),a=e.action==="deleteStrategy"?void 0:e.payload;return s(DO,{children:s(Rv,{entry:{preData:p2e(o,"sortOrder"),data:a}})})},Q1=({change:e,children:t})=>{const[n,r]=zt.useState(null),o=l=>{r(l.currentTarget)},a=()=>{r(null)},i=Boolean(n);return T(ke,{children:[s(ele,{strategyName:e.payload.name}),s(we,{onMouseEnter:o,onMouseLeave:a,children:wp(e.payload.name)}),s(ax,{id:String(e.id),sx:{pointerEvents:"none"},open:i,anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:a,disableRestoreFocus:!0,children:t})]})},BR=({percentage:e,size:t="4rem"})=>{const n=cn(),r={display:"block",borderRadius:"100%",transform:"rotate(-90deg)",height:t,width:t,background:n.palette.grey[200]},o=100/(2*Math.PI),a=2*o;return s("svg",{viewBox:`0 0 ${a} ${a}`,style:r,"aria-hidden":!0,children:s("circle",{r:o,cx:o,cy:o,fill:"none",stroke:n.palette.primary.light,strokeWidth:a,strokeDasharray:`${e} 100`})})},h2e=C("div")(({theme:e})=>({width:"100%",padding:e.spacing(2,3),borderRadius:e.shape.borderRadiusMedium,border:`1px solid ${e.palette.divider}`})),m2e=C("p")(({theme:e})=>({display:"inline",margin:e.spacing(.5,0),maxWidth:"95%",textAlign:"center",wordBreak:"break-word"})),g2e=C(To)(({theme:e})=>({margin:e.spacing(.5)})),Z1=({value:e,text:t})=>s(h2e,{children:s(X,{condition:e.length===0,show:T("p",{children:["No ",t,"s added yet."]}),elseShow:T("div",{children:[T(m2e,{children:[e.length," ",e.length>1?`${t}s`:t," will get access."]}),e.map(n=>s(g2e,{label:s(Oa,{maxWidth:"300",text:n,maxLength:50})},n))]})})}),v2e=({segments:e})=>!e||e.length===0?null:s(ke,{children:e.map((t,n)=>T(p.Fragment,{children:[s(X,{condition:n>0,show:s(i2,{text:"AND"})}),s(NL,{segment:t})]},t.id))}),FR=()=>s(Je,{sx:{px:3,color:"text.disabled"},children:"This strategy does not have constraints or parameters."}),Bs=C(Je)(({theme:e})=>({padding:e.spacing(2,3),border:`1px solid ${e.palette.dividerAlternative}`,borderRadius:e.shape.borderRadiusMedium})),e0=C("span")(({theme:e})=>({color:e.palette.neutral.main})),zR=({strategy:e})=>{const{parameters:t,constraints:n=[]}=e,{strategies:r}=lu(),{uiConfig:o}=Nt(),{segments:a}=Rl(),i=a==null?void 0:a.filter(f=>{var h;return(h=e.segments)==null?void 0:h.includes(f.id)}),l=r.find(f=>f.name===e.name),c=p.useMemo(()=>!t||l!=null&&l.editable?null:Object.keys(t).map(f=>{switch(f){case"rollout":case"Rollout":const h=Dd(t[f]);return T(Bs,{sx:{display:"flex",alignItems:"center"},children:[s(Je,{sx:{mr:2},children:s(BR,{percentage:h,size:"2rem"})}),T("div",{children:[s(To,{color:"success",variant:"outlined",size:"small",label:`${h}%`})," ","of your base"," ",n.length>0?"who match constraints":""," ","is included."]})]});case"userIds":case"UserIds":const m=Ji(t[f]);return s(Z1,{value:m,text:"user"},f);case"hostNames":case"HostNames":const y=Ji(t[f]);return s(Z1,{value:y,text:"host"},f);case"IPs":const g=Ji(t[f]);return s(Z1,{value:g,text:"IP"},f);case"stickiness":case"groupId":return null;default:return null}}),[t,l,n]),u=p.useMemo(()=>{if(!t||!(l!=null&&l.editable))return null;const f=s(e0,{children:" is set to "});return l==null?void 0:l.parameters.map(h=>{const{type:m,name:y}={...h};if(!m||!y||t[y]===void 0)return null;const g=s(Oa,{maxLength:15,maxWidth:"150",text:y});switch(h==null?void 0:h.type){case"list":const v=Ji(t[y]);return v.length>0?T(Bs,{children:[g," ",T(e0,{children:["has ",v.length," ",v.length>1?"items":"item",":"," ",v.map(E=>s(To,{label:s(Oa,{maxWidth:"300",text:E,maxLength:50}),sx:{mr:.5}},E))]})]}):null;case"percentage":const b=Dd(t[y]);return t[y]!==""?T(Bs,{sx:{display:"flex",alignItems:"center"},children:[s(Je,{sx:{mr:2},children:s(BR,{percentage:b,size:"2rem"})}),T("div",{children:[g,f,s(To,{color:"success",variant:"outlined",size:"small",label:`${b}%`})]})]}):null;case"boolean":return t[y]==="true"||t[y]==="false"?T(Bs,{children:[s(Oa,{maxLength:15,maxWidth:"150",text:y}),f,s(To,{color:t[y]==="true"?"success":"error",variant:"outlined",size:"small",label:t[y]})]}):null;case"string":const w=ss(t[y]);return typeof t[y]<"u"?T(Bs,{children:[g,s(X,{condition:w==="",show:s(e0,{children:" is an empty string"}),elseShow:T(ke,{children:[f,s(Oa,{maxWidth:"300",text:w,maxLength:50})]})})]}):null;case"number":const x=Dd(t[y]);return t[y]!==""&&x!==void 0?T(Bs,{children:[g,f,s(Oa,{maxWidth:"300",text:String(x),maxLength:50})]}):null;case"default":return null}return null})},[t,l]);if(!t)return s(FR,{});const d=[Boolean(o.flags.SE)&&i&&i.length>0&&s(v2e,{segments:i}),n.length>0&&s(jv,{constraints:n,showLabel:!1}),e.name==="default"&&s(ke,{children:T(Bs,{sx:{width:"100%"},children:["The standard strategy is"," ",s(To,{variant:"outlined",size:"small",color:"success",label:"ON"})," ","for all users."]})}),...c??[],...u??[]].filter(Boolean);return s(X,{condition:d.length>0,show:s(ke,{children:d.map((f,h)=>T(p.Fragment,{children:[s(X,{condition:h>0,show:s(i2,{text:"AND"})}),f]},h))}),elseShow:s(FR,{})})},nM=C(Je)({display:"flex",justifyContent:"space-between",alignItems:"center"}),rM=C(Je)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:e.spacing(2)})),S2=C(Je)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1)})),y2e=({children:e,discard:t})=>T(rM,{children:[T(S2,{children:[s(we,{sx:n=>({color:n.palette.success.dark}),children:"+ Adding strategy:"}),e]}),t]}),b2e=({children:e,discard:t})=>T(rM,{children:[T(S2,{children:[s(we,{children:"Editing strategy:"}),e]}),t]}),w2e=({discard:e,children:t})=>T(nM,{children:[T(S2,{children:[s(we,{sx:n=>({color:n.palette.error.main}),children:"- Deleting strategy"}),t]}),e]}),S2e=({enabled:e,discard:t})=>T(nM,{children:[T(Je,{sx:{display:"flex",alignItems:"center"},children:["New status:"," ",s(wa,{sx:n=>({marginLeft:n.spacing(1)}),color:e?"success":"error",children:e?" Enabled":"Disabled"})]}),t]}),x2e=C("div")(({theme:e})=>({overflowX:"auto","& code":{wordWrap:"break-word",whiteSpace:"pre-wrap",fontFamily:"monospace",lineHeight:1.5,fontSize:e.fontSizes.smallBody}})),C2e=({preData:e,data:t})=>s(x2e,{children:s(Rv,{entry:{preData:e,data:t}})}),E2e=C(Je)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:e.spacing(2)})),T2e=C(Je)(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(1)})),k2e=({feature:e,project:t,environment:n,change:r,discard:o})=>{var l;const{feature:a}=gl(t,e),i=(l=a.environments.find(({name:c})=>n===c))==null?void 0:l.variants;return T(E2e,{children:[T(T2e,{children:[s(we,{children:"Updating variants:"}),s(C2e,{preData:i,data:r.payload.variants})]}),o]})},A2e=C(Je,{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
362
- ${e.shape.borderRadiusLarge}px ${e.shape.borderRadiusLarge}px`:0,borderColor:t||n?e.palette.warning.border:e.palette.dividerAlternative,borderTopColor:(t||r)&&!n?e.palette.warning.border:e.palette.dividerAlternative})),_2e=C(Jt)(({theme:e})=>({borderRadius:0,padding:e.spacing(0,2),"&.MuiAlert-standardWarning":{borderStyle:"none none solid none"}})),R2e=({index:e,change:t,feature:n,changeRequest:r,discard:o})=>{var a;return T(A2e,{$hasConflict:Boolean(t.conflict),$isInConflictFeature:Boolean(n.conflict),$isAfterWarning:Boolean((a=n.changes[e-1])==null?void 0:a.conflict),$isLast:e+1===n.changes.length,children:[s(X,{condition:Boolean(t.conflict)&&!n.conflict,show:T(_2e,{severity:"warning",children:[s("strong",{children:"Conflict!"})," This change can’t be applied."," ",t.conflict,"."]})}),T(Je,{sx:i=>({padding:i.spacing(3)}),children:[t.action==="updateEnabled"&&s(S2e,{enabled:t.payload.enabled,discard:o}),t.action==="addStrategy"&&T(ke,{children:[s(y2e,{discard:o,children:s(Q1,{change:t,children:s(J1,{change:t,feature:n.name,environmentName:r.environment,project:r.project})})}),s(zR,{strategy:t.payload})]}),t.action==="deleteStrategy"&&s(w2e,{discard:o,children:Kxe(t.payload)&&s(Q1,{change:t,children:s(J1,{change:t,feature:n.name,environmentName:r.environment,project:r.project})})}),t.action==="updateStrategy"&&T(ke,{children:[s(b2e,{discard:o,children:s(Q1,{change:t,children:s(J1,{change:t,feature:n.name,environmentName:r.environment,project:r.project})})}),s(zR,{strategy:t.payload})]}),t.action==="patchVariant"&&s(k2e,{feature:n.name,project:r.project,environment:r.environment,change:t,discard:o})]})]},SL(t))},x2=e=>e.features.flatMap(t=>t.changes).length,P2e=e=>{const{isChangeRequestConfigured:t}=tf(e.project),n=t(e.environment),r=!["Cancelled","Applied"].includes(e.state),{user:o}=sa(),a=(o==null?void 0:o.id)===e.createdBy.id;return n&&r&&a&&x2(e)>1},I2e=C(ho)(()=>({textDecoration:"none","&:hover, &:focus":{textDecoration:"underline"}})),$2e=({onDiscard:e})=>s(Je,{children:s(I2e,{onClick:e,children:"Discard"})}),O2e=({changeRequest:e,changeId:t,onPostDiscard:n})=>{const r=P2e(e),{discardChange:o}=u2(),{setToastData:a,setToastApiError:i}=Ot();return s(X,{condition:r,show:s($2e,{onDiscard:(c=>async()=>{try{await o(e.project,e.id,c),a({title:"Change discarded from change request draft.",type:"success"}),n==null||n()}catch(u){i(ft(u))}})(t)})})},L2e=({changeRequest:e,onRefetch:t,onNavigate:n})=>{var r;return s(Je,{children:(r=e.features)==null?void 0:r.map(o=>s(qxe,{featureName:o.name,projectId:e.project,onNavigate:n,conflict:o.conflict,children:o.changes.map((a,i)=>s(R2e,{discard:s(O2e,{changeRequest:e,changeId:a.id,onPostDiscard:t}),index:i,changeRequest:e,change:a,feature:o},i))},o.name))})},jR=()=>s(wa,{color:"secondary",icon:s(SZ,{fontSize:"small"}),children:"Review required"}),M2e=()=>s(wa,{color:"warning",children:"Draft"}),N2e=({state:e})=>{switch(e){case"Draft":return s(M2e,{});case"In review":return s(jR,{});case"Approved":return s(wa,{color:"success",icon:s(Em,{fontSize:"small"}),children:"Approved"});case"Applied":return s(wa,{color:"success",icon:s(Em,{fontSize:"small"}),children:"Applied"});case"Cancelled":return s(wa,{color:"error",icon:s(sv,{fontSize:"small"}),children:"Cancelled"});default:return s(jR,{})}},D2e=({onClick:e,count:t})=>T(rt,{sx:{ml:"auto"},variant:"contained",onClick:e,children:["Submit change request (",t,")"]}),B2e=({environmentChangeRequest:e,onClose:t,onReview:n,onDiscard:r,children:o})=>{const a=cn(),i=ut();return T(Je,{sx:{padding:3,border:"2px solid",mb:5,borderColor:l=>l.palette.secondaryContainer,borderRadius:l=>`${l.shape.borderRadiusLarge}px`},children:[T(Je,{sx:{display:"flex",alignItems:"end"},children:[T(Je,{sx:{display:"flex",alignItems:"center"},children:[s(E4,{sx:l=>({color:l.palette.primary.light,mr:.5})}),s(we,{component:"span",variant:"h2",children:e.environment}),s(V2e,{}),s(G2e,{count:e.features.length})]}),s(Je,{sx:{ml:"auto"},children:s(N2e,{state:e.state})})]}),s(fo,{sx:{my:3}}),s(we,{variant:"body2",color:"text.secondary",children:"You request changes for these feature toggles:"}),o,T(Je,{sx:{display:"flex",mt:3},children:[s(X,{condition:(e==null?void 0:e.state)==="Draft",show:T(ke,{children:[s(D2e,{onClick:()=>n(e.id),count:x2(e)}),s(rt,{sx:{ml:2},variant:"outlined",onClick:()=>r(e.id),children:"Discard changes"})]})}),s(X,{condition:e.state==="In review"||e.state==="Approved",show:s(ke,{children:T(H2e,{children:[s(W2e,{}),s(we,{color:a.palette.success.dark,children:"Draft successfully sent to review"}),s(rt,{sx:{marginLeft:2},variant:"outlined",onClick:()=>{t(),i(`/projects/${e.project}/change-requests/${e.id}`)},children:"View change request page"})]})})})]})]},e.id)},F2e=C(hx)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginLeft:"0.3rem",color:e.palette.grey[700]})),z2e=C("div")(({theme:e})=>({color:e.palette.text.secondary,fontSize:e.fontSizes.smallBody})),j2e=()=>s(En,{actions:"",titleElement:T(ke,{children:[T(Je,{sx:{display:"flex",alignItems:"center"},children:["Review your changes",s(_t,{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:s(F2e,{})})]}),s(z2e,{children:"Make sure you are sending the right changes to be reviewed"})]})}),UR=C(gr)(({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`})),U2e=C(rt)(({theme:e})=>({marginTop:e.spacing(2),marginLeft:"auto"})),W2e=C(wZ)(({theme:e})=>({color:e.palette.success.main,height:"32px",width:"32px",marginRight:e.spacing(1)})),H2e=C(Je)(()=>({marginLeft:"auto",display:"flex",alignItems:"center"})),V2e=()=>s(we,{component:"span",sx:{marginLeft:1.5,marginRight:1.5,color:"dividerAlternative"},children:"|"}),G2e=({count:e})=>T(Je,{children:[T(we,{component:"span",variant:"body1",color:"text.secondary",children:["Updates:"," "]}),T(we,{component:"span",sx:{fontWeight:"bold"},children:[e," ",e===1?"feature toggle":"feature toggles"]})]}),q2e=({open:e,project:t,onClose:n})=>{const{data:r,loading:o,refetch:a}=Uv(t),{changeState:i,discardDraft:l}=u2(),{setToastApiError:c}=Ot(),u=async f=>{try{await i(t,f,{state:"In review"}),a()}catch(h){c(ft(h))}},d=async f=>{try{await l(t,f),a()}catch(h){c(ft(h))}};return!o&&!r?s(T_,{open:e,onClose:n,label:"Review changes",children:T(UR,{disableBorder:!0,header:s(En,{titleElement:"Review your changes"}),children:["There are no changes to review.",s(U2e,{onClick:n,children:"Close"})]})}):s(T_,{open:e,onClose:n,label:"Review changes",children:s(UR,{disableBorder:!0,header:s(j2e,{}),children:r==null?void 0:r.map(f=>s(B2e,{environmentChangeRequest:f,onClose:n,onReview:u,onDiscard:d,children:s(L2e,{changeRequest:f,onNavigate:n,onRefetch:a})},f.id))})})},K2e=C(Je)(({theme:e})=>({display:"flex",alignItems:"center",padding:e.spacing(1,0),[e.breakpoints.down("lg")]:{padding:e.spacing(1,2)},color:e.palette.warning.main})),Y2e=C(Je)(({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%"}})),X2e=({changeRequest:e,onClick:t})=>s(Y2e,{children:T(K2e,{children:[T(we,{variant:"body2",sx:{mr:4},children:[s("strong",{children:"Change request mode"})," – You have changes"," ",s(X,{condition:Boolean(e.environment),show:T(ke,{children:["in ",T("strong",{children:[e.environment," "]})]})}),s(X,{condition:e.state==="Draft",show:"that need to be reviewed"}),s(X,{condition:e.state==="In review",show:"that are in review"}),s(X,{condition:e.state==="Approved",show:"that are approved. Adding more changes will clear the approvals and require a new review"})]}),T(rt,{variant:"contained",onClick:t,sx:{ml:"auto"},children:["View changes (",x2(e),")"]})]})}),J2e=C(Je)(({theme:e})=>({position:"sticky",top:-1,zIndex:250,borderTop:`1px solid ${e.palette.warning.border}`,borderBottom:`1px solid ${e.palette.warning.border}`,backgroundColor:e.palette.warning.light})),Q2e=({project:e})=>{const[t,n]=p.useState(!1),{data:r,loading:o}=Uv(e);return!o&&!r||(r==null?void 0:r.length)===0?null:T(J2e,{children:[r!=null&&r.length?r.filter(a=>["Draft","In review","Approved"].includes(a.state)).map(a=>s(X2e,{changeRequest:a,onClick:()=>{n(!0)}},a.id)):null,s(q2e,{project:e,open:t,onClose:()=>{n(!1)}})]})},Z2e=C(In)(()=>({height:"100%",justifyContent:"space-between"})),eEe=C("main")(({theme:e})=>({margin:e.spacing(0,"auto"),overflow:"auto",flex:1,width:"100%",backgroundColor:e.palette.contentWrapper,position:"relative"})),tEe=C(In)(({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%"}})),nEe=C("img")(()=>({display:"block",position:"fixed",zIndex:0,bottom:0,right:0,width:400,pointerEvents:"none",userSelect:"none"})),rEe=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})),oEe=p.forwardRef(({children:e},t)=>{const{uiConfig:n}=Nt(),r=z3("projectId"),{isChangeRequestConfiguredInAnyEnv:o}=tf(r||"");return T(ke,{children:[s(Gxe,{}),s(_xe,{}),s(Hxe,{}),T(Z2e,{children:[T(eEe,{children:[s(X,{condition:Boolean(r&&o()),show:s(Q2e,{project:r||""})}),s(tEe,{item:!0,xs:12,sm:12,my:2,children:T(rEe,{ref:t,children:[s(Uxe,{}),s(Bxe,{toast:n.toast}),e]})}),s(nEe,{src:qs(Wxe),alt:""})]}),s(Oxe,{})]})]})}),aEe=({isStandalone:e,children:t})=>s(X,{condition:e===!0,show:t,elseShow:s(oEe,{children:t})}),iEe=C("div")(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",padding:e.spacing(4),position:"fixed",inset:0,backgroundColor:e.palette.text.tertiaryContrast,width:"100%"})),sEe=C(i3)(({theme:e})=>({height:"80px"})),lEe=C("div")(({theme:e})=>({display:"flex",position:"relative"})),cEe=C("div")(({theme:e})=>({marginTop:e.spacing(4)})),uEe=C(rt)(({theme:e})=>({height:"150px",width:"150px",position:"absolute",right:100,top:45})),dEe=()=>{const e=ut();return s(iEe,{children:T("div",{children:[s(sEe,{}),s(lEe,{children:s(we,{variant:"h1",style:{fontSize:"2rem"},children:"Ooops. That's a page we haven't toggled on yet."})}),T(cEe,{children:[s(rt,{variant:"contained",color:"primary",onClick:()=>{e(Bo)},children:"Go back"}),s(uEe,{onClick:()=>{e("/")},children:"Go home"})]})]})})},pEe=()=>{const{pathname:e,search:t}=oa(),r=`/login?redirect=${encodeURIComponent(e+t)}`;return s(Tl,{to:r,replace:!0})},fEe=({route:e})=>{const{user:t}=sa();return!Boolean(t==null?void 0:t.id)&&e.type==="protected"?s(pEe,{}):s(e.component,{})},hEe=({children:e})=>{const{refetchUser:t}=sa();return s(pZ,{value:{onError:r=>{r instanceof M4&&r.status===401&&t()}},children:e})};function mEe(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},a=new XMLHttpRequest;a.open("POST",`${t.apiHost}/api/event`,!0),a.setRequestHeader("Content-Type","text/plain"),a.send(JSON.stringify(o)),a.onreadystatechange=()=>{a.readyState===4&&n&&n.callback&&n.callback()}}function gEe(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=(i,l,c)=>{mEe(i,{...t(),...c},l)},r=(i,l)=>{n("pageview",l,i)};return{trackEvent:n,trackPageview:r,enableAutoPageviews:()=>{const i=()=>r(),l=history.pushState;return l&&(history.pushState=function(c,u,d){l.apply(this,[c,u,d]),i()},addEventListener("popstate",i)),e&&e.hashMode&&addEventListener("hashchange",i),r(),function(){l&&(history.pushState=l,removeEventListener("popstate",i)),e&&e.hashMode&&removeEventListener("hashchange",i)}},enableAutoOutboundTracking:(i=document,l={subtree:!0,childList:!0,attributes:!0,attributeFilter:["href"]})=>{function c(m){n("Outbound Link: Click",{props:{url:this.href}}),typeof process<"u"&&process,setTimeout(()=>{location.href=this.href},150),m.preventDefault()}const u=new Set;function d(m){m instanceof HTMLAnchorElement?m.host!==location.host&&(m.addEventListener("click",c),u.add(m)):"querySelectorAll"in m&&m.querySelectorAll("a").forEach(d)}function f(m){m instanceof HTMLAnchorElement?(m.removeEventListener("click",c),u.delete(m)):"querySelectorAll"in m&&m.querySelectorAll("a").forEach(f)}const h=new MutationObserver(m=>{m.forEach(y=>{y.type==="attributes"?(f(y.target),d(y.target)):y.type==="childList"&&(y.addedNodes.forEach(d),y.removedNodes.forEach(f))})});return i.querySelectorAll("a").forEach(d),h.observe(i,l),function(){u.forEach(y=>{y.removeEventListener("click",c)}),u.clear(),h.disconnect()}}}}const vEe="https://plausible.getunleash.io",yEe="app.unleash-hosted.com",t0=!1,bEe=({children:e})=>{var l;const[t,n]=p.useState(null),o=(()=>{var c;try{const u=((c=document.querySelector('meta[name="uiFlags"]'))==null?void 0:c.content)||"{}";return JSON.parse(u)}catch{return{}}})(),{uiConfig:a}=Nt(),i=Boolean(((l=a==null?void 0:a.flags)==null?void 0:l.T)||o.T||t0);return p.useEffect(()=>{if(i)try{const c=gEe({domain:t0?void 0:yEe,apiHost:t0?"http://localhost:8000":vEe,trackLocalhost:!0});return n(()=>c),c.enableAutoPageviews()}catch(c){console.warn(c)}},[i]),s(z4.Provider,{value:t,children:e})},wEe=Li()(e=>({container:{maxWidth:"450px",background:e.palette.background.paper,boxShadow:"2px 2px 4px rgba(0,0,0,0.4)",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%"}}})),SEe=C("div")(({theme:e})=>({backgroundColor:e.palette.checkmarkBadge,width:"75px",height:"75px",borderRadius:"50px",display:"flex",justifyContent:"center",alignItems:"center",[e.breakpoints.down("sm")]:{width:"50px",height:"50px"}})),xEe=C(sv)(({theme:e})=>({color:e.palette.tertiary.background,width:"35px",height:"35px"})),CEe=C(Em)(({theme:e})=>({color:e.palette.tertiary.background,width:"35px",height:"35px"})),EEe=({type:e,className:t})=>s(SEe,{className:t,children:e==="error"?s(xEe,{titleAccess:"Error"}):s(CEe,{})}),TEe=({title:e,text:t,type:n,confetti:r})=>{const{setToast:o}=p.useContext(As),{classes:a}=wEe(),i=["#d13447","#ffbf00","#263672"],l=200,c=f=>Math.floor(Math.random()*f)+1,u=()=>new Array(l).fill(1).map((m,y)=>{const g=c(8),v=c(100),b={position:"absolute",width:`${g}px`,height:`${g*.4}px`,backgroundColor:i[c(2)],left:`${v}%`,transform:`rotate(${c(101)}deg)`,animationDelay:`${c(5)}s`,animationDuration:`${c(3)}s`,animationEase:`${c(2)}s`};return s("div",{style:b,className:ba(a.starting,a.anim)},y)}),d=()=>{o(f=>({...f,show:!1}))};return s("div",{className:a.container,children:s("div",{className:a.innerContainer,children:T("div",{className:a.confettiContainer,children:[r&&u(),T("div",{className:a.createdContainer,children:[T("div",{className:a.headerContainer,children:[s("div",{children:s(EEe,{type:n,className:a.checkMark})}),T("div",{className:a.textContainer,children:[s("h3",{className:a.headerStyles,children:e}),s(X,{condition:Boolean(t),show:s("p",{"data-testid":kee,children:t})})]})]}),s(_t,{title:"Close",arrow:!0,children:s(en,{onClick:d,className:a.buttonStyle,size:"large",children:s(uv,{})})})]})]})})})},kEe=()=>{const{toastData:e,setToast:t}=p.useContext(As),n=()=>{t(o=>({...o,show:!1}))};p.useEffect(()=>{if(!e.autoHideDuration)return;let o=setTimeout(()=>{n()},e.autoHideDuration);return()=>{clearTimeout(o)}},[e==null?void 0:e.show]);const r=p.useMemo(()=>({start:{...G4,right:0,left:0,margin:"0 auto",maxWidth:"450px"},enter:q4,leave:tte}),[]);return s(VS,{children:s(Cx,{mounted:Boolean(e==null?void 0:e.show),start:r.start,enter:r.enter,leave:r.leave,children:s(TEe,{...e})})})},AEe=()=>{const{pathname:e}=oa(),{user:t}=sa(),{splash:n}=jO(),{uiConfig:r,loading:o}=Nt();if(!t||!n||!r||o||P5("/splash/:splashId",e)||t.isAPI)return null;const a=Mhe.find(i=>!_Ee(i,n));return a?s(Tl,{to:`/splash/${a}`,replace:!0}):null},_Ee=(e,t)=>Boolean(t[e]),REe=C(TZ)(({theme:e})=>({height:"20px",width:"20px",marginRight:e.spacing(1)})),PEe=C("div")(({theme:e})=>({display:"flex",fontSize:e.fontSizes.smallBody,justifyContent:"center",alignItems:"center",color:e.palette.error.main,backgroundColor:e.palette.error.light,height:"65px",borderBottom:`1px solid ${e.palette.error.border}`,whiteSpace:"pre-wrap"})),IEe=()=>T(PEe,{children:[s(REe,{}),s("b",{children:"Maintenance Mode! "}),s("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."})]}),$Ee=()=>{const e=`${$i}:unleash-lastViewedProject`,[t,n]=p.useState(()=>pp(e));return p.useEffect(()=>{t&&Dc(e,t)},[t,e]),{lastViewed:t,setLastViewed:n}},OEe=()=>{const{lastViewed:e}=$Ee(),{projects:t,loading:n}=Di(),r=ut(),o=p.useCallback(()=>t&&e?`/projects/${e}`:t&&!e&&t.length===1?`/projects/${t[0].id}`:"/projects",[e,t]),a=()=>{r(o(),{replace:!0})};return p.useEffect(()=>{a()},[o]),n?s(Nm,{}):null},LEe=C("div")(()=>({"& ul":{margin:0}})),MEe=()=>{var l;const{authDetails:e}=cu(),{refetch:t}=Nt(),{user:n}=sa(),r=Boolean(e||n),{isOss:o,uiConfig:a}=Nt(),i=o()?kp.filter(c=>!c.enterprise):kp;return p.useEffect(()=>{r&&Boolean(n==null?void 0:n.id)&&t()},[e,n]),s(QZ,{FallbackComponent:$ee,children:s(hEe,{children:s(p.Suspense,{fallback:s(Nm,{}),children:s(bEe,{children:s(X,{condition:!r,show:s(Nm,{}),elseShow:T(ke,{children:[s(X,{condition:Boolean((l=a==null?void 0:a.flags)==null?void 0:l.maintenance)&&Boolean(a==null?void 0:a.maintenanceMode),show:s(IEe,{})}),T(LEe,{children:[s(kEe,{}),T(m9,{children:[i.map(c=>s(kh,{path:c.path,element:s(aEe,{isStandalone:c.isStandalone===!0,children:s(fEe,{route:c})})},c.path)),s(kh,{path:"/",element:s(OEe,{})}),s(kh,{path:"*",element:s(dEe,{})})]}),s(ute,{openUrl:"http://feedback.unleash.run"}),s(AEe,{})]})]})})})})})})},NEe=()=>{const{pathname:e}=oa();return p.useEffect(()=>{DEe.some(t=>e.includes(t))||window.scrollTo(0,0)},[e]),null},DEe=["/admin/api","/admin/users","/admin/auth","/admin/roles"],BEe=({children:e})=>{const{permissions:t}=yC(),n=p.useMemo(()=>({isAdmin:FEe(t),hasAccess:zEe.bind(null,t)}),[t]);return s(Zr.Provider,{value:n,children:e})},FEe=e=>e?e.some(t=>t.permission===Ca):!1,zEe=(e,t,n,r)=>e?e.some(o=>jEe(o,t,n,r)):!1,jEe=(e,t,n,r)=>t?e.permission===Ca||e.permission===t&&(e.project===n||e.project==="*")&&(e.environment===r||e.environment==="*")||e.permission===t&&(e.project===n||e.project==="*")&&!Boolean(e.environment)?!0:e.permission===t&&e.project===void 0&&e.environment===null:(console.warn(`Missing permission for AccessProvider: ${t}`),!1),UEe=C("div")(({theme:e})=>({display:"flex",gap:e.spacing(2),alignItems:"center",margin:"0 auto"})),WR=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"}})),WEe=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.grey[300],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.text.tertiaryContrast},"& input:focus-visible + span":{outline:"2px solid",outlineOffset:2,outlineColor:e.palette.primary.main}})),HEe=({form:e,setForm:t})=>{const n=r=>{t(Vo(o=>{o.score=Number(r.target.value)}))};return T(UEe,{children:[s(WR,{children:"Very difficult"}),[1,2,3,4,5,6,7].map(r=>T(WEe,{children:[s("input",{type:"radio",name:"score",value:r,checked:e.score===r,onChange:n}),s("span",{children:r})]},r)),s(WR,{children:"Very easy"})]})},VEe=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)})},GEe=C("div")(({theme:e})=>({fontWeight:e.fontWeight.thin})),qEe=C("h1")(({theme:e})=>({all:"unset",display:"block",textAlign:"center",color:e.palette.text.secondary})),KEe=C("form")(({theme:e})=>({display:"grid",gap:e.spacing(6),gridTemplateColumns:"minmax(auto, 40rem)",justifyContent:"center"})),YEe=C("p")(({theme:e})=>({all:"unset",display:"block",marginTop:e.spacing(5),fontSize:e.spacing(3),textAlign:"center"})),XEe=C("label")(({theme:e})=>({display:"block",marginBottom:e.spacing(1)})),JEe=({state:e,onClose:t})=>{const[n,r]=p.useState(!1),{setToastData:o}=Ot(),[a,i]=p.useState({path:e.path}),l=u=>{i(Vo(d=>{d.comment=u.target.value}))};return T(GEe,{children:[s(qEe,{children:"Please help us improve"}),T(KEe,{onSubmit:async u=>{if(u.preventDefault(),!n)try{r(!0),await VEe(a),o({type:"success",title:"Feedback sent. Thank you!",confetti:!0}),t()}finally{r(!1)}},"aria-live":"polite",children:[s(YEe,{children:e.title}),s(HEe,{form:a,setForm:i}),T("div",{hidden:!a.score,children:[s(XEe,{htmlFor:"comment",children:e.text}),s(fn,{value:a.comment??"",onChange:l,multiline:!0,rows:3,variant:"outlined",fullWidth:!0})]}),s(Je,{hidden:!a.score,sx:{textAlign:"center"},children:s(rt,{type:"submit",color:"primary",variant:"contained",sx:{minWidth:"15rem"},disabled:!a.score||n,children:"Send feedback"})})]})]})},QEe=C("div")(({theme:e})=>({pointerEvents:"none",display:"grid",padding:e.spacing(2),overflowY:"auto",alignItems:"center",justifyContent:"center",height:"100vh",width:"100vw"})),ZEe=C("div")(({theme:e})=>({pointerEvents:"auto",position:"relative",padding:e.spacing(8),background:e.palette.background.paper,boxShadow:"0 0 1rem rgba(0, 0, 0, 0.25)",borderRadius:e.spacing(2),[e.breakpoints.down("md")]:{padding:e.spacing(4)}})),eTe=C("div")({all:"unset",position:"absolute",top:0,right:0}),tTe=C(C4)(({theme:e})=>({fontSize:"1.5rem",color:e.palette.inactiveIcon})),nTe=({state:e})=>{const{hideFeedbackCES:t}=p.useContext(l2),n=e&&s(JEe,{state:e,onClose:t});return s(Vp,{open:Boolean(e),onClose:t,"aria-label":e==null?void 0:e.title,children:s(QEe,{children:T(ZEe,{children:[s(eTe,{children:s(en,{onClick:t,size:"large",children:s(tTe,{titleAccess:"Close"})})}),n]})})})},rTe=()=>{const{createFeedback:e}=X4(),{feedback:t}=Tx(),n=p.useCallback(o=>!!t&&t.some(a=>a.feedbackId===HR(o)),[t]),r=p.useCallback(o=>e({feedbackId:HR(o)}),[e]);return{isSeen:n,setSeen:r}},HR=e=>`ces${e.path}`,oTe=(e=window.location.hostname)=>e==="localhost",aTe=(e=window.location.hostname)=>e.endsWith(".getunleash.io")||e.endsWith(".unleash-hosted.com"),iTe=(e=window.location.hostname)=>e.endsWith(".vercel.app"),sTe=()=>aTe()||iTe()||oTe(),lTe=({children:e})=>{const[t,n]=p.useState(),{isSeen:r,setSeen:o}=rTe(),a=sTe();p.useEffect(()=>{t&&o(t)},[t,o]);const i=p.useCallback(u=>{n(d=>{const f=u instanceof Function?u(d):u;return!a||!f||r(f)?void 0:f})},[a,r]),l=p.useCallback(()=>{n(void 0)},[n]),c=p.useMemo(()=>({showFeedbackCES:i,hideFeedbackCES:l}),[i,l]);return T(l2.Provider,{value:c,children:[e,s(nTe,{state:t})]})},cTe=C("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",zIndex:-1,width:1,height:1,margin:-1,padding:0,overflow:"hidden"}),uTe=({announcement:e})=>s(cTe,{role:"status","aria-live":"polite","aria-atomic":!0,"data-testid":Tee,children:e}),dTe=({children:e})=>{const[t,n]=p.useState(),r=p.useMemo(()=>({setAnnouncement:n}),[n]);return T(Bx.Provider,{value:r,children:[e,s(uTe,{announcement:t})]})};var xi=(e=>(e.UNASSIGNED="UNASSIGNED",e.TRIAL="TRIAL",e.ACTIVE="ACTIVE",e.EXPIRED="EXPIRED",e.CHURNED="CHURNED",e))(xi||{}),ac=(e=>(e.PRO="Pro",e.COMPANY="Company",e.TEAM="Team",e.UNKNOWN="Unknown",e))(ac||{});const pTe=(e,t,n)=>{const{data:r,error:o,mutate:a}=vn(e,t,n),i=p.useCallback(()=>{a().catch(console.warn)},[a]);return{data:r,error:o,refetch:i,loading:!o&&!r}},fTe=()=>{const{uiConfig:e}=Nt(),{flags:{UNLEASH_CLOUD:t}}=e,{data:n,refetch:r,loading:o,error:a}=pTe(["useInstanceStatus",t],()=>hTe(t)),i=[ac.PRO,ac.COMPANY,ac.TEAM];return{instanceStatus:n,refetchInstanceStatus:r,refresh:async()=>{await fetch(jt("api/instance/refresh"))},isBilling:i.includes((n==null?void 0:n.plan)??ac.UNKNOWN),loading:o,error:a}},hTe=async e=>{if(!e)return VR;const t=await fetch(jt("api/instance/status"));return t.ok?t.json():VR},VR={plan:ac.UNKNOWN},mTe=10,gTe=e=>(e==null?void 0:e.state)===xi.TRIAL||(e==null?void 0:e.state)===xi.EXPIRED||(e==null?void 0:e.state)===xi.CHURNED,oM=e=>(e==null?void 0:e.state)===xi.EXPIRED||(e==null?void 0:e.state)===xi.CHURNED?!0:(e==null?void 0:e.state)===xi.TRIAL&&(e!=null&&e.trialExpiry)?_oe(ef(e.trialExpiry)):!1,vTe=e=>!e||e.state!==xi.TRIAL||!e.trialExpiry?!1:K4(ef(e.trialExpiry),new Date)<=mTe,GR=e=>Boolean(e&&e.state===xi.EXPIRED&&!e.trialExtended),yTe=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})),aM=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})),bTe=C(rt)(({theme:e})=>({whiteSpace:"nowrap",minWidth:"8rem",marginLeft:e.spacing(2)})),wTe=C(P4)(({theme:e})=>({color:e.palette.warning.main})),iM=C(Ld)(({theme:e})=>({color:e.palette.info.main})),STe=({instanceStatus:e})=>oM(e)?s(xTe,{instanceStatus:e}):vTe(e)?s(CTe,{instanceStatus:e}):gTe(e)?s(ETe,{instanceStatus:e}):null,xTe=({instanceStatus:e})=>T(yTe,{"data-testid":Sx,children:[s(wTe,{}),T(we,{sx:t=>({fontSize:t.fontSizes.smallBody}),children:[s("strong",{children:"Warning!"})," Your free ",e.plan," trial has expired. ",s("strong",{children:"Upgrade trial"})," otherwise your"," ",s("strong",{children:"account will be deleted."})]}),s(C2,{})]}),CTe=({instanceStatus:e})=>{const t=Aoe(ef(e.trialExpiry),{roundingMethod:"floor"});return T(aM,{"data-testid":Sx,children:[s(iM,{}),T(we,{sx:n=>({fontSize:n.fontSizes.smallBody}),children:[s("strong",{children:"Heads up!"})," You have"," ",s("strong",{children:t})," left of your free"," ",e.plan," trial."]}),s(C2,{})]})},ETe=({instanceStatus:e})=>T(aM,{"data-testid":Sx,children:[s(iM,{}),T(we,{sx:t=>({fontSize:t.fontSizes.smallBody}),children:[s("strong",{children:"Heads up!"})," You're currently on a free"," ",e.plan," trial account."]}),s(C2,{})]}),C2=()=>{const{hasAccess:e}=p.useContext(Zr),t=ut();return e(Ca)?s(bTe,{onClick:()=>t("/admin/billing"),variant:"outlined",children:"Upgrade trial"}):null},TTe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Un({propagateErrors:!0});return{extendTrial:async()=>{const i=t("api/instance/extend",{method:"POST"},"extendTrial");await e(i.caller,i.id)},loading:r,errors:n}},kTe=({instanceStatus:e,onExtendTrial:t})=>{const{hasAccess:n}=p.useContext(Zr),r=ut(),o=oM(e),[a,i]=p.useState(o),l=(c,u)=>{u||(i(!1),GR(e)&&t().catch(console.error))};return p.useEffect(()=>{i(o);const c=setInterval(()=>{i(o)},6e4);return()=>clearInterval(c)},[o]),n(Ca)?s(lr,{open:a,primaryButtonText:"Upgrade trial",secondaryButtonText:GR(e)?"Extend trial (5 days)":"Remind me later",onClick:()=>{r("/admin/billing"),i(!1)},onClose:l,title:`Your free ${e.plan} trial has expired!`,children:T(we,{children:[s("strong",{children:"Upgrade trial"})," otherwise your"," ",s("strong",{children:"account will be deleted."})]})}):s(lr,{open:a,secondaryButtonText:"Remind me later",onClose:()=>{i(!1)},title:`Your free ${e.plan} trial has expired!`,children:T(we,{children:["Please inform your admin to ",s("strong",{children:"Upgrade trial"})," or your ",s("strong",{children:"account will be deleted."})]})})},ATe=({children:e})=>{const{instanceStatus:t,refetchInstanceStatus:n,isBilling:r}=fTe(),{extendTrial:o}=TTe(),{setToastApiError:a}=Ot(),i=cn(),l=async()=>{try{await o(),await n()}catch(c){a(ft(c))}};return T("div",{style:{height:"100%",backgroundColor:i.palette.background.paper},children:[s(X,{condition:r&&Boolean(t),show:()=>T(ke,{children:[s(_Te,{instanceStatus:t}),s(kTe,{instanceStatus:t,onExtendTrial:l})]})}),e]})},_Te=zt.memo(STe),RTe=e=>{const t=pp("unleash-theme");if(t)return t;let n;return e&&(n=window.matchMedia("(prefers-color-scheme: dark)").matches),n?"dark":"light"},PTe=({children:e,darkmode:t=!1})=>{const[n,r]=p.useState(d4()),[o,a]=p.useState(!1),[i,l]=p.useState(RTe(t)),c=zt.useMemo(()=>({setToast:r,toastData:n,showFeedback:o,setShowFeedback:a,themeMode:i,setThemeMode:l}),[n,o,i]);return s(As.Provider,{value:c,children:e})},ITe=({children:e})=>{const{uiConfig:t}=Nt();return t.flags?s(PTe,{darkmode:t.flags.ENABLE_DARK_MODE_SUPPORT||!1,children:e}):null},qR=["http","https","mailto","tel"];function $Te(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<qR.length;){const a=qR[o];if(r===a.length&&t.slice(0,a.length).toLowerCase()===a)return t}return o=t.indexOf("?"),o!==-1&&r>o||(o=t.indexOf("#"),o!==-1&&r>o)?t:"javascript:void(0)"}/*!
363
- * Determine if an object is a Buffer
364
- *
365
- * @author Feross Aboukhadijeh <https://feross.org>
366
- * @license MIT
367
- */var sM=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};function Fd(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?KR(e.position):"start"in e||"end"in e?KR(e):"line"in e||"column"in e?sw(e):""}function sw(e){return YR(e&&e.line)+":"+YR(e&&e.column)}function KR(e){return sw(e&&e.start)+"-"+sw(e&&e.end)}function YR(e){return e&&typeof e=="number"?e:1}class la extends Error{constructor(t,n,r){const o=[null,null];let a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const i=r.indexOf(":");i===-1?o[1]=r:(o[0]=r.slice(0,i),o[1]=r.slice(i+1))}n&&("type"in n||"position"in n?n.position&&(a=n.position):"start"in n||"end"in n?a=n:("line"in n||"column"in n)&&(a.start=n)),this.name=Fd(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=a.start.line,this.column=a.start.column,this.position=a,this.source=o[0],this.ruleId=o[1],this.file,this.actual,this.expected,this.url,this.note}}la.prototype.file="";la.prototype.name="";la.prototype.reason="";la.prototype.message="";la.prototype.stack="";la.prototype.fatal=null;la.prototype.column=null;la.prototype.line=null;la.prototype.source=null;la.prototype.ruleId=null;la.prototype.position=null;const _a={basename:OTe,dirname:LTe,extname:MTe,join:NTe,sep:"/"};function OTe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');af(e);let n=0,r=-1,o=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.charCodeAt(o)===47){if(a){n=o+1;break}}else r<0&&(a=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let i=-1,l=t.length-1;for(;o--;)if(e.charCodeAt(o)===47){if(a){n=o+1;break}}else i<0&&(a=!0,i=o+1),l>-1&&(e.charCodeAt(o)===t.charCodeAt(l--)?l<0&&(r=o):(l=-1,r=i));return n===r?r=i:r<0&&(r=e.length),e.slice(n,r)}function LTe(e){if(af(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 MTe(e){af(e);let t=e.length,n=-1,r=0,o=-1,a=0,i;for(;t--;){const l=e.charCodeAt(t);if(l===47){if(i){r=t+1;break}continue}n<0&&(i=!0,n=t+1),l===46?o<0?o=t:a!==1&&(a=1):o>-1&&(a=-1)}return o<0||n<0||a===0||a===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function NTe(...e){let t=-1,n;for(;++t<e.length;)af(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":DTe(n)}function DTe(e){af(e);const t=e.charCodeAt(0)===47;let n=BTe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function BTe(e,t){let n="",r=0,o=-1,a=0,i=-1,l,c;for(;++i<=e.length;){if(i<e.length)l=e.charCodeAt(i);else{if(l===47)break;l=47}if(l===47){if(!(o===i-1||a===1))if(o!==i-1&&a===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=i,a=0;continue}}else if(n.length>0){n="",r=0,o=i,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,i):n=e.slice(o+1,i),r=i-o-1;o=i,a=0}else l===46&&a>-1?a++:a=-1}return n}function af(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const FTe={cwd:zTe};function zTe(){return"/"}function lw(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function jTe(e){if(typeof e=="string")e=new URL(e);else if(!lw(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 UTe(e)}function UTe(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 n0=["history","path","basename","stem","extname","dirname"];class lM{constructor(t){let n;t?typeof t=="string"||sM(t)?n={value:t}:lw(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=FTe.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<n0.length;){const a=n0[r];a in n&&n[a]!==void 0&&(this[a]=a==="history"?[...n[a]]:n[a])}let o;for(o in n)n0.includes(o)||(this[o]=n[o])}get path(){return this.history[this.history.length-1]}set path(t){lw(t)&&(t=jTe(t)),o0(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?_a.dirname(this.path):void 0}set dirname(t){XR(this.basename,"dirname"),this.path=_a.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?_a.basename(this.path):void 0}set basename(t){o0(t,"basename"),r0(t,"basename"),this.path=_a.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?_a.extname(this.path):void 0}set extname(t){if(r0(t,"extname"),XR(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=_a.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?_a.basename(this.path,this.extname):void 0}set stem(t){o0(t,"stem"),r0(t,"stem"),this.path=_a.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t)}message(t,n,r){const o=new la(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 r0(e,t){if(e&&e.includes(_a.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+_a.sep+"`")}function o0(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function XR(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function JR(e){if(e)throw e}var zh=Object.prototype.hasOwnProperty,cM=Object.prototype.toString,QR=Object.defineProperty,ZR=Object.getOwnPropertyDescriptor,eP=function(t){return typeof Array.isArray=="function"?Array.isArray(t):cM.call(t)==="[object Array]"},tP=function(t){if(!t||cM.call(t)!=="[object Object]")return!1;var n=zh.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&zh.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var o;for(o in t);return typeof o>"u"||zh.call(t,o)},nP=function(t,n){QR&&n.name==="__proto__"?QR(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},rP=function(t,n){if(n==="__proto__")if(zh.call(t,n)){if(ZR)return ZR(t,n).value}else return;return t[n]},oP=function e(){var t,n,r,o,a,i,l=arguments[0],c=1,u=arguments.length,d=!1;for(typeof l=="boolean"&&(d=l,l=arguments[1]||{},c=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});c<u;++c)if(t=arguments[c],t!=null)for(n in t)r=rP(l,n),o=rP(t,n),l!==o&&(d&&o&&(tP(o)||(a=eP(o)))?(a?(a=!1,i=r&&eP(r)?r:[]):i=r&&tP(r)?r:{},nP(l,{name:n,newValue:e(d,i,o)})):typeof o<"u"&&nP(l,{name:n,newValue:o}));return l};function cw(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 WTe(){const e=[],t={run:n,use:r};return t;function n(...o){let a=-1;const i=o.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);l(null,...o);function l(c,...u){const d=e[++a];let f=-1;if(c){i(c);return}for(;++f<o.length;)(u[f]===null||u[f]===void 0)&&(u[f]=o[f]);o=u,d?HTe(d,l)(...u):i(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 HTe(e,t){let n;return r;function r(...i){const l=e.length>i.length;let c;l&&i.push(o);try{c=e.apply(this,i)}catch(u){const d=u;if(l&&n)throw d;return o(d)}l||(c instanceof Promise?c.then(a,o):c instanceof Error?o(c):a(c))}function o(i,...l){n||(n=!0,t(i,...l))}function a(i){o(null,i)}}const VTe=dM().freeze(),uM={}.hasOwnProperty;function dM(){const e=WTe(),t=[];let n={},r,o=-1;return a.data=i,a.Parser=void 0,a.Compiler=void 0,a.freeze=l,a.attachers=t,a.use=c,a.parse=u,a.stringify=d,a.run=f,a.runSync=h,a.process=m,a.processSync=y,a;function a(){const g=dM();let v=-1;for(;++v<t.length;)g.use(...t[v]);return g.data(oP(!0,{},n)),g}function i(g,v){return typeof g=="string"?arguments.length===2?(s0("data",r),n[g]=v,a):uM.call(n,g)&&n[g]||null:g?(s0("data",r),n=g,a):n}function l(){if(r)return a;for(;++o<t.length;){const[g,...v]=t[o];if(v[0]===!1)continue;v[0]===!0&&(v[0]=void 0);const b=g.call(a,...v);typeof b=="function"&&e.use(b)}return r=!0,o=Number.POSITIVE_INFINITY,a}function c(g,...v){let b;if(s0("use",r),g!=null)if(typeof g=="function")A(g,...v);else if(typeof g=="object")Array.isArray(g)?E(g):x(g);else throw new TypeError("Expected usable value, not `"+g+"`");return b&&(n.settings=Object.assign(n.settings||{},b)),a;function w(k){if(typeof k=="function")A(k);else if(typeof k=="object")if(Array.isArray(k)){const[_,...O]=k;A(_,...O)}else x(k);else throw new TypeError("Expected usable value, not `"+k+"`")}function x(k){E(k.plugins),k.settings&&(b=Object.assign(b||{},k.settings))}function E(k){let _=-1;if(k!=null)if(Array.isArray(k))for(;++_<k.length;){const O=k[_];w(O)}else throw new TypeError("Expected a list of plugins, not `"+k+"`")}function A(k,_){let O=-1,L;for(;++O<t.length;)if(t[O][0]===k){L=t[O];break}L?(cw(L[1])&&cw(_)&&(_=oP(!0,L[1],_)),L[1]=_):t.push([...arguments])}}function u(g){a.freeze();const v=rd(g),b=a.Parser;return a0("parse",b),aP(b,"parse")?new b(String(v),v).parse():b(String(v),v)}function d(g,v){a.freeze();const b=rd(v),w=a.Compiler;return i0("stringify",w),iP(g),aP(w,"compile")?new w(g,b).compile():w(g,b)}function f(g,v,b){if(iP(g),a.freeze(),!b&&typeof v=="function"&&(b=v,v=void 0),!b)return new Promise(w);w(null,b);function w(x,E){e.run(g,rd(v),A);function A(k,_,O){_=_||g,k?E(k):x?x(_):b(null,_,O)}}}function h(g,v){let b,w;return a.run(g,v,x),sP("runSync","run",w),b;function x(E,A){JR(E),b=A,w=!0}}function m(g,v){if(a.freeze(),a0("process",a.Parser),i0("process",a.Compiler),!v)return new Promise(b);b(null,v);function b(w,x){const E=rd(g);a.run(a.parse(E),E,(k,_,O)=>{if(k||!_||!O)A(k);else{const L=a.stringify(_,O);L==null||(KTe(L)?O.value=L:O.result=L),A(k,O)}});function A(k,_){k||!_?x(k):w?w(_):v(null,_)}}}function y(g){let v;a.freeze(),a0("processSync",a.Parser),i0("processSync",a.Compiler);const b=rd(g);return a.process(b,w),sP("processSync","process",v),b;function w(x){v=!0,JR(x)}}}function aP(e,t){return typeof e=="function"&&e.prototype&&(GTe(e.prototype)||t in e.prototype)}function GTe(e){let t;for(t in e)if(uM.call(e,t))return!0;return!1}function a0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function i0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function s0(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 iP(e){if(!cw(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function sP(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function rd(e){return qTe(e)?e:new lM(e)}function qTe(e){return Boolean(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function KTe(e){return typeof e=="string"||sM(e)}function YTe(e,t){var{includeImageAlt:n=!0}=t||{};return pM(e,n)}function pM(e,t){return e&&typeof e=="object"&&(e.value||(t?e.alt:"")||"children"in e&&lP(e.children,t)||Array.isArray(e)&&lP(e,t))||""}function lP(e,t){for(var n=[],r=-1;++r<e.length;)n[r]=pM(e[r],t);return n.join("")}function ei(e,t,n,r){const o=e.length;let a=0,i;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),[].splice.apply(e,i);else for(n&&[].splice.apply(e,[t,n]);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),[].splice.apply(e,i),a+=1e4,t+=1e4}function jo(e,t){return e.length>0?(ei(e,e.length,0,t),e):t}const cP={}.hasOwnProperty;function XTe(e){const t={};let n=-1;for(;++n<e.length;)JTe(t,e[n]);return t}function JTe(e,t){let n;for(n in t){const o=(cP.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let i;for(i in a){cP.call(o,i)||(o[i]=[]);const l=a[i];QTe(o[i],Array.isArray(l)?l:l?[l]:[])}}}function QTe(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ei(e,0,0,r)}const ZTe=/[!-/:-@[-`{-~\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]/,La=Ps(/[A-Za-z]/),uw=Ps(/\d/),eke=Ps(/[\dA-Fa-f]/),Ao=Ps(/[\dA-Za-z]/),tke=Ps(/[!-/:-@[-`{-~]/),uP=Ps(/[#-'*+\--9=?A-Z^-~]/);function dw(e){return e!==null&&(e<32||e===127)}function Yo(e){return e!==null&&(e<0||e===32)}function At(e){return e!==null&&e<-2}function or(e){return e===-2||e===-1||e===32}const nke=Ps(/\s/),rke=Ps(ZTe);function Ps(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function Cn(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return i;function i(c){return or(c)?(e.enter(n),l(c)):t(c)}function l(c){return or(c)&&a++<o?(e.consume(c),l):(e.exit(n),t(c))}}const oke={tokenize:ake};function ake(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Cn(e,t,"linePrefix")}function o(l){return e.enter("paragraph"),a(l)}function a(l){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,i(l)}function i(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return At(l)?(e.consume(l),e.exit("chunkText"),a):(e.consume(l),i)}}const ike={tokenize:ske},dP={tokenize:lke};function ske(e){const t=this,n=[];let r=0,o,a,i;return l;function l(x){if(r<n.length){const E=n[r];return t.containerState=E[1],e.attempt(E[0].continuation,c,u)(x)}return u(x)}function c(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&w();const E=t.events.length;let A=E,k;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){k=t.events[A][1].end;break}b(r);let _=E;for(;_<t.events.length;)t.events[_][1].end=Object.assign({},k),_++;return ei(t.events,A+1,0,t.events.slice(E)),t.events.length=_,u(x)}return l(x)}function u(x){if(r===n.length){if(!o)return h(x);if(o.currentConstruct&&o.currentConstruct.concrete)return y(x);t.interrupt=Boolean(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(dP,d,f)(x)}function d(x){return o&&w(),b(r),h(x)}function f(x){return t.parser.lazy[t.now().line]=r!==n.length,i=t.now().offset,y(x)}function h(x){return t.containerState={},e.attempt(dP,m,y)(x)}function m(x){return r++,n.push([t.currentConstruct,t.containerState]),h(x)}function y(x){if(x===null){o&&w(),b(0),e.consume(x);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:o}),g(x)}function g(x){if(x===null){v(e.exit("chunkFlow"),!0),b(0),e.consume(x);return}return At(x)?(e.consume(x),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(x),g)}function v(x,E){const A=t.sliceStream(x);if(E&&A.push(null),x.previous=a,a&&(a.next=x),a=x,o.defineSkip(x.start),o.write(A),t.parser.lazy[x.start.line]){let k=o.events.length;for(;k--;)if(o.events[k][1].start.offset<i&&(!o.events[k][1].end||o.events[k][1].end.offset>i))return;const _=t.events.length;let O=_,L,I;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){if(L){I=t.events[O][1].end;break}L=!0}for(b(r),k=_;k<t.events.length;)t.events[k][1].end=Object.assign({},I),k++;ei(t.events,O+1,0,t.events.slice(_)),t.events.length=k}}function b(x){let E=n.length;for(;E-- >x;){const A=n[E];t.containerState=A[1],A[0].exit.call(t,e)}n.length=x}function w(){o.write([null]),a=void 0,o=void 0,t.containerState._closeFlow=void 0}}function lke(e,t,n){return Cn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function pP(e){if(e===null||Yo(e)||nke(e))return 1;if(rke(e))return 2}function E2(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const pw={name:"attention",tokenize:uke,resolveAll:cke};function cke(e,t){let n=-1,r,o,a,i,l,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 f=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);fP(f,-c),fP(h,c),i={type:c>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},l={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},a={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({},i.start),end:Object.assign({},l.end)},e[r][1].end=Object.assign({},i.start),e[n][1].start=Object.assign({},l.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=jo(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=jo(u,[["enter",o,t],["enter",i,t],["exit",i,t],["enter",a,t]]),u=jo(u,E2(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=jo(u,[["exit",a,t],["enter",l,t],["exit",l,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=jo(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,ei(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 uke(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=pP(r);let a;return i;function i(c){return e.enter("attentionSequence"),a=c,l(c)}function l(c){if(c===a)return e.consume(c),l;const u=e.exit("attentionSequence"),d=pP(c),f=!d||d===2&&o||n.includes(c),h=!o||o===2&&d||n.includes(r);return u._open=Boolean(a===42?f:f&&(o||!h)),u._close=Boolean(a===42?h:h&&(d||!f)),t(c)}}function fP(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const dke={name:"autolink",tokenize:pke};function pke(e,t,n){let r=1;return o;function o(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(y){return La(y)?(e.consume(y),i):uP(y)?u(y):n(y)}function i(y){return y===43||y===45||y===46||Ao(y)?l(y):u(y)}function l(y){return y===58?(e.consume(y),c):(y===43||y===45||y===46||Ao(y))&&r++<32?(e.consume(y),l):u(y)}function c(y){return y===62?(e.exit("autolinkProtocol"),m(y)):y===null||y===32||y===60||dw(y)?n(y):(e.consume(y),c)}function u(y){return y===64?(e.consume(y),r=0,d):uP(y)?(e.consume(y),u):n(y)}function d(y){return Ao(y)?f(y):n(y)}function f(y){return y===46?(e.consume(y),r=0,d):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",m(y)):h(y)}function h(y){return(y===45||Ao(y))&&r++<63?(e.consume(y),y===45?h:f):n(y)}function m(y){return e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t}}const Gv={tokenize:fke,partial:!0};function fke(e,t,n){return Cn(e,r,"linePrefix");function r(o){return o===null||At(o)?t(o):n(o)}}const fM={name:"blockQuote",tokenize:hke,continuation:{tokenize:mke},exit:gke};function hke(e,t,n){const r=this;return o;function o(i){if(i===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),a}return n(i)}function a(i){return or(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function mke(e,t,n){return Cn(e,e.attempt(fM,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function gke(e){e.exit("blockQuote")}const hM={name:"characterEscape",tokenize:vke};function vke(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return tke(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const hP=document.createElement("i");function T2(e){const t="&"+e+";";hP.innerHTML=t;const n=hP.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const mM={name:"characterReference",tokenize:yke};function yke(e,t,n){const r=this;let o=0,a,i;return l;function l(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,i=Ao,d(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,i=eke,d):(e.enter("characterReferenceValue"),a=7,i=uw,d(f))}function d(f){let h;return f===59&&o?(h=e.exit("characterReferenceValue"),i===Ao&&!T2(r.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):i(f)&&o++<a?(e.consume(f),d):n(f)}}const mP={name:"codeFenced",tokenize:bke,concrete:!0};function bke(e,t,n){const r=this,o={tokenize:A,partial:!0},a={tokenize:E,partial:!0},i=this.events[this.events.length-1],l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let c=0,u;return d;function d(k){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u=k,f(k)}function f(k){return k===u?(e.consume(k),c++,f):(e.exit("codeFencedFenceSequence"),c<3?n(k):Cn(e,h,"whitespace")(k))}function h(k){return k===null||At(k)?v(k):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(k))}function m(k){return k===null||Yo(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Cn(e,y,"whitespace")(k)):k===96&&k===u?n(k):(e.consume(k),m)}function y(k){return k===null||At(k)?v(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||At(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),v(k)):k===96&&k===u?n(k):(e.consume(k),g)}function v(k){return e.exit("codeFencedFence"),r.interrupt?t(k):b(k)}function b(k){return k===null?x(k):At(k)?e.attempt(a,e.attempt(o,x,l?Cn(e,b,"linePrefix",l+1):b),x)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||At(k)?(e.exit("codeFlowValue"),b(k)):(e.consume(k),w)}function x(k){return e.exit("codeFenced"),t(k)}function E(k,_,O){const L=this;return I;function I(D){return k.enter("lineEnding"),k.consume(D),k.exit("lineEnding"),$}function $(D){return L.parser.lazy[L.now().line]?O(D):_(D)}}function A(k,_,O){let L=0;return Cn(k,I,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function I(F){return k.enter("codeFencedFence"),k.enter("codeFencedFenceSequence"),$(F)}function $(F){return F===u?(k.consume(F),L++,$):L<c?O(F):(k.exit("codeFencedFenceSequence"),Cn(k,D,"whitespace")(F))}function D(F){return F===null||At(F)?(k.exit("codeFencedFence"),_(F)):O(F)}}}const l0={name:"codeIndented",tokenize:Ske},wke={tokenize:xke,partial:!0};function Ske(e,t,n){const r=this;return o;function o(u){return e.enter("codeIndented"),Cn(e,a,"linePrefix",4+1)(u)}function a(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?i(u):n(u)}function i(u){return u===null?c(u):At(u)?e.attempt(wke,i,c)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||At(u)?(e.exit("codeFlowValue"),i(u)):(e.consume(u),l)}function c(u){return e.exit("codeIndented"),t(u)}}function xke(e,t,n){const r=this;return o;function o(i){return r.parser.lazy[r.now().line]?n(i):At(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o):Cn(e,a,"linePrefix",4+1)(i)}function a(i){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):At(i)?o(i):n(i)}}const Cke={name:"codeText",tokenize:kke,resolve:Eke,previous:Tke};function Eke(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 Tke(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function kke(e,t,n){let r=0,o,a;return i;function i(f){return e.enter("codeText"),e.enter("codeTextSequence"),l(f)}function l(f){return f===96?(e.consume(f),r++,l):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?n(f):f===96?(a=e.enter("codeTextSequence"),o=0,d(f)):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):At(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||At(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),u)}function d(f){return f===96?(e.consume(f),o++,d):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",u(f))}}function gM(e){const t={};let n=-1,r,o,a,i,l,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,a=0,a<c.length&&c[a][1].type==="lineEndingBlank"&&(a+=2),a<c.length&&c[a][1].type==="content"))for(;++a<c.length&&c[a][1].type!=="content";)c[a][1].type==="chunkText"&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Ake(e,n)),n=t[n],u=!0);else if(r[1]._container){for(a=n,o=void 0;a--&&(i=e[a],i[1].type==="lineEnding"||i[1].type==="lineEndingBlank");)i[0]==="enter"&&(o&&(e[o][1].type="lineEndingBlank"),i[1].type="lineEnding",o=a);o&&(r[1].end=Object.assign({},e[o][1].start),l=e.slice(o,n),l.unshift(r),ei(e,o,n-o+1,l))}}return!u}function Ake(e,t){const n=e[t][1],r=e[t][2];let o=t-1;const a=[],i=n._tokenizer||r.parser[n.contentType](n.start),l=i.events,c=[],u={};let d,f,h=-1,m=n,y=0,g=0;const v=[g];for(;m;){for(;e[++o][1]!==m;);a.push(o),m._tokenizer||(d=r.sliceStream(m),m.next||d.push(null),f&&i.defineSkip(m.start),m._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(d),m._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),f=m,m=m.next}for(m=n;++h<l.length;)l[h][0]==="exit"&&l[h-1][0]==="enter"&&l[h][1].type===l[h-1][1].type&&l[h][1].start.line!==l[h][1].end.line&&(g=h+1,v.push(g),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(i.events=[],m?(m._tokenizer=void 0,m.previous=void 0):v.pop(),h=v.length;h--;){const b=l.slice(v[h],v[h+1]),w=a.pop();c.unshift([w,w+b.length-1]),ei(e,w,2,b)}for(h=-1;++h<c.length;)u[y+c[h][0]]=y+c[h][1],y+=c[h][1]-c[h][0]-1;return u}const _ke={tokenize:Ike,resolve:Pke},Rke={tokenize:$ke,partial:!0};function Pke(e){return gM(e),e}function Ike(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(l)}function o(l){return l===null?a(l):At(l)?e.check(Rke,i,a)(l):(e.consume(l),o)}function a(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function i(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function $ke(e,t,n){const r=this;return o;function o(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Cn(e,a,"linePrefix")}function a(i){if(i===null||At(i))return n(i);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function vM(e,t,n,r,o,a,i,l,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return f;function f(b){return b===60?(e.enter(r),e.enter(o),e.enter(a),e.consume(b),e.exit(a),h):b===null||b===41||dw(b)?n(b):(e.enter(r),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),g(b))}function h(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===62?(e.exit("chunkString"),e.exit(l),h(b)):b===null||b===60||At(b)?n(b):(e.consume(b),b===92?y:m)}function y(b){return b===60||b===62||b===92?(e.consume(b),m):m(b)}function g(b){return b===40?++d>u?n(b):(e.consume(b),g):b===41?d--?(e.consume(b),g):(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(r),t(b)):b===null||Yo(b)?d?n(b):(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(r),t(b)):dw(b)?n(b):(e.consume(b),b===92?v:g)}function v(b){return b===40||b===41||b===92?(e.consume(b),g):g(b)}}function yM(e,t,n,r,o,a){const i=this;let l=0,c;return u;function u(m){return e.enter(r),e.enter(o),e.consume(m),e.exit(o),e.enter(a),d}function d(m){return m===null||m===91||m===93&&!c||m===94&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs||l>999?n(m):m===93?(e.exit(a),e.enter(o),e.consume(m),e.exit(o),e.exit(r),t):At(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===null||m===91||m===93||At(m)||l++>999?(e.exit("chunkString"),d(m)):(e.consume(m),c=c||!or(m),m===92?h:f)}function h(m){return m===91||m===92||m===93?(e.consume(m),l++,f):f(m)}}function bM(e,t,n,r,o,a){let i;return l;function l(h){return e.enter(r),e.enter(o),e.consume(h),e.exit(o),i=h===40?41:h,c}function c(h){return h===i?(e.enter(o),e.consume(h),e.exit(o),e.exit(r),t):(e.enter(a),u(h))}function u(h){return h===i?(e.exit(a),c(i)):h===null?n(h):At(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Cn(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===i||h===null||At(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?f:d)}function f(h){return h===i||h===92?(e.consume(h),d):d(h)}}function zd(e,t){let n;return r;function r(o){return At(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):or(o)?Cn(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function Tc(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Oke={name:"definition",tokenize:Mke},Lke={tokenize:Nke,partial:!0};function Mke(e,t,n){const r=this;let o;return a;function a(c){return e.enter("definition"),yM.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(c)}function i(c){return o=Tc(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),c===58?(e.enter("definitionMarker"),e.consume(c),e.exit("definitionMarker"),zd(e,vM(e,e.attempt(Lke,Cn(e,l,"whitespace"),Cn(e,l,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(c)}function l(c){return c===null||At(c)?(e.exit("definition"),r.parser.defined.includes(o)||r.parser.defined.push(o),t(c)):n(c)}}function Nke(e,t,n){return r;function r(i){return Yo(i)?zd(e,o)(i):n(i)}function o(i){return i===34||i===39||i===40?bM(e,Cn(e,a,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(i):n(i)}function a(i){return i===null||At(i)?t(i):n(i)}}const Dke={name:"hardBreakEscape",tokenize:Bke};function Bke(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(a),o}function o(a){return At(a)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(a)):n(a)}}const Fke={name:"headingAtx",tokenize:jke,resolve:zke};function zke(e,t){let n=e.length-2,r=3,o,a;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},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ei(e,r,n-r+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}function jke(e,t,n){const r=this;let o=0;return a;function a(d){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),i(d)}function i(d){return d===35&&o++<6?(e.consume(d),i):d===null||Yo(d)?(e.exit("atxHeadingSequence"),r.interrupt?t(d):l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||At(d)?(e.exit("atxHeading"),t(d)):or(d)?Cn(e,l,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),l(d))}function u(d){return d===null||d===35||Yo(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),u)}}const Uke=["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"],gP=["pre","script","style","textarea"],Wke={name:"htmlFlow",tokenize:Gke,resolveTo:Vke,concrete:!0},Hke={tokenize:qke,partial:!0};function Vke(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 Gke(e,t,n){const r=this;let o,a,i,l,c;return u;function u(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),d}function d(N){return N===33?(e.consume(N),f):N===47?(e.consume(N),y):N===63?(e.consume(N),o=3,r.interrupt?t:W):La(N)?(e.consume(N),i=String.fromCharCode(N),a=!0,g):n(N)}function f(N){return N===45?(e.consume(N),o=2,h):N===91?(e.consume(N),o=5,i="CDATA[",l=0,m):La(N)?(e.consume(N),o=4,r.interrupt?t:W):n(N)}function h(N){return N===45?(e.consume(N),r.interrupt?t:W):n(N)}function m(N){return N===i.charCodeAt(l++)?(e.consume(N),l===i.length?r.interrupt?t:$:m):n(N)}function y(N){return La(N)?(e.consume(N),i=String.fromCharCode(N),g):n(N)}function g(N){return N===null||N===47||N===62||Yo(N)?N!==47&&a&&gP.includes(i.toLowerCase())?(o=1,r.interrupt?t(N):$(N)):Uke.includes(i.toLowerCase())?(o=6,N===47?(e.consume(N),v):r.interrupt?t(N):$(N)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(N):a?w(N):b(N)):N===45||Ao(N)?(e.consume(N),i+=String.fromCharCode(N),g):n(N)}function v(N){return N===62?(e.consume(N),r.interrupt?t:$):n(N)}function b(N){return or(N)?(e.consume(N),b):L(N)}function w(N){return N===47?(e.consume(N),L):N===58||N===95||La(N)?(e.consume(N),x):or(N)?(e.consume(N),w):L(N)}function x(N){return N===45||N===46||N===58||N===95||Ao(N)?(e.consume(N),x):E(N)}function E(N){return N===61?(e.consume(N),A):or(N)?(e.consume(N),E):w(N)}function A(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),c=N,k):or(N)?(e.consume(N),A):(c=null,_(N))}function k(N){return N===null||At(N)?n(N):N===c?(e.consume(N),O):(e.consume(N),k)}function _(N){return N===null||N===34||N===39||N===60||N===61||N===62||N===96||Yo(N)?E(N):(e.consume(N),_)}function O(N){return N===47||N===62||or(N)?w(N):n(N)}function L(N){return N===62?(e.consume(N),I):n(N)}function I(N){return or(N)?(e.consume(N),I):N===null||At(N)?$(N):n(N)}function $(N){return N===45&&o===2?(e.consume(N),Y):N===60&&o===1?(e.consume(N),V):N===62&&o===4?(e.consume(N),z):N===63&&o===3?(e.consume(N),W):N===93&&o===5?(e.consume(N),Z):At(N)&&(o===6||o===7)?e.check(Hke,z,D)(N):N===null||At(N)?D(N):(e.consume(N),$)}function D(N){return e.exit("htmlFlowData"),F(N)}function F(N){return N===null?R(N):At(N)?e.attempt({tokenize:U,partial:!0},F,R)(N):(e.enter("htmlFlowData"),$(N))}function U(N,ee,re){return Se;function Se(Ce){return N.enter("lineEnding"),N.consume(Ce),N.exit("lineEnding"),ce}function ce(Ce){return r.parser.lazy[r.now().line]?re(Ce):ee(Ce)}}function Y(N){return N===45?(e.consume(N),W):$(N)}function V(N){return N===47?(e.consume(N),i="",te):$(N)}function te(N){return N===62&&gP.includes(i.toLowerCase())?(e.consume(N),z):La(N)&&i.length<8?(e.consume(N),i+=String.fromCharCode(N),te):$(N)}function Z(N){return N===93?(e.consume(N),W):$(N)}function W(N){return N===62?(e.consume(N),z):N===45&&o===2?(e.consume(N),W):$(N)}function z(N){return N===null||At(N)?(e.exit("htmlFlowData"),R(N)):(e.consume(N),z)}function R(N){return e.exit("htmlFlow"),t(N)}}function qke(e,t,n){return r;function r(o){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),e.attempt(Gv,t,n)}}const Kke={name:"htmlText",tokenize:Yke};function Yke(e,t,n){const r=this;let o,a,i,l;return c;function c(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),u}function u(R){return R===33?(e.consume(R),d):R===47?(e.consume(R),_):R===63?(e.consume(R),A):La(R)?(e.consume(R),I):n(R)}function d(R){return R===45?(e.consume(R),f):R===91?(e.consume(R),a="CDATA[",i=0,v):La(R)?(e.consume(R),E):n(R)}function f(R){return R===45?(e.consume(R),h):n(R)}function h(R){return R===null||R===62?n(R):R===45?(e.consume(R),m):y(R)}function m(R){return R===null||R===62?n(R):y(R)}function y(R){return R===null?n(R):R===45?(e.consume(R),g):At(R)?(l=y,Z(R)):(e.consume(R),y)}function g(R){return R===45?(e.consume(R),z):y(R)}function v(R){return R===a.charCodeAt(i++)?(e.consume(R),i===a.length?b:v):n(R)}function b(R){return R===null?n(R):R===93?(e.consume(R),w):At(R)?(l=b,Z(R)):(e.consume(R),b)}function w(R){return R===93?(e.consume(R),x):b(R)}function x(R){return R===62?z(R):R===93?(e.consume(R),x):b(R)}function E(R){return R===null||R===62?z(R):At(R)?(l=E,Z(R)):(e.consume(R),E)}function A(R){return R===null?n(R):R===63?(e.consume(R),k):At(R)?(l=A,Z(R)):(e.consume(R),A)}function k(R){return R===62?z(R):A(R)}function _(R){return La(R)?(e.consume(R),O):n(R)}function O(R){return R===45||Ao(R)?(e.consume(R),O):L(R)}function L(R){return At(R)?(l=L,Z(R)):or(R)?(e.consume(R),L):z(R)}function I(R){return R===45||Ao(R)?(e.consume(R),I):R===47||R===62||Yo(R)?$(R):n(R)}function $(R){return R===47?(e.consume(R),z):R===58||R===95||La(R)?(e.consume(R),D):At(R)?(l=$,Z(R)):or(R)?(e.consume(R),$):z(R)}function D(R){return R===45||R===46||R===58||R===95||Ao(R)?(e.consume(R),D):F(R)}function F(R){return R===61?(e.consume(R),U):At(R)?(l=F,Z(R)):or(R)?(e.consume(R),F):$(R)}function U(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),o=R,Y):At(R)?(l=U,Z(R)):or(R)?(e.consume(R),U):(e.consume(R),o=void 0,te)}function Y(R){return R===o?(e.consume(R),V):R===null?n(R):At(R)?(l=Y,Z(R)):(e.consume(R),Y)}function V(R){return R===62||R===47||Yo(R)?$(R):n(R)}function te(R){return R===null||R===34||R===39||R===60||R===61||R===96?n(R):R===62||Yo(R)?$(R):(e.consume(R),te)}function Z(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),Cn(e,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function W(R){return e.enter("htmlTextData"),l(R)}function z(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):n(R)}}const k2={name:"labelEnd",tokenize:tAe,resolveTo:eAe,resolveAll:Zke},Xke={tokenize:nAe},Jke={tokenize:rAe},Qke={tokenize:oAe};function Zke(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 eAe(e,t){let n=e.length,r=0,o,a,i,l;for(;n--;)if(o=e[n][1],a){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(i){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(a=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(i=n);const c={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[i][1].end)},d={type:"labelText",start:Object.assign({},e[a+r+2][1].end),end:Object.assign({},e[i-2][1].start)};return l=[["enter",c,t],["enter",u,t]],l=jo(l,e.slice(a+1,a+r+3)),l=jo(l,[["enter",d,t]]),l=jo(l,E2(t.parser.constructs.insideSpan.null,e.slice(a+r+4,i-3),t)),l=jo(l,[["exit",d,t],e[i-2],e[i-1],["exit",u,t]]),l=jo(l,e.slice(i+1)),l=jo(l,[["exit",c,t]]),ei(e,a,e.length,l),e}function tAe(e,t,n){const r=this;let o=r.events.length,a,i;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){a=r.events[o][1];break}return l;function l(d){return a?a._inactive?u(d):(i=r.parser.defined.includes(Tc(r.sliceSerialize({start:a.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(Xke,t,i?t:u)(d):d===91?e.attempt(Jke,t,i?e.attempt(Qke,t,u):u)(d):i?t(d):u(d)}function u(d){return a._balanced=!0,n(d)}}function nAe(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),zd(e,o)}function o(c){return c===41?l(c):vM(e,a,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function a(c){return Yo(c)?zd(e,i)(c):l(c)}function i(c){return c===34||c===39||c===40?bM(e,zd(e,l),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):l(c)}function l(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function rAe(e,t,n){const r=this;return o;function o(i){return yM.call(r,e,a,n,"reference","referenceMarker","referenceString")(i)}function a(i){return r.parser.defined.includes(Tc(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(i):n(i)}}function oAe(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const aAe={name:"labelStartImage",tokenize:iAe,resolveAll:k2.resolveAll};function iAe(e,t,n){const r=this;return o;function o(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),i):n(l)}function i(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const sAe={name:"labelStartLink",tokenize:lAe,resolveAll:k2.resolveAll};function lAe(e,t,n){const r=this;return o;function o(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),a}function a(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):t(i)}}const c0={name:"lineEnding",tokenize:cAe};function cAe(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Cn(e,t,"linePrefix")}}const jh={name:"thematicBreak",tokenize:uAe};function uAe(e,t,n){let r=0,o;return a;function a(c){return e.enter("thematicBreak"),o=c,i(c)}function i(c){return c===o?(e.enter("thematicBreakSequence"),l(c)):or(c)?Cn(e,i,"whitespace")(c):r<3||c!==null&&!At(c)?n(c):(e.exit("thematicBreak"),t(c))}function l(c){return c===o?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),i(c))}}const ao={name:"list",tokenize:fAe,continuation:{tokenize:hAe},exit:gAe},dAe={tokenize:vAe,partial:!0},pAe={tokenize:mAe,partial:!0};function fAe(e,t,n){const r=this,o=r.events[r.events.length-1];let a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,i=0;return l;function l(m){const y=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:uw(m)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(jh,n,u)(m):u(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(m)}return n(m)}function c(m){return uw(m)&&++i<10?(e.consume(m),c):(!r.interrupt||i<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),u(m)):n(m)}function u(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(Gv,r.interrupt?n:d,e.attempt(dAe,h,f))}function d(m){return r.containerState.initialBlankLine=!0,a++,h(m)}function f(m){return or(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):n(m)}function h(m){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function hAe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Gv,o,a);function o(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Cn(e,t,"listItemIndent",r.containerState.size+1)(l)}function a(l){return r.containerState.furtherBlankLines||!or(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(pAe,t,i)(l))}function i(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,Cn(e,e.attempt(ao,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function mAe(e,t,n){const r=this;return Cn(e,o,"listItemIndent",r.containerState.size+1);function o(a){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(a):n(a)}}function gAe(e){e.exit(this.containerState.type)}function vAe(e,t,n){const r=this;return Cn(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function o(a){const i=r.events[r.events.length-1];return!or(a)&&i&&i[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const vP={name:"setextUnderline",tokenize:bAe,resolveTo:yAe};function yAe(e,t){let n=e.length,r,o,a;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),!a&&e[n][1].type==="definition"&&(a=n);const i={type:"setextHeading",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",i,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=i,e.push(["exit",i,t]),e}function bAe(e,t,n){const r=this;let o=r.events.length,a,i;for(;o--;)if(r.events[o][1].type!=="lineEnding"&&r.events[o][1].type!=="linePrefix"&&r.events[o][1].type!=="content"){i=r.events[o][1].type==="paragraph";break}return l;function l(d){return!r.parser.lazy[r.now().line]&&(r.interrupt||i)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),a=d,c(d)):n(d)}function c(d){return d===a?(e.consume(d),c):(e.exit("setextHeadingLineSequence"),Cn(e,u,"lineSuffix")(d))}function u(d){return d===null||At(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const wAe={tokenize:SAe};function SAe(e){const t=this,n=e.attempt(Gv,r,e.attempt(this.parser.constructs.flowInitial,o,Cn(e,e.attempt(this.parser.constructs.flow,o,e.attempt(_ke,o)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const xAe={resolveAll:SM()},CAe=wM("string"),EAe=wM("text");function wM(e){return{tokenize:t,resolveAll:SM(e==="text"?TAe:void 0)};function t(n){const r=this,o=this.parser.constructs[e],a=n.attempt(o,i,l);return i;function i(d){return u(d)?a(d):l(d)}function l(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"),a(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const f=o[d];let h=-1;if(f)for(;++h<f.length;){const m=f[h];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function SM(e){return t;function t(n,r){let o=-1,a;for(;++o<=n.length;)a===void 0?n[o]&&n[o][1].type==="data"&&(a=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==a+2&&(n[a][1].end=n[o-1][1].end,n.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(n,r):n}}function TAe(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 a=o.length,i=-1,l=0,c;for(;a--;){const u=o[a];if(typeof u=="string"){for(i=u.length;u.charCodeAt(i-1)===32;)l++,i--;if(i)break;i=-1}else if(u===-2)c=!0,l++;else if(u!==-1){a++;break}}if(l){const u={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?i:r.start._bufferIndex+i},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 kAe(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},a=[];let i=[],l=[];const c={consume:w,enter:x,exit:E,attempt:_(A),check:_(k),interrupt:_(k,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:m,sliceSerialize:h,now:y,defineSkip:g,write:f};let d=t.tokenize.call(u,c);return t.resolveAll&&a.push(t),u;function f($){return i=jo(i,$),v(),i[i.length-1]!==null?[]:(O(t,0),u.events=E2(a,u.events,u),u.events)}function h($,D){return _Ae(m($),D)}function m($){return AAe(i,$)}function y(){return Object.assign({},r)}function g($){o[$.line]=$.column,I()}function v(){let $;for(;r._index<i.length;){const D=i[r._index];if(typeof D=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<D.length;)b(D.charCodeAt(r._bufferIndex));else b(D)}}function b($){d=d($)}function w($){At($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,I()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=$}function x($,D){const F=D||{};return F.type=$,F.start=y(),u.events.push(["enter",F,u]),l.push(F),F}function E($){const D=l.pop();return D.end=y(),u.events.push(["exit",D,u]),D}function A($,D){O($,D.from)}function k($,D){D.restore()}function _($,D){return F;function F(U,Y,V){let te,Z,W,z;return Array.isArray(U)?N(U):"tokenize"in U?N([U]):R(U);function R(ce){return Ce;function Ce(xe){const Ee=xe!==null&&ce[xe],et=xe!==null&&ce.null,me=[...Array.isArray(Ee)?Ee:Ee?[Ee]:[],...Array.isArray(et)?et:et?[et]:[]];return N(me)(xe)}}function N(ce){return te=ce,Z=0,ce.length===0?V:ee(ce[Z])}function ee(ce){return Ce;function Ce(xe){return z=L(),W=ce,ce.partial||(u.currentConstruct=ce),ce.name&&u.parser.constructs.disable.null.includes(ce.name)?Se():ce.tokenize.call(D?Object.assign(Object.create(u),D):u,c,re,Se)(xe)}}function re(ce){return $(W,z),Y}function Se(ce){return z.restore(),++Z<te.length?ee(te[Z]):V}}}function O($,D){$.resolveAll&&!a.includes($)&&a.push($),$.resolve&&ei(u.events,D,u.events.length-D,$.resolve(u.events.slice(D),u)),$.resolveTo&&(u.events=$.resolveTo(u.events,u))}function L(){const $=y(),D=u.previous,F=u.currentConstruct,U=u.events.length,Y=Array.from(l);return{restore:V,from:U};function V(){r=$,u.previous=D,u.currentConstruct=F,u.events.length=U,l=Y,I()}}function I(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function AAe(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let i;return n===o?i=[e[n].slice(r,a)]:(i=e.slice(n,o),r>-1&&(i[0]=i[0].slice(r)),a>0&&i.push(e[o].slice(0,a))),i}function _Ae(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let i;if(typeof a=="string")i=a;else switch(a){case-5:{i="\r";break}case-4:{i=`
368
- `;break}case-3:{i=`\r
369
- `;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&o)continue;i=" ";break}default:i=String.fromCharCode(a)}o=a===-2,r.push(i)}return r.join("")}const RAe={[42]:ao,[43]:ao,[45]:ao,[48]:ao,[49]:ao,[50]:ao,[51]:ao,[52]:ao,[53]:ao,[54]:ao,[55]:ao,[56]:ao,[57]:ao,[62]:fM},PAe={[91]:Oke},IAe={[-2]:l0,[-1]:l0,[32]:l0},$Ae={[35]:Fke,[42]:jh,[45]:[vP,jh],[60]:Wke,[61]:vP,[95]:jh,[96]:mP,[126]:mP},OAe={[38]:mM,[92]:hM},LAe={[-5]:c0,[-4]:c0,[-3]:c0,[33]:aAe,[38]:mM,[42]:pw,[60]:[dke,Kke],[91]:sAe,[92]:[Dke,hM],[93]:k2,[95]:pw,[96]:Cke},MAe={null:[pw,xAe]},NAe={null:[42,95]},DAe={null:[]},BAe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:NAe,contentInitial:PAe,disable:DAe,document:RAe,flow:$Ae,flowInitial:IAe,insideSpan:MAe,string:OAe,text:LAe},Symbol.toStringTag,{value:"Module"}));function FAe(e={}){const t=XTe([BAe].concat(e.extensions||[])),n={defined:[],lazy:{},constructs:t,content:r(oke),document:r(ike),flow:r(wAe),string:r(CAe),text:r(EAe)};return n;function r(o){return a;function a(i){return kAe(n,o,i)}}}const yP=/[\0\t\n\r]/g;function zAe(){let e=1,t="",n=!0,r;return o;function o(a,i,l){const c=[];let u,d,f,h,m;for(a=t+a.toString(i),f=0,t="",n&&(a.charCodeAt(0)===65279&&f++,n=void 0);f<a.length;){if(yP.lastIndex=f,u=yP.exec(a),h=u&&u.index!==void 0?u.index:a.length,m=a.charCodeAt(h),!u){t=a.slice(f);break}if(m===10&&f===h&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),f<h&&(c.push(a.slice(f,h)),e+=h-f),m){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}f=h+1}return l&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}function jAe(e){for(;!gM(e););return e}function xM(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 UAe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function WAe(e){return e.replace(UAe,HAe)}function HAe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),a=o===120||o===88;return xM(n.slice(a?2:1),a?16:10)}return T2(n)||e}const fw={}.hasOwnProperty,VAe=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),GAe(n)(jAe(FAe(n).document().write(zAe()(e,t,!0))))};function GAe(e={}){const t=CM({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(nt),autolinkProtocol:D,autolinkEmail:D,atxHeading:c(qe),blockQuote:c(Ve),characterEscape:D,characterReference:D,codeFenced:c(Ge),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:c(Ge,u),codeText:c(De,u),codeTextData:D,data:D,codeFlowValue:D,definition:c(he),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:c(Et),hardBreakEscape:c(lt),hardBreakTrailing:c(lt),htmlFlow:c(Rt,u),htmlFlowData:D,htmlText:c(Rt,u),htmlTextData:D,image:c(dt),label:u,link:c(nt),listItem:c(xt),listItemValue:g,listOrdered:c(Lt,y),listUnordered:c(Lt),paragraph:c(pe),reference:ce,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:c(qe),strong:c(Te),thematicBreak:c(Ne)},exit:{atxHeading:f(),atxHeadingSequence:O,autolink:f(),autolinkEmail:me,autolinkProtocol:et,blockQuote:f(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:Ee,codeFenced:f(x),codeFencedFence:w,codeFencedFenceInfo:v,codeFencedFenceMeta:b,codeFlowValue:F,codeIndented:f(E),codeText:f(Z),codeTextData:F,data:F,definition:f(),definitionDestinationString:_,definitionLabelString:A,definitionTitleString:k,emphasis:f(),hardBreakEscape:f(Y),hardBreakTrailing:f(Y),htmlFlow:f(V),htmlFlowData:F,htmlText:f(te),htmlTextData:F,image:f(z),label:N,labelText:R,lineEnding:U,link:f(W),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:Ce,resourceDestinationString:ee,resourceTitleString:re,resource:Se,setextHeading:f($),setextHeadingLineSequence:I,setextHeadingText:L,strong:f(),thematicBreak:f()}},e.mdastExtensions||[]),n={};return r;function r(q){let K={type:"root",children:[]};const se=[K],ye=[],Ae=[],mt={stack:se,tokenStack:ye,config:t,enter:d,exit:h,buffer:u,resume:m,setData:a,getData:i};let Ze=-1;for(;++Ze<q.length;)if(q[Ze][1].type==="listOrdered"||q[Ze][1].type==="listUnordered")if(q[Ze][0]==="enter")Ae.push(Ze);else{const ht=Ae.pop();Ze=o(q,ht,Ze)}for(Ze=-1;++Ze<q.length;){const ht=t[q[Ze][0]];fw.call(ht,q[Ze][1].type)&&ht[q[Ze][1].type].call(Object.assign({sliceSerialize:q[Ze][2].sliceSerialize},mt),q[Ze][1])}if(ye.length>0){const ht=ye[ye.length-1];(ht[1]||bP).call(mt,void 0,ht[0])}for(K.position={start:l(q.length>0?q[0][1].start:{line:1,column:1,offset:0}),end:l(q.length>0?q[q.length-2][1].end:{line:1,column:1,offset:0})},Ze=-1;++Ze<t.transforms.length;)K=t.transforms[Ze](K)||K;return K}function o(q,K,se){let ye=K-1,Ae=-1,mt=!1,Ze,ht,Kt,Mn;for(;++ye<=se;){const pt=q[ye];if(pt[1].type==="listUnordered"||pt[1].type==="listOrdered"||pt[1].type==="blockQuote"?(pt[0]==="enter"?Ae++:Ae--,Mn=void 0):pt[1].type==="lineEndingBlank"?pt[0]==="enter"&&(Ze&&!Mn&&!Ae&&!Kt&&(Kt=ye),Mn=void 0):pt[1].type==="linePrefix"||pt[1].type==="listItemValue"||pt[1].type==="listItemMarker"||pt[1].type==="listItemPrefix"||pt[1].type==="listItemPrefixWhitespace"||(Mn=void 0),!Ae&&pt[0]==="enter"&&pt[1].type==="listItemPrefix"||Ae===-1&&pt[0]==="exit"&&(pt[1].type==="listUnordered"||pt[1].type==="listOrdered")){if(Ze){let un=ye;for(ht=void 0;un--;){const Vt=q[un];if(Vt[1].type==="lineEnding"||Vt[1].type==="lineEndingBlank"){if(Vt[0]==="exit")continue;ht&&(q[ht][1].type="lineEndingBlank",mt=!0),Vt[1].type="lineEnding",ht=un}else if(!(Vt[1].type==="linePrefix"||Vt[1].type==="blockQuotePrefix"||Vt[1].type==="blockQuotePrefixWhitespace"||Vt[1].type==="blockQuoteMarker"||Vt[1].type==="listItemIndent"))break}Kt&&(!ht||Kt<ht)&&(Ze._spread=!0),Ze.end=Object.assign({},ht?q[ht][1].start:pt[1].end),q.splice(ht||ye,0,["exit",Ze,pt[2]]),ye++,se++}pt[1].type==="listItemPrefix"&&(Ze={type:"listItem",_spread:!1,start:Object.assign({},pt[1].start)},q.splice(ye,0,["enter",Ze,pt[2]]),ye++,se++,Kt=void 0,Mn=!0)}}return q[K][1]._spread=mt,se}function a(q,K){n[q]=K}function i(q){return n[q]}function l(q){return{line:q.line,column:q.column,offset:q.offset}}function c(q,K){return se;function se(ye){d.call(this,q(ye),ye),K&&K.call(this,ye)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(q,K,se){return this.stack[this.stack.length-1].children.push(q),this.stack.push(q),this.tokenStack.push([K,se]),q.position={start:l(K.start)},q}function f(q){return K;function K(se){q&&q.call(this,se),h.call(this,se)}}function h(q,K){const se=this.stack.pop(),ye=this.tokenStack.pop();if(ye)ye[0].type!==q.type&&(K?K.call(this,q,ye[0]):(ye[1]||bP).call(this,q,ye[0]));else throw new Error("Cannot close `"+q.type+"` ("+Fd({start:q.start,end:q.end})+"): it’s not open");return se.position.end=l(q.end),se}function m(){return YTe(this.stack.pop())}function y(){a("expectingFirstListItemValue",!0)}function g(q){if(i("expectingFirstListItemValue")){const K=this.stack[this.stack.length-2];K.start=Number.parseInt(this.sliceSerialize(q),10),a("expectingFirstListItemValue")}}function v(){const q=this.resume(),K=this.stack[this.stack.length-1];K.lang=q}function b(){const q=this.resume(),K=this.stack[this.stack.length-1];K.meta=q}function w(){i("flowCodeInside")||(this.buffer(),a("flowCodeInside",!0))}function x(){const q=this.resume(),K=this.stack[this.stack.length-1];K.value=q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),a("flowCodeInside")}function E(){const q=this.resume(),K=this.stack[this.stack.length-1];K.value=q.replace(/(\r?\n|\r)$/g,"")}function A(q){const K=this.resume(),se=this.stack[this.stack.length-1];se.label=K,se.identifier=Tc(this.sliceSerialize(q)).toLowerCase()}function k(){const q=this.resume(),K=this.stack[this.stack.length-1];K.title=q}function _(){const q=this.resume(),K=this.stack[this.stack.length-1];K.url=q}function O(q){const K=this.stack[this.stack.length-1];if(!K.depth){const se=this.sliceSerialize(q).length;K.depth=se}}function L(){a("setextHeadingSlurpLineEnding",!0)}function I(q){const K=this.stack[this.stack.length-1];K.depth=this.sliceSerialize(q).charCodeAt(0)===61?1:2}function $(){a("setextHeadingSlurpLineEnding")}function D(q){const K=this.stack[this.stack.length-1];let se=K.children[K.children.length-1];(!se||se.type!=="text")&&(se=Ye(),se.position={start:l(q.start)},K.children.push(se)),this.stack.push(se)}function F(q){const K=this.stack.pop();K.value+=this.sliceSerialize(q),K.position.end=l(q.end)}function U(q){const K=this.stack[this.stack.length-1];if(i("atHardBreak")){const se=K.children[K.children.length-1];se.position.end=l(q.end),a("atHardBreak");return}!i("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(K.type)&&(D.call(this,q),F.call(this,q))}function Y(){a("atHardBreak",!0)}function V(){const q=this.resume(),K=this.stack[this.stack.length-1];K.value=q}function te(){const q=this.resume(),K=this.stack[this.stack.length-1];K.value=q}function Z(){const q=this.resume(),K=this.stack[this.stack.length-1];K.value=q}function W(){const q=this.stack[this.stack.length-1];i("inReference")?(q.type+="Reference",q.referenceType=i("referenceType")||"shortcut",delete q.url,delete q.title):(delete q.identifier,delete q.label),a("referenceType")}function z(){const q=this.stack[this.stack.length-1];i("inReference")?(q.type+="Reference",q.referenceType=i("referenceType")||"shortcut",delete q.url,delete q.title):(delete q.identifier,delete q.label),a("referenceType")}function R(q){const K=this.stack[this.stack.length-2],se=this.sliceSerialize(q);K.label=WAe(se),K.identifier=Tc(se).toLowerCase()}function N(){const q=this.stack[this.stack.length-1],K=this.resume(),se=this.stack[this.stack.length-1];a("inReference",!0),se.type==="link"?se.children=q.children:se.alt=K}function ee(){const q=this.resume(),K=this.stack[this.stack.length-1];K.url=q}function re(){const q=this.resume(),K=this.stack[this.stack.length-1];K.title=q}function Se(){a("inReference")}function ce(){a("referenceType","collapsed")}function Ce(q){const K=this.resume(),se=this.stack[this.stack.length-1];se.label=K,se.identifier=Tc(this.sliceSerialize(q)).toLowerCase(),a("referenceType","full")}function xe(q){a("characterReferenceType",q.type)}function Ee(q){const K=this.sliceSerialize(q),se=i("characterReferenceType");let ye;se?(ye=xM(K,se==="characterReferenceMarkerNumeric"?10:16),a("characterReferenceType")):ye=T2(K);const Ae=this.stack.pop();Ae.value+=ye,Ae.position.end=l(q.end)}function et(q){F.call(this,q);const K=this.stack[this.stack.length-1];K.url=this.sliceSerialize(q)}function me(q){F.call(this,q);const K=this.stack[this.stack.length-1];K.url="mailto:"+this.sliceSerialize(q)}function Ve(){return{type:"blockquote",children:[]}}function Ge(){return{type:"code",lang:null,meta:null,value:""}}function De(){return{type:"inlineCode",value:""}}function he(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Et(){return{type:"emphasis",children:[]}}function qe(){return{type:"heading",depth:void 0,children:[]}}function lt(){return{type:"break"}}function Rt(){return{type:"html",value:""}}function dt(){return{type:"image",title:null,url:"",alt:null}}function nt(){return{type:"link",title:null,url:"",children:[]}}function Lt(q){return{type:"list",ordered:q.type==="listOrdered",start:null,spread:q._spread,children:[]}}function xt(q){return{type:"listItem",spread:q._spread,checked:null,children:[]}}function pe(){return{type:"paragraph",children:[]}}function Te(){return{type:"strong",children:[]}}function Ye(){return{type:"text",value:""}}function Ne(){return{type:"thematicBreak"}}}function CM(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?CM(e,r):qAe(e,r)}return e}function qAe(e,t){let n;for(n in t)if(fw.call(t,n)){const r=n==="canContainEols"||n==="transforms",a=(fw.call(e,n)?e[n]:void 0)||(e[n]=r?[]:{}),i=t[n];i&&(r?e[n]=[...a,...i]:Object.assign(a,i))}}function bP(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Fd({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Fd({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Fd({start:t.start,end:t.end})+") is still open")}function KAe(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return VAe(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var fr=function(e,t,n){var r={type:String(e)};return n==null&&(typeof t=="string"||Array.isArray(t))?n=t:Object.assign(r,t),Array.isArray(n)?r.children=n:n!=null&&(r.value=String(n)),r};const Uh={}.hasOwnProperty;function YAe(e,t){const n=t.data||{};return"value"in t&&!(Uh.call(n,"hName")||Uh.call(n,"hProperties")||Uh.call(n,"hChildren"))?e.augment(t,fr("text",t.value)):e(t,"div",Vr(e,t))}function EM(e,t,n){const r=t&&t.type;let o;if(!r)throw new Error("Expected node, got `"+t+"`");return Uh.call(e.handlers,r)?o=e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?o=XAe:o=e.unknownHandler,(typeof o=="function"?o:YAe)(e,t,n)}function XAe(e,t){return"children"in t?{...t,children:Vr(e,t)}:t}function Vr(e,t){const n=[];if("children"in t){const r=t.children;let o=-1;for(;++o<r.length;){const a=EM(e,r[o],t);if(a){if(o&&r[o-1].type==="break"&&(!Array.isArray(a)&&a.type==="text"&&(a.value=a.value.replace(/^\s+/,"")),!Array.isArray(a)&&a.type==="element")){const i=a.children[0];i&&i.type==="text"&&(i.value=i.value.replace(/^\s+/,""))}Array.isArray(a)?n.push(...a):n.push(a)}}}return n}const TM=function(e){if(e==null)return e_e;if(typeof e=="string")return ZAe(e);if(typeof e=="object")return Array.isArray(e)?JAe(e):QAe(e);if(typeof e=="function")return qv(e);throw new Error("Expected function, string, or object as test")};function JAe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=TM(e[n]);return qv(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].call(this,...o))return!0;return!1}}function QAe(e){return qv(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function ZAe(e){return qv(t);function t(n){return n&&n.type===e}}function qv(e){return t;function t(...n){return Boolean(e.call(this,...n))}}function e_e(){return!0}const t_e=!0,n_e="skip",wP=!1,r_e=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const o=TM(t),a=r?-1:1;i(e,null,[])();function i(l,c,u){const d=typeof l=="object"&&l!==null?l:{};let f;return typeof d.type=="string"&&(f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0,Object.defineProperty(h,"name",{value:"node ("+(d.type+(f?"<"+f+">":""))+")"})),h;function h(){let m=[],y,g,v;if((!t||o(l,c,u[u.length-1]||null))&&(m=o_e(n(l,u)),m[0]===wP))return m;if(l.children&&m[0]!==n_e)for(g=(r?l.children.length:-1)+a,v=u.concat(l);g>-1&&g<l.children.length;){if(y=i(l.children[g],g,v)(),y[0]===wP)return y;g=typeof y[1]=="number"?y[1]:g+a}return m}}};function o_e(e){return Array.isArray(e)?e:typeof e=="number"?[t_e,e]:[e]}const A2=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),r_e(e,t,o,r);function o(a,i){const l=i[i.length-1];return n(a,l?l.children.indexOf(a):null,l)}},kM=_M("start"),AM=_M("end");function _M(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 a_e(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 SP={}.hasOwnProperty;function i_e(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return A2(e,"definition",r=>{const o=xP(r.identifier);o&&!SP.call(t,o)&&(t[o]=r)}),n;function n(r){const o=xP(r);return o&&SP.call(t,o)?t[o]:null}}function xP(e){return String(e||"").toUpperCase()}function yu(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let i="";if(a===37&&Ao(e.charCodeAt(n+1))&&Ao(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const l=e.charCodeAt(n+1);a<56320&&l>56319&&l<57344?(i=String.fromCharCode(a,l),o=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function yi(e,t){const n=[];let r=-1;for(t&&n.push(fr("text",`
370
- `));++r<e.length;)r&&n.push(fr("text",`
371
- `)),n.push(e[r]);return t&&e.length>0&&n.push(fr("text",`
372
- `)),n}function s_e(e){let t=-1;const n=[];for(;++t<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[t].toUpperCase()];if(!r)continue;const o=Vr(e,r),a=String(r.identifier),i=yu(a.toLowerCase());let l=0;const c=[];for(;++l<=e.footnoteCounts[a];){const f={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};l>1&&f.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(l)}]}),c.length>0&&c.push({type:"text",value:" "}),c.push(f)}const u=o[o.length-1];if(u&&u.type==="element"&&u.tagName==="p"){const f=u.children[u.children.length-1];f&&f.type==="text"?f.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-"+i},children:yi(o,!0)};r.position&&(d.position=r.position),n.push(d)}return n.length===0?null:{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:[fr("text",e.footnoteLabel)]},{type:"text",value:`
373
- `},{type:"element",tagName:"ol",properties:{},children:yi(n,!0)},{type:"text",value:`
374
- `}]}}function l_e(e,t){return e(t,"blockquote",yi(Vr(e,t),!0))}function c_e(e,t){return[e(t,"br"),fr("text",`
375
- `)]}function u_e(e,t){const n=t.value?t.value+`
376
- `:"",r=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};r&&(o.className=["language-"+r]);const a=e(t,"code",o,[fr("text",n)]);return t.meta&&(a.data={meta:t.meta}),e(t.position,"pre",[a])}function d_e(e,t){return e(t,"del",Vr(e,t))}function p_e(e,t){return e(t,"em",Vr(e,t))}function RM(e,t){const n=String(t.identifier),r=yu(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);let a;o===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,a=e.footnoteOrder.length):(e.footnoteCounts[n]++,a=o+1);const i=e.footnoteCounts[n];return e(t,"sup",[e(t.position,"a",{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(i>1?"-"+i:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[fr("text",String(a))])])}function f_e(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},RM(e,{type:"footnoteReference",identifier:o,position:t.position})}function h_e(e,t){return e(t,"h"+t.depth,Vr(e,t))}function m_e(e,t){return e.dangerous?e.augment(t,fr("raw",t.value)):null}function PM(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return fr("text","!["+t.alt+r);const o=Vr(e,t),a=o[0];a&&a.type==="text"?a.value="["+a.value:o.unshift(fr("text","["));const i=o[o.length-1];return i&&i.type==="text"?i.value+=r:o.push(fr("text",r)),o}function g_e(e,t){const n=e.definition(t.identifier);if(!n)return PM(e,t);const r={src:yu(n.url||""),alt:t.alt};return n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"img",r)}function v_e(e,t){const n={src:yu(t.url),alt:t.alt};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"img",n)}function y_e(e,t){return e(t,"code",[fr("text",t.value.replace(/\r?\n|\r/g," "))])}function b_e(e,t){const n=e.definition(t.identifier);if(!n)return PM(e,t);const r={href:yu(n.url||"")};return n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"a",r,Vr(e,t))}function w_e(e,t){const n={href:yu(t.url)};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"a",n,Vr(e,t))}function S_e(e,t,n){const r=Vr(e,t),o=n?x_e(n):IM(t),a={},i=[];if(typeof t.checked=="boolean"){let u;r[0]&&r[0].type==="element"&&r[0].tagName==="p"?u=r[0]:(u=e(null,"p",[]),r.unshift(u)),u.children.length>0&&u.children.unshift(fr("text"," ")),u.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const u=r[l];(o||l!==0||u.type!=="element"||u.tagName!=="p")&&i.push(fr("text",`
377
- `)),u.type==="element"&&u.tagName==="p"&&!o?i.push(...u.children):i.push(u)}const c=r[r.length-1];return c&&(o||!("tagName"in c)||c.tagName!=="p")&&i.push(fr("text",`
378
- `)),e(t,"li",a,i)}function x_e(e){let t=e.spread;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=IM(n[r]);return Boolean(t)}function IM(e){const t=e.spread;return t??e.children.length>1}function C_e(e,t){const n={},r=t.ordered?"ol":"ul",o=Vr(e,t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<o.length;){const i=o[a];if(i.type==="element"&&i.tagName==="li"&&i.properties&&Array.isArray(i.properties.className)&&i.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}return e(t,r,n,yi(o,!0))}function E_e(e,t){return e(t,"p",Vr(e,t))}function T_e(e,t){return e.augment(t,fr("root",yi(Vr(e,t))))}function k_e(e,t){return e(t,"strong",Vr(e,t))}function A_e(e,t){const n=t.children;let r=-1;const o=t.align||[],a=[];for(;++r<n.length;){const i=n[r].children,l=r===0?"th":"td",c=[];let u=-1;const d=t.align?o.length:i.length;for(;++u<d;){const f=i[u];c.push(e(f,l,{align:o[u]},f?Vr(e,f):[]))}a[r]=e(n[r],"tr",yi(c,!0))}return e(t,"table",yi([e(a[0].position,"thead",yi([a[0]],!0))].concat(a[1]?e({start:kM(a[1]),end:AM(a[a.length-1])},"tbody",yi(a.slice(1),!0)):[]),!0))}const CP=9,EP=32;function __e(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(TP(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(TP(t.slice(o),o>0,!1)),a.join("")}function TP(e,t,n){let r=0,o=e.length;if(t){let a=e.codePointAt(r);for(;a===CP||a===EP;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(o-1);for(;a===CP||a===EP;)o--,a=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function R_e(e,t){return e.augment(t,fr("text",__e(String(t.value))))}function P_e(e,t){return e(t,"hr")}const I_e={blockquote:l_e,break:c_e,code:u_e,delete:d_e,emphasis:p_e,footnoteReference:RM,footnote:f_e,heading:h_e,html:m_e,imageReference:g_e,image:v_e,inlineCode:y_e,linkReference:b_e,link:w_e,listItem:S_e,list:C_e,paragraph:E_e,root:T_e,strong:k_e,table:A_e,text:R_e,thematicBreak:P_e,toml:fh,yaml:fh,definition:fh,footnoteDefinition:fh};function fh(){return null}const $_e={}.hasOwnProperty;function O_e(e,t){const n=t||{},r=n.allowDangerousHtml||!1,o={};return i.dangerous=r,i.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,i.footnoteLabel=n.footnoteLabel||"Footnotes",i.footnoteLabelTagName=n.footnoteLabelTagName||"h2",i.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},i.footnoteBackLabel=n.footnoteBackLabel||"Back to content",i.definition=i_e(e),i.footnoteById=o,i.footnoteOrder=[],i.footnoteCounts={},i.augment=a,i.handlers={...I_e,...n.handlers},i.unknownHandler=n.unknownHandler,i.passThrough=n.passThrough,A2(e,"footnoteDefinition",l=>{const c=String(l.identifier).toUpperCase();$_e.call(o,c)||(o[c]=l)}),i;function a(l,c){if(l&&"data"in l&&l.data){const u=l.data;u.hName&&(c.type!=="element"&&(c={type:"element",tagName:"",properties:{},children:[]}),c.tagName=u.hName),c.type==="element"&&u.hProperties&&(c.properties={...c.properties,...u.hProperties}),"children"in c&&c.children&&u.hChildren&&(c.children=u.hChildren)}if(l){const u="type"in l?l:{position:l};a_e(u)||(c.position={start:kM(u),end:AM(u)})}return c}function i(l,c,u,d){return Array.isArray(u)&&(d=u,u={}),a(l,{type:"element",tagName:c,properties:u||{},children:d||[]})}}function $M(e,t){const n=O_e(e,t),r=EM(n,e,null),o=s_e(n);return o&&r.children.push(fr("text",`
379
- `),o),Array.isArray(r)?{type:"root",children:r}:r}const L_e=function(e,t){return e&&"run"in e?N_e(e,t):D_e(e||t)},M_e=L_e;function N_e(e,t){return(n,r,o)=>{e.run($M(n,t),r,a=>{o(a)})}}function D_e(e){return t=>$M(t,e)}class sf{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}sf.prototype.property={};sf.prototype.normal={};sf.prototype.space=null;function OM(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 sf(n,r,t)}function hw(e){return e.toLowerCase()}class ca{constructor(t,n){this.property=t,this.attribute=n}}ca.prototype.space=null;ca.prototype.boolean=!1;ca.prototype.booleanish=!1;ca.prototype.overloadedBoolean=!1;ca.prototype.number=!1;ca.prototype.commaSeparated=!1;ca.prototype.spaceSeparated=!1;ca.prototype.commaOrSpaceSeparated=!1;ca.prototype.mustUseProperty=!1;ca.prototype.defined=!1;let B_e=0;const Mt=Il(),nr=Il(),LM=Il(),_e=Il(),On=Il(),kc=Il(),So=Il();function Il(){return 2**++B_e}const mw=Object.freeze(Object.defineProperty({__proto__:null,boolean:Mt,booleanish:nr,commaOrSpaceSeparated:So,commaSeparated:kc,number:_e,overloadedBoolean:LM,spaceSeparated:On},Symbol.toStringTag,{value:"Module"})),u0=Object.keys(mw);class _2 extends ca{constructor(t,n,r,o){let a=-1;if(super(t,n),kP(this,"space",o),typeof r=="number")for(;++a<u0.length;){const i=u0[a];kP(this,u0[a],(r&mw[i])===mw[i])}}}_2.prototype.defined=!0;function kP(e,t,n){n&&(e[t]=n)}const F_e={}.hasOwnProperty;function bu(e){const t={},n={};let r;for(r in e.properties)if(F_e.call(e.properties,r)){const o=e.properties[r],a=new _2(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[hw(r)]=r,n[hw(a.attribute)]=r}return new sf(t,n,e.space)}const MM=bu({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}}),NM=bu({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function DM(e,t){return t in e?e[t]:t}function BM(e,t){return DM(e,t.toLowerCase())}const FM=bu({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:BM,properties:{xmlns:null,xmlnsXLink:null}}),zM=bu({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:nr,ariaAutoComplete:null,ariaBusy:nr,ariaChecked:nr,ariaColCount:_e,ariaColIndex:_e,ariaColSpan:_e,ariaControls:On,ariaCurrent:null,ariaDescribedBy:On,ariaDetails:null,ariaDisabled:nr,ariaDropEffect:On,ariaErrorMessage:null,ariaExpanded:nr,ariaFlowTo:On,ariaGrabbed:nr,ariaHasPopup:null,ariaHidden:nr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:On,ariaLevel:_e,ariaLive:null,ariaModal:nr,ariaMultiLine:nr,ariaMultiSelectable:nr,ariaOrientation:null,ariaOwns:On,ariaPlaceholder:null,ariaPosInSet:_e,ariaPressed:nr,ariaReadOnly:nr,ariaRelevant:null,ariaRequired:nr,ariaRoleDescription:On,ariaRowCount:_e,ariaRowIndex:_e,ariaRowSpan:_e,ariaSelected:nr,ariaSetSize:_e,ariaSort:null,ariaValueMax:_e,ariaValueMin:_e,ariaValueNow:_e,ariaValueText:null,role:null}}),z_e=bu({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:BM,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:kc,acceptCharset:On,accessKey:On,action:null,allow:null,allowFullScreen:Mt,allowPaymentRequest:Mt,allowUserMedia:Mt,alt:null,as:null,async:Mt,autoCapitalize:null,autoComplete:On,autoFocus:Mt,autoPlay:Mt,capture:Mt,charSet:null,checked:Mt,cite:null,className:On,cols:_e,colSpan:null,content:null,contentEditable:nr,controls:Mt,controlsList:On,coords:_e|kc,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mt,defer:Mt,dir:null,dirName:null,disabled:Mt,download:LM,draggable:nr,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mt,formTarget:null,headers:On,height:_e,hidden:Mt,high:_e,href:null,hrefLang:null,htmlFor:On,httpEquiv:On,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Mt,itemId:null,itemProp:On,itemRef:On,itemScope:Mt,itemType:On,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Mt,low:_e,manifest:null,max:null,maxLength:_e,media:null,method:null,min:null,minLength:_e,multiple:Mt,muted:Mt,name:null,nonce:null,noModule:Mt,noValidate:Mt,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:Mt,optimum:_e,pattern:null,ping:On,placeholder:null,playsInline:Mt,poster:null,preload:null,readOnly:Mt,referrerPolicy:null,rel:On,required:Mt,reversed:Mt,rows:_e,rowSpan:_e,sandbox:On,scope:null,scoped:Mt,seamless:Mt,selected:Mt,shape:null,size:_e,sizes:null,slot:null,span:_e,spellCheck:nr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_e,step:null,style:null,tabIndex:_e,target:null,title:null,translate:null,type:null,typeMustMatch:Mt,useMap:null,value:nr,width:_e,wrap:null,align:null,aLink:null,archive:On,axis:null,background:null,bgColor:null,border:_e,borderColor:null,bottomMargin:_e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Mt,declare:Mt,event:null,face:null,frame:null,frameBorder:null,hSpace:_e,leftMargin:_e,link:null,longDesc:null,lowSrc:null,marginHeight:_e,marginWidth:_e,noResize:Mt,noHref:Mt,noShade:Mt,noWrap:Mt,object:null,profile:null,prompt:null,rev:null,rightMargin:_e,rules:null,scheme:null,scrolling:nr,standby:null,summary:null,text:null,topMargin:_e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Mt,disableRemotePlayback:Mt,prefix:null,property:null,results:_e,security:null,unselectable:null}}),j_e=bu({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:DM,properties:{about:So,accentHeight:_e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_e,amplitude:_e,arabicForm:null,ascent:_e,attributeName:null,attributeType:null,azimuth:_e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_e,by:null,calcMode:null,capHeight:_e,className:On,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:_e,diffuseConstant:_e,direction:null,display:null,dur:null,divisor:_e,dominantBaseline:null,download:Mt,dx:null,dy:null,edgeMode:null,editable:null,elevation:_e,enableBackground:null,end:null,event:null,exponent:_e,externalResourcesRequired:null,fill:null,fillOpacity:_e,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:kc,g2:kc,glyphName:kc,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_e,horizOriginX:_e,horizOriginY:_e,id:null,ideographic:_e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_e,k:_e,k1:_e,k2:_e,k3:_e,k4:_e,kernelMatrix:So,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_e,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:_e,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:_e,overlineThickness:_e,paintOrder:null,panose1:null,path:null,pathLength:_e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:On,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_e,pointsAtY:_e,pointsAtZ:_e,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:So,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:So,rev:So,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:So,requiredFeatures:So,requiredFonts:So,requiredFormats:So,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:_e,specularExponent:_e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_e,strikethroughThickness:_e,string:null,stroke:null,strokeDashArray:So,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_e,strokeOpacity:_e,strokeWidth:null,style:null,surfaceScale:_e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:So,tabIndex:_e,tableValues:null,target:null,targetX:_e,targetY:_e,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:So,to:null,transform:null,u1:null,u2:null,underlinePosition:_e,underlineThickness:_e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_e,values:null,vAlphabetic:_e,vMathematical:_e,vectorEffect:null,vHanging:_e,vIdeographic:_e,version:null,vertAdvY:_e,vertOriginX:_e,vertOriginY:_e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_e,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),U_e=/^data[-\w.:]+$/i,AP=/-[a-z]/g,W_e=/[A-Z]/g;function H_e(e,t){const n=hw(t);let r=t,o=ca;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&U_e.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(AP,G_e);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!AP.test(a)){let i=a.replace(W_e,V_e);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}o=_2}return new o(r,t)}function V_e(e){return"-"+e.toLowerCase()}function G_e(e){return e.charAt(1).toUpperCase()}const _P={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"},q_e=OM([NM,MM,FM,zM,z_e],"html"),K_e=OM([NM,MM,FM,zM,j_e],"svg");function Y_e(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=>{A2(t,"element",(n,r,o)=>{const a=o;let i;if(e.allowedElements?i=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(n.tagName)),!i&&e.allowElement&&typeof r=="number"&&(i=!e.allowElement(n,r,a)),i&&typeof r=="number")return e.unwrapDisallowed&&n.children?a.children.splice(r,1,...n.children):a.children.splice(r,1),r})}}function X_e(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 J_e(e){return e.join(" ").trim()}function Q_e(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var RP=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Z_e=/\n/g,eRe=/^\s*/,tRe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,nRe=/^:\s*/,rRe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,oRe=/^[;\s]*/,aRe=/^\s+|\s+$/g,iRe=`
380
- `,PP="/",IP="*",Ys="",sRe="comment",lRe="declaration",cRe=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(y){var g=y.match(Z_e);g&&(n+=g.length);var v=y.lastIndexOf(iRe);r=~v?y.length-v:r+y.length}function a(){var y={line:n,column:r};return function(g){return g.position=new i(y),u(),g}}function i(y){this.start=y,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;function l(y){var g=new Error(t.source+":"+n+":"+r+": "+y);if(g.reason=y,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function c(y){var g=y.exec(e);if(g){var v=g[0];return o(v),e=e.slice(v.length),g}}function u(){c(eRe)}function d(y){var g;for(y=y||[];g=f();)g!==!1&&y.push(g);return y}function f(){var y=a();if(!(PP!=e.charAt(0)||IP!=e.charAt(1))){for(var g=2;Ys!=e.charAt(g)&&(IP!=e.charAt(g)||PP!=e.charAt(g+1));)++g;if(g+=2,Ys===e.charAt(g-1))return l("End of comment missing");var v=e.slice(2,g-2);return r+=2,o(v),e=e.slice(g),r+=2,y({type:sRe,comment:v})}}function h(){var y=a(),g=c(tRe);if(g){if(f(),!c(nRe))return l("property missing ':'");var v=c(rRe),b=y({type:lRe,property:$P(g[0].replace(RP,Ys)),value:v?$P(v[0].replace(RP,Ys)):Ys});return c(oRe),b}}function m(){var y=[];d(y);for(var g;g=h();)g!==!1&&(y.push(g),d(y));return y}return u(),m()};function $P(e){return e?e.replace(aRe,Ys):Ys}var uRe=cRe;function dRe(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,o=uRe(e),a=typeof t=="function",i,l,c=0,u=o.length;c<u;c++)r=o[c],i=r.property,l=r.value,a?t(i,l,r):l&&(n||(n={}),n[i]=l);return n}var pRe=dRe;const gw={}.hasOwnProperty,fRe=new Set(["table","thead","tbody","tfoot","tr"]);function jM(e,t){const n=[];let r=-1,o;for(;++r<t.children.length;)o=t.children[r],o.type==="element"?n.push(hRe(e,o,r,t)):o.type==="text"?(t.type!=="element"||!fRe.has(t.tagName)||!X_e(o))&&n.push(o.value):o.type==="raw"&&!e.options.skipHtml&&n.push(o.value);return n}function hRe(e,t,n,r){const o=e.options,a=e.schema,i=t.tagName,l={};let c=a,u;if(a.space==="html"&&i==="svg"&&(c=K_e,e.schema=c),t.properties)for(u in t.properties)gw.call(t.properties,u)&&gRe(l,u,t.properties[u],e);(i==="ol"||i==="ul")&&e.listDepth++;const d=jM(e,t);(i==="ol"||i==="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&&gw.call(o.components,i)?o.components[i]:i,m=typeof h=="string"||h===zt.Fragment;if(!j9.isValidElementType(h))throw new TypeError(`Component for name \`${i}\` not defined or is not renderable`);if(l.key=[i,f.start.line,f.start.column,n].join("-"),i==="a"&&o.linkTarget&&(l.target=typeof o.linkTarget=="function"?o.linkTarget(String(l.href||""),t.children,typeof l.title=="string"?l.title:null):o.linkTarget),i==="a"&&o.transformLinkUri&&(l.href=o.transformLinkUri(String(l.href||""),t.children,typeof l.title=="string"?l.title:null)),!m&&i==="code"&&r.type==="element"&&r.tagName!=="pre"&&(l.inline=!0),!m&&(i==="h1"||i==="h2"||i==="h3"||i==="h4"||i==="h5"||i==="h6")&&(l.level=Number.parseInt(i.charAt(1),10)),i==="img"&&o.transformImageUri&&(l.src=o.transformImageUri(String(l.src||""),String(l.alt||""),typeof l.title=="string"?l.title:null)),!m&&i==="li"&&r.type==="element"){const y=mRe(t);l.checked=y&&y.properties?Boolean(y.properties.checked):null,l.index=d0(r,t),l.ordered=r.tagName==="ol"}return!m&&(i==="ol"||i==="ul")&&(l.ordered=i==="ol",l.depth=e.listDepth),(i==="td"||i==="th")&&(l.align&&(l.style||(l.style={}),l.style.textAlign=l.align,delete l.align),m||(l.isHeader=i==="th")),!m&&i==="tr"&&r.type==="element"&&(l.isHeader=Boolean(r.tagName==="thead")),o.sourcePos&&(l["data-sourcepos"]=bRe(f)),!m&&o.rawSourcePos&&(l.sourcePosition=t.position),!m&&o.includeElementIndex&&(l.index=d0(r,t),l.siblingCount=d0(r)),m||(l.node=t),d.length>0?zt.createElement(h,l,d):zt.createElement(h,l)}function mRe(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 d0(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 gRe(e,t,n,r){const o=H_e(r.schema,t);let a=n;a==null||a!==a||(Array.isArray(a)&&(a=o.commaSeparated?Q_e(a):J_e(a)),o.property==="style"&&typeof a=="string"&&(a=vRe(a)),o.space&&o.property?e[gw.call(_P,o.property)?_P[o.property]:o.property]=a:o.attribute&&(e[o.attribute]=a))}function vRe(e){const t={};try{pRe(e,n)}catch{}return t;function n(r,o){const a=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[a.replace(/-([a-z])/g,yRe)]=o}}function yRe(e,t){return t.toUpperCase()}function bRe(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const OP={}.hasOwnProperty,wRe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",hh={plugins:{to:"plugins",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 Kv(e){for(const a in hh)if(OP.call(hh,a)&&OP.call(e,a)){const i=hh[a];console.warn(`[react-markdown] Warning: please ${i.to?`use \`${i.to}\` instead of`:"remove"} \`${a}\` (see <${wRe}#${i.id}> for more info)`),delete hh[a]}const t=VTe().use(KAe).use(e.remarkPlugins||[]).use(M_e,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Y_e,e),n=new lM;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=zt.createElement(zt.Fragment,{},jM({options:e,schema:q_e,listDepth:0},r));return e.className&&(o=zt.createElement("div",{className:e.className},o)),o}Kv.defaultProps={transformLinkUri:$Te};Kv.propTypes={children:ct.string,className:ct.string,allowElement:ct.func,allowedElements:ct.arrayOf(ct.string),disallowedElements:ct.arrayOf(ct.string),unwrapDisallowed:ct.bool,remarkPlugins:ct.arrayOf(ct.oneOfType([ct.object,ct.func,ct.arrayOf(ct.oneOfType([ct.bool,ct.string,ct.object,ct.func,ct.arrayOf(ct.any)]))])),rehypePlugins:ct.arrayOf(ct.oneOfType([ct.object,ct.func,ct.arrayOf(ct.oneOfType([ct.bool,ct.string,ct.object,ct.func,ct.arrayOf(ct.any)]))])),sourcePos:ct.bool,rawSourcePos:ct.bool,skipHtml:ct.bool,includeElementIndex:ct.bool,transformLinkUri:ct.oneOfType([ct.func,ct.bool]),linkTarget:ct.oneOfType([ct.func,ct.string]),transformImageUri:ct.func,components:ct.object};const SRe=C(Kv)(({theme:e})=>({"h1, h2, h3":{margin:e.spacing(2,0)}})),xRe=({open:e,setOpen:t,title:n,children:r})=>s(lr,{title:n,open:e,secondaryButtonText:"Close",onClose:()=>{t(!1)},children:s(SRe,{children:r})}),CRe=C("aside",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:t})=>({position:"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})),ERe=C("div",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:t})=>({display:"flex",alignItems:"center",color:e.palette[t].main})),TRe={enabled:!0,message:"**Unleash v5 is finally here!** Check out what changed in the newest major release.",variant:"secondary",link:"dialog",linkText:"What's new?",plausibleEvent:"change_log_v5",dialog:`![Unleash v5](https://www.getunleash.io/logos/unleash_pos.svg)
381
- ## Unleash v5 🎉
382
- **Unleash v5 is finally here!**
383
-
384
- Check out what changed in the newest major release:
385
-
386
- - An Amazing Feature
387
- - Another Amazing Feature
388
- - We'll save the best for last
389
- - And the best is...
390
- - **Unleash v5 is finally here!**
391
-
392
- You can read more about it on our newest [blog post](https://www.getunleash.io/blog).`},kRe=()=>{const{uiConfig:e}=Nt(),[t,n]=p.useState(!1),{enabled:r,message:o,variant:a="neutral",icon:i,link:l,linkText:c="More info",plausibleEvent:u,dialogTitle:d,dialog:f}={...TRe,enabled:e.flags.messageBanner};return r?T(CRe,{variant:a,children:[s(ERe,{variant:a,children:s(_Re,{icon:i,variant:a})}),s(Kv,{children:o}),s(RRe,{link:l,plausibleEvent:u,openDialog:()=>n(!0),children:c}),s(xRe,{open:t,setOpen:n,title:d||c,children:f})]}):null},ARe={warning:s(P4,{}),info:s(Ld,{}),error:s(sv,{}),success:s(Em,{}),neutral:s(Ld,{}),secondary:s(Ld,{})},_Re=({icon:e,variant:t})=>e==="none"?null:e?s(rx,{children:e}):ARe[t]??s(Ld,{}),RRe=({link:e,plausibleEvent:t,openDialog:n,children:r})=>{const o=ut(),a=Oi();if(!e)return null;const i=e==="dialog",l=!e.startsWith("http"),c=()=>{t&&a.trackEvent("message_banner",{props:{event:t}})};return i?s(ho,{onClick:()=>{c(),n()},children:r}):l?s(ho,{onClick:()=>{c(),o(e)},children:r}):s(ho,{href:e,target:"_blank",onClick:c,children:r})};cd.render(s(ITe,{children:s(BEe,{children:s(S9,{basename:$i,children:s(XZ,{children:s(dTe,{children:s(lTe,{children:T(ATe,{children:[s(kRe,{}),s(NEe,{}),s(MEe,{})]})})})})})})}),document.getElementById("app"));export{gm as $,Jt as A,wa as B,X as C,BR as D,lu as E,ke as F,ss as G,Nt as H,xv as I,tle as J,vv as K,Dp as L,gv as M,Tr as N,Rs as O,ax as P,rC as Q,of as R,Mi as S,we as T,bv as U,vo as V,Qn as W,_s as X,Fx as Y,Un as Z,I$ as _,Je as a,Uv as a$,As as a0,iO as a1,Ot as a2,_l as a3,ft as a4,Ri as a5,Gp as a6,qp as a7,vs as a8,rt as a9,je as aA,He as aB,$e as aC,P as aD,ve as aE,We as aF,cr as aG,gl as aH,ehe as aI,ie as aJ,mr as aK,s3 as aL,sn as aM,Ja as aN,Tae as aO,vn as aP,jt as aQ,Tn as aR,Hr as aS,tf as aT,_ne as aU,ZRe as aV,na as aW,Do as aX,lr as aY,Rwe as aZ,u2 as a_,gO as aa,Hue as ab,fn as ac,nv as ad,Di as ae,fo as af,Yg as ag,Ar as ah,sv as ai,iu as aj,gr as ak,En as al,Nm as am,Zse as an,EZ as ao,wp as ap,sa as aq,ut as ar,cpe as as,gC as at,Nr as au,lpe as av,du as aw,wA as ax,Bo as ay,ze as az,xPe as b,EPe as b$,d2 as b0,ORe as b1,jpe as b2,zpe as b3,Fpe as b4,SPe as b5,u3 as b6,_t as b7,ePe as b8,mZ as b9,q3 as bA,Rne as bB,ho as bC,eC as bD,xa as bE,ks as bF,u8 as bG,Av as bH,_v as bI,ple as bJ,Oi as bK,PC as bL,bZ as bM,Lm as bN,A3 as bO,m9 as bP,kh as bQ,BC as bR,APe as bS,LL as bT,Cr as bU,_r as bV,Pi as bW,J$ as bX,E4 as bY,su as bZ,Pne as b_,ix as ba,Ih as bb,LZ as bc,dn as bd,Dwe as be,Nx as bf,zR as bg,Zr as bh,F$ as bi,qa as bj,Fa as bk,tPe as bl,In as bm,kZ as bn,ru as bo,XS as bp,QS as bq,JS as br,Lie as bs,QRe as bt,oi as bu,zc as bv,ef as bw,R4 as bx,_4 as by,pu as bz,Ke as c,gTe as c$,Cwe as c0,Qp as c1,jc as c2,Eie as c3,Uc as c4,CPe as c5,PO as c6,Bc as c7,bp as c8,zt as c9,Mwe as cA,P4 as cB,Zx as cC,LS as cD,Zo as cE,Lg as cF,c$ as cG,Ro as cH,$Re as cI,jp as cJ,jn as cK,bs as cL,ir as cM,rbe as cN,fPe as cO,dPe as cP,Ffe as cQ,Za as cR,pPe as cS,z3 as cT,nbe as cU,Wue as cV,Ca as cW,qpe as cX,xi as cY,oM as cZ,ac as c_,ys as ca,dv as cb,jb as cc,Ewe as cd,hPe as ce,hpe as cf,Qwe as cg,zae as ch,vJ as ci,Rie as cj,oa as ck,mue as cl,gp as cm,A4 as cn,Sne as co,IZ as cp,CQ as cq,SR as cr,LC as cs,Pwe as ct,Lwe as cu,Fwe as cv,zwe as cw,jwe as cx,_we as cy,Nwe as cz,rn as d,hn as d$,D3 as d0,fTe as d1,e3 as d2,EJ as d3,VJ as d4,u4 as d5,Tl as d6,Al as d7,BRe as d8,yR as d9,lx as dA,wx as dB,L4 as dC,GZ as dD,RL as dE,iZ as dF,Pce as dG,Xp as dH,ba as dI,aO as dJ,sO as dK,ws as dL,oO as dM,Aoe as dN,d7 as dO,MRe as dP,yO as dQ,Rb as dR,IL as dS,Aue as dT,kPe as dU,W0e as dV,$b as dW,oSe as dX,pv as dY,wle as dZ,kn as d_,Px as da,NRe as db,DRe as dc,kl as dd,TPe as de,FRe as df,qde as dg,zRe as dh,DSe as di,HRe as dj,jRe as dk,URe as dl,pO as dm,WRe as dn,t4 as dp,WL as dq,LRe as dr,IRe as ds,vC as dt,zL as du,aw as dv,RSe as dw,PL as dx,bSe as dy,nl as dz,ai as e,Zp as e$,An as e0,mC as e1,uh as e2,cPe as e3,uv as e4,Li as e5,_ie as e6,Oie as e7,$ie as e8,x3 as e9,mPe as eA,B3 as eB,$ue as eC,YRe as eD,GRe as eE,qRe as eF,KRe as eG,XRe as eH,JRe as eI,VRe as eJ,Gae as eK,yPe as eL,vPe as eM,mSe as eN,ct as eO,$t as eP,rPe as eQ,aPe as eR,iPe as eS,sPe as eT,oPe as eU,hue as eV,nPe as eW,Ene as eX,gue as eY,bPe as eZ,pre as e_,k3 as ea,kie as eb,Uie as ec,Nh as ed,hx as ee,m8 as ef,$Ee as eg,Vx as eh,Em as ei,K4 as ej,eae as ek,tae as el,nae as em,rae as en,oae as eo,Aae as ep,I3 as eq,rv as er,N2e as es,V2e as et,Ad as eu,wZ as ev,gPe as ew,wb as ex,x2 as ey,L2e as ez,T as f,h3 as f0,f3 as f1,hre as f2,wPe as f3,g3 as f4,Pm as f5,Rm as f6,Ere as f7,Sre as f8,y3 as f9,Pre as fa,Lre as fb,_A as fc,Ore as fd,gre as fe,mp as ff,b3 as fg,Wx as fh,yp as fi,pA as fj,Ma as fk,vc as fl,TB as fm,CB as fn,qs as fo,uPe as fp,Ni as g,Ii as h,ri as i,s as j,Qa as k,mo as l,en as m,Ld as n,C4 as o,i2 as p,X1e as q,p as r,C as s,SL as t,cn as u,NL as v,To as w,Oa as x,Ji as y,Dd as z};