@qwickapps/server 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/README.md +238 -0
  2. package/dist/core/control-panel.d.ts +7 -2
  3. package/dist/core/control-panel.d.ts.map +1 -1
  4. package/dist/core/control-panel.js +92 -54
  5. package/dist/core/control-panel.js.map +1 -1
  6. package/dist/core/gateway.d.ts +159 -79
  7. package/dist/core/gateway.d.ts.map +1 -1
  8. package/dist/core/gateway.js +679 -319
  9. package/dist/core/gateway.js.map +1 -1
  10. package/dist/core/index.d.ts +3 -1
  11. package/dist/core/index.d.ts.map +1 -1
  12. package/dist/core/index.js +2 -0
  13. package/dist/core/index.js.map +1 -1
  14. package/dist/core/plugin-registry.d.ts +271 -0
  15. package/dist/core/plugin-registry.d.ts.map +1 -0
  16. package/dist/core/plugin-registry.js +326 -0
  17. package/dist/core/plugin-registry.js.map +1 -0
  18. package/dist/core/types.d.ts +16 -33
  19. package/dist/core/types.d.ts.map +1 -1
  20. package/dist/index.d.ts +8 -5
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +15 -7
  23. package/dist/index.js.map +1 -1
  24. package/dist/plugins/auth/adapters/auth0-adapter.d.ts +14 -0
  25. package/dist/plugins/auth/adapters/auth0-adapter.d.ts.map +1 -0
  26. package/dist/plugins/auth/adapters/auth0-adapter.js +179 -0
  27. package/dist/plugins/auth/adapters/auth0-adapter.js.map +1 -0
  28. package/dist/plugins/auth/adapters/basic-adapter.d.ts +13 -0
  29. package/dist/plugins/auth/adapters/basic-adapter.d.ts.map +1 -0
  30. package/dist/plugins/auth/adapters/basic-adapter.js +51 -0
  31. package/dist/plugins/auth/adapters/basic-adapter.js.map +1 -0
  32. package/dist/plugins/auth/adapters/index.d.ts +9 -0
  33. package/dist/plugins/auth/adapters/index.d.ts.map +1 -0
  34. package/dist/plugins/auth/adapters/index.js +9 -0
  35. package/dist/plugins/auth/adapters/index.js.map +1 -0
  36. package/dist/plugins/auth/adapters/supabase-adapter.d.ts +13 -0
  37. package/dist/plugins/auth/adapters/supabase-adapter.d.ts.map +1 -0
  38. package/dist/plugins/auth/adapters/supabase-adapter.js +109 -0
  39. package/dist/plugins/auth/adapters/supabase-adapter.js.map +1 -0
  40. package/dist/plugins/auth/auth-plugin.d.ts +40 -0
  41. package/dist/plugins/auth/auth-plugin.d.ts.map +1 -0
  42. package/dist/plugins/auth/auth-plugin.js +255 -0
  43. package/dist/plugins/auth/auth-plugin.js.map +1 -0
  44. package/dist/plugins/auth/auth-plugin.test.d.ts +9 -0
  45. package/dist/plugins/auth/auth-plugin.test.d.ts.map +1 -0
  46. package/dist/plugins/auth/auth-plugin.test.js +147 -0
  47. package/dist/plugins/auth/auth-plugin.test.js.map +1 -0
  48. package/dist/plugins/auth/index.d.ts +12 -0
  49. package/dist/plugins/auth/index.d.ts.map +1 -0
  50. package/dist/plugins/auth/index.js +13 -0
  51. package/dist/plugins/auth/index.js.map +1 -0
  52. package/dist/plugins/auth/types.d.ts +148 -0
  53. package/dist/plugins/auth/types.d.ts.map +1 -0
  54. package/dist/plugins/auth/types.js +14 -0
  55. package/dist/plugins/auth/types.js.map +1 -0
  56. package/dist/plugins/bans/bans-plugin.d.ts +59 -0
  57. package/dist/plugins/bans/bans-plugin.d.ts.map +1 -0
  58. package/dist/plugins/bans/bans-plugin.js +428 -0
  59. package/dist/plugins/bans/bans-plugin.js.map +1 -0
  60. package/dist/plugins/bans/index.d.ts +9 -0
  61. package/dist/plugins/bans/index.d.ts.map +1 -0
  62. package/dist/plugins/bans/index.js +10 -0
  63. package/dist/plugins/bans/index.js.map +1 -0
  64. package/dist/plugins/bans/stores/index.d.ts +7 -0
  65. package/dist/plugins/bans/stores/index.d.ts.map +1 -0
  66. package/dist/plugins/bans/stores/index.js +7 -0
  67. package/dist/plugins/bans/stores/index.js.map +1 -0
  68. package/dist/plugins/bans/stores/postgres-store.d.ts +29 -0
  69. package/dist/plugins/bans/stores/postgres-store.d.ts.map +1 -0
  70. package/dist/plugins/bans/stores/postgres-store.js +132 -0
  71. package/dist/plugins/bans/stores/postgres-store.js.map +1 -0
  72. package/dist/plugins/bans/types.d.ts +128 -0
  73. package/dist/plugins/bans/types.d.ts.map +1 -0
  74. package/dist/plugins/bans/types.js +11 -0
  75. package/dist/plugins/bans/types.js.map +1 -0
  76. package/dist/plugins/cache-plugin.d.ts +14 -3
  77. package/dist/plugins/cache-plugin.d.ts.map +1 -1
  78. package/dist/plugins/cache-plugin.js +27 -7
  79. package/dist/plugins/cache-plugin.js.map +1 -1
  80. package/dist/plugins/cache-plugin.test.js +96 -32
  81. package/dist/plugins/cache-plugin.test.js.map +1 -1
  82. package/dist/plugins/config-plugin.d.ts +3 -2
  83. package/dist/plugins/config-plugin.d.ts.map +1 -1
  84. package/dist/plugins/config-plugin.js +17 -10
  85. package/dist/plugins/config-plugin.js.map +1 -1
  86. package/dist/plugins/diagnostics-plugin.d.ts +2 -2
  87. package/dist/plugins/diagnostics-plugin.d.ts.map +1 -1
  88. package/dist/plugins/diagnostics-plugin.js +17 -10
  89. package/dist/plugins/diagnostics-plugin.js.map +1 -1
  90. package/dist/plugins/entitlements/entitlements-plugin.d.ts +95 -0
  91. package/dist/plugins/entitlements/entitlements-plugin.d.ts.map +1 -0
  92. package/dist/plugins/entitlements/entitlements-plugin.js +707 -0
  93. package/dist/plugins/entitlements/entitlements-plugin.js.map +1 -0
  94. package/dist/plugins/entitlements/index.d.ts +12 -0
  95. package/dist/plugins/entitlements/index.d.ts.map +1 -0
  96. package/dist/plugins/entitlements/index.js +16 -0
  97. package/dist/plugins/entitlements/index.js.map +1 -0
  98. package/dist/plugins/entitlements/sources/index.d.ts +9 -0
  99. package/dist/plugins/entitlements/sources/index.d.ts.map +1 -0
  100. package/dist/plugins/entitlements/sources/index.js +9 -0
  101. package/dist/plugins/entitlements/sources/index.js.map +1 -0
  102. package/dist/plugins/entitlements/sources/postgres-source.d.ts +29 -0
  103. package/dist/plugins/entitlements/sources/postgres-source.d.ts.map +1 -0
  104. package/dist/plugins/entitlements/sources/postgres-source.js +169 -0
  105. package/dist/plugins/entitlements/sources/postgres-source.js.map +1 -0
  106. package/dist/plugins/entitlements/types.d.ts +232 -0
  107. package/dist/plugins/entitlements/types.d.ts.map +1 -0
  108. package/dist/plugins/entitlements/types.js +11 -0
  109. package/dist/plugins/entitlements/types.js.map +1 -0
  110. package/dist/plugins/frontend-app-plugin.d.ts +9 -3
  111. package/dist/plugins/frontend-app-plugin.d.ts.map +1 -1
  112. package/dist/plugins/frontend-app-plugin.js +14 -9
  113. package/dist/plugins/frontend-app-plugin.js.map +1 -1
  114. package/dist/plugins/health-plugin.d.ts +5 -2
  115. package/dist/plugins/health-plugin.d.ts.map +1 -1
  116. package/dist/plugins/health-plugin.js +20 -5
  117. package/dist/plugins/health-plugin.js.map +1 -1
  118. package/dist/plugins/index.d.ts +8 -2
  119. package/dist/plugins/index.d.ts.map +1 -1
  120. package/dist/plugins/index.js +8 -2
  121. package/dist/plugins/index.js.map +1 -1
  122. package/dist/plugins/logs-plugin.d.ts +3 -2
  123. package/dist/plugins/logs-plugin.d.ts.map +1 -1
  124. package/dist/plugins/logs-plugin.js +21 -12
  125. package/dist/plugins/logs-plugin.js.map +1 -1
  126. package/dist/plugins/postgres-plugin.d.ts +3 -3
  127. package/dist/plugins/postgres-plugin.d.ts.map +1 -1
  128. package/dist/plugins/postgres-plugin.js +9 -7
  129. package/dist/plugins/postgres-plugin.js.map +1 -1
  130. package/dist/plugins/postgres-plugin.test.js +47 -29
  131. package/dist/plugins/postgres-plugin.test.js.map +1 -1
  132. package/dist/plugins/users/index.d.ts +12 -0
  133. package/dist/plugins/users/index.d.ts.map +1 -0
  134. package/dist/plugins/users/index.js +13 -0
  135. package/dist/plugins/users/index.js.map +1 -0
  136. package/dist/plugins/users/stores/index.d.ts +7 -0
  137. package/dist/plugins/users/stores/index.d.ts.map +1 -0
  138. package/dist/plugins/users/stores/index.js +7 -0
  139. package/dist/plugins/users/stores/index.js.map +1 -0
  140. package/dist/plugins/users/stores/postgres-store.d.ts +28 -0
  141. package/dist/plugins/users/stores/postgres-store.d.ts.map +1 -0
  142. package/dist/plugins/users/stores/postgres-store.js +157 -0
  143. package/dist/plugins/users/stores/postgres-store.js.map +1 -0
  144. package/dist/plugins/users/types.d.ts +189 -0
  145. package/dist/plugins/users/types.d.ts.map +1 -0
  146. package/dist/plugins/users/types.js +12 -0
  147. package/dist/plugins/users/types.js.map +1 -0
  148. package/dist/plugins/users/users-plugin.d.ts +39 -0
  149. package/dist/plugins/users/users-plugin.d.ts.map +1 -0
  150. package/dist/plugins/users/users-plugin.js +242 -0
  151. package/dist/plugins/users/users-plugin.js.map +1 -0
  152. package/dist-ui/assets/index-Bsp2ntcw.js +465 -0
  153. package/dist-ui/assets/index-Bsp2ntcw.js.map +1 -0
  154. package/dist-ui/index.html +1 -1
  155. package/dist-ui-lib/api/controlPanelApi.d.ts +232 -0
  156. package/dist-ui-lib/components/ControlPanelApp.d.ts +61 -0
  157. package/dist-ui-lib/components/index.d.ts +18 -0
  158. package/dist-ui-lib/config/AppConfig.d.ts +7 -0
  159. package/dist-ui-lib/dashboard/DashboardWidgetRegistry.d.ts +62 -0
  160. package/dist-ui-lib/dashboard/DashboardWidgetRenderer.d.ts +8 -0
  161. package/dist-ui-lib/dashboard/PluginWidgetRenderer.d.ts +19 -0
  162. package/dist-ui-lib/dashboard/WidgetComponentRegistry.d.ts +44 -0
  163. package/dist-ui-lib/dashboard/builtInWidgets.d.ts +19 -0
  164. package/dist-ui-lib/dashboard/index.d.ts +13 -0
  165. package/dist-ui-lib/dashboard/widgets/ServiceHealthWidget.d.ts +12 -0
  166. package/dist-ui-lib/dashboard/widgets/index.d.ts +6 -0
  167. package/dist-ui-lib/index.js +6441 -0
  168. package/dist-ui-lib/index.js.map +1 -0
  169. package/dist-ui-lib/pages/ConfigPage.d.ts +1 -0
  170. package/dist-ui-lib/pages/DashboardPage.d.ts +1 -0
  171. package/dist-ui-lib/pages/DiagnosticsPage.d.ts +1 -0
  172. package/dist-ui-lib/pages/EntitlementsPage.d.ts +17 -0
  173. package/dist-ui-lib/pages/LogsPage.d.ts +1 -0
  174. package/dist-ui-lib/pages/NotFoundPage.d.ts +1 -0
  175. package/dist-ui-lib/pages/PluginPage.d.ts +15 -0
  176. package/dist-ui-lib/pages/SystemPage.d.ts +1 -0
  177. package/dist-ui-lib/pages/UsersPage.d.ts +22 -0
  178. package/package.json +18 -6
  179. package/src/core/control-panel.ts +114 -61
  180. package/src/core/gateway.ts +863 -403
  181. package/src/core/index.ts +21 -2
  182. package/src/core/plugin-registry.ts +653 -0
  183. package/src/core/types.ts +31 -37
  184. package/src/index.ts +118 -19
  185. package/src/plugins/auth/adapters/auth0-adapter.ts +214 -0
  186. package/src/plugins/auth/adapters/basic-adapter.ts +61 -0
  187. package/src/plugins/auth/adapters/index.ts +9 -0
  188. package/src/plugins/auth/adapters/supabase-adapter.ts +141 -0
  189. package/src/plugins/auth/auth-plugin.test.ts +176 -0
  190. package/src/plugins/auth/auth-plugin.ts +303 -0
  191. package/src/plugins/auth/index.ts +33 -0
  192. package/src/plugins/auth/types.ts +165 -0
  193. package/src/plugins/bans/bans-plugin.ts +485 -0
  194. package/src/plugins/bans/index.ts +31 -0
  195. package/src/plugins/bans/stores/index.ts +7 -0
  196. package/src/plugins/bans/stores/postgres-store.ts +195 -0
  197. package/src/plugins/bans/types.ts +141 -0
  198. package/src/plugins/cache-plugin.test.ts +105 -32
  199. package/src/plugins/cache-plugin.ts +40 -9
  200. package/src/plugins/config-plugin.ts +23 -12
  201. package/src/plugins/diagnostics-plugin.ts +22 -12
  202. package/src/plugins/entitlements/entitlements-plugin.ts +820 -0
  203. package/src/plugins/entitlements/index.ts +51 -0
  204. package/src/plugins/entitlements/sources/index.ts +9 -0
  205. package/src/plugins/entitlements/sources/postgres-source.ts +253 -0
  206. package/src/plugins/entitlements/types.ts +256 -0
  207. package/src/plugins/frontend-app-plugin.ts +24 -12
  208. package/src/plugins/health-plugin.ts +27 -7
  209. package/src/plugins/index.ts +106 -4
  210. package/src/plugins/logs-plugin.ts +28 -14
  211. package/src/plugins/postgres-plugin.test.ts +49 -29
  212. package/src/plugins/postgres-plugin.ts +11 -9
  213. package/src/plugins/users/index.ts +35 -0
  214. package/src/plugins/users/stores/index.ts +7 -0
  215. package/src/plugins/users/stores/postgres-store.ts +225 -0
  216. package/src/plugins/users/types.ts +209 -0
  217. package/src/plugins/users/users-plugin.ts +281 -0
  218. package/ui/src/App.tsx +185 -31
  219. package/ui/src/api/controlPanelApi.ts +354 -1
  220. package/ui/src/components/ControlPanelApp.tsx +209 -0
  221. package/ui/src/components/index.ts +62 -0
  222. package/ui/src/dashboard/DashboardWidgetRegistry.tsx +129 -0
  223. package/ui/src/dashboard/DashboardWidgetRenderer.tsx +34 -0
  224. package/ui/src/dashboard/PluginWidgetRenderer.tsx +115 -0
  225. package/ui/src/dashboard/WidgetComponentRegistry.tsx +116 -0
  226. package/ui/src/dashboard/builtInWidgets.tsx +29 -0
  227. package/ui/src/dashboard/index.ts +35 -0
  228. package/ui/src/dashboard/widgets/ServiceHealthWidget.tsx +140 -0
  229. package/ui/src/dashboard/widgets/index.ts +7 -0
  230. package/ui/src/pages/DashboardPage.tsx +28 -149
  231. package/ui/src/pages/EntitlementsPage.tsx +557 -0
  232. package/ui/src/pages/LogsPage.tsx +174 -8
  233. package/ui/src/pages/PluginPage.tsx +148 -0
  234. package/ui/src/pages/SystemPage.tsx +445 -0
  235. package/ui/src/pages/UsersPage.tsx +837 -0
  236. package/ui/tsconfig.lib.json +11 -0
  237. package/ui/vite.lib.config.ts +51 -0
  238. package/dist-ui/assets/index-CW1BviRn.js +0 -465
  239. package/dist-ui/assets/index-CW1BviRn.js.map +0 -1
  240. package/ui/src/pages/HealthPage.tsx +0 -204
@@ -0,0 +1,465 @@
1
+ var s4=Object.defineProperty;var l4=(t,e,r)=>e in t?s4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var hs=(t,e,r)=>l4(t,typeof e!="symbol"?e+"":e,r);function c4(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in t)){const s=Object.getOwnPropertyDescriptor(n,o);s&&Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();var H1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Of(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var sg={exports:{}},Vc={},lg={exports:{}},Bt={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var U1;function u4(){if(U1)return Bt;U1=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.iterator;function g(X){return X===null||typeof X!="object"?null:(X=v&&X[v]||X["@@iterator"],typeof X=="function"?X:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function C(X,re,ce){this.props=X,this.context=re,this.refs=x,this.updater=ce||y}C.prototype.isReactComponent={},C.prototype.setState=function(X,re){if(typeof X!="object"&&typeof X!="function"&&X!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,X,re,"setState")},C.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")};function R(){}R.prototype=C.prototype;function P(X,re,ce){this.props=X,this.context=re,this.refs=x,this.updater=ce||y}var M=P.prototype=new R;M.constructor=P,w(M,C.prototype),M.isPureReactComponent=!0;var E=Array.isArray,I=Object.prototype.hasOwnProperty,A={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function j(X,re,ce){var Y,ne={},J=null,de=null;if(re!=null)for(Y in re.ref!==void 0&&(de=re.ref),re.key!==void 0&&(J=""+re.key),re)I.call(re,Y)&&!F.hasOwnProperty(Y)&&(ne[Y]=re[Y]);var Ce=arguments.length-2;if(Ce===1)ne.children=ce;else if(1<Ce){for(var he=Array(Ce),se=0;se<Ce;se++)he[se]=arguments[se+2];ne.children=he}if(X&&X.defaultProps)for(Y in Ce=X.defaultProps,Ce)ne[Y]===void 0&&(ne[Y]=Ce[Y]);return{$$typeof:t,type:X,key:J,ref:de,props:ne,_owner:A.current}}function H(X,re){return{$$typeof:t,type:X.type,key:re,ref:X.ref,props:X.props,_owner:X._owner}}function G(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function N(X){var re={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(ce){return re[ce]})}var k=/\/+/g;function q(X,re){return typeof X=="object"&&X!==null&&X.key!=null?N(""+X.key):re.toString(36)}function U(X,re,ce,Y,ne){var J=typeof X;(J==="undefined"||J==="boolean")&&(X=null);var de=!1;if(X===null)de=!0;else switch(J){case"string":case"number":de=!0;break;case"object":switch(X.$$typeof){case t:case e:de=!0}}if(de)return de=X,ne=ne(de),X=Y===""?"."+q(de,0):Y,E(ne)?(ce="",X!=null&&(ce=X.replace(k,"$&/")+"/"),U(ne,re,ce,"",function(se){return se})):ne!=null&&(G(ne)&&(ne=H(ne,ce+(!ne.key||de&&de.key===ne.key?"":(""+ne.key).replace(k,"$&/")+"/")+X)),re.push(ne)),1;if(de=0,Y=Y===""?".":Y+":",E(X))for(var Ce=0;Ce<X.length;Ce++){J=X[Ce];var he=Y+q(J,Ce);de+=U(J,re,ce,he,ne)}else if(he=g(X),typeof he=="function")for(X=he.call(X),Ce=0;!(J=X.next()).done;)J=J.value,he=Y+q(J,Ce++),de+=U(J,re,ce,he,ne);else if(J==="object")throw re=String(X),Error("Objects are not valid as a React child (found: "+(re==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":re)+"). If you meant to render a collection of children, use an array instead.");return de}function L(X,re,ce){if(X==null)return X;var Y=[],ne=0;return U(X,Y,"","",function(J){return re.call(ce,J,ne++)}),Y}function W(X){if(X._status===-1){var re=X._result;re=re(),re.then(function(ce){(X._status===0||X._status===-1)&&(X._status=1,X._result=ce)},function(ce){(X._status===0||X._status===-1)&&(X._status=2,X._result=ce)}),X._status===-1&&(X._status=0,X._result=re)}if(X._status===1)return X._result.default;throw X._result}var K={current:null},ee={transition:null},Z={ReactCurrentDispatcher:K,ReactCurrentBatchConfig:ee,ReactCurrentOwner:A};function Q(){throw Error("act(...) is not supported in production builds of React.")}return Bt.Children={map:L,forEach:function(X,re,ce){L(X,function(){re.apply(this,arguments)},ce)},count:function(X){var re=0;return L(X,function(){re++}),re},toArray:function(X){return L(X,function(re){return re})||[]},only:function(X){if(!G(X))throw Error("React.Children.only expected to receive a single React element child.");return X}},Bt.Component=C,Bt.Fragment=r,Bt.Profiler=o,Bt.PureComponent=P,Bt.StrictMode=n,Bt.Suspense=u,Bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,Bt.act=Q,Bt.cloneElement=function(X,re,ce){if(X==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+X+".");var Y=w({},X.props),ne=X.key,J=X.ref,de=X._owner;if(re!=null){if(re.ref!==void 0&&(J=re.ref,de=A.current),re.key!==void 0&&(ne=""+re.key),X.type&&X.type.defaultProps)var Ce=X.type.defaultProps;for(he in re)I.call(re,he)&&!F.hasOwnProperty(he)&&(Y[he]=re[he]===void 0&&Ce!==void 0?Ce[he]:re[he])}var he=arguments.length-2;if(he===1)Y.children=ce;else if(1<he){Ce=Array(he);for(var se=0;se<he;se++)Ce[se]=arguments[se+2];Y.children=Ce}return{$$typeof:t,type:X.type,key:ne,ref:J,props:Y,_owner:de}},Bt.createContext=function(X){return X={$$typeof:l,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},X.Provider={$$typeof:s,_context:X},X.Consumer=X},Bt.createElement=j,Bt.createFactory=function(X){var re=j.bind(null,X);return re.type=X,re},Bt.createRef=function(){return{current:null}},Bt.forwardRef=function(X){return{$$typeof:c,render:X}},Bt.isValidElement=G,Bt.lazy=function(X){return{$$typeof:h,_payload:{_status:-1,_result:X},_init:W}},Bt.memo=function(X,re){return{$$typeof:f,type:X,compare:re===void 0?null:re}},Bt.startTransition=function(X){var re=ee.transition;ee.transition={};try{X()}finally{ee.transition=re}},Bt.unstable_act=Q,Bt.useCallback=function(X,re){return K.current.useCallback(X,re)},Bt.useContext=function(X){return K.current.useContext(X)},Bt.useDebugValue=function(){},Bt.useDeferredValue=function(X){return K.current.useDeferredValue(X)},Bt.useEffect=function(X,re){return K.current.useEffect(X,re)},Bt.useId=function(){return K.current.useId()},Bt.useImperativeHandle=function(X,re,ce){return K.current.useImperativeHandle(X,re,ce)},Bt.useInsertionEffect=function(X,re){return K.current.useInsertionEffect(X,re)},Bt.useLayoutEffect=function(X,re){return K.current.useLayoutEffect(X,re)},Bt.useMemo=function(X,re){return K.current.useMemo(X,re)},Bt.useReducer=function(X,re,ce){return K.current.useReducer(X,re,ce)},Bt.useRef=function(X){return K.current.useRef(X)},Bt.useState=function(X){return K.current.useState(X)},Bt.useSyncExternalStore=function(X,re,ce){return K.current.useSyncExternalStore(X,re,ce)},Bt.useTransition=function(){return K.current.useTransition()},Bt.version="18.3.1",Bt}var V1;function Qy(){return V1||(V1=1,lg.exports=u4()),lg.exports}/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var W1;function d4(){if(W1)return Vc;W1=1;var t=Qy(),e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(c,u,f){var h,v={},g=null,y=null;f!==void 0&&(g=""+f),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(y=u.ref);for(h in u)n.call(u,h)&&!s.hasOwnProperty(h)&&(v[h]=u[h]);if(c&&c.defaultProps)for(h in u=c.defaultProps,u)v[h]===void 0&&(v[h]=u[h]);return{$$typeof:e,type:c,key:g,ref:y,props:v,_owner:o.current}}return Vc.Fragment=r,Vc.jsx=l,Vc.jsxs=l,Vc}var q1;function p4(){return q1||(q1=1,sg.exports=d4()),sg.exports}var p=p4(),S=Qy();const Mt=Of(S),Cu=c4({__proto__:null,default:Mt},[S]);var xp={},cg={exports:{}},Fn={},ug={exports:{}},dg={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var G1;function f4(){return G1||(G1=1,(function(t){function e(ee,Z){var Q=ee.length;ee.push(Z);e:for(;0<Q;){var X=Q-1>>>1,re=ee[X];if(0<o(re,Z))ee[X]=Z,ee[Q]=re,Q=X;else break e}}function r(ee){return ee.length===0?null:ee[0]}function n(ee){if(ee.length===0)return null;var Z=ee[0],Q=ee.pop();if(Q!==Z){ee[0]=Q;e:for(var X=0,re=ee.length,ce=re>>>1;X<ce;){var Y=2*(X+1)-1,ne=ee[Y],J=Y+1,de=ee[J];if(0>o(ne,Q))J<re&&0>o(de,ne)?(ee[X]=de,ee[J]=Q,X=J):(ee[X]=ne,ee[Y]=Q,X=Y);else if(J<re&&0>o(de,Q))ee[X]=de,ee[J]=Q,X=J;else break e}}return Z}function o(ee,Z){var Q=ee.sortIndex-Z.sortIndex;return Q!==0?Q:ee.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var u=[],f=[],h=1,v=null,g=3,y=!1,w=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(ee){for(var Z=r(f);Z!==null;){if(Z.callback===null)n(f);else if(Z.startTime<=ee)n(f),Z.sortIndex=Z.expirationTime,e(u,Z);else break;Z=r(f)}}function E(ee){if(x=!1,M(ee),!w)if(r(u)!==null)w=!0,W(I);else{var Z=r(f);Z!==null&&K(E,Z.startTime-ee)}}function I(ee,Z){w=!1,x&&(x=!1,R(j),j=-1),y=!0;var Q=g;try{for(M(Z),v=r(u);v!==null&&(!(v.expirationTime>Z)||ee&&!N());){var X=v.callback;if(typeof X=="function"){v.callback=null,g=v.priorityLevel;var re=X(v.expirationTime<=Z);Z=t.unstable_now(),typeof re=="function"?v.callback=re:v===r(u)&&n(u),M(Z)}else n(u);v=r(u)}if(v!==null)var ce=!0;else{var Y=r(f);Y!==null&&K(E,Y.startTime-Z),ce=!1}return ce}finally{v=null,g=Q,y=!1}}var A=!1,F=null,j=-1,H=5,G=-1;function N(){return!(t.unstable_now()-G<H)}function k(){if(F!==null){var ee=t.unstable_now();G=ee;var Z=!0;try{Z=F(!0,ee)}finally{Z?q():(A=!1,F=null)}}else A=!1}var q;if(typeof P=="function")q=function(){P(k)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,L=U.port2;U.port1.onmessage=k,q=function(){L.postMessage(null)}}else q=function(){C(k,0)};function W(ee){F=ee,A||(A=!0,q())}function K(ee,Z){j=C(function(){ee(t.unstable_now())},Z)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(ee){ee.callback=null},t.unstable_continueExecution=function(){w||y||(w=!0,W(I))},t.unstable_forceFrameRate=function(ee){0>ee||125<ee?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<ee?Math.floor(1e3/ee):5},t.unstable_getCurrentPriorityLevel=function(){return g},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(ee){switch(g){case 1:case 2:case 3:var Z=3;break;default:Z=g}var Q=g;g=Z;try{return ee()}finally{g=Q}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(ee,Z){switch(ee){case 1:case 2:case 3:case 4:case 5:break;default:ee=3}var Q=g;g=ee;try{return Z()}finally{g=Q}},t.unstable_scheduleCallback=function(ee,Z,Q){var X=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?X+Q:X):Q=X,ee){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=Q+re,ee={id:h++,callback:Z,priorityLevel:ee,startTime:Q,expirationTime:re,sortIndex:-1},Q>X?(ee.sortIndex=Q,e(f,ee),r(u)===null&&ee===r(f)&&(x?(R(j),j=-1):x=!0,K(E,Q-X))):(ee.sortIndex=re,e(u,ee),w||y||(w=!0,W(I))),ee},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(ee){var Z=g;return function(){var Q=g;g=Z;try{return ee.apply(this,arguments)}finally{g=Q}}}})(dg)),dg}var X1;function h4(){return X1||(X1=1,ug.exports=f4()),ug.exports}/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var K1;function m4(){if(K1)return Fn;K1=1;var t=Qy(),e=h4();function r(i){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+i,d=1;d<arguments.length;d++)a+="&args[]="+encodeURIComponent(arguments[d]);return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,o={};function s(i,a){l(i,a),l(i+"Capture",a)}function l(i,a){for(o[i]=a,i=0;i<a.length;i++)n.add(a[i])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,f=/^[: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]*$/,h={},v={};function g(i){return u.call(v,i)?!0:u.call(h,i)?!1:f.test(i)?v[i]=!0:(h[i]=!0,!1)}function y(i,a,d,m){if(d!==null&&d.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return m?!1:d!==null?!d.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function w(i,a,d,m){if(a===null||typeof a>"u"||y(i,a,d,m))return!0;if(m)return!1;if(d!==null)switch(d.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function x(i,a,d,m,b,T,O){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=m,this.attributeNamespace=b,this.mustUseProperty=d,this.propertyName=i,this.type=a,this.sanitizeURL=T,this.removeEmptyString=O}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){C[i]=new x(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var a=i[0];C[a]=new x(a,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){C[i]=new x(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){C[i]=new x(i,2,!1,i,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(i){C[i]=new x(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){C[i]=new x(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){C[i]=new x(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){C[i]=new x(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){C[i]=new x(i,5,!1,i.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function P(i){return i[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(i){var a=i.replace(R,P);C[a]=new x(a,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var a=i.replace(R,P);C[a]=new x(a,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var a=i.replace(R,P);C[a]=new x(a,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){C[i]=new x(i,1,!1,i.toLowerCase(),null,!1,!1)}),C.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){C[i]=new x(i,1,!1,i.toLowerCase(),null,!0,!0)});function M(i,a,d,m){var b=C.hasOwnProperty(a)?C[a]:null;(b!==null?b.type!==0:m||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(w(a,d,b,m)&&(d=null),m||b===null?g(a)&&(d===null?i.removeAttribute(a):i.setAttribute(a,""+d)):b.mustUseProperty?i[b.propertyName]=d===null?b.type===3?!1:"":d:(a=b.attributeName,m=b.attributeNamespace,d===null?i.removeAttribute(a):(b=b.type,d=b===3||b===4&&d===!0?"":""+d,m?i.setAttributeNS(m,a,d):i.setAttribute(a,d))))}var E=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,I=Symbol.for("react.element"),A=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),G=Symbol.for("react.provider"),N=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),ee=Symbol.iterator;function Z(i){return i===null||typeof i!="object"?null:(i=ee&&i[ee]||i["@@iterator"],typeof i=="function"?i:null)}var Q=Object.assign,X;function re(i){if(X===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);X=a&&a[1]||""}return`
34
+ `+X+i}var ce=!1;function Y(i,a){if(!i||ce)return"";ce=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(ye){var m=ye}Reflect.construct(i,[],a)}else{try{a.call()}catch(ye){m=ye}i.call(a.prototype)}else{try{throw Error()}catch(ye){m=ye}i()}}catch(ye){if(ye&&m&&typeof ye.stack=="string"){for(var b=ye.stack.split(`
35
+ `),T=m.stack.split(`
36
+ `),O=b.length-1,te=T.length-1;1<=O&&0<=te&&b[O]!==T[te];)te--;for(;1<=O&&0<=te;O--,te--)if(b[O]!==T[te]){if(O!==1||te!==1)do if(O--,te--,0>te||b[O]!==T[te]){var ae=`
37
+ `+b[O].replace(" at new "," at ");return i.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",i.displayName)),ae}while(1<=O&&0<=te);break}}}finally{ce=!1,Error.prepareStackTrace=d}return(i=i?i.displayName||i.name:"")?re(i):""}function ne(i){switch(i.tag){case 5:return re(i.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return i=Y(i.type,!1),i;case 11:return i=Y(i.type.render,!1),i;case 1:return i=Y(i.type,!0),i;default:return""}}function J(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case F:return"Fragment";case A:return"Portal";case H:return"Profiler";case j:return"StrictMode";case q:return"Suspense";case U:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case N:return(i.displayName||"Context")+".Consumer";case G:return(i._context.displayName||"Context")+".Provider";case k:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case L:return a=i.displayName||null,a!==null?a:J(i.type)||"Memo";case W:a=i._payload,i=i._init;try{return J(i(a))}catch{}}return null}function de(i){var a=i.type;switch(i.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=a.render,i=i.displayName||i.name||"",a.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return J(a);case 8:return a===j?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function Ce(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function he(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function se(i){var a=he(i)?"checked":"value",d=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),m=""+i[a];if(!i.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var b=d.get,T=d.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return b.call(this)},set:function(O){m=""+O,T.call(this,O)}}),Object.defineProperty(i,a,{enumerable:d.enumerable}),{getValue:function(){return m},setValue:function(O){m=""+O},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function De(i){i._valueTracker||(i._valueTracker=se(i))}function Ne(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var d=a.getValue(),m="";return i&&(m=he(i)?i.checked?"true":"false":i.value),i=m,i!==d?(a.setValue(i),!0):!1}function Oe(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Be(i,a){var d=a.checked;return Q({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??i._wrapperState.initialChecked})}function _e(i,a){var d=a.defaultValue==null?"":a.defaultValue,m=a.checked!=null?a.checked:a.defaultChecked;d=Ce(a.value!=null?a.value:d),i._wrapperState={initialChecked:m,initialValue:d,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function Ke(i,a){a=a.checked,a!=null&&M(i,"checked",a,!1)}function dt(i,a){Ke(i,a);var d=Ce(a.value),m=a.type;if(d!=null)m==="number"?(d===0&&i.value===""||i.value!=d)&&(i.value=""+d):i.value!==""+d&&(i.value=""+d);else if(m==="submit"||m==="reset"){i.removeAttribute("value");return}a.hasOwnProperty("value")?ft(i,a.type,d):a.hasOwnProperty("defaultValue")&&ft(i,a.type,Ce(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(i.defaultChecked=!!a.defaultChecked)}function ke(i,a,d){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var m=a.type;if(!(m!=="submit"&&m!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+i._wrapperState.initialValue,d||a===i.value||(i.value=a),i.defaultValue=a}d=i.name,d!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,d!==""&&(i.name=d)}function ft(i,a,d){(a!=="number"||Oe(i.ownerDocument)!==i)&&(d==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+d&&(i.defaultValue=""+d))}var We=Array.isArray;function pt(i,a,d,m){if(i=i.options,a){a={};for(var b=0;b<d.length;b++)a["$"+d[b]]=!0;for(d=0;d<i.length;d++)b=a.hasOwnProperty("$"+i[d].value),i[d].selected!==b&&(i[d].selected=b),b&&m&&(i[d].defaultSelected=!0)}else{for(d=""+Ce(d),a=null,b=0;b<i.length;b++){if(i[b].value===d){i[b].selected=!0,m&&(i[b].defaultSelected=!0);return}a!==null||i[b].disabled||(a=i[b])}a!==null&&(a.selected=!0)}}function Ue(i,a){if(a.dangerouslySetInnerHTML!=null)throw Error(r(91));return Q({},a,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Wt(i,a){var d=a.value;if(d==null){if(d=a.children,a=a.defaultValue,d!=null){if(a!=null)throw Error(r(92));if(We(d)){if(1<d.length)throw Error(r(93));d=d[0]}a=d}a==null&&(a=""),d=a}i._wrapperState={initialValue:Ce(d)}}function Tt(i,a){var d=Ce(a.value),m=Ce(a.defaultValue);d!=null&&(d=""+d,d!==i.value&&(i.value=d),a.defaultValue==null&&i.defaultValue!==d&&(i.defaultValue=d)),m!=null&&(i.defaultValue=""+m)}function ue(i){var a=i.textContent;a===i._wrapperState.initialValue&&a!==""&&a!==null&&(i.value=a)}function ve(i){switch(i){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 Te(i,a){return i==null||i==="http://www.w3.org/1999/xhtml"?ve(a):i==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var Pe,Ve=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,d,m,b){MSApp.execUnsafeLocalFunction(function(){return i(a,d,m,b)})}:i})(function(i,a){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=a;else{for(Pe=Pe||document.createElement("div"),Pe.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=Pe.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;a.firstChild;)i.appendChild(a.firstChild)}});function Qe(i,a){if(a){var d=i.firstChild;if(d&&d===i.lastChild&&d.nodeType===3){d.nodeValue=a;return}}i.textContent=a}var oe={animationIterationCount:!0,aspectRatio:!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},Ee=["Webkit","ms","Moz","O"];Object.keys(oe).forEach(function(i){Ee.forEach(function(a){a=a+i.charAt(0).toUpperCase()+i.substring(1),oe[a]=oe[i]})});function $e(i,a,d){return a==null||typeof a=="boolean"||a===""?"":d||typeof a!="number"||a===0||oe.hasOwnProperty(i)&&oe[i]?(""+a).trim():a+"px"}function Fe(i,a){i=i.style;for(var d in a)if(a.hasOwnProperty(d)){var m=d.indexOf("--")===0,b=$e(d,a[d],m);d==="float"&&(d="cssFloat"),m?i.setProperty(d,b):i[d]=b}}var xt=Q({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 qt(i,a){if(a){if(xt[i]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(r(137,i));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(r(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(r(61))}if(a.style!=null&&typeof a.style!="object")throw Error(r(62))}}function ur(i,a){if(i.indexOf("-")===-1)return typeof a.is=="string";switch(i){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}}var Dr=null;function nn(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var fn=null,et=null,St=null;function Ut(i){if(i=Mc(i)){if(typeof fn!="function")throw Error(r(280));var a=i.stateNode;a&&(a=Od(a),fn(i.stateNode,i.type,a))}}function vr(i){et?St?St.push(i):St=[i]:et=i}function Fr(){if(et){var i=et,a=St;if(St=et=null,Ut(i),a)for(i=0;i<a.length;i++)Ut(a[i])}}function En(i,a){return i(a)}function Ct(){}var dr=!1;function qe(i,a,d){if(dr)return i(a,d);dr=!0;try{return En(i,a,d)}finally{dr=!1,(et!==null||St!==null)&&(Ct(),Fr())}}function ot(i,a){var d=i.stateNode;if(d===null)return null;var m=Od(d);if(m===null)return null;d=m[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(i=i.type,m=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!m;break e;default:i=!1}if(i)return null;if(d&&typeof d!="function")throw Error(r(231,a,typeof d));return d}var Rt=!1;if(c)try{var It={};Object.defineProperty(It,"passive",{get:function(){Rt=!0}}),window.addEventListener("test",It,It),window.removeEventListener("test",It,It)}catch{Rt=!1}function Kt(i,a,d,m,b,T,O,te,ae){var ye=Array.prototype.slice.call(arguments,3);try{a.apply(d,ye)}catch(Ae){this.onError(Ae)}}var jr=!1,hn=null,On=!1,ci=null,Fo={onError:function(i){jr=!0,hn=i}};function kr(i,a,d,m,b,T,O,te,ae){jr=!1,hn=null,Kt.apply(Fo,arguments)}function _r(i,a,d,m,b,T,O,te,ae){if(kr.apply(this,arguments),jr){if(jr){var ye=hn;jr=!1,hn=null}else throw Error(r(198));On||(On=!0,ci=ye)}}function mn(i){var a=i,d=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(d=a.return),i=a.return;while(i)}return a.tag===3?d:null}function Us(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function la(i){if(mn(i)!==i)throw Error(r(188))}function Vs(i){var a=i.alternate;if(!a){if(a=mn(i),a===null)throw Error(r(188));return a!==i?null:i}for(var d=i,m=a;;){var b=d.return;if(b===null)break;var T=b.alternate;if(T===null){if(m=b.return,m!==null){d=m;continue}break}if(b.child===T.child){for(T=b.child;T;){if(T===d)return la(b),i;if(T===m)return la(b),a;T=T.sibling}throw Error(r(188))}if(d.return!==m.return)d=b,m=T;else{for(var O=!1,te=b.child;te;){if(te===d){O=!0,d=b,m=T;break}if(te===m){O=!0,m=b,d=T;break}te=te.sibling}if(!O){for(te=T.child;te;){if(te===d){O=!0,d=T,m=b;break}if(te===m){O=!0,m=T,d=b;break}te=te.sibling}if(!O)throw Error(r(189))}}if(d.alternate!==m)throw Error(r(190))}if(d.tag!==3)throw Error(r(188));return d.stateNode.current===d?i:a}function we(i){return i=Vs(i),i!==null?xe(i):null}function xe(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var a=xe(i);if(a!==null)return a;i=i.sibling}return null}var tt=e.unstable_scheduleCallback,wt=e.unstable_cancelCallback,Pt=e.unstable_shouldYield,Lr=e.unstable_requestPaint,At=e.unstable_now,oo=e.unstable_getCurrentPriorityLevel,ca=e.unstable_ImmediatePriority,uc=e.unstable_UserBlockingPriority,$i=e.unstable_NormalPriority,Ws=e.unstable_LowPriority,Ft=e.unstable_IdlePriority,io=null,Hr=null;function ts(i){if(Hr&&typeof Hr.onCommitFiberRoot=="function")try{Hr.onCommitFiberRoot(io,i,void 0,(i.current.flags&128)===128)}catch{}}var Ho=Math.clz32?Math.clz32:Ek,Ck=Math.log,Tk=Math.LN2;function Ek(i){return i>>>=0,i===0?32:31-(Ck(i)/Tk|0)|0}var yd=64,vd=4194304;function dc(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function bd(i,a){var d=i.pendingLanes;if(d===0)return 0;var m=0,b=i.suspendedLanes,T=i.pingedLanes,O=d&268435455;if(O!==0){var te=O&~b;te!==0?m=dc(te):(T&=O,T!==0&&(m=dc(T)))}else O=d&~b,O!==0?m=dc(O):T!==0&&(m=dc(T));if(m===0)return 0;if(a!==0&&a!==m&&(a&b)===0&&(b=m&-m,T=a&-a,b>=T||b===16&&(T&4194240)!==0))return a;if((m&4)!==0&&(m|=d&16),a=i.entangledLanes,a!==0)for(i=i.entanglements,a&=m;0<a;)d=31-Ho(a),b=1<<d,m|=i[d],a&=~b;return m}function kk(i,a){switch(i){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pk(i,a){for(var d=i.suspendedLanes,m=i.pingedLanes,b=i.expirationTimes,T=i.pendingLanes;0<T;){var O=31-Ho(T),te=1<<O,ae=b[O];ae===-1?((te&d)===0||(te&m)!==0)&&(b[O]=kk(te,a)):ae<=a&&(i.expiredLanes|=te),T&=~te}}function Rh(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function bv(){var i=yd;return yd<<=1,(yd&4194240)===0&&(yd=64),i}function Mh(i){for(var a=[],d=0;31>d;d++)a.push(i);return a}function pc(i,a,d){i.pendingLanes|=a,a!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,a=31-Ho(a),i[a]=d}function Rk(i,a){var d=i.pendingLanes&~a;i.pendingLanes=a,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=a,i.mutableReadLanes&=a,i.entangledLanes&=a,a=i.entanglements;var m=i.eventTimes;for(i=i.expirationTimes;0<d;){var b=31-Ho(d),T=1<<b;a[b]=0,m[b]=-1,i[b]=-1,d&=~T}}function Ih(i,a){var d=i.entangledLanes|=a;for(i=i.entanglements;d;){var m=31-Ho(d),b=1<<m;b&a|i[m]&a&&(i[m]|=a),d&=~b}}var er=0;function xv(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var wv,Ah,Sv,Cv,Tv,jh=!1,xd=[],ua=null,da=null,pa=null,fc=new Map,hc=new Map,fa=[],Mk="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 Ev(i,a){switch(i){case"focusin":case"focusout":ua=null;break;case"dragenter":case"dragleave":da=null;break;case"mouseover":case"mouseout":pa=null;break;case"pointerover":case"pointerout":fc.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":hc.delete(a.pointerId)}}function mc(i,a,d,m,b,T){return i===null||i.nativeEvent!==T?(i={blockedOn:a,domEventName:d,eventSystemFlags:m,nativeEvent:T,targetContainers:[b]},a!==null&&(a=Mc(a),a!==null&&Ah(a)),i):(i.eventSystemFlags|=m,a=i.targetContainers,b!==null&&a.indexOf(b)===-1&&a.push(b),i)}function Ik(i,a,d,m,b){switch(a){case"focusin":return ua=mc(ua,i,a,d,m,b),!0;case"dragenter":return da=mc(da,i,a,d,m,b),!0;case"mouseover":return pa=mc(pa,i,a,d,m,b),!0;case"pointerover":var T=b.pointerId;return fc.set(T,mc(fc.get(T)||null,i,a,d,m,b)),!0;case"gotpointercapture":return T=b.pointerId,hc.set(T,mc(hc.get(T)||null,i,a,d,m,b)),!0}return!1}function kv(i){var a=rs(i.target);if(a!==null){var d=mn(a);if(d!==null){if(a=d.tag,a===13){if(a=Us(d),a!==null){i.blockedOn=a,Tv(i.priority,function(){Sv(d)});return}}else if(a===3&&d.stateNode.current.memoizedState.isDehydrated){i.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}i.blockedOn=null}function wd(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var d=Lh(i.domEventName,i.eventSystemFlags,a[0],i.nativeEvent);if(d===null){d=i.nativeEvent;var m=new d.constructor(d.type,d);Dr=m,d.target.dispatchEvent(m),Dr=null}else return a=Mc(d),a!==null&&Ah(a),i.blockedOn=d,!1;a.shift()}return!0}function Pv(i,a,d){wd(i)&&d.delete(a)}function Ak(){jh=!1,ua!==null&&wd(ua)&&(ua=null),da!==null&&wd(da)&&(da=null),pa!==null&&wd(pa)&&(pa=null),fc.forEach(Pv),hc.forEach(Pv)}function gc(i,a){i.blockedOn===a&&(i.blockedOn=null,jh||(jh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ak)))}function yc(i){function a(b){return gc(b,i)}if(0<xd.length){gc(xd[0],i);for(var d=1;d<xd.length;d++){var m=xd[d];m.blockedOn===i&&(m.blockedOn=null)}}for(ua!==null&&gc(ua,i),da!==null&&gc(da,i),pa!==null&&gc(pa,i),fc.forEach(a),hc.forEach(a),d=0;d<fa.length;d++)m=fa[d],m.blockedOn===i&&(m.blockedOn=null);for(;0<fa.length&&(d=fa[0],d.blockedOn===null);)kv(d),d.blockedOn===null&&fa.shift()}var qs=E.ReactCurrentBatchConfig,Sd=!0;function jk(i,a,d,m){var b=er,T=qs.transition;qs.transition=null;try{er=1,_h(i,a,d,m)}finally{er=b,qs.transition=T}}function _k(i,a,d,m){var b=er,T=qs.transition;qs.transition=null;try{er=4,_h(i,a,d,m)}finally{er=b,qs.transition=T}}function _h(i,a,d,m){if(Sd){var b=Lh(i,a,d,m);if(b===null)Yh(i,a,m,Cd,d),Ev(i,m);else if(Ik(b,i,a,d,m))m.stopPropagation();else if(Ev(i,m),a&4&&-1<Mk.indexOf(i)){for(;b!==null;){var T=Mc(b);if(T!==null&&wv(T),T=Lh(i,a,d,m),T===null&&Yh(i,a,m,Cd,d),T===b)break;b=T}b!==null&&m.stopPropagation()}else Yh(i,a,m,null,d)}}var Cd=null;function Lh(i,a,d,m){if(Cd=null,i=nn(m),i=rs(i),i!==null)if(a=mn(i),a===null)i=null;else if(d=a.tag,d===13){if(i=Us(a),i!==null)return i;i=null}else if(d===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null);return Cd=i,null}function Rv(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(oo()){case ca:return 1;case uc:return 4;case $i:case Ws:return 16;case Ft:return 536870912;default:return 16}default:return 16}}var ha=null,Oh=null,Td=null;function Mv(){if(Td)return Td;var i,a=Oh,d=a.length,m,b="value"in ha?ha.value:ha.textContent,T=b.length;for(i=0;i<d&&a[i]===b[i];i++);var O=d-i;for(m=1;m<=O&&a[d-m]===b[T-m];m++);return Td=b.slice(i,1<m?1-m:void 0)}function Ed(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function kd(){return!0}function Iv(){return!1}function ao(i){function a(d,m,b,T,O){this._reactName=d,this._targetInst=b,this.type=m,this.nativeEvent=T,this.target=O,this.currentTarget=null;for(var te in i)i.hasOwnProperty(te)&&(d=i[te],this[te]=d?d(T):T[te]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?kd:Iv,this.isPropagationStopped=Iv,this}return Q(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=kd)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=kd)},persist:function(){},isPersistent:kd}),a}var Gs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nh=ao(Gs),vc=Q({},Gs,{view:0,detail:0}),Lk=ao(vc),$h,Bh,bc,Pd=Q({},vc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dh,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==bc&&(bc&&i.type==="mousemove"?($h=i.screenX-bc.screenX,Bh=i.screenY-bc.screenY):Bh=$h=0,bc=i),$h)},movementY:function(i){return"movementY"in i?i.movementY:Bh}}),Av=ao(Pd),Ok=Q({},Pd,{dataTransfer:0}),Nk=ao(Ok),$k=Q({},vc,{relatedTarget:0}),zh=ao($k),Bk=Q({},Gs,{animationName:0,elapsedTime:0,pseudoElement:0}),zk=ao(Bk),Dk=Q({},Gs,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Fk=ao(Dk),Hk=Q({},Gs,{data:0}),jv=ao(Hk),Uk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vk={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"},Wk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qk(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=Wk[i])?!!a[i]:!1}function Dh(){return qk}var Gk=Q({},vc,{key:function(i){if(i.key){var a=Uk[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=Ed(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Vk[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dh,charCode:function(i){return i.type==="keypress"?Ed(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Ed(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Xk=ao(Gk),Kk=Q({},Pd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_v=ao(Kk),Qk=Q({},vc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dh}),Yk=ao(Qk),Jk=Q({},Gs,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zk=ao(Jk),eP=Q({},Pd,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),tP=ao(eP),rP=[9,13,27,32],Fh=c&&"CompositionEvent"in window,xc=null;c&&"documentMode"in document&&(xc=document.documentMode);var nP=c&&"TextEvent"in window&&!xc,Lv=c&&(!Fh||xc&&8<xc&&11>=xc),Ov=" ",Nv=!1;function $v(i,a){switch(i){case"keyup":return rP.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bv(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Xs=!1;function oP(i,a){switch(i){case"compositionend":return Bv(a);case"keypress":return a.which!==32?null:(Nv=!0,Ov);case"textInput":return i=a.data,i===Ov&&Nv?null:i;default:return null}}function iP(i,a){if(Xs)return i==="compositionend"||!Fh&&$v(i,a)?(i=Mv(),Td=Oh=ha=null,Xs=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Lv&&a.locale!=="ko"?null:a.data;default:return null}}var aP={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 zv(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!aP[i.type]:a==="textarea"}function Dv(i,a,d,m){vr(m),a=jd(a,"onChange"),0<a.length&&(d=new Nh("onChange","change",null,d,m),i.push({event:d,listeners:a}))}var wc=null,Sc=null;function sP(i){ob(i,0)}function Rd(i){var a=Zs(i);if(Ne(a))return i}function lP(i,a){if(i==="change")return a}var Fv=!1;if(c){var Hh;if(c){var Uh="oninput"in document;if(!Uh){var Hv=document.createElement("div");Hv.setAttribute("oninput","return;"),Uh=typeof Hv.oninput=="function"}Hh=Uh}else Hh=!1;Fv=Hh&&(!document.documentMode||9<document.documentMode)}function Uv(){wc&&(wc.detachEvent("onpropertychange",Vv),Sc=wc=null)}function Vv(i){if(i.propertyName==="value"&&Rd(Sc)){var a=[];Dv(a,Sc,i,nn(i)),qe(sP,a)}}function cP(i,a,d){i==="focusin"?(Uv(),wc=a,Sc=d,wc.attachEvent("onpropertychange",Vv)):i==="focusout"&&Uv()}function uP(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Rd(Sc)}function dP(i,a){if(i==="click")return Rd(a)}function pP(i,a){if(i==="input"||i==="change")return Rd(a)}function fP(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var Uo=typeof Object.is=="function"?Object.is:fP;function Cc(i,a){if(Uo(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var d=Object.keys(i),m=Object.keys(a);if(d.length!==m.length)return!1;for(m=0;m<d.length;m++){var b=d[m];if(!u.call(a,b)||!Uo(i[b],a[b]))return!1}return!0}function Wv(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function qv(i,a){var d=Wv(i);i=0;for(var m;d;){if(d.nodeType===3){if(m=i+d.textContent.length,i<=a&&m>=a)return{node:d,offset:a-i};i=m}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=Wv(d)}}function Gv(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?Gv(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function Xv(){for(var i=window,a=Oe();a instanceof i.HTMLIFrameElement;){try{var d=typeof a.contentWindow.location.href=="string"}catch{d=!1}if(d)i=a.contentWindow;else break;a=Oe(i.document)}return a}function Vh(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}function hP(i){var a=Xv(),d=i.focusedElem,m=i.selectionRange;if(a!==d&&d&&d.ownerDocument&&Gv(d.ownerDocument.documentElement,d)){if(m!==null&&Vh(d)){if(a=m.start,i=m.end,i===void 0&&(i=a),"selectionStart"in d)d.selectionStart=a,d.selectionEnd=Math.min(i,d.value.length);else if(i=(a=d.ownerDocument||document)&&a.defaultView||window,i.getSelection){i=i.getSelection();var b=d.textContent.length,T=Math.min(m.start,b);m=m.end===void 0?T:Math.min(m.end,b),!i.extend&&T>m&&(b=m,m=T,T=b),b=qv(d,T);var O=qv(d,m);b&&O&&(i.rangeCount!==1||i.anchorNode!==b.node||i.anchorOffset!==b.offset||i.focusNode!==O.node||i.focusOffset!==O.offset)&&(a=a.createRange(),a.setStart(b.node,b.offset),i.removeAllRanges(),T>m?(i.addRange(a),i.extend(O.node,O.offset)):(a.setEnd(O.node,O.offset),i.addRange(a)))}}for(a=[],i=d;i=i.parentNode;)i.nodeType===1&&a.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<a.length;d++)i=a[d],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var mP=c&&"documentMode"in document&&11>=document.documentMode,Ks=null,Wh=null,Tc=null,qh=!1;function Kv(i,a,d){var m=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;qh||Ks==null||Ks!==Oe(m)||(m=Ks,"selectionStart"in m&&Vh(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Tc&&Cc(Tc,m)||(Tc=m,m=jd(Wh,"onSelect"),0<m.length&&(a=new Nh("onSelect","select",null,a,d),i.push({event:a,listeners:m}),a.target=Ks)))}function Md(i,a){var d={};return d[i.toLowerCase()]=a.toLowerCase(),d["Webkit"+i]="webkit"+a,d["Moz"+i]="moz"+a,d}var Qs={animationend:Md("Animation","AnimationEnd"),animationiteration:Md("Animation","AnimationIteration"),animationstart:Md("Animation","AnimationStart"),transitionend:Md("Transition","TransitionEnd")},Gh={},Qv={};c&&(Qv=document.createElement("div").style,"AnimationEvent"in window||(delete Qs.animationend.animation,delete Qs.animationiteration.animation,delete Qs.animationstart.animation),"TransitionEvent"in window||delete Qs.transitionend.transition);function Id(i){if(Gh[i])return Gh[i];if(!Qs[i])return i;var a=Qs[i],d;for(d in a)if(a.hasOwnProperty(d)&&d in Qv)return Gh[i]=a[d];return i}var Yv=Id("animationend"),Jv=Id("animationiteration"),Zv=Id("animationstart"),eb=Id("transitionend"),tb=new Map,rb="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ma(i,a){tb.set(i,a),s(a,[i])}for(var Xh=0;Xh<rb.length;Xh++){var Kh=rb[Xh],gP=Kh.toLowerCase(),yP=Kh[0].toUpperCase()+Kh.slice(1);ma(gP,"on"+yP)}ma(Yv,"onAnimationEnd"),ma(Jv,"onAnimationIteration"),ma(Zv,"onAnimationStart"),ma("dblclick","onDoubleClick"),ma("focusin","onFocus"),ma("focusout","onBlur"),ma(eb,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ec="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),vP=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ec));function nb(i,a,d){var m=i.type||"unknown-event";i.currentTarget=d,_r(m,a,void 0,i),i.currentTarget=null}function ob(i,a){a=(a&4)!==0;for(var d=0;d<i.length;d++){var m=i[d],b=m.event;m=m.listeners;e:{var T=void 0;if(a)for(var O=m.length-1;0<=O;O--){var te=m[O],ae=te.instance,ye=te.currentTarget;if(te=te.listener,ae!==T&&b.isPropagationStopped())break e;nb(b,te,ye),T=ae}else for(O=0;O<m.length;O++){if(te=m[O],ae=te.instance,ye=te.currentTarget,te=te.listener,ae!==T&&b.isPropagationStopped())break e;nb(b,te,ye),T=ae}}}if(On)throw i=ci,On=!1,ci=null,i}function pr(i,a){var d=a[nm];d===void 0&&(d=a[nm]=new Set);var m=i+"__bubble";d.has(m)||(ib(a,i,2,!1),d.add(m))}function Qh(i,a,d){var m=0;a&&(m|=4),ib(d,i,m,a)}var Ad="_reactListening"+Math.random().toString(36).slice(2);function kc(i){if(!i[Ad]){i[Ad]=!0,n.forEach(function(d){d!=="selectionchange"&&(vP.has(d)||Qh(d,!1,i),Qh(d,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[Ad]||(a[Ad]=!0,Qh("selectionchange",!1,a))}}function ib(i,a,d,m){switch(Rv(a)){case 1:var b=jk;break;case 4:b=_k;break;default:b=_h}d=b.bind(null,a,d,i),b=void 0,!Rt||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(b=!0),m?b!==void 0?i.addEventListener(a,d,{capture:!0,passive:b}):i.addEventListener(a,d,!0):b!==void 0?i.addEventListener(a,d,{passive:b}):i.addEventListener(a,d,!1)}function Yh(i,a,d,m,b){var T=m;if((a&1)===0&&(a&2)===0&&m!==null)e:for(;;){if(m===null)return;var O=m.tag;if(O===3||O===4){var te=m.stateNode.containerInfo;if(te===b||te.nodeType===8&&te.parentNode===b)break;if(O===4)for(O=m.return;O!==null;){var ae=O.tag;if((ae===3||ae===4)&&(ae=O.stateNode.containerInfo,ae===b||ae.nodeType===8&&ae.parentNode===b))return;O=O.return}for(;te!==null;){if(O=rs(te),O===null)return;if(ae=O.tag,ae===5||ae===6){m=T=O;continue e}te=te.parentNode}}m=m.return}qe(function(){var ye=T,Ae=nn(d),Le=[];e:{var Re=tb.get(i);if(Re!==void 0){var rt=Nh,st=i;switch(i){case"keypress":if(Ed(d)===0)break e;case"keydown":case"keyup":rt=Xk;break;case"focusin":st="focus",rt=zh;break;case"focusout":st="blur",rt=zh;break;case"beforeblur":case"afterblur":rt=zh;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":rt=Av;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":rt=Nk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":rt=Yk;break;case Yv:case Jv:case Zv:rt=zk;break;case eb:rt=Zk;break;case"scroll":rt=Lk;break;case"wheel":rt=tP;break;case"copy":case"cut":case"paste":rt=Fk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":rt=_v}var lt=(a&4)!==0,Pr=!lt&&i==="scroll",pe=lt?Re!==null?Re+"Capture":null:Re;lt=[];for(var le=ye,fe;le!==null;){fe=le;var ze=fe.stateNode;if(fe.tag===5&&ze!==null&&(fe=ze,pe!==null&&(ze=ot(le,pe),ze!=null&&lt.push(Pc(le,ze,fe)))),Pr)break;le=le.return}0<lt.length&&(Re=new rt(Re,st,null,d,Ae),Le.push({event:Re,listeners:lt}))}}if((a&7)===0){e:{if(Re=i==="mouseover"||i==="pointerover",rt=i==="mouseout"||i==="pointerout",Re&&d!==Dr&&(st=d.relatedTarget||d.fromElement)&&(rs(st)||st[Bi]))break e;if((rt||Re)&&(Re=Ae.window===Ae?Ae:(Re=Ae.ownerDocument)?Re.defaultView||Re.parentWindow:window,rt?(st=d.relatedTarget||d.toElement,rt=ye,st=st?rs(st):null,st!==null&&(Pr=mn(st),st!==Pr||st.tag!==5&&st.tag!==6)&&(st=null)):(rt=null,st=ye),rt!==st)){if(lt=Av,ze="onMouseLeave",pe="onMouseEnter",le="mouse",(i==="pointerout"||i==="pointerover")&&(lt=_v,ze="onPointerLeave",pe="onPointerEnter",le="pointer"),Pr=rt==null?Re:Zs(rt),fe=st==null?Re:Zs(st),Re=new lt(ze,le+"leave",rt,d,Ae),Re.target=Pr,Re.relatedTarget=fe,ze=null,rs(Ae)===ye&&(lt=new lt(pe,le+"enter",st,d,Ae),lt.target=fe,lt.relatedTarget=Pr,ze=lt),Pr=ze,rt&&st)t:{for(lt=rt,pe=st,le=0,fe=lt;fe;fe=Ys(fe))le++;for(fe=0,ze=pe;ze;ze=Ys(ze))fe++;for(;0<le-fe;)lt=Ys(lt),le--;for(;0<fe-le;)pe=Ys(pe),fe--;for(;le--;){if(lt===pe||pe!==null&&lt===pe.alternate)break t;lt=Ys(lt),pe=Ys(pe)}lt=null}else lt=null;rt!==null&&ab(Le,Re,rt,lt,!1),st!==null&&Pr!==null&&ab(Le,Pr,st,lt,!0)}}e:{if(Re=ye?Zs(ye):window,rt=Re.nodeName&&Re.nodeName.toLowerCase(),rt==="select"||rt==="input"&&Re.type==="file")var ut=lP;else if(zv(Re))if(Fv)ut=pP;else{ut=uP;var gt=cP}else(rt=Re.nodeName)&&rt.toLowerCase()==="input"&&(Re.type==="checkbox"||Re.type==="radio")&&(ut=dP);if(ut&&(ut=ut(i,ye))){Dv(Le,ut,d,Ae);break e}gt&&gt(i,Re,ye),i==="focusout"&&(gt=Re._wrapperState)&&gt.controlled&&Re.type==="number"&&ft(Re,"number",Re.value)}switch(gt=ye?Zs(ye):window,i){case"focusin":(zv(gt)||gt.contentEditable==="true")&&(Ks=gt,Wh=ye,Tc=null);break;case"focusout":Tc=Wh=Ks=null;break;case"mousedown":qh=!0;break;case"contextmenu":case"mouseup":case"dragend":qh=!1,Kv(Le,d,Ae);break;case"selectionchange":if(mP)break;case"keydown":case"keyup":Kv(Le,d,Ae)}var yt;if(Fh)e:{switch(i){case"compositionstart":var Et="onCompositionStart";break e;case"compositionend":Et="onCompositionEnd";break e;case"compositionupdate":Et="onCompositionUpdate";break e}Et=void 0}else Xs?$v(i,d)&&(Et="onCompositionEnd"):i==="keydown"&&d.keyCode===229&&(Et="onCompositionStart");Et&&(Lv&&d.locale!=="ko"&&(Xs||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&Xs&&(yt=Mv()):(ha=Ae,Oh="value"in ha?ha.value:ha.textContent,Xs=!0)),gt=jd(ye,Et),0<gt.length&&(Et=new jv(Et,i,null,d,Ae),Le.push({event:Et,listeners:gt}),yt?Et.data=yt:(yt=Bv(d),yt!==null&&(Et.data=yt)))),(yt=nP?oP(i,d):iP(i,d))&&(ye=jd(ye,"onBeforeInput"),0<ye.length&&(Ae=new jv("onBeforeInput","beforeinput",null,d,Ae),Le.push({event:Ae,listeners:ye}),Ae.data=yt))}ob(Le,a)})}function Pc(i,a,d){return{instance:i,listener:a,currentTarget:d}}function jd(i,a){for(var d=a+"Capture",m=[];i!==null;){var b=i,T=b.stateNode;b.tag===5&&T!==null&&(b=T,T=ot(i,d),T!=null&&m.unshift(Pc(i,T,b)),T=ot(i,a),T!=null&&m.push(Pc(i,T,b))),i=i.return}return m}function Ys(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function ab(i,a,d,m,b){for(var T=a._reactName,O=[];d!==null&&d!==m;){var te=d,ae=te.alternate,ye=te.stateNode;if(ae!==null&&ae===m)break;te.tag===5&&ye!==null&&(te=ye,b?(ae=ot(d,T),ae!=null&&O.unshift(Pc(d,ae,te))):b||(ae=ot(d,T),ae!=null&&O.push(Pc(d,ae,te)))),d=d.return}O.length!==0&&i.push({event:a,listeners:O})}var bP=/\r\n?/g,xP=/\u0000|\uFFFD/g;function sb(i){return(typeof i=="string"?i:""+i).replace(bP,`
38
+ `).replace(xP,"")}function _d(i,a,d){if(a=sb(a),sb(i)!==a&&d)throw Error(r(425))}function Ld(){}var Jh=null,Zh=null;function em(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var tm=typeof setTimeout=="function"?setTimeout:void 0,wP=typeof clearTimeout=="function"?clearTimeout:void 0,lb=typeof Promise=="function"?Promise:void 0,SP=typeof queueMicrotask=="function"?queueMicrotask:typeof lb<"u"?function(i){return lb.resolve(null).then(i).catch(CP)}:tm;function CP(i){setTimeout(function(){throw i})}function rm(i,a){var d=a,m=0;do{var b=d.nextSibling;if(i.removeChild(d),b&&b.nodeType===8)if(d=b.data,d==="/$"){if(m===0){i.removeChild(b),yc(a);return}m--}else d!=="$"&&d!=="$?"&&d!=="$!"||m++;d=b}while(d);yc(a)}function ga(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return i}function cb(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var d=i.data;if(d==="$"||d==="$!"||d==="$?"){if(a===0)return i;a--}else d==="/$"&&a++}i=i.previousSibling}return null}var Js=Math.random().toString(36).slice(2),ui="__reactFiber$"+Js,Rc="__reactProps$"+Js,Bi="__reactContainer$"+Js,nm="__reactEvents$"+Js,TP="__reactListeners$"+Js,EP="__reactHandles$"+Js;function rs(i){var a=i[ui];if(a)return a;for(var d=i.parentNode;d;){if(a=d[Bi]||d[ui]){if(d=a.alternate,a.child!==null||d!==null&&d.child!==null)for(i=cb(i);i!==null;){if(d=i[ui])return d;i=cb(i)}return a}i=d,d=i.parentNode}return null}function Mc(i){return i=i[ui]||i[Bi],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function Zs(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(r(33))}function Od(i){return i[Rc]||null}var om=[],el=-1;function ya(i){return{current:i}}function fr(i){0>el||(i.current=om[el],om[el]=null,el--)}function cr(i,a){el++,om[el]=i.current,i.current=a}var va={},gn=ya(va),Nn=ya(!1),ns=va;function tl(i,a){var d=i.type.contextTypes;if(!d)return va;var m=i.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===a)return m.__reactInternalMemoizedMaskedChildContext;var b={},T;for(T in d)b[T]=a[T];return m&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=a,i.__reactInternalMemoizedMaskedChildContext=b),b}function $n(i){return i=i.childContextTypes,i!=null}function Nd(){fr(Nn),fr(gn)}function ub(i,a,d){if(gn.current!==va)throw Error(r(168));cr(gn,a),cr(Nn,d)}function db(i,a,d){var m=i.stateNode;if(a=a.childContextTypes,typeof m.getChildContext!="function")return d;m=m.getChildContext();for(var b in m)if(!(b in a))throw Error(r(108,de(i)||"Unknown",b));return Q({},d,m)}function $d(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||va,ns=gn.current,cr(gn,i),cr(Nn,Nn.current),!0}function pb(i,a,d){var m=i.stateNode;if(!m)throw Error(r(169));d?(i=db(i,a,ns),m.__reactInternalMemoizedMergedChildContext=i,fr(Nn),fr(gn),cr(gn,i)):fr(Nn),cr(Nn,d)}var zi=null,Bd=!1,im=!1;function fb(i){zi===null?zi=[i]:zi.push(i)}function kP(i){Bd=!0,fb(i)}function ba(){if(!im&&zi!==null){im=!0;var i=0,a=er;try{var d=zi;for(er=1;i<d.length;i++){var m=d[i];do m=m(!0);while(m!==null)}zi=null,Bd=!1}catch(b){throw zi!==null&&(zi=zi.slice(i+1)),tt(ca,ba),b}finally{er=a,im=!1}}return null}var rl=[],nl=0,zd=null,Dd=0,So=[],Co=0,os=null,Di=1,Fi="";function is(i,a){rl[nl++]=Dd,rl[nl++]=zd,zd=i,Dd=a}function hb(i,a,d){So[Co++]=Di,So[Co++]=Fi,So[Co++]=os,os=i;var m=Di;i=Fi;var b=32-Ho(m)-1;m&=~(1<<b),d+=1;var T=32-Ho(a)+b;if(30<T){var O=b-b%5;T=(m&(1<<O)-1).toString(32),m>>=O,b-=O,Di=1<<32-Ho(a)+b|d<<b|m,Fi=T+i}else Di=1<<T|d<<b|m,Fi=i}function am(i){i.return!==null&&(is(i,1),hb(i,1,0))}function sm(i){for(;i===zd;)zd=rl[--nl],rl[nl]=null,Dd=rl[--nl],rl[nl]=null;for(;i===os;)os=So[--Co],So[Co]=null,Fi=So[--Co],So[Co]=null,Di=So[--Co],So[Co]=null}var so=null,lo=null,gr=!1,Vo=null;function mb(i,a){var d=Po(5,null,null,0);d.elementType="DELETED",d.stateNode=a,d.return=i,a=i.deletions,a===null?(i.deletions=[d],i.flags|=16):a.push(d)}function gb(i,a){switch(i.tag){case 5:var d=i.type;return a=a.nodeType!==1||d.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(i.stateNode=a,so=i,lo=ga(a.firstChild),!0):!1;case 6:return a=i.pendingProps===""||a.nodeType!==3?null:a,a!==null?(i.stateNode=a,so=i,lo=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(d=os!==null?{id:Di,overflow:Fi}:null,i.memoizedState={dehydrated:a,treeContext:d,retryLane:1073741824},d=Po(18,null,null,0),d.stateNode=a,d.return=i,i.child=d,so=i,lo=null,!0):!1;default:return!1}}function lm(i){return(i.mode&1)!==0&&(i.flags&128)===0}function cm(i){if(gr){var a=lo;if(a){var d=a;if(!gb(i,a)){if(lm(i))throw Error(r(418));a=ga(d.nextSibling);var m=so;a&&gb(i,a)?mb(m,d):(i.flags=i.flags&-4097|2,gr=!1,so=i)}}else{if(lm(i))throw Error(r(418));i.flags=i.flags&-4097|2,gr=!1,so=i}}}function yb(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;so=i}function Fd(i){if(i!==so)return!1;if(!gr)return yb(i),gr=!0,!1;var a;if((a=i.tag!==3)&&!(a=i.tag!==5)&&(a=i.type,a=a!=="head"&&a!=="body"&&!em(i.type,i.memoizedProps)),a&&(a=lo)){if(lm(i))throw vb(),Error(r(418));for(;a;)mb(i,a),a=ga(a.nextSibling)}if(yb(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,a=0;i;){if(i.nodeType===8){var d=i.data;if(d==="/$"){if(a===0){lo=ga(i.nextSibling);break e}a--}else d!=="$"&&d!=="$!"&&d!=="$?"||a++}i=i.nextSibling}lo=null}}else lo=so?ga(i.stateNode.nextSibling):null;return!0}function vb(){for(var i=lo;i;)i=ga(i.nextSibling)}function ol(){lo=so=null,gr=!1}function um(i){Vo===null?Vo=[i]:Vo.push(i)}var PP=E.ReactCurrentBatchConfig;function Ic(i,a,d){if(i=d.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(d._owner){if(d=d._owner,d){if(d.tag!==1)throw Error(r(309));var m=d.stateNode}if(!m)throw Error(r(147,i));var b=m,T=""+i;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===T?a.ref:(a=function(O){var te=b.refs;O===null?delete te[T]:te[T]=O},a._stringRef=T,a)}if(typeof i!="string")throw Error(r(284));if(!d._owner)throw Error(r(290,i))}return i}function Hd(i,a){throw i=Object.prototype.toString.call(a),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i))}function bb(i){var a=i._init;return a(i._payload)}function xb(i){function a(pe,le){if(i){var fe=pe.deletions;fe===null?(pe.deletions=[le],pe.flags|=16):fe.push(le)}}function d(pe,le){if(!i)return null;for(;le!==null;)a(pe,le),le=le.sibling;return null}function m(pe,le){for(pe=new Map;le!==null;)le.key!==null?pe.set(le.key,le):pe.set(le.index,le),le=le.sibling;return pe}function b(pe,le){return pe=Pa(pe,le),pe.index=0,pe.sibling=null,pe}function T(pe,le,fe){return pe.index=fe,i?(fe=pe.alternate,fe!==null?(fe=fe.index,fe<le?(pe.flags|=2,le):fe):(pe.flags|=2,le)):(pe.flags|=1048576,le)}function O(pe){return i&&pe.alternate===null&&(pe.flags|=2),pe}function te(pe,le,fe,ze){return le===null||le.tag!==6?(le=tg(fe,pe.mode,ze),le.return=pe,le):(le=b(le,fe),le.return=pe,le)}function ae(pe,le,fe,ze){var ut=fe.type;return ut===F?Ae(pe,le,fe.props.children,ze,fe.key):le!==null&&(le.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===W&&bb(ut)===le.type)?(ze=b(le,fe.props),ze.ref=Ic(pe,le,fe),ze.return=pe,ze):(ze=pp(fe.type,fe.key,fe.props,null,pe.mode,ze),ze.ref=Ic(pe,le,fe),ze.return=pe,ze)}function ye(pe,le,fe,ze){return le===null||le.tag!==4||le.stateNode.containerInfo!==fe.containerInfo||le.stateNode.implementation!==fe.implementation?(le=rg(fe,pe.mode,ze),le.return=pe,le):(le=b(le,fe.children||[]),le.return=pe,le)}function Ae(pe,le,fe,ze,ut){return le===null||le.tag!==7?(le=fs(fe,pe.mode,ze,ut),le.return=pe,le):(le=b(le,fe),le.return=pe,le)}function Le(pe,le,fe){if(typeof le=="string"&&le!==""||typeof le=="number")return le=tg(""+le,pe.mode,fe),le.return=pe,le;if(typeof le=="object"&&le!==null){switch(le.$$typeof){case I:return fe=pp(le.type,le.key,le.props,null,pe.mode,fe),fe.ref=Ic(pe,null,le),fe.return=pe,fe;case A:return le=rg(le,pe.mode,fe),le.return=pe,le;case W:var ze=le._init;return Le(pe,ze(le._payload),fe)}if(We(le)||Z(le))return le=fs(le,pe.mode,fe,null),le.return=pe,le;Hd(pe,le)}return null}function Re(pe,le,fe,ze){var ut=le!==null?le.key:null;if(typeof fe=="string"&&fe!==""||typeof fe=="number")return ut!==null?null:te(pe,le,""+fe,ze);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case I:return fe.key===ut?ae(pe,le,fe,ze):null;case A:return fe.key===ut?ye(pe,le,fe,ze):null;case W:return ut=fe._init,Re(pe,le,ut(fe._payload),ze)}if(We(fe)||Z(fe))return ut!==null?null:Ae(pe,le,fe,ze,null);Hd(pe,fe)}return null}function rt(pe,le,fe,ze,ut){if(typeof ze=="string"&&ze!==""||typeof ze=="number")return pe=pe.get(fe)||null,te(le,pe,""+ze,ut);if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case I:return pe=pe.get(ze.key===null?fe:ze.key)||null,ae(le,pe,ze,ut);case A:return pe=pe.get(ze.key===null?fe:ze.key)||null,ye(le,pe,ze,ut);case W:var gt=ze._init;return rt(pe,le,fe,gt(ze._payload),ut)}if(We(ze)||Z(ze))return pe=pe.get(fe)||null,Ae(le,pe,ze,ut,null);Hd(le,ze)}return null}function st(pe,le,fe,ze){for(var ut=null,gt=null,yt=le,Et=le=0,Qr=null;yt!==null&&Et<fe.length;Et++){yt.index>Et?(Qr=yt,yt=null):Qr=yt.sibling;var Vt=Re(pe,yt,fe[Et],ze);if(Vt===null){yt===null&&(yt=Qr);break}i&&yt&&Vt.alternate===null&&a(pe,yt),le=T(Vt,le,Et),gt===null?ut=Vt:gt.sibling=Vt,gt=Vt,yt=Qr}if(Et===fe.length)return d(pe,yt),gr&&is(pe,Et),ut;if(yt===null){for(;Et<fe.length;Et++)yt=Le(pe,fe[Et],ze),yt!==null&&(le=T(yt,le,Et),gt===null?ut=yt:gt.sibling=yt,gt=yt);return gr&&is(pe,Et),ut}for(yt=m(pe,yt);Et<fe.length;Et++)Qr=rt(yt,pe,Et,fe[Et],ze),Qr!==null&&(i&&Qr.alternate!==null&&yt.delete(Qr.key===null?Et:Qr.key),le=T(Qr,le,Et),gt===null?ut=Qr:gt.sibling=Qr,gt=Qr);return i&&yt.forEach(function(Ra){return a(pe,Ra)}),gr&&is(pe,Et),ut}function lt(pe,le,fe,ze){var ut=Z(fe);if(typeof ut!="function")throw Error(r(150));if(fe=ut.call(fe),fe==null)throw Error(r(151));for(var gt=ut=null,yt=le,Et=le=0,Qr=null,Vt=fe.next();yt!==null&&!Vt.done;Et++,Vt=fe.next()){yt.index>Et?(Qr=yt,yt=null):Qr=yt.sibling;var Ra=Re(pe,yt,Vt.value,ze);if(Ra===null){yt===null&&(yt=Qr);break}i&&yt&&Ra.alternate===null&&a(pe,yt),le=T(Ra,le,Et),gt===null?ut=Ra:gt.sibling=Ra,gt=Ra,yt=Qr}if(Vt.done)return d(pe,yt),gr&&is(pe,Et),ut;if(yt===null){for(;!Vt.done;Et++,Vt=fe.next())Vt=Le(pe,Vt.value,ze),Vt!==null&&(le=T(Vt,le,Et),gt===null?ut=Vt:gt.sibling=Vt,gt=Vt);return gr&&is(pe,Et),ut}for(yt=m(pe,yt);!Vt.done;Et++,Vt=fe.next())Vt=rt(yt,pe,Et,Vt.value,ze),Vt!==null&&(i&&Vt.alternate!==null&&yt.delete(Vt.key===null?Et:Vt.key),le=T(Vt,le,Et),gt===null?ut=Vt:gt.sibling=Vt,gt=Vt);return i&&yt.forEach(function(a4){return a(pe,a4)}),gr&&is(pe,Et),ut}function Pr(pe,le,fe,ze){if(typeof fe=="object"&&fe!==null&&fe.type===F&&fe.key===null&&(fe=fe.props.children),typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case I:e:{for(var ut=fe.key,gt=le;gt!==null;){if(gt.key===ut){if(ut=fe.type,ut===F){if(gt.tag===7){d(pe,gt.sibling),le=b(gt,fe.props.children),le.return=pe,pe=le;break e}}else if(gt.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===W&&bb(ut)===gt.type){d(pe,gt.sibling),le=b(gt,fe.props),le.ref=Ic(pe,gt,fe),le.return=pe,pe=le;break e}d(pe,gt);break}else a(pe,gt);gt=gt.sibling}fe.type===F?(le=fs(fe.props.children,pe.mode,ze,fe.key),le.return=pe,pe=le):(ze=pp(fe.type,fe.key,fe.props,null,pe.mode,ze),ze.ref=Ic(pe,le,fe),ze.return=pe,pe=ze)}return O(pe);case A:e:{for(gt=fe.key;le!==null;){if(le.key===gt)if(le.tag===4&&le.stateNode.containerInfo===fe.containerInfo&&le.stateNode.implementation===fe.implementation){d(pe,le.sibling),le=b(le,fe.children||[]),le.return=pe,pe=le;break e}else{d(pe,le);break}else a(pe,le);le=le.sibling}le=rg(fe,pe.mode,ze),le.return=pe,pe=le}return O(pe);case W:return gt=fe._init,Pr(pe,le,gt(fe._payload),ze)}if(We(fe))return st(pe,le,fe,ze);if(Z(fe))return lt(pe,le,fe,ze);Hd(pe,fe)}return typeof fe=="string"&&fe!==""||typeof fe=="number"?(fe=""+fe,le!==null&&le.tag===6?(d(pe,le.sibling),le=b(le,fe),le.return=pe,pe=le):(d(pe,le),le=tg(fe,pe.mode,ze),le.return=pe,pe=le),O(pe)):d(pe,le)}return Pr}var il=xb(!0),wb=xb(!1),Ud=ya(null),Vd=null,al=null,dm=null;function pm(){dm=al=Vd=null}function fm(i){var a=Ud.current;fr(Ud),i._currentValue=a}function hm(i,a,d){for(;i!==null;){var m=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,m!==null&&(m.childLanes|=a)):m!==null&&(m.childLanes&a)!==a&&(m.childLanes|=a),i===d)break;i=i.return}}function sl(i,a){Vd=i,dm=al=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&a)!==0&&(Bn=!0),i.firstContext=null)}function To(i){var a=i._currentValue;if(dm!==i)if(i={context:i,memoizedValue:a,next:null},al===null){if(Vd===null)throw Error(r(308));al=i,Vd.dependencies={lanes:0,firstContext:i}}else al=al.next=i;return a}var as=null;function mm(i){as===null?as=[i]:as.push(i)}function Sb(i,a,d,m){var b=a.interleaved;return b===null?(d.next=d,mm(a)):(d.next=b.next,b.next=d),a.interleaved=d,Hi(i,m)}function Hi(i,a){i.lanes|=a;var d=i.alternate;for(d!==null&&(d.lanes|=a),d=i,i=i.return;i!==null;)i.childLanes|=a,d=i.alternate,d!==null&&(d.childLanes|=a),d=i,i=i.return;return d.tag===3?d.stateNode:null}var xa=!1;function gm(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cb(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Ui(i,a){return{eventTime:i,lane:a,tag:0,payload:null,callback:null,next:null}}function wa(i,a,d){var m=i.updateQueue;if(m===null)return null;if(m=m.shared,(Ht&2)!==0){var b=m.pending;return b===null?a.next=a:(a.next=b.next,b.next=a),m.pending=a,Hi(i,d)}return b=m.interleaved,b===null?(a.next=a,mm(m)):(a.next=b.next,b.next=a),m.interleaved=a,Hi(i,d)}function Wd(i,a,d){if(a=a.updateQueue,a!==null&&(a=a.shared,(d&4194240)!==0)){var m=a.lanes;m&=i.pendingLanes,d|=m,a.lanes=d,Ih(i,d)}}function Tb(i,a){var d=i.updateQueue,m=i.alternate;if(m!==null&&(m=m.updateQueue,d===m)){var b=null,T=null;if(d=d.firstBaseUpdate,d!==null){do{var O={eventTime:d.eventTime,lane:d.lane,tag:d.tag,payload:d.payload,callback:d.callback,next:null};T===null?b=T=O:T=T.next=O,d=d.next}while(d!==null);T===null?b=T=a:T=T.next=a}else b=T=a;d={baseState:m.baseState,firstBaseUpdate:b,lastBaseUpdate:T,shared:m.shared,effects:m.effects},i.updateQueue=d;return}i=d.lastBaseUpdate,i===null?d.firstBaseUpdate=a:i.next=a,d.lastBaseUpdate=a}function qd(i,a,d,m){var b=i.updateQueue;xa=!1;var T=b.firstBaseUpdate,O=b.lastBaseUpdate,te=b.shared.pending;if(te!==null){b.shared.pending=null;var ae=te,ye=ae.next;ae.next=null,O===null?T=ye:O.next=ye,O=ae;var Ae=i.alternate;Ae!==null&&(Ae=Ae.updateQueue,te=Ae.lastBaseUpdate,te!==O&&(te===null?Ae.firstBaseUpdate=ye:te.next=ye,Ae.lastBaseUpdate=ae))}if(T!==null){var Le=b.baseState;O=0,Ae=ye=ae=null,te=T;do{var Re=te.lane,rt=te.eventTime;if((m&Re)===Re){Ae!==null&&(Ae=Ae.next={eventTime:rt,lane:0,tag:te.tag,payload:te.payload,callback:te.callback,next:null});e:{var st=i,lt=te;switch(Re=a,rt=d,lt.tag){case 1:if(st=lt.payload,typeof st=="function"){Le=st.call(rt,Le,Re);break e}Le=st;break e;case 3:st.flags=st.flags&-65537|128;case 0:if(st=lt.payload,Re=typeof st=="function"?st.call(rt,Le,Re):st,Re==null)break e;Le=Q({},Le,Re);break e;case 2:xa=!0}}te.callback!==null&&te.lane!==0&&(i.flags|=64,Re=b.effects,Re===null?b.effects=[te]:Re.push(te))}else rt={eventTime:rt,lane:Re,tag:te.tag,payload:te.payload,callback:te.callback,next:null},Ae===null?(ye=Ae=rt,ae=Le):Ae=Ae.next=rt,O|=Re;if(te=te.next,te===null){if(te=b.shared.pending,te===null)break;Re=te,te=Re.next,Re.next=null,b.lastBaseUpdate=Re,b.shared.pending=null}}while(!0);if(Ae===null&&(ae=Le),b.baseState=ae,b.firstBaseUpdate=ye,b.lastBaseUpdate=Ae,a=b.shared.interleaved,a!==null){b=a;do O|=b.lane,b=b.next;while(b!==a)}else T===null&&(b.shared.lanes=0);cs|=O,i.lanes=O,i.memoizedState=Le}}function Eb(i,a,d){if(i=a.effects,a.effects=null,i!==null)for(a=0;a<i.length;a++){var m=i[a],b=m.callback;if(b!==null){if(m.callback=null,m=d,typeof b!="function")throw Error(r(191,b));b.call(m)}}}var Ac={},di=ya(Ac),jc=ya(Ac),_c=ya(Ac);function ss(i){if(i===Ac)throw Error(r(174));return i}function ym(i,a){switch(cr(_c,a),cr(jc,i),cr(di,Ac),i=a.nodeType,i){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:Te(null,"");break;default:i=i===8?a.parentNode:a,a=i.namespaceURI||null,i=i.tagName,a=Te(a,i)}fr(di),cr(di,a)}function ll(){fr(di),fr(jc),fr(_c)}function kb(i){ss(_c.current);var a=ss(di.current),d=Te(a,i.type);a!==d&&(cr(jc,i),cr(di,d))}function vm(i){jc.current===i&&(fr(di),fr(jc))}var br=ya(0);function Gd(i){for(var a=i;a!==null;){if(a.tag===13){var d=a.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||d.data==="$?"||d.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var bm=[];function xm(){for(var i=0;i<bm.length;i++)bm[i]._workInProgressVersionPrimary=null;bm.length=0}var Xd=E.ReactCurrentDispatcher,wm=E.ReactCurrentBatchConfig,ls=0,xr=null,Ur=null,Xr=null,Kd=!1,Lc=!1,Oc=0,RP=0;function yn(){throw Error(r(321))}function Sm(i,a){if(a===null)return!1;for(var d=0;d<a.length&&d<i.length;d++)if(!Uo(i[d],a[d]))return!1;return!0}function Cm(i,a,d,m,b,T){if(ls=T,xr=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Xd.current=i===null||i.memoizedState===null?jP:_P,i=d(m,b),Lc){T=0;do{if(Lc=!1,Oc=0,25<=T)throw Error(r(301));T+=1,Xr=Ur=null,a.updateQueue=null,Xd.current=LP,i=d(m,b)}while(Lc)}if(Xd.current=Jd,a=Ur!==null&&Ur.next!==null,ls=0,Xr=Ur=xr=null,Kd=!1,a)throw Error(r(300));return i}function Tm(){var i=Oc!==0;return Oc=0,i}function pi(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xr===null?xr.memoizedState=Xr=i:Xr=Xr.next=i,Xr}function Eo(){if(Ur===null){var i=xr.alternate;i=i!==null?i.memoizedState:null}else i=Ur.next;var a=Xr===null?xr.memoizedState:Xr.next;if(a!==null)Xr=a,Ur=i;else{if(i===null)throw Error(r(310));Ur=i,i={memoizedState:Ur.memoizedState,baseState:Ur.baseState,baseQueue:Ur.baseQueue,queue:Ur.queue,next:null},Xr===null?xr.memoizedState=Xr=i:Xr=Xr.next=i}return Xr}function Nc(i,a){return typeof a=="function"?a(i):a}function Em(i){var a=Eo(),d=a.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=i;var m=Ur,b=m.baseQueue,T=d.pending;if(T!==null){if(b!==null){var O=b.next;b.next=T.next,T.next=O}m.baseQueue=b=T,d.pending=null}if(b!==null){T=b.next,m=m.baseState;var te=O=null,ae=null,ye=T;do{var Ae=ye.lane;if((ls&Ae)===Ae)ae!==null&&(ae=ae.next={lane:0,action:ye.action,hasEagerState:ye.hasEagerState,eagerState:ye.eagerState,next:null}),m=ye.hasEagerState?ye.eagerState:i(m,ye.action);else{var Le={lane:Ae,action:ye.action,hasEagerState:ye.hasEagerState,eagerState:ye.eagerState,next:null};ae===null?(te=ae=Le,O=m):ae=ae.next=Le,xr.lanes|=Ae,cs|=Ae}ye=ye.next}while(ye!==null&&ye!==T);ae===null?O=m:ae.next=te,Uo(m,a.memoizedState)||(Bn=!0),a.memoizedState=m,a.baseState=O,a.baseQueue=ae,d.lastRenderedState=m}if(i=d.interleaved,i!==null){b=i;do T=b.lane,xr.lanes|=T,cs|=T,b=b.next;while(b!==i)}else b===null&&(d.lanes=0);return[a.memoizedState,d.dispatch]}function km(i){var a=Eo(),d=a.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=i;var m=d.dispatch,b=d.pending,T=a.memoizedState;if(b!==null){d.pending=null;var O=b=b.next;do T=i(T,O.action),O=O.next;while(O!==b);Uo(T,a.memoizedState)||(Bn=!0),a.memoizedState=T,a.baseQueue===null&&(a.baseState=T),d.lastRenderedState=T}return[T,m]}function Pb(){}function Rb(i,a){var d=xr,m=Eo(),b=a(),T=!Uo(m.memoizedState,b);if(T&&(m.memoizedState=b,Bn=!0),m=m.queue,Pm(Ab.bind(null,d,m,i),[i]),m.getSnapshot!==a||T||Xr!==null&&Xr.memoizedState.tag&1){if(d.flags|=2048,$c(9,Ib.bind(null,d,m,b,a),void 0,null),Kr===null)throw Error(r(349));(ls&30)!==0||Mb(d,a,b)}return b}function Mb(i,a,d){i.flags|=16384,i={getSnapshot:a,value:d},a=xr.updateQueue,a===null?(a={lastEffect:null,stores:null},xr.updateQueue=a,a.stores=[i]):(d=a.stores,d===null?a.stores=[i]:d.push(i))}function Ib(i,a,d,m){a.value=d,a.getSnapshot=m,jb(a)&&_b(i)}function Ab(i,a,d){return d(function(){jb(a)&&_b(i)})}function jb(i){var a=i.getSnapshot;i=i.value;try{var d=a();return!Uo(i,d)}catch{return!0}}function _b(i){var a=Hi(i,1);a!==null&&Xo(a,i,1,-1)}function Lb(i){var a=pi();return typeof i=="function"&&(i=i()),a.memoizedState=a.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Nc,lastRenderedState:i},a.queue=i,i=i.dispatch=AP.bind(null,xr,i),[a.memoizedState,i]}function $c(i,a,d,m){return i={tag:i,create:a,destroy:d,deps:m,next:null},a=xr.updateQueue,a===null?(a={lastEffect:null,stores:null},xr.updateQueue=a,a.lastEffect=i.next=i):(d=a.lastEffect,d===null?a.lastEffect=i.next=i:(m=d.next,d.next=i,i.next=m,a.lastEffect=i)),i}function Ob(){return Eo().memoizedState}function Qd(i,a,d,m){var b=pi();xr.flags|=i,b.memoizedState=$c(1|a,d,void 0,m===void 0?null:m)}function Yd(i,a,d,m){var b=Eo();m=m===void 0?null:m;var T=void 0;if(Ur!==null){var O=Ur.memoizedState;if(T=O.destroy,m!==null&&Sm(m,O.deps)){b.memoizedState=$c(a,d,T,m);return}}xr.flags|=i,b.memoizedState=$c(1|a,d,T,m)}function Nb(i,a){return Qd(8390656,8,i,a)}function Pm(i,a){return Yd(2048,8,i,a)}function $b(i,a){return Yd(4,2,i,a)}function Bb(i,a){return Yd(4,4,i,a)}function zb(i,a){if(typeof a=="function")return i=i(),a(i),function(){a(null)};if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function Db(i,a,d){return d=d!=null?d.concat([i]):null,Yd(4,4,zb.bind(null,a,i),d)}function Rm(){}function Fb(i,a){var d=Eo();a=a===void 0?null:a;var m=d.memoizedState;return m!==null&&a!==null&&Sm(a,m[1])?m[0]:(d.memoizedState=[i,a],i)}function Hb(i,a){var d=Eo();a=a===void 0?null:a;var m=d.memoizedState;return m!==null&&a!==null&&Sm(a,m[1])?m[0]:(i=i(),d.memoizedState=[i,a],i)}function Ub(i,a,d){return(ls&21)===0?(i.baseState&&(i.baseState=!1,Bn=!0),i.memoizedState=d):(Uo(d,a)||(d=bv(),xr.lanes|=d,cs|=d,i.baseState=!0),a)}function MP(i,a){var d=er;er=d!==0&&4>d?d:4,i(!0);var m=wm.transition;wm.transition={};try{i(!1),a()}finally{er=d,wm.transition=m}}function Vb(){return Eo().memoizedState}function IP(i,a,d){var m=Ea(i);if(d={lane:m,action:d,hasEagerState:!1,eagerState:null,next:null},Wb(i))qb(a,d);else if(d=Sb(i,a,d,m),d!==null){var b=Pn();Xo(d,i,m,b),Gb(d,a,m)}}function AP(i,a,d){var m=Ea(i),b={lane:m,action:d,hasEagerState:!1,eagerState:null,next:null};if(Wb(i))qb(a,b);else{var T=i.alternate;if(i.lanes===0&&(T===null||T.lanes===0)&&(T=a.lastRenderedReducer,T!==null))try{var O=a.lastRenderedState,te=T(O,d);if(b.hasEagerState=!0,b.eagerState=te,Uo(te,O)){var ae=a.interleaved;ae===null?(b.next=b,mm(a)):(b.next=ae.next,ae.next=b),a.interleaved=b;return}}catch{}finally{}d=Sb(i,a,b,m),d!==null&&(b=Pn(),Xo(d,i,m,b),Gb(d,a,m))}}function Wb(i){var a=i.alternate;return i===xr||a!==null&&a===xr}function qb(i,a){Lc=Kd=!0;var d=i.pending;d===null?a.next=a:(a.next=d.next,d.next=a),i.pending=a}function Gb(i,a,d){if((d&4194240)!==0){var m=a.lanes;m&=i.pendingLanes,d|=m,a.lanes=d,Ih(i,d)}}var Jd={readContext:To,useCallback:yn,useContext:yn,useEffect:yn,useImperativeHandle:yn,useInsertionEffect:yn,useLayoutEffect:yn,useMemo:yn,useReducer:yn,useRef:yn,useState:yn,useDebugValue:yn,useDeferredValue:yn,useTransition:yn,useMutableSource:yn,useSyncExternalStore:yn,useId:yn,unstable_isNewReconciler:!1},jP={readContext:To,useCallback:function(i,a){return pi().memoizedState=[i,a===void 0?null:a],i},useContext:To,useEffect:Nb,useImperativeHandle:function(i,a,d){return d=d!=null?d.concat([i]):null,Qd(4194308,4,zb.bind(null,a,i),d)},useLayoutEffect:function(i,a){return Qd(4194308,4,i,a)},useInsertionEffect:function(i,a){return Qd(4,2,i,a)},useMemo:function(i,a){var d=pi();return a=a===void 0?null:a,i=i(),d.memoizedState=[i,a],i},useReducer:function(i,a,d){var m=pi();return a=d!==void 0?d(a):a,m.memoizedState=m.baseState=a,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:a},m.queue=i,i=i.dispatch=IP.bind(null,xr,i),[m.memoizedState,i]},useRef:function(i){var a=pi();return i={current:i},a.memoizedState=i},useState:Lb,useDebugValue:Rm,useDeferredValue:function(i){return pi().memoizedState=i},useTransition:function(){var i=Lb(!1),a=i[0];return i=MP.bind(null,i[1]),pi().memoizedState=i,[a,i]},useMutableSource:function(){},useSyncExternalStore:function(i,a,d){var m=xr,b=pi();if(gr){if(d===void 0)throw Error(r(407));d=d()}else{if(d=a(),Kr===null)throw Error(r(349));(ls&30)!==0||Mb(m,a,d)}b.memoizedState=d;var T={value:d,getSnapshot:a};return b.queue=T,Nb(Ab.bind(null,m,T,i),[i]),m.flags|=2048,$c(9,Ib.bind(null,m,T,d,a),void 0,null),d},useId:function(){var i=pi(),a=Kr.identifierPrefix;if(gr){var d=Fi,m=Di;d=(m&~(1<<32-Ho(m)-1)).toString(32)+d,a=":"+a+"R"+d,d=Oc++,0<d&&(a+="H"+d.toString(32)),a+=":"}else d=RP++,a=":"+a+"r"+d.toString(32)+":";return i.memoizedState=a},unstable_isNewReconciler:!1},_P={readContext:To,useCallback:Fb,useContext:To,useEffect:Pm,useImperativeHandle:Db,useInsertionEffect:$b,useLayoutEffect:Bb,useMemo:Hb,useReducer:Em,useRef:Ob,useState:function(){return Em(Nc)},useDebugValue:Rm,useDeferredValue:function(i){var a=Eo();return Ub(a,Ur.memoizedState,i)},useTransition:function(){var i=Em(Nc)[0],a=Eo().memoizedState;return[i,a]},useMutableSource:Pb,useSyncExternalStore:Rb,useId:Vb,unstable_isNewReconciler:!1},LP={readContext:To,useCallback:Fb,useContext:To,useEffect:Pm,useImperativeHandle:Db,useInsertionEffect:$b,useLayoutEffect:Bb,useMemo:Hb,useReducer:km,useRef:Ob,useState:function(){return km(Nc)},useDebugValue:Rm,useDeferredValue:function(i){var a=Eo();return Ur===null?a.memoizedState=i:Ub(a,Ur.memoizedState,i)},useTransition:function(){var i=km(Nc)[0],a=Eo().memoizedState;return[i,a]},useMutableSource:Pb,useSyncExternalStore:Rb,useId:Vb,unstable_isNewReconciler:!1};function Wo(i,a){if(i&&i.defaultProps){a=Q({},a),i=i.defaultProps;for(var d in i)a[d]===void 0&&(a[d]=i[d]);return a}return a}function Mm(i,a,d,m){a=i.memoizedState,d=d(m,a),d=d==null?a:Q({},a,d),i.memoizedState=d,i.lanes===0&&(i.updateQueue.baseState=d)}var Zd={isMounted:function(i){return(i=i._reactInternals)?mn(i)===i:!1},enqueueSetState:function(i,a,d){i=i._reactInternals;var m=Pn(),b=Ea(i),T=Ui(m,b);T.payload=a,d!=null&&(T.callback=d),a=wa(i,T,b),a!==null&&(Xo(a,i,b,m),Wd(a,i,b))},enqueueReplaceState:function(i,a,d){i=i._reactInternals;var m=Pn(),b=Ea(i),T=Ui(m,b);T.tag=1,T.payload=a,d!=null&&(T.callback=d),a=wa(i,T,b),a!==null&&(Xo(a,i,b,m),Wd(a,i,b))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var d=Pn(),m=Ea(i),b=Ui(d,m);b.tag=2,a!=null&&(b.callback=a),a=wa(i,b,m),a!==null&&(Xo(a,i,m,d),Wd(a,i,m))}};function Xb(i,a,d,m,b,T,O){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(m,T,O):a.prototype&&a.prototype.isPureReactComponent?!Cc(d,m)||!Cc(b,T):!0}function Kb(i,a,d){var m=!1,b=va,T=a.contextType;return typeof T=="object"&&T!==null?T=To(T):(b=$n(a)?ns:gn.current,m=a.contextTypes,T=(m=m!=null)?tl(i,b):va),a=new a(d,T),i.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Zd,i.stateNode=a,a._reactInternals=i,m&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=b,i.__reactInternalMemoizedMaskedChildContext=T),a}function Qb(i,a,d,m){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(d,m),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(d,m),a.state!==i&&Zd.enqueueReplaceState(a,a.state,null)}function Im(i,a,d,m){var b=i.stateNode;b.props=d,b.state=i.memoizedState,b.refs={},gm(i);var T=a.contextType;typeof T=="object"&&T!==null?b.context=To(T):(T=$n(a)?ns:gn.current,b.context=tl(i,T)),b.state=i.memoizedState,T=a.getDerivedStateFromProps,typeof T=="function"&&(Mm(i,a,T,d),b.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(a=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),a!==b.state&&Zd.enqueueReplaceState(b,b.state,null),qd(i,d,b,m),b.state=i.memoizedState),typeof b.componentDidMount=="function"&&(i.flags|=4194308)}function cl(i,a){try{var d="",m=a;do d+=ne(m),m=m.return;while(m);var b=d}catch(T){b=`
39
+ Error generating stack: `+T.message+`
40
+ `+T.stack}return{value:i,source:a,stack:b,digest:null}}function Am(i,a,d){return{value:i,source:null,stack:d??null,digest:a??null}}function jm(i,a){try{console.error(a.value)}catch(d){setTimeout(function(){throw d})}}var OP=typeof WeakMap=="function"?WeakMap:Map;function Yb(i,a,d){d=Ui(-1,d),d.tag=3,d.payload={element:null};var m=a.value;return d.callback=function(){ap||(ap=!0,Gm=m),jm(i,a)},d}function Jb(i,a,d){d=Ui(-1,d),d.tag=3;var m=i.type.getDerivedStateFromError;if(typeof m=="function"){var b=a.value;d.payload=function(){return m(b)},d.callback=function(){jm(i,a)}}var T=i.stateNode;return T!==null&&typeof T.componentDidCatch=="function"&&(d.callback=function(){jm(i,a),typeof m!="function"&&(Ca===null?Ca=new Set([this]):Ca.add(this));var O=a.stack;this.componentDidCatch(a.value,{componentStack:O!==null?O:""})}),d}function Zb(i,a,d){var m=i.pingCache;if(m===null){m=i.pingCache=new OP;var b=new Set;m.set(a,b)}else b=m.get(a),b===void 0&&(b=new Set,m.set(a,b));b.has(d)||(b.add(d),i=KP.bind(null,i,a,d),a.then(i,i))}function e1(i){do{var a;if((a=i.tag===13)&&(a=i.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return i;i=i.return}while(i!==null);return null}function t1(i,a,d,m,b){return(i.mode&1)===0?(i===a?i.flags|=65536:(i.flags|=128,d.flags|=131072,d.flags&=-52805,d.tag===1&&(d.alternate===null?d.tag=17:(a=Ui(-1,1),a.tag=2,wa(d,a,1))),d.lanes|=1),i):(i.flags|=65536,i.lanes=b,i)}var NP=E.ReactCurrentOwner,Bn=!1;function kn(i,a,d,m){a.child=i===null?wb(a,null,d,m):il(a,i.child,d,m)}function r1(i,a,d,m,b){d=d.render;var T=a.ref;return sl(a,b),m=Cm(i,a,d,m,T,b),d=Tm(),i!==null&&!Bn?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~b,Vi(i,a,b)):(gr&&d&&am(a),a.flags|=1,kn(i,a,m,b),a.child)}function n1(i,a,d,m,b){if(i===null){var T=d.type;return typeof T=="function"&&!eg(T)&&T.defaultProps===void 0&&d.compare===null&&d.defaultProps===void 0?(a.tag=15,a.type=T,o1(i,a,T,m,b)):(i=pp(d.type,null,m,a,a.mode,b),i.ref=a.ref,i.return=a,a.child=i)}if(T=i.child,(i.lanes&b)===0){var O=T.memoizedProps;if(d=d.compare,d=d!==null?d:Cc,d(O,m)&&i.ref===a.ref)return Vi(i,a,b)}return a.flags|=1,i=Pa(T,m),i.ref=a.ref,i.return=a,a.child=i}function o1(i,a,d,m,b){if(i!==null){var T=i.memoizedProps;if(Cc(T,m)&&i.ref===a.ref)if(Bn=!1,a.pendingProps=m=T,(i.lanes&b)!==0)(i.flags&131072)!==0&&(Bn=!0);else return a.lanes=i.lanes,Vi(i,a,b)}return _m(i,a,d,m,b)}function i1(i,a,d){var m=a.pendingProps,b=m.children,T=i!==null?i.memoizedState:null;if(m.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},cr(dl,co),co|=d;else{if((d&1073741824)===0)return i=T!==null?T.baseLanes|d:d,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:i,cachePool:null,transitions:null},a.updateQueue=null,cr(dl,co),co|=i,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},m=T!==null?T.baseLanes:d,cr(dl,co),co|=m}else T!==null?(m=T.baseLanes|d,a.memoizedState=null):m=d,cr(dl,co),co|=m;return kn(i,a,b,d),a.child}function a1(i,a){var d=a.ref;(i===null&&d!==null||i!==null&&i.ref!==d)&&(a.flags|=512,a.flags|=2097152)}function _m(i,a,d,m,b){var T=$n(d)?ns:gn.current;return T=tl(a,T),sl(a,b),d=Cm(i,a,d,m,T,b),m=Tm(),i!==null&&!Bn?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~b,Vi(i,a,b)):(gr&&m&&am(a),a.flags|=1,kn(i,a,d,b),a.child)}function s1(i,a,d,m,b){if($n(d)){var T=!0;$d(a)}else T=!1;if(sl(a,b),a.stateNode===null)tp(i,a),Kb(a,d,m),Im(a,d,m,b),m=!0;else if(i===null){var O=a.stateNode,te=a.memoizedProps;O.props=te;var ae=O.context,ye=d.contextType;typeof ye=="object"&&ye!==null?ye=To(ye):(ye=$n(d)?ns:gn.current,ye=tl(a,ye));var Ae=d.getDerivedStateFromProps,Le=typeof Ae=="function"||typeof O.getSnapshotBeforeUpdate=="function";Le||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(te!==m||ae!==ye)&&Qb(a,O,m,ye),xa=!1;var Re=a.memoizedState;O.state=Re,qd(a,m,O,b),ae=a.memoizedState,te!==m||Re!==ae||Nn.current||xa?(typeof Ae=="function"&&(Mm(a,d,Ae,m),ae=a.memoizedState),(te=xa||Xb(a,d,te,m,Re,ae,ye))?(Le||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount()),typeof O.componentDidMount=="function"&&(a.flags|=4194308)):(typeof O.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=m,a.memoizedState=ae),O.props=m,O.state=ae,O.context=ye,m=te):(typeof O.componentDidMount=="function"&&(a.flags|=4194308),m=!1)}else{O=a.stateNode,Cb(i,a),te=a.memoizedProps,ye=a.type===a.elementType?te:Wo(a.type,te),O.props=ye,Le=a.pendingProps,Re=O.context,ae=d.contextType,typeof ae=="object"&&ae!==null?ae=To(ae):(ae=$n(d)?ns:gn.current,ae=tl(a,ae));var rt=d.getDerivedStateFromProps;(Ae=typeof rt=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(te!==Le||Re!==ae)&&Qb(a,O,m,ae),xa=!1,Re=a.memoizedState,O.state=Re,qd(a,m,O,b);var st=a.memoizedState;te!==Le||Re!==st||Nn.current||xa?(typeof rt=="function"&&(Mm(a,d,rt,m),st=a.memoizedState),(ye=xa||Xb(a,d,ye,m,Re,st,ae)||!1)?(Ae||typeof O.UNSAFE_componentWillUpdate!="function"&&typeof O.componentWillUpdate!="function"||(typeof O.componentWillUpdate=="function"&&O.componentWillUpdate(m,st,ae),typeof O.UNSAFE_componentWillUpdate=="function"&&O.UNSAFE_componentWillUpdate(m,st,ae)),typeof O.componentDidUpdate=="function"&&(a.flags|=4),typeof O.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof O.componentDidUpdate!="function"||te===i.memoizedProps&&Re===i.memoizedState||(a.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||te===i.memoizedProps&&Re===i.memoizedState||(a.flags|=1024),a.memoizedProps=m,a.memoizedState=st),O.props=m,O.state=st,O.context=ae,m=ye):(typeof O.componentDidUpdate!="function"||te===i.memoizedProps&&Re===i.memoizedState||(a.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||te===i.memoizedProps&&Re===i.memoizedState||(a.flags|=1024),m=!1)}return Lm(i,a,d,m,T,b)}function Lm(i,a,d,m,b,T){a1(i,a);var O=(a.flags&128)!==0;if(!m&&!O)return b&&pb(a,d,!1),Vi(i,a,T);m=a.stateNode,NP.current=a;var te=O&&typeof d.getDerivedStateFromError!="function"?null:m.render();return a.flags|=1,i!==null&&O?(a.child=il(a,i.child,null,T),a.child=il(a,null,te,T)):kn(i,a,te,T),a.memoizedState=m.state,b&&pb(a,d,!0),a.child}function l1(i){var a=i.stateNode;a.pendingContext?ub(i,a.pendingContext,a.pendingContext!==a.context):a.context&&ub(i,a.context,!1),ym(i,a.containerInfo)}function c1(i,a,d,m,b){return ol(),um(b),a.flags|=256,kn(i,a,d,m),a.child}var Om={dehydrated:null,treeContext:null,retryLane:0};function Nm(i){return{baseLanes:i,cachePool:null,transitions:null}}function u1(i,a,d){var m=a.pendingProps,b=br.current,T=!1,O=(a.flags&128)!==0,te;if((te=O)||(te=i!==null&&i.memoizedState===null?!1:(b&2)!==0),te?(T=!0,a.flags&=-129):(i===null||i.memoizedState!==null)&&(b|=1),cr(br,b&1),i===null)return cm(a),i=a.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((a.mode&1)===0?a.lanes=1:i.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(O=m.children,i=m.fallback,T?(m=a.mode,T=a.child,O={mode:"hidden",children:O},(m&1)===0&&T!==null?(T.childLanes=0,T.pendingProps=O):T=fp(O,m,0,null),i=fs(i,m,d,null),T.return=a,i.return=a,T.sibling=i,a.child=T,a.child.memoizedState=Nm(d),a.memoizedState=Om,i):$m(a,O));if(b=i.memoizedState,b!==null&&(te=b.dehydrated,te!==null))return $P(i,a,O,m,te,b,d);if(T){T=m.fallback,O=a.mode,b=i.child,te=b.sibling;var ae={mode:"hidden",children:m.children};return(O&1)===0&&a.child!==b?(m=a.child,m.childLanes=0,m.pendingProps=ae,a.deletions=null):(m=Pa(b,ae),m.subtreeFlags=b.subtreeFlags&14680064),te!==null?T=Pa(te,T):(T=fs(T,O,d,null),T.flags|=2),T.return=a,m.return=a,m.sibling=T,a.child=m,m=T,T=a.child,O=i.child.memoizedState,O=O===null?Nm(d):{baseLanes:O.baseLanes|d,cachePool:null,transitions:O.transitions},T.memoizedState=O,T.childLanes=i.childLanes&~d,a.memoizedState=Om,m}return T=i.child,i=T.sibling,m=Pa(T,{mode:"visible",children:m.children}),(a.mode&1)===0&&(m.lanes=d),m.return=a,m.sibling=null,i!==null&&(d=a.deletions,d===null?(a.deletions=[i],a.flags|=16):d.push(i)),a.child=m,a.memoizedState=null,m}function $m(i,a){return a=fp({mode:"visible",children:a},i.mode,0,null),a.return=i,i.child=a}function ep(i,a,d,m){return m!==null&&um(m),il(a,i.child,null,d),i=$m(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function $P(i,a,d,m,b,T,O){if(d)return a.flags&256?(a.flags&=-257,m=Am(Error(r(422))),ep(i,a,O,m)):a.memoizedState!==null?(a.child=i.child,a.flags|=128,null):(T=m.fallback,b=a.mode,m=fp({mode:"visible",children:m.children},b,0,null),T=fs(T,b,O,null),T.flags|=2,m.return=a,T.return=a,m.sibling=T,a.child=m,(a.mode&1)!==0&&il(a,i.child,null,O),a.child.memoizedState=Nm(O),a.memoizedState=Om,T);if((a.mode&1)===0)return ep(i,a,O,null);if(b.data==="$!"){if(m=b.nextSibling&&b.nextSibling.dataset,m)var te=m.dgst;return m=te,T=Error(r(419)),m=Am(T,m,void 0),ep(i,a,O,m)}if(te=(O&i.childLanes)!==0,Bn||te){if(m=Kr,m!==null){switch(O&-O){case 4:b=2;break;case 16:b=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:b=32;break;case 536870912:b=268435456;break;default:b=0}b=(b&(m.suspendedLanes|O))!==0?0:b,b!==0&&b!==T.retryLane&&(T.retryLane=b,Hi(i,b),Xo(m,i,b,-1))}return Zm(),m=Am(Error(r(421))),ep(i,a,O,m)}return b.data==="$?"?(a.flags|=128,a.child=i.child,a=QP.bind(null,i),b._reactRetry=a,null):(i=T.treeContext,lo=ga(b.nextSibling),so=a,gr=!0,Vo=null,i!==null&&(So[Co++]=Di,So[Co++]=Fi,So[Co++]=os,Di=i.id,Fi=i.overflow,os=a),a=$m(a,m.children),a.flags|=4096,a)}function d1(i,a,d){i.lanes|=a;var m=i.alternate;m!==null&&(m.lanes|=a),hm(i.return,a,d)}function Bm(i,a,d,m,b){var T=i.memoizedState;T===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:m,tail:d,tailMode:b}:(T.isBackwards=a,T.rendering=null,T.renderingStartTime=0,T.last=m,T.tail=d,T.tailMode=b)}function p1(i,a,d){var m=a.pendingProps,b=m.revealOrder,T=m.tail;if(kn(i,a,m.children,d),m=br.current,(m&2)!==0)m=m&1|2,a.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&d1(i,d,a);else if(i.tag===19)d1(i,d,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}m&=1}if(cr(br,m),(a.mode&1)===0)a.memoizedState=null;else switch(b){case"forwards":for(d=a.child,b=null;d!==null;)i=d.alternate,i!==null&&Gd(i)===null&&(b=d),d=d.sibling;d=b,d===null?(b=a.child,a.child=null):(b=d.sibling,d.sibling=null),Bm(a,!1,b,d,T);break;case"backwards":for(d=null,b=a.child,a.child=null;b!==null;){if(i=b.alternate,i!==null&&Gd(i)===null){a.child=b;break}i=b.sibling,b.sibling=d,d=b,b=i}Bm(a,!0,d,null,T);break;case"together":Bm(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function tp(i,a){(a.mode&1)===0&&i!==null&&(i.alternate=null,a.alternate=null,a.flags|=2)}function Vi(i,a,d){if(i!==null&&(a.dependencies=i.dependencies),cs|=a.lanes,(d&a.childLanes)===0)return null;if(i!==null&&a.child!==i.child)throw Error(r(153));if(a.child!==null){for(i=a.child,d=Pa(i,i.pendingProps),a.child=d,d.return=a;i.sibling!==null;)i=i.sibling,d=d.sibling=Pa(i,i.pendingProps),d.return=a;d.sibling=null}return a.child}function BP(i,a,d){switch(a.tag){case 3:l1(a),ol();break;case 5:kb(a);break;case 1:$n(a.type)&&$d(a);break;case 4:ym(a,a.stateNode.containerInfo);break;case 10:var m=a.type._context,b=a.memoizedProps.value;cr(Ud,m._currentValue),m._currentValue=b;break;case 13:if(m=a.memoizedState,m!==null)return m.dehydrated!==null?(cr(br,br.current&1),a.flags|=128,null):(d&a.child.childLanes)!==0?u1(i,a,d):(cr(br,br.current&1),i=Vi(i,a,d),i!==null?i.sibling:null);cr(br,br.current&1);break;case 19:if(m=(d&a.childLanes)!==0,(i.flags&128)!==0){if(m)return p1(i,a,d);a.flags|=128}if(b=a.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),cr(br,br.current),m)break;return null;case 22:case 23:return a.lanes=0,i1(i,a,d)}return Vi(i,a,d)}var f1,zm,h1,m1;f1=function(i,a){for(var d=a.child;d!==null;){if(d.tag===5||d.tag===6)i.appendChild(d.stateNode);else if(d.tag!==4&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===a)break;for(;d.sibling===null;){if(d.return===null||d.return===a)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},zm=function(){},h1=function(i,a,d,m){var b=i.memoizedProps;if(b!==m){i=a.stateNode,ss(di.current);var T=null;switch(d){case"input":b=Be(i,b),m=Be(i,m),T=[];break;case"select":b=Q({},b,{value:void 0}),m=Q({},m,{value:void 0}),T=[];break;case"textarea":b=Ue(i,b),m=Ue(i,m),T=[];break;default:typeof b.onClick!="function"&&typeof m.onClick=="function"&&(i.onclick=Ld)}qt(d,m);var O;d=null;for(ye in b)if(!m.hasOwnProperty(ye)&&b.hasOwnProperty(ye)&&b[ye]!=null)if(ye==="style"){var te=b[ye];for(O in te)te.hasOwnProperty(O)&&(d||(d={}),d[O]="")}else ye!=="dangerouslySetInnerHTML"&&ye!=="children"&&ye!=="suppressContentEditableWarning"&&ye!=="suppressHydrationWarning"&&ye!=="autoFocus"&&(o.hasOwnProperty(ye)?T||(T=[]):(T=T||[]).push(ye,null));for(ye in m){var ae=m[ye];if(te=b!=null?b[ye]:void 0,m.hasOwnProperty(ye)&&ae!==te&&(ae!=null||te!=null))if(ye==="style")if(te){for(O in te)!te.hasOwnProperty(O)||ae&&ae.hasOwnProperty(O)||(d||(d={}),d[O]="");for(O in ae)ae.hasOwnProperty(O)&&te[O]!==ae[O]&&(d||(d={}),d[O]=ae[O])}else d||(T||(T=[]),T.push(ye,d)),d=ae;else ye==="dangerouslySetInnerHTML"?(ae=ae?ae.__html:void 0,te=te?te.__html:void 0,ae!=null&&te!==ae&&(T=T||[]).push(ye,ae)):ye==="children"?typeof ae!="string"&&typeof ae!="number"||(T=T||[]).push(ye,""+ae):ye!=="suppressContentEditableWarning"&&ye!=="suppressHydrationWarning"&&(o.hasOwnProperty(ye)?(ae!=null&&ye==="onScroll"&&pr("scroll",i),T||te===ae||(T=[])):(T=T||[]).push(ye,ae))}d&&(T=T||[]).push("style",d);var ye=T;(a.updateQueue=ye)&&(a.flags|=4)}},m1=function(i,a,d,m){d!==m&&(a.flags|=4)};function Bc(i,a){if(!gr)switch(i.tailMode){case"hidden":a=i.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?i.tail=null:d.sibling=null;break;case"collapsed":d=i.tail;for(var m=null;d!==null;)d.alternate!==null&&(m=d),d=d.sibling;m===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:m.sibling=null}}function vn(i){var a=i.alternate!==null&&i.alternate.child===i.child,d=0,m=0;if(a)for(var b=i.child;b!==null;)d|=b.lanes|b.childLanes,m|=b.subtreeFlags&14680064,m|=b.flags&14680064,b.return=i,b=b.sibling;else for(b=i.child;b!==null;)d|=b.lanes|b.childLanes,m|=b.subtreeFlags,m|=b.flags,b.return=i,b=b.sibling;return i.subtreeFlags|=m,i.childLanes=d,a}function zP(i,a,d){var m=a.pendingProps;switch(sm(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vn(a),null;case 1:return $n(a.type)&&Nd(),vn(a),null;case 3:return m=a.stateNode,ll(),fr(Nn),fr(gn),xm(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(i===null||i.child===null)&&(Fd(a)?a.flags|=4:i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Vo!==null&&(Qm(Vo),Vo=null))),zm(i,a),vn(a),null;case 5:vm(a);var b=ss(_c.current);if(d=a.type,i!==null&&a.stateNode!=null)h1(i,a,d,m,b),i.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!m){if(a.stateNode===null)throw Error(r(166));return vn(a),null}if(i=ss(di.current),Fd(a)){m=a.stateNode,d=a.type;var T=a.memoizedProps;switch(m[ui]=a,m[Rc]=T,i=(a.mode&1)!==0,d){case"dialog":pr("cancel",m),pr("close",m);break;case"iframe":case"object":case"embed":pr("load",m);break;case"video":case"audio":for(b=0;b<Ec.length;b++)pr(Ec[b],m);break;case"source":pr("error",m);break;case"img":case"image":case"link":pr("error",m),pr("load",m);break;case"details":pr("toggle",m);break;case"input":_e(m,T),pr("invalid",m);break;case"select":m._wrapperState={wasMultiple:!!T.multiple},pr("invalid",m);break;case"textarea":Wt(m,T),pr("invalid",m)}qt(d,T),b=null;for(var O in T)if(T.hasOwnProperty(O)){var te=T[O];O==="children"?typeof te=="string"?m.textContent!==te&&(T.suppressHydrationWarning!==!0&&_d(m.textContent,te,i),b=["children",te]):typeof te=="number"&&m.textContent!==""+te&&(T.suppressHydrationWarning!==!0&&_d(m.textContent,te,i),b=["children",""+te]):o.hasOwnProperty(O)&&te!=null&&O==="onScroll"&&pr("scroll",m)}switch(d){case"input":De(m),ke(m,T,!0);break;case"textarea":De(m),ue(m);break;case"select":case"option":break;default:typeof T.onClick=="function"&&(m.onclick=Ld)}m=b,a.updateQueue=m,m!==null&&(a.flags|=4)}else{O=b.nodeType===9?b:b.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=ve(d)),i==="http://www.w3.org/1999/xhtml"?d==="script"?(i=O.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof m.is=="string"?i=O.createElement(d,{is:m.is}):(i=O.createElement(d),d==="select"&&(O=i,m.multiple?O.multiple=!0:m.size&&(O.size=m.size))):i=O.createElementNS(i,d),i[ui]=a,i[Rc]=m,f1(i,a,!1,!1),a.stateNode=i;e:{switch(O=ur(d,m),d){case"dialog":pr("cancel",i),pr("close",i),b=m;break;case"iframe":case"object":case"embed":pr("load",i),b=m;break;case"video":case"audio":for(b=0;b<Ec.length;b++)pr(Ec[b],i);b=m;break;case"source":pr("error",i),b=m;break;case"img":case"image":case"link":pr("error",i),pr("load",i),b=m;break;case"details":pr("toggle",i),b=m;break;case"input":_e(i,m),b=Be(i,m),pr("invalid",i);break;case"option":b=m;break;case"select":i._wrapperState={wasMultiple:!!m.multiple},b=Q({},m,{value:void 0}),pr("invalid",i);break;case"textarea":Wt(i,m),b=Ue(i,m),pr("invalid",i);break;default:b=m}qt(d,b),te=b;for(T in te)if(te.hasOwnProperty(T)){var ae=te[T];T==="style"?Fe(i,ae):T==="dangerouslySetInnerHTML"?(ae=ae?ae.__html:void 0,ae!=null&&Ve(i,ae)):T==="children"?typeof ae=="string"?(d!=="textarea"||ae!=="")&&Qe(i,ae):typeof ae=="number"&&Qe(i,""+ae):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(o.hasOwnProperty(T)?ae!=null&&T==="onScroll"&&pr("scroll",i):ae!=null&&M(i,T,ae,O))}switch(d){case"input":De(i),ke(i,m,!1);break;case"textarea":De(i),ue(i);break;case"option":m.value!=null&&i.setAttribute("value",""+Ce(m.value));break;case"select":i.multiple=!!m.multiple,T=m.value,T!=null?pt(i,!!m.multiple,T,!1):m.defaultValue!=null&&pt(i,!!m.multiple,m.defaultValue,!0);break;default:typeof b.onClick=="function"&&(i.onclick=Ld)}switch(d){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}}m&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return vn(a),null;case 6:if(i&&a.stateNode!=null)m1(i,a,i.memoizedProps,m);else{if(typeof m!="string"&&a.stateNode===null)throw Error(r(166));if(d=ss(_c.current),ss(di.current),Fd(a)){if(m=a.stateNode,d=a.memoizedProps,m[ui]=a,(T=m.nodeValue!==d)&&(i=so,i!==null))switch(i.tag){case 3:_d(m.nodeValue,d,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&_d(m.nodeValue,d,(i.mode&1)!==0)}T&&(a.flags|=4)}else m=(d.nodeType===9?d:d.ownerDocument).createTextNode(m),m[ui]=a,a.stateNode=m}return vn(a),null;case 13:if(fr(br),m=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(gr&&lo!==null&&(a.mode&1)!==0&&(a.flags&128)===0)vb(),ol(),a.flags|=98560,T=!1;else if(T=Fd(a),m!==null&&m.dehydrated!==null){if(i===null){if(!T)throw Error(r(318));if(T=a.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(r(317));T[ui]=a}else ol(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;vn(a),T=!1}else Vo!==null&&(Qm(Vo),Vo=null),T=!0;if(!T)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=d,a):(m=m!==null,m!==(i!==null&&i.memoizedState!==null)&&m&&(a.child.flags|=8192,(a.mode&1)!==0&&(i===null||(br.current&1)!==0?Vr===0&&(Vr=3):Zm())),a.updateQueue!==null&&(a.flags|=4),vn(a),null);case 4:return ll(),zm(i,a),i===null&&kc(a.stateNode.containerInfo),vn(a),null;case 10:return fm(a.type._context),vn(a),null;case 17:return $n(a.type)&&Nd(),vn(a),null;case 19:if(fr(br),T=a.memoizedState,T===null)return vn(a),null;if(m=(a.flags&128)!==0,O=T.rendering,O===null)if(m)Bc(T,!1);else{if(Vr!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(O=Gd(i),O!==null){for(a.flags|=128,Bc(T,!1),m=O.updateQueue,m!==null&&(a.updateQueue=m,a.flags|=4),a.subtreeFlags=0,m=d,d=a.child;d!==null;)T=d,i=m,T.flags&=14680066,O=T.alternate,O===null?(T.childLanes=0,T.lanes=i,T.child=null,T.subtreeFlags=0,T.memoizedProps=null,T.memoizedState=null,T.updateQueue=null,T.dependencies=null,T.stateNode=null):(T.childLanes=O.childLanes,T.lanes=O.lanes,T.child=O.child,T.subtreeFlags=0,T.deletions=null,T.memoizedProps=O.memoizedProps,T.memoizedState=O.memoizedState,T.updateQueue=O.updateQueue,T.type=O.type,i=O.dependencies,T.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),d=d.sibling;return cr(br,br.current&1|2),a.child}i=i.sibling}T.tail!==null&&At()>pl&&(a.flags|=128,m=!0,Bc(T,!1),a.lanes=4194304)}else{if(!m)if(i=Gd(O),i!==null){if(a.flags|=128,m=!0,d=i.updateQueue,d!==null&&(a.updateQueue=d,a.flags|=4),Bc(T,!0),T.tail===null&&T.tailMode==="hidden"&&!O.alternate&&!gr)return vn(a),null}else 2*At()-T.renderingStartTime>pl&&d!==1073741824&&(a.flags|=128,m=!0,Bc(T,!1),a.lanes=4194304);T.isBackwards?(O.sibling=a.child,a.child=O):(d=T.last,d!==null?d.sibling=O:a.child=O,T.last=O)}return T.tail!==null?(a=T.tail,T.rendering=a,T.tail=a.sibling,T.renderingStartTime=At(),a.sibling=null,d=br.current,cr(br,m?d&1|2:d&1),a):(vn(a),null);case 22:case 23:return Jm(),m=a.memoizedState!==null,i!==null&&i.memoizedState!==null!==m&&(a.flags|=8192),m&&(a.mode&1)!==0?(co&1073741824)!==0&&(vn(a),a.subtreeFlags&6&&(a.flags|=8192)):vn(a),null;case 24:return null;case 25:return null}throw Error(r(156,a.tag))}function DP(i,a){switch(sm(a),a.tag){case 1:return $n(a.type)&&Nd(),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return ll(),fr(Nn),fr(gn),xm(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 5:return vm(a),null;case 13:if(fr(br),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(r(340));ol()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return fr(br),null;case 4:return ll(),null;case 10:return fm(a.type._context),null;case 22:case 23:return Jm(),null;case 24:return null;default:return null}}var rp=!1,bn=!1,FP=typeof WeakSet=="function"?WeakSet:Set,it=null;function ul(i,a){var d=i.ref;if(d!==null)if(typeof d=="function")try{d(null)}catch(m){Sr(i,a,m)}else d.current=null}function Dm(i,a,d){try{d()}catch(m){Sr(i,a,m)}}var g1=!1;function HP(i,a){if(Jh=Sd,i=Xv(),Vh(i)){if("selectionStart"in i)var d={start:i.selectionStart,end:i.selectionEnd};else e:{d=(d=i.ownerDocument)&&d.defaultView||window;var m=d.getSelection&&d.getSelection();if(m&&m.rangeCount!==0){d=m.anchorNode;var b=m.anchorOffset,T=m.focusNode;m=m.focusOffset;try{d.nodeType,T.nodeType}catch{d=null;break e}var O=0,te=-1,ae=-1,ye=0,Ae=0,Le=i,Re=null;t:for(;;){for(var rt;Le!==d||b!==0&&Le.nodeType!==3||(te=O+b),Le!==T||m!==0&&Le.nodeType!==3||(ae=O+m),Le.nodeType===3&&(O+=Le.nodeValue.length),(rt=Le.firstChild)!==null;)Re=Le,Le=rt;for(;;){if(Le===i)break t;if(Re===d&&++ye===b&&(te=O),Re===T&&++Ae===m&&(ae=O),(rt=Le.nextSibling)!==null)break;Le=Re,Re=Le.parentNode}Le=rt}d=te===-1||ae===-1?null:{start:te,end:ae}}else d=null}d=d||{start:0,end:0}}else d=null;for(Zh={focusedElem:i,selectionRange:d},Sd=!1,it=a;it!==null;)if(a=it,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,it=i;else for(;it!==null;){a=it;try{var st=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(st!==null){var lt=st.memoizedProps,Pr=st.memoizedState,pe=a.stateNode,le=pe.getSnapshotBeforeUpdate(a.elementType===a.type?lt:Wo(a.type,lt),Pr);pe.__reactInternalSnapshotBeforeUpdate=le}break;case 3:var fe=a.stateNode.containerInfo;fe.nodeType===1?fe.textContent="":fe.nodeType===9&&fe.documentElement&&fe.removeChild(fe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ze){Sr(a,a.return,ze)}if(i=a.sibling,i!==null){i.return=a.return,it=i;break}it=a.return}return st=g1,g1=!1,st}function zc(i,a,d){var m=a.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var b=m=m.next;do{if((b.tag&i)===i){var T=b.destroy;b.destroy=void 0,T!==void 0&&Dm(a,d,T)}b=b.next}while(b!==m)}}function np(i,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var d=a=a.next;do{if((d.tag&i)===i){var m=d.create;d.destroy=m()}d=d.next}while(d!==a)}}function Fm(i){var a=i.ref;if(a!==null){var d=i.stateNode;switch(i.tag){case 5:i=d;break;default:i=d}typeof a=="function"?a(i):a.current=i}}function y1(i){var a=i.alternate;a!==null&&(i.alternate=null,y1(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&(delete a[ui],delete a[Rc],delete a[nm],delete a[TP],delete a[EP])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function v1(i){return i.tag===5||i.tag===3||i.tag===4}function b1(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||v1(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Hm(i,a,d){var m=i.tag;if(m===5||m===6)i=i.stateNode,a?d.nodeType===8?d.parentNode.insertBefore(i,a):d.insertBefore(i,a):(d.nodeType===8?(a=d.parentNode,a.insertBefore(i,d)):(a=d,a.appendChild(i)),d=d._reactRootContainer,d!=null||a.onclick!==null||(a.onclick=Ld));else if(m!==4&&(i=i.child,i!==null))for(Hm(i,a,d),i=i.sibling;i!==null;)Hm(i,a,d),i=i.sibling}function Um(i,a,d){var m=i.tag;if(m===5||m===6)i=i.stateNode,a?d.insertBefore(i,a):d.appendChild(i);else if(m!==4&&(i=i.child,i!==null))for(Um(i,a,d),i=i.sibling;i!==null;)Um(i,a,d),i=i.sibling}var on=null,qo=!1;function Sa(i,a,d){for(d=d.child;d!==null;)x1(i,a,d),d=d.sibling}function x1(i,a,d){if(Hr&&typeof Hr.onCommitFiberUnmount=="function")try{Hr.onCommitFiberUnmount(io,d)}catch{}switch(d.tag){case 5:bn||ul(d,a);case 6:var m=on,b=qo;on=null,Sa(i,a,d),on=m,qo=b,on!==null&&(qo?(i=on,d=d.stateNode,i.nodeType===8?i.parentNode.removeChild(d):i.removeChild(d)):on.removeChild(d.stateNode));break;case 18:on!==null&&(qo?(i=on,d=d.stateNode,i.nodeType===8?rm(i.parentNode,d):i.nodeType===1&&rm(i,d),yc(i)):rm(on,d.stateNode));break;case 4:m=on,b=qo,on=d.stateNode.containerInfo,qo=!0,Sa(i,a,d),on=m,qo=b;break;case 0:case 11:case 14:case 15:if(!bn&&(m=d.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){b=m=m.next;do{var T=b,O=T.destroy;T=T.tag,O!==void 0&&((T&2)!==0||(T&4)!==0)&&Dm(d,a,O),b=b.next}while(b!==m)}Sa(i,a,d);break;case 1:if(!bn&&(ul(d,a),m=d.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=d.memoizedProps,m.state=d.memoizedState,m.componentWillUnmount()}catch(te){Sr(d,a,te)}Sa(i,a,d);break;case 21:Sa(i,a,d);break;case 22:d.mode&1?(bn=(m=bn)||d.memoizedState!==null,Sa(i,a,d),bn=m):Sa(i,a,d);break;default:Sa(i,a,d)}}function w1(i){var a=i.updateQueue;if(a!==null){i.updateQueue=null;var d=i.stateNode;d===null&&(d=i.stateNode=new FP),a.forEach(function(m){var b=YP.bind(null,i,m);d.has(m)||(d.add(m),m.then(b,b))})}}function Go(i,a){var d=a.deletions;if(d!==null)for(var m=0;m<d.length;m++){var b=d[m];try{var T=i,O=a,te=O;e:for(;te!==null;){switch(te.tag){case 5:on=te.stateNode,qo=!1;break e;case 3:on=te.stateNode.containerInfo,qo=!0;break e;case 4:on=te.stateNode.containerInfo,qo=!0;break e}te=te.return}if(on===null)throw Error(r(160));x1(T,O,b),on=null,qo=!1;var ae=b.alternate;ae!==null&&(ae.return=null),b.return=null}catch(ye){Sr(b,a,ye)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)S1(a,i),a=a.sibling}function S1(i,a){var d=i.alternate,m=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(Go(a,i),fi(i),m&4){try{zc(3,i,i.return),np(3,i)}catch(lt){Sr(i,i.return,lt)}try{zc(5,i,i.return)}catch(lt){Sr(i,i.return,lt)}}break;case 1:Go(a,i),fi(i),m&512&&d!==null&&ul(d,d.return);break;case 5:if(Go(a,i),fi(i),m&512&&d!==null&&ul(d,d.return),i.flags&32){var b=i.stateNode;try{Qe(b,"")}catch(lt){Sr(i,i.return,lt)}}if(m&4&&(b=i.stateNode,b!=null)){var T=i.memoizedProps,O=d!==null?d.memoizedProps:T,te=i.type,ae=i.updateQueue;if(i.updateQueue=null,ae!==null)try{te==="input"&&T.type==="radio"&&T.name!=null&&Ke(b,T),ur(te,O);var ye=ur(te,T);for(O=0;O<ae.length;O+=2){var Ae=ae[O],Le=ae[O+1];Ae==="style"?Fe(b,Le):Ae==="dangerouslySetInnerHTML"?Ve(b,Le):Ae==="children"?Qe(b,Le):M(b,Ae,Le,ye)}switch(te){case"input":dt(b,T);break;case"textarea":Tt(b,T);break;case"select":var Re=b._wrapperState.wasMultiple;b._wrapperState.wasMultiple=!!T.multiple;var rt=T.value;rt!=null?pt(b,!!T.multiple,rt,!1):Re!==!!T.multiple&&(T.defaultValue!=null?pt(b,!!T.multiple,T.defaultValue,!0):pt(b,!!T.multiple,T.multiple?[]:"",!1))}b[Rc]=T}catch(lt){Sr(i,i.return,lt)}}break;case 6:if(Go(a,i),fi(i),m&4){if(i.stateNode===null)throw Error(r(162));b=i.stateNode,T=i.memoizedProps;try{b.nodeValue=T}catch(lt){Sr(i,i.return,lt)}}break;case 3:if(Go(a,i),fi(i),m&4&&d!==null&&d.memoizedState.isDehydrated)try{yc(a.containerInfo)}catch(lt){Sr(i,i.return,lt)}break;case 4:Go(a,i),fi(i);break;case 13:Go(a,i),fi(i),b=i.child,b.flags&8192&&(T=b.memoizedState!==null,b.stateNode.isHidden=T,!T||b.alternate!==null&&b.alternate.memoizedState!==null||(qm=At())),m&4&&w1(i);break;case 22:if(Ae=d!==null&&d.memoizedState!==null,i.mode&1?(bn=(ye=bn)||Ae,Go(a,i),bn=ye):Go(a,i),fi(i),m&8192){if(ye=i.memoizedState!==null,(i.stateNode.isHidden=ye)&&!Ae&&(i.mode&1)!==0)for(it=i,Ae=i.child;Ae!==null;){for(Le=it=Ae;it!==null;){switch(Re=it,rt=Re.child,Re.tag){case 0:case 11:case 14:case 15:zc(4,Re,Re.return);break;case 1:ul(Re,Re.return);var st=Re.stateNode;if(typeof st.componentWillUnmount=="function"){m=Re,d=Re.return;try{a=m,st.props=a.memoizedProps,st.state=a.memoizedState,st.componentWillUnmount()}catch(lt){Sr(m,d,lt)}}break;case 5:ul(Re,Re.return);break;case 22:if(Re.memoizedState!==null){E1(Le);continue}}rt!==null?(rt.return=Re,it=rt):E1(Le)}Ae=Ae.sibling}e:for(Ae=null,Le=i;;){if(Le.tag===5){if(Ae===null){Ae=Le;try{b=Le.stateNode,ye?(T=b.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none"):(te=Le.stateNode,ae=Le.memoizedProps.style,O=ae!=null&&ae.hasOwnProperty("display")?ae.display:null,te.style.display=$e("display",O))}catch(lt){Sr(i,i.return,lt)}}}else if(Le.tag===6){if(Ae===null)try{Le.stateNode.nodeValue=ye?"":Le.memoizedProps}catch(lt){Sr(i,i.return,lt)}}else if((Le.tag!==22&&Le.tag!==23||Le.memoizedState===null||Le===i)&&Le.child!==null){Le.child.return=Le,Le=Le.child;continue}if(Le===i)break e;for(;Le.sibling===null;){if(Le.return===null||Le.return===i)break e;Ae===Le&&(Ae=null),Le=Le.return}Ae===Le&&(Ae=null),Le.sibling.return=Le.return,Le=Le.sibling}}break;case 19:Go(a,i),fi(i),m&4&&w1(i);break;case 21:break;default:Go(a,i),fi(i)}}function fi(i){var a=i.flags;if(a&2){try{e:{for(var d=i.return;d!==null;){if(v1(d)){var m=d;break e}d=d.return}throw Error(r(160))}switch(m.tag){case 5:var b=m.stateNode;m.flags&32&&(Qe(b,""),m.flags&=-33);var T=b1(i);Um(i,T,b);break;case 3:case 4:var O=m.stateNode.containerInfo,te=b1(i);Hm(i,te,O);break;default:throw Error(r(161))}}catch(ae){Sr(i,i.return,ae)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function UP(i,a,d){it=i,C1(i)}function C1(i,a,d){for(var m=(i.mode&1)!==0;it!==null;){var b=it,T=b.child;if(b.tag===22&&m){var O=b.memoizedState!==null||rp;if(!O){var te=b.alternate,ae=te!==null&&te.memoizedState!==null||bn;te=rp;var ye=bn;if(rp=O,(bn=ae)&&!ye)for(it=b;it!==null;)O=it,ae=O.child,O.tag===22&&O.memoizedState!==null?k1(b):ae!==null?(ae.return=O,it=ae):k1(b);for(;T!==null;)it=T,C1(T),T=T.sibling;it=b,rp=te,bn=ye}T1(i)}else(b.subtreeFlags&8772)!==0&&T!==null?(T.return=b,it=T):T1(i)}}function T1(i){for(;it!==null;){var a=it;if((a.flags&8772)!==0){var d=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:bn||np(5,a);break;case 1:var m=a.stateNode;if(a.flags&4&&!bn)if(d===null)m.componentDidMount();else{var b=a.elementType===a.type?d.memoizedProps:Wo(a.type,d.memoizedProps);m.componentDidUpdate(b,d.memoizedState,m.__reactInternalSnapshotBeforeUpdate)}var T=a.updateQueue;T!==null&&Eb(a,T,m);break;case 3:var O=a.updateQueue;if(O!==null){if(d=null,a.child!==null)switch(a.child.tag){case 5:d=a.child.stateNode;break;case 1:d=a.child.stateNode}Eb(a,O,d)}break;case 5:var te=a.stateNode;if(d===null&&a.flags&4){d=te;var ae=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":ae.autoFocus&&d.focus();break;case"img":ae.src&&(d.src=ae.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var ye=a.alternate;if(ye!==null){var Ae=ye.memoizedState;if(Ae!==null){var Le=Ae.dehydrated;Le!==null&&yc(Le)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}bn||a.flags&512&&Fm(a)}catch(Re){Sr(a,a.return,Re)}}if(a===i){it=null;break}if(d=a.sibling,d!==null){d.return=a.return,it=d;break}it=a.return}}function E1(i){for(;it!==null;){var a=it;if(a===i){it=null;break}var d=a.sibling;if(d!==null){d.return=a.return,it=d;break}it=a.return}}function k1(i){for(;it!==null;){var a=it;try{switch(a.tag){case 0:case 11:case 15:var d=a.return;try{np(4,a)}catch(ae){Sr(a,d,ae)}break;case 1:var m=a.stateNode;if(typeof m.componentDidMount=="function"){var b=a.return;try{m.componentDidMount()}catch(ae){Sr(a,b,ae)}}var T=a.return;try{Fm(a)}catch(ae){Sr(a,T,ae)}break;case 5:var O=a.return;try{Fm(a)}catch(ae){Sr(a,O,ae)}}}catch(ae){Sr(a,a.return,ae)}if(a===i){it=null;break}var te=a.sibling;if(te!==null){te.return=a.return,it=te;break}it=a.return}}var VP=Math.ceil,op=E.ReactCurrentDispatcher,Vm=E.ReactCurrentOwner,ko=E.ReactCurrentBatchConfig,Ht=0,Kr=null,Or=null,an=0,co=0,dl=ya(0),Vr=0,Dc=null,cs=0,ip=0,Wm=0,Fc=null,zn=null,qm=0,pl=1/0,Wi=null,ap=!1,Gm=null,Ca=null,sp=!1,Ta=null,lp=0,Hc=0,Xm=null,cp=-1,up=0;function Pn(){return(Ht&6)!==0?At():cp!==-1?cp:cp=At()}function Ea(i){return(i.mode&1)===0?1:(Ht&2)!==0&&an!==0?an&-an:PP.transition!==null?(up===0&&(up=bv()),up):(i=er,i!==0||(i=window.event,i=i===void 0?16:Rv(i.type)),i)}function Xo(i,a,d,m){if(50<Hc)throw Hc=0,Xm=null,Error(r(185));pc(i,d,m),((Ht&2)===0||i!==Kr)&&(i===Kr&&((Ht&2)===0&&(ip|=d),Vr===4&&ka(i,an)),Dn(i,m),d===1&&Ht===0&&(a.mode&1)===0&&(pl=At()+500,Bd&&ba()))}function Dn(i,a){var d=i.callbackNode;Pk(i,a);var m=bd(i,i===Kr?an:0);if(m===0)d!==null&&wt(d),i.callbackNode=null,i.callbackPriority=0;else if(a=m&-m,i.callbackPriority!==a){if(d!=null&&wt(d),a===1)i.tag===0?kP(R1.bind(null,i)):fb(R1.bind(null,i)),SP(function(){(Ht&6)===0&&ba()}),d=null;else{switch(xv(m)){case 1:d=ca;break;case 4:d=uc;break;case 16:d=$i;break;case 536870912:d=Ft;break;default:d=$i}d=N1(d,P1.bind(null,i))}i.callbackPriority=a,i.callbackNode=d}}function P1(i,a){if(cp=-1,up=0,(Ht&6)!==0)throw Error(r(327));var d=i.callbackNode;if(fl()&&i.callbackNode!==d)return null;var m=bd(i,i===Kr?an:0);if(m===0)return null;if((m&30)!==0||(m&i.expiredLanes)!==0||a)a=dp(i,m);else{a=m;var b=Ht;Ht|=2;var T=I1();(Kr!==i||an!==a)&&(Wi=null,pl=At()+500,ds(i,a));do try{GP();break}catch(te){M1(i,te)}while(!0);pm(),op.current=T,Ht=b,Or!==null?a=0:(Kr=null,an=0,a=Vr)}if(a!==0){if(a===2&&(b=Rh(i),b!==0&&(m=b,a=Km(i,b))),a===1)throw d=Dc,ds(i,0),ka(i,m),Dn(i,At()),d;if(a===6)ka(i,m);else{if(b=i.current.alternate,(m&30)===0&&!WP(b)&&(a=dp(i,m),a===2&&(T=Rh(i),T!==0&&(m=T,a=Km(i,T))),a===1))throw d=Dc,ds(i,0),ka(i,m),Dn(i,At()),d;switch(i.finishedWork=b,i.finishedLanes=m,a){case 0:case 1:throw Error(r(345));case 2:ps(i,zn,Wi);break;case 3:if(ka(i,m),(m&130023424)===m&&(a=qm+500-At(),10<a)){if(bd(i,0)!==0)break;if(b=i.suspendedLanes,(b&m)!==m){Pn(),i.pingedLanes|=i.suspendedLanes&b;break}i.timeoutHandle=tm(ps.bind(null,i,zn,Wi),a);break}ps(i,zn,Wi);break;case 4:if(ka(i,m),(m&4194240)===m)break;for(a=i.eventTimes,b=-1;0<m;){var O=31-Ho(m);T=1<<O,O=a[O],O>b&&(b=O),m&=~T}if(m=b,m=At()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*VP(m/1960))-m,10<m){i.timeoutHandle=tm(ps.bind(null,i,zn,Wi),m);break}ps(i,zn,Wi);break;case 5:ps(i,zn,Wi);break;default:throw Error(r(329))}}}return Dn(i,At()),i.callbackNode===d?P1.bind(null,i):null}function Km(i,a){var d=Fc;return i.current.memoizedState.isDehydrated&&(ds(i,a).flags|=256),i=dp(i,a),i!==2&&(a=zn,zn=d,a!==null&&Qm(a)),i}function Qm(i){zn===null?zn=i:zn.push.apply(zn,i)}function WP(i){for(var a=i;;){if(a.flags&16384){var d=a.updateQueue;if(d!==null&&(d=d.stores,d!==null))for(var m=0;m<d.length;m++){var b=d[m],T=b.getSnapshot;b=b.value;try{if(!Uo(T(),b))return!1}catch{return!1}}}if(d=a.child,a.subtreeFlags&16384&&d!==null)d.return=a,a=d;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ka(i,a){for(a&=~Wm,a&=~ip,i.suspendedLanes|=a,i.pingedLanes&=~a,i=i.expirationTimes;0<a;){var d=31-Ho(a),m=1<<d;i[d]=-1,a&=~m}}function R1(i){if((Ht&6)!==0)throw Error(r(327));fl();var a=bd(i,0);if((a&1)===0)return Dn(i,At()),null;var d=dp(i,a);if(i.tag!==0&&d===2){var m=Rh(i);m!==0&&(a=m,d=Km(i,m))}if(d===1)throw d=Dc,ds(i,0),ka(i,a),Dn(i,At()),d;if(d===6)throw Error(r(345));return i.finishedWork=i.current.alternate,i.finishedLanes=a,ps(i,zn,Wi),Dn(i,At()),null}function Ym(i,a){var d=Ht;Ht|=1;try{return i(a)}finally{Ht=d,Ht===0&&(pl=At()+500,Bd&&ba())}}function us(i){Ta!==null&&Ta.tag===0&&(Ht&6)===0&&fl();var a=Ht;Ht|=1;var d=ko.transition,m=er;try{if(ko.transition=null,er=1,i)return i()}finally{er=m,ko.transition=d,Ht=a,(Ht&6)===0&&ba()}}function Jm(){co=dl.current,fr(dl)}function ds(i,a){i.finishedWork=null,i.finishedLanes=0;var d=i.timeoutHandle;if(d!==-1&&(i.timeoutHandle=-1,wP(d)),Or!==null)for(d=Or.return;d!==null;){var m=d;switch(sm(m),m.tag){case 1:m=m.type.childContextTypes,m!=null&&Nd();break;case 3:ll(),fr(Nn),fr(gn),xm();break;case 5:vm(m);break;case 4:ll();break;case 13:fr(br);break;case 19:fr(br);break;case 10:fm(m.type._context);break;case 22:case 23:Jm()}d=d.return}if(Kr=i,Or=i=Pa(i.current,null),an=co=a,Vr=0,Dc=null,Wm=ip=cs=0,zn=Fc=null,as!==null){for(a=0;a<as.length;a++)if(d=as[a],m=d.interleaved,m!==null){d.interleaved=null;var b=m.next,T=d.pending;if(T!==null){var O=T.next;T.next=b,m.next=O}d.pending=m}as=null}return i}function M1(i,a){do{var d=Or;try{if(pm(),Xd.current=Jd,Kd){for(var m=xr.memoizedState;m!==null;){var b=m.queue;b!==null&&(b.pending=null),m=m.next}Kd=!1}if(ls=0,Xr=Ur=xr=null,Lc=!1,Oc=0,Vm.current=null,d===null||d.return===null){Vr=1,Dc=a,Or=null;break}e:{var T=i,O=d.return,te=d,ae=a;if(a=an,te.flags|=32768,ae!==null&&typeof ae=="object"&&typeof ae.then=="function"){var ye=ae,Ae=te,Le=Ae.tag;if((Ae.mode&1)===0&&(Le===0||Le===11||Le===15)){var Re=Ae.alternate;Re?(Ae.updateQueue=Re.updateQueue,Ae.memoizedState=Re.memoizedState,Ae.lanes=Re.lanes):(Ae.updateQueue=null,Ae.memoizedState=null)}var rt=e1(O);if(rt!==null){rt.flags&=-257,t1(rt,O,te,T,a),rt.mode&1&&Zb(T,ye,a),a=rt,ae=ye;var st=a.updateQueue;if(st===null){var lt=new Set;lt.add(ae),a.updateQueue=lt}else st.add(ae);break e}else{if((a&1)===0){Zb(T,ye,a),Zm();break e}ae=Error(r(426))}}else if(gr&&te.mode&1){var Pr=e1(O);if(Pr!==null){(Pr.flags&65536)===0&&(Pr.flags|=256),t1(Pr,O,te,T,a),um(cl(ae,te));break e}}T=ae=cl(ae,te),Vr!==4&&(Vr=2),Fc===null?Fc=[T]:Fc.push(T),T=O;do{switch(T.tag){case 3:T.flags|=65536,a&=-a,T.lanes|=a;var pe=Yb(T,ae,a);Tb(T,pe);break e;case 1:te=ae;var le=T.type,fe=T.stateNode;if((T.flags&128)===0&&(typeof le.getDerivedStateFromError=="function"||fe!==null&&typeof fe.componentDidCatch=="function"&&(Ca===null||!Ca.has(fe)))){T.flags|=65536,a&=-a,T.lanes|=a;var ze=Jb(T,te,a);Tb(T,ze);break e}}T=T.return}while(T!==null)}j1(d)}catch(ut){a=ut,Or===d&&d!==null&&(Or=d=d.return);continue}break}while(!0)}function I1(){var i=op.current;return op.current=Jd,i===null?Jd:i}function Zm(){(Vr===0||Vr===3||Vr===2)&&(Vr=4),Kr===null||(cs&268435455)===0&&(ip&268435455)===0||ka(Kr,an)}function dp(i,a){var d=Ht;Ht|=2;var m=I1();(Kr!==i||an!==a)&&(Wi=null,ds(i,a));do try{qP();break}catch(b){M1(i,b)}while(!0);if(pm(),Ht=d,op.current=m,Or!==null)throw Error(r(261));return Kr=null,an=0,Vr}function qP(){for(;Or!==null;)A1(Or)}function GP(){for(;Or!==null&&!Pt();)A1(Or)}function A1(i){var a=O1(i.alternate,i,co);i.memoizedProps=i.pendingProps,a===null?j1(i):Or=a,Vm.current=null}function j1(i){var a=i;do{var d=a.alternate;if(i=a.return,(a.flags&32768)===0){if(d=zP(d,a,co),d!==null){Or=d;return}}else{if(d=DP(d,a),d!==null){d.flags&=32767,Or=d;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Vr=6,Or=null;return}}if(a=a.sibling,a!==null){Or=a;return}Or=a=i}while(a!==null);Vr===0&&(Vr=5)}function ps(i,a,d){var m=er,b=ko.transition;try{ko.transition=null,er=1,XP(i,a,d,m)}finally{ko.transition=b,er=m}return null}function XP(i,a,d,m){do fl();while(Ta!==null);if((Ht&6)!==0)throw Error(r(327));d=i.finishedWork;var b=i.finishedLanes;if(d===null)return null;if(i.finishedWork=null,i.finishedLanes=0,d===i.current)throw Error(r(177));i.callbackNode=null,i.callbackPriority=0;var T=d.lanes|d.childLanes;if(Rk(i,T),i===Kr&&(Or=Kr=null,an=0),(d.subtreeFlags&2064)===0&&(d.flags&2064)===0||sp||(sp=!0,N1($i,function(){return fl(),null})),T=(d.flags&15990)!==0,(d.subtreeFlags&15990)!==0||T){T=ko.transition,ko.transition=null;var O=er;er=1;var te=Ht;Ht|=4,Vm.current=null,HP(i,d),S1(d,i),hP(Zh),Sd=!!Jh,Zh=Jh=null,i.current=d,UP(d),Lr(),Ht=te,er=O,ko.transition=T}else i.current=d;if(sp&&(sp=!1,Ta=i,lp=b),T=i.pendingLanes,T===0&&(Ca=null),ts(d.stateNode),Dn(i,At()),a!==null)for(m=i.onRecoverableError,d=0;d<a.length;d++)b=a[d],m(b.value,{componentStack:b.stack,digest:b.digest});if(ap)throw ap=!1,i=Gm,Gm=null,i;return(lp&1)!==0&&i.tag!==0&&fl(),T=i.pendingLanes,(T&1)!==0?i===Xm?Hc++:(Hc=0,Xm=i):Hc=0,ba(),null}function fl(){if(Ta!==null){var i=xv(lp),a=ko.transition,d=er;try{if(ko.transition=null,er=16>i?16:i,Ta===null)var m=!1;else{if(i=Ta,Ta=null,lp=0,(Ht&6)!==0)throw Error(r(331));var b=Ht;for(Ht|=4,it=i.current;it!==null;){var T=it,O=T.child;if((it.flags&16)!==0){var te=T.deletions;if(te!==null){for(var ae=0;ae<te.length;ae++){var ye=te[ae];for(it=ye;it!==null;){var Ae=it;switch(Ae.tag){case 0:case 11:case 15:zc(8,Ae,T)}var Le=Ae.child;if(Le!==null)Le.return=Ae,it=Le;else for(;it!==null;){Ae=it;var Re=Ae.sibling,rt=Ae.return;if(y1(Ae),Ae===ye){it=null;break}if(Re!==null){Re.return=rt,it=Re;break}it=rt}}}var st=T.alternate;if(st!==null){var lt=st.child;if(lt!==null){st.child=null;do{var Pr=lt.sibling;lt.sibling=null,lt=Pr}while(lt!==null)}}it=T}}if((T.subtreeFlags&2064)!==0&&O!==null)O.return=T,it=O;else e:for(;it!==null;){if(T=it,(T.flags&2048)!==0)switch(T.tag){case 0:case 11:case 15:zc(9,T,T.return)}var pe=T.sibling;if(pe!==null){pe.return=T.return,it=pe;break e}it=T.return}}var le=i.current;for(it=le;it!==null;){O=it;var fe=O.child;if((O.subtreeFlags&2064)!==0&&fe!==null)fe.return=O,it=fe;else e:for(O=le;it!==null;){if(te=it,(te.flags&2048)!==0)try{switch(te.tag){case 0:case 11:case 15:np(9,te)}}catch(ut){Sr(te,te.return,ut)}if(te===O){it=null;break e}var ze=te.sibling;if(ze!==null){ze.return=te.return,it=ze;break e}it=te.return}}if(Ht=b,ba(),Hr&&typeof Hr.onPostCommitFiberRoot=="function")try{Hr.onPostCommitFiberRoot(io,i)}catch{}m=!0}return m}finally{er=d,ko.transition=a}}return!1}function _1(i,a,d){a=cl(d,a),a=Yb(i,a,1),i=wa(i,a,1),a=Pn(),i!==null&&(pc(i,1,a),Dn(i,a))}function Sr(i,a,d){if(i.tag===3)_1(i,i,d);else for(;a!==null;){if(a.tag===3){_1(a,i,d);break}else if(a.tag===1){var m=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Ca===null||!Ca.has(m))){i=cl(d,i),i=Jb(a,i,1),a=wa(a,i,1),i=Pn(),a!==null&&(pc(a,1,i),Dn(a,i));break}}a=a.return}}function KP(i,a,d){var m=i.pingCache;m!==null&&m.delete(a),a=Pn(),i.pingedLanes|=i.suspendedLanes&d,Kr===i&&(an&d)===d&&(Vr===4||Vr===3&&(an&130023424)===an&&500>At()-qm?ds(i,0):Wm|=d),Dn(i,a)}function L1(i,a){a===0&&((i.mode&1)===0?a=1:(a=vd,vd<<=1,(vd&130023424)===0&&(vd=4194304)));var d=Pn();i=Hi(i,a),i!==null&&(pc(i,a,d),Dn(i,d))}function QP(i){var a=i.memoizedState,d=0;a!==null&&(d=a.retryLane),L1(i,d)}function YP(i,a){var d=0;switch(i.tag){case 13:var m=i.stateNode,b=i.memoizedState;b!==null&&(d=b.retryLane);break;case 19:m=i.stateNode;break;default:throw Error(r(314))}m!==null&&m.delete(a),L1(i,d)}var O1;O1=function(i,a,d){if(i!==null)if(i.memoizedProps!==a.pendingProps||Nn.current)Bn=!0;else{if((i.lanes&d)===0&&(a.flags&128)===0)return Bn=!1,BP(i,a,d);Bn=(i.flags&131072)!==0}else Bn=!1,gr&&(a.flags&1048576)!==0&&hb(a,Dd,a.index);switch(a.lanes=0,a.tag){case 2:var m=a.type;tp(i,a),i=a.pendingProps;var b=tl(a,gn.current);sl(a,d),b=Cm(null,a,m,i,b,d);var T=Tm();return a.flags|=1,typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,$n(m)?(T=!0,$d(a)):T=!1,a.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,gm(a),b.updater=Zd,a.stateNode=b,b._reactInternals=a,Im(a,m,i,d),a=Lm(null,a,m,!0,T,d)):(a.tag=0,gr&&T&&am(a),kn(null,a,b,d),a=a.child),a;case 16:m=a.elementType;e:{switch(tp(i,a),i=a.pendingProps,b=m._init,m=b(m._payload),a.type=m,b=a.tag=ZP(m),i=Wo(m,i),b){case 0:a=_m(null,a,m,i,d);break e;case 1:a=s1(null,a,m,i,d);break e;case 11:a=r1(null,a,m,i,d);break e;case 14:a=n1(null,a,m,Wo(m.type,i),d);break e}throw Error(r(306,m,""))}return a;case 0:return m=a.type,b=a.pendingProps,b=a.elementType===m?b:Wo(m,b),_m(i,a,m,b,d);case 1:return m=a.type,b=a.pendingProps,b=a.elementType===m?b:Wo(m,b),s1(i,a,m,b,d);case 3:e:{if(l1(a),i===null)throw Error(r(387));m=a.pendingProps,T=a.memoizedState,b=T.element,Cb(i,a),qd(a,m,null,d);var O=a.memoizedState;if(m=O.element,T.isDehydrated)if(T={element:m,isDehydrated:!1,cache:O.cache,pendingSuspenseBoundaries:O.pendingSuspenseBoundaries,transitions:O.transitions},a.updateQueue.baseState=T,a.memoizedState=T,a.flags&256){b=cl(Error(r(423)),a),a=c1(i,a,m,d,b);break e}else if(m!==b){b=cl(Error(r(424)),a),a=c1(i,a,m,d,b);break e}else for(lo=ga(a.stateNode.containerInfo.firstChild),so=a,gr=!0,Vo=null,d=wb(a,null,m,d),a.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(ol(),m===b){a=Vi(i,a,d);break e}kn(i,a,m,d)}a=a.child}return a;case 5:return kb(a),i===null&&cm(a),m=a.type,b=a.pendingProps,T=i!==null?i.memoizedProps:null,O=b.children,em(m,b)?O=null:T!==null&&em(m,T)&&(a.flags|=32),a1(i,a),kn(i,a,O,d),a.child;case 6:return i===null&&cm(a),null;case 13:return u1(i,a,d);case 4:return ym(a,a.stateNode.containerInfo),m=a.pendingProps,i===null?a.child=il(a,null,m,d):kn(i,a,m,d),a.child;case 11:return m=a.type,b=a.pendingProps,b=a.elementType===m?b:Wo(m,b),r1(i,a,m,b,d);case 7:return kn(i,a,a.pendingProps,d),a.child;case 8:return kn(i,a,a.pendingProps.children,d),a.child;case 12:return kn(i,a,a.pendingProps.children,d),a.child;case 10:e:{if(m=a.type._context,b=a.pendingProps,T=a.memoizedProps,O=b.value,cr(Ud,m._currentValue),m._currentValue=O,T!==null)if(Uo(T.value,O)){if(T.children===b.children&&!Nn.current){a=Vi(i,a,d);break e}}else for(T=a.child,T!==null&&(T.return=a);T!==null;){var te=T.dependencies;if(te!==null){O=T.child;for(var ae=te.firstContext;ae!==null;){if(ae.context===m){if(T.tag===1){ae=Ui(-1,d&-d),ae.tag=2;var ye=T.updateQueue;if(ye!==null){ye=ye.shared;var Ae=ye.pending;Ae===null?ae.next=ae:(ae.next=Ae.next,Ae.next=ae),ye.pending=ae}}T.lanes|=d,ae=T.alternate,ae!==null&&(ae.lanes|=d),hm(T.return,d,a),te.lanes|=d;break}ae=ae.next}}else if(T.tag===10)O=T.type===a.type?null:T.child;else if(T.tag===18){if(O=T.return,O===null)throw Error(r(341));O.lanes|=d,te=O.alternate,te!==null&&(te.lanes|=d),hm(O,d,a),O=T.sibling}else O=T.child;if(O!==null)O.return=T;else for(O=T;O!==null;){if(O===a){O=null;break}if(T=O.sibling,T!==null){T.return=O.return,O=T;break}O=O.return}T=O}kn(i,a,b.children,d),a=a.child}return a;case 9:return b=a.type,m=a.pendingProps.children,sl(a,d),b=To(b),m=m(b),a.flags|=1,kn(i,a,m,d),a.child;case 14:return m=a.type,b=Wo(m,a.pendingProps),b=Wo(m.type,b),n1(i,a,m,b,d);case 15:return o1(i,a,a.type,a.pendingProps,d);case 17:return m=a.type,b=a.pendingProps,b=a.elementType===m?b:Wo(m,b),tp(i,a),a.tag=1,$n(m)?(i=!0,$d(a)):i=!1,sl(a,d),Kb(a,m,b),Im(a,m,b,d),Lm(null,a,m,!0,i,d);case 19:return p1(i,a,d);case 22:return i1(i,a,d)}throw Error(r(156,a.tag))};function N1(i,a){return tt(i,a)}function JP(i,a,d,m){this.tag=i,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Po(i,a,d,m){return new JP(i,a,d,m)}function eg(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ZP(i){if(typeof i=="function")return eg(i)?1:0;if(i!=null){if(i=i.$$typeof,i===k)return 11;if(i===L)return 14}return 2}function Pa(i,a){var d=i.alternate;return d===null?(d=Po(i.tag,a,i.key,i.mode),d.elementType=i.elementType,d.type=i.type,d.stateNode=i.stateNode,d.alternate=i,i.alternate=d):(d.pendingProps=a,d.type=i.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=i.flags&14680064,d.childLanes=i.childLanes,d.lanes=i.lanes,d.child=i.child,d.memoizedProps=i.memoizedProps,d.memoizedState=i.memoizedState,d.updateQueue=i.updateQueue,a=i.dependencies,d.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},d.sibling=i.sibling,d.index=i.index,d.ref=i.ref,d}function pp(i,a,d,m,b,T){var O=2;if(m=i,typeof i=="function")eg(i)&&(O=1);else if(typeof i=="string")O=5;else e:switch(i){case F:return fs(d.children,b,T,a);case j:O=8,b|=8;break;case H:return i=Po(12,d,a,b|2),i.elementType=H,i.lanes=T,i;case q:return i=Po(13,d,a,b),i.elementType=q,i.lanes=T,i;case U:return i=Po(19,d,a,b),i.elementType=U,i.lanes=T,i;case K:return fp(d,b,T,a);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case G:O=10;break e;case N:O=9;break e;case k:O=11;break e;case L:O=14;break e;case W:O=16,m=null;break e}throw Error(r(130,i==null?i:typeof i,""))}return a=Po(O,d,a,b),a.elementType=i,a.type=m,a.lanes=T,a}function fs(i,a,d,m){return i=Po(7,i,m,a),i.lanes=d,i}function fp(i,a,d,m){return i=Po(22,i,m,a),i.elementType=K,i.lanes=d,i.stateNode={isHidden:!1},i}function tg(i,a,d){return i=Po(6,i,null,a),i.lanes=d,i}function rg(i,a,d){return a=Po(4,i.children!==null?i.children:[],i.key,a),a.lanes=d,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}function e4(i,a,d,m,b){this.tag=a,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mh(0),this.expirationTimes=Mh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mh(0),this.identifierPrefix=m,this.onRecoverableError=b,this.mutableSourceEagerHydrationData=null}function ng(i,a,d,m,b,T,O,te,ae){return i=new e4(i,a,d,te,ae),a===1?(a=1,T===!0&&(a|=8)):a=0,T=Po(3,null,null,a),i.current=T,T.stateNode=i,T.memoizedState={element:m,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null},gm(T),i}function t4(i,a,d){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:A,key:m==null?null:""+m,children:i,containerInfo:a,implementation:d}}function $1(i){if(!i)return va;i=i._reactInternals;e:{if(mn(i)!==i||i.tag!==1)throw Error(r(170));var a=i;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if($n(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(r(171))}if(i.tag===1){var d=i.type;if($n(d))return db(i,d,a)}return a}function B1(i,a,d,m,b,T,O,te,ae){return i=ng(d,m,!0,i,b,T,O,te,ae),i.context=$1(null),d=i.current,m=Pn(),b=Ea(d),T=Ui(m,b),T.callback=a??null,wa(d,T,b),i.current.lanes=b,pc(i,b,m),Dn(i,m),i}function hp(i,a,d,m){var b=a.current,T=Pn(),O=Ea(b);return d=$1(d),a.context===null?a.context=d:a.pendingContext=d,a=Ui(T,O),a.payload={element:i},m=m===void 0?null:m,m!==null&&(a.callback=m),i=wa(b,a,O),i!==null&&(Xo(i,b,O,T),Wd(i,b,O)),O}function mp(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function z1(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var d=i.retryLane;i.retryLane=d!==0&&d<a?d:a}}function og(i,a){z1(i,a),(i=i.alternate)&&z1(i,a)}function r4(){return null}var D1=typeof reportError=="function"?reportError:function(i){console.error(i)};function ig(i){this._internalRoot=i}gp.prototype.render=ig.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(r(409));hp(i,a,null,null)},gp.prototype.unmount=ig.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;us(function(){hp(null,i,null,null)}),a[Bi]=null}};function gp(i){this._internalRoot=i}gp.prototype.unstable_scheduleHydration=function(i){if(i){var a=Cv();i={blockedOn:null,target:i,priority:a};for(var d=0;d<fa.length&&a!==0&&a<fa[d].priority;d++);fa.splice(d,0,i),d===0&&kv(i)}};function ag(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function yp(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function F1(){}function n4(i,a,d,m,b){if(b){if(typeof m=="function"){var T=m;m=function(){var ye=mp(O);T.call(ye)}}var O=B1(a,m,i,0,null,!1,!1,"",F1);return i._reactRootContainer=O,i[Bi]=O.current,kc(i.nodeType===8?i.parentNode:i),us(),O}for(;b=i.lastChild;)i.removeChild(b);if(typeof m=="function"){var te=m;m=function(){var ye=mp(ae);te.call(ye)}}var ae=ng(i,0,!1,null,null,!1,!1,"",F1);return i._reactRootContainer=ae,i[Bi]=ae.current,kc(i.nodeType===8?i.parentNode:i),us(function(){hp(a,ae,d,m)}),ae}function vp(i,a,d,m,b){var T=d._reactRootContainer;if(T){var O=T;if(typeof b=="function"){var te=b;b=function(){var ae=mp(O);te.call(ae)}}hp(a,O,i,b)}else O=n4(d,a,i,b,m);return mp(O)}wv=function(i){switch(i.tag){case 3:var a=i.stateNode;if(a.current.memoizedState.isDehydrated){var d=dc(a.pendingLanes);d!==0&&(Ih(a,d|1),Dn(a,At()),(Ht&6)===0&&(pl=At()+500,ba()))}break;case 13:us(function(){var m=Hi(i,1);if(m!==null){var b=Pn();Xo(m,i,1,b)}}),og(i,1)}},Ah=function(i){if(i.tag===13){var a=Hi(i,134217728);if(a!==null){var d=Pn();Xo(a,i,134217728,d)}og(i,134217728)}},Sv=function(i){if(i.tag===13){var a=Ea(i),d=Hi(i,a);if(d!==null){var m=Pn();Xo(d,i,a,m)}og(i,a)}},Cv=function(){return er},Tv=function(i,a){var d=er;try{return er=i,a()}finally{er=d}},fn=function(i,a,d){switch(a){case"input":if(dt(i,d),a=d.name,d.type==="radio"&&a!=null){for(d=i;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<d.length;a++){var m=d[a];if(m!==i&&m.form===i.form){var b=Od(m);if(!b)throw Error(r(90));Ne(m),dt(m,b)}}}break;case"textarea":Tt(i,d);break;case"select":a=d.value,a!=null&&pt(i,!!d.multiple,a,!1)}},En=Ym,Ct=us;var o4={usingClientEntryPoint:!1,Events:[Mc,Zs,Od,vr,Fr,Ym]},Uc={findFiberByHostInstance:rs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},i4={bundleType:Uc.bundleType,version:Uc.version,rendererPackageName:Uc.rendererPackageName,rendererConfig:Uc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=we(i),i===null?null:i.stateNode},findFiberByHostInstance:Uc.findFiberByHostInstance||r4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bp.isDisabled&&bp.supportsFiber)try{io=bp.inject(i4),Hr=bp}catch{}}return Fn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o4,Fn.createPortal=function(i,a){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ag(a))throw Error(r(200));return t4(i,a,null,d)},Fn.createRoot=function(i,a){if(!ag(i))throw Error(r(299));var d=!1,m="",b=D1;return a!=null&&(a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onRecoverableError!==void 0&&(b=a.onRecoverableError)),a=ng(i,1,!1,null,null,d,!1,m,b),i[Bi]=a.current,kc(i.nodeType===8?i.parentNode:i),new ig(a)},Fn.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=we(a),i=i===null?null:i.stateNode,i},Fn.flushSync=function(i){return us(i)},Fn.hydrate=function(i,a,d){if(!yp(a))throw Error(r(200));return vp(null,i,a,!0,d)},Fn.hydrateRoot=function(i,a,d){if(!ag(i))throw Error(r(405));var m=d!=null&&d.hydratedSources||null,b=!1,T="",O=D1;if(d!=null&&(d.unstable_strictMode===!0&&(b=!0),d.identifierPrefix!==void 0&&(T=d.identifierPrefix),d.onRecoverableError!==void 0&&(O=d.onRecoverableError)),a=B1(a,null,i,1,d??null,b,!1,T,O),i[Bi]=a.current,kc(i),m)for(i=0;i<m.length;i++)d=m[i],b=d._getVersion,b=b(d._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[d,b]:a.mutableSourceEagerHydrationData.push(d,b);return new gp(a)},Fn.render=function(i,a,d){if(!yp(a))throw Error(r(200));return vp(null,i,a,!1,d)},Fn.unmountComponentAtNode=function(i){if(!yp(i))throw Error(r(40));return i._reactRootContainer?(us(function(){vp(null,null,i,!1,function(){i._reactRootContainer=null,i[Bi]=null})}),!0):!1},Fn.unstable_batchedUpdates=Ym,Fn.unstable_renderSubtreeIntoContainer=function(i,a,d,m){if(!yp(d))throw Error(r(200));if(i==null||i._reactInternals===void 0)throw Error(r(38));return vp(i,a,d,!1,m)},Fn.version="18.3.1-next-f1338f8080-20240426",Fn}var Q1;function wC(){if(Q1)return cg.exports;Q1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),cg.exports=m4(),cg.exports}var Y1;function g4(){if(Y1)return xp;Y1=1;var t=wC();return xp.createRoot=t.createRoot,xp.hydrateRoot=t.hydrateRoot,xp}var y4=g4();const v4=Of(y4);var SC=wC();const wp=Of(SC);/**
41
+ * @remix-run/router v1.23.1
42
+ *
43
+ * Copyright (c) Remix Software Inc.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE.md file in the root directory of this source tree.
47
+ *
48
+ * @license MIT
49
+ */function Tu(){return Tu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Tu.apply(this,arguments)}var ja;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(ja||(ja={}));const J1="popstate";function b4(t){t===void 0&&(t={});function e(n,o){let{pathname:s,search:l,hash:c}=n.location;return Vg("",{pathname:s,search:l,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:CC(o)}return w4(e,r,null,t)}function qr(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Yy(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function x4(){return Math.random().toString(36).substr(2,8)}function Z1(t,e){return{usr:t.state,key:t.key,idx:e}}function Vg(t,e,r,n){return r===void 0&&(r=null),Tu({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?ec(e):e,{state:r,key:e&&e.key||n||x4()})}function CC(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ec(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function w4(t,e,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:s=!1}=n,l=o.history,c=ja.Pop,u=null,f=h();f==null&&(f=0,l.replaceState(Tu({},l.state,{idx:f}),""));function h(){return(l.state||{idx:null}).idx}function v(){c=ja.Pop;let C=h(),R=C==null?null:C-f;f=C,u&&u({action:c,location:x.location,delta:R})}function g(C,R){c=ja.Push;let P=Vg(x.location,C,R);f=h()+1;let M=Z1(P,f),E=x.createHref(P);try{l.pushState(M,"",E)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(E)}s&&u&&u({action:c,location:x.location,delta:1})}function y(C,R){c=ja.Replace;let P=Vg(x.location,C,R);f=h();let M=Z1(P,f),E=x.createHref(P);l.replaceState(M,"",E),s&&u&&u({action:c,location:x.location,delta:0})}function w(C){let R=o.location.origin!=="null"?o.location.origin:o.location.href,P=typeof C=="string"?C:CC(C);return P=P.replace(/ $/,"%20"),qr(R,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,R)}let x={get action(){return c},get location(){return t(o,l)},listen(C){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(J1,v),u=C,()=>{o.removeEventListener(J1,v),u=null}},createHref(C){return e(o,C)},createURL:w,encodeLocation(C){let R=w(C);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:g,replace:y,go(C){return l.go(C)}};return x}var ex;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(ex||(ex={}));function S4(t,e,r){return r===void 0&&(r="/"),C4(t,e,r)}function C4(t,e,r,n){let o=typeof e=="string"?ec(e):e,s=kC(o.pathname||"/",r);if(s==null)return null;let l=TC(t);T4(l);let c=null;for(let u=0;c==null&&u<l.length;++u){let f=N4(s);c=_4(l[u],f)}return c}function TC(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(s,l,c)=>{let u={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};u.relativePath.startsWith("/")&&(qr(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let f=Es([n,u.relativePath]),h=r.concat(u);s.children&&s.children.length>0&&(qr(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),TC(s.children,e,h,f)),!(s.path==null&&!s.index)&&e.push({path:f,score:A4(f,s.index),routesMeta:h})};return t.forEach((s,l)=>{var c;if(s.path===""||!((c=s.path)!=null&&c.includes("?")))o(s,l);else for(let u of EC(s.path))o(s,l,u)}),e}function EC(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return o?[s,""]:[s];let l=EC(n.join("/")),c=[];return c.push(...l.map(u=>u===""?s:[s,u].join("/"))),o&&c.push(...l),c.map(u=>t.startsWith("/")&&u===""?"/":u)}function T4(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:j4(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const E4=/^:[\w-]+$/,k4=3,P4=2,R4=1,M4=10,I4=-2,tx=t=>t==="*";function A4(t,e){let r=t.split("/"),n=r.length;return r.some(tx)&&(n+=I4),e&&(n+=P4),r.filter(o=>!tx(o)).reduce((o,s)=>o+(E4.test(s)?k4:s===""?R4:M4),n)}function j4(t,e){return t.length===e.length&&t.slice(0,-1).every((n,o)=>n===e[o])?t[t.length-1]-e[e.length-1]:0}function _4(t,e,r){let{routesMeta:n}=t,o={},s="/",l=[];for(let c=0;c<n.length;++c){let u=n[c],f=c===n.length-1,h=s==="/"?e:e.slice(s.length)||"/",v=L4({path:u.relativePath,caseSensitive:u.caseSensitive,end:f},h),g=u.route;if(!v)return null;Object.assign(o,v.params),l.push({params:o,pathname:Es([s,v.pathname]),pathnameBase:U4(Es([s,v.pathnameBase])),route:g}),v.pathnameBase!=="/"&&(s=Es([s,v.pathnameBase]))}return l}function L4(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=O4(t.path,t.caseSensitive,t.end),o=e.match(r);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:n.reduce((f,h,v)=>{let{paramName:g,isOptional:y}=h;if(g==="*"){let x=c[v]||"";l=s.slice(0,s.length-x.length).replace(/(.)\/+$/,"$1")}const w=c[v];return y&&!w?f[g]=void 0:f[g]=(w||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:t}}function O4(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Yy(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,u)=>(n.push({paramName:c,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),n]}function N4(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Yy(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function kC(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}const $4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,B4=t=>$4.test(t);function z4(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:o=""}=typeof t=="string"?ec(t):t,s;if(r)if(B4(r))s=r;else{if(r.includes("//")){let l=r;r=r.replace(/\/\/+/g,"/"),Yy(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+r))}r.startsWith("/")?s=rx(r.substring(1),"/"):s=rx(r,e)}else s=e;return{pathname:s,search:V4(n),hash:W4(o)}}function rx(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function pg(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function D4(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function F4(t,e){let r=D4(t);return e?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function H4(t,e,r,n){n===void 0&&(n=!1);let o;typeof t=="string"?o=ec(t):(o=Tu({},t),qr(!o.pathname||!o.pathname.includes("?"),pg("?","pathname","search",o)),qr(!o.pathname||!o.pathname.includes("#"),pg("#","pathname","hash",o)),qr(!o.search||!o.search.includes("#"),pg("#","search","hash",o)));let s=t===""||o.pathname==="",l=s?"/":o.pathname,c;if(l==null)c=r;else{let v=e.length-1;if(!n&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),v-=1;o.pathname=g.join("/")}c=v>=0?e[v]:"/"}let u=z4(o,c),f=l&&l!=="/"&&l.endsWith("/"),h=(s||l===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(f||h)&&(u.pathname+="/"),u}const Es=t=>t.join("/").replace(/\/\/+/g,"/"),U4=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),V4=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,W4=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function q4(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const PC=["post","put","patch","delete"];new Set(PC);const G4=["get",...PC];new Set(G4);/**
50
+ * React Router v6.30.2
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */function Eu(){return Eu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Eu.apply(this,arguments)}const Jy=S.createContext(null),X4=S.createContext(null),Zu=S.createContext(null),Nf=S.createContext(null),tc=S.createContext({outlet:null,matches:[],isDataRoute:!1}),RC=S.createContext(null);function $f(){return S.useContext(Nf)!=null}function Zy(){return $f()||qr(!1),S.useContext(Nf).location}function MC(t){S.useContext(Zu).static||S.useLayoutEffect(t)}function e0(){let{isDataRoute:t}=S.useContext(tc);return t?s3():K4()}function K4(){$f()||qr(!1);let t=S.useContext(Jy),{basename:e,future:r,navigator:n}=S.useContext(Zu),{matches:o}=S.useContext(tc),{pathname:s}=Zy(),l=JSON.stringify(F4(o,r.v7_relativeSplatPath)),c=S.useRef(!1);return MC(()=>{c.current=!0}),S.useCallback(function(f,h){if(h===void 0&&(h={}),!c.current)return;if(typeof f=="number"){n.go(f);return}let v=H4(f,JSON.parse(l),s,h.relative==="path");t==null&&e!=="/"&&(v.pathname=v.pathname==="/"?e:Es([e,v.pathname])),(h.replace?n.replace:n.push)(v,h.state,h)},[e,n,l,s,t])}function Q4(t,e){return Y4(t,e)}function Y4(t,e,r,n){$f()||qr(!1);let{navigator:o}=S.useContext(Zu),{matches:s}=S.useContext(tc),l=s[s.length-1],c=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let f=Zy(),h;if(e){var v;let C=typeof e=="string"?ec(e):e;u==="/"||(v=C.pathname)!=null&&v.startsWith(u)||qr(!1),h=C}else h=f;let g=h.pathname||"/",y=g;if(u!=="/"){let C=u.replace(/^\//,"").split("/");y="/"+g.replace(/^\//,"").split("/").slice(C.length).join("/")}let w=S4(t,{pathname:y}),x=r3(w&&w.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:Es([u,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Es([u,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),s,r,n);return e&&x?S.createElement(Nf.Provider,{value:{location:Eu({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:ja.Pop}},x):x}function J4(){let t=a3(),e=q4(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},e),r?S.createElement("pre",{style:o},r):null,null)}const Z4=S.createElement(J4,null);class e3 extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?S.createElement(tc.Provider,{value:this.props.routeContext},S.createElement(RC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function t3(t){let{routeContext:e,match:r,children:n}=t,o=S.useContext(Jy);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),S.createElement(tc.Provider,{value:e},n)}function r3(t,e,r,n){var o;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var s;if(!r)return null;if(r.errors)t=r.matches;else if((s=n)!=null&&s.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let l=t,c=(o=r)==null?void 0:o.errors;if(c!=null){let h=l.findIndex(v=>v.route.id&&(c==null?void 0:c[v.route.id])!==void 0);h>=0||qr(!1),l=l.slice(0,Math.min(l.length,h+1))}let u=!1,f=-1;if(r&&n&&n.v7_partialHydration)for(let h=0;h<l.length;h++){let v=l[h];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(f=h),v.route.id){let{loaderData:g,errors:y}=r,w=v.route.loader&&g[v.route.id]===void 0&&(!y||y[v.route.id]===void 0);if(v.route.lazy||w){u=!0,f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((h,v,g)=>{let y,w=!1,x=null,C=null;r&&(y=c&&v.route.id?c[v.route.id]:void 0,x=v.route.errorElement||Z4,u&&(f<0&&g===0?(l3("route-fallback"),w=!0,C=null):f===g&&(w=!0,C=v.route.hydrateFallbackElement||null)));let R=e.concat(l.slice(0,g+1)),P=()=>{let M;return y?M=x:w?M=C:v.route.Component?M=S.createElement(v.route.Component,null):v.route.element?M=v.route.element:M=h,S.createElement(t3,{match:v,routeContext:{outlet:h,matches:R,isDataRoute:r!=null},children:M})};return r&&(v.route.ErrorBoundary||v.route.errorElement||g===0)?S.createElement(e3,{location:r.location,revalidation:r.revalidation,component:x,error:y,children:P(),routeContext:{outlet:null,matches:R,isDataRoute:!0}}):P()},null)}var IC=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(IC||{}),AC=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(AC||{});function n3(t){let e=S.useContext(Jy);return e||qr(!1),e}function o3(t){let e=S.useContext(X4);return e||qr(!1),e}function i3(t){let e=S.useContext(tc);return e||qr(!1),e}function jC(t){let e=i3(),r=e.matches[e.matches.length-1];return r.route.id||qr(!1),r.route.id}function a3(){var t;let e=S.useContext(RC),r=o3(),n=jC();return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function s3(){let{router:t}=n3(IC.UseNavigateStable),e=jC(AC.UseNavigateStable),r=S.useRef(!1);return MC(()=>{r.current=!0}),S.useCallback(function(o,s){s===void 0&&(s={}),r.current&&(typeof o=="number"?t.navigate(o):t.navigate(o,Eu({fromRouteId:e},s)))},[t,e])}const nx={};function l3(t,e,r){nx[t]||(nx[t]=!0)}function c3(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function Ma(t){qr(!1)}function u3(t){let{basename:e="/",children:r=null,location:n,navigationType:o=ja.Pop,navigator:s,static:l=!1,future:c}=t;$f()&&qr(!1);let u=e.replace(/^\/*/,"/"),f=S.useMemo(()=>({basename:u,navigator:s,static:l,future:Eu({v7_relativeSplatPath:!1},c)}),[u,c,s,l]);typeof n=="string"&&(n=ec(n));let{pathname:h="/",search:v="",hash:g="",state:y=null,key:w="default"}=n,x=S.useMemo(()=>{let C=kC(h,u);return C==null?null:{location:{pathname:C,search:v,hash:g,state:y,key:w},navigationType:o}},[u,h,v,g,y,w,o]);return x==null?null:S.createElement(Zu.Provider,{value:f},S.createElement(Nf.Provider,{children:r,value:x}))}function d3(t){let{children:e,location:r}=t;return Q4(Wg(e),r)}new Promise(()=>{});function Wg(t,e){e===void 0&&(e=[]);let r=[];return S.Children.forEach(t,(n,o)=>{if(!S.isValidElement(n))return;let s=[...e,o];if(n.type===S.Fragment){r.push.apply(r,Wg(n.props.children,s));return}n.type!==Ma&&qr(!1),!n.props.index||!n.props.children||qr(!1);let l={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=Wg(n.props.children,s)),r.push(l)}),r}/**
59
+ * React Router DOM v6.30.2
60
+ *
61
+ * Copyright (c) Remix Software Inc.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE.md file in the root directory of this source tree.
65
+ *
66
+ * @license MIT
67
+ */const p3="6";try{window.__reactRouterVersion=p3}catch{}const f3="startTransition",ox=Cu[f3];function h3(t){let{basename:e,children:r,future:n,window:o}=t,s=S.useRef();s.current==null&&(s.current=b4({window:o,v5Compat:!0}));let l=s.current,[c,u]=S.useState({action:l.action,location:l.location}),{v7_startTransition:f}=n||{},h=S.useCallback(v=>{f&&ox?ox(()=>u(v)):u(v)},[u,f]);return S.useLayoutEffect(()=>l.listen(h),[l,h]),S.useEffect(()=>c3(n),[n]),S.createElement(u3,{basename:e,children:r,location:c.location,navigationType:c.action,navigator:l,future:n})}var ix;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(ix||(ix={}));var ax;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(ax||(ax={}));const ku={black:"#000",white:"#fff"},hl={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ml={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},gl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},yl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},vl={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Wc={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},m3={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"};function Ji(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const Jo="$$material";function df(){return df=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},df.apply(null,arguments)}function g3(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function y3(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var v3=(function(){function t(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(y3(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=g3(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t})(),xn="-ms-",pf="-moz-",Gt="-webkit-",_C="comm",t0="rule",r0="decl",b3="@import",LC="@keyframes",x3="@layer",w3=Math.abs,Bf=String.fromCharCode,S3=Object.assign;function C3(t,e){return sn(t,0)^45?(((e<<2^sn(t,0))<<2^sn(t,1))<<2^sn(t,2))<<2^sn(t,3):0}function OC(t){return t.trim()}function T3(t,e){return(t=e.exec(t))?t[0]:t}function Xt(t,e,r){return t.replace(e,r)}function qg(t,e){return t.indexOf(e)}function sn(t,e){return t.charCodeAt(e)|0}function Pu(t,e,r){return t.slice(e,r)}function xi(t){return t.length}function n0(t){return t.length}function Sp(t,e){return e.push(t),t}function E3(t,e){return t.map(e).join("")}var zf=1,Ol=1,NC=0,Gn=0,Nr=0,rc="";function Df(t,e,r,n,o,s,l){return{value:t,root:e,parent:r,type:n,props:o,children:s,line:zf,column:Ol,length:l,return:""}}function qc(t,e){return S3(Df("",null,null,"",null,null,0),t,{length:-t.length},e)}function k3(){return Nr}function P3(){return Nr=Gn>0?sn(rc,--Gn):0,Ol--,Nr===10&&(Ol=1,zf--),Nr}function yo(){return Nr=Gn<NC?sn(rc,Gn++):0,Ol++,Nr===10&&(Ol=1,zf++),Nr}function Ti(){return sn(rc,Gn)}function Qp(){return Gn}function ed(t,e){return Pu(rc,t,e)}function Ru(t){switch(t){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 $C(t){return zf=Ol=1,NC=xi(rc=t),Gn=0,[]}function BC(t){return rc="",t}function Yp(t){return OC(ed(Gn-1,Gg(t===91?t+2:t===40?t+1:t)))}function R3(t){for(;(Nr=Ti())&&Nr<33;)yo();return Ru(t)>2||Ru(Nr)>3?"":" "}function M3(t,e){for(;--e&&yo()&&!(Nr<48||Nr>102||Nr>57&&Nr<65||Nr>70&&Nr<97););return ed(t,Qp()+(e<6&&Ti()==32&&yo()==32))}function Gg(t){for(;yo();)switch(Nr){case t:return Gn;case 34:case 39:t!==34&&t!==39&&Gg(Nr);break;case 40:t===41&&Gg(t);break;case 92:yo();break}return Gn}function I3(t,e){for(;yo()&&t+Nr!==57;)if(t+Nr===84&&Ti()===47)break;return"/*"+ed(e,Gn-1)+"*"+Bf(t===47?t:yo())}function A3(t){for(;!Ru(Ti());)yo();return ed(t,Gn)}function j3(t){return BC(Jp("",null,null,null,[""],t=$C(t),0,[0],t))}function Jp(t,e,r,n,o,s,l,c,u){for(var f=0,h=0,v=l,g=0,y=0,w=0,x=1,C=1,R=1,P=0,M="",E=o,I=s,A=n,F=M;C;)switch(w=P,P=yo()){case 40:if(w!=108&&sn(F,v-1)==58){qg(F+=Xt(Yp(P),"&","&\f"),"&\f")!=-1&&(R=-1);break}case 34:case 39:case 91:F+=Yp(P);break;case 9:case 10:case 13:case 32:F+=R3(w);break;case 92:F+=M3(Qp()-1,7);continue;case 47:switch(Ti()){case 42:case 47:Sp(_3(I3(yo(),Qp()),e,r),u);break;default:F+="/"}break;case 123*x:c[f++]=xi(F)*R;case 125*x:case 59:case 0:switch(P){case 0:case 125:C=0;case 59+h:R==-1&&(F=Xt(F,/\f/g,"")),y>0&&xi(F)-v&&Sp(y>32?lx(F+";",n,r,v-1):lx(Xt(F," ","")+";",n,r,v-2),u);break;case 59:F+=";";default:if(Sp(A=sx(F,e,r,f,h,o,c,M,E=[],I=[],v),s),P===123)if(h===0)Jp(F,e,A,A,E,s,v,c,I);else switch(g===99&&sn(F,3)===110?100:g){case 100:case 108:case 109:case 115:Jp(t,A,A,n&&Sp(sx(t,A,A,0,0,o,c,M,o,E=[],v),I),o,I,v,c,n?E:I);break;default:Jp(F,A,A,A,[""],I,0,c,I)}}f=h=y=0,x=R=1,M=F="",v=l;break;case 58:v=1+xi(F),y=w;default:if(x<1){if(P==123)--x;else if(P==125&&x++==0&&P3()==125)continue}switch(F+=Bf(P),P*x){case 38:R=h>0?1:(F+="\f",-1);break;case 44:c[f++]=(xi(F)-1)*R,R=1;break;case 64:Ti()===45&&(F+=Yp(yo())),g=Ti(),h=v=xi(M=F+=A3(Qp())),P++;break;case 45:w===45&&xi(F)==2&&(x=0)}}return s}function sx(t,e,r,n,o,s,l,c,u,f,h){for(var v=o-1,g=o===0?s:[""],y=n0(g),w=0,x=0,C=0;w<n;++w)for(var R=0,P=Pu(t,v+1,v=w3(x=l[w])),M=t;R<y;++R)(M=OC(x>0?g[R]+" "+P:Xt(P,/&\f/g,g[R])))&&(u[C++]=M);return Df(t,e,r,o===0?t0:c,u,f,h)}function _3(t,e,r){return Df(t,e,r,_C,Bf(k3()),Pu(t,2,-2),0)}function lx(t,e,r,n){return Df(t,e,r,r0,Pu(t,0,n),Pu(t,n+1,-1),n)}function Ml(t,e){for(var r="",n=n0(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function L3(t,e,r,n){switch(t.type){case x3:if(t.children.length)break;case b3:case r0:return t.return=t.return||t.value;case _C:return"";case LC:return t.return=t.value+"{"+Ml(t.children,n)+"}";case t0:t.value=t.props.join(",")}return xi(r=Ml(t.children,n))?t.return=t.value+"{"+r+"}":""}function O3(t){var e=n0(t);return function(r,n,o,s){for(var l="",c=0;c<e;c++)l+=t[c](r,n,o,s)||"";return l}}function N3(t){return function(e){e.root||(e=e.return)&&t(e)}}function zC(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var $3=function(e,r,n){for(var o=0,s=0;o=s,s=Ti(),o===38&&s===12&&(r[n]=1),!Ru(s);)yo();return ed(e,Gn)},B3=function(e,r){var n=-1,o=44;do switch(Ru(o)){case 0:o===38&&Ti()===12&&(r[n]=1),e[n]+=$3(Gn-1,r,n);break;case 2:e[n]+=Yp(o);break;case 4:if(o===44){e[++n]=Ti()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Bf(o)}while(o=yo());return e},z3=function(e,r){return BC(B3($C(e),r))},cx=new WeakMap,D3=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!cx.get(n))&&!o){cx.set(e,!0);for(var s=[],l=z3(r,s),c=n.props,u=0,f=0;u<l.length;u++)for(var h=0;h<c.length;h++,f++)e.props[f]=s[u]?l[u].replace(/&\f/g,c[h]):c[h]+" "+l[u]}}},F3=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function DC(t,e){switch(C3(t,e)){case 5103:return Gt+"print-"+t+t;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 Gt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Gt+t+pf+t+xn+t+t;case 6828:case 4268:return Gt+t+xn+t+t;case 6165:return Gt+t+xn+"flex-"+t+t;case 5187:return Gt+t+Xt(t,/(\w+).+(:[^]+)/,Gt+"box-$1$2"+xn+"flex-$1$2")+t;case 5443:return Gt+t+xn+"flex-item-"+Xt(t,/flex-|-self/,"")+t;case 4675:return Gt+t+xn+"flex-line-pack"+Xt(t,/align-content|flex-|-self/,"")+t;case 5548:return Gt+t+xn+Xt(t,"shrink","negative")+t;case 5292:return Gt+t+xn+Xt(t,"basis","preferred-size")+t;case 6060:return Gt+"box-"+Xt(t,"-grow","")+Gt+t+xn+Xt(t,"grow","positive")+t;case 4554:return Gt+Xt(t,/([^-])(transform)/g,"$1"+Gt+"$2")+t;case 6187:return Xt(Xt(Xt(t,/(zoom-|grab)/,Gt+"$1"),/(image-set)/,Gt+"$1"),t,"")+t;case 5495:case 3959:return Xt(t,/(image-set\([^]*)/,Gt+"$1$`$1");case 4968:return Xt(Xt(t,/(.+:)(flex-)?(.*)/,Gt+"box-pack:$3"+xn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Gt+t+t;case 4095:case 3583:case 4068:case 2532:return Xt(t,/(.+)-inline(.+)/,Gt+"$1$2")+t;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(xi(t)-1-e>6)switch(sn(t,e+1)){case 109:if(sn(t,e+4)!==45)break;case 102:return Xt(t,/(.+:)(.+)-([^]+)/,"$1"+Gt+"$2-$3$1"+pf+(sn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~qg(t,"stretch")?DC(Xt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(sn(t,e+1)!==115)break;case 6444:switch(sn(t,xi(t)-3-(~qg(t,"!important")&&10))){case 107:return Xt(t,":",":"+Gt)+t;case 101:return Xt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gt+(sn(t,14)===45?"inline-":"")+"box$3$1"+Gt+"$2$3$1"+xn+"$2box$3")+t}break;case 5936:switch(sn(t,e+11)){case 114:return Gt+t+xn+Xt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Gt+t+xn+Xt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Gt+t+xn+Xt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Gt+t+xn+t+t}return t}var H3=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case r0:e.return=DC(e.value,e.length);break;case LC:return Ml([qc(e,{value:Xt(e.value,"@","@"+Gt)})],o);case t0:if(e.length)return E3(e.props,function(s){switch(T3(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ml([qc(e,{props:[Xt(s,/:(read-\w+)/,":"+pf+"$1")]})],o);case"::placeholder":return Ml([qc(e,{props:[Xt(s,/:(plac\w+)/,":"+Gt+"input-$1")]}),qc(e,{props:[Xt(s,/:(plac\w+)/,":"+pf+"$1")]}),qc(e,{props:[Xt(s,/:(plac\w+)/,xn+"input-$1")]})],o)}return""})}},U3=[H3],V3=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var C=x.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=e.stylisPlugins||U3,s={},l,c=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var C=x.getAttribute("data-emotion").split(" "),R=1;R<C.length;R++)s[C[R]]=!0;c.push(x)});var u,f=[D3,F3];{var h,v=[L3,N3(function(x){h.insert(x)})],g=O3(f.concat(o,v)),y=function(C){return Ml(j3(C),g)};u=function(C,R,P,M){h=P,y(C?C+"{"+R.styles+"}":R.styles),M&&(w.inserted[R.name]=!0)}}var w={key:r,sheet:new v3({key:r,container:l,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:u};return w.sheet.hydrate(c),w},fg={exports:{}},Qt={};/** @license React v16.13.1
68
+ * react-is.production.min.js
69
+ *
70
+ * Copyright (c) Facebook, Inc. and its affiliates.
71
+ *
72
+ * This source code is licensed under the MIT license found in the
73
+ * LICENSE file in the root directory of this source tree.
74
+ */var ux;function W3(){if(ux)return Qt;ux=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,v=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,w=t?Symbol.for("react.lazy"):60116,x=t?Symbol.for("react.block"):60121,C=t?Symbol.for("react.fundamental"):60117,R=t?Symbol.for("react.responder"):60118,P=t?Symbol.for("react.scope"):60119;function M(I){if(typeof I=="object"&&I!==null){var A=I.$$typeof;switch(A){case e:switch(I=I.type,I){case u:case f:case n:case s:case o:case v:return I;default:switch(I=I&&I.$$typeof,I){case c:case h:case w:case y:case l:return I;default:return A}}case r:return A}}}function E(I){return M(I)===f}return Qt.AsyncMode=u,Qt.ConcurrentMode=f,Qt.ContextConsumer=c,Qt.ContextProvider=l,Qt.Element=e,Qt.ForwardRef=h,Qt.Fragment=n,Qt.Lazy=w,Qt.Memo=y,Qt.Portal=r,Qt.Profiler=s,Qt.StrictMode=o,Qt.Suspense=v,Qt.isAsyncMode=function(I){return E(I)||M(I)===u},Qt.isConcurrentMode=E,Qt.isContextConsumer=function(I){return M(I)===c},Qt.isContextProvider=function(I){return M(I)===l},Qt.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===e},Qt.isForwardRef=function(I){return M(I)===h},Qt.isFragment=function(I){return M(I)===n},Qt.isLazy=function(I){return M(I)===w},Qt.isMemo=function(I){return M(I)===y},Qt.isPortal=function(I){return M(I)===r},Qt.isProfiler=function(I){return M(I)===s},Qt.isStrictMode=function(I){return M(I)===o},Qt.isSuspense=function(I){return M(I)===v},Qt.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===n||I===f||I===s||I===o||I===v||I===g||typeof I=="object"&&I!==null&&(I.$$typeof===w||I.$$typeof===y||I.$$typeof===l||I.$$typeof===c||I.$$typeof===h||I.$$typeof===C||I.$$typeof===R||I.$$typeof===P||I.$$typeof===x)},Qt.typeOf=M,Qt}var dx;function q3(){return dx||(dx=1,fg.exports=W3()),fg.exports}var hg,px;function G3(){if(px)return hg;px=1;var t=q3(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[t.ForwardRef]=n,s[t.Memo]=o;function l(w){return t.isMemo(w)?o:s[w.$$typeof]||e}var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,g=Object.prototype;function y(w,x,C){if(typeof x!="string"){if(g){var R=v(x);R&&R!==g&&y(w,R,C)}var P=u(x);f&&(P=P.concat(f(x)));for(var M=l(w),E=l(x),I=0;I<P.length;++I){var A=P[I];if(!r[A]&&!(C&&C[A])&&!(E&&E[A])&&!(M&&M[A])){var F=h(x,A);try{c(w,A,F)}catch{}}}}return w}return hg=y,hg}G3();var X3=!0;function FC(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var o0=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||X3===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},i0=function(e,r,n){o0(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var s=r;do e.insert(r===s?"."+o:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function K3(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Q3={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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},Y3=/[A-Z]|^ms/g,J3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,HC=function(e){return e.charCodeAt(1)===45},fx=function(e){return e!=null&&typeof e!="boolean"},mg=zC(function(t){return HC(t)?t:t.replace(Y3,"-$&").toLowerCase()}),hx=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(J3,function(n,o,s){return wi={name:o,styles:s,next:wi},o})}return Q3[e]!==1&&!HC(e)&&typeof r=="number"&&r!==0?r+"px":r};function Mu(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return wi={name:o.name,styles:o.styles,next:wi},o.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)wi={name:l.name,styles:l.styles,next:wi},l=l.next;var c=s.styles+";";return c}return Z3(t,e,r)}case"function":{if(t!==void 0){var u=wi,f=r(t);return wi=u,Mu(t,e,f)}break}}var h=r;if(e==null)return h;var v=e[h];return v!==void 0?v:h}function Z3(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Mu(t,e,r[o])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var c=l;e!=null&&e[c]!==void 0?n+=s+"{"+e[c]+"}":fx(c)&&(n+=mg(s)+":"+hx(s,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(e==null||e[l[0]]===void 0))for(var u=0;u<l.length;u++)fx(l[u])&&(n+=mg(s)+":"+hx(s,l[u])+";");else{var f=Mu(t,e,l);switch(s){case"animation":case"animationName":{n+=mg(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}return n}var mx=/label:\s*([^\s;{]+)\s*(;|$)/g,wi;function td(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";wi=void 0;var s=t[0];if(s==null||s.raw===void 0)n=!1,o+=Mu(r,e,s);else{var l=s;o+=l[0]}for(var c=1;c<t.length;c++)if(o+=Mu(r,e,t[c]),n){var u=s;o+=u[c]}mx.lastIndex=0;for(var f="",h;(h=mx.exec(o))!==null;)f+="-"+h[1];var v=K3(o)+f;return{name:v,styles:o,next:wi}}var e5=function(e){return e()},UC=Cu.useInsertionEffect?Cu.useInsertionEffect:!1,VC=UC||e5,gx=UC||S.useLayoutEffect,WC=S.createContext(typeof HTMLElement<"u"?V3({key:"css"}):null);WC.Provider;var a0=function(e){return S.forwardRef(function(r,n){var o=S.useContext(WC);return e(r,o,n)})},rd=S.createContext({}),s0={}.hasOwnProperty,Xg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",t5=function(e,r){var n={};for(var o in r)s0.call(r,o)&&(n[o]=r[o]);return n[Xg]=e,n},r5=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return o0(r,n,o),VC(function(){return i0(r,n,o)}),null},n5=a0(function(t,e,r){var n=t.css;typeof n=="string"&&e.registered[n]!==void 0&&(n=e.registered[n]);var o=t[Xg],s=[n],l="";typeof t.className=="string"?l=FC(e.registered,s,t.className):t.className!=null&&(l=t.className+" ");var c=td(s,void 0,S.useContext(rd));l+=e.key+"-"+c.name;var u={};for(var f in t)s0.call(t,f)&&f!=="css"&&f!==Xg&&(u[f]=t[f]);return u.className=l,r&&(u.ref=r),S.createElement(S.Fragment,null,S.createElement(r5,{cache:e,serialized:c,isStringTag:typeof o=="string"}),S.createElement(o,u))}),o5=n5,yx=function(e,r){var n=arguments;if(r==null||!s0.call(r,"css"))return S.createElement.apply(void 0,n);var o=n.length,s=new Array(o);s[0]=o5,s[1]=t5(e,r);for(var l=2;l<o;l++)s[l]=n[l];return S.createElement.apply(null,s)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(yx||(yx={}));var i5=a0(function(t,e){var r=t.styles,n=td([r],void 0,S.useContext(rd)),o=S.useRef();return gx(function(){var s=e.key+"-global",l=new e.sheet.constructor({key:s,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),c=!1,u=document.querySelector('style[data-emotion="'+s+" "+n.name+'"]');return e.sheet.tags.length&&(l.before=e.sheet.tags[0]),u!==null&&(c=!0,u.setAttribute("data-emotion",s),l.hydrate([u])),o.current=[l,c],function(){l.flush()}},[e]),gx(function(){var s=o.current,l=s[0],c=s[1];if(c){s[1]=!1;return}if(n.next!==void 0&&i0(e,n.next,!0),l.tags.length){var u=l.tags[l.tags.length-1].nextElementSibling;l.before=u,l.flush()}e.insert("",n,l,!1)},[e,n.name]),null});function Xa(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return td(e)}function Li(){var t=Xa.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var a5=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,s5=zC(function(t){return a5.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),l5=s5,c5=function(e){return e!=="theme"},vx=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?l5:c5},bx=function(e,r,n){var o;if(r){var s=r.shouldForwardProp;o=e.__emotion_forwardProp&&s?function(l){return e.__emotion_forwardProp(l)&&s(l)}:s}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},u5=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return o0(r,n,o),VC(function(){return i0(r,n,o)}),null},d5=function t(e,r){var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,s,l;r!==void 0&&(s=r.label,l=r.target);var c=bx(e,r,n),u=c||vx(o),f=!u("as");return function(){var h=arguments,v=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(s!==void 0&&v.push("label:"+s+";"),h[0]==null||h[0].raw===void 0)v.push.apply(v,h);else{var g=h[0];v.push(g[0]);for(var y=h.length,w=1;w<y;w++)v.push(h[w],g[w])}var x=a0(function(C,R,P){var M=f&&C.as||o,E="",I=[],A=C;if(C.theme==null){A={};for(var F in C)A[F]=C[F];A.theme=S.useContext(rd)}typeof C.className=="string"?E=FC(R.registered,I,C.className):C.className!=null&&(E=C.className+" ");var j=td(v.concat(I),R.registered,A);E+=R.key+"-"+j.name,l!==void 0&&(E+=" "+l);var H=f&&c===void 0?vx(M):u,G={};for(var N in C)f&&N==="as"||H(N)&&(G[N]=C[N]);return G.className=E,P&&(G.ref=P),S.createElement(S.Fragment,null,S.createElement(u5,{cache:R,serialized:j,isStringTag:typeof M=="string"}),S.createElement(M,G))});return x.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=e.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=v,x.__emotion_forwardProp=c,Object.defineProperty(x,"toString",{value:function(){return"."+l}}),x.withComponent=function(C,R){var P=t(C,df({},r,R,{shouldForwardProp:bx(x,R,!0)}));return P.apply(void 0,v)},x}},p5=["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"],Kg=d5.bind(null);p5.forEach(function(t){Kg[t]=Kg(t)});function f5(t){return t==null||Object.keys(t).length===0}function qC(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?o=>e(f5(o)?r:o):e;return p.jsx(i5,{styles:n})}function GC(t,e){return Kg(t,e)}function h5(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const xx=[];function Oa(t){return xx[0]=t,td(xx)}var gg={exports:{}},or={};/**
75
+ * @license React
76
+ * react-is.production.js
77
+ *
78
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
79
+ *
80
+ * This source code is licensed under the MIT license found in the
81
+ * LICENSE file in the root directory of this source tree.
82
+ */var wx;function m5(){if(wx)return or;wx=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function w(x){if(typeof x=="object"&&x!==null){var C=x.$$typeof;switch(C){case t:switch(x=x.type,x){case r:case o:case n:case u:case f:case g:return x;default:switch(x=x&&x.$$typeof,x){case l:case c:case v:case h:return x;case s:return x;default:return C}}case e:return C}}}return or.ContextConsumer=s,or.ContextProvider=l,or.Element=t,or.ForwardRef=c,or.Fragment=r,or.Lazy=v,or.Memo=h,or.Portal=e,or.Profiler=o,or.StrictMode=n,or.Suspense=u,or.SuspenseList=f,or.isContextConsumer=function(x){return w(x)===s},or.isContextProvider=function(x){return w(x)===l},or.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},or.isForwardRef=function(x){return w(x)===c},or.isFragment=function(x){return w(x)===r},or.isLazy=function(x){return w(x)===v},or.isMemo=function(x){return w(x)===h},or.isPortal=function(x){return w(x)===e},or.isProfiler=function(x){return w(x)===o},or.isStrictMode=function(x){return w(x)===n},or.isSuspense=function(x){return w(x)===u},or.isSuspenseList=function(x){return w(x)===f},or.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===o||x===n||x===u||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===v||x.$$typeof===h||x.$$typeof===l||x.$$typeof===s||x.$$typeof===c||x.$$typeof===y||x.getModuleId!==void 0)},or.typeOf=w,or}var Sx;function g5(){return Sx||(Sx=1,gg.exports=m5()),gg.exports}var XC=g5();function Ci(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function KC(t){if(S.isValidElement(t)||XC.isValidElementType(t)||!Ci(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=KC(t[r])}),e}function Zr(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return Ci(t)&&Ci(e)&&Object.keys(e).forEach(o=>{S.isValidElement(e[o])||XC.isValidElementType(e[o])?n[o]=e[o]:Ci(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Ci(t[o])?n[o]=Zr(t[o],e[o],r):r.clone?n[o]=Ci(e[o])?KC(e[o]):e[o]:n[o]=e[o]}),n}const y5=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function v5(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=t,s=y5(e),l=Object.keys(s);function c(g){return`@media (min-width:${typeof e[g]=="number"?e[g]:g}${r})`}function u(g){return`@media (max-width:${(typeof e[g]=="number"?e[g]:g)-n/100}${r})`}function f(g,y){const w=l.indexOf(y);return`@media (min-width:${typeof e[g]=="number"?e[g]:g}${r}) and (max-width:${(w!==-1&&typeof e[l[w]]=="number"?e[l[w]]:y)-n/100}${r})`}function h(g){return l.indexOf(g)+1<l.length?f(g,l[l.indexOf(g)+1]):c(g)}function v(g){const y=l.indexOf(g);return y===0?c(l[1]):y===l.length-1?u(l[y]):f(g,l[l.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:l,values:s,up:c,down:u,between:f,only:h,not:v,unit:r,...o}}function Cx(t,e){if(!t.containerQueries)return e;const r=Object.keys(e).filter(n=>n.startsWith("@container")).sort((n,o)=>{var l,c;const s=/min-width:\s*([0-9.]+)/;return+(((l=n.match(s))==null?void 0:l[1])||0)-+(((c=o.match(s))==null?void 0:c[1])||0)});return r.length?r.reduce((n,o)=>{const s=e[o];return delete n[o],n[o]=s,n},{...e}):e}function b5(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function x5(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,s=Number.isNaN(+n)?n||0:+n;return t.containerQueries(o).up(s)}function w5(t){const e=(s,l)=>s.replace("@media",l?`@container ${l}`:"@container");function r(s,l){s.up=(...c)=>e(t.breakpoints.up(...c),l),s.down=(...c)=>e(t.breakpoints.down(...c),l),s.between=(...c)=>e(t.breakpoints.between(...c),l),s.only=(...c)=>e(t.breakpoints.only(...c),l),s.not=(...c)=>{const u=e(t.breakpoints.not(...c),l);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},o=s=>(r(n,s),n);return r(o),{...t,containerQueries:o}}const S5={borderRadius:4};function pu(t,e){return e?Zr(t,e,{clone:!1}):t}const Ff={xs:0,sm:600,md:900,lg:1200,xl:1536},Tx={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Ff[t]}px)`},C5={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:Ff[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function Zo(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const s=n.breakpoints||Tx;return e.reduce((l,c,u)=>(l[s.up(s.keys[u])]=r(e[u]),l),{})}if(typeof e=="object"){const s=n.breakpoints||Tx;return Object.keys(e).reduce((l,c)=>{if(b5(s.keys,c)){const u=x5(n.containerQueries?n:C5,c);u&&(l[u]=r(e[c],c))}else if(Object.keys(s.values||Ff).includes(c)){const u=s.up(c);l[u]=r(e[c],c)}else{const u=c;l[u]=e[u]}return l},{})}return r(e)}function QC(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((n,o)=>{const s=t.up(o);return n[s]={},n},{}))||{}}function Qg(t,e){return t.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},e)}function T5(t,...e){const r=QC(t),n=[r,...e].reduce((o,s)=>Zr(o,s),{});return Qg(Object.keys(r),n)}function E5(t,e){if(typeof t!="object")return{};const r={},n=Object.keys(e);return Array.isArray(t)?n.forEach((o,s)=>{s<t.length&&(r[o]=!0)}):n.forEach(o=>{t[o]!=null&&(r[o]=!0)}),r}function yg({values:t,breakpoints:e,base:r}){const n=r||E5(t,e),o=Object.keys(n);if(o.length===0)return t;let s;return o.reduce((l,c,u)=>(Array.isArray(t)?(l[c]=t[u]!=null?t[u]:t[s],s=u):typeof t=="object"?(l[c]=t[c]!=null?t[c]:t[s],s=c):l[c]=t,l),{})}function me(t){if(typeof t!="string")throw new Error(Ji(7));return t.charAt(0).toUpperCase()+t.slice(1)}function Si(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,t);if(n!=null)return n}return e.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,t)}function ff(t,e,r,n=r){let o;return typeof t=="function"?o=t(r):Array.isArray(t)?o=t[r]||n:o=Si(t,r)||n,e&&(o=e(o,n,t)),o}function Ar(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:o}=t,s=l=>{if(l[e]==null)return null;const c=l[e],u=l.theme,f=Si(u,n)||{};return Zo(l,c,v=>{let g=ff(f,o,v);return v===g&&typeof v=="string"&&(g=ff(f,o,`${e}${v==="default"?"":me(v)}`,v)),r===!1?g:{[r]:g}})};return s.propTypes={},s.filterProps=[e],s}function k5(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const P5={m:"margin",p:"padding"},R5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ex={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},M5=k5(t=>{if(t.length>2)if(Ex[t])t=Ex[t];else return[t];const[e,r]=t.split(""),n=P5[e],o=R5[r]||"";return Array.isArray(o)?o.map(s=>n+s):[n+o]}),l0=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],c0=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...l0,...c0];function nd(t,e,r,n){const o=Si(t,e,!0)??r;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s:Array.isArray(o)?s=>{if(typeof s=="string")return s;const l=Math.abs(s),c=o[l];return s>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:()=>{}}function Hf(t){return nd(t,"spacing",8)}function Ps(t,e){return typeof e=="string"||e==null?e:t(e)}function I5(t,e){return r=>t.reduce((n,o)=>(n[o]=Ps(e,r),n),{})}function A5(t,e,r,n){if(!e.includes(r))return null;const o=M5(r),s=I5(o,n),l=t[r];return Zo(t,l,s)}function YC(t,e){const r=Hf(t.theme);return Object.keys(t).map(n=>A5(t,e,n,r)).reduce(pu,{})}function Cr(t){return YC(t,l0)}Cr.propTypes={};Cr.filterProps=l0;function Tr(t){return YC(t,c0)}Tr.propTypes={};Tr.filterProps=c0;function JC(t=8,e=Hf({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(s=>{const l=e(s);return typeof l=="number"?`${l}px`:l}).join(" ");return r.mui=!0,r}function Uf(...t){const e=t.reduce((n,o)=>(o.filterProps.forEach(s=>{n[s]=o}),n),{}),r=n=>Object.keys(n).reduce((o,s)=>e[s]?pu(o,e[s](n)):o,{});return r.propTypes={},r.filterProps=t.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Ao(t){return typeof t!="number"?t:`${t}px solid`}function Do(t,e){return Ar({prop:t,themeKey:"borders",transform:e})}const j5=Do("border",Ao),_5=Do("borderTop",Ao),L5=Do("borderRight",Ao),O5=Do("borderBottom",Ao),N5=Do("borderLeft",Ao),$5=Do("borderColor"),B5=Do("borderTopColor"),z5=Do("borderRightColor"),D5=Do("borderBottomColor"),F5=Do("borderLeftColor"),H5=Do("outline",Ao),U5=Do("outlineColor"),Vf=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=nd(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ps(e,n)});return Zo(t,t.borderRadius,r)}return null};Vf.propTypes={};Vf.filterProps=["borderRadius"];Uf(j5,_5,L5,O5,N5,$5,B5,z5,D5,F5,Vf,H5,U5);const Wf=t=>{if(t.gap!==void 0&&t.gap!==null){const e=nd(t.theme,"spacing",8),r=n=>({gap:Ps(e,n)});return Zo(t,t.gap,r)}return null};Wf.propTypes={};Wf.filterProps=["gap"];const qf=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=nd(t.theme,"spacing",8),r=n=>({columnGap:Ps(e,n)});return Zo(t,t.columnGap,r)}return null};qf.propTypes={};qf.filterProps=["columnGap"];const Gf=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=nd(t.theme,"spacing",8),r=n=>({rowGap:Ps(e,n)});return Zo(t,t.rowGap,r)}return null};Gf.propTypes={};Gf.filterProps=["rowGap"];const V5=Ar({prop:"gridColumn"}),W5=Ar({prop:"gridRow"}),q5=Ar({prop:"gridAutoFlow"}),G5=Ar({prop:"gridAutoColumns"}),X5=Ar({prop:"gridAutoRows"}),K5=Ar({prop:"gridTemplateColumns"}),Q5=Ar({prop:"gridTemplateRows"}),Y5=Ar({prop:"gridTemplateAreas"}),J5=Ar({prop:"gridArea"});Uf(Wf,qf,Gf,V5,W5,q5,G5,X5,K5,Q5,Y5,J5);function Il(t,e){return e==="grey"?e:t}const Z5=Ar({prop:"color",themeKey:"palette",transform:Il}),eR=Ar({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Il}),tR=Ar({prop:"backgroundColor",themeKey:"palette",transform:Il});Uf(Z5,eR,tR);function mo(t){return t<=1&&t!==0?`${t*100}%`:t}const rR=Ar({prop:"width",transform:mo}),u0=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{var o,s,l,c,u;const n=((l=(s=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:s.values)==null?void 0:l[r])||Ff[r];return n?((u=(c=t.theme)==null?void 0:c.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:mo(r)}};return Zo(t,t.maxWidth,e)}return null};u0.filterProps=["maxWidth"];const nR=Ar({prop:"minWidth",transform:mo}),oR=Ar({prop:"height",transform:mo}),iR=Ar({prop:"maxHeight",transform:mo}),aR=Ar({prop:"minHeight",transform:mo});Ar({prop:"size",cssProperty:"width",transform:mo});Ar({prop:"size",cssProperty:"height",transform:mo});const sR=Ar({prop:"boxSizing"});Uf(rR,u0,nR,oR,iR,aR,sR);const od={border:{themeKey:"borders",transform:Ao},borderTop:{themeKey:"borders",transform:Ao},borderRight:{themeKey:"borders",transform:Ao},borderBottom:{themeKey:"borders",transform:Ao},borderLeft:{themeKey:"borders",transform:Ao},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ao},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vf},color:{themeKey:"palette",transform:Il},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Il},backgroundColor:{themeKey:"palette",transform:Il},p:{style:Tr},pt:{style:Tr},pr:{style:Tr},pb:{style:Tr},pl:{style:Tr},px:{style:Tr},py:{style:Tr},padding:{style:Tr},paddingTop:{style:Tr},paddingRight:{style:Tr},paddingBottom:{style:Tr},paddingLeft:{style:Tr},paddingX:{style:Tr},paddingY:{style:Tr},paddingInline:{style:Tr},paddingInlineStart:{style:Tr},paddingInlineEnd:{style:Tr},paddingBlock:{style:Tr},paddingBlockStart:{style:Tr},paddingBlockEnd:{style:Tr},m:{style:Cr},mt:{style:Cr},mr:{style:Cr},mb:{style:Cr},ml:{style:Cr},mx:{style:Cr},my:{style:Cr},margin:{style:Cr},marginTop:{style:Cr},marginRight:{style:Cr},marginBottom:{style:Cr},marginLeft:{style:Cr},marginX:{style:Cr},marginY:{style:Cr},marginInline:{style:Cr},marginInlineStart:{style:Cr},marginInlineEnd:{style:Cr},marginBlock:{style:Cr},marginBlockStart:{style:Cr},marginBlockEnd:{style:Cr},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Wf},rowGap:{style:Gf},columnGap:{style:qf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mo},maxWidth:{style:u0},minWidth:{transform:mo},height:{transform:mo},maxHeight:{transform:mo},minHeight:{transform:mo},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function lR(...t){const e=t.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function cR(t,e){return typeof t=="function"?t(e):t}function uR(){function t(r,n,o,s){const l={[r]:n,theme:o},c=s[r];if(!c)return{[r]:n};const{cssProperty:u=r,themeKey:f,transform:h,style:v}=c;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const g=Si(o,f)||{};return v?v(l):Zo(l,n,w=>{let x=ff(g,h,w);return w===x&&typeof w=="string"&&(x=ff(g,h,`${r}${w==="default"?"":me(w)}`,w)),u===!1?x:{[u]:x}})}function e(r){const{sx:n,theme:o={},nested:s}=r||{};if(!n)return null;const l=o.unstable_sxConfig??od;function c(u){let f=u;if(typeof u=="function")f=u(o);else if(typeof u!="object")return u;if(!f)return null;const h=QC(o.breakpoints),v=Object.keys(h);let g=h;return Object.keys(f).forEach(y=>{const w=cR(f[y],o);if(w!=null)if(typeof w=="object")if(l[y])g=pu(g,t(y,w,o,l));else{const x=Zo({theme:o},w,C=>({[y]:C}));lR(x,w)?g[y]=e({sx:w,theme:o,nested:!0}):g=pu(g,x)}else g=pu(g,t(y,w,o,l))}),!s&&o.modularCssLayers?{"@layer sx":Cx(o,Qg(v,g))}:Cx(o,Qg(v,g))}return Array.isArray(n)?n.map(c):c(n)}return e}const $a=uR();$a.filterProps=["sx"];function dR(t,e){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[t])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(t);return o==="&"?e:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:e})}return r.palette.mode===t?e:{}}function nc(t={},...e){const{breakpoints:r={},palette:n={},spacing:o,shape:s={},...l}=t,c=v5(r),u=JC(o);let f=Zr({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...S5,...s}},l);return f=w5(f),f.applyStyles=dR,f=e.reduce((h,v)=>Zr(h,v),f),f.unstable_sxConfig={...od,...l==null?void 0:l.unstable_sxConfig},f.unstable_sx=function(v){return $a({sx:v,theme:this})},f}function pR(t){return Object.keys(t).length===0}function Xf(t=null){const e=S.useContext(rd);return!e||pR(e)?t:e}const fR=nc();function id(t=fR){return Xf(t)}function vg(t){const e=Oa(t);return t!==e&&e.styles?(e.styles.match(/^@layer\s+[^{]*$/)||(e.styles=`@layer global{${e.styles}}`),e):t}function ZC({styles:t,themeId:e,defaultTheme:r={}}){const n=id(r),o=e&&n[e]||n;let s=typeof t=="function"?t(o):t;return o.modularCssLayers&&(Array.isArray(s)?s=s.map(l=>vg(typeof l=="function"?l(o):l)):s=vg(s)),p.jsx(qC,{styles:s})}const hR=t=>{var n;const e={systemProps:{},otherProps:{}},r=((n=t==null?void 0:t.theme)==null?void 0:n.unstable_sxConfig)??od;return Object.keys(t).forEach(o=>{r[o]?e.systemProps[o]=t[o]:e.otherProps[o]=t[o]}),e};function Kf(t){const{sx:e,...r}=t,{systemProps:n,otherProps:o}=hR(r);let s;return Array.isArray(e)?s=[n,...e]:typeof e=="function"?s=(...l)=>{const c=e(...l);return Ci(c)?{...n,...c}:n}:s={...n,...e},{...o,sx:s}}const kx=t=>t,mR=()=>{let t=kx;return{configure(e){t=e},generate(e){return t(e)},reset(){t=kx}}},e2=mR();function t2(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=t2(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Me(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=t2(t))&&(n&&(n+=" "),n+=e);return n}function gR(t={}){const{themeId:e,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=t,s=GC("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})($a);return S.forwardRef(function(u,f){const h=id(r),{className:v,component:g="div",...y}=Kf(u);return p.jsx(s,{as:g,ref:f,className:Me(v,o?o(n):n),theme:e&&h[e]||h,...y})})}const yR={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ye(t,e,r="Mui"){const n=yR[e];return n?`${r}-${n}`:`${e2.generate(t)}-${e}`}function Ze(t,e,r="Mui"){const n={};return e.forEach(o=>{n[o]=Ye(t,o,r)}),n}function r2(t){const{variants:e,...r}=t,n={variants:e,style:Oa(r),isProcessed:!0};return n.style===r||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=Oa(o.style))}),n}const vR=nc();function bg(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function Ss(t,e){return e&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}function bR(t){return t?(e,r)=>r[t]:null}function xR(t,e,r){t.theme=SR(t.theme)?r:t.theme[e]||t.theme}function Zp(t,e,r){const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(o=>Zp(t,o,r));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=r?Ss(n.style,r):n.style;else{const{variants:s,...l}=n;o=r?Ss(Oa(l),r):l}return n2(t,n.variants,[o],r)}return n!=null&&n.isProcessed?r?Ss(Oa(n.style),r):n.style:r?Ss(Oa(n),r):n}function n2(t,e,r=[],n=void 0){var s;let o;e:for(let l=0;l<e.length;l+=1){const c=e[l];if(typeof c.props=="function"){if(o??(o={...t,...t.ownerState,ownerState:t.ownerState}),!c.props(o))continue}else for(const u in c.props)if(t[u]!==c.props[u]&&((s=t.ownerState)==null?void 0:s[u])!==c.props[u])continue e;typeof c.style=="function"?(o??(o={...t,...t.ownerState,ownerState:t.ownerState}),r.push(n?Ss(Oa(c.style(o)),n):c.style(o))):r.push(n?Ss(Oa(c.style),n):c.style)}return r}function o2(t={}){const{themeId:e,defaultTheme:r=vR,rootShouldForwardProp:n=bg,slotShouldForwardProp:o=bg}=t;function s(c){xR(c,e,r)}return(c,u={})=>{h5(c,A=>A.filter(F=>F!==$a));const{name:f,slot:h,skipVariantsResolver:v,skipSx:g,overridesResolver:y=bR(TR(h)),...w}=u,x=f&&f.startsWith("Mui")||h?"components":"custom",C=v!==void 0?v:h&&h!=="Root"&&h!=="root"||!1,R=g||!1;let P=bg;h==="Root"||h==="root"?P=n:h?P=o:CR(c)&&(P=void 0);const M=GC(c,{shouldForwardProp:P,label:wR(),...w}),E=A=>{if(A.__emotion_real===A)return A;if(typeof A=="function")return function(j){return Zp(j,A,j.theme.modularCssLayers?x:void 0)};if(Ci(A)){const F=r2(A);return function(H){return F.variants?Zp(H,F,H.theme.modularCssLayers?x:void 0):H.theme.modularCssLayers?Ss(F.style,x):F.style}}return A},I=(...A)=>{const F=[],j=A.map(E),H=[];if(F.push(s),f&&y&&H.push(function(q){var K,ee;const L=(ee=(K=q.theme.components)==null?void 0:K[f])==null?void 0:ee.styleOverrides;if(!L)return null;const W={};for(const Z in L)W[Z]=Zp(q,L[Z],q.theme.modularCssLayers?"theme":void 0);return y(q,W)}),f&&!C&&H.push(function(q){var W,K;const U=q.theme,L=(K=(W=U==null?void 0:U.components)==null?void 0:W[f])==null?void 0:K.variants;return L?n2(q,L,[],q.theme.modularCssLayers?"theme":void 0):null}),R||H.push($a),Array.isArray(j[0])){const k=j.shift(),q=new Array(F.length).fill(""),U=new Array(H.length).fill("");let L;L=[...q,...k,...U],L.raw=[...q,...k.raw,...U],F.unshift(L)}const G=[...F,...j,...H],N=M(...G);return c.muiName&&(N.muiName=c.muiName),N};return M.withConfig&&(I.withConfig=M.withConfig),I}}function wR(t,e){return void 0}function SR(t){for(const e in t)return!1;return!0}function CR(t){return typeof t=="string"&&t.charCodeAt(0)>96}function TR(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const d0=o2();function Nl(t,e,r=!1){const n={...e};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const s=o;if(s==="components"||s==="slots")n[s]={...t[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const l=t[s],c=e[s];if(!c)n[s]=l||{};else if(!l)n[s]=c;else{n[s]={...c};for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u)){const f=u;n[s][f]=Nl(l[f],c[f],r)}}}else s==="className"&&r&&e.className?n.className=Me(t==null?void 0:t.className,e==null?void 0:e.className):s==="style"&&r&&e.style?n.style={...t==null?void 0:t.style,...e==null?void 0:e.style}:n[s]===void 0&&(n[s]=t[s])}return n}function i2(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:Nl(e.components[r].defaultProps,n)}function p0({props:t,name:e,defaultTheme:r,themeId:n}){let o=id(r);return n&&(o=o[n]||o),i2({theme:o,name:e,props:t})}const Xn=typeof window<"u"?S.useLayoutEffect:S.useEffect;function ER(t,e,r,n,o){const[s,l]=S.useState(()=>o&&r?r(t).matches:n?n(t).matches:e);return Xn(()=>{if(!r)return;const c=r(t),u=()=>{l(c.matches)};return u(),c.addEventListener("change",u),()=>{c.removeEventListener("change",u)}},[t,r]),s}const kR={...Cu},a2=kR.useSyncExternalStore;function PR(t,e,r,n,o){const s=S.useCallback(()=>e,[e]),l=S.useMemo(()=>{if(o&&r)return()=>r(t).matches;if(n!==null){const{matches:h}=n(t);return()=>h}return s},[s,t,n,o,r]),[c,u]=S.useMemo(()=>{if(r===null)return[s,()=>()=>{}];const h=r(t);return[()=>h.matches,v=>(h.addEventListener("change",v),()=>{h.removeEventListener("change",v)})]},[s,r,t]);return a2(u,c,l)}function s2(t={}){const{themeId:e}=t;return function(n,o={}){let s=Xf();s&&e&&(s=s[e]||s);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:u=l?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:h=!1}=i2({name:"MuiUseMediaQuery",props:o,theme:s});let v=typeof n=="function"?n(s):n;return v=v.replace(/^@media( ?)/m,""),v.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
83
+ `)),(a2!==void 0?PR:ER)(v,c,u,f,h)}}s2();function RR(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function f0(t,e=0,r=1){return RR(t,e,r)}function MR(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ba(t){if(t.type)return t;if(t.charAt(0)==="#")return Ba(MR(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Ji(9,t));let n=t.substring(e+1,t.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Ji(10,o))}else n=n.split(",");return n=n.map(s=>parseFloat(s)),{type:r,values:n,colorSpace:o}}const IR=t=>{const e=Ba(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},iu=(t,e)=>{try{return IR(t)}catch{return t}};function Qf(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((o,s)=>s<3?parseInt(o,10):o):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function l2(t){t=Ba(t);const{values:e}=t,r=e[0],n=e[1]/100,o=e[2]/100,s=n*Math.min(o,1-o),l=(f,h=(f+r/30)%12)=>o-s*Math.max(Math.min(h-3,9-h,1),-1);let c="rgb";const u=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return t.type==="hsla"&&(c+="a",u.push(e[3])),Qf({type:c,values:u})}function Yg(t){t=Ba(t);let e=t.type==="hsl"||t.type==="hsla"?Ba(l2(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function AR(t,e){const r=Yg(t),n=Yg(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Iu(t,e){return t=Ba(t),e=f0(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Qf(t)}function ms(t,e,r){try{return Iu(t,e)}catch{return t}}function Yf(t,e){if(t=Ba(t),e=f0(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return Qf(t)}function tr(t,e,r){try{return Yf(t,e)}catch{return t}}function Jf(t,e){if(t=Ba(t),e=f0(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return Qf(t)}function rr(t,e,r){try{return Jf(t,e)}catch{return t}}function Jg(t,e=.15){return Yg(t)>.5?Yf(t,e):Jf(t,e)}function Cp(t,e,r){try{return Jg(t,e)}catch{return t}}const c2=S.createContext(null);function h0(){return S.useContext(c2)}const jR=typeof Symbol=="function"&&Symbol.for,_R=jR?Symbol.for("mui.nested"):"__THEME_NESTED__";function LR(t,e){return typeof e=="function"?e(t):{...t,...e}}function OR(t){const{children:e,theme:r}=t,n=h0(),o=S.useMemo(()=>{const s=n===null?{...r}:LR(n,r);return s!=null&&(s[_R]=n!==null),s},[r,n]);return p.jsx(c2.Provider,{value:o,children:e})}const u2=S.createContext();function NR({value:t,...e}){return p.jsx(u2.Provider,{value:t??!0,...e})}const Ka=()=>S.useContext(u2)??!1,d2=S.createContext(void 0);function $R({value:t,children:e}){return p.jsx(d2.Provider,{value:t,children:e})}function BR(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const o=e.components[r];return o.defaultProps?Nl(o.defaultProps,n,e.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Nl(o,n,e.components.mergeClassNameAndStyle):n}function zR({props:t,name:e}){const r=S.useContext(d2);return BR({props:t,name:e,theme:{components:r}})}let Px=0;function DR(t){const[e,r]=S.useState(t),n=t||e;return S.useEffect(()=>{e==null&&(Px+=1,r(`mui-${Px}`))},[e]),n}const FR={...Cu},Rx=FR.useId;function Pi(t){if(Rx!==void 0){const e=Rx();return t??e}return DR(t)}function HR(t){const e=Xf(),r=Pi()||"",{modularCssLayers:n}=t;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||e!==null?o="":typeof n=="string"?o=n.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,Xn(()=>{var c,u;const s=document.querySelector("head");if(!s)return;const l=s.firstChild;if(o){if(l&&((c=l.hasAttribute)!=null&&c.call(l,"data-mui-layer-order"))&&l.getAttribute("data-mui-layer-order")===r)return;const f=document.createElement("style");f.setAttribute("data-mui-layer-order",r),f.textContent=o,s.prepend(f)}else(u=s.querySelector(`style[data-mui-layer-order="${r}"]`))==null||u.remove()},[o,r]),o?p.jsx(ZC,{styles:o}):null}const Mx={};function Ix(t,e,r,n=!1){return S.useMemo(()=>{const o=t&&e[t]||e;if(typeof r=="function"){const s=r(o),l=t?{...e,[t]:s}:s;return n?()=>l:l}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function p2(t){const{children:e,theme:r,themeId:n}=t,o=Xf(Mx),s=h0()||Mx,l=Ix(n,o,r),c=Ix(n,s,r,!0),u=(n?l[n]:l).direction==="rtl",f=HR(l);return p.jsx(OR,{theme:c,children:p.jsx(rd.Provider,{value:l,children:p.jsx(NR,{value:u,children:p.jsxs($R,{value:n?l[n].components:l.components,children:[f,e]})})})})}const Ax={theme:void 0};function UR(t){let e,r;return function(o){let s=e;return(s===void 0||o.theme!==r)&&(Ax.theme=o.theme,s=r2(t(Ax)),e=s,r=o.theme),s}}const m0="mode",g0="color-scheme",VR="data-color-scheme";function WR(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=m0,colorSchemeStorageKey:s=g0,attribute:l=VR,colorSchemeNode:c="document.documentElement",nonce:u}=t||{};let f="",h=l;if(l==="class"&&(h=".%s"),l==="data"&&(h="[data-%s]"),h.startsWith(".")){const g=h.substring(1);f+=`${c}.classList.remove('${g}'.replace('%s', light), '${g}'.replace('%s', dark));
84
+ ${c}.classList.add('${g}'.replace('%s', colorScheme));`}const v=h.match(/\[([^[\]]+)\]/);if(v){const[g,y]=v[1].split("=");y||(f+=`${c}.removeAttribute('${g}'.replace('%s', light));
85
+ ${c}.removeAttribute('${g}'.replace('%s', dark));`),f+=`
86
+ ${c}.setAttribute('${g}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else h!==".%s"&&(f+=`${c}.setAttribute('${h}', colorScheme);`);return p.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() {
87
+ try {
88
+ let colorScheme = '';
89
+ const mode = localStorage.getItem('${o}') || '${e}';
90
+ const dark = localStorage.getItem('${s}-dark') || '${n}';
91
+ const light = localStorage.getItem('${s}-light') || '${r}';
92
+ if (mode === 'system') {
93
+ // handle system mode
94
+ const mql = window.matchMedia('(prefers-color-scheme: dark)');
95
+ if (mql.matches) {
96
+ colorScheme = dark
97
+ } else {
98
+ colorScheme = light
99
+ }
100
+ }
101
+ if (mode === 'light') {
102
+ colorScheme = light;
103
+ }
104
+ if (mode === 'dark') {
105
+ colorScheme = dark;
106
+ }
107
+ if (colorScheme) {
108
+ ${f}
109
+ }
110
+ } catch(e){}})();`}},"mui-color-scheme-init")}function qR(){}const GR=({key:t,storageWindow:e})=>(!e&&typeof window<"u"&&(e=window),{get(r){if(typeof window>"u")return;if(!e)return r;let n;try{n=e.localStorage.getItem(t)}catch{}return n||r},set:r=>{if(e)try{e.localStorage.setItem(t,r)}catch{}},subscribe:r=>{if(!e)return qR;const n=o=>{const s=o.newValue;o.key===t&&r(s)};return e.addEventListener("storage",n),()=>{e.removeEventListener("storage",n)}}});function xg(){}function jx(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function f2(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function XR(t){return f2(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function KR(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:s=m0,colorSchemeStorageKey:l=g0,storageWindow:c=typeof window>"u"?void 0:window,storageManager:u=GR,noSsr:f=!1}=t,h=o.join(","),v=o.length>1,g=S.useMemo(()=>u==null?void 0:u({key:s,storageWindow:c}),[u,s,c]),y=S.useMemo(()=>u==null?void 0:u({key:`${l}-light`,storageWindow:c}),[u,l,c]),w=S.useMemo(()=>u==null?void 0:u({key:`${l}-dark`,storageWindow:c}),[u,l,c]),[x,C]=S.useState(()=>{const j=(g==null?void 0:g.get(e))||e,H=(y==null?void 0:y.get(r))||r,G=(w==null?void 0:w.get(n))||n;return{mode:j,systemMode:jx(j),lightColorScheme:H,darkColorScheme:G}}),[R,P]=S.useState(f||!v);S.useEffect(()=>{P(!0)},[]);const M=XR(x),E=S.useCallback(j=>{C(H=>{if(j===H.mode)return H;const G=j??e;return g==null||g.set(G),{...H,mode:G,systemMode:jx(G)}})},[g,e]),I=S.useCallback(j=>{j?typeof j=="string"?j&&!h.includes(j)?console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`):C(H=>{const G={...H};return f2(H,N=>{N==="light"&&(y==null||y.set(j),G.lightColorScheme=j),N==="dark"&&(w==null||w.set(j),G.darkColorScheme=j)}),G}):C(H=>{const G={...H},N=j.light===null?r:j.light,k=j.dark===null?n:j.dark;return N&&(h.includes(N)?(G.lightColorScheme=N,y==null||y.set(N)):console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`)),k&&(h.includes(k)?(G.darkColorScheme=k,w==null||w.set(k)):console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`)),G}):C(H=>(y==null||y.set(r),w==null||w.set(n),{...H,lightColorScheme:r,darkColorScheme:n}))},[h,y,w,r,n]),A=S.useCallback(j=>{x.mode==="system"&&C(H=>{const G=j!=null&&j.matches?"dark":"light";return H.systemMode===G?H:{...H,systemMode:G}})},[x.mode]),F=S.useRef(A);return F.current=A,S.useEffect(()=>{if(typeof window.matchMedia!="function"||!v)return;const j=(...G)=>F.current(...G),H=window.matchMedia("(prefers-color-scheme: dark)");return H.addListener(j),j(H),()=>{H.removeListener(j)}},[v]),S.useEffect(()=>{if(v){const j=(g==null?void 0:g.subscribe(N=>{(!N||["light","dark","system"].includes(N))&&E(N||e)}))||xg,H=(y==null?void 0:y.subscribe(N=>{(!N||h.match(N))&&I({light:N})}))||xg,G=(w==null?void 0:w.subscribe(N=>{(!N||h.match(N))&&I({dark:N})}))||xg;return()=>{j(),H(),G()}}},[I,E,h,e,c,v,g,y,w]),{...x,mode:R?x.mode:void 0,systemMode:R?x.systemMode:void 0,colorScheme:R?M:void 0,setMode:E,setColorScheme:I}}const QR="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function YR(t){const{themeId:e,theme:r={},modeStorageKey:n=m0,colorSchemeStorageKey:o=g0,disableTransitionOnChange:s=!1,defaultColorScheme:l,resolveTheme:c}=t,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=S.createContext(void 0),h=()=>S.useContext(f)||u,v={},g={};function y(R){var ve,Te,Pe,Ve;const{children:P,theme:M,modeStorageKey:E=n,colorSchemeStorageKey:I=o,disableTransitionOnChange:A=s,storageManager:F,storageWindow:j=typeof window>"u"?void 0:window,documentNode:H=typeof document>"u"?void 0:document,colorSchemeNode:G=typeof document>"u"?void 0:document.documentElement,disableNestedContext:N=!1,disableStyleSheetGeneration:k=!1,defaultMode:q="system",forceThemeRerender:U=!1,noSsr:L}=R,W=S.useRef(!1),K=h0(),ee=S.useContext(f),Z=!!ee&&!N,Q=S.useMemo(()=>M||(typeof r=="function"?r():r),[M]),X=Q[e],re=X||Q,{colorSchemes:ce=v,components:Y=g,cssVarPrefix:ne}=re,J=Object.keys(ce).filter(Qe=>!!ce[Qe]).join(","),de=S.useMemo(()=>J.split(","),[J]),Ce=typeof l=="string"?l:l.light,he=typeof l=="string"?l:l.dark,se=ce[Ce]&&ce[he]?q:((Te=(ve=ce[re.defaultColorScheme])==null?void 0:ve.palette)==null?void 0:Te.mode)||((Pe=re.palette)==null?void 0:Pe.mode),{mode:De,setMode:Ne,systemMode:Oe,lightColorScheme:Be,darkColorScheme:_e,colorScheme:Ke,setColorScheme:dt}=KR({supportedColorSchemes:de,defaultLightColorScheme:Ce,defaultDarkColorScheme:he,modeStorageKey:E,colorSchemeStorageKey:I,defaultMode:se,storageManager:F,storageWindow:j,noSsr:L});let ke=De,ft=Ke;Z&&(ke=ee.mode,ft=ee.colorScheme);let We=ft||re.defaultColorScheme;re.vars&&!U&&(We=re.defaultColorScheme);const pt=S.useMemo(()=>{var Ee;const Qe=((Ee=re.generateThemeVars)==null?void 0:Ee.call(re))||re.vars,oe={...re,components:Y,colorSchemes:ce,cssVarPrefix:ne,vars:Qe};if(typeof oe.generateSpacing=="function"&&(oe.spacing=oe.generateSpacing()),We){const $e=ce[We];$e&&typeof $e=="object"&&Object.keys($e).forEach(Fe=>{$e[Fe]&&typeof $e[Fe]=="object"?oe[Fe]={...oe[Fe],...$e[Fe]}:oe[Fe]=$e[Fe]})}return c?c(oe):oe},[re,We,Y,ce,ne]),Ue=re.colorSchemeSelector;Xn(()=>{if(ft&&G&&Ue&&Ue!=="media"){const Qe=Ue;let oe=Ue;if(Qe==="class"&&(oe=".%s"),Qe==="data"&&(oe="[data-%s]"),Qe!=null&&Qe.startsWith("data-")&&!Qe.includes("%s")&&(oe=`[${Qe}="%s"]`),oe.startsWith("."))G.classList.remove(...de.map(Ee=>oe.substring(1).replace("%s",Ee))),G.classList.add(oe.substring(1).replace("%s",ft));else{const Ee=oe.replace("%s",ft).match(/\[([^\]]+)\]/);if(Ee){const[$e,Fe]=Ee[1].split("=");Fe||de.forEach(xt=>{G.removeAttribute($e.replace(ft,xt))}),G.setAttribute($e,Fe?Fe.replace(/"|'/g,""):"")}else G.setAttribute(oe,ft)}}},[ft,Ue,G,de]),S.useEffect(()=>{let Qe;if(A&&W.current&&H){const oe=H.createElement("style");oe.appendChild(H.createTextNode(QR)),H.head.appendChild(oe),window.getComputedStyle(H.body),Qe=setTimeout(()=>{H.head.removeChild(oe)},1)}return()=>{clearTimeout(Qe)}},[ft,A,H]),S.useEffect(()=>(W.current=!0,()=>{W.current=!1}),[]);const Wt=S.useMemo(()=>({allColorSchemes:de,colorScheme:ft,darkColorScheme:_e,lightColorScheme:Be,mode:ke,setColorScheme:dt,setMode:Ne,systemMode:Oe}),[de,ft,_e,Be,ke,dt,Ne,Oe,pt.colorSchemeSelector]);let Tt=!0;(k||re.cssVariables===!1||Z&&(K==null?void 0:K.cssVarPrefix)===ne)&&(Tt=!1);const ue=p.jsxs(S.Fragment,{children:[p.jsx(p2,{themeId:X?e:void 0,theme:pt,children:P}),Tt&&p.jsx(qC,{styles:((Ve=pt.generateStyleSheets)==null?void 0:Ve.call(pt))||[]})]});return Z?ue:p.jsx(f.Provider,{value:Wt,children:ue})}const w=typeof l=="string"?l:l.light,x=typeof l=="string"?l:l.dark;return{CssVarsProvider:y,useColorScheme:h,getInitColorSchemeScript:R=>WR({colorSchemeStorageKey:o,defaultLightColorScheme:w,defaultDarkColorScheme:x,modeStorageKey:n,...R})}}function JR(t=""){function e(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${t?`${t}-`:""}${n}${e(...o)})`}const _x=(t,e,r,n=[])=>{let o=t;e.forEach((s,l)=>{l===e.length-1?Array.isArray(o)?o[Number(s)]=r:o&&typeof o=="object"&&(o[s]=r):o&&typeof o=="object"&&(o[s]||(o[s]=n.includes(s)?[]:{}),o=o[s])})},ZR=(t,e,r)=>{function n(o,s=[],l=[]){Object.entries(o).forEach(([c,u])=>{(!r||r&&!r([...s,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...s,c],Array.isArray(u)?[...l,c]:l):e([...s,c],u,l))})}n(t)},eM=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function wg(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},o={},s={},l={};return ZR(t,(c,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(c,u))){const h=`--${r?`${r}-`:""}${c.join("-")}`,v=eM(c,u);Object.assign(o,{[h]:v}),_x(s,c,`var(${h})`,f),_x(l,c,`var(${h}, ${v})`,f)}},c=>c[0]==="vars"),{css:o,vars:s,varsWithDefaults:l}}function tM(t,e={}){const{getSelector:r=R,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:s}=e,{colorSchemes:l={},components:c,defaultColorScheme:u="light",...f}=t,{vars:h,css:v,varsWithDefaults:g}=wg(f,e);let y=g;const w={},{[u]:x,...C}=l;if(Object.entries(C||{}).forEach(([E,I])=>{const{vars:A,css:F,varsWithDefaults:j}=wg(I,e);y=Zr(y,j),w[E]={css:F,vars:A}}),x){const{css:E,vars:I,varsWithDefaults:A}=wg(x,e);y=Zr(y,A),w[u]={css:E,vars:I}}function R(E,I){var F,j;let A=o;if(o==="class"&&(A=".%s"),o==="data"&&(A="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(A=`[${o}="%s"]`),E){if(A==="media")return t.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${((j=(F=l[E])==null?void 0:F.palette)==null?void 0:j.mode)||E})`]:{":root":I}};if(A)return t.defaultColorScheme===E?`:root, ${A.replace("%s",String(E))}`:A.replace("%s",String(E))}return":root"}return{vars:y,generateThemeVars:()=>{let E={...h};return Object.entries(w).forEach(([,{vars:I}])=>{E=Zr(E,I)}),E},generateStyleSheets:()=>{var H,G;const E=[],I=t.defaultColorScheme||"light";function A(N,k){Object.keys(k).length&&E.push(typeof N=="string"?{[N]:{...k}}:N)}A(r(void 0,{...v}),v);const{[I]:F,...j}=w;if(F){const{css:N}=F,k=(G=(H=l[I])==null?void 0:H.palette)==null?void 0:G.mode,q=!n&&k?{colorScheme:k,...N}:{...N};A(r(I,{...q}),q)}return Object.entries(j).forEach(([N,{css:k}])=>{var L,W;const q=(W=(L=l[N])==null?void 0:L.palette)==null?void 0:W.mode,U=!n&&q?{colorScheme:q,...k}:{...k};A(r(N,{...U}),U)}),s&&E.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),E}}}function rM(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}function Je(t,e,r=void 0){const n={};for(const o in t){const s=t[o];let l="",c=!0;for(let u=0;u<s.length;u+=1){const f=s[u];f&&(l+=(c===!0?"":" ")+e(f),c=!1,r&&r[f]&&(l+=" "+r[f]))}n[o]=l}return n}const nM=nc(),oM=d0("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`maxWidth${me(String(r.maxWidth))}`],r.fixed&&e.fixed,r.disableGutters&&e.disableGutters]}}),iM=t=>p0({props:t,name:"MuiContainer",defaultTheme:nM}),aM=(t,e)=>{const r=u=>Ye(e,u),{classes:n,fixed:o,disableGutters:s,maxWidth:l}=t,c={root:["root",l&&`maxWidth${me(String(l))}`,o&&"fixed",s&&"disableGutters"]};return Je(c,r,n)};function sM(t={}){const{createStyledComponent:e=oM,useThemeProps:r=iM,componentName:n="MuiContainer"}=t,o=e(({theme:l,ownerState:c})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!c.disableGutters&&{paddingLeft:l.spacing(2),paddingRight:l.spacing(2),[l.breakpoints.up("sm")]:{paddingLeft:l.spacing(3),paddingRight:l.spacing(3)}}}),({theme:l,ownerState:c})=>c.fixed&&Object.keys(l.breakpoints.values).reduce((u,f)=>{const h=f,v=l.breakpoints.values[h];return v!==0&&(u[l.breakpoints.up(h)]={maxWidth:`${v}${l.breakpoints.unit}`}),u},{}),({theme:l,ownerState:c})=>({...c.maxWidth==="xs"&&{[l.breakpoints.up("xs")]:{maxWidth:Math.max(l.breakpoints.values.xs,444)}},...c.maxWidth&&c.maxWidth!=="xs"&&{[l.breakpoints.up(c.maxWidth)]:{maxWidth:`${l.breakpoints.values[c.maxWidth]}${l.breakpoints.unit}`}}}));return S.forwardRef(function(c,u){const f=r(c),{className:h,component:v="div",disableGutters:g=!1,fixed:y=!1,maxWidth:w="lg",classes:x,...C}=f,R={...f,component:v,disableGutters:g,fixed:y,maxWidth:w},P=aM(R,n);return p.jsx(o,{as:v,ownerState:R,className:Me(P.root,h),ref:u,...C})})}function ef(t,e){var r,n,o;return S.isValidElement(t)&&e.indexOf(t.type.muiName??((o=(n=(r=t.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:o.muiName))!==-1}const lM=(t,e)=>t.filter(r=>e.includes(r)),oc=(t,e,r)=>{const n=t.keys[0];Array.isArray(e)?e.forEach((o,s)=>{r((l,c)=>{s<=t.keys.length-1&&(s===0?Object.assign(l,c):l[t.up(t.keys[s])]=c)},o)}):e&&typeof e=="object"?(Object.keys(e).length>t.keys.length?t.keys:lM(t.keys,Object.keys(e))).forEach(s=>{if(t.keys.includes(s)){const l=e[s];l!==void 0&&r((c,u)=>{n===s?Object.assign(c,u):c[t.up(s)]=u},l)}}):(typeof e=="number"||typeof e=="string")&&r((o,s)=>{Object.assign(o,s)},e)};function hf(t){return`--Grid-${t}Spacing`}function Zf(t){return`--Grid-parent-${t}Spacing`}const Lx="--Grid-columns",Al="--Grid-parent-columns",cM=({theme:t,ownerState:e})=>{const r={};return oc(t.breakpoints,e.size,(n,o)=>{let s={};o==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Al}) - (var(${Al}) - ${o}) * (var(${Zf("column")}) / var(${Al})))`}),n(r,s)}),r},uM=({theme:t,ownerState:e})=>{const r={};return oc(t.breakpoints,e.offset,(n,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Al}) + var(${Zf("column")}) * ${o} / var(${Al}))`}),n(r,s)}),r},dM=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={[Lx]:12};return oc(t.breakpoints,e.columns,(n,o)=>{const s=o??12;n(r,{[Lx]:s,"> *":{[Al]:s}})}),r},pM=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return oc(t.breakpoints,e.rowSpacing,(n,o)=>{var l;const s=typeof o=="string"?o:(l=t.spacing)==null?void 0:l.call(t,o);n(r,{[hf("row")]:s,"> *":{[Zf("row")]:s}})}),r},fM=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return oc(t.breakpoints,e.columnSpacing,(n,o)=>{var l;const s=typeof o=="string"?o:(l=t.spacing)==null?void 0:l.call(t,o);n(r,{[hf("column")]:s,"> *":{[Zf("column")]:s}})}),r},hM=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return oc(t.breakpoints,e.direction,(n,o)=>{n(r,{flexDirection:o})}),r},mM=({ownerState:t})=>({minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&t.wrap!=="wrap"&&{flexWrap:t.wrap},gap:`var(${hf("row")}) var(${hf("column")})`}}),gM=t=>{const e=[];return Object.entries(t).forEach(([r,n])=>{n!==!1&&n!==void 0&&e.push(`grid-${r}-${String(n)}`)}),e},yM=(t,e="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(t))return[`spacing-${e}-${String(t)}`];if(typeof t=="object"&&!Array.isArray(t)){const n=[];return Object.entries(t).forEach(([o,s])=>{r(s)&&n.push(`spacing-${o}-${String(s)}`)}),n}return[]},vM=t=>t===void 0?[]:typeof t=="object"?Object.entries(t).map(([e,r])=>`direction-${e}-${r}`):[`direction-xs-${String(t)}`];function bM(t,e){t.item!==void 0&&delete t.item,t.zeroMinWidth!==void 0&&delete t.zeroMinWidth,e.keys.forEach(r=>{t[r]!==void 0&&delete t[r]})}const xM=nc(),wM=d0("div",{name:"MuiGrid",slot:"Root"});function SM(t){return p0({props:t,name:"MuiGrid",defaultTheme:xM})}function CM(t={}){const{createStyledComponent:e=wM,useThemeProps:r=SM,useTheme:n=id,componentName:o="MuiGrid"}=t,s=(f,h)=>{const{container:v,direction:g,spacing:y,wrap:w,size:x}=f,C={root:["root",v&&"container",w!=="wrap"&&`wrap-xs-${String(w)}`,...vM(g),...gM(x),...v?yM(y,h.breakpoints.keys[0]):[]]};return Je(C,R=>Ye(o,R),{})};function l(f,h,v=()=>!0){const g={};return f===null||(Array.isArray(f)?f.forEach((y,w)=>{y!==null&&v(y)&&h.keys[w]&&(g[h.keys[w]]=y)}):typeof f=="object"?Object.keys(f).forEach(y=>{const w=f[y];w!=null&&v(w)&&(g[y]=w)}):g[h.keys[0]]=f),g}const c=e(dM,fM,pM,cM,hM,mM,uM),u=S.forwardRef(function(h,v){const g=n(),y=r(h),w=Kf(y);bM(w,g.breakpoints);const{className:x,children:C,columns:R=12,container:P=!1,component:M="div",direction:E="row",wrap:I="wrap",size:A={},offset:F={},spacing:j=0,rowSpacing:H=j,columnSpacing:G=j,unstable_level:N=0,...k}=w,q=l(A,g.breakpoints,X=>X!==!1),U=l(F,g.breakpoints),L=h.columns??(N?void 0:R),W=h.spacing??(N?void 0:j),K=h.rowSpacing??h.spacing??(N?void 0:H),ee=h.columnSpacing??h.spacing??(N?void 0:G),Z={...w,level:N,columns:L,container:P,direction:E,wrap:I,spacing:W,rowSpacing:K,columnSpacing:ee,size:q,offset:U},Q=s(Z,g);return p.jsx(c,{ref:v,as:M,ownerState:Z,className:Me(Q.root,x),...k,children:S.Children.map(C,X=>{var re;return S.isValidElement(X)&&ef(X,["Grid"])&&P&&X.props.container?S.cloneElement(X,{unstable_level:((re=X.props)==null?void 0:re.unstable_level)??N+1}):X})})});return u.muiName="Grid",u}const TM=nc(),EM=d0("div",{name:"MuiStack",slot:"Root"});function kM(t){return p0({props:t,name:"MuiStack",defaultTheme:TM})}function PM(t,e){const r=S.Children.toArray(t).filter(Boolean);return r.reduce((n,o,s)=>(n.push(o),s<r.length-1&&n.push(S.cloneElement(e,{key:`separator-${s}`})),n),[])}const RM=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],MM=({ownerState:t,theme:e})=>{let r={display:"flex",flexDirection:"column",...Zo({theme:e},yg({values:t.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n}))};if(t.spacing){const n=Hf(e),o=Object.keys(e.breakpoints.values).reduce((u,f)=>((typeof t.spacing=="object"&&t.spacing[f]!=null||typeof t.direction=="object"&&t.direction[f]!=null)&&(u[f]=!0),u),{}),s=yg({values:t.direction,base:o}),l=yg({values:t.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((u,f,h)=>{if(!s[u]){const g=f>0?s[h[f-1]]:"column";s[u]=g}}),r=Zr(r,Zo({theme:e},l,(u,f)=>t.useFlexGap?{gap:Ps(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${RM(f?s[f]:t.direction)}`]:Ps(n,u)}}))}return r=T5(e.breakpoints,r),r};function IM(t={}){const{createStyledComponent:e=EM,useThemeProps:r=kM,componentName:n="MuiStack"}=t,o=()=>Je({root:["root"]},u=>Ye(n,u),{}),s=e(MM);return S.forwardRef(function(u,f){const h=r(u),v=Kf(h),{component:g="div",direction:y="column",spacing:w=0,divider:x,children:C,className:R,useFlexGap:P=!1,...M}=v,E={direction:y,spacing:w,useFlexGap:P},I=o();return p.jsx(s,{as:g,ownerState:E,ref:f,className:Me(I.root,R),...M,children:x?PM(C,x):C})})}function h2(){return{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:ku.white,default:ku.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}}}const m2=h2();function g2(){return{text:{primary:ku.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:ku.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}}}const Zg=g2();function Ox(t,e,r,n){const o=n.light||n,s=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=Jf(t.main,o):e==="dark"&&(t.dark=Yf(t.main,s)))}function Nx(t,e,r,n,o){const s=o.light||o,l=o.dark||o*1.5;e[r]||(e.hasOwnProperty(n)?e[r]=e[n]:r==="light"?e.light=`color-mix(in ${t}, ${e.main}, #fff ${(s*100).toFixed(0)}%)`:r==="dark"&&(e.dark=`color-mix(in ${t}, ${e.main}, #000 ${(l*100).toFixed(0)}%)`))}function AM(t="light"){return t==="dark"?{main:gl[200],light:gl[50],dark:gl[400]}:{main:gl[700],light:gl[400],dark:gl[800]}}function jM(t="light"){return t==="dark"?{main:ml[200],light:ml[50],dark:ml[400]}:{main:ml[500],light:ml[300],dark:ml[700]}}function _M(t="light"){return t==="dark"?{main:hl[500],light:hl[300],dark:hl[700]}:{main:hl[700],light:hl[400],dark:hl[800]}}function LM(t="light"){return t==="dark"?{main:yl[400],light:yl[300],dark:yl[700]}:{main:yl[700],light:yl[500],dark:yl[900]}}function OM(t="light"){return t==="dark"?{main:vl[400],light:vl[300],dark:vl[700]}:{main:vl[800],light:vl[500],dark:vl[900]}}function NM(t="light"){return t==="dark"?{main:Wc[400],light:Wc[300],dark:Wc[700]}:{main:"#ed6c02",light:Wc[500],dark:Wc[900]}}function $M(t){return`oklch(from ${t} var(--__l) 0 h / var(--__a))`}function y0(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...s}=t,l=t.primary||AM(e),c=t.secondary||jM(e),u=t.error||_M(e),f=t.info||LM(e),h=t.success||OM(e),v=t.warning||NM(e);function g(C){return o?$M(C):AR(C,Zg.text.primary)>=r?Zg.text.primary:m2.text.primary}const y=({color:C,name:R,mainShade:P=500,lightShade:M=300,darkShade:E=700})=>{if(C={...C},!C.main&&C[P]&&(C.main=C[P]),!C.hasOwnProperty("main"))throw new Error(Ji(11,R?` (${R})`:"",P));if(typeof C.main!="string")throw new Error(Ji(12,R?` (${R})`:"",JSON.stringify(C.main)));return o?(Nx(o,C,"light",M,n),Nx(o,C,"dark",E,n)):(Ox(C,"light",M,n),Ox(C,"dark",E,n)),C.contrastText||(C.contrastText=g(C.main)),C};let w;return e==="light"?w=h2():e==="dark"&&(w=g2()),Zr({common:{...ku},mode:e,primary:y({color:l,name:"primary"}),secondary:y({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:u,name:"error"}),warning:y({color:v,name:"warning"}),info:y({color:f,name:"info"}),success:y({color:h,name:"success"}),grey:m3,contrastThreshold:r,getContrastText:g,augmentColor:y,tonalOffset:n,...w},s)}function BM(t){const e={};return Object.entries(t).forEach(n=>{const[o,s]=n;typeof s=="object"&&(e[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),e}function zM(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function DM(t){return Math.round(t*1e5)/1e5}const $x={textTransform:"uppercase"},Bx='"Roboto", "Helvetica", "Arial", sans-serif';function y2(t,e){const{fontFamily:r=Bx,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:f,pxToRem:h,...v}=typeof e=="function"?e(t):e,g=n/14,y=h||(C=>`${C/u*g}rem`),w=(C,R,P,M,E)=>({fontFamily:r,fontWeight:C,fontSize:y(R),lineHeight:P,...r===Bx?{letterSpacing:`${DM(M/R)}em`}:{},...E,...f}),x={h1:w(o,96,1.167,-1.5),h2:w(o,60,1.2,-.5),h3:w(s,48,1.167,0),h4:w(s,34,1.235,.25),h5:w(s,24,1.334,0),h6:w(l,20,1.6,.15),subtitle1:w(s,16,1.75,.15),subtitle2:w(l,14,1.57,.1),body1:w(s,16,1.5,.15),body2:w(s,14,1.43,.15),button:w(l,14,1.75,.4,$x),caption:w(s,12,1.66,.4),overline:w(s,12,2.66,1,$x),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zr({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:c,...x},v,{clone:!1})}const FM=.2,HM=.14,UM=.12;function yr(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${FM})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${HM})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${UM})`].join(",")}const VM=["none",yr(0,2,1,-1,0,1,1,0,0,1,3,0),yr(0,3,1,-2,0,2,2,0,0,1,5,0),yr(0,3,3,-2,0,3,4,0,0,1,8,0),yr(0,2,4,-1,0,4,5,0,0,1,10,0),yr(0,3,5,-1,0,5,8,0,0,1,14,0),yr(0,3,5,-1,0,6,10,0,0,1,18,0),yr(0,4,5,-2,0,7,10,1,0,2,16,1),yr(0,5,5,-3,0,8,10,1,0,3,14,2),yr(0,5,6,-3,0,9,12,1,0,3,16,2),yr(0,6,6,-3,0,10,14,1,0,4,18,3),yr(0,6,7,-4,0,11,15,1,0,4,20,3),yr(0,7,8,-4,0,12,17,2,0,5,22,4),yr(0,7,8,-4,0,13,19,2,0,5,24,4),yr(0,7,9,-4,0,14,21,2,0,5,26,4),yr(0,8,9,-5,0,15,22,2,0,6,28,5),yr(0,8,10,-5,0,16,24,2,0,6,30,5),yr(0,8,11,-5,0,17,26,2,0,6,32,5),yr(0,9,11,-5,0,18,28,2,0,7,34,6),yr(0,9,12,-6,0,19,29,2,0,7,36,6),yr(0,10,13,-6,0,20,31,3,0,8,38,7),yr(0,10,13,-6,0,21,33,3,0,8,40,7),yr(0,10,14,-6,0,22,35,3,0,8,42,7),yr(0,11,14,-7,0,23,36,3,0,9,44,8),yr(0,11,15,-7,0,24,38,3,0,9,46,8)],WM={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)"},v2={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zx(t){return`${Math.round(t)}ms`}function qM(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function GM(t){const e={...WM,...t.easing},r={...v2,...t.duration};return{getAutoHeightDuration:qM,create:(o=["all"],s={})=>{const{duration:l=r.standard,easing:c=e.easeInOut,delay:u=0,...f}=s;return(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof l=="string"?l:zx(l)} ${c} ${typeof u=="string"?u:zx(u)}`).join(",")},...t,easing:e,duration:r}}const XM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function KM(t){return Ci(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function b2(t={}){const e={...t};function r(n){const o=Object.entries(n);for(let s=0;s<o.length;s++){const[l,c]=o[s];!KM(c)||l.startsWith("unstable_")?delete n[l]:Ci(c)&&(n[l]={...c},r(n[l]))}}return r(e),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
111
+
112
+ const theme = ${JSON.stringify(e,null,2)};
113
+
114
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
115
+ theme.transitions = createTransitions(theme.transitions || {});
116
+
117
+ export default theme;`}function Dx(t){return typeof t=="number"?`${(t*100).toFixed(0)}%`:`calc((${t}) * 100%)`}const QM=t=>{if(!Number.isNaN(+t))return+t;const e=t.match(/\d*\.?\d+/g);if(!e)return 0;let r=0;for(let n=0;n<e.length;n+=1)r+=+e[n];return r};function YM(t){Object.assign(t,{alpha(e,r){const n=this||t;return n.colorSpace?`oklch(from ${e} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${e.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Iu(e,QM(r))},lighten(e,r){const n=this||t;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${e}, #fff ${Dx(r)})`:Jf(e,r)},darken(e,r){const n=this||t;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${e}, #000 ${Dx(r)})`:Yf(e,r)}})}function ey(t={},...e){const{breakpoints:r,mixins:n={},spacing:o,palette:s={},transitions:l={},typography:c={},shape:u,colorSpace:f,...h}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(Ji(20));const v=y0({...s,colorSpace:f}),g=nc(t);let y=Zr(g,{mixins:zM(g.breakpoints,n),palette:v,shadows:VM.slice(),typography:y2(v,c),transitions:GM(l),zIndex:{...XM}});return y=Zr(y,h),y=e.reduce((w,x)=>Zr(w,x),y),y.unstable_sxConfig={...od,...h==null?void 0:h.unstable_sxConfig},y.unstable_sx=function(x){return $a({sx:x,theme:this})},y.toRuntimeSource=b2,YM(y),y}function ty(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const JM=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=ty(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function x2(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function w2(t){return t==="dark"?JM:[]}function ZM(t){const{palette:e={mode:"light"},opacity:r,overlays:n,colorSpace:o,...s}=t,l=y0({...e,colorSpace:o});return{palette:l,opacity:{...x2(l.mode),...r},overlays:n||w2(l.mode),...s}}function eI(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const tI=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],rI=t=>(e,r)=>{const n=t.rootSelector||":root",o=t.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const l={};return tI(t.cssVarPrefix).forEach(c=>{l[c]=r[c],delete r[c]}),s==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:l}}:s?{[s.replace("%s",e)]:l,[`${n}, ${s.replace("%s",e)}`]:r}:{[n]:{...r,...l}}}if(s&&s!=="media")return`${n}, ${s.replace("%s",String(e))}`}else if(e){if(s==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(s)return s.replace("%s",String(e))}return n};function nI(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function Se(t,e,r){!t[e]&&r&&(t[e]=r)}function au(t){return typeof t!="string"||!t.startsWith("hsl")?t:l2(t)}function qi(t,e){`${e}Channel`in t||(t[`${e}Channel`]=iu(au(t[e])))}function oI(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const hi=t=>{try{return t()}catch{}},iI=(t="mui")=>JR(t);function Sg(t,e,r,n,o){if(!r)return;r=r===!0?{}:r;const s=o==="dark"?"dark":"light";if(!n){e[o]=ZM({...r,palette:{mode:s,...r==null?void 0:r.palette},colorSpace:t});return}const{palette:l,...c}=ey({...n,palette:{mode:s,...r==null?void 0:r.palette},colorSpace:t});return e[o]={...r,palette:l,opacity:{...x2(s),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||w2(s)},c}function aI(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:l=!1,shouldSkipGeneratingVar:c=eI,colorSchemeSelector:u=r.light&&r.dark?"media":void 0,rootSelector:f=":root",...h}=t,v=Object.keys(r)[0],g=n||(r.light&&v!=="light"?"light":v),y=iI(s),{[g]:w,light:x,dark:C,...R}=r,P={...R};let M=w;if((g==="dark"&&!("dark"in r)||g==="light"&&!("light"in r))&&(M=!0),!M)throw new Error(Ji(21,g));let E;l&&(E="oklch");const I=Sg(E,P,M,h,g);x&&!P.light&&Sg(E,P,x,void 0,"light"),C&&!P.dark&&Sg(E,P,C,void 0,"dark");let A={defaultColorScheme:g,...I,cssVarPrefix:s,colorSchemeSelector:u,rootSelector:f,getCssVar:y,colorSchemes:P,font:{...BM(I.typography),...I.font},spacing:oI(h.spacing)};Object.keys(A.colorSchemes).forEach(N=>{const k=A.colorSchemes[N].palette,q=L=>{const W=L.split("-"),K=W[1],ee=W[2];return y(L,k[K][ee])};k.mode==="light"&&(Se(k.common,"background","#fff"),Se(k.common,"onBackground","#000")),k.mode==="dark"&&(Se(k.common,"background","#000"),Se(k.common,"onBackground","#fff"));function U(L,W,K){if(E){let ee;return L===ms&&(ee=`transparent ${((1-K)*100).toFixed(0)}%`),L===tr&&(ee=`#000 ${(K*100).toFixed(0)}%`),L===rr&&(ee=`#fff ${(K*100).toFixed(0)}%`),`color-mix(in ${E}, ${W}, ${ee})`}return L(W,K)}if(nI(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){Se(k.Alert,"errorColor",U(tr,k.error.light,.6)),Se(k.Alert,"infoColor",U(tr,k.info.light,.6)),Se(k.Alert,"successColor",U(tr,k.success.light,.6)),Se(k.Alert,"warningColor",U(tr,k.warning.light,.6)),Se(k.Alert,"errorFilledBg",q("palette-error-main")),Se(k.Alert,"infoFilledBg",q("palette-info-main")),Se(k.Alert,"successFilledBg",q("palette-success-main")),Se(k.Alert,"warningFilledBg",q("palette-warning-main")),Se(k.Alert,"errorFilledColor",hi(()=>k.getContrastText(k.error.main))),Se(k.Alert,"infoFilledColor",hi(()=>k.getContrastText(k.info.main))),Se(k.Alert,"successFilledColor",hi(()=>k.getContrastText(k.success.main))),Se(k.Alert,"warningFilledColor",hi(()=>k.getContrastText(k.warning.main))),Se(k.Alert,"errorStandardBg",U(rr,k.error.light,.9)),Se(k.Alert,"infoStandardBg",U(rr,k.info.light,.9)),Se(k.Alert,"successStandardBg",U(rr,k.success.light,.9)),Se(k.Alert,"warningStandardBg",U(rr,k.warning.light,.9)),Se(k.Alert,"errorIconColor",q("palette-error-main")),Se(k.Alert,"infoIconColor",q("palette-info-main")),Se(k.Alert,"successIconColor",q("palette-success-main")),Se(k.Alert,"warningIconColor",q("palette-warning-main")),Se(k.AppBar,"defaultBg",q("palette-grey-100")),Se(k.Avatar,"defaultBg",q("palette-grey-400")),Se(k.Button,"inheritContainedBg",q("palette-grey-300")),Se(k.Button,"inheritContainedHoverBg",q("palette-grey-A100")),Se(k.Chip,"defaultBorder",q("palette-grey-400")),Se(k.Chip,"defaultAvatarColor",q("palette-grey-700")),Se(k.Chip,"defaultIconColor",q("palette-grey-700")),Se(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Se(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Se(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Se(k.LinearProgress,"primaryBg",U(rr,k.primary.main,.62)),Se(k.LinearProgress,"secondaryBg",U(rr,k.secondary.main,.62)),Se(k.LinearProgress,"errorBg",U(rr,k.error.main,.62)),Se(k.LinearProgress,"infoBg",U(rr,k.info.main,.62)),Se(k.LinearProgress,"successBg",U(rr,k.success.main,.62)),Se(k.LinearProgress,"warningBg",U(rr,k.warning.main,.62)),Se(k.Skeleton,"bg",E?U(ms,k.text.primary,.11):`rgba(${q("palette-text-primaryChannel")} / 0.11)`),Se(k.Slider,"primaryTrack",U(rr,k.primary.main,.62)),Se(k.Slider,"secondaryTrack",U(rr,k.secondary.main,.62)),Se(k.Slider,"errorTrack",U(rr,k.error.main,.62)),Se(k.Slider,"infoTrack",U(rr,k.info.main,.62)),Se(k.Slider,"successTrack",U(rr,k.success.main,.62)),Se(k.Slider,"warningTrack",U(rr,k.warning.main,.62));const L=E?U(tr,k.background.default,.6825):Cp(k.background.default,.8);Se(k.SnackbarContent,"bg",L),Se(k.SnackbarContent,"color",hi(()=>E?Zg.text.primary:k.getContrastText(L))),Se(k.SpeedDialAction,"fabHoverBg",Cp(k.background.paper,.15)),Se(k.StepConnector,"border",q("palette-grey-400")),Se(k.StepContent,"border",q("palette-grey-400")),Se(k.Switch,"defaultColor",q("palette-common-white")),Se(k.Switch,"defaultDisabledColor",q("palette-grey-100")),Se(k.Switch,"primaryDisabledColor",U(rr,k.primary.main,.62)),Se(k.Switch,"secondaryDisabledColor",U(rr,k.secondary.main,.62)),Se(k.Switch,"errorDisabledColor",U(rr,k.error.main,.62)),Se(k.Switch,"infoDisabledColor",U(rr,k.info.main,.62)),Se(k.Switch,"successDisabledColor",U(rr,k.success.main,.62)),Se(k.Switch,"warningDisabledColor",U(rr,k.warning.main,.62)),Se(k.TableCell,"border",U(rr,U(ms,k.divider,1),.88)),Se(k.Tooltip,"bg",U(ms,k.grey[700],.92))}if(k.mode==="dark"){Se(k.Alert,"errorColor",U(rr,k.error.light,.6)),Se(k.Alert,"infoColor",U(rr,k.info.light,.6)),Se(k.Alert,"successColor",U(rr,k.success.light,.6)),Se(k.Alert,"warningColor",U(rr,k.warning.light,.6)),Se(k.Alert,"errorFilledBg",q("palette-error-dark")),Se(k.Alert,"infoFilledBg",q("palette-info-dark")),Se(k.Alert,"successFilledBg",q("palette-success-dark")),Se(k.Alert,"warningFilledBg",q("palette-warning-dark")),Se(k.Alert,"errorFilledColor",hi(()=>k.getContrastText(k.error.dark))),Se(k.Alert,"infoFilledColor",hi(()=>k.getContrastText(k.info.dark))),Se(k.Alert,"successFilledColor",hi(()=>k.getContrastText(k.success.dark))),Se(k.Alert,"warningFilledColor",hi(()=>k.getContrastText(k.warning.dark))),Se(k.Alert,"errorStandardBg",U(tr,k.error.light,.9)),Se(k.Alert,"infoStandardBg",U(tr,k.info.light,.9)),Se(k.Alert,"successStandardBg",U(tr,k.success.light,.9)),Se(k.Alert,"warningStandardBg",U(tr,k.warning.light,.9)),Se(k.Alert,"errorIconColor",q("palette-error-main")),Se(k.Alert,"infoIconColor",q("palette-info-main")),Se(k.Alert,"successIconColor",q("palette-success-main")),Se(k.Alert,"warningIconColor",q("palette-warning-main")),Se(k.AppBar,"defaultBg",q("palette-grey-900")),Se(k.AppBar,"darkBg",q("palette-background-paper")),Se(k.AppBar,"darkColor",q("palette-text-primary")),Se(k.Avatar,"defaultBg",q("palette-grey-600")),Se(k.Button,"inheritContainedBg",q("palette-grey-800")),Se(k.Button,"inheritContainedHoverBg",q("palette-grey-700")),Se(k.Chip,"defaultBorder",q("palette-grey-700")),Se(k.Chip,"defaultAvatarColor",q("palette-grey-300")),Se(k.Chip,"defaultIconColor",q("palette-grey-300")),Se(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Se(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Se(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Se(k.LinearProgress,"primaryBg",U(tr,k.primary.main,.5)),Se(k.LinearProgress,"secondaryBg",U(tr,k.secondary.main,.5)),Se(k.LinearProgress,"errorBg",U(tr,k.error.main,.5)),Se(k.LinearProgress,"infoBg",U(tr,k.info.main,.5)),Se(k.LinearProgress,"successBg",U(tr,k.success.main,.5)),Se(k.LinearProgress,"warningBg",U(tr,k.warning.main,.5)),Se(k.Skeleton,"bg",E?U(ms,k.text.primary,.13):`rgba(${q("palette-text-primaryChannel")} / 0.13)`),Se(k.Slider,"primaryTrack",U(tr,k.primary.main,.5)),Se(k.Slider,"secondaryTrack",U(tr,k.secondary.main,.5)),Se(k.Slider,"errorTrack",U(tr,k.error.main,.5)),Se(k.Slider,"infoTrack",U(tr,k.info.main,.5)),Se(k.Slider,"successTrack",U(tr,k.success.main,.5)),Se(k.Slider,"warningTrack",U(tr,k.warning.main,.5));const L=E?U(rr,k.background.default,.985):Cp(k.background.default,.98);Se(k.SnackbarContent,"bg",L),Se(k.SnackbarContent,"color",hi(()=>E?m2.text.primary:k.getContrastText(L))),Se(k.SpeedDialAction,"fabHoverBg",Cp(k.background.paper,.15)),Se(k.StepConnector,"border",q("palette-grey-600")),Se(k.StepContent,"border",q("palette-grey-600")),Se(k.Switch,"defaultColor",q("palette-grey-300")),Se(k.Switch,"defaultDisabledColor",q("palette-grey-600")),Se(k.Switch,"primaryDisabledColor",U(tr,k.primary.main,.55)),Se(k.Switch,"secondaryDisabledColor",U(tr,k.secondary.main,.55)),Se(k.Switch,"errorDisabledColor",U(tr,k.error.main,.55)),Se(k.Switch,"infoDisabledColor",U(tr,k.info.main,.55)),Se(k.Switch,"successDisabledColor",U(tr,k.success.main,.55)),Se(k.Switch,"warningDisabledColor",U(tr,k.warning.main,.55)),Se(k.TableCell,"border",U(tr,U(ms,k.divider,1),.68)),Se(k.Tooltip,"bg",U(ms,k.grey[700],.92))}qi(k.background,"default"),qi(k.background,"paper"),qi(k.common,"background"),qi(k.common,"onBackground"),qi(k,"divider"),Object.keys(k).forEach(L=>{const W=k[L];L!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&Se(k[L],"mainChannel",iu(au(W.main))),W.light&&Se(k[L],"lightChannel",iu(au(W.light))),W.dark&&Se(k[L],"darkChannel",iu(au(W.dark))),W.contrastText&&Se(k[L],"contrastTextChannel",iu(au(W.contrastText))),L==="text"&&(qi(k[L],"primary"),qi(k[L],"secondary")),L==="action"&&(W.active&&qi(k[L],"active"),W.selected&&qi(k[L],"selected")))})}),A=e.reduce((N,k)=>Zr(N,k),A);const F={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:rI(A),enableContrastVars:l},{vars:j,generateThemeVars:H,generateStyleSheets:G}=tM(A,F);return A.vars=j,Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([N,k])=>{A[N]=k}),A.generateThemeVars=H,A.generateStyleSheets=G,A.generateSpacing=function(){return JC(h.spacing,Hf(this))},A.getColorSchemeSelector=rM(u),A.spacing=A.generateSpacing(),A.shouldSkipGeneratingVar=c,A.unstable_sxConfig={...od,...h==null?void 0:h.unstable_sxConfig},A.unstable_sx=function(k){return $a({sx:k,theme:this})},A.toRuntimeSource=b2,A}function Fx(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:y0({...r===!0?{}:r.palette,mode:e})})}function eh(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:s=r==null?void 0:r.mode,...l}=t,c=s||"light",u=o==null?void 0:o[c],f={...o,...r?{[c]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return ey(t,...e);let h=r;"palette"in t||f[c]&&(f[c]!==!0?h=f[c].palette:c==="dark"&&(h={mode:"dark"}));const v=ey({...t,palette:h},...e);return v.defaultColorScheme=c,v.colorSchemes=f,v.palette.mode==="light"&&(v.colorSchemes.light={...f.light!==!0&&f.light,palette:v.palette},Fx(v,"dark",f.dark)),v.palette.mode==="dark"&&(v.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:v.palette},Fx(v,"light",f.light)),v}return!r&&!("light"in f)&&c==="light"&&(f.light=!0),aI({...l,colorSchemes:f,defaultColorScheme:c,...typeof n!="boolean"&&n},...e)}function sI(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function lI(t){return parseFloat(t)}const v0=eh();function Jn(){const t=id(v0);return t[Jo]||t}function S2(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Zn=t=>S2(t)&&t!=="classes",ge=o2({themeId:Jo,defaultTheme:v0,rootShouldForwardProp:Zn});function cI({theme:t,...e}){const r=Jo in t?t[Jo]:void 0;return p.jsx(p2,{...e,themeId:r?Jo:void 0,theme:r||t})}const Tp={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:uI}=YR({themeId:Jo,theme:()=>eh({cssVariables:!0}),colorSchemeStorageKey:Tp.colorSchemeStorageKey,modeStorageKey:Tp.modeStorageKey,defaultColorScheme:{light:Tp.defaultLightColorScheme,dark:Tp.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:y2(t.palette,t.typography)};return e.unstable_sx=function(n){return $a({sx:n,theme:this})},e}}),dI=uI;function pI({theme:t,...e}){const r=S.useMemo(()=>{if(typeof t=="function")return t;const n=Jo in t?t[Jo]:t;return"colorSchemes"in n?null:"vars"in n?t:{...t,vars:null}},[t]);return r?p.jsx(cI,{theme:r,...e}):p.jsx(dI,{theme:t,...e})}function Hx(...t){return t.reduce((e,r)=>r==null?e:function(...o){e.apply(this,o),r.apply(this,o)},()=>{})}function fI(t){return p.jsx(ZC,{...t,defaultTheme:v0,themeId:Jo})}function hI(t){return function(r){return p.jsx(fI,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function mI(){return Kf}const Ge=UR;function nt(t){return zR(t)}function gI(t){return Ye("MuiSvgIcon",t)}Ze("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yI=t=>{const{color:e,fontSize:r,classes:n}=t,o={root:["root",e!=="inherit"&&`color${me(e)}`,`fontSize${me(r)}`]};return Je(o,gI,n)},vI=ge("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${me(r.color)}`],e[`fontSize${me(r.fontSize)}`]]}})(Ge(({theme:t})=>{var e,r,n,o,s,l,c,u,f,h,v,g,y,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(n=(r=(t.vars??t).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:x=>!x.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(s=t.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(c=t.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(f=t.typography)==null?void 0:f.pxToRem)==null?void 0:h.call(f,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,x])=>x&&x.main).map(([x])=>{var C,R;return{props:{color:x},style:{color:(R=(C=(t.vars??t).palette)==null?void 0:C[x])==null?void 0:R.main}}}),{props:{color:"action"},style:{color:(g=(v=(t.vars??t).palette)==null?void 0:v.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(w=(y=(t.vars??t).palette)==null?void 0:y.action)==null?void 0:w.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),ry=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiSvgIcon"}),{children:o,className:s,color:l="inherit",component:c="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:v,viewBox:g="0 0 24 24",...y}=n,w=S.isValidElement(o)&&o.type==="svg",x={...n,color:l,component:c,fontSize:u,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:g,hasSvgAsChild:w},C={};h||(C.viewBox=g);const R=yI(x);return p.jsxs(vI,{as:c,className:Me(R.root,s),focusable:"false",color:f,"aria-hidden":v?void 0:!0,role:v?"img":void 0,ref:r,...C,...y,...w&&o.props,ownerState:x,children:[w?o.props.children:o,v?p.jsx("title",{children:v}):null]})});ry.muiName="SvgIcon";function Ie(t,e){function r(n,o){return p.jsx(ry,{"data-testid":void 0,ref:o,...n,children:t})}return r.muiName=ry.muiName,S.memo(S.forwardRef(r))}function th(t,e=166){let r;function n(...o){const s=()=>{t.apply(this,o)};clearTimeout(r),r=setTimeout(s,e)}return n.clear=()=>{clearTimeout(r)},n}function dn(t){return t&&t.ownerDocument||document}function ei(t){return dn(t).defaultView||window}function ny(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Na(t){const{controlled:e,default:r,name:n,state:o="value"}=t,{current:s}=S.useRef(e!==void 0),[l,c]=S.useState(r),u=s?e:l,f=S.useCallback(h=>{s||c(h)},[]);return[u,f]}function Wr(t){const e=S.useRef(t);return Xn(()=>{e.current=t}),S.useRef((...r)=>(0,e.current)(...r)).current}function Mr(...t){const e=S.useRef(void 0),r=S.useCallback(n=>{const o=t.map(s=>{if(s==null)return null;if(typeof s=="function"){const l=s,c=l(n);return typeof c=="function"?c:()=>{l(null)}}return s.current=n,()=>{s.current=null}});return()=>{o.forEach(s=>s==null?void 0:s())}},t);return S.useMemo(()=>t.every(n=>n==null)?null:n=>{e.current&&(e.current(),e.current=void 0),n!=null&&(e.current=r(n))},t)}function bI(t,e){const r=t.charCodeAt(2);return t[0]==="o"&&t[1]==="n"&&r>=65&&r<=90&&typeof e=="function"}function C2(t,e){if(!t)return e;function r(l,c){const u={};return Object.keys(c).forEach(f=>{bI(f,c[f])&&typeof l[f]=="function"&&(u[f]=(...h)=>{l[f](...h),c[f](...h)})}),u}if(typeof t=="function"||typeof e=="function")return l=>{const c=typeof e=="function"?e(l):e,u=typeof t=="function"?t({...l,...c}):t,f=Me(l==null?void 0:l.className,c==null?void 0:c.className,u==null?void 0:u.className),h=r(u,c);return{...c,...u,...h,...!!f&&{className:f},...(c==null?void 0:c.style)&&(u==null?void 0:u.style)&&{style:{...c.style,...u.style}},...(c==null?void 0:c.sx)&&(u==null?void 0:u.sx)&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const n=e,o=r(t,n),s=Me(n==null?void 0:n.className,t==null?void 0:t.className);return{...e,...t,...o,...!!s&&{className:s},...(n==null?void 0:n.style)&&(t==null?void 0:t.style)&&{style:{...n.style,...t.style}},...(n==null?void 0:n.sx)&&(t==null?void 0:t.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}function T2(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function oy(t,e){return oy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},oy(t,e)}function E2(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,oy(t,e)}const Ux={disabled:!1},mf=Mt.createContext(null);var xI=function(e){return e.scrollTop},su="unmounted",vs="exited",bs="entering",Tl="entered",iy="exiting",oi=(function(t){E2(e,t);function e(n,o){var s;s=t.call(this,n,o)||this;var l=o,c=l&&!l.isMounting?n.enter:n.appear,u;return s.appearStatus=null,n.in?c?(u=vs,s.appearStatus=bs):u=Tl:n.unmountOnExit||n.mountOnEnter?u=su:u=vs,s.state={status:u},s.nextCallback=null,s}e.getDerivedStateFromProps=function(o,s){var l=o.in;return l&&s.status===su?{status:vs}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var s=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==bs&&l!==Tl&&(s=bs):(l===bs||l===Tl)&&(s=iy)}this.updateStatus(!1,s)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,s,l,c;return s=l=c=o,o!=null&&typeof o!="number"&&(s=o.exit,l=o.enter,c=o.appear!==void 0?o.appear:l),{exit:s,enter:l,appear:c}},r.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===bs){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:wp.findDOMNode(this);l&&xI(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vs&&this.setState({status:su})},r.performEnter=function(o){var s=this,l=this.props.enter,c=this.context?this.context.isMounting:o,u=this.props.nodeRef?[c]:[wp.findDOMNode(this),c],f=u[0],h=u[1],v=this.getTimeouts(),g=c?v.appear:v.enter;if(!o&&!l||Ux.disabled){this.safeSetState({status:Tl},function(){s.props.onEntered(f)});return}this.props.onEnter(f,h),this.safeSetState({status:bs},function(){s.props.onEntering(f,h),s.onTransitionEnd(g,function(){s.safeSetState({status:Tl},function(){s.props.onEntered(f,h)})})})},r.performExit=function(){var o=this,s=this.props.exit,l=this.getTimeouts(),c=this.props.nodeRef?void 0:wp.findDOMNode(this);if(!s||Ux.disabled){this.safeSetState({status:vs},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:iy},function(){o.props.onExiting(c),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:vs},function(){o.props.onExited(c)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},r.setNextCallback=function(o){var s=this,l=!0;return this.nextCallback=function(c){l&&(l=!1,s.nextCallback=null,o(c))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(o,s){this.setNextCallback(s);var l=this.props.nodeRef?this.props.nodeRef.current:wp.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!l||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],f=u[0],h=u[1];this.props.addEndListener(f,h)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===su)return null;var s=this.props,l=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var c=T2(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Mt.createElement(mf.Provider,{value:null},typeof l=="function"?l(o,c):Mt.cloneElement(Mt.Children.only(l),c))},e})(Mt.Component);oi.contextType=mf;oi.propTypes={};function bl(){}oi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bl,onEntering:bl,onEntered:bl,onExit:bl,onExiting:bl,onExited:bl};oi.UNMOUNTED=su;oi.EXITED=vs;oi.ENTERING=bs;oi.ENTERED=Tl;oi.EXITING=iy;function wI(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b0(t,e){var r=function(s){return e&&S.isValidElement(s)?e(s):s},n=Object.create(null);return t&&S.Children.map(t,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function SI(t,e){t=t||{},e=e||{};function r(h){return h in e?e[h]:t[h]}var n=Object.create(null),o=[];for(var s in t)s in e?o.length&&(n[s]=o,o=[]):o.push(s);var l,c={};for(var u in e){if(n[u])for(l=0;l<n[u].length;l++){var f=n[u][l];c[n[u][l]]=r(f)}c[u]=r(u)}for(l=0;l<o.length;l++)c[o[l]]=r(o[l]);return c}function Cs(t,e,r){return r[e]!=null?r[e]:t.props[e]}function CI(t,e){return b0(t.children,function(r){return S.cloneElement(r,{onExited:e.bind(null,r),in:!0,appear:Cs(r,"appear",t),enter:Cs(r,"enter",t),exit:Cs(r,"exit",t)})})}function TI(t,e,r){var n=b0(t.children),o=SI(e,n);return Object.keys(o).forEach(function(s){var l=o[s];if(S.isValidElement(l)){var c=s in e,u=s in n,f=e[s],h=S.isValidElement(f)&&!f.props.in;u&&(!c||h)?o[s]=S.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:Cs(l,"exit",t),enter:Cs(l,"enter",t)}):!u&&c&&!h?o[s]=S.cloneElement(l,{in:!1}):u&&c&&S.isValidElement(f)&&(o[s]=S.cloneElement(l,{onExited:r.bind(null,l),in:f.props.in,exit:Cs(l,"exit",t),enter:Cs(l,"enter",t)}))}}),o}var EI=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},kI={component:"div",childFactory:function(e){return e}},x0=(function(t){E2(e,t);function e(n,o){var s;s=t.call(this,n,o)||this;var l=s.handleExited.bind(wI(s));return s.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},s}var r=e.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(o,s){var l=s.children,c=s.handleExited,u=s.firstRender;return{children:u?CI(o,c):TI(o,l,c),firstRender:!1}},r.handleExited=function(o,s){var l=b0(this.props.children);o.key in l||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(c){var u=df({},c.children);return delete u[o.key],{children:u}}))},r.render=function(){var o=this.props,s=o.component,l=o.childFactory,c=T2(o,["component","childFactory"]),u=this.state.contextValue,f=EI(this.state.children).map(l);return delete c.appear,delete c.enter,delete c.exit,s===null?Mt.createElement(mf.Provider,{value:u},f):Mt.createElement(mf.Provider,{value:u},Mt.createElement(s,c,f))},e})(Mt.Component);x0.propTypes={};x0.defaultProps=kI;const Vx={};function k2(t,e){const r=S.useRef(Vx);return r.current===Vx&&(r.current=t(e)),r}const PI=[];function RI(t){S.useEffect(t,PI)}class rh{constructor(){hs(this,"currentId",null);hs(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});hs(this,"disposeEffect",()=>this.clear)}static create(){return new rh}start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}}function _a(){const t=k2(rh.create).current;return RI(t.disposeEffect),t}const P2=t=>t.scrollTop;function $l(t,e){const{timeout:r,easing:n,style:o={}}=t;return{duration:o.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:o.transitionDelay}}function gf(t){return typeof t=="string"}function R2(t,e,r){return t===void 0||gf(t)?e:{...e,ownerState:{...e.ownerState,...r}}}function M2(t,e,r){return typeof t=="function"?t(e,r):t}function yf(t,e=[]){if(t===void 0)return{};const r={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function Wx(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function I2(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:s}=t;if(!e){const y=Me(r==null?void 0:r.className,s,o==null?void 0:o.className,n==null?void 0:n.className),w={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},x={...r,...o,...n};return y.length>0&&(x.className=y),Object.keys(w).length>0&&(x.style=w),{props:x,internalRef:void 0}}const l=yf({...o,...n}),c=Wx(n),u=Wx(o),f=e(l),h=Me(f==null?void 0:f.className,r==null?void 0:r.className,s,o==null?void 0:o.className,n==null?void 0:n.className),v={...f==null?void 0:f.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},g={...f,...r,...u,...c};return h.length>0&&(g.className=h),Object.keys(v).length>0&&(g.style=v),{props:g,internalRef:f.ref}}function Xe(t,e){const{className:r,elementType:n,ownerState:o,externalForwardedProps:s,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...u}=e,{component:f,slots:h={[t]:void 0},slotProps:v={[t]:void 0},...g}=s,y=h[t]||n,w=M2(v[t],o),{props:{component:x,...C},internalRef:R}=I2({className:r,...u,externalForwardedProps:t==="root"?g:void 0,externalSlotProps:w}),P=Mr(R,w==null?void 0:w.ref,e.ref),M=t==="root"?x||f:x,E=R2(y,{...t==="root"&&!f&&!h[t]&&l,...t!=="root"&&!h[t]&&l,...C,...M&&!c&&{as:M},...M&&c&&{component:M},ref:P},o);return[y,E]}function MI(t){return Ye("MuiCollapse",t)}Ze("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const II=t=>{const{orientation:e,classes:r}=t,n={root:["root",`${e}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${e}`],wrapperInner:["wrapperInner",`${e}`]};return Je(n,MI,r)},AI=ge("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.orientation],r.state==="entered"&&e.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&e.hidden]}})(Ge(({theme:t})=>({height:0,overflow:"hidden",transition:t.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:t.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>e.state==="exited"&&!e.in&&e.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),jI=ge("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),_I=ge("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),ay=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiCollapse"}),{addEndListener:o,children:s,className:l,collapsedSize:c="0px",component:u,easing:f,in:h,onEnter:v,onEntered:g,onEntering:y,onExit:w,onExited:x,onExiting:C,orientation:R="vertical",slots:P={},slotProps:M={},style:E,timeout:I=v2.standard,TransitionComponent:A=oi,...F}=n,j={...n,orientation:R,collapsedSize:c},H=II(j),G=Jn(),N=_a(),k=S.useRef(null),q=S.useRef(),U=typeof c=="number"?`${c}px`:c,L=R==="horizontal",W=L?"width":"height",K=S.useRef(null),ee=Mr(r,K),Z=_e=>Ke=>{if(_e){const dt=K.current;Ke===void 0?_e(dt):_e(dt,Ke)}},Q=()=>k.current?k.current[L?"clientWidth":"clientHeight"]:0,X=Z((_e,Ke)=>{k.current&&L&&(k.current.style.position="absolute"),_e.style[W]=U,v&&v(_e,Ke)}),re=Z((_e,Ke)=>{const dt=Q();k.current&&L&&(k.current.style.position="");const{duration:ke,easing:ft}=$l({style:E,timeout:I,easing:f},{mode:"enter"});if(I==="auto"){const We=G.transitions.getAutoHeightDuration(dt);_e.style.transitionDuration=`${We}ms`,q.current=We}else _e.style.transitionDuration=typeof ke=="string"?ke:`${ke}ms`;_e.style[W]=`${dt}px`,_e.style.transitionTimingFunction=ft,y&&y(_e,Ke)}),ce=Z((_e,Ke)=>{_e.style[W]="auto",g&&g(_e,Ke)}),Y=Z(_e=>{_e.style[W]=`${Q()}px`,w&&w(_e)}),ne=Z(x),J=Z(_e=>{const Ke=Q(),{duration:dt,easing:ke}=$l({style:E,timeout:I,easing:f},{mode:"exit"});if(I==="auto"){const ft=G.transitions.getAutoHeightDuration(Ke);_e.style.transitionDuration=`${ft}ms`,q.current=ft}else _e.style.transitionDuration=typeof dt=="string"?dt:`${dt}ms`;_e.style[W]=U,_e.style.transitionTimingFunction=ke,C&&C(_e)}),de=_e=>{I==="auto"&&N.start(q.current||0,_e),o&&o(K.current,_e)},Ce={slots:P,slotProps:M,component:u},[he,se]=Xe("root",{ref:ee,className:Me(H.root,l),elementType:AI,externalForwardedProps:Ce,ownerState:j,additionalProps:{style:{[L?"minWidth":"minHeight"]:U,...E}}}),[De,Ne]=Xe("wrapper",{ref:k,className:H.wrapper,elementType:jI,externalForwardedProps:Ce,ownerState:j}),[Oe,Be]=Xe("wrapperInner",{className:H.wrapperInner,elementType:_I,externalForwardedProps:Ce,ownerState:j});return p.jsx(A,{in:h,onEnter:X,onEntered:ce,onEntering:re,onExit:Y,onExited:ne,onExiting:J,addEndListener:de,nodeRef:K,timeout:I==="auto"?null:I,...F,children:(_e,{ownerState:Ke,...dt})=>{const ke={...j,state:_e};return p.jsx(he,{...se,className:Me(se.className,{entered:H.entered,exited:!h&&U==="0px"&&H.hidden}[_e]),ownerState:ke,...dt,children:p.jsx(De,{...Ne,ownerState:ke,children:p.jsx(Oe,{...Be,ownerState:ke,children:s})})})}})});ay&&(ay.muiSupportAuto=!0);function LI(t){return Ye("MuiPaper",t)}Ze("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 OI=t=>{const{square:e,elevation:r,variant:n,classes:o}=t,s={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return Je(s,LI,o)},NI=ge("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(Ge(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ir=S.forwardRef(function(e,r){var y;const n=nt({props:e,name:"MuiPaper"}),o=Jn(),{className:s,component:l="div",elevation:c=1,square:u=!1,variant:f="elevation",...h}=n,v={...n,component:l,elevation:c,square:u,variant:f},g=OI(v);return p.jsx(NI,{as:l,ownerState:v,className:Me(g.root,s),ref:r,...h,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[c],...o.vars&&{"--Paper-overlay":(y=o.vars.overlays)==null?void 0:y[c]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Iu("#fff",ty(c))}, ${Iu("#fff",ty(c))})`}},...h.style}})});function Bl(t){try{return t.matches(":focus-visible")}catch{}return!1}class vf{constructor(){hs(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new vf}static use(){const e=k2(vf.create).current,[r,n]=S.useState(!1);return e.shouldMount=r,e.setShouldMount=n,S.useEffect(e.mountEffect,[r]),e}mount(){return this.mounted||(this.mounted=BI(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...e)})}stop(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...e)})}pulsate(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...e)})}}function $I(){return vf.use()}function BI(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function zI(t){const{className:e,classes:r,pulsate:n=!1,rippleX:o,rippleY:s,rippleSize:l,in:c,onExited:u,timeout:f}=t,[h,v]=S.useState(!1),g=Me(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:l,height:l,top:-(l/2)+s,left:-(l/2)+o},w=Me(r.child,h&&r.childLeaving,n&&r.childPulsate);return!c&&!h&&v(!0),S.useEffect(()=>{if(!c&&u!=null){const x=setTimeout(u,f);return()=>{clearTimeout(x)}}},[u,c,f]),p.jsx("span",{className:g,style:y,children:p.jsx("span",{className:w})})}const Io=Ze("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),sy=550,DI=80,FI=Li`
118
+ 0% {
119
+ transform: scale(0);
120
+ opacity: 0.1;
121
+ }
122
+
123
+ 100% {
124
+ transform: scale(1);
125
+ opacity: 0.3;
126
+ }
127
+ `,HI=Li`
128
+ 0% {
129
+ opacity: 1;
130
+ }
131
+
132
+ 100% {
133
+ opacity: 0;
134
+ }
135
+ `,UI=Li`
136
+ 0% {
137
+ transform: scale(1);
138
+ }
139
+
140
+ 50% {
141
+ transform: scale(0.92);
142
+ }
143
+
144
+ 100% {
145
+ transform: scale(1);
146
+ }
147
+ `,VI=ge("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),WI=ge(zI,{name:"MuiTouchRipple",slot:"Ripple"})`
148
+ opacity: 0;
149
+ position: absolute;
150
+
151
+ &.${Io.rippleVisible} {
152
+ opacity: 0.3;
153
+ transform: scale(1);
154
+ animation-name: ${FI};
155
+ animation-duration: ${sy}ms;
156
+ animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
157
+ }
158
+
159
+ &.${Io.ripplePulsate} {
160
+ animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms;
161
+ }
162
+
163
+ & .${Io.child} {
164
+ opacity: 1;
165
+ display: block;
166
+ width: 100%;
167
+ height: 100%;
168
+ border-radius: 50%;
169
+ background-color: currentColor;
170
+ }
171
+
172
+ & .${Io.childLeaving} {
173
+ opacity: 0;
174
+ animation-name: ${HI};
175
+ animation-duration: ${sy}ms;
176
+ animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
177
+ }
178
+
179
+ & .${Io.childPulsate} {
180
+ position: absolute;
181
+ /* @noflip */
182
+ left: 0px;
183
+ top: 0;
184
+ animation-name: ${UI};
185
+ animation-duration: 2500ms;
186
+ animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
187
+ animation-iteration-count: infinite;
188
+ animation-delay: 200ms;
189
+ }
190
+ `,qI=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:l,...c}=n,[u,f]=S.useState([]),h=S.useRef(0),v=S.useRef(null);S.useEffect(()=>{v.current&&(v.current(),v.current=null)},[u]);const g=S.useRef(!1),y=_a(),w=S.useRef(null),x=S.useRef(null),C=S.useCallback(E=>{const{pulsate:I,rippleX:A,rippleY:F,rippleSize:j,cb:H}=E;f(G=>[...G,p.jsx(WI,{classes:{ripple:Me(s.ripple,Io.ripple),rippleVisible:Me(s.rippleVisible,Io.rippleVisible),ripplePulsate:Me(s.ripplePulsate,Io.ripplePulsate),child:Me(s.child,Io.child),childLeaving:Me(s.childLeaving,Io.childLeaving),childPulsate:Me(s.childPulsate,Io.childPulsate)},timeout:sy,pulsate:I,rippleX:A,rippleY:F,rippleSize:j},h.current)]),h.current+=1,v.current=H},[s]),R=S.useCallback((E={},I={},A=()=>{})=>{const{pulsate:F=!1,center:j=o||I.pulsate,fakeElement:H=!1}=I;if((E==null?void 0:E.type)==="mousedown"&&g.current){g.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(g.current=!0);const G=H?null:x.current,N=G?G.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,q,U;if(j||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)k=Math.round(N.width/2),q=Math.round(N.height/2);else{const{clientX:L,clientY:W}=E.touches&&E.touches.length>0?E.touches[0]:E;k=Math.round(L-N.left),q=Math.round(W-N.top)}if(j)U=Math.sqrt((2*N.width**2+N.height**2)/3),U%2===0&&(U+=1);else{const L=Math.max(Math.abs((G?G.clientWidth:0)-k),k)*2+2,W=Math.max(Math.abs((G?G.clientHeight:0)-q),q)*2+2;U=Math.sqrt(L**2+W**2)}E!=null&&E.touches?w.current===null&&(w.current=()=>{C({pulsate:F,rippleX:k,rippleY:q,rippleSize:U,cb:A})},y.start(DI,()=>{w.current&&(w.current(),w.current=null)})):C({pulsate:F,rippleX:k,rippleY:q,rippleSize:U,cb:A})},[o,C,y]),P=S.useCallback(()=>{R({},{pulsate:!0})},[R]),M=S.useCallback((E,I)=>{if(y.clear(),(E==null?void 0:E.type)==="touchend"&&w.current){w.current(),w.current=null,y.start(0,()=>{M(E,I)});return}w.current=null,f(A=>A.length>0?A.slice(1):A),v.current=I},[y]);return S.useImperativeHandle(r,()=>({pulsate:P,start:R,stop:M}),[P,R,M]),p.jsx(VI,{className:Me(Io.root,s.root,l),ref:x,...c,children:p.jsx(x0,{component:null,exit:!0,children:u})})});function GI(t){return Ye("MuiButtonBase",t)}const XI=Ze("MuiButtonBase",["root","disabled","focusVisible"]),KI=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:o}=t,l=Je({root:["root",e&&"disabled",r&&"focusVisible"]},GI,o);return r&&n&&(l.root+=` ${n}`),l},QI=ge("button",{name:"MuiButtonBase",slot:"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"},[`&.${XI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ti=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:l,className:c,component:u="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:v=!1,focusRipple:g=!1,focusVisibleClassName:y,LinkComponent:w="a",onBlur:x,onClick:C,onContextMenu:R,onDragLeave:P,onFocus:M,onFocusVisible:E,onKeyDown:I,onKeyUp:A,onMouseDown:F,onMouseLeave:j,onMouseUp:H,onTouchEnd:G,onTouchMove:N,onTouchStart:k,tabIndex:q=0,TouchRippleProps:U,touchRippleRef:L,type:W,...K}=n,ee=S.useRef(null),Z=$I(),Q=Mr(Z.ref,L),[X,re]=S.useState(!1);f&&X&&re(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{re(!0),ee.current.focus()}}),[]);const ce=Z.shouldMount&&!h&&!f;S.useEffect(()=>{X&&g&&!h&&Z.pulsate()},[h,g,X,Z]);const Y=Gi(Z,"start",F,v),ne=Gi(Z,"stop",R,v),J=Gi(Z,"stop",P,v),de=Gi(Z,"stop",H,v),Ce=Gi(Z,"stop",Ue=>{X&&Ue.preventDefault(),j&&j(Ue)},v),he=Gi(Z,"start",k,v),se=Gi(Z,"stop",G,v),De=Gi(Z,"stop",N,v),Ne=Gi(Z,"stop",Ue=>{Bl(Ue.target)||re(!1),x&&x(Ue)},!1),Oe=Wr(Ue=>{ee.current||(ee.current=Ue.currentTarget),Bl(Ue.target)&&(re(!0),E&&E(Ue)),M&&M(Ue)}),Be=()=>{const Ue=ee.current;return u&&u!=="button"&&!(Ue.tagName==="A"&&Ue.href)},_e=Wr(Ue=>{g&&!Ue.repeat&&X&&Ue.key===" "&&Z.stop(Ue,()=>{Z.start(Ue)}),Ue.target===Ue.currentTarget&&Be()&&Ue.key===" "&&Ue.preventDefault(),I&&I(Ue),Ue.target===Ue.currentTarget&&Be()&&Ue.key==="Enter"&&!f&&(Ue.preventDefault(),C&&C(Ue))}),Ke=Wr(Ue=>{g&&Ue.key===" "&&X&&!Ue.defaultPrevented&&Z.stop(Ue,()=>{Z.pulsate(Ue)}),A&&A(Ue),C&&Ue.target===Ue.currentTarget&&Be()&&Ue.key===" "&&!Ue.defaultPrevented&&C(Ue)});let dt=u;dt==="button"&&(K.href||K.to)&&(dt=w);const ke={};if(dt==="button"){const Ue=!!K.formAction;ke.type=W===void 0&&!Ue?"button":W,ke.disabled=f}else!K.href&&!K.to&&(ke.role="button"),f&&(ke["aria-disabled"]=f);const ft=Mr(r,ee),We={...n,centerRipple:s,component:u,disabled:f,disableRipple:h,disableTouchRipple:v,focusRipple:g,tabIndex:q,focusVisible:X},pt=KI(We);return p.jsxs(QI,{as:dt,className:Me(pt.root,c),ownerState:We,onBlur:Ne,onClick:C,onContextMenu:ne,onFocus:Oe,onKeyDown:_e,onKeyUp:Ke,onMouseDown:Y,onMouseLeave:Ce,onMouseUp:de,onDragLeave:J,onTouchEnd:se,onTouchMove:De,onTouchStart:he,ref:ft,tabIndex:f?-1:q,type:W,...ke,...K,children:[l,ce?p.jsx(qI,{ref:Q,center:s,...U}):null]})});function Gi(t,e,r,n=!1){return Wr(o=>(r&&r(o),n||t[e](o),!0))}function YI(t){return typeof t.main=="string"}function JI(t,e=[]){if(!YI(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function Zt(t=[]){return([,e])=>e&&JI(e,t)}function ZI(t){return Ye("MuiAlert",t)}const qx=Ze("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function eA(t){return Ye("MuiCircularProgress",t)}Ze("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ko=44,ly=Li`
191
+ 0% {
192
+ transform: rotate(0deg);
193
+ }
194
+
195
+ 100% {
196
+ transform: rotate(360deg);
197
+ }
198
+ `,cy=Li`
199
+ 0% {
200
+ stroke-dasharray: 1px, 200px;
201
+ stroke-dashoffset: 0;
202
+ }
203
+
204
+ 50% {
205
+ stroke-dasharray: 100px, 200px;
206
+ stroke-dashoffset: -15px;
207
+ }
208
+
209
+ 100% {
210
+ stroke-dasharray: 1px, 200px;
211
+ stroke-dashoffset: -126px;
212
+ }
213
+ `,tA=typeof ly!="string"?Xa`
214
+ animation: ${ly} 1.4s linear infinite;
215
+ `:null,rA=typeof cy!="string"?Xa`
216
+ animation: ${cy} 1.4s ease-in-out infinite;
217
+ `:null,nA=t=>{const{classes:e,variant:r,color:n,disableShrink:o}=t,s={root:["root",r,`color${me(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${me(r)}`,o&&"circleDisableShrink"]};return Je(s,eA,e)},oA=ge("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${me(r.color)}`]]}})(Ge(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:tA||{animation:`${ly} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),iA=ge("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),aA=ge("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${me(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(Ge(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:rA||{animation:`${cy} 1.4s ease-in-out infinite`}}]}))),sA=ge("circle",{name:"MuiCircularProgress",slot:"Track"})(Ge(({theme:t})=>({stroke:"currentColor",opacity:(t.vars||t).palette.action.activatedOpacity}))),vo=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:l=!1,enableTrackSlot:c=!1,size:u=40,style:f,thickness:h=3.6,value:v=0,variant:g="indeterminate",...y}=n,w={...n,color:s,disableShrink:l,size:u,thickness:h,value:v,variant:g,enableTrackSlot:c},x=nA(w),C={},R={},P={};if(g==="determinate"){const M=2*Math.PI*((Ko-h)/2);C.strokeDasharray=M.toFixed(3),P["aria-valuenow"]=Math.round(v),C.strokeDashoffset=`${((100-v)/100*M).toFixed(3)}px`,R.transform="rotate(-90deg)"}return p.jsx(oA,{className:Me(x.root,o),style:{width:u,height:u,...R,...f},ownerState:w,ref:r,role:"progressbar",...P,...y,children:p.jsxs(iA,{className:x.svg,ownerState:w,viewBox:`${Ko/2} ${Ko/2} ${Ko} ${Ko}`,children:[c?p.jsx(sA,{className:x.track,ownerState:w,cx:Ko,cy:Ko,r:(Ko-h)/2,fill:"none",strokeWidth:h,"aria-hidden":"true"}):null,p.jsx(aA,{className:x.circle,style:C,ownerState:w,cx:Ko,cy:Ko,r:(Ko-h)/2,fill:"none",strokeWidth:h})]})})});function lA(t){return Ye("MuiIconButton",t)}const Gx=Ze("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),cA=t=>{const{classes:e,disabled:r,color:n,edge:o,size:s,loading:l}=t,c={root:["root",l&&"loading",r&&"disabled",n!=="default"&&`color${me(n)}`,o&&`edge${me(o)}`,`size${me(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Je(c,lA,e)},uA=ge(ti,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.loading&&e.loading,r.color!=="default"&&e[`color${me(r.color)}`],r.edge&&e[`edge${me(r.edge)}`],e[`size${me(r.size)}`]]}})(Ge(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ge(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${Gx.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${Gx.loading}`]:{color:"transparent"}}))),dA=ge("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),mr=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiIconButton"}),{edge:o=!1,children:s,className:l,color:c="default",disabled:u=!1,disableFocusRipple:f=!1,size:h="medium",id:v,loading:g=null,loadingIndicator:y,...w}=n,x=Pi(v),C=y??p.jsx(vo,{"aria-labelledby":x,color:"inherit",size:16}),R={...n,edge:o,color:c,disabled:u,disableFocusRipple:f,loading:g,loadingIndicator:C,size:h},P=cA(R);return p.jsxs(uA,{id:g?x:v,className:Me(P.root,l),centerRipple:!0,focusRipple:!f,disabled:u||g,ref:r,...w,ownerState:R,children:[typeof g=="boolean"&&p.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:p.jsx(dA,{className:P.loadingIndicator,ownerState:R,children:g&&C})}),s]})}),pA=Ie(p.jsx("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"})),fA=Ie(p.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),hA=Ie(p.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),mA=Ie(p.jsx("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"})),A2=Ie(p.jsx("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"})),gA=t=>{const{variant:e,color:r,severity:n,classes:o}=t,s={root:["root",`color${me(r||n)}`,`${e}${me(r||n)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return Je(s,ZI,o)},yA=ge(Ir,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${me(r.color||r.severity)}`]]}})(Ge(({theme:t})=>{const e=t.palette.mode==="light"?t.darken:t.lighten,r=t.palette.mode==="light"?t.lighten:t.darken;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(Zt(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${n}Color`]:e(t.palette[n].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${n}StandardBg`]:r(t.palette[n].light,.9),[`& .${qx.icon}`]:t.vars?{color:t.vars.palette.Alert[`${n}IconColor`]}:{color:t.palette[n].main}}})),...Object.entries(t.palette).filter(Zt(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${n}Color`]:e(t.palette[n].light,.6),border:`1px solid ${(t.vars||t).palette[n].light}`,[`& .${qx.icon}`]:t.vars?{color:t.vars.palette.Alert[`${n}IconColor`]}:{color:t.palette[n].main}}})),...Object.entries(t.palette).filter(Zt(["dark"])).map(([n])=>({props:{colorSeverity:n,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${n}FilledColor`],backgroundColor:t.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[n].dark:t.palette[n].main,color:t.palette.getContrastText(t.palette[n].main)}}}))]}})),vA=ge("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),bA=ge("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),xA=ge("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Xx={success:p.jsx(pA,{fontSize:"inherit"}),warning:p.jsx(fA,{fontSize:"inherit"}),error:p.jsx(hA,{fontSize:"inherit"}),info:p.jsx(mA,{fontSize:"inherit"})},Un=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiAlert"}),{action:o,children:s,className:l,closeText:c="Close",color:u,components:f={},componentsProps:h={},icon:v,iconMapping:g=Xx,onClose:y,role:w="alert",severity:x="success",slotProps:C={},slots:R={},variant:P="standard",...M}=n,E={...n,color:u,severity:x,variant:P,colorSeverity:u||x},I=gA(E),A={slots:{closeButton:f.CloseButton,closeIcon:f.CloseIcon,...R},slotProps:{...h,...C}},[F,j]=Xe("root",{ref:r,shouldForwardComponentProp:!0,className:Me(I.root,l),elementType:yA,externalForwardedProps:{...A,...M},ownerState:E,additionalProps:{role:w,elevation:0}}),[H,G]=Xe("icon",{className:I.icon,elementType:vA,externalForwardedProps:A,ownerState:E}),[N,k]=Xe("message",{className:I.message,elementType:bA,externalForwardedProps:A,ownerState:E}),[q,U]=Xe("action",{className:I.action,elementType:xA,externalForwardedProps:A,ownerState:E}),[L,W]=Xe("closeButton",{elementType:mr,externalForwardedProps:A,ownerState:E}),[K,ee]=Xe("closeIcon",{elementType:A2,externalForwardedProps:A,ownerState:E});return p.jsxs(F,{...j,children:[v!==!1?p.jsx(H,{...G,children:v||g[x]||Xx[x]}):null,p.jsx(N,{...k,children:s}),o!=null?p.jsx(q,{...U,children:o}):null,o==null&&y?p.jsx(q,{...U,children:p.jsx(L,{size:"small","aria-label":c,title:c,color:"inherit",onClick:y,...W,children:p.jsx(K,{fontSize:"small",...ee})})}):null]})});function wA(t){return Ye("MuiTypography",t)}const Kx=Ze("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),SA={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},CA=mI(),TA=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:o,variant:s,classes:l}=t,c={root:["root",s,t.align!=="inherit"&&`align${me(e)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Je(c,wA,l)},EA=ge("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${me(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(Ge(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(t.palette).filter(Zt()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${me(r)}`},style:{color:(t.vars||t).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Qx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},je=S.forwardRef(function(e,r){const{color:n,...o}=nt({props:e,name:"MuiTypography"}),s=!SA[n],l=CA({...o,...s&&{color:n}}),{align:c="inherit",className:u,component:f,gutterBottom:h=!1,noWrap:v=!1,paragraph:g=!1,variant:y="body1",variantMapping:w=Qx,...x}=l,C={...l,align:c,color:n,className:u,component:f,gutterBottom:h,noWrap:v,paragraph:g,variant:y,variantMapping:w},R=f||(g?"p":w[y]||Qx[y])||"span",P=TA(C);return p.jsx(EA,{as:R,ref:r,className:Me(P.root,u),...x,ownerState:C,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...x.style}})});function kA(t){const e=S.useRef({});return S.useEffect(()=>{e.current=t}),e.current}function Yx({array1:t,array2:e,parser:r=n=>n}){return t&&e&&t.length===e.length&&t.every((n,o)=>r(n)===r(e[o]))}function Jx(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function PA(t={}){const{ignoreAccents:e=!0,ignoreCase:r=!0,limit:n,matchFrom:o="any",stringify:s,trim:l=!1}=t;return(c,{inputValue:u,getOptionLabel:f})=>{let h=l?u.trim():u;r&&(h=h.toLowerCase()),e&&(h=Jx(h));const v=h?c.filter(g=>{let y=(s||f)(g);return r&&(y=y.toLowerCase()),e&&(y=Jx(y)),o==="start"?y.startsWith(h):y.includes(h)}):c;return typeof n=="number"?v.slice(0,n):v}}const RA=PA(),Zx=5,MA=t=>{var e;return t.current!==null&&((e=t.current.parentElement)==null?void 0:e.contains(document.activeElement))},IA=[];function ew(t,e,r,n){if(e||t==null||n)return"";const o=r(t);return typeof o=="string"?o:""}function AA(t){const{unstable_isActiveElementInListbox:e=MA,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:l=!1,clearOnBlur:c=!t.freeSolo,clearOnEscape:u=!1,componentName:f="useAutocomplete",defaultValue:h=t.multiple?IA:null,disableClearable:v=!1,disableCloseOnSelect:g=!1,disabled:y,disabledItemsFocusable:w=!1,disableListWrap:x=!1,filterOptions:C=RA,filterSelectedOptions:R=!1,freeSolo:P=!1,getOptionDisabled:M,getOptionKey:E,getOptionLabel:I=we=>we.label??we,groupBy:A,handleHomeEndKeys:F=!t.freeSolo,id:j,includeInputInList:H=!1,inputValue:G,isOptionEqualToValue:N=(we,xe)=>we===xe,multiple:k=!1,onChange:q,onClose:U,onHighlightChange:L,onInputChange:W,onOpen:K,open:ee,openOnFocus:Z=!1,options:Q,readOnly:X=!1,renderValue:re,selectOnFocus:ce=!t.freeSolo,value:Y}=t,ne=Pi(j);let J=I;J=we=>{const xe=I(we);return typeof xe!="string"?String(xe):xe};const de=S.useRef(!1),Ce=S.useRef(!0),he=S.useRef(null),se=S.useRef(null),[De,Ne]=S.useState(null),[Oe,Be]=S.useState(-1),_e=o?0:-1,Ke=S.useRef(_e),dt=S.useRef(ew(h??Y,k,J)).current,[ke,ft]=Na({controlled:Y,default:h,name:f}),[We,pt]=Na({controlled:G,default:dt,name:f,state:"inputValue"}),[Ue,Wt]=S.useState(!1),Tt=S.useCallback((we,xe,tt)=>{if(!(k?ke.length<xe.length:xe!==null)&&!c)return;const Pt=ew(xe,k,J,re);We!==Pt&&(pt(Pt),W&&W(we,Pt,tt))},[J,We,k,W,pt,c,ke,re]),[ue,ve]=Na({controlled:ee,default:!1,name:f,state:"open"}),[Te,Pe]=S.useState(!0),Ve=!k&&ke!=null&&We===J(ke),Qe=ue&&!X,oe=Qe?C(Q.filter(we=>!(R&&(k?ke:[ke]).some(xe=>xe!==null&&N(we,xe)))),{inputValue:Ve&&Te?"":We,getOptionLabel:J}):[],Ee=kA({filteredOptions:oe,value:ke,inputValue:We});S.useEffect(()=>{const we=ke!==Ee.value;Ue&&!we||P&&!we||Tt(null,ke,"reset")},[ke,Tt,Ue,Ee.value,P]);const $e=ue&&oe.length>0&&!X,Fe=Wr(we=>{if(we===-1)he.current.focus();else{const xe=re?"data-item-index":"data-tag-index";De.querySelector(`[${xe}="${we}"]`).focus()}});S.useEffect(()=>{k&&Oe>ke.length-1&&(Be(-1),Fe(-1))},[ke,k,Oe,Fe]);function xt(we,xe){if(!se.current||we<0||we>=oe.length)return-1;let tt=we;for(;;){const wt=se.current.querySelector(`[data-option-index="${tt}"]`),Pt=w?!1:!wt||wt.disabled||wt.getAttribute("aria-disabled")==="true";if(wt&&wt.hasAttribute("tabindex")&&!Pt)return tt;if(xe==="next"?tt=(tt+1)%oe.length:tt=(tt-1+oe.length)%oe.length,tt===we)return-1}}const qt=Wr(({event:we,index:xe,reason:tt})=>{if(Ke.current=xe,xe===-1?he.current.removeAttribute("aria-activedescendant"):he.current.setAttribute("aria-activedescendant",`${ne}-option-${xe}`),L&&["mouse","keyboard","touch"].includes(tt)&&L(we,xe===-1?null:oe[xe],tt),!se.current)return;const wt=se.current.querySelector(`[role="option"].${r}-focused`);wt&&(wt.classList.remove(`${r}-focused`),wt.classList.remove(`${r}-focusVisible`));let Pt=se.current;if(se.current.getAttribute("role")!=="listbox"&&(Pt=se.current.parentElement.querySelector('[role="listbox"]')),!Pt)return;if(xe===-1){Pt.scrollTop=0;return}const Lr=se.current.querySelector(`[data-option-index="${xe}"]`);if(Lr&&(Lr.classList.add(`${r}-focused`),tt==="keyboard"&&Lr.classList.add(`${r}-focusVisible`),Pt.scrollHeight>Pt.clientHeight&&tt!=="mouse"&&tt!=="touch")){const At=Lr,oo=Pt.clientHeight+Pt.scrollTop,ca=At.offsetTop+At.offsetHeight;ca>oo?Pt.scrollTop=ca-Pt.clientHeight:At.offsetTop-At.offsetHeight*(A?1.3:0)<Pt.scrollTop&&(Pt.scrollTop=At.offsetTop-At.offsetHeight*(A?1.3:0))}}),ur=Wr(({event:we,diff:xe,direction:tt="next",reason:wt})=>{if(!Qe)return;const Lr=xt((()=>{const At=oe.length-1;if(xe==="reset")return _e;if(xe==="start")return 0;if(xe==="end")return At;const oo=Ke.current+xe;return oo<0?oo===-1&&H?-1:x&&Ke.current!==-1||Math.abs(xe)>1?0:At:oo>At?oo===At+1&&H?-1:x||Math.abs(xe)>1?At:0:oo})(),tt);if(qt({index:Lr,reason:wt,event:we}),n&&xe!=="reset")if(Lr===-1)he.current.value=We;else{const At=J(oe[Lr]);he.current.value=At,At.toLowerCase().indexOf(We.toLowerCase())===0&&We.length>0&&he.current.setSelectionRange(We.length,At.length)}}),Dr=!Yx({array1:Ee.filteredOptions,array2:oe,parser:J}),nn=()=>{const we=(xe,tt)=>{const wt=xe?J(xe):"",Pt=tt?J(tt):"";return wt===Pt};if(Ke.current!==-1&&!Yx({array1:Ee.filteredOptions,array2:oe,parser:J})&&Ee.inputValue===We&&(k?ke.length===Ee.value.length&&Ee.value.every((xe,tt)=>J(ke[tt])===J(xe)):we(Ee.value,ke))){const xe=Ee.filteredOptions[Ke.current];if(xe)return oe.findIndex(tt=>J(tt)===J(xe))}return-1},fn=S.useCallback(()=>{if(!Qe)return;const we=nn();if(we!==-1){Ke.current=we;return}const xe=k?ke[0]:ke;if(oe.length===0||xe==null){ur({diff:"reset"});return}if(se.current){if(xe!=null){const tt=oe[Ke.current];if(k&&tt&&ke.findIndex(Pt=>N(tt,Pt))!==-1)return;const wt=oe.findIndex(Pt=>N(Pt,xe));wt===-1?ur({diff:"reset"}):qt({index:wt});return}if(Ke.current>=oe.length-1){qt({index:oe.length-1});return}qt({index:Ke.current})}},[oe.length,k?!1:ke,ur,qt,Qe,We,k]),et=Wr(we=>{ny(se,we),we&&fn()});S.useEffect(()=>{(Dr||Qe)&&fn()},[fn,Dr,Qe]);const St=we=>{ue||(ve(!0),Pe(!0),K&&K(we))},Ut=(we,xe)=>{ue&&(ve(!1),U&&U(we,xe))},vr=(we,xe,tt,wt)=>{if(k){if(ke.length===xe.length&&ke.every((Pt,Lr)=>Pt===xe[Lr]))return}else if(ke===xe)return;q&&q(we,xe,tt,wt),ft(xe)},Fr=S.useRef(!1),En=(we,xe,tt="selectOption",wt="options")=>{let Pt=tt,Lr=xe;if(k){Lr=Array.isArray(ke)?ke.slice():[];const At=Lr.findIndex(oo=>N(xe,oo));At===-1?Lr.push(xe):wt!=="freeSolo"&&(Lr.splice(At,1),Pt="removeOption")}Tt(we,Lr,Pt),vr(we,Lr,Pt,{option:xe}),!g&&(!we||!we.ctrlKey&&!we.metaKey)&&Ut(we,Pt),(l===!0||l==="touch"&&Fr.current||l==="mouse"&&!Fr.current)&&he.current.blur()};function Ct(we,xe){if(we===-1)return-1;let tt=we;for(;;){if(xe==="next"&&tt===ke.length||xe==="previous"&&tt===-1)return-1;const wt=re?"data-item-index":"data-tag-index",Pt=De.querySelector(`[${wt}="${tt}"]`);if(!Pt||!Pt.hasAttribute("tabindex")||Pt.disabled||Pt.getAttribute("aria-disabled")==="true")tt+=xe==="next"?1:-1;else return tt}}const dr=(we,xe)=>{if(!k)return;We===""&&Ut(we,"toggleInput");let tt=Oe;Oe===-1?We===""&&xe==="previous"&&(tt=ke.length-1):(tt+=xe==="next"?1:-1,tt<0&&(tt=0),tt===ke.length&&(tt=-1)),tt=Ct(tt,xe),Be(tt),Fe(tt)},qe=we=>{de.current=!0,pt(""),W&&W(we,"","clear"),vr(we,k?[]:null,"clear")},ot=we=>xe=>{if(we.onKeyDown&&we.onKeyDown(xe),!xe.defaultMuiPrevented&&(Oe!==-1&&!["ArrowLeft","ArrowRight"].includes(xe.key)&&(Be(-1),Fe(-1)),xe.which!==229))switch(xe.key){case"Home":Qe&&F&&(xe.preventDefault(),ur({diff:"start",direction:"next",reason:"keyboard",event:xe}));break;case"End":Qe&&F&&(xe.preventDefault(),ur({diff:"end",direction:"previous",reason:"keyboard",event:xe}));break;case"PageUp":xe.preventDefault(),ur({diff:-Zx,direction:"previous",reason:"keyboard",event:xe}),St(xe);break;case"PageDown":xe.preventDefault(),ur({diff:Zx,direction:"next",reason:"keyboard",event:xe}),St(xe);break;case"ArrowDown":xe.preventDefault(),ur({diff:1,direction:"next",reason:"keyboard",event:xe}),St(xe);break;case"ArrowUp":xe.preventDefault(),ur({diff:-1,direction:"previous",reason:"keyboard",event:xe}),St(xe);break;case"ArrowLeft":!k&&re&&ke!=null?(Be(0),Fe(0)):dr(xe,"previous");break;case"ArrowRight":!k&&re?(Be(-1),Fe(-1)):dr(xe,"next");break;case"Enter":if(Ke.current!==-1&&Qe){const tt=oe[Ke.current],wt=M?M(tt):!1;if(xe.preventDefault(),wt)return;En(xe,tt,"selectOption"),n&&he.current.setSelectionRange(he.current.value.length,he.current.value.length)}else P&&We!==""&&Ve===!1&&(k&&xe.preventDefault(),En(xe,We,"createOption","freeSolo"));break;case"Escape":Qe?(xe.preventDefault(),xe.stopPropagation(),Ut(xe,"escape")):u&&(We!==""||k&&ke.length>0||re)&&(xe.preventDefault(),xe.stopPropagation(),qe(xe));break;case"Backspace":if(k&&!X&&We===""&&ke.length>0){const tt=Oe===-1?ke.length-1:Oe,wt=ke.slice();wt.splice(tt,1),vr(xe,wt,"removeOption",{option:ke[tt]})}!k&&re&&!X&&(ft(null),Be(-1),Fe(-1));break;case"Delete":if(k&&!X&&We===""&&ke.length>0&&Oe!==-1){const tt=Oe,wt=ke.slice();wt.splice(tt,1),vr(xe,wt,"removeOption",{option:ke[tt]})}!k&&re&&!X&&(ft(null),Be(-1),Fe(-1));break}},Rt=we=>{Wt(!0),Oe!==-1&&(Be(-1),Fe(-1)),Z&&!de.current&&St(we)},It=we=>{if(e(se)){he.current.focus();return}Wt(!1),Ce.current=!0,de.current=!1,s&&Ke.current!==-1&&Qe?En(we,oe[Ke.current],"blur"):s&&P&&We!==""?En(we,We,"blur","freeSolo"):c&&Tt(we,ke,"blur"),Ut(we,"blur")},Kt=we=>{const xe=we.target.value;We!==xe&&(pt(xe),Pe(!1),W&&W(we,xe,"input")),xe===""?!v&&!k&&vr(we,null,"clear"):St(we)},jr=we=>{const xe=Number(we.currentTarget.getAttribute("data-option-index"));Ke.current!==xe&&qt({event:we,index:xe,reason:"mouse"})},hn=we=>{qt({event:we,index:Number(we.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Fr.current=!0},On=we=>{const xe=Number(we.currentTarget.getAttribute("data-option-index"));En(we,oe[xe],"selectOption"),Fr.current=!1},ci=we=>xe=>{const tt=ke.slice();tt.splice(we,1),vr(xe,tt,"removeOption",{option:ke[we]})},Fo=we=>{vr(we,null,"removeOption",{option:ke})},kr=we=>{ue?Ut(we,"toggleInput"):St(we)},_r=we=>{we.currentTarget.contains(we.target)&&we.target.getAttribute("id")!==ne&&we.preventDefault()},mn=we=>{we.currentTarget.contains(we.target)&&(he.current.focus(),ce&&Ce.current&&he.current.selectionEnd-he.current.selectionStart===0&&he.current.select(),Ce.current=!1)},Us=we=>{!y&&(We===""||!ue)&&kr(we)};let la=P&&We.length>0;la=la||(k?ke.length>0:ke!==null);let Vs=oe;return A&&(Vs=oe.reduce((we,xe,tt)=>{const wt=A(xe);return we.length>0&&we[we.length-1].group===wt?we[we.length-1].options.push(xe):we.push({key:tt,index:tt,group:wt,options:[xe]}),we},[])),y&&Ue&&It(),{getRootProps:(we={})=>({...we,onKeyDown:ot(we),onMouseDown:_r,onClick:mn}),getInputLabelProps:()=>({id:`${ne}-label`,htmlFor:ne}),getInputProps:()=>({id:ne,value:We,onBlur:It,onFocus:Rt,onChange:Kt,onMouseDown:Us,"aria-activedescendant":Qe?"":null,"aria-autocomplete":n?"both":"list","aria-controls":$e?`${ne}-listbox`:void 0,"aria-expanded":$e,autoComplete:"off",ref:he,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:qe}),getItemProps:({index:we=0}={})=>({...k&&{key:we},...re?{"data-item-index":we}:{"data-tag-index":we},tabIndex:-1,...!X&&{onDelete:k?ci(we):Fo}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:kr}),getTagProps:({index:we})=>({key:we,"data-tag-index":we,tabIndex:-1,...!X&&{onDelete:ci(we)}}),getListboxProps:()=>({role:"listbox",id:`${ne}-listbox`,"aria-labelledby":`${ne}-label`,ref:et,onMouseDown:we=>{we.preventDefault()}}),getOptionProps:({index:we,option:xe})=>{const tt=(k?ke:[ke]).some(Pt=>Pt!=null&&N(xe,Pt)),wt=M?M(xe):!1;return{key:(E==null?void 0:E(xe))??J(xe),tabIndex:-1,role:"option",id:`${ne}-option-${we}`,onMouseMove:jr,onClick:On,onTouchStart:hn,"data-option-index":we,"aria-disabled":wt,"aria-selected":tt}},id:ne,inputValue:We,value:ke,dirty:la,expanded:Qe&&De,popupOpen:Qe,focused:Ue||Oe!==-1,anchorEl:De,setAnchorEl:Ne,focusedItem:Oe,focusedTag:Oe,groupedOptions:Vs}}var Vn="top",Oo="bottom",No="right",Wn="left",w0="auto",ad=[Vn,Oo,No,Wn],zl="start",Au="end",jA="clippingParents",j2="viewport",Gc="popper",_A="reference",tw=ad.reduce(function(t,e){return t.concat([e+"-"+zl,e+"-"+Au])},[]),_2=[].concat(ad,[w0]).reduce(function(t,e){return t.concat([e,e+"-"+zl,e+"-"+Au])},[]),LA="beforeRead",OA="read",NA="afterRead",$A="beforeMain",BA="main",zA="afterMain",DA="beforeWrite",FA="write",HA="afterWrite",UA=[LA,OA,NA,$A,BA,zA,DA,FA,HA];function Ri(t){return t?(t.nodeName||"").toLowerCase():null}function bo(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Rs(t){var e=bo(t).Element;return t instanceof e||t instanceof Element}function Lo(t){var e=bo(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function S0(t){if(typeof ShadowRoot>"u")return!1;var e=bo(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function VA(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},s=e.elements[r];!Lo(s)||!Ri(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(l){var c=o[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function WA(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],s=e.attributes[n]||{},l=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),c=l.reduce(function(u,f){return u[f]="",u},{});!Lo(o)||!Ri(o)||(Object.assign(o.style,c),Object.keys(s).forEach(function(u){o.removeAttribute(u)}))})}}const qA={name:"applyStyles",enabled:!0,phase:"write",fn:VA,effect:WA,requires:["computeStyles"]};function Ei(t){return t.split("-")[0]}var ks=Math.max,bf=Math.min,Dl=Math.round;function uy(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function L2(){return!/^((?!chrome|android).)*safari/i.test(uy())}function Fl(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,s=1;e&&Lo(t)&&(o=t.offsetWidth>0&&Dl(n.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Dl(n.height)/t.offsetHeight||1);var l=Rs(t)?bo(t):window,c=l.visualViewport,u=!L2()&&r,f=(n.left+(u&&c?c.offsetLeft:0))/o,h=(n.top+(u&&c?c.offsetTop:0))/s,v=n.width/o,g=n.height/s;return{width:v,height:g,top:h,right:f+v,bottom:h+g,left:f,x:f,y:h}}function C0(t){var e=Fl(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function O2(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&S0(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Zi(t){return bo(t).getComputedStyle(t)}function GA(t){return["table","td","th"].indexOf(Ri(t))>=0}function Qa(t){return((Rs(t)?t.ownerDocument:t.document)||window.document).documentElement}function nh(t){return Ri(t)==="html"?t:t.assignedSlot||t.parentNode||(S0(t)?t.host:null)||Qa(t)}function rw(t){return!Lo(t)||Zi(t).position==="fixed"?null:t.offsetParent}function XA(t){var e=/firefox/i.test(uy()),r=/Trident/i.test(uy());if(r&&Lo(t)){var n=Zi(t);if(n.position==="fixed")return null}var o=nh(t);for(S0(o)&&(o=o.host);Lo(o)&&["html","body"].indexOf(Ri(o))<0;){var s=Zi(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function sd(t){for(var e=bo(t),r=rw(t);r&&GA(r)&&Zi(r).position==="static";)r=rw(r);return r&&(Ri(r)==="html"||Ri(r)==="body"&&Zi(r).position==="static")?e:r||XA(t)||e}function T0(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function fu(t,e,r){return ks(t,bf(e,r))}function KA(t,e,r){var n=fu(t,e,r);return n>r?r:n}function N2(){return{top:0,right:0,bottom:0,left:0}}function $2(t){return Object.assign({},N2(),t)}function B2(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var QA=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,$2(typeof e!="number"?e:B2(e,ad))};function YA(t){var e,r=t.state,n=t.name,o=t.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=Ei(r.placement),u=T0(c),f=[Wn,No].indexOf(c)>=0,h=f?"height":"width";if(!(!s||!l)){var v=QA(o.padding,r),g=C0(s),y=u==="y"?Vn:Wn,w=u==="y"?Oo:No,x=r.rects.reference[h]+r.rects.reference[u]-l[u]-r.rects.popper[h],C=l[u]-r.rects.reference[u],R=sd(s),P=R?u==="y"?R.clientHeight||0:R.clientWidth||0:0,M=x/2-C/2,E=v[y],I=P-g[h]-v[w],A=P/2-g[h]/2+M,F=fu(E,A,I),j=u;r.modifiersData[n]=(e={},e[j]=F,e.centerOffset=F-A,e)}}function JA(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||O2(e.elements.popper,o)&&(e.elements.arrow=o))}const ZA={name:"arrow",enabled:!0,phase:"main",fn:YA,effect:JA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hl(t){return t.split("-")[1]}var ej={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tj(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:Dl(r*o)/o||0,y:Dl(n*o)/o||0}}function nw(t){var e,r=t.popper,n=t.popperRect,o=t.placement,s=t.variation,l=t.offsets,c=t.position,u=t.gpuAcceleration,f=t.adaptive,h=t.roundOffsets,v=t.isFixed,g=l.x,y=g===void 0?0:g,w=l.y,x=w===void 0?0:w,C=typeof h=="function"?h({x:y,y:x}):{x:y,y:x};y=C.x,x=C.y;var R=l.hasOwnProperty("x"),P=l.hasOwnProperty("y"),M=Wn,E=Vn,I=window;if(f){var A=sd(r),F="clientHeight",j="clientWidth";if(A===bo(r)&&(A=Qa(r),Zi(A).position!=="static"&&c==="absolute"&&(F="scrollHeight",j="scrollWidth")),A=A,o===Vn||(o===Wn||o===No)&&s===Au){E=Oo;var H=v&&A===I&&I.visualViewport?I.visualViewport.height:A[F];x-=H-n.height,x*=u?1:-1}if(o===Wn||(o===Vn||o===Oo)&&s===Au){M=No;var G=v&&A===I&&I.visualViewport?I.visualViewport.width:A[j];y-=G-n.width,y*=u?1:-1}}var N=Object.assign({position:c},f&&ej),k=h===!0?tj({x:y,y:x},bo(r)):{x:y,y:x};if(y=k.x,x=k.y,u){var q;return Object.assign({},N,(q={},q[E]=P?"0":"",q[M]=R?"0":"",q.transform=(I.devicePixelRatio||1)<=1?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",q))}return Object.assign({},N,(e={},e[E]=P?x+"px":"",e[M]=R?y+"px":"",e.transform="",e))}function rj(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,s=r.adaptive,l=s===void 0?!0:s,c=r.roundOffsets,u=c===void 0?!0:c,f={placement:Ei(e.placement),variation:Hl(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,nw(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,nw(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const nj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rj,data:{}};var Ep={passive:!0};function oj(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,s=o===void 0?!0:o,l=n.resize,c=l===void 0?!0:l,u=bo(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&f.forEach(function(h){h.addEventListener("scroll",r.update,Ep)}),c&&u.addEventListener("resize",r.update,Ep),function(){s&&f.forEach(function(h){h.removeEventListener("scroll",r.update,Ep)}),c&&u.removeEventListener("resize",r.update,Ep)}}const ij={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oj,data:{}};var aj={left:"right",right:"left",bottom:"top",top:"bottom"};function tf(t){return t.replace(/left|right|bottom|top/g,function(e){return aj[e]})}var sj={start:"end",end:"start"};function ow(t){return t.replace(/start|end/g,function(e){return sj[e]})}function E0(t){var e=bo(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function k0(t){return Fl(Qa(t)).left+E0(t).scrollLeft}function lj(t,e){var r=bo(t),n=Qa(t),o=r.visualViewport,s=n.clientWidth,l=n.clientHeight,c=0,u=0;if(o){s=o.width,l=o.height;var f=L2();(f||!f&&e==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:s,height:l,x:c+k0(t),y:u}}function cj(t){var e,r=Qa(t),n=E0(t),o=(e=t.ownerDocument)==null?void 0:e.body,s=ks(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ks(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+k0(t),u=-n.scrollTop;return Zi(o||r).direction==="rtl"&&(c+=ks(r.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:c,y:u}}function P0(t){var e=Zi(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function z2(t){return["html","body","#document"].indexOf(Ri(t))>=0?t.ownerDocument.body:Lo(t)&&P0(t)?t:z2(nh(t))}function hu(t,e){var r;e===void 0&&(e=[]);var n=z2(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),s=bo(n),l=o?[s].concat(s.visualViewport||[],P0(n)?n:[]):n,c=e.concat(l);return o?c:c.concat(hu(nh(l)))}function dy(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function uj(t,e){var r=Fl(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function iw(t,e,r){return e===j2?dy(lj(t,r)):Rs(e)?uj(e,r):dy(cj(Qa(t)))}function dj(t){var e=hu(nh(t)),r=["absolute","fixed"].indexOf(Zi(t).position)>=0,n=r&&Lo(t)?sd(t):t;return Rs(n)?e.filter(function(o){return Rs(o)&&O2(o,n)&&Ri(o)!=="body"}):[]}function pj(t,e,r,n){var o=e==="clippingParents"?dj(t):[].concat(e),s=[].concat(o,[r]),l=s[0],c=s.reduce(function(u,f){var h=iw(t,f,n);return u.top=ks(h.top,u.top),u.right=bf(h.right,u.right),u.bottom=bf(h.bottom,u.bottom),u.left=ks(h.left,u.left),u},iw(t,l,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function D2(t){var e=t.reference,r=t.element,n=t.placement,o=n?Ei(n):null,s=n?Hl(n):null,l=e.x+e.width/2-r.width/2,c=e.y+e.height/2-r.height/2,u;switch(o){case Vn:u={x:l,y:e.y-r.height};break;case Oo:u={x:l,y:e.y+e.height};break;case No:u={x:e.x+e.width,y:c};break;case Wn:u={x:e.x-r.width,y:c};break;default:u={x:e.x,y:e.y}}var f=o?T0(o):null;if(f!=null){var h=f==="y"?"height":"width";switch(s){case zl:u[f]=u[f]-(e[h]/2-r[h]/2);break;case Au:u[f]=u[f]+(e[h]/2-r[h]/2);break}}return u}function ju(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,s=r.strategy,l=s===void 0?t.strategy:s,c=r.boundary,u=c===void 0?jA:c,f=r.rootBoundary,h=f===void 0?j2:f,v=r.elementContext,g=v===void 0?Gc:v,y=r.altBoundary,w=y===void 0?!1:y,x=r.padding,C=x===void 0?0:x,R=$2(typeof C!="number"?C:B2(C,ad)),P=g===Gc?_A:Gc,M=t.rects.popper,E=t.elements[w?P:g],I=pj(Rs(E)?E:E.contextElement||Qa(t.elements.popper),u,h,l),A=Fl(t.elements.reference),F=D2({reference:A,element:M,placement:o}),j=dy(Object.assign({},M,F)),H=g===Gc?j:A,G={top:I.top-H.top+R.top,bottom:H.bottom-I.bottom+R.bottom,left:I.left-H.left+R.left,right:H.right-I.right+R.right},N=t.modifiersData.offset;if(g===Gc&&N){var k=N[o];Object.keys(G).forEach(function(q){var U=[No,Oo].indexOf(q)>=0?1:-1,L=[Vn,Oo].indexOf(q)>=0?"y":"x";G[q]+=k[L]*U})}return G}function fj(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,s=r.rootBoundary,l=r.padding,c=r.flipVariations,u=r.allowedAutoPlacements,f=u===void 0?_2:u,h=Hl(n),v=h?c?tw:tw.filter(function(w){return Hl(w)===h}):ad,g=v.filter(function(w){return f.indexOf(w)>=0});g.length===0&&(g=v);var y=g.reduce(function(w,x){return w[x]=ju(t,{placement:x,boundary:o,rootBoundary:s,padding:l})[Ei(x)],w},{});return Object.keys(y).sort(function(w,x){return y[w]-y[x]})}function hj(t){if(Ei(t)===w0)return[];var e=tf(t);return[ow(t),e,ow(e)]}function mj(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,s=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!0:l,u=r.fallbackPlacements,f=r.padding,h=r.boundary,v=r.rootBoundary,g=r.altBoundary,y=r.flipVariations,w=y===void 0?!0:y,x=r.allowedAutoPlacements,C=e.options.placement,R=Ei(C),P=R===C,M=u||(P||!w?[tf(C)]:hj(C)),E=[C].concat(M).reduce(function(Y,ne){return Y.concat(Ei(ne)===w0?fj(e,{placement:ne,boundary:h,rootBoundary:v,padding:f,flipVariations:w,allowedAutoPlacements:x}):ne)},[]),I=e.rects.reference,A=e.rects.popper,F=new Map,j=!0,H=E[0],G=0;G<E.length;G++){var N=E[G],k=Ei(N),q=Hl(N)===zl,U=[Vn,Oo].indexOf(k)>=0,L=U?"width":"height",W=ju(e,{placement:N,boundary:h,rootBoundary:v,altBoundary:g,padding:f}),K=U?q?No:Wn:q?Oo:Vn;I[L]>A[L]&&(K=tf(K));var ee=tf(K),Z=[];if(s&&Z.push(W[k]<=0),c&&Z.push(W[K]<=0,W[ee]<=0),Z.every(function(Y){return Y})){H=N,j=!1;break}F.set(N,Z)}if(j)for(var Q=w?3:1,X=function(ne){var J=E.find(function(de){var Ce=F.get(de);if(Ce)return Ce.slice(0,ne).every(function(he){return he})});if(J)return H=J,"break"},re=Q;re>0;re--){var ce=X(re);if(ce==="break")break}e.placement!==H&&(e.modifiersData[n]._skip=!0,e.placement=H,e.reset=!0)}}const gj={name:"flip",enabled:!0,phase:"main",fn:mj,requiresIfExists:["offset"],data:{_skip:!1}};function aw(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function sw(t){return[Vn,No,Oo,Wn].some(function(e){return t[e]>=0})}function yj(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,l=ju(e,{elementContext:"reference"}),c=ju(e,{altBoundary:!0}),u=aw(l,n),f=aw(c,o,s),h=sw(u),v=sw(f);e.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:h,hasPopperEscaped:v},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":v})}const vj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yj};function bj(t,e,r){var n=Ei(t),o=[Wn,Vn].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*o,[Wn,No].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function xj(t){var e=t.state,r=t.options,n=t.name,o=r.offset,s=o===void 0?[0,0]:o,l=_2.reduce(function(h,v){return h[v]=bj(v,e.rects,s),h},{}),c=l[e.placement],u=c.x,f=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=l}const wj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xj};function Sj(t){var e=t.state,r=t.name;e.modifiersData[r]=D2({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Cj={name:"popperOffsets",enabled:!0,phase:"read",fn:Sj,data:{}};function Tj(t){return t==="x"?"y":"x"}function Ej(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,s=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!1:l,u=r.boundary,f=r.rootBoundary,h=r.altBoundary,v=r.padding,g=r.tether,y=g===void 0?!0:g,w=r.tetherOffset,x=w===void 0?0:w,C=ju(e,{boundary:u,rootBoundary:f,padding:v,altBoundary:h}),R=Ei(e.placement),P=Hl(e.placement),M=!P,E=T0(R),I=Tj(E),A=e.modifiersData.popperOffsets,F=e.rects.reference,j=e.rects.popper,H=typeof x=="function"?x(Object.assign({},e.rects,{placement:e.placement})):x,G=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),N=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(A){if(s){var q,U=E==="y"?Vn:Wn,L=E==="y"?Oo:No,W=E==="y"?"height":"width",K=A[E],ee=K+C[U],Z=K-C[L],Q=y?-j[W]/2:0,X=P===zl?F[W]:j[W],re=P===zl?-j[W]:-F[W],ce=e.elements.arrow,Y=y&&ce?C0(ce):{width:0,height:0},ne=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:N2(),J=ne[U],de=ne[L],Ce=fu(0,F[W],Y[W]),he=M?F[W]/2-Q-Ce-J-G.mainAxis:X-Ce-J-G.mainAxis,se=M?-F[W]/2+Q+Ce+de+G.mainAxis:re+Ce+de+G.mainAxis,De=e.elements.arrow&&sd(e.elements.arrow),Ne=De?E==="y"?De.clientTop||0:De.clientLeft||0:0,Oe=(q=N==null?void 0:N[E])!=null?q:0,Be=K+he-Oe-Ne,_e=K+se-Oe,Ke=fu(y?bf(ee,Be):ee,K,y?ks(Z,_e):Z);A[E]=Ke,k[E]=Ke-K}if(c){var dt,ke=E==="x"?Vn:Wn,ft=E==="x"?Oo:No,We=A[I],pt=I==="y"?"height":"width",Ue=We+C[ke],Wt=We-C[ft],Tt=[Vn,Wn].indexOf(R)!==-1,ue=(dt=N==null?void 0:N[I])!=null?dt:0,ve=Tt?Ue:We-F[pt]-j[pt]-ue+G.altAxis,Te=Tt?We+F[pt]+j[pt]-ue-G.altAxis:Wt,Pe=y&&Tt?KA(ve,We,Te):fu(y?ve:Ue,We,y?Te:Wt);A[I]=Pe,k[I]=Pe-We}e.modifiersData[n]=k}}const kj={name:"preventOverflow",enabled:!0,phase:"main",fn:Ej,requiresIfExists:["offset"]};function Pj(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Rj(t){return t===bo(t)||!Lo(t)?E0(t):Pj(t)}function Mj(t){var e=t.getBoundingClientRect(),r=Dl(e.width)/t.offsetWidth||1,n=Dl(e.height)/t.offsetHeight||1;return r!==1||n!==1}function Ij(t,e,r){r===void 0&&(r=!1);var n=Lo(e),o=Lo(e)&&Mj(e),s=Qa(e),l=Fl(t,o,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Ri(e)!=="body"||P0(s))&&(c=Rj(e)),Lo(e)?(u=Fl(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=k0(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Aj(t){var e=new Map,r=new Set,n=[];t.forEach(function(s){e.set(s.name,s)});function o(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var u=e.get(c);u&&o(u)}}),n.push(s)}return t.forEach(function(s){r.has(s.name)||o(s)}),n}function jj(t){var e=Aj(t);return UA.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function _j(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Lj(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var lw={placement:"bottom",modifiers:[],strategy:"absolute"};function cw(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Oj(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,o=e.defaultOptions,s=o===void 0?lw:o;return function(c,u,f){f===void 0&&(f=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},lw,s),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},v=[],g=!1,y={state:h,setOptions:function(R){var P=typeof R=="function"?R(h.options):R;x(),h.options=Object.assign({},s,h.options,P),h.scrollParents={reference:Rs(c)?hu(c):c.contextElement?hu(c.contextElement):[],popper:hu(u)};var M=jj(Lj([].concat(n,h.options.modifiers)));return h.orderedModifiers=M.filter(function(E){return E.enabled}),w(),y.update()},forceUpdate:function(){if(!g){var R=h.elements,P=R.reference,M=R.popper;if(cw(P,M)){h.rects={reference:Ij(P,sd(M),h.options.strategy==="fixed"),popper:C0(M)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(G){return h.modifiersData[G.name]=Object.assign({},G.data)});for(var E=0;E<h.orderedModifiers.length;E++){if(h.reset===!0){h.reset=!1,E=-1;continue}var I=h.orderedModifiers[E],A=I.fn,F=I.options,j=F===void 0?{}:F,H=I.name;typeof A=="function"&&(h=A({state:h,options:j,name:H,instance:y})||h)}}}},update:_j(function(){return new Promise(function(C){y.forceUpdate(),C(h)})}),destroy:function(){x(),g=!0}};if(!cw(c,u))return y;y.setOptions(f).then(function(C){!g&&f.onFirstUpdate&&f.onFirstUpdate(C)});function w(){h.orderedModifiers.forEach(function(C){var R=C.name,P=C.options,M=P===void 0?{}:P,E=C.effect;if(typeof E=="function"){var I=E({state:h,name:R,instance:y,options:M}),A=function(){};v.push(I||A)}})}function x(){v.forEach(function(C){return C()}),v=[]}return y}}var Nj=[ij,Cj,nj,qA,wj,gj,kj,ZA,vj],$j=Oj({defaultModifiers:Nj});function Ul(t){var v;const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...s}=t,l=o?{}:M2(r,n),{props:c,internalRef:u}=I2({...s,externalSlotProps:l}),f=Mr(u,l==null?void 0:l.ref,(v=t.additionalProps)==null?void 0:v.ref);return R2(e,{...c,ref:f},n)}function Ns(t){var e;return parseInt(S.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}function Bj(t){return typeof t=="function"?t():t}const F2=S.forwardRef(function(e,r){const{children:n,container:o,disablePortal:s=!1}=e,[l,c]=S.useState(null),u=Mr(S.isValidElement(n)?Ns(n):null,r);if(Xn(()=>{s||c(Bj(o)||document.body)},[o,s]),Xn(()=>{if(l&&!s)return ny(r,l),()=>{ny(r,null)}},[r,l,s]),s){if(S.isValidElement(n)){const f={ref:u};return S.cloneElement(n,f)}return n}return l&&SC.createPortal(n,l)});function zj(t){return Ye("MuiPopper",t)}Ze("MuiPopper",["root"]);function Dj(t,e){if(e==="ltr")return t;switch(t){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 t}}function py(t){return typeof t=="function"?t():t}function Fj(t){return t.nodeType!==void 0}const Hj=t=>{const{classes:e}=t;return Je({root:["root"]},zj,e)},Uj={},Vj=S.forwardRef(function(e,r){const{anchorEl:n,children:o,direction:s,disablePortal:l,modifiers:c,open:u,placement:f,popperOptions:h,popperRef:v,slotProps:g={},slots:y={},TransitionProps:w,ownerState:x,...C}=e,R=S.useRef(null),P=Mr(R,r),M=S.useRef(null),E=Mr(M,v),I=S.useRef(E);Xn(()=>{I.current=E},[E]),S.useImperativeHandle(v,()=>M.current,[]);const A=Dj(f,s),[F,j]=S.useState(A),[H,G]=S.useState(py(n));S.useEffect(()=>{M.current&&M.current.forceUpdate()}),S.useEffect(()=>{n&&G(py(n))},[n]),Xn(()=>{if(!H||!u)return;const L=ee=>{j(ee.placement)};let W=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ee})=>{L(ee)}}];c!=null&&(W=W.concat(c)),h&&h.modifiers!=null&&(W=W.concat(h.modifiers));const K=$j(H,R.current,{placement:A,...h,modifiers:W});return I.current(K),()=>{K.destroy(),I.current(null)}},[H,l,c,u,h,A]);const N={placement:F};w!==null&&(N.TransitionProps=w);const k=Hj(e),q=y.root??"div",U=Ul({elementType:q,externalSlotProps:g.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:P},ownerState:e,className:k.root});return p.jsx(q,{...U,children:typeof o=="function"?o(N):o})}),Wj=S.forwardRef(function(e,r){const{anchorEl:n,children:o,container:s,direction:l="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:f,open:h,placement:v="bottom",popperOptions:g=Uj,popperRef:y,style:w,transition:x=!1,slotProps:C={},slots:R={},...P}=e,[M,E]=S.useState(!0),I=()=>{E(!1)},A=()=>{E(!0)};if(!u&&!h&&(!x||M))return null;let F;if(s)F=s;else if(n){const G=py(n);F=G&&Fj(G)?dn(G).body:dn(null).body}const j=!h&&u&&(!x||M)?"none":void 0,H=x?{in:h,onEnter:I,onExited:A}:void 0;return p.jsx(F2,{disablePortal:c,container:F,children:p.jsx(Vj,{anchorEl:n,direction:l,disablePortal:c,modifiers:f,ref:r,open:x?!M:h,placement:v,popperOptions:g,popperRef:y,slotProps:C,slots:R,...P,style:{position:"fixed",top:0,left:0,display:j,...w},TransitionProps:H,children:o})})}),qj=ge(Wj,{name:"MuiPopper",slot:"Root"})({}),oh=S.forwardRef(function(e,r){const n=Ka(),o=nt({props:e,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:u,container:f,disablePortal:h,keepMounted:v,modifiers:g,open:y,placement:w,popperOptions:x,popperRef:C,transition:R,slots:P,slotProps:M,...E}=o,I=(P==null?void 0:P.root)??(c==null?void 0:c.Root),A={anchorEl:s,container:f,disablePortal:h,keepMounted:v,modifiers:g,open:y,placement:w,popperOptions:x,popperRef:C,transition:R,...E};return p.jsx(qj,{as:l,direction:n?"rtl":"ltr",slots:{root:I},slotProps:M??u,...A,ref:r})});function Gj(t){return Ye("MuiListSubheader",t)}Ze("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Xj=t=>{const{classes:e,color:r,disableGutters:n,inset:o,disableSticky:s}=t,l={root:["root",r!=="default"&&`color${me(r)}`,!n&&"gutters",o&&"inset",!s&&"sticky"]};return Je(l,Gj,e)},Kj=ge("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="default"&&e[`color${me(r.color)}`],!r.disableGutters&&e.gutters,r.inset&&e.inset,!r.disableSticky&&e.sticky]}})(Ge(({theme:t})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(t.vars||t).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper}}]}))),fy=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiListSubheader"}),{className:o,color:s="default",component:l="li",disableGutters:c=!1,disableSticky:u=!1,inset:f=!1,...h}=n,v={...n,color:s,component:l,disableGutters:c,disableSticky:u,inset:f},g=Xj(v);return p.jsx(Kj,{as:l,className:Me(g.root,o),ref:r,ownerState:v,...h})});fy&&(fy.muiSkipListHighlight=!0);const Qj=Ie(p.jsx("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"}));function Yj(t){return Ye("MuiChip",t)}const zt=Ze("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","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"]),Jj=t=>{const{classes:e,disabled:r,size:n,color:o,iconColor:s,onDelete:l,clickable:c,variant:u}=t,f={root:["root",u,r&&"disabled",`size${me(n)}`,`color${me(o)}`,c&&"clickable",c&&`clickableColor${me(o)}`,l&&"deletable",l&&`deletableColor${me(o)}`,`${u}${me(o)}`],label:["label",`label${me(n)}`],avatar:["avatar",`avatar${me(n)}`,`avatarColor${me(o)}`],icon:["icon",`icon${me(n)}`,`iconColor${me(s)}`],deleteIcon:["deleteIcon",`deleteIcon${me(n)}`,`deleteIconColor${me(o)}`,`deleteIcon${me(u)}Color${me(o)}`]};return Je(f,Yj,e)},Zj=ge("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t,{color:n,iconColor:o,clickable:s,onDelete:l,size:c,variant:u}=r;return[{[`& .${zt.avatar}`]:e.avatar},{[`& .${zt.avatar}`]:e[`avatar${me(c)}`]},{[`& .${zt.avatar}`]:e[`avatarColor${me(n)}`]},{[`& .${zt.icon}`]:e.icon},{[`& .${zt.icon}`]:e[`icon${me(c)}`]},{[`& .${zt.icon}`]:e[`iconColor${me(o)}`]},{[`& .${zt.deleteIcon}`]:e.deleteIcon},{[`& .${zt.deleteIcon}`]:e[`deleteIcon${me(c)}`]},{[`& .${zt.deleteIcon}`]:e[`deleteIconColor${me(n)}`]},{[`& .${zt.deleteIcon}`]:e[`deleteIcon${me(u)}Color${me(n)}`]},e.root,e[`size${me(c)}`],e[`color${me(n)}`],s&&e.clickable,s&&n!=="default"&&e[`clickableColor${me(n)}`],l&&e.deletable,l&&n!=="default"&&e[`deletableColor${me(n)}`],e[u],e[`${u}${me(n)}`]]}})(Ge(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${zt.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${zt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:e,fontSize:t.typography.pxToRem(12)},[`& .${zt.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${zt.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${zt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${zt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${zt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.alpha((t.vars||t).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.alpha((t.vars||t).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${zt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${zt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(Zt(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(t.vars||t).palette[r].main,color:(t.vars||t).palette[r].contrastText,[`& .${zt.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[r].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${zt.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:e}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${zt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${zt.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}},...Object.entries(t.palette).filter(Zt(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${zt.focusVisible}`]:{background:(t.vars||t).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)},[`&.${zt.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(Zt(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${zt.focusVisible}`]:{backgroundColor:(t.vars||t).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${zt.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${zt.focusVisible}`]:{backgroundColor:(t.vars||t).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}}},...Object.entries(t.palette).filter(Zt()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(t.vars||t).palette[r].main,border:`1px solid ${t.alpha((t.vars||t).palette[r].main,.7)}`,[`&.${zt.clickable}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity)},[`&.${zt.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.focusOpacity)},[`& .${zt.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[r].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[r].main}}}}))]}})),e_=ge("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,e)=>{const{ownerState:r}=t,{size:n}=r;return[e.label,e[`label${me(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function uw(t){return t.key==="Backspace"||t.key==="Delete"}const ln=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiChip"}),{avatar:o,className:s,clickable:l,color:c="default",component:u,deleteIcon:f,disabled:h=!1,icon:v,label:g,onClick:y,onDelete:w,onKeyDown:x,onKeyUp:C,size:R="medium",variant:P="filled",tabIndex:M,skipFocusWhenDisabled:E=!1,slots:I={},slotProps:A={},...F}=n,j=S.useRef(null),H=Mr(j,r),G=J=>{J.stopPropagation(),w&&w(J)},N=J=>{J.currentTarget===J.target&&uw(J)&&J.preventDefault(),x&&x(J)},k=J=>{J.currentTarget===J.target&&w&&uw(J)&&w(J),C&&C(J)},q=l!==!1&&y?!0:l,U=q||w?ti:u||"div",L={...n,component:U,disabled:h,size:R,color:c,iconColor:S.isValidElement(v)&&v.props.color||c,onDelete:!!w,clickable:q,variant:P},W=Jj(L),K=U===ti?{component:u||"div",focusVisibleClassName:W.focusVisible,...w&&{disableRipple:!0}}:{};let ee=null;w&&(ee=f&&S.isValidElement(f)?S.cloneElement(f,{className:Me(f.props.className,W.deleteIcon),onClick:G}):p.jsx(Qj,{className:W.deleteIcon,onClick:G}));let Z=null;o&&S.isValidElement(o)&&(Z=S.cloneElement(o,{className:Me(W.avatar,o.props.className)}));let Q=null;v&&S.isValidElement(v)&&(Q=S.cloneElement(v,{className:Me(W.icon,v.props.className)}));const X={slots:I,slotProps:A},[re,ce]=Xe("root",{elementType:Zj,externalForwardedProps:{...X,...F},ownerState:L,shouldForwardComponentProp:!0,ref:H,className:Me(W.root,s),additionalProps:{disabled:q&&h?!0:void 0,tabIndex:E&&h?-1:M,...K},getSlotProps:J=>({...J,onClick:de=>{var Ce;(Ce=J.onClick)==null||Ce.call(J,de),y==null||y(de)},onKeyDown:de=>{var Ce;(Ce=J.onKeyDown)==null||Ce.call(J,de),N(de)},onKeyUp:de=>{var Ce;(Ce=J.onKeyUp)==null||Ce.call(J,de),k(de)}})}),[Y,ne]=Xe("label",{elementType:e_,externalForwardedProps:X,ownerState:L,className:W.label});return p.jsxs(re,{as:U,...ce,children:[Z||Q,p.jsx(Y,{...ne,children:g}),ee]})});function kp(t){return parseInt(t,10)||0}const t_={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function r_(t){for(const e in t)return!1;return!0}function dw(t){return r_(t)||t.outerHeightStyle===0&&!t.overflowing}const n_=S.forwardRef(function(e,r){const{onChange:n,maxRows:o,minRows:s=1,style:l,value:c,...u}=e,{current:f}=S.useRef(c!=null),h=S.useRef(null),v=Mr(r,h),g=S.useRef(null),y=S.useRef(null),w=S.useCallback(()=>{const M=h.current,E=y.current;if(!M||!E)return;const A=ei(M).getComputedStyle(M);if(A.width==="0px")return{outerHeightStyle:0,overflowing:!1};E.style.width=A.width,E.value=M.value||e.placeholder||"x",E.value.slice(-1)===`
218
+ `&&(E.value+=" ");const F=A.boxSizing,j=kp(A.paddingBottom)+kp(A.paddingTop),H=kp(A.borderBottomWidth)+kp(A.borderTopWidth),G=E.scrollHeight;E.value="x";const N=E.scrollHeight;let k=G;s&&(k=Math.max(Number(s)*N,k)),o&&(k=Math.min(Number(o)*N,k)),k=Math.max(k,N);const q=k+(F==="border-box"?j+H:0),U=Math.abs(k-G)<=1;return{outerHeightStyle:q,overflowing:U}},[o,s,e.placeholder]),x=Wr(()=>{const M=h.current,E=w();if(!M||!E||dw(E))return!1;const I=E.outerHeightStyle;return g.current!=null&&g.current!==I}),C=S.useCallback(()=>{const M=h.current,E=w();if(!M||!E||dw(E))return;const I=E.outerHeightStyle;g.current!==I&&(g.current=I,M.style.height=`${I}px`),M.style.overflow=E.overflowing?"hidden":""},[w]),R=S.useRef(-1);Xn(()=>{const M=th(C),E=h==null?void 0:h.current;if(!E)return;const I=ei(E);I.addEventListener("resize",M);let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(()=>{x()&&(A.unobserve(E),cancelAnimationFrame(R.current),C(),R.current=requestAnimationFrame(()=>{A.observe(E)}))}),A.observe(E)),()=>{M.clear(),cancelAnimationFrame(R.current),I.removeEventListener("resize",M),A&&A.disconnect()}},[w,C,x]),Xn(()=>{C()});const P=M=>{f||C();const E=M.target,I=E.value.length,A=E.value.endsWith(`
219
+ `),F=E.selectionStart===I;A&&F&&E.setSelectionRange(I,I),n&&n(M)};return p.jsxs(S.Fragment,{children:[p.jsx("textarea",{value:c,onChange:P,ref:v,rows:s,style:l,...u}),p.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...t_.shadow,...l,paddingTop:0,paddingBottom:0}})]})});function $s({props:t,states:e,muiFormControl:r}){return e.reduce((n,o)=>(n[o]=t[o],r&&typeof t[o]>"u"&&(n[o]=r[o]),n),{})}const ih=S.createContext(void 0);function ia(){return S.useContext(ih)}function pw(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function xf(t,e=!1){return t&&(pw(t.value)&&t.value!==""||e&&pw(t.defaultValue)&&t.defaultValue!=="")}function o_(t){return t.startAdornment}function i_(t){return Ye("MuiInputBase",t)}const po=Ze("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var fw;const ah=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${me(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},sh=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},a_=t=>{const{classes:e,color:r,disabled:n,error:o,endAdornment:s,focused:l,formControl:c,fullWidth:u,hiddenLabel:f,multiline:h,readOnly:v,size:g,startAdornment:y,type:w}=t,x={root:["root",`color${me(r)}`,n&&"disabled",o&&"error",u&&"fullWidth",l&&"focused",c&&"formControl",g&&g!=="medium"&&`size${me(g)}`,h&&"multiline",y&&"adornedStart",s&&"adornedEnd",f&&"hiddenLabel",v&&"readOnly"],input:["input",n&&"disabled",w==="search"&&"inputTypeSearch",h&&"inputMultiline",g==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",v&&"readOnly"]};return Je(x,i_,e)},lh=ge("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ah})(Ge(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${po.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),ch=ge("input",{name:"MuiInputBase",slot:"Input",overridesResolver:sh})(Ge(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{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%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${po.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${po.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),hw=hI({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),uh=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:l,className:c,color:u,components:f={},componentsProps:h={},defaultValue:v,disabled:g,disableInjectingGlobalStyles:y,endAdornment:w,error:x,fullWidth:C=!1,id:R,inputComponent:P="input",inputProps:M={},inputRef:E,margin:I,maxRows:A,minRows:F,multiline:j=!1,name:H,onBlur:G,onChange:N,onClick:k,onFocus:q,onKeyDown:U,onKeyUp:L,placeholder:W,readOnly:K,renderSuffix:ee,rows:Z,size:Q,slotProps:X={},slots:re={},startAdornment:ce,type:Y="text",value:ne,...J}=n,de=M.value!=null?M.value:ne,{current:Ce}=S.useRef(de!=null),he=S.useRef(),se=S.useCallback(oe=>{},[]),De=Mr(he,E,M.ref,se),[Ne,Oe]=S.useState(!1),Be=ia(),_e=$s({props:n,muiFormControl:Be,states:["color","disabled","error","hiddenLabel","size","required","filled"]});_e.focused=Be?Be.focused:Ne,S.useEffect(()=>{!Be&&g&&Ne&&(Oe(!1),G&&G())},[Be,g,Ne,G]);const Ke=Be&&Be.onFilled,dt=Be&&Be.onEmpty,ke=S.useCallback(oe=>{xf(oe)?Ke&&Ke():dt&&dt()},[Ke,dt]);Xn(()=>{Ce&&ke({value:de})},[de,ke,Ce]);const ft=oe=>{q&&q(oe),M.onFocus&&M.onFocus(oe),Be&&Be.onFocus?Be.onFocus(oe):Oe(!0)},We=oe=>{G&&G(oe),M.onBlur&&M.onBlur(oe),Be&&Be.onBlur?Be.onBlur(oe):Oe(!1)},pt=(oe,...Ee)=>{if(!Ce){const $e=oe.target||he.current;if($e==null)throw new Error(Ji(1));ke({value:$e.value})}M.onChange&&M.onChange(oe,...Ee),N&&N(oe,...Ee)};S.useEffect(()=>{ke(he.current)},[]);const Ue=oe=>{he.current&&oe.currentTarget===oe.target&&he.current.focus(),k&&k(oe)};let Wt=P,Tt=M;j&&Wt==="input"&&(Z?Tt={type:void 0,minRows:Z,maxRows:Z,...Tt}:Tt={type:void 0,maxRows:A,minRows:F,...Tt},Wt=n_);const ue=oe=>{ke(oe.animationName==="mui-auto-fill-cancel"?he.current:{value:"x"})};S.useEffect(()=>{Be&&Be.setAdornedStart(!!ce)},[Be,ce]);const ve={...n,color:_e.color||"primary",disabled:_e.disabled,endAdornment:w,error:_e.error,focused:_e.focused,formControl:Be,fullWidth:C,hiddenLabel:_e.hiddenLabel,multiline:j,size:_e.size,startAdornment:ce,type:Y},Te=a_(ve),Pe=re.root||f.Root||lh,Ve=X.root||h.root||{},Qe=re.input||f.Input||ch;return Tt={...Tt,...X.input??h.input},p.jsxs(S.Fragment,{children:[!y&&typeof hw=="function"&&(fw||(fw=p.jsx(hw,{}))),p.jsxs(Pe,{...Ve,ref:r,onClick:Ue,...J,...!gf(Pe)&&{ownerState:{...ve,...Ve.ownerState}},className:Me(Te.root,Ve.className,c,K&&"MuiInputBase-readOnly"),children:[ce,p.jsx(ih.Provider,{value:null,children:p.jsx(Qe,{"aria-invalid":_e.error,"aria-describedby":o,autoComplete:s,autoFocus:l,defaultValue:v,disabled:_e.disabled,id:R,onAnimationStart:ue,name:H,placeholder:W,readOnly:K,required:_e.required,rows:Z,value:de,onKeyDown:U,onKeyUp:L,type:Y,...Tt,...!gf(Qe)&&{as:Wt,ownerState:{...ve,...Tt.ownerState}},ref:De,className:Me(Te.input,Tt.className,K&&"MuiInputBase-readOnly"),onBlur:We,onChange:pt,onFocus:ft})}),w,ee?ee({..._e,startAdornment:ce}):null]})]})});function s_(t){return Ye("MuiInput",t)}const Aa={...po,...Ze("MuiInput",["root","underline","input"])};function l_(t){return Ye("MuiOutlinedInput",t)}const Mo={...po,...Ze("MuiOutlinedInput",["root","notchedOutline","input"])};function c_(t){return Ye("MuiFilledInput",t)}const fo={...po,...Ze("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},H2=Ie(p.jsx("path",{d:"M7 10l5 5 5-5z"}));function u_(t){return Ye("MuiAutocomplete",t)}const $t=Ze("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var mw,gw;const d_=t=>{const{classes:e,disablePortal:r,expanded:n,focused:o,fullWidth:s,hasClearIcon:l,hasPopupIcon:c,inputFocused:u,popupOpen:f,size:h}=t,v={root:["root",n&&"expanded",o&&"focused",s&&"fullWidth",l&&"hasClearIcon",c&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag",`tagSize${me(h)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Je(v,u_,e)},p_=ge("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t,{fullWidth:n,hasClearIcon:o,hasPopupIcon:s,inputFocused:l,size:c}=r;return[{[`& .${$t.tag}`]:e.tag},{[`& .${$t.tag}`]:e[`tagSize${me(c)}`]},{[`& .${$t.inputRoot}`]:e.inputRoot},{[`& .${$t.input}`]:e.input},{[`& .${$t.input}`]:l&&e.inputFocused},e.root,n&&e.fullWidth,s&&e.hasPopupIcon,o&&e.hasClearIcon]}})({[`&.${$t.focused} .${$t.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${$t.clearIndicator}`]:{visibility:"visible"}},[`& .${$t.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${$t.inputRoot}`]:{[`.${$t.hasPopupIcon}&, .${$t.hasClearIcon}&`]:{paddingRight:30},[`.${$t.hasPopupIcon}.${$t.hasClearIcon}&`]:{paddingRight:56},[`& .${$t.input}`]:{width:0,minWidth:30}},[`& .${Aa.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Aa.root}.${po.sizeSmall}`]:{[`& .${Aa.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Mo.root}`]:{padding:9,[`.${$t.hasPopupIcon}&, .${$t.hasClearIcon}&`]:{paddingRight:39},[`.${$t.hasPopupIcon}.${$t.hasClearIcon}&`]:{paddingRight:65},[`& .${$t.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${$t.endAdornment}`]:{right:9}},[`& .${Mo.root}.${po.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${$t.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${fo.root}`]:{paddingTop:19,paddingLeft:8,[`.${$t.hasPopupIcon}&, .${$t.hasClearIcon}&`]:{paddingRight:39},[`.${$t.hasPopupIcon}.${$t.hasClearIcon}&`]:{paddingRight:65},[`& .${fo.input}`]:{padding:"7px 4px"},[`& .${$t.endAdornment}`]:{right:9}},[`& .${fo.root}.${po.sizeSmall}`]:{paddingBottom:1,[`& .${fo.input}`]:{padding:"2.5px 4px"}},[`& .${po.hiddenLabel}`]:{paddingTop:8},[`& .${fo.root}.${po.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${$t.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${fo.root}.${po.hiddenLabel}.${po.sizeSmall}`]:{[`& .${$t.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${$t.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${$t.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${$t.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${$t.inputRoot}`]:{flexWrap:"wrap"}}}]}),f_=ge("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),h_=ge(mr,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),m_=ge(mr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popupIndicator,r.popupOpen&&e.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),g_=ge(oh,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${$t.option}`]:e.option},e.popper,r.disablePortal&&e.popperDisablePortal]}})(Ge(({theme:t})=>({zIndex:(t.vars||t).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),y_=ge(Ir,{name:"MuiAutocomplete",slot:"Paper"})(Ge(({theme:t})=>({...t.typography.body1,overflow:"auto"}))),v_=ge("div",{name:"MuiAutocomplete",slot:"Loading"})(Ge(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}))),b_=ge("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Ge(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}))),x_=ge("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Ge(({theme:t})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${$t.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,[t.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${$t.focused}`]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${$t.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),[`&.${$t.focused}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${$t.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}}}))),w_=ge(fy,{name:"MuiAutocomplete",slot:"GroupLabel"})(Ge(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,top:-8}))),S_=ge("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${$t.option}`]:{paddingLeft:24}}),C_=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:s=!1,autoSelect:l=!1,blurOnSelect:c=!1,ChipProps:u,className:f,clearIcon:h=mw||(mw=p.jsx(A2,{fontSize:"small"})),clearOnBlur:v=!n.freeSolo,clearOnEscape:g=!1,clearText:y="Clear",closeText:w="Close",componentsProps:x,defaultValue:C=n.multiple?[]:null,disableClearable:R=!1,disableCloseOnSelect:P=!1,disabled:M=!1,disabledItemsFocusable:E=!1,disableListWrap:I=!1,disablePortal:A=!1,filterOptions:F,filterSelectedOptions:j=!1,forcePopupIcon:H="auto",freeSolo:G=!1,fullWidth:N=!1,getLimitTagsText:k=Ft=>`+${Ft}`,getOptionDisabled:q,getOptionKey:U,getOptionLabel:L,isOptionEqualToValue:W,groupBy:K,handleHomeEndKeys:ee=!n.freeSolo,id:Z,includeInputInList:Q=!1,inputValue:X,limitTags:re=-1,ListboxComponent:ce,ListboxProps:Y,loading:ne=!1,loadingText:J="Loading…",multiple:de=!1,noOptionsText:Ce="No options",onChange:he,onClose:se,onHighlightChange:De,onInputChange:Ne,onOpen:Oe,open:Be,openOnFocus:_e=!1,openText:Ke="Open",options:dt,PaperComponent:ke,PopperComponent:ft,popupIcon:We=gw||(gw=p.jsx(H2,{})),readOnly:pt=!1,renderGroup:Ue,renderInput:Wt,renderOption:Tt,renderTags:ue,renderValue:ve,selectOnFocus:Te=!n.freeSolo,size:Pe="medium",slots:Ve={},slotProps:Qe={},value:oe,...Ee}=n,{getRootProps:$e,getInputProps:Fe,getInputLabelProps:xt,getPopupIndicatorProps:qt,getClearProps:ur,getItemProps:Dr,getListboxProps:nn,getOptionProps:fn,value:et,dirty:St,expanded:Ut,id:vr,popupOpen:Fr,focused:En,focusedItem:Ct,anchorEl:dr,setAnchorEl:qe,inputValue:ot,groupedOptions:Rt}=AA({...n,componentName:"Autocomplete"}),It=!R&&!M&&St&&!pt,Kt=(!G||H===!0)&&H!==!1,{onMouseDown:jr}=Fe(),{ref:hn,...On}=nn(),Fo=L||(Ft=>Ft.label??Ft),kr={...n,disablePortal:A,expanded:Ut,focused:En,fullWidth:N,getOptionLabel:Fo,hasClearIcon:It,hasPopupIcon:Kt,inputFocused:Ct===-1,popupOpen:Fr,size:Pe},_r=d_(kr),mn={slots:{paper:ke,popper:ft,...Ve},slotProps:{chip:u,listbox:Y,...x,...Qe}},[Us,la]=Xe("listbox",{elementType:x_,externalForwardedProps:mn,ownerState:kr,className:_r.listbox,additionalProps:On,ref:hn}),[Vs,we]=Xe("paper",{elementType:Ir,externalForwardedProps:mn,ownerState:kr,className:_r.paper}),[xe,tt]=Xe("popper",{elementType:oh,externalForwardedProps:mn,ownerState:kr,className:_r.popper,additionalProps:{disablePortal:A,style:{width:dr?dr.clientWidth:null},role:"presentation",anchorEl:dr,open:Fr}});let wt;const Pt=Ft=>({className:_r.tag,disabled:M,...Dr(Ft)});if(de?et.length>0&&(ue?wt=ue(et,Pt,kr):ve?wt=ve(et,Pt,kr):wt=et.map((Ft,io)=>{const{key:Hr,...ts}=Pt({index:io});return p.jsx(ln,{label:Fo(Ft),size:Pe,...ts,...mn.slotProps.chip},Hr)})):ve&&et!=null&&(wt=ve(et,Pt,kr)),re>-1&&Array.isArray(wt)){const Ft=wt.length-re;!En&&Ft>0&&(wt=wt.splice(0,re),wt.push(p.jsx("span",{className:_r.tag,children:k(Ft)},wt.length)))}const At=Ue||(Ft=>p.jsxs("li",{children:[p.jsx(w_,{className:_r.groupLabel,ownerState:kr,component:"div",children:Ft.group}),p.jsx(S_,{className:_r.groupUl,ownerState:kr,children:Ft.children})]},Ft.key)),ca=Tt||((Ft,io)=>{const{key:Hr,...ts}=Ft;return p.jsx("li",{...ts,children:Fo(io)},Hr)}),uc=(Ft,io)=>{const Hr=fn({option:Ft,index:io});return ca({...Hr,className:_r.option},Ft,{selected:Hr["aria-selected"],index:io,inputValue:ot},kr)},$i=mn.slotProps.clearIndicator,Ws=mn.slotProps.popupIndicator;return p.jsxs(S.Fragment,{children:[p.jsx(p_,{ref:r,className:Me(_r.root,f),ownerState:kr,...$e(Ee),children:Wt({id:vr,disabled:M,fullWidth:!0,size:Pe==="small"?"small":void 0,InputLabelProps:xt(),InputProps:{ref:qe,className:_r.inputRoot,startAdornment:wt,onMouseDown:Ft=>{Ft.target===Ft.currentTarget&&jr(Ft)},...(It||Kt)&&{endAdornment:p.jsxs(f_,{className:_r.endAdornment,ownerState:kr,children:[It?p.jsx(h_,{...ur(),"aria-label":y,title:y,ownerState:kr,...$i,className:Me(_r.clearIndicator,$i==null?void 0:$i.className),children:h}):null,Kt?p.jsx(m_,{...qt(),disabled:M,"aria-label":Fr?w:Ke,title:Fr?w:Ke,ownerState:kr,...Ws,className:Me(_r.popupIndicator,Ws==null?void 0:Ws.className),children:We}):null]})}},inputProps:{className:_r.input,disabled:M,readOnly:pt,...Fe()}})}),dr?p.jsx(g_,{as:xe,...tt,children:p.jsxs(y_,{as:Vs,...we,children:[ne&&Rt.length===0?p.jsx(v_,{className:_r.loading,ownerState:kr,children:J}):null,Rt.length===0&&!G&&!ne?p.jsx(b_,{className:_r.noOptions,ownerState:kr,role:"presentation",onMouseDown:Ft=>{Ft.preventDefault()},children:Ce}):null,Rt.length>0?p.jsx(Us,{as:ce,...la,children:Rt.map((Ft,io)=>K?At({key:Ft.key,group:Ft.group,children:Ft.options.map((Hr,ts)=>uc(Hr,Ft.index+ts))}):uc(Ft,io))}):null]})}):null]})}),T_=Ie(p.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function E_(t){return Ye("MuiAvatar",t)}Ze("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const k_=t=>{const{classes:e,variant:r,colorDefault:n}=t;return Je({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},E_,e)},P_=ge("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],r.colorDefault&&e.colorDefault]}})(Ge(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(t.vars||t).palette.background.default,...t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:t.palette.grey[400],...t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})}}}]}))),R_=ge("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),M_=ge(T_,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function I_({crossOrigin:t,referrerPolicy:e,src:r,srcSet:n}){const[o,s]=S.useState(!1);return S.useEffect(()=>{if(!r&&!n)return;s(!1);let l=!0;const c=new Image;return c.onload=()=>{l&&s("loaded")},c.onerror=()=>{l&&s("error")},c.crossOrigin=t,c.referrerPolicy=e,c.src=r,n&&(c.srcset=n),()=>{l=!1}},[t,e,r,n]),o}const yw=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiAvatar"}),{alt:o,children:s,className:l,component:c="div",slots:u={},slotProps:f={},imgProps:h,sizes:v,src:g,srcSet:y,variant:w="circular",...x}=n;let C=null;const R={...n,component:c,variant:w},P=I_({...h,...typeof f.img=="function"?f.img(R):f.img,src:g,srcSet:y}),M=g||y,E=M&&P!=="error";R.colorDefault=!E,delete R.ownerState;const I=k_(R),[A,F]=Xe("root",{ref:r,className:Me(I.root,l),elementType:P_,externalForwardedProps:{slots:u,slotProps:f,component:c,...x},ownerState:R}),[j,H]=Xe("img",{className:I.img,elementType:R_,externalForwardedProps:{slots:u,slotProps:{img:{...h,...f.img}}},additionalProps:{alt:o,src:g,srcSet:y,sizes:v},ownerState:R}),[G,N]=Xe("fallback",{className:I.fallback,elementType:M_,externalForwardedProps:{slots:u,slotProps:f},shouldForwardComponentProp:!0,ownerState:R});return E?C=p.jsx(j,{...H}):s||s===0?C=s:M&&o?C=o[0]:C=p.jsx(G,{...N}),p.jsx(A,{...F,children:C})}),A_={entering:{opacity:1},entered:{opacity:1}},hy=S.forwardRef(function(e,r){const n=Jn(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:c,easing:u,in:f,onEnter:h,onEntered:v,onEntering:g,onExit:y,onExited:w,onExiting:x,style:C,timeout:R=o,TransitionComponent:P=oi,...M}=e,E=S.useRef(null),I=Mr(E,Ns(c),r),A=U=>L=>{if(U){const W=E.current;L===void 0?U(W):U(W,L)}},F=A(g),j=A((U,L)=>{P2(U);const W=$l({style:C,timeout:R,easing:u},{mode:"enter"});U.style.webkitTransition=n.transitions.create("opacity",W),U.style.transition=n.transitions.create("opacity",W),h&&h(U,L)}),H=A(v),G=A(x),N=A(U=>{const L=$l({style:C,timeout:R,easing:u},{mode:"exit"});U.style.webkitTransition=n.transitions.create("opacity",L),U.style.transition=n.transitions.create("opacity",L),y&&y(U)}),k=A(w),q=U=>{s&&s(E.current,U)};return p.jsx(P,{appear:l,in:f,nodeRef:E,onEnter:j,onEntered:H,onEntering:F,onExit:N,onExited:k,onExiting:G,addEndListener:q,timeout:R,...M,children:(U,{ownerState:L,...W})=>S.cloneElement(c,{style:{opacity:0,visibility:U==="exited"&&!f?"hidden":void 0,...A_[U],...C,...c.props.style},ref:I,...W})})});function j_(t){return Ye("MuiBackdrop",t)}Ze("MuiBackdrop",["root","invisible"]);const __=t=>{const{classes:e,invisible:r}=t;return Je({root:["root",r&&"invisible"]},j_,e)},L_=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),U2=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiBackdrop"}),{children:o,className:s,component:l="div",invisible:c=!1,open:u,components:f={},componentsProps:h={},slotProps:v={},slots:g={},TransitionComponent:y,transitionDuration:w,...x}=n,C={...n,component:l,invisible:c},R=__(C),P={transition:y,root:f.Root,...g},M={...h,...v},E={component:l,slots:P,slotProps:M},[I,A]=Xe("root",{elementType:L_,externalForwardedProps:E,className:Me(R.root,s),ownerState:C}),[F,j]=Xe("transition",{elementType:hy,externalForwardedProps:E,ownerState:C});return p.jsx(F,{in:u,timeout:w,...x,...j,children:p.jsx(I,{"aria-hidden":!0,...A,classes:R,ref:r,children:o})})}),O_=Ze("MuiBox",["root"]),N_=eh(),be=gR({themeId:Jo,defaultTheme:N_,defaultClassName:O_.root,generateClassName:e2.generate});function $_(t){return Ye("MuiButton",t)}const gs=Ze("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),V2=S.createContext({}),W2=S.createContext(void 0),B_=t=>{const{color:e,disableElevation:r,fullWidth:n,size:o,variant:s,loading:l,loadingPosition:c,classes:u}=t,f={root:["root",l&&"loading",s,`${s}${me(e)}`,`size${me(o)}`,`${s}Size${me(o)}`,`color${me(e)}`,r&&"disableElevation",n&&"fullWidth",l&&`loadingPosition${me(c)}`],startIcon:["icon","startIcon",`iconSize${me(o)}`],endIcon:["icon","endIcon",`iconSize${me(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},h=Je(f,$_,u);return{...u,...h}},q2=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],z_=ge(ti,{shouldForwardProp:t=>Zn(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${me(r.color)}`],e[`size${me(r.size)}`],e[`${r.variant}Size${me(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth,r.loading&&e.loading]}})(Ge(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${gs.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${gs.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${gs.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${gs.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Zt()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(t.vars||t).palette[n].main,"--variant-outlinedColor":(t.vars||t).palette[n].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[n].main,.5),"--variant-containedColor":(t.vars||t).palette[n].contrastText,"--variant-containedBg":(t.vars||t).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[n].dark,"--variant-textBg":t.alpha((t.vars||t).palette[n].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[n].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[n].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${gs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gs.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${gs.loading}`]:{color:"transparent"}}}]}})),D_=ge("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,r.loading&&e.startIconLoadingStart,e[`iconSize${me(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...q2]})),F_=ge("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,r.loading&&e.endIconLoadingEnd,e[`iconSize${me(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...q2]})),H_=ge("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),vw=ge("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),_u=S.forwardRef(function(e,r){const n=S.useContext(V2),o=S.useContext(W2),s=Nl(n,e),l=nt({props:s,name:"MuiButton"}),{children:c,color:u="primary",component:f="button",className:h,disabled:v=!1,disableElevation:g=!1,disableFocusRipple:y=!1,endIcon:w,focusVisibleClassName:x,fullWidth:C=!1,id:R,loading:P=null,loadingIndicator:M,loadingPosition:E="center",size:I="medium",startIcon:A,type:F,variant:j="text",...H}=l,G=Pi(R),N=M??p.jsx(vo,{"aria-labelledby":G,color:"inherit",size:16}),k={...l,color:u,component:f,disabled:v,disableElevation:g,disableFocusRipple:y,fullWidth:C,loading:P,loadingIndicator:N,loadingPosition:E,size:I,type:F,variant:j},q=B_(k),U=(A||P&&E==="start")&&p.jsx(D_,{className:q.startIcon,ownerState:k,children:A||p.jsx(vw,{className:q.loadingIconPlaceholder,ownerState:k})}),L=(w||P&&E==="end")&&p.jsx(F_,{className:q.endIcon,ownerState:k,children:w||p.jsx(vw,{className:q.loadingIconPlaceholder,ownerState:k})}),W=o||"",K=typeof P=="boolean"?p.jsx("span",{className:q.loadingWrapper,style:{display:"contents"},children:P&&p.jsx(H_,{className:q.loadingIndicator,ownerState:k,children:N})}):null;return p.jsxs(z_,{ownerState:k,className:Me(n.className,q.root,h,W),component:f,disabled:v||P,focusRipple:!y,focusVisibleClassName:Me(q.focusVisible,x),ref:r,type:F,id:P?G:R,...H,classes:q,children:[U,E!=="end"&&K,c,E==="end"&&K,L]})});function G2(t){return S.Children.toArray(t).filter(e=>S.isValidElement(e))}function U_(t){return Ye("MuiButtonGroup",t)}const Ot=Ze("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),V_=(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ot.grouped}`]:e.grouped},{[`& .${Ot.grouped}`]:e[`grouped${me(r.orientation)}`]},{[`& .${Ot.grouped}`]:e[`grouped${me(r.variant)}`]},{[`& .${Ot.grouped}`]:e[`grouped${me(r.variant)}${me(r.orientation)}`]},{[`& .${Ot.grouped}`]:e[`grouped${me(r.variant)}${me(r.color)}`]},{[`& .${Ot.firstButton}`]:e.firstButton},{[`& .${Ot.lastButton}`]:e.lastButton},{[`& .${Ot.middleButton}`]:e.middleButton},e.root,e[r.variant],r.disableElevation===!0&&e.disableElevation,r.fullWidth&&e.fullWidth,r.orientation==="vertical"&&e.vertical]},W_=t=>{const{classes:e,color:r,disabled:n,disableElevation:o,fullWidth:s,orientation:l,variant:c}=t,u={root:["root",c,l,s&&"fullWidth",o&&"disableElevation",`color${me(r)}`],grouped:["grouped",`grouped${me(l)}`,`grouped${me(c)}`,`grouped${me(c)}${me(l)}`,`grouped${me(c)}${me(r)}`,n&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Je(u,U_,e)},q_=ge("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:V_})(Ge(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(t.vars||t).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Ot.lastButton},& .${Ot.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Ot.lastButton},& .${Ot.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderRight:t.vars?`1px solid ${t.alpha(t.vars.palette.common.onBackground,.23)}`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Ot.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderBottom:t.vars?`1px solid ${t.alpha(t.vars.palette.common.onBackground,.23)}`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Ot.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},...Object.entries(t.palette).filter(Zt()).flatMap(([e])=>[{props:{variant:"text",color:e},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderColor:t.alpha((t.vars||t).palette[e].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${Ot.lastButton},& .${Ot.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${Ot.lastButton},& .${Ot.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderRight:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${Ot.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderBottom:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${Ot.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},...Object.entries(t.palette).filter(Zt(["dark"])).map(([e])=>({props:{variant:"contained",color:e},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderColor:(t.vars||t).palette[e].dark}}}))],[`& .${Ot.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),G_=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiButtonGroup"}),{children:o,className:s,color:l="primary",component:c="div",disabled:u=!1,disableElevation:f=!1,disableFocusRipple:h=!1,disableRipple:v=!1,fullWidth:g=!1,orientation:y="horizontal",size:w="medium",variant:x="outlined",...C}=n,R={...n,color:l,component:c,disabled:u,disableElevation:f,disableFocusRipple:h,disableRipple:v,fullWidth:g,orientation:y,size:w,variant:x},P=W_(R),M=S.useMemo(()=>({className:P.grouped,color:l,disabled:u,disableElevation:f,disableFocusRipple:h,disableRipple:v,fullWidth:g,size:w,variant:x}),[l,u,f,h,v,g,w,x,P.grouped]),E=G2(o),I=E.length,A=F=>{const j=F===0,H=F===I-1;return j&&H?"":j?P.firstButton:H?P.lastButton:P.middleButton};return p.jsx(q_,{as:c,role:"group",className:Me(P.root,s),ref:r,ownerState:R,...C,children:p.jsx(V2.Provider,{value:M,children:E.map((F,j)=>p.jsx(W2.Provider,{value:A(j),children:F},j))})})});function X_(t){return Ye("MuiCard",t)}Ze("MuiCard",["root"]);const K_=t=>{const{classes:e}=t;return Je({root:["root"]},X_,e)},Q_=ge(Ir,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Yt=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiCard"}),{className:o,raised:s=!1,...l}=n,c={...n,raised:s},u=K_(c);return p.jsx(Q_,{className:Me(u.root,o),elevation:s?8:void 0,ref:r,ownerState:c,...l})});function Y_(t){return Ye("MuiCardActionArea",t)}const Cg=Ze("MuiCardActionArea",["root","focusVisible","focusHighlight"]),J_=t=>{const{classes:e}=t;return Je({root:["root"],focusHighlight:["focusHighlight"]},Y_,e)},Z_=ge(ti,{name:"MuiCardActionArea",slot:"Root"})(Ge(({theme:t})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${Cg.focusHighlight}`]:{opacity:(t.vars||t).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${Cg.focusVisible} .${Cg.focusHighlight}`]:{opacity:(t.vars||t).palette.action.focusOpacity}}))),eL=ge("span",{name:"MuiCardActionArea",slot:"FocusHighlight"})(Ge(({theme:t})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:t.transitions.create("opacity",{duration:t.transitions.duration.short})}))),tL=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiCardActionArea"}),{children:o,className:s,focusVisibleClassName:l,slots:c={},slotProps:u={},...f}=n,h=n,v=J_(h),g={slots:c,slotProps:u},[y,w]=Xe("root",{elementType:Z_,externalForwardedProps:{...g,...f},shouldForwardComponentProp:!0,ownerState:h,ref:r,className:Me(v.root,s),additionalProps:{focusVisibleClassName:Me(l,v.focusVisible)}}),[x,C]=Xe("focusHighlight",{elementType:eL,externalForwardedProps:g,ownerState:h,ref:r,className:v.focusHighlight});return p.jsxs(y,{...w,children:[o,p.jsx(x,{...C})]})});function rL(t){return Ye("MuiCardContent",t)}Ze("MuiCardContent",["root"]);const nL=t=>{const{classes:e}=t;return Je({root:["root"]},rL,e)},oL=ge("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Jt=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiCardContent"}),{className:o,component:s="div",...l}=n,c={...n,component:s},u=nL(c);return p.jsx(oL,{as:s,className:Me(u.root,o),ownerState:c,ref:r,...l})});function iL(t){return Ye("PrivateSwitchBase",t)}Ze("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const aL=t=>{const{classes:e,checked:r,disabled:n,edge:o}=t,s={root:["root",r&&"checked",n&&"disabled",o&&`edge${me(o)}`],input:["input"]};return Je(s,iL,e)},sL=ge(ti,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),lL=ge("input",{name:"MuiSwitchBase",shouldForwardProp:Zn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),X2=S.forwardRef(function(e,r){const{autoFocus:n,checked:o,checkedIcon:s,defaultChecked:l,disabled:c,disableFocusRipple:u=!1,edge:f=!1,icon:h,id:v,inputProps:g,inputRef:y,name:w,onBlur:x,onChange:C,onFocus:R,readOnly:P,required:M=!1,tabIndex:E,type:I,value:A,slots:F={},slotProps:j={},...H}=e,[G,N]=Na({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),k=ia(),q=ne=>{R&&R(ne),k&&k.onFocus&&k.onFocus(ne)},U=ne=>{x&&x(ne),k&&k.onBlur&&k.onBlur(ne)},L=ne=>{if(ne.nativeEvent.defaultPrevented)return;const J=ne.target.checked;N(J),C&&C(ne,J)};let W=c;k&&typeof W>"u"&&(W=k.disabled);const K=I==="checkbox"||I==="radio",ee={...e,checked:G,disabled:W,disableFocusRipple:u,edge:f},Z=aL(ee),Q={slots:F,slotProps:{input:g,...j}},[X,re]=Xe("root",{ref:r,elementType:sL,className:Z.root,shouldForwardComponentProp:!0,externalForwardedProps:{...Q,component:"span",...H},getSlotProps:ne=>({...ne,onFocus:J=>{var de;(de=ne.onFocus)==null||de.call(ne,J),q(J)},onBlur:J=>{var de;(de=ne.onBlur)==null||de.call(ne,J),U(J)}}),ownerState:ee,additionalProps:{centerRipple:!0,focusRipple:!u,disabled:W,role:void 0,tabIndex:null}}),[ce,Y]=Xe("input",{ref:y,elementType:lL,className:Z.input,externalForwardedProps:Q,getSlotProps:ne=>({...ne,onChange:J=>{var de;(de=ne.onChange)==null||de.call(ne,J),L(J)}}),ownerState:ee,additionalProps:{autoFocus:n,checked:o,defaultChecked:l,disabled:W,id:K?v:void 0,name:w,readOnly:P,required:M,tabIndex:E,type:I,...I==="checkbox"&&A===void 0?{}:{value:A}}});return p.jsxs(X,{...re,children:[p.jsx(ce,{...Y}),G?s:h]})}),cL=Ie(p.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"})),uL=Ie(p.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 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),dL=Ie(p.jsx("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"}));function pL(t){return Ye("MuiCheckbox",t)}const Tg=Ze("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),fL=t=>{const{classes:e,indeterminate:r,color:n,size:o}=t,s={root:["root",r&&"indeterminate",`color${me(n)}`,`size${me(o)}`]},l=Je(s,pL,e);return{...e,...l}},hL=ge(X2,{shouldForwardProp:t=>Zn(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${me(r.size)}`],r.color!=="default"&&e[`color${me(r.color)}`]]}})(Ge(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{[`&.${Tg.checked}, &.${Tg.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${Tg.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),mL=p.jsx(uL,{}),gL=p.jsx(cL,{}),yL=p.jsx(dL,{}),vL=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiCheckbox"}),{checkedIcon:o=mL,color:s="primary",icon:l=gL,indeterminate:c=!1,indeterminateIcon:u=yL,inputProps:f,size:h="medium",disableRipple:v=!1,className:g,slots:y={},slotProps:w={},...x}=n,C=c?u:l,R=c?u:o,P={...n,disableRipple:v,color:s,indeterminate:c,size:h},M=fL(P),E=w.input??f,[I,A]=Xe("root",{ref:r,elementType:hL,className:Me(M.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:w,...x},ownerState:P,additionalProps:{type:"checkbox",icon:S.cloneElement(C,{fontSize:C.props.fontSize??h}),checkedIcon:S.cloneElement(R,{fontSize:R.props.fontSize??h}),disableRipple:v,slots:y,slotProps:{input:C2(typeof E=="function"?E(P):E,{"data-indeterminate":c})}}});return p.jsx(I,{...A,classes:M})});function bw(t){return t.substring(2).toLowerCase()}function bL(t,e){return e.documentElement.clientWidth<t.clientX||e.documentElement.clientHeight<t.clientY}function xL(t){const{children:e,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=t,l=S.useRef(!1),c=S.useRef(null),u=S.useRef(!1),f=S.useRef(!1);S.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const h=Mr(Ns(e),c),v=Wr(w=>{const x=f.current;f.current=!1;const C=dn(c.current);if(!u.current||!c.current||"clientX"in w&&bL(w,C))return;if(l.current){l.current=!1;return}let R;w.composedPath?R=w.composedPath().includes(c.current):R=!C.documentElement.contains(w.target)||c.current.contains(w.target),!R&&(r||!x)&&o(w)}),g=w=>x=>{f.current=!0;const C=e.props[w];C&&C(x)},y={ref:h};return s!==!1&&(y[s]=g(s)),S.useEffect(()=>{if(s!==!1){const w=bw(s),x=dn(c.current),C=()=>{l.current=!0};return x.addEventListener(w,v),x.addEventListener("touchmove",C),()=>{x.removeEventListener(w,v),x.removeEventListener("touchmove",C)}}},[v,s]),n!==!1&&(y[n]=g(n)),S.useEffect(()=>{if(n!==!1){const w=bw(n),x=dn(c.current);return x.addEventListener(w,v),()=>{x.removeEventListener(w,v)}}},[v,n]),S.cloneElement(e,y)}const wf=sM({createStyledComponent:ge("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`maxWidth${me(String(r.maxWidth))}`],r.fixed&&e.fixed,r.disableGutters&&e.disableGutters]}}),useThemeProps:t=>nt({props:t,name:"MuiContainer"})});function K2(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}function wL(t){const e=dn(t);return e.body===t?ei(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function mu(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function xw(t){return parseInt(ei(t).getComputedStyle(t).paddingRight,10)||0}function SL(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function ww(t,e,r,n,o){const s=[e,r,...n];[].forEach.call(t.children,l=>{const c=!s.includes(l),u=!SL(l);c&&u&&mu(l,o)})}function Eg(t,e){let r=-1;return t.some((n,o)=>e(n)?(r=o,!0):!1),r}function CL(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if(wL(n)){const l=K2(ei(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${xw(n)+l}px`;const c=dn(n).querySelectorAll(".mui-fixed");[].forEach.call(c,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${xw(u)+l}px`})}let s;if(n.parentNode instanceof DocumentFragment)s=dn(n).body;else{const l=n.parentElement,c=ei(n);s=(l==null?void 0:l.nodeName)==="HTML"&&c.getComputedStyle(l).overflowY==="scroll"?l:n}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:l,property:c})=>{s?l.style.setProperty(c,s):l.style.removeProperty(c)})}}function TL(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class EL{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&mu(e.modalRef,!1);const o=TL(r);ww(r,e.mount,e.modalRef,o,!0);const s=Eg(this.containers,l=>l.container===r);return s!==-1?(this.containers[s].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:o}),n)}mount(e,r){const n=Eg(this.containers,s=>s.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=CL(o,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=Eg(this.containers,l=>l.modals.includes(e)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(e),1),this.modals.splice(n,1),s.modals.length===0)s.restore&&s.restore(),e.modalRef&&mu(e.modalRef,r),ww(s.container,e.mount,e.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=s.modals[s.modals.length-1];l.modalRef&&mu(l.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}function kl(t){var r;let e=t.activeElement;for(;((r=e==null?void 0:e.shadowRoot)==null?void 0:r.activeElement)!=null;)e=e.shadowRoot.activeElement;return e}const kL=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function PL(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function RL(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function ML(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||RL(t))}function IL(t){const e=[],r=[];return Array.from(t.querySelectorAll(kL)).forEach((n,o)=>{const s=PL(n);s===-1||!ML(n)||(s===0?e.push(n):r.push({documentOrder:o,tabIndex:s,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(e)}function AL(){return!0}function jL(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:s=IL,isEnabled:l=AL,open:c}=t,u=S.useRef(!1),f=S.useRef(null),h=S.useRef(null),v=S.useRef(null),g=S.useRef(null),y=S.useRef(!1),w=S.useRef(null),x=Mr(Ns(e),w),C=S.useRef(null);S.useEffect(()=>{!c||!w.current||(y.current=!r)},[r,c]),S.useEffect(()=>{if(!c||!w.current)return;const M=dn(w.current),E=kl(M);return w.current.contains(E)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),y.current&&w.current.focus()),()=>{o||(v.current&&v.current.focus&&(u.current=!0,v.current.focus()),v.current=null)}},[c]),S.useEffect(()=>{if(!c||!w.current)return;const M=dn(w.current),E=kl(M),I=j=>{C.current=j,!(n||!l()||j.key!=="Tab")&&E===w.current&&j.shiftKey&&(u.current=!0,h.current&&h.current.focus())},A=()=>{var N,k;const j=w.current;if(j===null)return;const H=kl(M);if(!M.hasFocus()||!l()||u.current){u.current=!1;return}if(j.contains(H)||n&&H!==f.current&&H!==h.current)return;if(H!==g.current)g.current=null;else if(g.current!==null)return;if(!y.current)return;let G=[];if((H===f.current||H===h.current)&&(G=s(w.current)),G.length>0){const q=!!((N=C.current)!=null&&N.shiftKey&&((k=C.current)==null?void 0:k.key)==="Tab"),U=G[0],L=G[G.length-1];typeof U!="string"&&typeof L!="string"&&(q?L.focus():U.focus())}else j.focus()};M.addEventListener("focusin",A),M.addEventListener("keydown",I,!0);const F=setInterval(()=>{const j=kl(M);j&&j.tagName==="BODY"&&A()},50);return()=>{clearInterval(F),M.removeEventListener("focusin",A),M.removeEventListener("keydown",I,!0)}},[r,n,o,l,c,s]);const R=M=>{v.current===null&&(v.current=M.relatedTarget),y.current=!0,g.current=M.target;const E=e.props.onFocus;E&&E(M)},P=M=>{v.current===null&&(v.current=M.relatedTarget),y.current=!0};return p.jsxs(S.Fragment,{children:[p.jsx("div",{tabIndex:c?0:-1,onFocus:P,ref:f,"data-testid":"sentinelStart"}),S.cloneElement(e,{ref:x,onFocus:R}),p.jsx("div",{tabIndex:c?0:-1,onFocus:P,ref:h,"data-testid":"sentinelEnd"})]})}function _L(t){return typeof t=="function"?t():t}function LL(t){return t?t.props.hasOwnProperty("in"):!1}const Sw=()=>{},Pp=new EL;function OL(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:u,open:f,rootRef:h}=t,v=S.useRef({}),g=S.useRef(null),y=S.useRef(null),w=Mr(y,h),[x,C]=S.useState(!f),R=LL(c);let P=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(P=!1);const M=()=>dn(g.current),E=()=>(v.current.modalRef=y.current,v.current.mount=g.current,v.current),I=()=>{Pp.mount(E(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},A=Wr(()=>{const L=_L(e)||M().body;Pp.add(E(),L),y.current&&I()}),F=()=>Pp.isTopModal(E()),j=Wr(L=>{g.current=L,L&&(f&&F()?I():y.current&&mu(y.current,P))}),H=S.useCallback(()=>{Pp.remove(E(),P)},[P]);S.useEffect(()=>()=>{H()},[H]),S.useEffect(()=>{f?A():(!R||!o)&&H()},[f,H,R,o,A]);const G=L=>W=>{var K;(K=L.onKeyDown)==null||K.call(L,W),!(W.key!=="Escape"||W.which===229||!F())&&(r||(W.stopPropagation(),u&&u(W,"escapeKeyDown")))},N=L=>W=>{var K;(K=L.onClick)==null||K.call(L,W),W.target===W.currentTarget&&u&&u(W,"backdropClick")};return{getRootProps:(L={})=>{const W=yf(t);delete W.onTransitionEnter,delete W.onTransitionExited;const K={...W,...L};return{role:"presentation",...K,onKeyDown:G(K),ref:w}},getBackdropProps:(L={})=>{const W=L;return{"aria-hidden":!0,...W,onClick:N(W),open:f}},getTransitionProps:()=>{const L=()=>{C(!1),s&&s()},W=()=>{C(!0),l&&l(),o&&H()};return{onEnter:Hx(L,(c==null?void 0:c.props.onEnter)??Sw),onExited:Hx(W,(c==null?void 0:c.props.onExited)??Sw)}},rootRef:w,portalRef:j,isTopModal:F,exited:x,hasTransition:R}}function NL(t){return Ye("MuiModal",t)}Ze("MuiModal",["root","hidden","backdrop"]);const $L=t=>{const{open:e,exited:r,classes:n}=t;return Je({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},NL,n)},BL=ge("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(Ge(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),zL=ge(U2,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Q2=S.forwardRef(function(e,r){const n=nt({name:"MuiModal",props:e}),{BackdropComponent:o=zL,BackdropProps:s,classes:l,className:c,closeAfterTransition:u=!1,children:f,container:h,component:v,components:g={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:C=!1,disablePortal:R=!1,disableRestoreFocus:P=!1,disableScrollLock:M=!1,hideBackdrop:E=!1,keepMounted:I=!1,onClose:A,onTransitionEnter:F,onTransitionExited:j,open:H,slotProps:G={},slots:N={},theme:k,...q}=n,U={...n,closeAfterTransition:u,disableAutoFocus:w,disableEnforceFocus:x,disableEscapeKeyDown:C,disablePortal:R,disableRestoreFocus:P,disableScrollLock:M,hideBackdrop:E,keepMounted:I},{getRootProps:L,getBackdropProps:W,getTransitionProps:K,portalRef:ee,isTopModal:Z,exited:Q,hasTransition:X}=OL({...U,rootRef:r}),re={...U,exited:Q},ce=$L(re),Y={};if(f.props.tabIndex===void 0&&(Y.tabIndex="-1"),X){const{onEnter:se,onExited:De}=K();Y.onEnter=se,Y.onExited=De}const ne={slots:{root:g.Root,backdrop:g.Backdrop,...N},slotProps:{...y,...G}},[J,de]=Xe("root",{ref:r,elementType:BL,externalForwardedProps:{...ne,...q,component:v},getSlotProps:L,ownerState:re,className:Me(c,ce==null?void 0:ce.root,!re.open&&re.exited&&(ce==null?void 0:ce.hidden))}),[Ce,he]=Xe("backdrop",{ref:s==null?void 0:s.ref,elementType:o,externalForwardedProps:ne,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:se=>W({...se,onClick:De=>{se!=null&&se.onClick&&se.onClick(De)}}),className:Me(s==null?void 0:s.className,ce==null?void 0:ce.backdrop),ownerState:re});return!I&&!H&&(!X||Q)?null:p.jsx(F2,{ref:ee,container:h,disablePortal:R,children:p.jsxs(J,{...de,children:[!E&&o?p.jsx(Ce,{...he}):null,p.jsx(jL,{disableEnforceFocus:x,disableAutoFocus:w,disableRestoreFocus:P,isEnabled:Z,open:H,children:S.cloneElement(f,Y)})]})})});function DL(t){return Ye("MuiDialog",t)}const kg=Ze("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Y2=S.createContext({}),FL=ge(U2,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),HL=t=>{const{classes:e,scroll:r,maxWidth:n,fullWidth:o,fullScreen:s}=t,l={root:["root"],container:["container",`scroll${me(r)}`],paper:["paper",`paperScroll${me(r)}`,`paperWidth${me(String(n))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return Je(l,DL,e)},UL=ge(Q2,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),VL=ge("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e[`scroll${me(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),WL=ge(Ir,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e[`scrollPaper${me(r.scroll)}`],e[`paperWidth${me(String(r.maxWidth))}`],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})(Ge(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${kg.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${kg.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${kg.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),qL=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiDialog"}),o=Jn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":c,"aria-modal":u=!0,BackdropComponent:f,BackdropProps:h,children:v,className:g,disableEscapeKeyDown:y=!1,fullScreen:w=!1,fullWidth:x=!1,maxWidth:C="sm",onClick:R,onClose:P,open:M,PaperComponent:E=Ir,PaperProps:I={},scroll:A="paper",slots:F={},slotProps:j={},TransitionComponent:H=hy,transitionDuration:G=s,TransitionProps:N,...k}=n,q={...n,disableEscapeKeyDown:y,fullScreen:w,fullWidth:x,maxWidth:C,scroll:A},U=HL(q),L=S.useRef(),W=Oe=>{L.current=Oe.target===Oe.currentTarget},K=Oe=>{R&&R(Oe),L.current&&(L.current=null,P&&P(Oe,"backdropClick"))},ee=Pi(c),Z=S.useMemo(()=>({titleId:ee}),[ee]),Q={transition:H,...F},X={transition:N,paper:I,backdrop:h,...j},re={slots:Q,slotProps:X},[ce,Y]=Xe("root",{elementType:UL,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:q,className:Me(U.root,g),ref:r}),[ne,J]=Xe("backdrop",{elementType:FL,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:q}),[de,Ce]=Xe("paper",{elementType:WL,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:q,className:Me(U.paper,I.className)}),[he,se]=Xe("container",{elementType:VL,externalForwardedProps:re,ownerState:q,className:U.container}),[De,Ne]=Xe("transition",{elementType:hy,externalForwardedProps:re,ownerState:q,additionalProps:{appear:!0,in:M,timeout:G,role:"presentation"}});return p.jsx(ce,{closeAfterTransition:!0,slots:{backdrop:ne},slotProps:{backdrop:{transitionDuration:G,as:f,...J}},disableEscapeKeyDown:y,onClose:P,open:M,onClick:K,...Y,...k,children:p.jsx(De,{...Ne,children:p.jsx(he,{onMouseDown:W,...se,children:p.jsx(de,{as:E,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":ee,"aria-modal":u,...Ce,children:p.jsx(Y2.Provider,{value:Z,children:v})})})})})});function GL(t){return Ye("MuiDialogActions",t)}Ze("MuiDialogActions",["root","spacing"]);const XL=t=>{const{classes:e,disableSpacing:r}=t;return Je({root:["root",!r&&"spacing"]},GL,e)},KL=ge("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),QL=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...l}=n,c={...n,disableSpacing:s},u=XL(c);return p.jsx(KL,{className:Me(u.root,o),ownerState:c,ref:r,...l})});function YL(t){return Ye("MuiDialogContent",t)}Ze("MuiDialogContent",["root","dividers"]);function JL(t){return Ye("MuiDialogTitle",t)}const ZL=Ze("MuiDialogTitle",["root"]),e6=t=>{const{classes:e,dividers:r}=t;return Je({root:["root",r&&"dividers"]},YL,e)},t6=ge("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})(Ge(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${ZL.root} + &`]:{paddingTop:0}}}]}))),r6=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...l}=n,c={...n,dividers:s},u=e6(c);return p.jsx(t6,{className:Me(u.root,o),ownerState:c,ref:r,...l})}),n6=t=>{const{classes:e}=t;return Je({root:["root"]},JL,e)},o6=ge(je,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),i6=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiDialogTitle"}),{className:o,id:s,...l}=n,c=n,u=n6(c),{titleId:f=s}=S.useContext(Y2);return p.jsx(o6,{component:"h2",className:Me(u.root,o),ownerState:c,ref:r,variant:"h6",id:s??f,...l})}),Cw=Ze("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),a6=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:o,size:s,hiddenLabel:l,multiline:c}=t,u={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${me(s)}`,l&&"hiddenLabel",c&&"multiline"],input:["input"]},f=Je(u,c_,e);return{...e,...f}},s6=ge(lh,{shouldForwardProp:t=>Zn(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...ah(t,e),!r.disableUnderline&&e.underline]}})(Ge(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${fo.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${fo.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${fo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fo.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?t.alpha(t.vars.palette.common.onBackground,t.vars.opacity.inputUnderline):r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${fo.disabled}, .${fo.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${fo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Zt()).map(([l])=>{var c;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(c=(t.vars||t).palette[l])==null?void 0:c.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:c})=>l.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),l6=ge(ch,{name:"MuiFilledInput",slot:"Input",overridesResolver:sh})(Ge(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),R0=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:l,fullWidth:c=!1,hiddenLabel:u,inputComponent:f="input",multiline:h=!1,slotProps:v,slots:g={},type:y="text",...w}=n,x={...n,disableUnderline:o,fullWidth:c,inputComponent:f,multiline:h,type:y},C=a6(n),R={root:{ownerState:x},input:{ownerState:x}},P=v??l?Zr(R,v??l):R,M=g.root??s.Root??s6,E=g.input??s.Input??l6;return p.jsx(uh,{slots:{root:M,input:E},slotProps:P,fullWidth:c,inputComponent:f,multiline:h,ref:r,type:y,...w,classes:C})});R0.muiName="Input";function c6(t){return Ye("MuiFormControl",t)}Ze("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const u6=t=>{const{classes:e,margin:r,fullWidth:n}=t,o={root:["root",r!=="none"&&`margin${me(r)}`,n&&"fullWidth"]};return Je(o,c6,e)},d6=ge("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`margin${me(r.margin)}`],r.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),za=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiFormControl"}),{children:o,className:s,color:l="primary",component:c="div",disabled:u=!1,error:f=!1,focused:h,fullWidth:v=!1,hiddenLabel:g=!1,margin:y="none",required:w=!1,size:x="medium",variant:C="outlined",...R}=n,P={...n,color:l,component:c,disabled:u,error:f,fullWidth:v,hiddenLabel:g,margin:y,required:w,size:x,variant:C},M=u6(P),[E,I]=S.useState(()=>{let L=!1;return o&&S.Children.forEach(o,W=>{if(!ef(W,["Input","Select"]))return;const K=ef(W,["Select"])?W.props.input:W;K&&o_(K.props)&&(L=!0)}),L}),[A,F]=S.useState(()=>{let L=!1;return o&&S.Children.forEach(o,W=>{ef(W,["Input","Select"])&&(xf(W.props,!0)||xf(W.props.inputProps,!0))&&(L=!0)}),L}),[j,H]=S.useState(!1);u&&j&&H(!1);const G=h!==void 0&&!u?h:j;let N;S.useRef(!1);const k=S.useCallback(()=>{F(!0)},[]),q=S.useCallback(()=>{F(!1)},[]),U=S.useMemo(()=>({adornedStart:E,setAdornedStart:I,color:l,disabled:u,error:f,filled:A,focused:G,fullWidth:v,hiddenLabel:g,size:x,onBlur:()=>{H(!1)},onFocus:()=>{H(!0)},onEmpty:q,onFilled:k,registerEffect:N,required:w,variant:C}),[E,l,u,f,A,G,v,g,N,q,k,w,x,C]);return p.jsx(ih.Provider,{value:U,children:p.jsx(d6,{as:c,ownerState:P,className:Me(M.root,s),ref:r,...R,children:o})})});function p6(t){return Ye("MuiFormControlLabel",t)}const lu=Ze("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),f6=t=>{const{classes:e,disabled:r,labelPlacement:n,error:o,required:s}=t,l={root:["root",r&&"disabled",`labelPlacement${me(n)}`,o&&"error",s&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return Je(l,p6,e)},h6=ge("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${lu.label}`]:e.label},e.root,e[`labelPlacement${me(r.labelPlacement)}`]]}})(Ge(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${lu.disabled}`]:{cursor:"default"},[`& .${lu.label}`]:{[`&.${lu.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),m6=ge("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Ge(({theme:t})=>({[`&.${lu.error}`]:{color:(t.vars||t).palette.error.main}}))),J2=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiFormControlLabel"}),{checked:o,className:s,componentsProps:l={},control:c,disabled:u,disableTypography:f,inputRef:h,label:v,labelPlacement:g="end",name:y,onChange:w,required:x,slots:C={},slotProps:R={},value:P,...M}=n,E=ia(),I=u??c.props.disabled??(E==null?void 0:E.disabled),A=x??c.props.required,F={disabled:I,required:A};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof c.props[L]>"u"&&typeof n[L]<"u"&&(F[L]=n[L])});const j=$s({props:n,muiFormControl:E,states:["error"]}),H={...n,disabled:I,labelPlacement:g,required:A,error:j.error},G=f6(H),N={slots:C,slotProps:{...l,...R}},[k,q]=Xe("typography",{elementType:je,externalForwardedProps:N,ownerState:H});let U=v;return U!=null&&U.type!==je&&!f&&(U=p.jsx(k,{component:"span",...q,className:Me(G.label,q==null?void 0:q.className),children:U})),p.jsxs(h6,{className:Me(G.root,s),ownerState:H,ref:r,...M,children:[S.cloneElement(c,F),A?p.jsxs("div",{children:[U,p.jsxs(m6,{ownerState:H,"aria-hidden":!0,className:G.asterisk,children:[" ","*"]})]}):U]})});function g6(t){return Ye("MuiFormHelperText",t)}const Tw=Ze("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ew;const y6=t=>{const{classes:e,contained:r,size:n,disabled:o,error:s,filled:l,focused:c,required:u}=t,f={root:["root",o&&"disabled",s&&"error",n&&`size${me(n)}`,r&&"contained",c&&"focused",l&&"filled",u&&"required"]};return Je(f,g6,e)},v6=ge("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${me(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(Ge(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Tw.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Tw.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),ic=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiFormHelperText"}),{children:o,className:s,component:l="p",disabled:c,error:u,filled:f,focused:h,margin:v,required:g,variant:y,...w}=n,x=ia(),C=$s({props:n,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),R={...n,component:l,contained:C.variant==="filled"||C.variant==="outlined",variant:C.variant,size:C.size,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required};delete R.ownerState;const P=y6(R);return p.jsx(v6,{as:l,className:Me(P.root,s),ref:r,...w,ownerState:R,children:o===" "?Ew||(Ew=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function b6(t){return Ye("MuiFormLabel",t)}const gu=Ze("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),x6=t=>{const{classes:e,color:r,focused:n,disabled:o,error:s,filled:l,required:c}=t,u={root:["root",`color${me(r)}`,o&&"disabled",s&&"error",l&&"filled",n&&"focused",c&&"required"],asterisk:["asterisk",s&&"error"]};return Je(u,b6,e)},w6=ge("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled]}})(Ge(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{[`&.${gu.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${gu.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${gu.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),S6=ge("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ge(({theme:t})=>({[`&.${gu.error}`]:{color:(t.vars||t).palette.error.main}}))),C6=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiFormLabel"}),{children:o,className:s,color:l,component:c="label",disabled:u,error:f,filled:h,focused:v,required:g,...y}=n,w=ia(),x=$s({props:n,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),C={...n,color:x.color||"primary",component:c,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},R=x6(C);return p.jsxs(w6,{as:c,ownerState:C,className:Me(R.root,s),ref:r,...y,children:[o,x.required&&p.jsxs(S6,{ownerState:C,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]})}),jn=CM({createStyledComponent:ge("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.container&&e.container]}}),componentName:"MuiGrid",useThemeProps:t=>nt({props:t,name:"MuiGrid"}),useTheme:Jn});function my(t){return`scale(${t}, ${t**2})`}const T6={entering:{opacity:1,transform:my(1)},entered:{opacity:1,transform:"none"}},Pg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Lu=S.forwardRef(function(e,r){const{addEndListener:n,appear:o=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:h,onExit:v,onExited:g,onExiting:y,style:w,timeout:x="auto",TransitionComponent:C=oi,...R}=e,P=_a(),M=S.useRef(),E=Jn(),I=S.useRef(null),A=Mr(I,Ns(s),r),F=L=>W=>{if(L){const K=I.current;W===void 0?L(K):L(K,W)}},j=F(h),H=F((L,W)=>{P2(L);const{duration:K,delay:ee,easing:Z}=$l({style:w,timeout:x,easing:l},{mode:"enter"});let Q;x==="auto"?(Q=E.transitions.getAutoHeightDuration(L.clientHeight),M.current=Q):Q=K,L.style.transition=[E.transitions.create("opacity",{duration:Q,delay:ee}),E.transitions.create("transform",{duration:Pg?Q:Q*.666,delay:ee,easing:Z})].join(","),u&&u(L,W)}),G=F(f),N=F(y),k=F(L=>{const{duration:W,delay:K,easing:ee}=$l({style:w,timeout:x,easing:l},{mode:"exit"});let Z;x==="auto"?(Z=E.transitions.getAutoHeightDuration(L.clientHeight),M.current=Z):Z=W,L.style.transition=[E.transitions.create("opacity",{duration:Z,delay:K}),E.transitions.create("transform",{duration:Pg?Z:Z*.666,delay:Pg?K:K||Z*.333,easing:ee})].join(","),L.style.opacity=0,L.style.transform=my(.75),v&&v(L)}),q=F(g),U=L=>{x==="auto"&&P.start(M.current||0,L),n&&n(I.current,L)};return p.jsx(C,{appear:o,in:c,nodeRef:I,onEnter:H,onEntered:G,onEntering:j,onExit:k,onExited:q,onExiting:N,addEndListener:U,timeout:x==="auto"?null:x,...R,children:(L,{ownerState:W,...K})=>S.cloneElement(s,{style:{opacity:0,transform:my(.75),visibility:L==="exited"&&!c?"hidden":void 0,...T6[L],...w,...s.props.style},ref:A,...K})})});Lu&&(Lu.muiSupportAuto=!0);const E6=t=>{const{classes:e,disableUnderline:r}=t,o=Je({root:["root",!r&&"underline"],input:["input"]},s_,e);return{...e,...o}},k6=ge(lh,{shouldForwardProp:t=>Zn(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...ah(t,e),!r.disableUnderline&&e.underline]}})(Ge(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=t.alpha(t.vars.palette.common.onBackground,t.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Aa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Aa.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Aa.disabled}, .${Aa.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Aa.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Zt()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),P6=ge(ch,{name:"MuiInput",slot:"Input",overridesResolver:sh})({}),dh=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:f=!1,slotProps:h,slots:v={},type:g="text",...y}=n,w=E6(n),C={root:{ownerState:{disableUnderline:o}}},R=h??l?Zr(h??l,C):C,P=v.root??s.Root??k6,M=v.input??s.Input??P6;return p.jsx(uh,{slots:{root:P,input:M},slotProps:R,fullWidth:c,inputComponent:u,multiline:f,ref:r,type:g,...y,classes:w})});dh.muiName="Input";function R6(t){return Ye("MuiInputAdornment",t)}const kw=Ze("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Pw;const M6=(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${me(r.position)}`],r.disablePointerEvents===!0&&e.disablePointerEvents,e[r.variant]]},I6=t=>{const{classes:e,disablePointerEvents:r,hiddenLabel:n,position:o,size:s,variant:l}=t,c={root:["root",r&&"disablePointerEvents",o&&`position${me(o)}`,l,n&&"hiddenLabel",s&&`size${me(s)}`]};return Je(c,R6,e)},A6=ge("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:M6})(Ge(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${kw.positionStart}&:not(.${kw.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Sf=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiInputAdornment"}),{children:o,className:s,component:l="div",disablePointerEvents:c=!1,disableTypography:u=!1,position:f,variant:h,...v}=n,g=ia()||{};let y=h;h&&g.variant,g&&!y&&(y=g.variant);const w={...n,hiddenLabel:g.hiddenLabel,size:g.size,disablePointerEvents:c,position:f,variant:y},x=I6(w);return p.jsx(ih.Provider,{value:null,children:p.jsx(A6,{as:l,ownerState:w,className:Me(x.root,s),ref:r,...v,children:typeof o=="string"&&!u?p.jsx(je,{color:"textSecondary",children:o}):p.jsxs(S.Fragment,{children:[f==="start"?Pw||(Pw=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function j6(t){return Ye("MuiInputLabel",t)}Ze("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const _6=t=>{const{classes:e,formControl:r,size:n,shrink:o,disableAnimation:s,variant:l,required:c}=t,u={root:["root",r&&"formControl",!s&&"animated",o&&"shrink",n&&n!=="medium"&&`size${me(n)}`,l],asterisk:[c&&"asterisk"]},f=Je(u,j6,e);return{...e,...f}},L6=ge(C6,{shouldForwardProp:t=>Zn(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${gu.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(Ge(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Vl=S.forwardRef(function(e,r){const n=nt({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:s,shrink:l,variant:c,className:u,...f}=n,h=ia();let v=l;typeof v>"u"&&h&&(v=h.filled||h.focused||h.adornedStart);const g=$s({props:n,muiFormControl:h,states:["size","variant","required","focused"]}),y={...n,disableAnimation:o,formControl:h,shrink:v,size:g.size,variant:g.variant,required:g.required,focused:g.focused},w=_6(y);return p.jsx(L6,{"data-shrink":v,ref:r,className:Me(w.root,u),...f,ownerState:y,classes:w})});function O6(t){return Ye("MuiLinearProgress",t)}Ze("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const gy=4,yy=Li`
220
+ 0% {
221
+ left: -35%;
222
+ right: 100%;
223
+ }
224
+
225
+ 60% {
226
+ left: 100%;
227
+ right: -90%;
228
+ }
229
+
230
+ 100% {
231
+ left: 100%;
232
+ right: -90%;
233
+ }
234
+ `,N6=typeof yy!="string"?Xa`
235
+ animation: ${yy} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
236
+ `:null,vy=Li`
237
+ 0% {
238
+ left: -200%;
239
+ right: 100%;
240
+ }
241
+
242
+ 60% {
243
+ left: 107%;
244
+ right: -8%;
245
+ }
246
+
247
+ 100% {
248
+ left: 107%;
249
+ right: -8%;
250
+ }
251
+ `,$6=typeof vy!="string"?Xa`
252
+ animation: ${vy} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
253
+ `:null,by=Li`
254
+ 0% {
255
+ opacity: 1;
256
+ background-position: 0 -23px;
257
+ }
258
+
259
+ 60% {
260
+ opacity: 0;
261
+ background-position: 0 -23px;
262
+ }
263
+
264
+ 100% {
265
+ opacity: 1;
266
+ background-position: -200px -23px;
267
+ }
268
+ `,B6=typeof by!="string"?Xa`
269
+ animation: ${by} 3s infinite linear;
270
+ `:null,z6=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${me(n)}`,r],dashed:["dashed",`dashedColor${me(n)}`],bar1:["bar","bar1",`barColor${me(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${me(n)}`,r==="buffer"&&`color${me(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Je(o,O6,e)},M0=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?t.lighten(t.palette[e].main,.62):t.darken(t.palette[e].main,.5),D6=ge("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${me(r.color)}`],e[r.variant]]}})(Ge(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{backgroundColor:M0(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),F6=ge("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${me(r.color)}`]]}})(Ge(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(Zt()).map(([e])=>{const r=M0(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),B6||{animation:`${by} 3s infinite linear`}),H6=ge("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar1,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Ge(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${gy}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${gy}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:N6||{animation:`${yy} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),U6=ge("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar2,e[`barColor${me(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Ge(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:M0(t,e),transition:`transform .${gy}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:$6||{animation:`${vy} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),I0=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:l,valueBuffer:c,variant:u="indeterminate",...f}=n,h={...n,color:s,variant:u},v=z6(h),g=Ka(),y={},w={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&l!==void 0){y["aria-valuenow"]=Math.round(l),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let x=l-100;g&&(x=-x),w.bar1.transform=`translateX(${x}%)`}if(u==="buffer"&&c!==void 0){let x=(c||0)-100;g&&(x=-x),w.bar2.transform=`translateX(${x}%)`}return p.jsxs(D6,{className:Me(v.root,o),ownerState:h,role:"progressbar",...y,ref:r,...f,children:[u==="buffer"?p.jsx(F6,{className:v.dashed,ownerState:h}):null,p.jsx(H6,{className:v.bar1,ownerState:h,style:w.bar1}),u==="determinate"?null:p.jsx(U6,{className:v.bar2,ownerState:h,style:w.bar2})]})});function V6(t){return Ye("MuiLink",t)}const W6=Ze("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),q6=({theme:t,ownerState:e})=>{const r=e.color;if("colorSpace"in t&&t.colorSpace){const s=Si(t,`palette.${r}.main`)||Si(t,`palette.${r}`)||e.color;return t.alpha(s,.4)}const n=Si(t,`palette.${r}.main`,!1)||Si(t,`palette.${r}`,!1)||e.color,o=Si(t,`palette.${r}.mainChannel`)||Si(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:Iu(n,.4)},Rw={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},G6=t=>{const{classes:e,component:r,focusVisible:n,underline:o}=t,s={root:["root",`underline${me(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Je(s,V6,e)},X6=ge(je,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`underline${me(r.underline)}`],r.component==="button"&&e.button]}})(Ge(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color==="inherit",style:t.colorSpace?{textDecorationColor:t.alpha("currentColor",.4)}:null},...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{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"},[`&.${W6.focusVisible}`]:{outline:"auto"}}}]}))),K6=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiLink"}),o=Jn(),{className:s,color:l="primary",component:c="a",onBlur:u,onFocus:f,TypographyClasses:h,underline:v="always",variant:g="inherit",sx:y,...w}=n,[x,C]=S.useState(!1),R=I=>{Bl(I.target)||C(!1),u&&u(I)},P=I=>{Bl(I.target)&&C(!0),f&&f(I)},M={...n,color:l,component:c,focusVisible:x,underline:v,variant:g},E=G6(M);return p.jsx(X6,{color:l,className:Me(E.root,s),classes:h,component:c,onBlur:R,onFocus:P,ref:r,ownerState:M,variant:g,...w,sx:[...Rw[l]===void 0?[{color:l}]:[],...Array.isArray(y)?y:[y]],style:{...w.style,...v==="always"&&l!=="inherit"&&!Rw[l]&&{"--Link-underlineColor":q6({theme:o,ownerState:M})}}})}),Ou=S.createContext({});function Q6(t){return Ye("MuiList",t)}Ze("MuiList",["root","padding","dense","subheader"]);const Y6=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return Je({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Q6,e)},J6=ge("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),Z6=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiList"}),{children:o,className:s,component:l="ul",dense:c=!1,disablePadding:u=!1,subheader:f,...h}=n,v=S.useMemo(()=>({dense:c}),[c]),g={...n,component:l,dense:c,disablePadding:u},y=Y6(g);return p.jsx(Ou.Provider,{value:v,children:p.jsxs(J6,{as:l,className:Me(y.root,s),ref:r,ownerState:g,...h,children:[f,o]})})});function eO(t){return Ye("MuiListItemIcon",t)}const Mw=Ze("MuiListItemIcon",["root","alignItemsFlexStart"]),tO=t=>{const{alignItems:e,classes:r}=t;return Je({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},eO,r)},rO=ge("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Ge(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),rf=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiListItemIcon"}),{className:o,...s}=n,l=S.useContext(Ou),c={...n,alignItems:l.alignItems},u=tO(c);return p.jsx(rO,{className:Me(u.root,o),ownerState:c,ref:r,...s})});function nO(t){return Ye("MuiListItemText",t)}const Pl=Ze("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),oO=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:s}=t;return Je({root:["root",r&&"inset",s&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},nO,e)},iO=ge("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Pl.primary}`]:e.primary},{[`& .${Pl.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Kx.root}:where(& .${Pl.primary})`]:{display:"block"},[`.${Kx.root}:where(& .${Pl.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),nf=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiListItemText"}),{children:o,className:s,disableTypography:l=!1,inset:c=!1,primary:u,primaryTypographyProps:f,secondary:h,secondaryTypographyProps:v,slots:g={},slotProps:y={},...w}=n,{dense:x}=S.useContext(Ou);let C=u??o,R=h;const P={...n,disableTypography:l,inset:c,primary:!!C,secondary:!!R,dense:x},M=oO(P),E={slots:g,slotProps:{primary:f,secondary:v,...y}},[I,A]=Xe("root",{className:Me(M.root,s),elementType:iO,externalForwardedProps:{...E,...w},ownerState:P,ref:r}),[F,j]=Xe("primary",{className:M.primary,elementType:je,externalForwardedProps:E,ownerState:P}),[H,G]=Xe("secondary",{className:M.secondary,elementType:je,externalForwardedProps:E,ownerState:P});return C!=null&&C.type!==je&&!l&&(C=p.jsx(F,{variant:x?"body2":"body1",component:j!=null&&j.variant?void 0:"span",...j,children:C})),R!=null&&R.type!==je&&!l&&(R=p.jsx(H,{variant:"body2",color:"textSecondary",...G,children:R})),p.jsxs(I,{...A,children:[C,R]})});function Rg(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function Iw(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function Z2(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function Xc(t,e,r,n,o,s){let l=!1,c=o(t,e,e?r:!1);for(;c;){if(c===t.firstChild){if(l)return!1;l=!0}const u=n?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!Z2(c,s)||u)c=o(t,c,r);else return c.focus(),!0}return!1}const aO=S.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:s=!1,children:l,className:c,disabledItemsFocusable:u=!1,disableListWrap:f=!1,onKeyDown:h,variant:v="selectedMenu",...g}=e,y=S.useRef(null),w=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Xn(()=>{o&&y.current.focus()},[o]),S.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(M,{direction:E})=>{const I=!y.current.style.width;if(M.clientHeight<y.current.clientHeight&&I){const A=`${K2(ei(M))}px`;y.current.style[E==="rtl"?"paddingLeft":"paddingRight"]=A,y.current.style.width=`calc(100% + ${A})`}return y.current}}),[]);const x=M=>{const E=y.current,I=M.key;if(M.ctrlKey||M.metaKey||M.altKey){h&&h(M);return}const F=kl(dn(E));if(I==="ArrowDown")M.preventDefault(),Xc(E,F,f,u,Rg);else if(I==="ArrowUp")M.preventDefault(),Xc(E,F,f,u,Iw);else if(I==="Home")M.preventDefault(),Xc(E,null,f,u,Rg);else if(I==="End")M.preventDefault(),Xc(E,null,f,u,Iw);else if(I.length===1){const j=w.current,H=I.toLowerCase(),G=performance.now();j.keys.length>0&&(G-j.lastTime>500?(j.keys=[],j.repeating=!0,j.previousKeyMatched=!0):j.repeating&&H!==j.keys[0]&&(j.repeating=!1)),j.lastTime=G,j.keys.push(H);const N=F&&!j.repeating&&Z2(F,j);j.previousKeyMatched&&(N||Xc(E,F,!1,u,Rg,j))?M.preventDefault():j.previousKeyMatched=!1}h&&h(M)},C=Mr(y,r);let R=-1;S.Children.forEach(l,(M,E)=>{if(!S.isValidElement(M)){R===E&&(R+=1,R>=l.length&&(R=-1));return}M.props.disabled||(v==="selectedMenu"&&M.props.selected||R===-1)&&(R=E),R===E&&(M.props.disabled||M.props.muiSkipListHighlight||M.type.muiSkipListHighlight)&&(R+=1,R>=l.length&&(R=-1))});const P=S.Children.map(l,(M,E)=>{if(E===R){const I={};return s&&(I.autoFocus=!0),M.props.tabIndex===void 0&&v==="selectedMenu"&&(I.tabIndex=0),S.cloneElement(M,I)}return M});return p.jsx(Z6,{role:"menu",ref:C,className:c,onKeyDown:x,tabIndex:o?0:-1,...g,children:P})});function sO(t){return Ye("MuiPopover",t)}Ze("MuiPopover",["root","paper"]);function Aw(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function jw(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function _w(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Rp(t){return typeof t=="function"?t():t}const lO=t=>{const{classes:e}=t;return Je({root:["root"],paper:["paper"]},sO,e)},cO=ge(Q2,{name:"MuiPopover",slot:"Root"})({}),eT=ge(Ir,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),uO=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:f,className:h,container:v,elevation:g=8,marginThreshold:y=16,open:w,PaperProps:x={},slots:C={},slotProps:R={},transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:M,transitionDuration:E="auto",TransitionProps:I={},disableScrollLock:A=!1,...F}=n,j=S.useRef(),H={...n,anchorOrigin:l,anchorReference:u,elevation:g,marginThreshold:y,transformOrigin:P,TransitionComponent:M,transitionDuration:E,TransitionProps:I},G=lO(H),N=S.useCallback(()=>{if(u==="anchorPosition")return c;const se=Rp(s),Ne=(se&&se.nodeType===1?se:dn(j.current).body).getBoundingClientRect();return{top:Ne.top+Aw(Ne,l.vertical),left:Ne.left+jw(Ne,l.horizontal)}},[s,l.horizontal,l.vertical,c,u]),k=S.useCallback(se=>({vertical:Aw(se,P.vertical),horizontal:jw(se,P.horizontal)}),[P.horizontal,P.vertical]),q=S.useCallback(se=>{const De={width:se.offsetWidth,height:se.offsetHeight},Ne=k(De);if(u==="none")return{top:null,left:null,transformOrigin:_w(Ne)};const Oe=N();let Be=Oe.top-Ne.vertical,_e=Oe.left-Ne.horizontal;const Ke=Be+De.height,dt=_e+De.width,ke=ei(Rp(s)),ft=ke.innerHeight-y,We=ke.innerWidth-y;if(y!==null&&Be<y){const pt=Be-y;Be-=pt,Ne.vertical+=pt}else if(y!==null&&Ke>ft){const pt=Ke-ft;Be-=pt,Ne.vertical+=pt}if(y!==null&&_e<y){const pt=_e-y;_e-=pt,Ne.horizontal+=pt}else if(dt>We){const pt=dt-We;_e-=pt,Ne.horizontal+=pt}return{top:`${Math.round(Be)}px`,left:`${Math.round(_e)}px`,transformOrigin:_w(Ne)}},[s,u,N,k,y]),[U,L]=S.useState(w),W=S.useCallback(()=>{const se=j.current;if(!se)return;const De=q(se);De.top!==null&&se.style.setProperty("top",De.top),De.left!==null&&(se.style.left=De.left),se.style.transformOrigin=De.transformOrigin,L(!0)},[q]);S.useEffect(()=>(A&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[s,A,W]);const K=()=>{W()},ee=()=>{L(!1)};S.useEffect(()=>{w&&W()}),S.useImperativeHandle(o,()=>w?{updatePosition:()=>{W()}}:null,[w,W]),S.useEffect(()=>{if(!w)return;const se=th(()=>{W()}),De=ei(Rp(s));return De.addEventListener("resize",se),()=>{se.clear(),De.removeEventListener("resize",se)}},[s,w,W]);let Z=E;const Q={slots:{transition:M,...C},slotProps:{transition:I,paper:x,...R}},[X,re]=Xe("transition",{elementType:Lu,externalForwardedProps:Q,ownerState:H,getSlotProps:se=>({...se,onEntering:(De,Ne)=>{var Oe;(Oe=se.onEntering)==null||Oe.call(se,De,Ne),K()},onExited:De=>{var Ne;(Ne=se.onExited)==null||Ne.call(se,De),ee()}}),additionalProps:{appear:!0,in:w}});E==="auto"&&!X.muiSupportAuto&&(Z=void 0);const ce=v||(s?dn(Rp(s)).body:void 0),[Y,{slots:ne,slotProps:J,...de}]=Xe("root",{ref:r,elementType:cO,externalForwardedProps:{...Q,...F},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:C.backdrop},slotProps:{backdrop:C2(typeof R.backdrop=="function"?R.backdrop(H):R.backdrop,{invisible:!0})},container:ce,open:w},ownerState:H,className:Me(G.root,h)}),[Ce,he]=Xe("paper",{ref:j,className:G.paper,elementType:eT,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:{elevation:g,style:U?void 0:{opacity:0}},ownerState:H});return p.jsx(Y,{...de,...!gf(Y)&&{slots:ne,slotProps:J,disableScrollLock:A},children:p.jsx(X,{...re,timeout:Z,children:p.jsx(Ce,{...he,children:f})})})});function dO(t){return Ye("MuiMenu",t)}Ze("MuiMenu",["root","paper","list"]);const pO={vertical:"top",horizontal:"right"},fO={vertical:"top",horizontal:"left"},hO=t=>{const{classes:e}=t;return Je({root:["root"],paper:["paper"],list:["list"]},dO,e)},mO=ge(uO,{shouldForwardProp:t=>Zn(t)||t==="classes",name:"MuiMenu",slot:"Root"})({}),gO=ge(eT,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),yO=ge(aO,{name:"MuiMenu",slot:"List"})({outline:0}),ph=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:h,PaperProps:v={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:w,...x}={},variant:C="selectedMenu",slots:R={},slotProps:P={},...M}=n,E=Ka(),I={...n,autoFocus:o,disableAutoFocusItem:c,MenuListProps:u,onEntering:w,PaperProps:v,transitionDuration:y,TransitionProps:x,variant:C},A=hO(I),F=o&&!c&&h,j=S.useRef(null),H=(Z,Q)=>{j.current&&j.current.adjustStyleForScrollbar(Z,{direction:E?"rtl":"ltr"}),w&&w(Z,Q)},G=Z=>{Z.key==="Tab"&&(Z.preventDefault(),f&&f(Z,"tabKeyDown"))};let N=-1;S.Children.map(s,(Z,Q)=>{S.isValidElement(Z)&&(Z.props.disabled||(C==="selectedMenu"&&Z.props.selected||N===-1)&&(N=Q))});const k={slots:R,slotProps:{list:u,transition:x,paper:v,...P}},q=Ul({elementType:R.root,externalSlotProps:P.root,ownerState:I,className:[A.root,l]}),[U,L]=Xe("paper",{className:A.paper,elementType:gO,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:I}),[W,K]=Xe("list",{className:Me(A.list,u.className),elementType:yO,shouldForwardComponentProp:!0,externalForwardedProps:k,getSlotProps:Z=>({...Z,onKeyDown:Q=>{var X;G(Q),(X=Z.onKeyDown)==null||X.call(Z,Q)}}),ownerState:I}),ee=typeof k.slotProps.transition=="function"?k.slotProps.transition(I):k.slotProps.transition;return p.jsx(mO,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?pO:fO,slots:{root:R.root,paper:U,backdrop:R.backdrop,...R.transition&&{transition:R.transition}},slotProps:{root:q,paper:L,backdrop:typeof P.backdrop=="function"?P.backdrop(I):P.backdrop,transition:{...ee,onEntering:(...Z)=>{var Q;H(...Z),(Q=ee==null?void 0:ee.onEntering)==null||Q.call(ee,...Z)}}},open:h,ref:r,transitionDuration:y,ownerState:I,...M,classes:g,children:p.jsx(W,{actions:j,autoFocus:o&&(N===-1||c),autoFocusItem:F,variant:C,...K,children:s})})});function vO(t){return Ye("MuiMenuItem",t)}const Kc=Ze("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),bO=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},xO=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:s,classes:l}=t,u=Je({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",s&&"selected"]},vO,l);return{...l,...u}},wO=ge(ti,{shouldForwardProp:t=>Zn(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:bO})(Ge(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Kc.selected}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),[`&.${Kc.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}},[`&.${Kc.selected}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity)}},[`&.${Kc.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Kc.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${Cw.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${Cw.inset}`]:{marginLeft:52},[`& .${Pl.root}`]:{marginTop:0,marginBottom:0},[`& .${Pl.inset}`]:{paddingLeft:36},[`& .${Mw.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${Mw.root} svg`]:{fontSize:"1.25rem"}}}]}))),cn=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:l=!1,divider:c=!1,disableGutters:u=!1,focusVisibleClassName:f,role:h="menuitem",tabIndex:v,className:g,...y}=n,w=S.useContext(Ou),x=S.useMemo(()=>({dense:l||w.dense||!1,disableGutters:u}),[w.dense,l,u]),C=S.useRef(null);Xn(()=>{o&&C.current&&C.current.focus()},[o]);const R={...n,dense:x.dense,divider:c,disableGutters:u},P=xO(n),M=Mr(C,r);let E;return n.disabled||(E=v!==void 0?v:-1),p.jsx(Ou.Provider,{value:x,children:p.jsx(wO,{ref:M,role:h,tabIndex:E,component:s,focusVisibleClassName:Me(P.focusVisible,f),className:Me(P.root,g),...y,ownerState:R,classes:P})})});function SO(t){return Ye("MuiNativeSelect",t)}const A0=Ze("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),CO=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:s,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${me(r)}`,s&&"iconOpen",n&&"disabled"]};return Je(c,SO,e)},tT=ge("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${A0.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),TO=ge(tT,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Zn,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${A0.multiple}`]:e.multiple}]}})({}),rT=ge("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${A0.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),EO=ge(rT,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),kO=S.forwardRef(function(e,r){const{className:n,disabled:o,error:s,IconComponent:l,inputRef:c,variant:u="standard",...f}=e,h={...e,disabled:o,variant:u,error:s},v=CO(h);return p.jsxs(S.Fragment,{children:[p.jsx(TO,{ownerState:h,className:Me(v.select,n),disabled:o,ref:c||r,...f}),e.multiple?null:p.jsx(EO,{as:l,ownerState:h,className:v.icon})]})});var Lw;const PO=ge("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Zn})({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%"}),RO=ge("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Zn})(Ge(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{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"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function MO(t){const{children:e,classes:r,className:n,label:o,notched:s,...l}=t,c=o!=null&&o!=="",u={...t,notched:s,withLabel:c};return p.jsx(PO,{"aria-hidden":!0,className:n,ownerState:u,...l,children:p.jsx(RO,{ownerState:u,children:c?p.jsx("span",{children:o}):Lw||(Lw=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const IO=t=>{const{classes:e}=t,n=Je({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},l_,e);return{...e,...n}},AO=ge(lh,{shouldForwardProp:t=>Zn(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ah})(Ge(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Mo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Mo.notchedOutline}`]:{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackground,.23):e}},[`&.${Mo.focused} .${Mo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(Zt()).map(([r])=>({props:{color:r},style:{[`&.${Mo.focused} .${Mo.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${Mo.error} .${Mo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Mo.disabled} .${Mo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),jO=ge(MO,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ge(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackground,.23):e}})),_O=ge(ch,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:sh})(Ge(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),j0=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:l="input",label:c,multiline:u=!1,notched:f,slots:h={},slotProps:v={},type:g="text",...y}=n,w=IO(n),x=ia(),C=$s({props:n,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),R={...n,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:x,fullWidth:s,hiddenLabel:C.hiddenLabel,multiline:u,size:C.size,type:g},P=h.root??o.Root??AO,M=h.input??o.Input??_O,[E,I]=Xe("notchedOutline",{elementType:jO,className:w.notchedOutline,shouldForwardComponentProp:!0,ownerState:R,externalForwardedProps:{slots:h,slotProps:v},additionalProps:{label:c!=null&&c!==""&&C.required?p.jsxs(S.Fragment,{children:[c," ","*"]}):c}});return p.jsx(uh,{slots:{root:P,input:M},slotProps:v,renderSuffix:A=>p.jsx(E,{...I,notched:typeof f<"u"?f:!!(A.startAdornment||A.filled||A.focused)}),fullWidth:s,inputComponent:l,multiline:u,ref:r,type:g,...y,classes:{...w,notchedOutline:null}})});j0.muiName="Input";function LO(t){return Ye("MuiPagination",t)}Ze("MuiPagination",["root","ul","outlined","text"]);function OO(t={}){const{boundaryCount:e=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:s=!1,hideNextButton:l=!1,hidePrevButton:c=!1,onChange:u,page:f,showFirstButton:h=!1,showLastButton:v=!1,siblingCount:g=1,...y}=t,[w,x]=Na({controlled:f,default:o,name:r,state:"page"}),C=(H,G)=>{f||x(G),u&&u(H,G)},R=(H,G)=>{const N=G-H+1;return Array.from({length:N},(k,q)=>H+q)},P=R(1,Math.min(e,n)),M=R(Math.max(n-e+1,e+1),n),E=Math.max(Math.min(w-g,n-e-g*2-1),e+2),I=Math.min(Math.max(w+g,e+g*2+2),n-e-1),A=[...h?["first"]:[],...c?[]:["previous"],...P,...E>e+2?["start-ellipsis"]:e+1<n-e?[e+1]:[],...R(E,I),...I<n-e-1?["end-ellipsis"]:n-e>e?[n-e]:[],...M,...l?[]:["next"],...v?["last"]:[]],F=H=>{switch(H){case"first":return 1;case"previous":return w-1;case"next":return w+1;case"last":return n;default:return null}};return{items:A.map(H=>typeof H=="number"?{onClick:G=>{C(G,H)},type:"page",page:H,selected:H===w,disabled:s,"aria-current":H===w?"page":void 0}:{onClick:G=>{C(G,F(H))},type:H,page:F(H),selected:!1,disabled:s||!H.includes("ellipsis")&&(H==="next"||H==="last"?w>=n:w<=1)}),...y}}function NO(t){return Ye("MuiPaginationItem",t)}const Rn=Ze("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),nT=Ie(p.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),oT=Ie(p.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),$O=Ie(p.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),BO=Ie(p.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),iT=(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${me(r.size)}`],r.variant==="text"&&e[`text${me(r.color)}`],r.variant==="outlined"&&e[`outlined${me(r.color)}`],r.shape==="rounded"&&e.rounded,r.type==="page"&&e.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&e.ellipsis,(r.type==="previous"||r.type==="next")&&e.previousNext,(r.type==="first"||r.type==="last")&&e.firstLast]},zO=t=>{const{classes:e,color:r,disabled:n,selected:o,size:s,shape:l,type:c,variant:u}=t,f={root:["root",`size${me(s)}`,u,l,r!=="standard"&&`color${me(r)}`,r!=="standard"&&`${u}${me(r)}`,n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[c]],icon:["icon"]};return Je(f,NO,e)},DO=ge("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:iT})(Ge(({theme:t})=>({...t.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",[`&.${Rn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)}}]}))),FO=ge(ti,{name:"MuiPaginationItem",slot:"Root",overridesResolver:iT})(Ge(({theme:t})=>({...t.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,[`&.${Rn.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Rn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Rn.selected}`]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${Rn.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},[`&.${Rn.disabled}`]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"outlined"},style:{border:t.vars?`1px solid ${t.alpha(t.vars.palette.common.onBackground,.23)}`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Rn.selected}`]:{[`&.${Rn.disabled}`]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Rn.selected}`]:{[`&.${Rn.disabled}`]:{color:(t.vars||t).palette.action.disabled}}}},...Object.entries(t.palette).filter(Zt(["dark","contrastText"])).map(([e])=>({props:{variant:"text",color:e},style:{[`&.${Rn.selected}`]:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}},[`&.${Rn.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e].dark},[`&.${Rn.disabled}`]:{color:(t.vars||t).palette.action.disabled}}}})),...Object.entries(t.palette).filter(Zt(["light"])).map(([e])=>({props:{variant:"outlined",color:e},style:{[`&.${Rn.selected}`]:{color:(t.vars||t).palette[e].main,border:`1px solid ${t.alpha((t.vars||t).palette[e].main,.5)}`,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.activatedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.activatedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Rn.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.activatedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}}}))]}))),HO=ge("div",{name:"MuiPaginationItem",slot:"Icon"})(Ge(({theme:t})=>({fontSize:t.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:t.typography.pxToRem(22)}}]}))),UO=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiPaginationItem"}),{className:o,color:s="standard",component:l,components:c={},disabled:u=!1,page:f,selected:h=!1,shape:v="circular",size:g="medium",slots:y={},slotProps:w={},type:x="page",variant:C="text",...R}=n,P={...n,color:s,disabled:u,selected:h,shape:v,size:g,type:x,variant:C},M=Ka(),E=zO(P),I={slots:{previous:y.previous??c.previous,next:y.next??c.next,first:y.first??c.first,last:y.last??c.last},slotProps:w},[A,F]=Xe("previous",{elementType:$O,externalForwardedProps:I,ownerState:P}),[j,H]=Xe("next",{elementType:BO,externalForwardedProps:I,ownerState:P}),[G,N]=Xe("first",{elementType:nT,externalForwardedProps:I,ownerState:P}),[k,q]=Xe("last",{elementType:oT,externalForwardedProps:I,ownerState:P}),U=M?{previous:"next",next:"previous",first:"last",last:"first"}[x]:x,L={previous:A,next:j,first:G,last:k}[U],W={previous:F,next:H,first:N,last:q}[U];return x==="start-ellipsis"||x==="end-ellipsis"?p.jsx(DO,{ref:r,ownerState:P,className:Me(E.root,o),children:"…"}):p.jsxs(FO,{ref:r,ownerState:P,component:l,disabled:u,className:Me(E.root,o),...R,children:[x==="page"&&f,L?p.jsx(HO,{...W,className:E.icon,as:L}):null]})}),VO=t=>{const{classes:e,variant:r}=t;return Je({root:["root",r],ul:["ul"]},LO,e)},WO=ge("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant]]}})({}),qO=ge("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function GO(t,e,r){return t==="page"?`${r?"":"Go to "}page ${e}`:`Go to ${t} page`}const XO=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiPagination"}),{boundaryCount:o=1,className:s,color:l="standard",count:c=1,defaultPage:u=1,disabled:f=!1,getItemAriaLabel:h=GO,hideNextButton:v=!1,hidePrevButton:g=!1,onChange:y,page:w,renderItem:x=G=>p.jsx(UO,{...G}),shape:C="circular",showFirstButton:R=!1,showLastButton:P=!1,siblingCount:M=1,size:E="medium",variant:I="text",...A}=n,{items:F}=OO({...n,componentName:"Pagination"}),j={...n,boundaryCount:o,color:l,count:c,defaultPage:u,disabled:f,getItemAriaLabel:h,hideNextButton:v,hidePrevButton:g,renderItem:x,shape:C,showFirstButton:R,showLastButton:P,siblingCount:M,size:E,variant:I},H=VO(j);return p.jsx(WO,{"aria-label":"pagination navigation",className:Me(H.root,s),ownerState:j,ref:r,...A,children:p.jsx(qO,{className:H.ul,ownerState:j,children:F.map((G,N)=>p.jsx("li",{children:x({...G,color:l,"aria-label":h(G.type,G.page,G.selected),shape:C,size:E,variant:I})},N))})})});function aT(t){return Ye("MuiSelect",t)}const Qc=Ze("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ow;const KO=ge(tT,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${Qc.select}`]:e.select},{[`&.${Qc.select}`]:e[r.variant]},{[`&.${Qc.error}`]:e.error},{[`&.${Qc.multiple}`]:e.multiple}]}})({[`&.${Qc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),QO=ge(rT,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${me(r.variant)}`],r.open&&e.iconOpen]}})({}),YO=ge("input",{shouldForwardProp:t=>S2(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Nw(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function JO(t){return t==null||typeof t=="string"&&!t.trim()}const ZO=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:s,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${me(r)}`,s&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Je(c,aT,e)},eN=S.forwardRef(function(e,r){var ur,Dr,nn,fn;const{"aria-describedby":n,"aria-label":o,autoFocus:s,autoWidth:l,children:c,className:u,defaultOpen:f,defaultValue:h,disabled:v,displayEmpty:g,error:y=!1,IconComponent:w,inputRef:x,labelId:C,MenuProps:R={},multiple:P,name:M,onBlur:E,onChange:I,onClose:A,onFocus:F,onKeyDown:j,onMouseDown:H,onOpen:G,open:N,readOnly:k,renderValue:q,required:U,SelectDisplayProps:L={},tabIndex:W,type:K,value:ee,variant:Z="standard",...Q}=e,[X,re]=Na({controlled:ee,default:h,name:"Select"}),[ce,Y]=Na({controlled:N,default:f,name:"Select"}),ne=S.useRef(null),J=S.useRef(null),[de,Ce]=S.useState(null),{current:he}=S.useRef(N!=null),[se,De]=S.useState(),Ne=Mr(r,x),Oe=S.useCallback(et=>{J.current=et,et&&Ce(et)},[]),Be=de==null?void 0:de.parentNode;S.useImperativeHandle(Ne,()=>({focus:()=>{J.current.focus()},node:ne.current,value:X}),[X]),S.useEffect(()=>{f&&ce&&de&&!he&&(De(l?null:Be.clientWidth),J.current.focus())},[de,l]),S.useEffect(()=>{s&&J.current.focus()},[s]),S.useEffect(()=>{if(!C)return;const et=dn(J.current).getElementById(C);if(et){const St=()=>{getSelection().isCollapsed&&J.current.focus()};return et.addEventListener("click",St),()=>{et.removeEventListener("click",St)}}},[C]);const _e=(et,St)=>{et?G&&G(St):A&&A(St),he||(De(l?null:Be.clientWidth),Y(et))},Ke=et=>{H==null||H(et),et.button===0&&(et.preventDefault(),J.current.focus(),_e(!0,et))},dt=et=>{_e(!1,et)},ke=S.Children.toArray(c),ft=et=>{const St=ke.find(Ut=>Ut.props.value===et.target.value);St!==void 0&&(re(St.props.value),I&&I(et,St))},We=et=>St=>{let Ut;if(St.currentTarget.hasAttribute("tabindex")){if(P){Ut=Array.isArray(X)?X.slice():[];const vr=X.indexOf(et.props.value);vr===-1?Ut.push(et.props.value):Ut.splice(vr,1)}else Ut=et.props.value;if(et.props.onClick&&et.props.onClick(St),X!==Ut&&(re(Ut),I)){const vr=St.nativeEvent||St,Fr=new vr.constructor(vr.type,vr);Object.defineProperty(Fr,"target",{writable:!0,value:{value:Ut,name:M}}),I(Fr,et)}P||_e(!1,St)}},pt=et=>{k||([" ","ArrowUp","ArrowDown","Enter"].includes(et.key)&&(et.preventDefault(),_e(!0,et)),j==null||j(et))},Ue=de!==null&&ce,Wt=et=>{!Ue&&E&&(Object.defineProperty(et,"target",{writable:!0,value:{value:X,name:M}}),E(et))};delete Q["aria-invalid"];let Tt,ue;const ve=[];let Te=!1;(xf({value:X})||g)&&(q?Tt=q(X):Te=!0);const Pe=ke.map(et=>{if(!S.isValidElement(et))return null;let St;if(P){if(!Array.isArray(X))throw new Error(Ji(2));St=X.some(Ut=>Nw(Ut,et.props.value)),St&&Te&&ve.push(et.props.children)}else St=Nw(X,et.props.value),St&&Te&&(ue=et.props.children);return S.cloneElement(et,{"aria-selected":St?"true":"false",onClick:We(et),onKeyUp:Ut=>{Ut.key===" "&&Ut.preventDefault(),et.props.onKeyUp&&et.props.onKeyUp(Ut)},role:"option",selected:St,value:void 0,"data-value":et.props.value})});Te&&(P?ve.length===0?Tt=null:Tt=ve.reduce((et,St,Ut)=>(et.push(St),Ut<ve.length-1&&et.push(", "),et),[]):Tt=ue);let Ve=se;!l&&he&&de&&(Ve=Be.clientWidth);let Qe;typeof W<"u"?Qe=W:Qe=v?null:0;const oe=L.id||(M?`mui-component-select-${M}`:void 0),Ee={...e,variant:Z,value:X,open:Ue,error:y},$e=ZO(Ee),Fe={...R.PaperProps,...typeof((ur=R.slotProps)==null?void 0:ur.paper)=="function"?R.slotProps.paper(Ee):(Dr=R.slotProps)==null?void 0:Dr.paper},xt={...R.MenuListProps,...typeof((nn=R.slotProps)==null?void 0:nn.list)=="function"?R.slotProps.list(Ee):(fn=R.slotProps)==null?void 0:fn.list},qt=Pi();return p.jsxs(S.Fragment,{children:[p.jsx(KO,{as:"div",ref:Oe,tabIndex:Qe,role:"combobox","aria-controls":Ue?qt:void 0,"aria-disabled":v?"true":void 0,"aria-expanded":Ue?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[C,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":U?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:pt,onMouseDown:v||k?null:Ke,onBlur:Wt,onFocus:F,...L,ownerState:Ee,className:Me(L.className,$e.select,u),id:oe,children:JO(Tt)?Ow||(Ow=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Tt}),p.jsx(YO,{"aria-invalid":y,value:Array.isArray(X)?X.join(","):X,name:M,ref:ne,"aria-hidden":!0,onChange:ft,tabIndex:-1,disabled:v,className:$e.nativeInput,autoFocus:s,required:U,...Q,ownerState:Ee}),p.jsx(QO,{as:w,className:$e.icon,ownerState:Ee}),p.jsx(ph,{id:`menu-${M||""}`,anchorEl:Be,open:Ue,onClose:dt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...R,slotProps:{...R.slotProps,list:{"aria-labelledby":C,role:"listbox","aria-multiselectable":P?"true":void 0,disableListWrap:!0,id:qt,...xt},paper:{...Fe,style:{minWidth:Ve,...Fe!=null?Fe.style:null}}},children:Pe})]})}),tN=t=>{const{classes:e}=t,n=Je({root:["root"]},aT,e);return{...e,...n}},_0={name:"MuiSelect",slot:"Root",shouldForwardProp:t=>Zn(t)&&t!=="variant"},rN=ge(dh,_0)(""),nN=ge(j0,_0)(""),oN=ge(R0,_0)(""),Ms=S.forwardRef(function(e,r){const n=nt({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:s,classes:l={},className:c,defaultOpen:u=!1,displayEmpty:f=!1,IconComponent:h=H2,id:v,input:g,inputProps:y,label:w,labelId:x,MenuProps:C,multiple:R=!1,native:P=!1,onClose:M,onOpen:E,open:I,renderValue:A,SelectDisplayProps:F,variant:j="outlined",...H}=n,G=P?kO:eN,N=ia(),k=$s({props:n,muiFormControl:N,states:["variant","error"]}),q=k.variant||j,U={...n,variant:q,classes:l},L=tN(U),{root:W,...K}=L,ee=g||{standard:p.jsx(rN,{ownerState:U}),outlined:p.jsx(nN,{label:w,ownerState:U}),filled:p.jsx(oN,{ownerState:U})}[q],Z=Mr(r,Ns(ee));return p.jsx(S.Fragment,{children:S.cloneElement(ee,{inputComponent:G,inputProps:{children:s,error:k.error,IconComponent:h,variant:q,type:void 0,multiple:R,...P?{id:v}:{autoWidth:o,defaultOpen:u,displayEmpty:f,labelId:x,MenuProps:C,onClose:M,onOpen:E,open:I,renderValue:A,SelectDisplayProps:{id:v,...F}},...y,classes:y?Zr(K,y.classes):K,...g?g.props.inputProps:{}},...(R&&P||f)&&q==="outlined"?{notched:!0}:{},ref:Z,className:Me(ee.props.className,c,L.root),...!g&&{variant:q},...H})})});Ms.muiName="Select";function iN(t){return Ye("MuiSkeleton",t)}Ze("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const aN=t=>{const{classes:e,variant:r,animation:n,hasChildren:o,width:s,height:l}=t;return Je({root:["root",r,n,o&&"withChildren",o&&!s&&"fitContent",o&&!l&&"heightAuto"]},iN,e)},xy=Li`
271
+ 0% {
272
+ opacity: 1;
273
+ }
274
+
275
+ 50% {
276
+ opacity: 0.4;
277
+ }
278
+
279
+ 100% {
280
+ opacity: 1;
281
+ }
282
+ `,wy=Li`
283
+ 0% {
284
+ transform: translateX(-100%);
285
+ }
286
+
287
+ 50% {
288
+ /* +0.5s of delay between each loop */
289
+ transform: translateX(100%);
290
+ }
291
+
292
+ 100% {
293
+ transform: translateX(100%);
294
+ }
295
+ `,sN=typeof xy!="string"?Xa`
296
+ animation: ${xy} 2s ease-in-out 0.5s infinite;
297
+ `:null,lN=typeof wy!="string"?Xa`
298
+ &::after {
299
+ animation: ${wy} 2s linear 0.5s infinite;
300
+ }
301
+ `:null,cN=ge("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],r.animation!==!1&&e[r.animation],r.hasChildren&&e.withChildren,r.hasChildren&&!r.width&&e.fitContent,r.hasChildren&&!r.height&&e.heightAuto]}})(Ge(({theme:t})=>{const e=sI(t.shape.borderRadius)||"px",r=lI(t.shape.borderRadius);return{display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:t.alpha(t.palette.text.primary,t.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${e}/${Math.round(r/.6*10)/10}${e}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:({ownerState:n})=>n.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:n})=>n.hasChildren&&!n.width,style:{maxWidth:"fit-content"}},{props:({ownerState:n})=>n.hasChildren&&!n.height,style:{height:"auto"}},{props:{animation:"pulse"},style:sN||{animation:`${xy} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
302
+ 90deg,
303
+ transparent,
304
+ ${(t.vars||t).palette.action.hover},
305
+ transparent
306
+ )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:lN||{"&::after":{animation:`${wy} 2s linear 0.5s infinite`}}}]}})),uN=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:l="span",height:c,style:u,variant:f="text",width:h,...v}=n,g={...n,animation:o,component:l,variant:f,hasChildren:!!v.children},y=aN(g);return p.jsx(cN,{as:l,ref:r,className:Me(y.root,s),ownerState:g,...v,style:{width:h,height:c,...u}})});function dN(t={}){const{autoHideDuration:e=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:s}=t,l=_a();S.useEffect(()=>{if(!o)return;function R(P){P.defaultPrevented||P.key==="Escape"&&(n==null||n(P,"escapeKeyDown"))}return document.addEventListener("keydown",R),()=>{document.removeEventListener("keydown",R)}},[o,n]);const c=Wr((R,P)=>{n==null||n(R,P)}),u=Wr(R=>{!n||R==null||l.start(R,()=>{c(null,"timeout")})});S.useEffect(()=>(o&&u(e),l.clear),[o,e,u,l]);const f=R=>{n==null||n(R,"clickaway")},h=l.clear,v=S.useCallback(()=>{e!=null&&u(s??e*.5)},[e,s,u]),g=R=>P=>{const M=R.onBlur;M==null||M(P),v()},y=R=>P=>{const M=R.onFocus;M==null||M(P),h()},w=R=>P=>{const M=R.onMouseEnter;M==null||M(P),h()},x=R=>P=>{const M=R.onMouseLeave;M==null||M(P),v()};return S.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",v),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",h)}},[r,o,v,h]),{getRootProps:(R={})=>{const P={...yf(t),...yf(R)};return{role:"presentation",...R,...P,onBlur:g(P),onFocus:y(P),onMouseEnter:w(P),onMouseLeave:x(P)}},onClickAway:f}}function pN(t){return Ye("MuiSnackbarContent",t)}Ze("MuiSnackbarContent",["root","message","action"]);const fN=t=>{const{classes:e}=t;return Je({root:["root"],action:["action"],message:["message"]},pN,e)},hN=ge(Ir,{name:"MuiSnackbarContent",slot:"Root"})(Ge(({theme:t})=>{const e=t.palette.mode==="light"?.8:.98;return{...t.typography.body2,color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(Jg(t.palette.background.default,e)),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:Jg(t.palette.background.default,e),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),mN=ge("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),gN=ge("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),yN=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiSnackbarContent"}),{action:o,className:s,message:l,role:c="alert",...u}=n,f=n,h=fN(f);return p.jsxs(hN,{role:c,elevation:6,className:Me(h.root,s),ownerState:f,ref:r,...u,children:[p.jsx(mN,{className:h.message,ownerState:f,children:l}),o?p.jsx(gN,{className:h.action,ownerState:f,children:o}):null]})});function vN(t){return Ye("MuiSnackbar",t)}Ze("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const bN=t=>{const{classes:e,anchorOrigin:r}=t,n={root:["root",`anchorOrigin${me(r.vertical)}${me(r.horizontal)}`]};return Je(n,vN,e)},xN=ge("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`anchorOrigin${me(r.anchorOrigin.vertical)}${me(r.anchorOrigin.horizontal)}`]]}})(Ge(({theme:t})=>({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical==="top",style:{top:8,[t.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!=="top",style:{bottom:8,[t.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[t.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[t.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="center",style:{[t.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),sT=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiSnackbar"}),o=Jn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:l,anchorOrigin:{vertical:c,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:h,className:v,ClickAwayListenerProps:g,ContentProps:y,disableWindowBlurListener:w=!1,message:x,onBlur:C,onClose:R,onFocus:P,onMouseEnter:M,onMouseLeave:E,open:I,resumeHideDuration:A,slots:F={},slotProps:j={},TransitionComponent:H,transitionDuration:G=s,TransitionProps:{onEnter:N,onExited:k,...q}={},...U}=n,L={...n,anchorOrigin:{vertical:c,horizontal:u},autoHideDuration:f,disableWindowBlurListener:w,TransitionComponent:H,transitionDuration:G},W=bN(L),{getRootProps:K,onClickAway:ee}=dN(L),[Z,Q]=S.useState(!0),X=Oe=>{Q(!0),k&&k(Oe)},re=(Oe,Be)=>{Q(!1),N&&N(Oe,Be)},ce={slots:{transition:H,...F},slotProps:{content:y,clickAwayListener:g,transition:q,...j}},[Y,ne]=Xe("root",{ref:r,className:[W.root,v],elementType:xN,getSlotProps:K,externalForwardedProps:{...ce,...U},ownerState:L}),[J,{ownerState:de,...Ce}]=Xe("clickAwayListener",{elementType:xL,externalForwardedProps:ce,getSlotProps:Oe=>({onClickAway:(...Be)=>{var Ke;const _e=Be[0];(Ke=Oe.onClickAway)==null||Ke.call(Oe,...Be),!(_e!=null&&_e.defaultMuiPrevented)&&ee(...Be)}}),ownerState:L}),[he,se]=Xe("content",{elementType:yN,shouldForwardComponentProp:!0,externalForwardedProps:ce,additionalProps:{message:x,action:l},ownerState:L}),[De,Ne]=Xe("transition",{elementType:Lu,externalForwardedProps:ce,getSlotProps:Oe=>({onEnter:(...Be)=>{var _e;(_e=Oe.onEnter)==null||_e.call(Oe,...Be),re(...Be)},onExited:(...Be)=>{var _e;(_e=Oe.onExited)==null||_e.call(Oe,...Be),X(...Be)}}),additionalProps:{appear:!0,in:I,timeout:G,direction:c==="top"?"down":"up"},ownerState:L});return!I&&Z?null:p.jsx(J,{...Ce,...F.clickAwayListener&&{ownerState:de},children:p.jsx(Y,{...ne,children:p.jsx(De,{...Ne,children:h||p.jsx(he,{...se})})})})});function wN(t){return Ye("MuiTooltip",t)}const Er=Ze("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function SN(t){return Math.round(t*1e5)/1e5}const CN=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:s}=t,l={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${me(s.split("-")[0])}`],arrow:["arrow"]};return Je(l,wN,e)},TN=ge(oh,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Ge(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Er.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Er.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Er.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Er.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Er.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Er.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Er.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Er.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),EN=ge("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${me(r.placement.split("-")[0])}`]]}})(Ge(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${Er.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Er.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Er.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Er.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${SN(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Er.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Er.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Er.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Er.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Er.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Er.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Er.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Er.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Er.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Er.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),kN=ge("span",{name:"MuiTooltip",slot:"Arrow"})(Ge(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Mp=!1;const $w=new rh;let Yc={x:0,y:0};function Ip(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const Jr=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:l,components:c={},componentsProps:u={},describeChild:f=!1,disableFocusListener:h=!1,disableHoverListener:v=!1,disableInteractive:g=!1,disableTouchListener:y=!1,enterDelay:w=100,enterNextDelay:x=0,enterTouchDelay:C=700,followCursor:R=!1,id:P,leaveDelay:M=0,leaveTouchDelay:E=1500,onClose:I,onOpen:A,open:F,placement:j="bottom",PopperComponent:H,PopperProps:G={},slotProps:N={},slots:k={},title:q,TransitionComponent:U,TransitionProps:L,...W}=n,K=S.isValidElement(s)?s:p.jsx("span",{children:s}),ee=Jn(),Z=Ka(),[Q,X]=S.useState(),[re,ce]=S.useState(null),Y=S.useRef(!1),ne=g||R,J=_a(),de=_a(),Ce=_a(),he=_a(),[se,De]=Na({controlled:F,default:!1,name:"Tooltip",state:"open"});let Ne=se;const Oe=Pi(P),Be=S.useRef(),_e=Wr(()=>{Be.current!==void 0&&(document.body.style.WebkitUserSelect=Be.current,Be.current=void 0),he.clear()});S.useEffect(()=>_e,[_e]);const Ke=Ct=>{$w.clear(),Mp=!0,De(!0),A&&!Ne&&A(Ct)},dt=Wr(Ct=>{$w.start(800+M,()=>{Mp=!1}),De(!1),I&&Ne&&I(Ct),J.start(ee.transitions.duration.shortest,()=>{Y.current=!1})}),ke=Ct=>{Y.current&&Ct.type!=="touchstart"||(Q&&Q.removeAttribute("title"),de.clear(),Ce.clear(),w||Mp&&x?de.start(Mp?x:w,()=>{Ke(Ct)}):Ke(Ct))},ft=Ct=>{de.clear(),Ce.start(M,()=>{dt(Ct)})},[,We]=S.useState(!1),pt=Ct=>{Bl(Ct.target)||(We(!1),ft(Ct))},Ue=Ct=>{Q||X(Ct.currentTarget),Bl(Ct.target)&&(We(!0),ke(Ct))},Wt=Ct=>{Y.current=!0;const dr=K.props;dr.onTouchStart&&dr.onTouchStart(Ct)},Tt=Ct=>{Wt(Ct),Ce.clear(),J.clear(),_e(),Be.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",he.start(C,()=>{document.body.style.WebkitUserSelect=Be.current,ke(Ct)})},ue=Ct=>{K.props.onTouchEnd&&K.props.onTouchEnd(Ct),_e(),Ce.start(E,()=>{dt(Ct)})};S.useEffect(()=>{if(!Ne)return;function Ct(dr){dr.key==="Escape"&&dt(dr)}return document.addEventListener("keydown",Ct),()=>{document.removeEventListener("keydown",Ct)}},[dt,Ne]);const ve=Mr(Ns(K),X,r);!q&&q!==0&&(Ne=!1);const Te=S.useRef(),Pe=Ct=>{const dr=K.props;dr.onMouseMove&&dr.onMouseMove(Ct),Yc={x:Ct.clientX,y:Ct.clientY},Te.current&&Te.current.update()},Ve={},Qe=typeof q=="string";f?(Ve.title=!Ne&&Qe&&!v?q:null,Ve["aria-describedby"]=Ne?Oe:null):(Ve["aria-label"]=Qe?q:null,Ve["aria-labelledby"]=Ne&&!Qe?Oe:null);const oe={...Ve,...W,...K.props,className:Me(W.className,K.props.className),onTouchStart:Wt,ref:ve,...R?{onMouseMove:Pe}:{}},Ee={};y||(oe.onTouchStart=Tt,oe.onTouchEnd=ue),v||(oe.onMouseOver=Ip(ke,oe.onMouseOver),oe.onMouseLeave=Ip(ft,oe.onMouseLeave),ne||(Ee.onMouseOver=ke,Ee.onMouseLeave=ft)),h||(oe.onFocus=Ip(Ue,oe.onFocus),oe.onBlur=Ip(pt,oe.onBlur),ne||(Ee.onFocus=Ue,Ee.onBlur=pt));const $e={...n,isRtl:Z,arrow:o,disableInteractive:ne,placement:j,PopperComponentProp:H,touch:Y.current},Fe=typeof N.popper=="function"?N.popper($e):N.popper,xt=S.useMemo(()=>{var dr,qe;let Ct=[{name:"arrow",enabled:!!re,options:{element:re,padding:4}}];return(dr=G.popperOptions)!=null&&dr.modifiers&&(Ct=Ct.concat(G.popperOptions.modifiers)),(qe=Fe==null?void 0:Fe.popperOptions)!=null&&qe.modifiers&&(Ct=Ct.concat(Fe.popperOptions.modifiers)),{...G.popperOptions,...Fe==null?void 0:Fe.popperOptions,modifiers:Ct}},[re,G.popperOptions,Fe==null?void 0:Fe.popperOptions]),qt=CN($e),ur=typeof N.transition=="function"?N.transition($e):N.transition,Dr={slots:{popper:c.Popper,transition:c.Transition??U,tooltip:c.Tooltip,arrow:c.Arrow,...k},slotProps:{arrow:N.arrow??u.arrow,popper:{...G,...Fe??u.popper},tooltip:N.tooltip??u.tooltip,transition:{...L,...ur??u.transition}}},[nn,fn]=Xe("popper",{elementType:TN,externalForwardedProps:Dr,ownerState:$e,className:Me(qt.popper,G==null?void 0:G.className)}),[et,St]=Xe("transition",{elementType:Lu,externalForwardedProps:Dr,ownerState:$e}),[Ut,vr]=Xe("tooltip",{elementType:EN,className:qt.tooltip,externalForwardedProps:Dr,ownerState:$e}),[Fr,En]=Xe("arrow",{elementType:kN,className:qt.arrow,externalForwardedProps:Dr,ownerState:$e,ref:ce});return p.jsxs(S.Fragment,{children:[S.cloneElement(K,oe),p.jsx(nn,{as:H??oh,placement:j,anchorEl:R?{getBoundingClientRect:()=>({top:Yc.y,left:Yc.x,right:Yc.x,bottom:Yc.y,width:0,height:0})}:Q,popperRef:Te,open:Q?Ne:!1,id:Oe,transition:!0,...Ee,...fn,popperOptions:xt,children:({TransitionProps:Ct})=>p.jsx(et,{timeout:ee.transitions.duration.shorter,...Ct,...St,children:p.jsxs(Ut,{...vr,children:[q,o?p.jsx(Fr,{...En}):null]})})})]})}),Bw=IM({createStyledComponent:ge("div",{name:"MuiStack",slot:"Root"}),useThemeProps:t=>nt({props:t,name:"MuiStack"})});function PN(t){return Ye("MuiSwitch",t)}const An=Ze("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),RN=t=>{const{classes:e,edge:r,size:n,color:o,checked:s,disabled:l}=t,c={root:["root",r&&`edge${me(r)}`,`size${me(n)}`],switchBase:["switchBase",`color${me(o)}`,s&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=Je(c,PN,e);return{...e,...u}},MN=ge("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.edge&&e[`edge${me(r.edge)}`],e[`size${me(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${An.thumb}`]:{width:16,height:16},[`& .${An.switchBase}`]:{padding:4,[`&.${An.checked}`]:{transform:"translateX(16px)"}}}}]}),IN=ge(X2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.switchBase,{[`& .${An.input}`]:e.input},r.color!=="default"&&e[`color${me(r.color)}`]]}})(Ge(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${An.checked}`]:{transform:"translateX(20px)"},[`&.${An.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${An.checked} + .${An.track}`]:{opacity:.5},[`&.${An.disabled} + .${An.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${An.input}`]:{left:"-100%",width:"300%"}})),Ge(({theme:t})=>({"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(Zt(["light"])).map(([e])=>({props:{color:e},style:{[`&.${An.checked}`]:{color:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${An.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e}DisabledColor`]:`${t.palette.mode==="light"?t.lighten(t.palette[e].main,.62):t.darken(t.palette[e].main,.55)}`}},[`&.${An.checked} + .${An.track}`]:{backgroundColor:(t.vars||t).palette[e].main}}}))]}))),AN=ge("span",{name:"MuiSwitch",slot:"Track"})(Ge(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`}))),jN=ge("span",{name:"MuiSwitch",slot:"Thumb"})(Ge(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),_N=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiSwitch"}),{className:o,color:s="primary",edge:l=!1,size:c="medium",sx:u,slots:f={},slotProps:h={},...v}=n,g={...n,color:s,edge:l,size:c},y=RN(g),w={slots:f,slotProps:h},[x,C]=Xe("root",{className:Me(y.root,o),elementType:MN,externalForwardedProps:w,ownerState:g,additionalProps:{sx:u}}),[R,P]=Xe("thumb",{className:y.thumb,elementType:jN,externalForwardedProps:w,ownerState:g}),M=p.jsx(R,{...P}),[E,I]=Xe("track",{className:y.track,elementType:AN,externalForwardedProps:w,ownerState:g});return p.jsxs(x,{...C,children:[p.jsx(IN,{type:"checkbox",icon:M,checkedIcon:M,ref:r,ownerState:g,...v,classes:{...y,root:y.switchBase},slots:{...f.switchBase&&{root:f.switchBase},...f.input&&{input:f.input}},slotProps:{...h.switchBase&&{root:typeof h.switchBase=="function"?h.switchBase(g):h.switchBase},input:{role:"switch"},...h.input&&{input:typeof h.input=="function"?h.input(g):h.input}}}),p.jsx(E,{...I})]})});function LN(t){return Ye("MuiTab",t)}const Ro=Ze("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),ON=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:s,label:l,selected:c,disabled:u}=t,f={root:["root",s&&l&&"labelIcon",`textColor${me(r)}`,n&&"fullWidth",o&&"wrapped",c&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return Je(f,LN,e)},NN=ge(ti,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${me(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${Ro.iconWrapper}`]:e.iconWrapper},{[`& .${Ro.icon}`]:e.icon}]}})(Ge(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${Ro.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${Ro.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${Ro.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${Ro.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Ro.selected}`]:{opacity:1},[`&.${Ro.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Ro.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Ro.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Ro.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Ro.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),$N=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:l=!1,fullWidth:c,icon:u,iconPosition:f="top",indicator:h,label:v,onChange:g,onClick:y,onFocus:w,selected:x,selectionFollowsFocus:C,textColor:R="inherit",value:P,wrapped:M=!1,...E}=n,I={...n,disabled:s,disableFocusRipple:l,selected:x,icon:!!u,iconPosition:f,label:!!v,fullWidth:c,textColor:R,wrapped:M},A=ON(I),F=u&&v&&S.isValidElement(u)?S.cloneElement(u,{className:Me(A.icon,u.props.className)}):u,j=G=>{!x&&g&&g(G,P),y&&y(G)},H=G=>{C&&!x&&g&&g(G,P),w&&w(G)};return p.jsxs(NN,{focusRipple:!l,className:Me(A.root,o),ref:r,role:"tab","aria-selected":x,disabled:s,onClick:j,onFocus:H,ownerState:I,tabIndex:x?0:-1,...E,children:[f==="top"||f==="start"?p.jsxs(S.Fragment,{children:[F,v]}):p.jsxs(S.Fragment,{children:[v,F]}),h]})}),lT=S.createContext();function BN(t){return Ye("MuiTable",t)}Ze("MuiTable",["root","stickyHeader"]);const zN=t=>{const{classes:e,stickyHeader:r}=t;return Je({root:["root",r&&"stickyHeader"]},BN,e)},DN=ge("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.stickyHeader&&e.stickyHeader]}})(Ge(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),zw="table",Nu=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTable"}),{className:o,component:s=zw,padding:l="normal",size:c="medium",stickyHeader:u=!1,...f}=n,h={...n,component:s,padding:l,size:c,stickyHeader:u},v=zN(h),g=S.useMemo(()=>({padding:l,size:c,stickyHeader:u}),[l,c,u]);return p.jsx(lT.Provider,{value:g,children:p.jsx(DN,{as:s,role:s===zw?null:"table",ref:r,className:Me(v.root,o),ownerState:h,...f})})}),fh=S.createContext();function FN(t){return Ye("MuiTableBody",t)}Ze("MuiTableBody",["root"]);const HN=t=>{const{classes:e}=t;return Je({root:["root"]},FN,e)},UN=ge("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),VN={variant:"body"},Dw="tbody",$u=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTableBody"}),{className:o,component:s=Dw,...l}=n,c={...n,component:s},u=HN(c);return p.jsx(fh.Provider,{value:VN,children:p.jsx(UN,{className:Me(u.root,o),as:s,ref:r,role:s===Dw?null:"rowgroup",ownerState:c,...l})})});function WN(t){return Ye("MuiTableCell",t)}const qN=Ze("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),GN=t=>{const{classes:e,variant:r,align:n,padding:o,size:s,stickyHeader:l}=t,c={root:["root",r,l&&"stickyHeader",n!=="inherit"&&`align${me(n)}`,o!=="normal"&&`padding${me(o)}`,`size${me(s)}`]};return Je(c,WN,e)},XN=ge("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${me(r.size)}`],r.padding!=="normal"&&e[`padding${me(r.padding)}`],r.align!=="inherit"&&e[`align${me(r.align)}`],r.stickyHeader&&e.stickyHeader]}})(Ge(({theme:t})=>({...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid
307
+ ${t.palette.mode==="light"?t.lighten(t.alpha(t.palette.divider,1),.88):t.darken(t.alpha(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${qN.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}))),ht=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTableCell"}),{align:o="inherit",className:s,component:l,padding:c,scope:u,size:f,sortDirection:h,variant:v,...g}=n,y=S.useContext(lT),w=S.useContext(fh),x=w&&w.variant==="head";let C;l?C=l:C=x?"th":"td";let R=u;C==="td"?R=void 0:!R&&x&&(R="col");const P=v||w&&w.variant,M={...n,align:o,component:C,padding:c||(y&&y.padding?y.padding:"normal"),size:f||(y&&y.size?y.size:"medium"),sortDirection:h,stickyHeader:P==="head"&&y&&y.stickyHeader,variant:P},E=GN(M);let I=null;return h&&(I=h==="asc"?"ascending":"descending"),p.jsx(XN,{as:C,ref:r,className:Me(E.root,s),"aria-sort":I,scope:R,ownerState:M,...g})});function KN(t){return Ye("MuiTableContainer",t)}Ze("MuiTableContainer",["root"]);const QN=t=>{const{classes:e}=t;return Je({root:["root"]},KN,e)},YN=ge("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Bu=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTableContainer"}),{className:o,component:s="div",...l}=n,c={...n,component:s},u=QN(c);return p.jsx(YN,{ref:r,as:s,className:Me(u.root,o),ownerState:c,...l})});function JN(t){return Ye("MuiTableHead",t)}Ze("MuiTableHead",["root"]);const ZN=t=>{const{classes:e}=t;return Je({root:["root"]},JN,e)},e$=ge("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),t$={variant:"head"},Fw="thead",zu=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTableHead"}),{className:o,component:s=Fw,...l}=n,c={...n,component:s},u=ZN(c);return p.jsx(fh.Provider,{value:t$,children:p.jsx(e$,{as:s,className:Me(u.root,o),ref:r,role:s===Fw?null:"rowgroup",ownerState:c,...l})})});function r$(t){return Ye("MuiToolbar",t)}Ze("MuiToolbar",["root","gutters","regular","dense"]);const n$=t=>{const{classes:e,disableGutters:r,variant:n}=t;return Je({root:["root",!r&&"gutters",n]},r$,e)},o$=ge("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Ge(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),i$=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:l=!1,variant:c="regular",...u}=n,f={...n,component:s,disableGutters:l,variant:c},h=n$(f);return p.jsx(o$,{as:s,className:Me(h.root,o),ref:r,ownerState:f,...u})}),cT=Ie(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),uT=Ie(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function a$(t){return Ye("MuiTablePaginationActions",t)}Ze("MuiTablePaginationActions",["root"]);const s$=t=>{const{classes:e}=t;return Je({root:["root"]},a$,e)},l$=ge("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),c$=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTablePaginationActions"}),{backIconButtonProps:o,className:s,count:l,disabled:c=!1,getItemAriaLabel:u,nextIconButtonProps:f,onPageChange:h,page:v,rowsPerPage:g,showFirstButton:y,showLastButton:w,slots:x={},slotProps:C={},...R}=n,P=Ka(),E=s$(n),I=ne=>{h(ne,0)},A=ne=>{h(ne,v-1)},F=ne=>{h(ne,v+1)},j=ne=>{h(ne,Math.max(0,Math.ceil(l/g)-1))},H=x.firstButton??mr,G=x.lastButton??mr,N=x.nextButton??mr,k=x.previousButton??mr,q=x.firstButtonIcon??nT,U=x.lastButtonIcon??oT,L=x.nextButtonIcon??uT,W=x.previousButtonIcon??cT,K=P?G:H,ee=P?N:k,Z=P?k:N,Q=P?H:G,X=P?C.lastButton:C.firstButton,re=P?C.nextButton:C.previousButton,ce=P?C.previousButton:C.nextButton,Y=P?C.firstButton:C.lastButton;return p.jsxs(l$,{ref:r,className:Me(E.root,s),...R,children:[y&&p.jsx(K,{onClick:I,disabled:c||v===0,"aria-label":u("first",v),title:u("first",v),...X,children:P?p.jsx(U,{...C.lastButtonIcon}):p.jsx(q,{...C.firstButtonIcon})}),p.jsx(ee,{onClick:A,disabled:c||v===0,color:"inherit","aria-label":u("previous",v),title:u("previous",v),...re??o,children:P?p.jsx(L,{...C.nextButtonIcon}):p.jsx(W,{...C.previousButtonIcon})}),p.jsx(Z,{onClick:F,disabled:c||(l!==-1?v>=Math.ceil(l/g)-1:!1),color:"inherit","aria-label":u("next",v),title:u("next",v),...ce??f,children:P?p.jsx(W,{...C.previousButtonIcon}):p.jsx(L,{...C.nextButtonIcon})}),w&&p.jsx(Q,{onClick:j,disabled:c||v>=Math.ceil(l/g)-1,"aria-label":u("last",v),title:u("last",v),...Y,children:P?p.jsx(q,{...C.firstButtonIcon}):p.jsx(U,{...C.lastButtonIcon})})]})});function u$(t){return Ye("MuiTablePagination",t)}const yu=Ze("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Hw;const d$=ge(ht,{name:"MuiTablePagination",slot:"Root"})(Ge(({theme:t})=>({overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}))),p$=ge(i$,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>({[`& .${yu.actions}`]:e.actions,...e.toolbar})})(Ge(({theme:t})=>({minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${yu.actions}`]:{flexShrink:0,marginLeft:20}}))),f$=ge("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),h$=ge("p",{name:"MuiTablePagination",slot:"SelectLabel"})(Ge(({theme:t})=>({...t.typography.body2,flexShrink:0}))),m$=ge(Ms,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>({[`& .${yu.selectIcon}`]:e.selectIcon,[`& .${yu.select}`]:e.select,...e.input,...e.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${yu.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),g$=ge(cn,{name:"MuiTablePagination",slot:"MenuItem"})({}),y$=ge("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(Ge(({theme:t})=>({...t.typography.body2,flexShrink:0})));function v$({from:t,to:e,count:r}){return`${t}–${e} of ${r!==-1?r:`more than ${e}`}`}function b$(t){return`Go to ${t} page`}const x$=t=>{const{classes:e}=t;return Je({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},u$,e)},w$=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=c$,backIconButtonProps:s,colSpan:l,component:c=ht,count:u,disabled:f=!1,getItemAriaLabel:h=b$,labelDisplayedRows:v=v$,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:y,onPageChange:w,onRowsPerPageChange:x,page:C,rowsPerPage:R,rowsPerPageOptions:P=[10,25,50,100],SelectProps:M={},showFirstButton:E=!1,showLastButton:I=!1,slotProps:A={},slots:F={},...j}=n,H=n,G=x$(H),N=(A==null?void 0:A.select)??M,k=N.native?"option":g$;let q;(c===ht||c==="td")&&(q=l||1e3);const U=Pi(N.id),L=Pi(N.labelId),W=()=>u===-1?(C+1)*R:R===-1?u:Math.min(u,(C+1)*R),K={slots:F,slotProps:A},[ee,Z]=Xe("root",{ref:r,className:G.root,elementType:d$,externalForwardedProps:{...K,component:c,...j},ownerState:H,additionalProps:{colSpan:q}}),[Q,X]=Xe("toolbar",{className:G.toolbar,elementType:p$,externalForwardedProps:K,ownerState:H}),[re,ce]=Xe("spacer",{className:G.spacer,elementType:f$,externalForwardedProps:K,ownerState:H}),[Y,ne]=Xe("selectLabel",{className:G.selectLabel,elementType:h$,externalForwardedProps:K,ownerState:H,additionalProps:{id:L}}),[J,de]=Xe("select",{className:G.select,elementType:m$,externalForwardedProps:K,ownerState:H}),[Ce,he]=Xe("menuItem",{className:G.menuItem,elementType:k,externalForwardedProps:K,ownerState:H}),[se,De]=Xe("displayedRows",{className:G.displayedRows,elementType:y$,externalForwardedProps:K,ownerState:H});return p.jsx(ee,{...Z,children:p.jsxs(Q,{...X,children:[p.jsx(re,{...ce}),P.length>1&&p.jsx(Y,{...ne,children:g}),P.length>1&&p.jsx(J,{variant:"standard",...!N.variant&&{input:Hw||(Hw=p.jsx(uh,{}))},value:R,onChange:x,id:U,labelId:L,...N,classes:{...N.classes,root:Me(G.input,G.selectRoot,(N.classes||{}).root),select:Me(G.select,(N.classes||{}).select),icon:Me(G.selectIcon,(N.classes||{}).icon)},disabled:f,...de,children:P.map(Ne=>S.createElement(Ce,{...he,key:Ne.label?Ne.label:Ne,value:Ne.value?Ne.value:Ne},Ne.label?Ne.label:Ne))}),p.jsx(se,{...De,children:v({from:u===0?0:C*R+1,to:W(),count:u===-1?-1:u,page:C})}),p.jsx(o,{className:G.actions,backIconButtonProps:s,count:u,nextIconButtonProps:y,onPageChange:w,page:C,rowsPerPage:R,showFirstButton:E,showLastButton:I,slotProps:A.actions,slots:F.actions,getItemAriaLabel:h,disabled:f})]})})});function S$(t){return Ye("MuiTableRow",t)}const Uw=Ze("MuiTableRow",["root","selected","hover","head","footer"]),C$=t=>{const{classes:e,selected:r,hover:n,head:o,footer:s}=t;return Je({root:["root",r&&"selected",n&&"hover",o&&"head",s&&"footer"]},S$,e)},T$=ge("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.head&&e.head,r.footer&&e.footer]}})(Ge(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Uw.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Uw.selected}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)}}}))),Vw="tr",ho=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTableRow"}),{className:o,component:s=Vw,hover:l=!1,selected:c=!1,...u}=n,f=S.useContext(fh),h={...n,component:s,hover:l,selected:c,head:f&&f.variant==="head",footer:f&&f.variant==="footer"},v=C$(h);return p.jsx(T$,{as:s,ref:r,className:Me(v.root,o),role:s===Vw?null:"row",ownerState:h,...u})});function E$(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function k$(t,e,r,n={},o=()=>{}){const{ease:s=E$,duration:l=300}=n;let c=null;const u=e[t];let f=!1;const h=()=>{f=!0},v=g=>{if(f){o(new Error("Animation cancelled"));return}c===null&&(c=g);const y=Math.min(1,(g-c)/l);if(e[t]=s(y)*(r-u)+u,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(v)};return u===r?(o(new Error("Element already at target position")),h):(requestAnimationFrame(v),h)}const P$={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function R$(t){const{onChange:e,...r}=t,n=S.useRef(),o=S.useRef(null),s=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return Xn(()=>{const l=th(()=>{const u=n.current;s(),u!==n.current&&e(n.current)}),c=ei(o.current);return c.addEventListener("resize",l),()=>{l.clear(),c.removeEventListener("resize",l)}},[e]),S.useEffect(()=>{s(),e(n.current)},[e]),p.jsx("div",{style:P$,...r,ref:o})}function M$(t){return Ye("MuiTabScrollButton",t)}const I$=Ze("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),A$=t=>{const{classes:e,orientation:r,disabled:n}=t;return Je({root:["root",r,n&&"disabled"]},M$,e)},j$=ge(ti,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${I$.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),_$=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:c,orientation:u,disabled:f,...h}=n,v=Ka(),g={isRtl:v,...n},y=A$(g),w=s.StartScrollButtonIcon??cT,x=s.EndScrollButtonIcon??uT,C=Ul({elementType:w,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),R=Ul({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return p.jsx(j$,{component:"div",className:Me(y.root,o),ref:r,role:null,ownerState:g,tabIndex:null,...h,style:{...h.style,...u==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${v?-90:90}deg)`}},children:c==="left"?p.jsx(w,{...C}):p.jsx(x,{...R})})});function L$(t){return Ye("MuiTabs",t)}const Mg=Ze("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ww=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,qw=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,Ap=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=r(t,o);else{o.focus();return}}},O$=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:s,centered:l,scrollButtonsHideMobile:c,classes:u}=t;return Je({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",e&&"flexContainerVertical",e&&"vertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},L$,u)},N$=ge("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Mg.scrollButtons}`]:e.scrollButtons},{[`& .${Mg.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Ge(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${Mg.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),$$=ge("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),B$=ge("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.list,e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),z$=ge("span",{name:"MuiTabs",slot:"Indicator"})(Ge(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),D$=ge(R$)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Gw={},F$=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTabs"}),o=Jn(),s=Ka(),{"aria-label":l,"aria-labelledby":c,action:u,centered:f=!1,children:h,className:v,component:g="div",allowScrollButtonsMobile:y=!1,indicatorColor:w="primary",onChange:x,orientation:C="horizontal",ScrollButtonComponent:R,scrollButtons:P="auto",selectionFollowsFocus:M,slots:E={},slotProps:I={},TabIndicatorProps:A={},TabScrollButtonProps:F={},textColor:j="primary",value:H,variant:G="standard",visibleScrollbar:N=!1,...k}=n,q=G==="scrollable",U=C==="vertical",L=U?"scrollTop":"scrollLeft",W=U?"top":"left",K=U?"bottom":"right",ee=U?"clientHeight":"clientWidth",Z=U?"height":"width",Q={...n,component:g,allowScrollButtonsMobile:y,indicatorColor:w,orientation:C,vertical:U,scrollButtons:P,textColor:j,variant:G,visibleScrollbar:N,fixed:!q,hideScrollbar:q&&!N,scrollableX:q&&!U,scrollableY:q&&U,centered:f&&!q,scrollButtonsHideMobile:!y},X=O$(Q),re=Ul({elementType:E.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:Q}),ce=Ul({elementType:E.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:Q}),[Y,ne]=S.useState(!1),[J,de]=S.useState(Gw),[Ce,he]=S.useState(!1),[se,De]=S.useState(!1),[Ne,Oe]=S.useState(!1),[Be,_e]=S.useState({overflow:"hidden",scrollbarWidth:0}),Ke=new Map,dt=S.useRef(null),ke=S.useRef(null),ft={slots:E,slotProps:{indicator:A,scrollButton:F,...I}},We=()=>{const qe=dt.current;let ot;if(qe){const It=qe.getBoundingClientRect();ot={clientWidth:qe.clientWidth,scrollLeft:qe.scrollLeft,scrollTop:qe.scrollTop,scrollWidth:qe.scrollWidth,top:It.top,bottom:It.bottom,left:It.left,right:It.right}}let Rt;if(qe&&H!==!1){const It=ke.current.children;if(It.length>0){const Kt=It[Ke.get(H)];Rt=Kt?Kt.getBoundingClientRect():null}}return{tabsMeta:ot,tabMeta:Rt}},pt=Wr(()=>{const{tabsMeta:qe,tabMeta:ot}=We();let Rt=0,It;U?(It="top",ot&&qe&&(Rt=ot.top-qe.top+qe.scrollTop)):(It=s?"right":"left",ot&&qe&&(Rt=(s?-1:1)*(ot[It]-qe[It]+qe.scrollLeft)));const Kt={[It]:Rt,[Z]:ot?ot[Z]:0};if(typeof J[It]!="number"||typeof J[Z]!="number")de(Kt);else{const jr=Math.abs(J[It]-Kt[It]),hn=Math.abs(J[Z]-Kt[Z]);(jr>=1||hn>=1)&&de(Kt)}}),Ue=(qe,{animation:ot=!0}={})=>{ot?k$(L,dt.current,qe,{duration:o.transitions.duration.standard}):dt.current[L]=qe},Wt=qe=>{let ot=dt.current[L];U?ot+=qe:ot+=qe*(s?-1:1),Ue(ot)},Tt=()=>{const qe=dt.current[ee];let ot=0;const Rt=Array.from(ke.current.children);for(let It=0;It<Rt.length;It+=1){const Kt=Rt[It];if(ot+Kt[ee]>qe){It===0&&(ot=qe);break}ot+=Kt[ee]}return ot},ue=()=>{Wt(-1*Tt())},ve=()=>{Wt(Tt())},[Te,{onChange:Pe,...Ve}]=Xe("scrollbar",{className:Me(X.scrollableX,X.hideScrollbar),elementType:D$,shouldForwardComponentProp:!0,externalForwardedProps:ft,ownerState:Q}),Qe=S.useCallback(qe=>{Pe==null||Pe(qe),_e({overflow:null,scrollbarWidth:qe})},[Pe]),[oe,Ee]=Xe("scrollButtons",{className:Me(X.scrollButtons,F.className),elementType:_$,externalForwardedProps:ft,ownerState:Q,additionalProps:{orientation:C,slots:{StartScrollButtonIcon:E.startScrollButtonIcon||E.StartScrollButtonIcon,EndScrollButtonIcon:E.endScrollButtonIcon||E.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:re,endScrollButtonIcon:ce}}}),$e=()=>{const qe={};qe.scrollbarSizeListener=q?p.jsx(Te,{...Ve,onChange:Qe}):null;const Rt=q&&(P==="auto"&&(Ce||se)||P===!0);return qe.scrollButtonStart=Rt?p.jsx(oe,{direction:s?"right":"left",onClick:ue,disabled:!Ce,...Ee}):null,qe.scrollButtonEnd=Rt?p.jsx(oe,{direction:s?"left":"right",onClick:ve,disabled:!se,...Ee}):null,qe},Fe=Wr(qe=>{const{tabsMeta:ot,tabMeta:Rt}=We();if(!(!Rt||!ot)){if(Rt[W]<ot[W]){const It=ot[L]+(Rt[W]-ot[W]);Ue(It,{animation:qe})}else if(Rt[K]>ot[K]){const It=ot[L]+(Rt[K]-ot[K]);Ue(It,{animation:qe})}}}),xt=Wr(()=>{q&&P!==!1&&Oe(!Ne)});S.useEffect(()=>{const qe=th(()=>{dt.current&&pt()});let ot;const Rt=jr=>{jr.forEach(hn=>{hn.removedNodes.forEach(On=>{ot==null||ot.unobserve(On)}),hn.addedNodes.forEach(On=>{ot==null||ot.observe(On)})}),qe(),xt()},It=ei(dt.current);It.addEventListener("resize",qe);let Kt;return typeof ResizeObserver<"u"&&(ot=new ResizeObserver(qe),Array.from(ke.current.children).forEach(jr=>{ot.observe(jr)})),typeof MutationObserver<"u"&&(Kt=new MutationObserver(Rt),Kt.observe(ke.current,{childList:!0})),()=>{qe.clear(),It.removeEventListener("resize",qe),Kt==null||Kt.disconnect(),ot==null||ot.disconnect()}},[pt,xt]),S.useEffect(()=>{const qe=Array.from(ke.current.children),ot=qe.length;if(typeof IntersectionObserver<"u"&&ot>0&&q&&P!==!1){const Rt=qe[0],It=qe[ot-1],Kt={root:dt.current,threshold:.99},jr=Fo=>{he(!Fo[0].isIntersecting)},hn=new IntersectionObserver(jr,Kt);hn.observe(Rt);const On=Fo=>{De(!Fo[0].isIntersecting)},ci=new IntersectionObserver(On,Kt);return ci.observe(It),()=>{hn.disconnect(),ci.disconnect()}}},[q,P,Ne,h==null?void 0:h.length]),S.useEffect(()=>{ne(!0)},[]),S.useEffect(()=>{pt()}),S.useEffect(()=>{Fe(Gw!==J)},[Fe,J]),S.useImperativeHandle(u,()=>({updateIndicator:pt,updateScrollButtons:xt}),[pt,xt]);const[qt,ur]=Xe("indicator",{className:Me(X.indicator,A.className),elementType:z$,externalForwardedProps:ft,ownerState:Q,additionalProps:{style:J}}),Dr=p.jsx(qt,{...ur});let nn=0;const fn=S.Children.map(h,qe=>{if(!S.isValidElement(qe))return null;const ot=qe.props.value===void 0?nn:qe.props.value;Ke.set(ot,nn);const Rt=ot===H;return nn+=1,S.cloneElement(qe,{fullWidth:G==="fullWidth",indicator:Rt&&!Y&&Dr,selected:Rt,selectionFollowsFocus:M,onChange:x,textColor:j,value:ot,...nn===1&&H===!1&&!qe.props.tabIndex?{tabIndex:0}:{}})}),et=qe=>{if(qe.altKey||qe.shiftKey||qe.ctrlKey||qe.metaKey)return;const ot=ke.current,Rt=kl(dn(ot));if((Rt==null?void 0:Rt.getAttribute("role"))!=="tab")return;let Kt=C==="horizontal"?"ArrowLeft":"ArrowUp",jr=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&s&&(Kt="ArrowRight",jr="ArrowLeft"),qe.key){case Kt:qe.preventDefault(),Ap(ot,Rt,qw);break;case jr:qe.preventDefault(),Ap(ot,Rt,Ww);break;case"Home":qe.preventDefault(),Ap(ot,null,Ww);break;case"End":qe.preventDefault(),Ap(ot,null,qw);break}},St=$e(),[Ut,vr]=Xe("root",{ref:r,className:Me(X.root,v),elementType:N$,externalForwardedProps:{...ft,...k,component:g},ownerState:Q}),[Fr,En]=Xe("scroller",{ref:dt,className:X.scroller,elementType:$$,externalForwardedProps:ft,ownerState:Q,additionalProps:{style:{overflow:Be.overflow,[U?`margin${s?"Left":"Right"}`:"marginBottom"]:N?void 0:-Be.scrollbarWidth}}}),[Ct,dr]=Xe("list",{ref:ke,className:Me(X.list,X.flexContainer),elementType:B$,externalForwardedProps:ft,ownerState:Q,getSlotProps:qe=>({...qe,onKeyDown:ot=>{var Rt;et(ot),(Rt=qe.onKeyDown)==null||Rt.call(qe,ot)}})});return p.jsxs(Ut,{...vr,children:[St.scrollButtonStart,St.scrollbarSizeListener,p.jsxs(Fr,{...En,children:[p.jsx(Ct,{"aria-label":l,"aria-labelledby":c,"aria-orientation":C==="vertical"?"vertical":null,role:"tablist",...dr,children:fn}),Y&&Dr]}),St.scrollButtonEnd]})});function H$(t){return Ye("MuiTextField",t)}Ze("MuiTextField",["root"]);const U$={standard:dh,filled:R0,outlined:j0},V$=t=>{const{classes:e}=t;return Je({root:["root"]},H$,e)},W$=ge(za,{name:"MuiTextField",slot:"Root"})({}),un=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:l,className:c,color:u="primary",defaultValue:f,disabled:h=!1,error:v=!1,FormHelperTextProps:g,fullWidth:y=!1,helperText:w,id:x,InputLabelProps:C,inputProps:R,InputProps:P,inputRef:M,label:E,maxRows:I,minRows:A,multiline:F=!1,name:j,onBlur:H,onChange:G,onFocus:N,placeholder:k,required:q=!1,rows:U,select:L=!1,SelectProps:W,slots:K={},slotProps:ee={},type:Z,value:Q,variant:X="outlined",...re}=n,ce={...n,autoFocus:s,color:u,disabled:h,error:v,fullWidth:y,multiline:F,required:q,select:L,variant:X},Y=V$(ce),ne=Pi(x),J=w&&ne?`${ne}-helper-text`:void 0,de=E&&ne?`${ne}-label`:void 0,Ce=U$[X],he={slots:K,slotProps:{input:P,inputLabel:C,htmlInput:R,formHelperText:g,select:W,...ee}},se={},De=he.slotProps.inputLabel;X==="outlined"&&(De&&typeof De.shrink<"u"&&(se.notched=De.shrink),se.label=E),L&&((!W||!W.native)&&(se.id=void 0),se["aria-describedby"]=void 0);const[Ne,Oe]=Xe("root",{elementType:W$,shouldForwardComponentProp:!0,externalForwardedProps:{...he,...re},ownerState:ce,className:Me(Y.root,c),ref:r,additionalProps:{disabled:h,error:v,fullWidth:y,required:q,color:u,variant:X}}),[Be,_e]=Xe("input",{elementType:Ce,externalForwardedProps:he,additionalProps:se,ownerState:ce}),[Ke,dt]=Xe("inputLabel",{elementType:Vl,externalForwardedProps:he,ownerState:ce}),[ke,ft]=Xe("htmlInput",{elementType:"input",externalForwardedProps:he,ownerState:ce}),[We,pt]=Xe("formHelperText",{elementType:ic,externalForwardedProps:he,ownerState:ce}),[Ue,Wt]=Xe("select",{elementType:Ms,externalForwardedProps:he,ownerState:ce}),Tt=p.jsx(Be,{"aria-describedby":J,autoComplete:o,autoFocus:s,defaultValue:f,fullWidth:y,multiline:F,name:j,rows:U,maxRows:I,minRows:A,type:Z,value:Q,id:ne,inputRef:M,onBlur:H,onChange:G,onFocus:N,placeholder:k,inputProps:ft,slots:{input:K.htmlInput?ke:void 0},..._e});return p.jsxs(Ne,{...Oe,children:[E!=null&&E!==""&&p.jsx(Ke,{htmlFor:ne,id:de,...dt,children:E}),L?p.jsx(Ue,{"aria-describedby":J,id:ne,labelId:de,value:Q,input:Tt,...Wt,children:l}):Tt,w&&p.jsx(We,{id:J,...pt,children:w})]})});function q$(t){return Ye("MuiToggleButton",t)}const Ts=Ze("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),dT=S.createContext({}),pT=S.createContext(void 0);function G$(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const X$=t=>{const{classes:e,fullWidth:r,selected:n,disabled:o,size:s,color:l}=t,c={root:["root",n&&"selected",o&&"disabled",r&&"fullWidth",`size${me(s)}`,l]};return Je(c,q$,e)},K$=ge(ti,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`size${me(r.size)}`]]}})(Ge(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${Ts.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${Ts.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{[`&.${Ts.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),Xw=S.forwardRef(function(e,r){const{value:n,...o}=S.useContext(dT),s=S.useContext(pT),l=Nl({...o,selected:G$(e.value,n)},e),c=nt({props:l,name:"MuiToggleButton"}),{children:u,className:f,color:h="standard",disabled:v=!1,disableFocusRipple:g=!1,fullWidth:y=!1,onChange:w,onClick:x,selected:C,size:R="medium",value:P,...M}=c,E={...c,color:h,disabled:v,disableFocusRipple:g,fullWidth:y,size:R},I=X$(E),A=j=>{x&&(x(j,P),j.defaultPrevented)||w&&w(j,P)},F=s||"";return p.jsx(K$,{className:Me(o.className,I.root,f,F),disabled:v,focusRipple:!g,ref:r,onClick:A,onChange:w,value:P,ownerState:E,"aria-pressed":C,...M,children:u})});function Q$(t){return Ye("MuiToggleButtonGroup",t)}const hr=Ze("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Y$=t=>{const{classes:e,orientation:r,fullWidth:n,disabled:o}=t,s={root:["root",r,n&&"fullWidth"],grouped:["grouped",`grouped${me(r)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Je(s,Q$,e)},J$=ge("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${hr.grouped}`]:e.grouped},{[`& .${hr.grouped}`]:e[`grouped${me(r.orientation)}`]},{[`& .${hr.firstButton}`]:e.firstButton},{[`& .${hr.lastButton}`]:e.lastButton},{[`& .${hr.middleButton}`]:e.middleButton},e.root,r.orientation==="vertical"&&e.vertical,r.fullWidth&&e.fullWidth]}})(Ge(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${hr.grouped}`]:{[`&.${hr.selected} + .${hr.grouped}.${hr.selected}`]:{borderTop:0,marginTop:0}},[`& .${hr.firstButton},& .${hr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${hr.lastButton},& .${hr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${hr.lastButton}.${Ts.disabled},& .${hr.middleButton}.${Ts.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${hr.grouped}`]:{[`&.${hr.selected} + .${hr.grouped}.${hr.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${hr.firstButton},& .${hr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${hr.lastButton},& .${hr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${hr.lastButton}.${Ts.disabled},& .${hr.middleButton}.${Ts.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),Z$=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:s,color:l="standard",disabled:c=!1,exclusive:u=!1,fullWidth:f=!1,onChange:h,orientation:v="horizontal",size:g="medium",value:y,...w}=n,x={...n,disabled:c,fullWidth:f,orientation:v,size:g},C=Y$(x),R=S.useCallback((F,j)=>{if(!h)return;const H=y&&y.indexOf(j);let G;y&&H>=0?(G=y.slice(),G.splice(H,1)):G=y?y.concat(j):[j],h(F,G)},[h,y]),P=S.useCallback((F,j)=>{h&&h(F,y===j?null:j)},[h,y]),M=S.useMemo(()=>({className:C.grouped,onChange:u?P:R,value:y,size:g,fullWidth:f,color:l,disabled:c}),[C.grouped,u,P,R,y,g,f,l,c]),E=G2(o),I=E.length,A=F=>{const j=F===0,H=F===I-1;return j&&H?"":j?C.firstButton:H?C.lastButton:C.middleButton};return p.jsx(J$,{role:"group",className:Me(C.root,s),ref:r,ownerState:x,...w,children:p.jsx(dT.Provider,{value:M,children:E.map((F,j)=>p.jsx(pT.Provider,{value:A(j),children:F},j))})})}),e8=s2({themeId:Jo});/*!
308
+ * mustache.js - Logic-less {{mustache}} templates with JavaScript
309
+ * http://github.com/janl/mustache.js
310
+ */var t8=Object.prototype.toString,ac=Array.isArray||function(e){return t8.call(e)==="[object Array]"};function L0(t){return typeof t=="function"}function r8(t){return ac(t)?"array":typeof t}function Ig(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Kw(t,e){return t!=null&&typeof t=="object"&&e in t}function n8(t,e){return t!=null&&typeof t!="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var o8=RegExp.prototype.test;function i8(t,e){return o8.call(t,e)}var a8=/\S/;function s8(t){return!i8(a8,t)}var l8={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function c8(t){return String(t).replace(/[&<>"'`=\/]/g,function(r){return l8[r]})}var u8=/\s*/,d8=/\s+/,Qw=/\s*=/,p8=/\s*\}/,f8=/#|\^|\/|>|\{|&|=|!/;function h8(t,e){if(!t)return[];var r=!1,n=[],o=[],s=[],l=!1,c=!1,u="",f=0;function h(){if(l&&!c)for(;s.length;)delete o[s.pop()];else s=[];l=!1,c=!1}var v,g,y;function w(j){if(typeof j=="string"&&(j=j.split(d8,2)),!ac(j)||j.length!==2)throw new Error("Invalid tags: "+j);v=new RegExp(Ig(j[0])+"\\s*"),g=new RegExp("\\s*"+Ig(j[1])),y=new RegExp("\\s*"+Ig("}"+j[1]))}w(e||xo.tags);for(var x=new ld(t),C,R,P,M,E,I;!x.eos();){if(C=x.pos,P=x.scanUntil(v),P)for(var A=0,F=P.length;A<F;++A)M=P.charAt(A),s8(M)?(s.push(o.length),u+=M):(c=!0,r=!0,u+=" "),o.push(["text",M,C,C+1]),C+=1,M===`
311
+ `&&(h(),u="",f=0,r=!1);if(!x.scan(v))break;if(l=!0,R=x.scan(f8)||"name",x.scan(u8),R==="="?(P=x.scanUntil(Qw),x.scan(Qw),x.scanUntil(g)):R==="{"?(P=x.scanUntil(y),x.scan(p8),x.scanUntil(g),R="&"):P=x.scanUntil(g),!x.scan(g))throw new Error("Unclosed tag at "+x.pos);if(R==">"?E=[R,P,C,x.pos,u,f,r]:E=[R,P,C,x.pos],f++,o.push(E),R==="#"||R==="^")n.push(E);else if(R==="/"){if(I=n.pop(),!I)throw new Error('Unopened section "'+P+'" at '+C);if(I[1]!==P)throw new Error('Unclosed section "'+I[1]+'" at '+C)}else R==="name"||R==="{"||R==="&"?c=!0:R==="="&&w(P)}if(h(),I=n.pop(),I)throw new Error('Unclosed section "'+I[1]+'" at '+x.pos);return g8(m8(o))}function m8(t){for(var e=[],r,n,o=0,s=t.length;o<s;++o)r=t[o],r&&(r[0]==="text"&&n&&n[0]==="text"?(n[1]+=r[1],n[3]=r[3]):(e.push(r),n=r));return e}function g8(t){for(var e=[],r=e,n=[],o,s,l=0,c=t.length;l<c;++l)switch(o=t[l],o[0]){case"#":case"^":r.push(o),n.push(o),r=o[4]=[];break;case"/":s=n.pop(),s[5]=o[2],r=n.length>0?n[n.length-1][4]:e;break;default:r.push(o)}return e}function ld(t){this.string=t,this.tail=t,this.pos=0}ld.prototype.eos=function(){return this.tail===""};ld.prototype.scan=function(e){var r=this.tail.match(e);if(!r||r.index!==0)return"";var n=r[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n};ld.prototype.scanUntil=function(e){var r=this.tail.search(e),n;switch(r){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=n.length,n};function Wl(t,e){this.view=t,this.cache={".":this.view},this.parent=e}Wl.prototype.push=function(e){return new Wl(e,this)};Wl.prototype.lookup=function(e){var r=this.cache,n;if(r.hasOwnProperty(e))n=r[e];else{for(var o=this,s,l,c,u=!1;o;){if(e.indexOf(".")>0)for(s=o.view,l=e.split("."),c=0;s!=null&&c<l.length;)c===l.length-1&&(u=Kw(s,l[c])||n8(s,l[c])),s=s[l[c++]];else s=o.view[e],u=Kw(o.view,e);if(u){n=s;break}o=o.parent}r[e]=n}return L0(n)&&(n=n.call(this.view)),n};function Ln(){this.templateCache={_cache:{},set:function(e,r){this._cache[e]=r},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}Ln.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Ln.prototype.parse=function(e,r){var n=this.templateCache,o=e+":"+(r||xo.tags).join(":"),s=typeof n<"u",l=s?n.get(o):void 0;return l==null&&(l=h8(e,r),s&&n.set(o,l)),l};Ln.prototype.render=function(e,r,n,o){var s=this.getConfigTags(o),l=this.parse(e,s),c=r instanceof Wl?r:new Wl(r,void 0);return this.renderTokens(l,c,n,e,o)};Ln.prototype.renderTokens=function(e,r,n,o,s){for(var l="",c,u,f,h=0,v=e.length;h<v;++h)f=void 0,c=e[h],u=c[0],u==="#"?f=this.renderSection(c,r,n,o,s):u==="^"?f=this.renderInverted(c,r,n,o,s):u===">"?f=this.renderPartial(c,r,n,s):u==="&"?f=this.unescapedValue(c,r):u==="name"?f=this.escapedValue(c,r,s):u==="text"&&(f=this.rawValue(c)),f!==void 0&&(l+=f);return l};Ln.prototype.renderSection=function(e,r,n,o,s){var l=this,c="",u=r.lookup(e[1]);function f(g){return l.render(g,r,n,s)}if(u){if(ac(u))for(var h=0,v=u.length;h<v;++h)c+=this.renderTokens(e[4],r.push(u[h]),n,o,s);else if(typeof u=="object"||typeof u=="string"||typeof u=="number")c+=this.renderTokens(e[4],r.push(u),n,o,s);else if(L0(u)){if(typeof o!="string")throw new Error("Cannot use higher-order sections without the original template");u=u.call(r.view,o.slice(e[3],e[5]),f),u!=null&&(c+=u)}else c+=this.renderTokens(e[4],r,n,o,s);return c}};Ln.prototype.renderInverted=function(e,r,n,o,s){var l=r.lookup(e[1]);if(!l||ac(l)&&l.length===0)return this.renderTokens(e[4],r,n,o,s)};Ln.prototype.indentPartial=function(e,r,n){for(var o=r.replace(/[^ \t]/g,""),s=e.split(`
312
+ `),l=0;l<s.length;l++)s[l].length&&(l>0||!n)&&(s[l]=o+s[l]);return s.join(`
313
+ `)};Ln.prototype.renderPartial=function(e,r,n,o){if(n){var s=this.getConfigTags(o),l=L0(n)?n(e[1]):n[e[1]];if(l!=null){var c=e[6],u=e[5],f=e[4],h=l;u==0&&f&&(h=this.indentPartial(l,f,c));var v=this.parse(h,s);return this.renderTokens(v,r,n,h,o)}}};Ln.prototype.unescapedValue=function(e,r){var n=r.lookup(e[1]);if(n!=null)return n};Ln.prototype.escapedValue=function(e,r,n){var o=this.getConfigEscape(n)||xo.escape,s=r.lookup(e[1]);if(s!=null)return typeof s=="number"&&o===xo.escape?String(s):o(s)};Ln.prototype.rawValue=function(e){return e[1]};Ln.prototype.getConfigTags=function(e){return ac(e)?e:e&&typeof e=="object"?e.tags:void 0};Ln.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!ac(e))return e.escape};var xo={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){Du.templateCache=t},get templateCache(){return Du.templateCache}},Du=new Ln;xo.clearCache=function(){return Du.clearCache()};xo.parse=function(e,r){return Du.parse(e,r)};xo.render=function(e,r,n,o){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+r8(e)+'" was given as the first argument for mustache#render(template, view, partials)');return Du.render(e,r,n,o)};xo.escape=c8;xo.Scanner=ld;xo.Context=Wl;xo.Writer=Ln;var Yw={};/*! *****************************************************************************
314
+ Copyright (C) Microsoft. All rights reserved.
315
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
316
+ this file except in compliance with the License. You may obtain a copy of the
317
+ License at http://www.apache.org/licenses/LICENSE-2.0
318
+
319
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
320
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
321
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
322
+ MERCHANTABLITY OR NON-INFRINGEMENT.
323
+
324
+ See the Apache Version 2.0 License for specific language governing permissions
325
+ and limitations under the License.
326
+ ***************************************************************************** */var Jw;function y8(){if(Jw)return Yw;Jw=1;var t;return(function(e){(function(r){var n=typeof H1=="object"?H1:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),o=s(e);typeof n.Reflect>"u"?n.Reflect=e:o=s(n.Reflect,o),r(o);function s(l,c){return function(u,f){typeof l[u]!="function"&&Object.defineProperty(l,u,{configurable:!0,writable:!0,value:f}),c&&c(u,f)}}})(function(r){var n=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",s=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",l=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",u={__proto__:[]}instanceof Array,f=!c&&!u,h={create:c?function(){return Tt(Object.create(null))}:u?function(){return Tt({__proto__:null})}:function(){return Tt({})},has:f?function(ue,ve){return n.call(ue,ve)}:function(ue,ve){return ve in ue},get:f?function(ue,ve){return n.call(ue,ve)?ue[ve]:void 0}:function(ue,ve){return ue[ve]}},v=Object.getPrototypeOf(Function),g=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",y=!g&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:pt(),w=!g&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Ue(),x=!g&&typeof WeakMap=="function"?WeakMap:Wt(),C=new x;function R(ue,ve,Te,Pe){if(re(Te)){if(!De(ue))throw new TypeError;if(!Oe(ve))throw new TypeError;return N(ue,ve)}else{if(!De(ue))throw new TypeError;if(!ne(ve))throw new TypeError;if(!ne(Pe)&&!re(Pe)&&!ce(Pe))throw new TypeError;return ce(Pe)&&(Pe=void 0),Te=se(Te),k(ue,ve,Te,Pe)}}r("decorate",R);function P(ue,ve){function Te(Pe,Ve){if(!ne(Pe))throw new TypeError;if(!re(Ve)&&!Be(Ve))throw new TypeError;ee(ue,ve,Pe,Ve)}return Te}r("metadata",P);function M(ue,ve,Te,Pe){if(!ne(Te))throw new TypeError;return re(Pe)||(Pe=se(Pe)),ee(ue,ve,Te,Pe)}r("defineMetadata",M);function E(ue,ve,Te){if(!ne(ve))throw new TypeError;return re(Te)||(Te=se(Te)),U(ue,ve,Te)}r("hasMetadata",E);function I(ue,ve,Te){if(!ne(ve))throw new TypeError;return re(Te)||(Te=se(Te)),L(ue,ve,Te)}r("hasOwnMetadata",I);function A(ue,ve,Te){if(!ne(ve))throw new TypeError;return re(Te)||(Te=se(Te)),W(ue,ve,Te)}r("getMetadata",A);function F(ue,ve,Te){if(!ne(ve))throw new TypeError;return re(Te)||(Te=se(Te)),K(ue,ve,Te)}r("getOwnMetadata",F);function j(ue,ve){if(!ne(ue))throw new TypeError;return re(ve)||(ve=se(ve)),Z(ue,ve)}r("getMetadataKeys",j);function H(ue,ve){if(!ne(ue))throw new TypeError;return re(ve)||(ve=se(ve)),Q(ue,ve)}r("getOwnMetadataKeys",H);function G(ue,ve,Te){if(!ne(ve))throw new TypeError;re(Te)||(Te=se(Te));var Pe=q(ve,Te,!1);if(re(Pe)||!Pe.delete(ue))return!1;if(Pe.size>0)return!0;var Ve=C.get(ve);return Ve.delete(Te),Ve.size>0||C.delete(ve),!0}r("deleteMetadata",G);function N(ue,ve){for(var Te=ue.length-1;Te>=0;--Te){var Pe=ue[Te],Ve=Pe(ve);if(!re(Ve)&&!ce(Ve)){if(!Oe(Ve))throw new TypeError;ve=Ve}}return ve}function k(ue,ve,Te,Pe){for(var Ve=ue.length-1;Ve>=0;--Ve){var Qe=ue[Ve],oe=Qe(ve,Te,Pe);if(!re(oe)&&!ce(oe)){if(!ne(oe))throw new TypeError;Pe=oe}}return Pe}function q(ue,ve,Te){var Pe=C.get(ue);if(re(Pe)){if(!Te)return;Pe=new y,C.set(ue,Pe)}var Ve=Pe.get(ve);if(re(Ve)){if(!Te)return;Ve=new y,Pe.set(ve,Ve)}return Ve}function U(ue,ve,Te){var Pe=L(ue,ve,Te);if(Pe)return!0;var Ve=We(ve);return ce(Ve)?!1:U(ue,Ve,Te)}function L(ue,ve,Te){var Pe=q(ve,Te,!1);return re(Pe)?!1:Ce(Pe.has(ue))}function W(ue,ve,Te){var Pe=L(ue,ve,Te);if(Pe)return K(ue,ve,Te);var Ve=We(ve);if(!ce(Ve))return W(ue,Ve,Te)}function K(ue,ve,Te){var Pe=q(ve,Te,!1);if(!re(Pe))return Pe.get(ue)}function ee(ue,ve,Te,Pe){var Ve=q(Te,Pe,!0);Ve.set(ue,ve)}function Z(ue,ve){var Te=Q(ue,ve),Pe=We(ue);if(Pe===null)return Te;var Ve=Z(Pe,ve);if(Ve.length<=0)return Te;if(Te.length<=0)return Ve;for(var Qe=new w,oe=[],Ee=0,$e=Te;Ee<$e.length;Ee++){var Fe=$e[Ee],xt=Qe.has(Fe);xt||(Qe.add(Fe),oe.push(Fe))}for(var qt=0,ur=Ve;qt<ur.length;qt++){var Fe=ur[qt],xt=Qe.has(Fe);xt||(Qe.add(Fe),oe.push(Fe))}return oe}function Q(ue,ve){var Te=[],Pe=q(ue,ve,!1);if(re(Pe))return Te;for(var Ve=Pe.keys(),Qe=Ke(Ve),oe=0;;){var Ee=ke(Qe);if(!Ee)return Te.length=oe,Te;var $e=dt(Ee);try{Te[oe]=$e}catch(Fe){try{ft(Qe)}finally{throw Fe}}oe++}}function X(ue){if(ue===null)return 1;switch(typeof ue){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return ue===null?1:6;default:return 6}}function re(ue){return ue===void 0}function ce(ue){return ue===null}function Y(ue){return typeof ue=="symbol"}function ne(ue){return typeof ue=="object"?ue!==null:typeof ue=="function"}function J(ue,ve){switch(X(ue)){case 0:return ue;case 1:return ue;case 2:return ue;case 3:return ue;case 4:return ue;case 5:return ue}var Te="string",Pe=_e(ue,s);if(Pe!==void 0){var Ve=Pe.call(ue,Te);if(ne(Ve))throw new TypeError;return Ve}return de(ue)}function de(ue,ve){var Te,Pe,Ve;{var Qe=ue.toString;if(Ne(Qe)){var Pe=Qe.call(ue);if(!ne(Pe))return Pe}var Te=ue.valueOf;if(Ne(Te)){var Pe=Te.call(ue);if(!ne(Pe))return Pe}}throw new TypeError}function Ce(ue){return!!ue}function he(ue){return""+ue}function se(ue){var ve=J(ue);return Y(ve)?ve:he(ve)}function De(ue){return Array.isArray?Array.isArray(ue):ue instanceof Object?ue instanceof Array:Object.prototype.toString.call(ue)==="[object Array]"}function Ne(ue){return typeof ue=="function"}function Oe(ue){return typeof ue=="function"}function Be(ue){switch(X(ue)){case 3:return!0;case 4:return!0;default:return!1}}function _e(ue,ve){var Te=ue[ve];if(Te!=null){if(!Ne(Te))throw new TypeError;return Te}}function Ke(ue){var ve=_e(ue,l);if(!Ne(ve))throw new TypeError;var Te=ve.call(ue);if(!ne(Te))throw new TypeError;return Te}function dt(ue){return ue.value}function ke(ue){var ve=ue.next();return ve.done?!1:ve}function ft(ue){var ve=ue.return;ve&&ve.call(ue)}function We(ue){var ve=Object.getPrototypeOf(ue);if(typeof ue!="function"||ue===v||ve!==v)return ve;var Te=ue.prototype,Pe=Te&&Object.getPrototypeOf(Te);if(Pe==null||Pe===Object.prototype)return ve;var Ve=Pe.constructor;return typeof Ve!="function"||Ve===ue?ve:Ve}function pt(){var ue={},ve=[],Te=(function(){function oe(Ee,$e,Fe){this._index=0,this._keys=Ee,this._values=$e,this._selector=Fe}return oe.prototype["@@iterator"]=function(){return this},oe.prototype[l]=function(){return this},oe.prototype.next=function(){var Ee=this._index;if(Ee>=0&&Ee<this._keys.length){var $e=this._selector(this._keys[Ee],this._values[Ee]);return Ee+1>=this._keys.length?(this._index=-1,this._keys=ve,this._values=ve):this._index++,{value:$e,done:!1}}return{value:void 0,done:!0}},oe.prototype.throw=function(Ee){throw this._index>=0&&(this._index=-1,this._keys=ve,this._values=ve),Ee},oe.prototype.return=function(Ee){return this._index>=0&&(this._index=-1,this._keys=ve,this._values=ve),{value:Ee,done:!0}},oe})();return(function(){function oe(){this._keys=[],this._values=[],this._cacheKey=ue,this._cacheIndex=-2}return Object.defineProperty(oe.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),oe.prototype.has=function(Ee){return this._find(Ee,!1)>=0},oe.prototype.get=function(Ee){var $e=this._find(Ee,!1);return $e>=0?this._values[$e]:void 0},oe.prototype.set=function(Ee,$e){var Fe=this._find(Ee,!0);return this._values[Fe]=$e,this},oe.prototype.delete=function(Ee){var $e=this._find(Ee,!1);if($e>=0){for(var Fe=this._keys.length,xt=$e+1;xt<Fe;xt++)this._keys[xt-1]=this._keys[xt],this._values[xt-1]=this._values[xt];return this._keys.length--,this._values.length--,Ee===this._cacheKey&&(this._cacheKey=ue,this._cacheIndex=-2),!0}return!1},oe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=ue,this._cacheIndex=-2},oe.prototype.keys=function(){return new Te(this._keys,this._values,Pe)},oe.prototype.values=function(){return new Te(this._keys,this._values,Ve)},oe.prototype.entries=function(){return new Te(this._keys,this._values,Qe)},oe.prototype["@@iterator"]=function(){return this.entries()},oe.prototype[l]=function(){return this.entries()},oe.prototype._find=function(Ee,$e){return this._cacheKey!==Ee&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=Ee)),this._cacheIndex<0&&$e&&(this._cacheIndex=this._keys.length,this._keys.push(Ee),this._values.push(void 0)),this._cacheIndex},oe})();function Pe(oe,Ee){return oe}function Ve(oe,Ee){return Ee}function Qe(oe,Ee){return[oe,Ee]}}function Ue(){return(function(){function ue(){this._map=new y}return Object.defineProperty(ue.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),ue.prototype.has=function(ve){return this._map.has(ve)},ue.prototype.add=function(ve){return this._map.set(ve,ve),this},ue.prototype.delete=function(ve){return this._map.delete(ve)},ue.prototype.clear=function(){this._map.clear()},ue.prototype.keys=function(){return this._map.keys()},ue.prototype.values=function(){return this._map.values()},ue.prototype.entries=function(){return this._map.entries()},ue.prototype["@@iterator"]=function(){return this.keys()},ue.prototype[l]=function(){return this.keys()},ue})()}function Wt(){var ue=16,ve=h.create(),Te=Pe();return(function(){function $e(){this._key=Pe()}return $e.prototype.has=function(Fe){var xt=Ve(Fe,!1);return xt!==void 0?h.has(xt,this._key):!1},$e.prototype.get=function(Fe){var xt=Ve(Fe,!1);return xt!==void 0?h.get(xt,this._key):void 0},$e.prototype.set=function(Fe,xt){var qt=Ve(Fe,!0);return qt[this._key]=xt,this},$e.prototype.delete=function(Fe){var xt=Ve(Fe,!1);return xt!==void 0?delete xt[this._key]:!1},$e.prototype.clear=function(){this._key=Pe()},$e})();function Pe(){var $e;do $e="@@WeakMap@@"+Ee();while(h.has(ve,$e));return ve[$e]=!0,$e}function Ve($e,Fe){if(!n.call($e,Te)){if(!Fe)return;Object.defineProperty($e,Te,{value:h.create()})}return $e[Te]}function Qe($e,Fe){for(var xt=0;xt<Fe;++xt)$e[xt]=Math.random()*255|0;return $e}function oe($e){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array($e)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array($e)):Qe(new Uint8Array($e),$e):Qe(new Array($e),$e)}function Ee(){var $e=oe(ue);$e[6]=$e[6]&79|64,$e[8]=$e[8]&191|128;for(var Fe="",xt=0;xt<ue;++xt){var qt=$e[xt];(xt===4||xt===6||xt===8)&&(Fe+="-"),qt<16&&(Fe+="0"),Fe+=qt.toString(16).toLowerCase()}return Fe}}function Tt(ue){return ue.__=void 0,delete ue.__,ue}})})(t||(t={})),Yw}y8();var cd=(function(){function t(e){this.groups=[],this.each=!1,this.context=void 0,this.type=e.type,this.name=e.name,this.target=e.target,this.propertyName=e.propertyName,this.constraints=e==null?void 0:e.constraints,this.constraintCls=e.constraintCls,this.validationTypeOptions=e.validationTypeOptions,e.validationOptions&&(this.message=e.validationOptions.message,this.groups=e.validationOptions.groups,this.always=e.validationOptions.always,this.each=e.validationOptions.each,this.context=e.validationOptions.context)}return t})(),v8=(function(){function t(){}return t.prototype.transform=function(e){var r=[];return Object.keys(e.properties).forEach(function(n){e.properties[n].forEach(function(o){var s={message:o.message,groups:o.groups,always:o.always,each:o.each},l={type:o.type,name:o.name,target:e.name,propertyName:n,constraints:o.constraints,validationTypeOptions:o.options,validationOptions:s};r.push(new cd(l))})}),r},t})();function b8(t){return t instanceof Map?Array.from(t.values()):Array.isArray(t)?t:Array.from(t)}function x8(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}function Ag(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var w8=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Zw=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,s=[],l;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(c){l={error:c}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return s},S8=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,s;n<o;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))},fT=(function(){function t(){this.validationMetadatas=new Map,this.constraintMetadatas=new Map}return Object.defineProperty(t.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.size},enumerable:!1,configurable:!0}),t.prototype.addValidationSchema=function(e){var r=this,n=new v8().transform(e);n.forEach(function(o){return r.addValidationMetadata(o)})},t.prototype.addValidationMetadata=function(e){var r=this.validationMetadatas.get(e.target);r?r.push(e):this.validationMetadatas.set(e.target,[e])},t.prototype.addConstraintMetadata=function(e){var r=this.constraintMetadatas.get(e.target);r?r.push(e):this.constraintMetadatas.set(e.target,[e])},t.prototype.groupByPropertyName=function(e){var r={};return e.forEach(function(n){r[n.propertyName]||(r[n.propertyName]=[]),r[n.propertyName].push(n)}),r},t.prototype.getTargetValidationMetadatas=function(e,r,n,o,s){var l,c,u=function(E){return typeof E.always<"u"?E.always:E.groups&&E.groups.length?!1:n},f=function(E){return!!(o&&(!s||!s.length)&&E.groups&&E.groups.length)},h=this.validationMetadatas.get(e)||[],v=h.filter(function(E){return E.target!==e&&E.target!==r?!1:u(E)?!0:f(E)?!1:s&&s.length>0?E.groups&&!!E.groups.find(function(I){return s.indexOf(I)!==-1}):!0}),g=[];try{for(var y=w8(this.validationMetadatas.entries()),w=y.next();!w.done;w=y.next()){var x=Zw(w.value,2),C=x[0],R=x[1];e.prototype instanceof C&&g.push.apply(g,S8([],Zw(R),!1))}}catch(E){l={error:E}}finally{try{w&&!w.done&&(c=y.return)&&c.call(y)}finally{if(l)throw l.error}}var P=g.filter(function(E){return typeof E.target=="string"||E.target===e||E.target instanceof Function&&!(e.prototype instanceof E.target)?!1:u(E)?!0:f(E)?!1:s&&s.length>0?E.groups&&!!E.groups.find(function(I){return s.indexOf(I)!==-1}):!0}),M=P.filter(function(E){return!v.find(function(I){return I.propertyName===E.propertyName&&I.type===E.type})});return v.concat(M)},t.prototype.getTargetValidatorConstraints=function(e){return this.constraintMetadatas.get(e)||[]},t})();function Is(){var t=x8();return t.classValidatorMetadataStorage||(t.classValidatorMetadataStorage=new fT),t.classValidatorMetadataStorage}var eS=(function(){function t(){}return t.prototype.toString=function(e,r,n,o){var s=this;e===void 0&&(e=!1),r===void 0&&(r=!1),n===void 0&&(n=""),o===void 0&&(o=!1);var l=e?"\x1B[1m":"",c=e?"\x1B[22m":"",u=function(){var v;return(o?Object.values:Object.keys)((v=s.constraints)!==null&&v!==void 0?v:{}).join(", ")},f=function(v){return" - property ".concat(l).concat(n).concat(v).concat(c," has failed the following constraints: ").concat(l).concat(u()).concat(c,`
327
+ `)};if(r){var h=Number.isInteger(+this.property)?"[".concat(this.property,"]"):"".concat(n?".":"").concat(this.property);return this.constraints?f(h):this.children?this.children.map(function(v){return v.toString(e,!0,"".concat(n).concat(h),o)}).join(""):""}else return"An instance of ".concat(l).concat(this.target?this.target.constructor.name:"an object").concat(c,` has failed the validation:
328
+ `)+(this.constraints?f(this.property):"")+(this.children?this.children.map(function(v){return v.toString(e,!0,s.property,o)}).join(""):"")},t})(),wn=(function(){function t(){}return t.isValid=function(e){var r=this;return e!=="isValid"&&e!=="getMessage"&&Object.keys(this).map(function(n){return r[n]}).indexOf(e)!==-1},t.CUSTOM_VALIDATION="customValidation",t.NESTED_VALIDATION="nestedValidation",t.PROMISE_VALIDATION="promiseValidation",t.CONDITIONAL_VALIDATION="conditionalValidation",t.WHITELIST="whitelistValidation",t.IS_DEFINED="isDefined",t})();function C8(t){return Array.isArray(t)?t.join(", "):(typeof t=="symbol"&&(t=t.description),"".concat(t))}var T8=(function(){function t(){}return t.replaceMessageSpecialTokens=function(e,r){var n;return e instanceof Function?n=e(r):typeof e=="string"&&(n=e),n&&Array.isArray(r.constraints)&&r.constraints.forEach(function(o,s){n=n.replace(new RegExp("\\$constraint".concat(s+1),"g"),C8(o))}),n&&r.value!==void 0&&r.value!==null&&["string","boolean","number"].includes(typeof r.value)&&(n=n.replace(/\$value/g,r.value)),n&&(n=n.replace(/\$property/g,r.property)),n&&(n=n.replace(/\$target/g,r.targetName)),n},t})(),Jc=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,s=[],l;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(c){l={error:c}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return s},tS=(function(){function t(e,r){this.validator=e,this.validatorOptions=r,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=Is()}return t.prototype.execute=function(e,r,n){var o=this,s,l;!this.metadataStorage.hasValidationMetaData&&((s=this.validatorOptions)===null||s===void 0?void 0:s.enableDebugMessages)===!0&&console.warn(`No validation metadata found. No validation will be performed. There are multiple possible reasons:
329
+ - There may be multiple class-validator versions installed. You will need to flatten your dependencies to fix the issue.
330
+ - This validation runs before any file with validation decorator was parsed by NodeJS.`);var c=this.validatorOptions?this.validatorOptions.groups:void 0,u=this.validatorOptions&&this.validatorOptions.strictGroups||!1,f=this.validatorOptions&&this.validatorOptions.always||!1,h=((l=this.validatorOptions)===null||l===void 0?void 0:l.forbidUnknownValues)===void 0||this.validatorOptions.forbidUnknownValues!==!1,v=this.metadataStorage.getTargetValidationMetadatas(e.constructor,r,f,u,c),g=this.metadataStorage.groupByPropertyName(v);if(h&&!v.length){var y=new eS;(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(y.target=e),y.value=void 0,y.property=void 0,y.children=[],y.constraints={unknownValue:"an unknown value was passed to the validate function"},n.push(y);return}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(e,g,n),Object.keys(g).forEach(function(w){var x=e[w],C=g[w].filter(function(P){return P.type===wn.IS_DEFINED}),R=g[w].filter(function(P){return P.type!==wn.IS_DEFINED&&P.type!==wn.WHITELIST});x instanceof Promise&&R.find(function(P){return P.type===wn.PROMISE_VALIDATION})?o.awaitingPromises.push(x.then(function(P){o.performValidations(e,P,w,C,R,n)})):o.performValidations(e,x,w,C,R,n)})},t.prototype.whitelist=function(e,r,n){var o=this,s=[];Object.keys(e).forEach(function(l){(!r[l]||r[l].length===0)&&s.push(l)}),s.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?s.forEach(function(l){var c,u=o.generateValidationError(e,e[l],l);u.constraints=(c={},c[wn.WHITELIST]="property ".concat(l," should not exist"),c),u.children=void 0,n.push(u)}):s.forEach(function(l){return delete e[l]}))},t.prototype.stripEmptyErrors=function(e){var r=this;return e.filter(function(n){if(n.children&&(n.children=r.stripEmptyErrors(n.children)),Object.keys(n.constraints).length===0){if(n.children.length===0)return!1;delete n.constraints}return!0})},t.prototype.performValidations=function(e,r,n,o,s,l){var c=s.filter(function(g){return g.type===wn.CUSTOM_VALIDATION}),u=s.filter(function(g){return g.type===wn.NESTED_VALIDATION}),f=s.filter(function(g){return g.type===wn.CONDITIONAL_VALIDATION}),h=this.generateValidationError(e,r,n);l.push(h);var v=this.conditionalValidations(e,r,f);v&&(this.customValidations(e,r,o,h),this.mapContexts(e,r,o,h),!(r===void 0&&this.validatorOptions&&this.validatorOptions.skipUndefinedProperties===!0)&&(r===null&&this.validatorOptions&&this.validatorOptions.skipNullProperties===!0||r==null&&this.validatorOptions&&this.validatorOptions.skipMissingProperties===!0||(this.customValidations(e,r,c,h),this.nestedValidations(r,u,h),this.mapContexts(e,r,s,h),this.mapContexts(e,r,c,h))))},t.prototype.generateValidationError=function(e,r,n){var o=new eS;return(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(o.target=e),(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.value===void 0||this.validatorOptions.validationError.value===!0)&&(o.value=r),o.property=n,o.children=[],o.constraints={},o},t.prototype.conditionalValidations=function(e,r,n){return n.map(function(o){return o.constraints[0](e,r)}).reduce(function(o,s){return o&&s},!0)},t.prototype.customValidations=function(e,r,n,o){var s=this;n.forEach(function(l){s.metadataStorage.getTargetValidatorConstraints(l.constraintCls).forEach(function(c){if(!(c.async&&s.ignoreAsyncValidations)&&!(s.validatorOptions&&s.validatorOptions.stopAtFirstError&&Object.keys(o.constraints||{}).length>0)){var u={targetName:e.constructor?e.constructor.name:void 0,property:l.propertyName,object:e,value:r,constraints:l.constraints};if(!l.each||!(Array.isArray(r)||r instanceof Set||r instanceof Map)){var f=c.instance.validate(r,u);if(Ag(f)){var h=f.then(function(I){if(!I){var A=Jc(s.createValidationError(e,r,l,c),2),F=A[0],j=A[1];o.constraints[F]=j,l.context&&(o.contexts||(o.contexts={}),o.contexts[F]=Object.assign(o.contexts[F]||{},l.context))}});s.awaitingPromises.push(h)}else if(!f){var v=Jc(s.createValidationError(e,r,l,c),2),g=v[0],y=v[1];o.constraints[g]=y}return}var w=b8(r),x=w.map(function(I){return c.instance.validate(I,u)}),C=x.some(function(I){return Ag(I)});if(C){var R=x.map(function(I){return Ag(I)?I:Promise.resolve(I)}),P=Promise.all(R).then(function(I){var A=I.every(function(G){return G});if(!A){var F=Jc(s.createValidationError(e,r,l,c),2),j=F[0],H=F[1];o.constraints[j]=H,l.context&&(o.contexts||(o.contexts={}),o.contexts[j]=Object.assign(o.contexts[j]||{},l.context))}});s.awaitingPromises.push(P);return}var M=x.every(function(I){return I});if(!M){var E=Jc(s.createValidationError(e,r,l,c),2),g=E[0],y=E[1];o.constraints[g]=y}}})})},t.prototype.nestedValidations=function(e,r,n){var o=this;e!==void 0&&r.forEach(function(s){if(!(s.type!==wn.NESTED_VALIDATION&&s.type!==wn.PROMISE_VALIDATION)&&!(o.validatorOptions&&o.validatorOptions.stopAtFirstError&&Object.keys(n.constraints||{}).length>0))if(Array.isArray(e)||e instanceof Set||e instanceof Map){var l=e instanceof Set?Array.from(e):e;l.forEach(function(v,g){o.performValidations(e,v,g.toString(),[],r,n.children)})}else if(e instanceof Object){var c=typeof s.target=="string"?s.target:s.target.name;o.execute(e,c,n.children)}else{var u=Jc(o.createValidationError(s.target,e,s),2),f=u[0],h=u[1];n.constraints[f]=h}})},t.prototype.mapContexts=function(e,r,n,o){var s=this;return n.forEach(function(l){if(l.context){var c=void 0;if(l.type===wn.CUSTOM_VALIDATION){var u=s.metadataStorage.getTargetValidatorConstraints(l.constraintCls);c=u[0]}var f=s.getConstraintType(l,c);o.constraints[f]&&(o.contexts||(o.contexts={}),o.contexts[f]=Object.assign(o.contexts[f]||{},l.context))}})},t.prototype.createValidationError=function(e,r,n,o){var s=e.constructor?e.constructor.name:void 0,l=this.getConstraintType(n,o),c={targetName:s,property:n.propertyName,object:e,value:r,constraints:n.constraints},u=n.message||"";!n.message&&(!this.validatorOptions||this.validatorOptions&&!this.validatorOptions.dismissDefaultMessages)&&o&&o.instance.defaultMessage instanceof Function&&(u=o.instance.defaultMessage(c));var f=T8.replaceMessageSpecialTokens(u,c);return[l,f]},t.prototype.getConstraintType=function(e,r){var n=r&&r.name?r.name:e.type;return n},t})(),E8=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(l){l(s)})}return new(r||(r=Promise))(function(s,l){function c(h){try{f(n.next(h))}catch(v){l(v)}}function u(h){try{f(n.throw(h))}catch(v){l(v)}}function f(h){h.done?s(h.value):o(h.value).then(c,u)}f((n=n.apply(t,e||[])).next())})},k8=function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,o,s,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(f){return function(h){return u([f,h])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,f[0]&&(r=0)),r;)try{if(n=1,o&&(s=f[0]&2?o.return:f[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,f[1])).done)return s;switch(o=0,s&&(f=[f[0]&2,s.value]),f[0]){case 0:case 1:s=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,o=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){r.label=f[1];break}if(f[0]===6&&r.label<s[1]){r.label=s[1],s=f;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(f);break}s[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(h){f=[6,h],o=0}finally{n=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},rS=(function(){function t(){}return t.prototype.validate=function(e,r,n){return this.coreValidate(e,r,n)},t.prototype.validateOrReject=function(e,r,n){return E8(this,void 0,void 0,function(){var o;return k8(this,function(s){switch(s.label){case 0:return[4,this.coreValidate(e,r,n)];case 1:return o=s.sent(),o.length?[2,Promise.reject(o)]:[2]}})})},t.prototype.validateSync=function(e,r,n){var o=typeof e=="string"?r:e,s=typeof e=="string"?n:r,l=typeof e=="string"?e:void 0,c=new tS(this,s);c.ignoreAsyncValidations=!0;var u=[];return c.execute(o,l,u),c.stripEmptyErrors(u)},t.prototype.coreValidate=function(e,r,n){var o=typeof e=="string"?r:e,s=typeof e=="string"?n:r,l=typeof e=="string"?e:void 0,c=new tS(this,s),u=[];return c.execute(o,l,u),Promise.all(c.awaitingPromises).then(function(){return c.stripEmptyErrors(u)})},t})(),P8=new((function(){function t(){this.instances=[]}return t.prototype.get=function(e){var r=this.instances.find(function(n){return n.type===e});return r||(r={type:e,object:new e},this.instances.push(r)),r.object},t})());function Cf(t){return P8.get(t)}var R8=(function(){function t(e,r,n){n===void 0&&(n=!1),this.target=e,this.name=r,this.async=n}return Object.defineProperty(t.prototype,"instance",{get:function(){return Cf(this.target)},enumerable:!1,configurable:!0}),t})();function M8(t){var e;if(t.validator instanceof Function){e=t.validator;var r=Cf(fT).getTargetValidatorConstraints(t.validator);if(r.length>1)throw"More than one implementation of ValidatorConstraintInterface found for validator on: ".concat(t.target.name,":").concat(t.propertyName)}else{var n=t.validator;e=(function(){function s(){}return s.prototype.validate=function(l,c){return n.validate(l,c)},s.prototype.defaultMessage=function(l){return n.defaultMessage?n.defaultMessage(l):""},s})(),Is().addConstraintMetadata(new R8(e,t.name,t.async))}var o={type:t.name&&wn.isValid(t.name)?t.name:wn.CUSTOM_VALIDATION,name:t.name,target:t.target,propertyName:t.propertyName,validationOptions:t.options,constraintCls:e,constraints:t.constraints};Is().addValidationMetadata(new cd(o))}function ii(t,e){return function(r){var n=e&&e.each?"each value in ":"";return t(n,r)}}function ai(t,e){return function(r,n){M8({name:t.name,target:r.constructor,propertyName:n,options:e,constraints:t.constraints,validator:t.validator})}}var I8="isOptional";function V(t){return function(e,r){var n={type:wn.CONDITIONAL_VALIDATION,name:I8,target:e.constructor,propertyName:r,constraints:[function(o,s){return o[r]!==null&&o[r]!==void 0}],validationOptions:t};Is().addValidationMetadata(new cd(n))}}function $o(t,e){return function(r,n){var o={type:wn.CONDITIONAL_VALIDATION,target:r.constructor,propertyName:n,constraints:[t],validationOptions:e};Is().addValidationMetadata(new cd(o))}}var Sy=function(){return Sy=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Sy.apply(this,arguments)};function eo(t){var e=Sy({},t),r=e.each?"each value in ":"";return e.message=e.message||r+"nested property $property must be either object or array",function(n,o){var s={type:wn.NESTED_VALIDATION,target:n.constructor,propertyName:o,validationOptions:e};Is().addValidationMetadata(new cd(s))}}var jp={exports:{}},nS;function O0(){return nS||(nS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(n){if(n==null)throw new TypeError("Expected a string but received a ".concat(n));if(n.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(n.constructor.name))}t.exports=e.default,t.exports.default=e.default})(jp,jp.exports)),jp.exports}var _p={exports:{}},oS;function hT(){return oS||(oS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;for(var s in o)typeof n[s]>"u"&&(n[s]=o[s]);return n}t.exports=e.default,t.exports.default=e.default})(_p,_p.exports)),_p.exports}var Lp={exports:{}},iS;function A8(){return iS||(iS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(o,s){return o.indexOf(s)!==-1};e.default=r,t.exports=e.default,t.exports.default=e.default})(Lp,Lp.exports)),Lp.exports}var j8="isNotEmpty";function _8(t){return t!==""&&t!==null&&t!==void 0}function Ya(t){return ai({name:j8,validator:{validate:function(e,r){return _8(e)},defaultMessage:ii(function(e){return e+"$property should not be empty"},t)}},t)}var L8="isIn";function O8(t,e){return Array.isArray(e)&&e.some(function(r){return r===t})}function He(t,e){return ai({name:L8,constraints:[t],validator:{validate:function(r,n){return O8(r,n==null?void 0:n.constraints[0])},defaultMessage:ii(function(r){return r+"$property must be one of the following values: $constraint1"},e)}},e)}var N8="max";function $8(t,e){return typeof t=="number"&&typeof e=="number"&&t<=e}function Bs(t,e){return ai({name:N8,constraints:[t],validator:{validate:function(r,n){return $8(r,n==null?void 0:n.constraints[0])},defaultMessage:ii(function(r){return r+"$property must not be greater than $constraint1"},e)}},e)}var B8="min";function z8(t,e){return typeof t=="number"&&typeof e=="number"&&t>=e}function to(t,e){return ai({name:B8,constraints:[t],validator:{validate:function(r,n){return z8(r,n==null?void 0:n.constraints[0])},defaultMessage:ii(function(r){return r+"$property must not be less than $constraint1"},e)}},e)}var Op={exports:{}},aS;function D8(){return aS||(aS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function r(o){return Object.prototype.toString.call(o)==="[object RegExp]"}function n(o,s){for(var l=0;l<s.length;l++){var c=s[l];if(o===c||r(c)&&c.test(o))return!0}return!1}t.exports=e.default,t.exports.default=e.default})(Op,Op.exports)),Op.exports}var Np={exports:{}},sS;function F8(){return sS||(sS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=o(O0()),n=o(hT());function o(c){return c&&c.__esModule?c:{default:c}}var s={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function l(c,u){(0,r.default)(c),u=(0,n.default)(u,s),u.allow_trailing_dot&&c[c.length-1]==="."&&(c=c.substring(0,c.length-1)),u.allow_wildcard===!0&&c.indexOf("*.")===0&&(c=c.substring(2));var f=c.split("."),h=f[f.length-1];return u.require_tld&&(f.length<2||!u.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(h)||/\s/.test(h))||!u.allow_numeric_tld&&/^\d+$/.test(h)?!1:f.every(function(v){return!(v.length>63&&!u.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(v)||/[\uff01-\uff5e]/.test(v)||/^-|-$/.test(v)||!u.allow_underscores&&/_/.test(v))})}t.exports=e.default,t.exports.default=e.default})(Np,Np.exports)),Np.exports}var $p={exports:{}},lS;function H8(){return lS||(lS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=h;var r=n(O0());function n(v){return v&&v.__esModule?v:{default:v}}function o(v){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},o(v)}var s="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",l="(".concat(s,"[.]){3}").concat(s),c=new RegExp("^".concat(l,"$")),u="(?:[0-9a-fA-F]{1,4})",f=new RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(l,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(l,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(l,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(l,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(l,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(l,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(l,"|(?::").concat(u,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function h(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(v);var y=(o(g)==="object"?g.version:arguments[1])||"";return y?y.toString()==="4"?c.test(v):y.toString()==="6"?f.test(v):!1:h(v,{version:4})||h(v,{version:6})}t.exports=e.default,t.exports.default=e.default})($p,$p.exports)),$p.exports}var Bp={exports:{}},cS;function U8(){return cS||(cS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=R;var r=u(O0()),n=u(D8()),o=u(A8()),s=u(F8()),l=u(H8()),c=u(hT());function u(P){return P&&P.__esModule?P:{default:P}}function f(P,M){return w(P)||y(P,M)||v(P,M)||h()}function h(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
331
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(P,M){if(P){if(typeof P=="string")return g(P,M);var E={}.toString.call(P).slice(8,-1);return E==="Object"&&P.constructor&&(E=P.constructor.name),E==="Map"||E==="Set"?Array.from(P):E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?g(P,M):void 0}}function g(P,M){(M==null||M>P.length)&&(M=P.length);for(var E=0,I=Array(M);E<M;E++)I[E]=P[E];return I}function y(P,M){var E=P==null?null:typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(E!=null){var I,A,F,j,H=[],G=!0,N=!1;try{if(F=(E=E.call(P)).next,M!==0)for(;!(G=(I=F.call(E)).done)&&(H.push(I.value),H.length!==M);G=!0);}catch(k){N=!0,A=k}finally{try{if(!G&&E.return!=null&&(j=E.return(),Object(j)!==j))return}finally{if(N)throw A}}return H}}function w(P){if(Array.isArray(P))return P}var x={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},C=/^\[([^\]]+)\](?::([0-9]+))?$/;function R(P,M){if((0,r.default)(P),!P||/[\s<>]/.test(P)||P.indexOf("mailto:")===0||(M=(0,c.default)(M,x),M.validate_length&&P.length>M.max_allowed_length)||!M.allow_fragments&&(0,o.default)(P,"#")||!M.allow_query_components&&((0,o.default)(P,"?")||(0,o.default)(P,"&")))return!1;var E,I,A,F,j,H,G,N;G=P.split("#"),P=G.shift(),G=P.split("?"),P=G.shift();var k=P.match(/^([a-z][a-z0-9+\-.]*):/i),q=!1,U=function(De){return q=!0,E=De.toLowerCase(),M.require_valid_protocol&&M.protocols.indexOf(E)===-1?!1:P.substring(k[0].length)};if(k){var L=k[1],W=P.substring(k[0].length),K=W.slice(0,2)==="//";if(K){if(P=U(L),P===!1)return!1}else{var ee=W.indexOf("/"),Z=ee===-1?W:W.substring(0,ee),Q=Z.indexOf("@");if(Q!==-1){var X=Z.substring(0,Q),re=/^[a-zA-Z0-9\-_.%:]*$/,ce=re.test(X);if(ce){if(M.require_protocol)return!1}else if(P=U(L),P===!1)return!1}else{var Y=/^[0-9]/.test(W);if(Y){if(M.require_protocol)return!1}else if(P=U(L),P===!1)return!1}}}else if(M.require_protocol)return!1;if(P.slice(0,2)==="//"){if(!q&&!M.allow_protocol_relative_urls)return!1;P=P.slice(2)}if(P==="")return!1;if(G=P.split("/"),P=G.shift(),P===""&&!M.require_host)return!0;if(G=P.split("@"),G.length>1){if(M.disallow_auth||G[0]===""||(I=G.shift(),I.indexOf(":")>=0&&I.split(":").length>2))return!1;var ne=I.split(":"),J=f(ne,2),de=J[0],Ce=J[1];if(de===""&&Ce==="")return!1}F=G.join("@"),H=null,N=null;var he=F.match(C);if(he?(A="",N=he[1],H=he[2]||null):(G=F.split(":"),A=G.shift(),G.length&&(H=G.join(":"))),H!==null&&H.length>0){if(j=parseInt(H,10),!/^[0-9]+$/.test(H)||j<=0||j>65535)return!1}else if(M.require_port)return!1;return M.host_whitelist?(0,n.default)(A,M.host_whitelist):A===""&&!M.require_host?!0:!(!(0,l.default)(A)&&!(0,s.default)(A,M)&&(!N||!(0,l.default)(N,6))||(A=A||N,M.host_blacklist&&(0,n.default)(A,M.host_blacklist)))}t.exports=e.default,t.exports.default=e.default})(Bp,Bp.exports)),Bp.exports}var V8=U8();const W8=Of(V8);var q8="isUrl";function G8(t,e){return typeof t=="string"&&W8(t,e)}function hh(t,e){return ai({name:q8,constraints:[t],validator:{validate:function(r,n){return G8(r,n==null?void 0:n.constraints[0])},defaultMessage:ii(function(r){return r+"$property must be a URL address"},e)}},e)}var X8="isBoolean";function K8(t){return t instanceof Boolean||typeof t=="boolean"}function _t(t){return ai({name:X8,validator:{validate:function(e,r){return K8(e)},defaultMessage:ii(function(e){return e+"$property must be a boolean value"},t)}},t)}var Q8="isNumber";function Y8(t,e){if(e===void 0&&(e={}),typeof t!="number")return!1;if(t===1/0||t===-1/0)return!!e.allowInfinity;if(Number.isNaN(t))return!!e.allowNaN;if(e.maxDecimalPlaces!==void 0){var r=0;if(t%1!==0&&(r=t.toString().split(".")[1].length),r>e.maxDecimalPlaces)return!1}return Number.isFinite(t)}function wr(t,e){return t===void 0&&(t={}),ai({name:Q8,constraints:[t],validator:{validate:function(r,n){return Y8(r,n==null?void 0:n.constraints[0])},defaultMessage:ii(function(r){return r+"$property must be a number conforming to the specified constraints"},e)}},e)}var J8="isInt";function Z8(t){return typeof t=="number"&&Number.isInteger(t)}function sc(t){return ai({name:J8,validator:{validate:function(e,r){return Z8(e)},defaultMessage:ii(function(e){return e+"$property must be an integer number"},t)}},t)}var e9="isString";function t9(t){return t instanceof String||typeof t=="string"}function ie(t){return ai({name:e9,validator:{validate:function(e,r){return t9(e)},defaultMessage:ii(function(e){return e+"$property must be a string"},t)}},t)}var r9="isArray";function n9(t){return Array.isArray(t)}function rn(t){return ai({name:r9,validator:{validate:function(e,r){return n9(e)},defaultMessage:ii(function(e){return e+"$property must be an array"},t)}},t)}var o9="isObject";function i9(t){return t!=null&&(typeof t=="object"||typeof t=="function")&&!Array.isArray(t)}function a9(t){return ai({name:o9,validator:{validate:function(e,r){return i9(e)},defaultMessage:ii(function(e){return e+"$property must be an object"},t)}},t)}function s9(t,e,r){return typeof t=="string"?Cf(rS).validate(t,e,r):Cf(rS).validate(t,e)}var ud=Object.defineProperty,l9=Object.getOwnPropertyDescriptor,mT=Object.getOwnPropertyNames,c9=Object.prototype.hasOwnProperty,u9=(t,e,r)=>e in t?ud(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,si=(t,e)=>ud(t,"name",{value:e,configurable:!0}),d9=(t,e)=>function(){return t&&(e=(0,t[mT(t)[0]])(t=0)),e},p9=(t,e)=>{for(var r in e)ud(t,r,{get:e[r],enumerable:!0})},f9=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of mT(e))!c9.call(t,o)&&o!==r&&ud(t,o,{get:()=>e[o],enumerable:!(n=l9(e,o))||n.enumerable});return t},h9=t=>f9(ud({},"__esModule",{value:!0}),t),Yi=(t,e,r)=>(u9(t,typeof e!="symbol"?e+"":e,r),r),gT={};p9(gT,{MustacheTemplateProvider:()=>N0});var jg,N0,yT=d9({"src/providers/MustacheTemplateProvider.ts"(){jg=class{constructor(e=1){Yi(this,"max_passes"),this.max_passes=e,xo.escape=r=>r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}resolve(e,r){if(!e)return"";if(!e.includes("{{"))return e;try{let n=e;for(let o=0;o<this.max_passes;o++){const s=xo.render(n,r);if(s===n)break;n=s}return n}catch(n){throw new Error(`Template resolution failed: ${n instanceof Error?n.message:String(n)}`)}}},si(jg,"MustacheTemplateProvider"),N0=jg}}),ct=(function(t){return t.STRING="string",t.INTEGER="integer",t.NUMBER="number",t.BOOLEAN="boolean",t.OBJECT="object",t.ARRAY="array",t})({}),$=(function(t){return t.TEXT="text",t.TEXTAREA="textarea",t.NUMBER="number",t.INTEGER="integer",t.BOOLEAN="boolean",t.EMAIL="email",t.URL="url",t.IMAGE="image",t.FILE="file",t.DATE="date",t.DATE_TIME="datetime",t.SELECT="select",t.RADIO="radio",t.CHECKBOX="checkbox",t.COLOR="color",t.FORM="form",t.REPEATER="repeater",t.MODEL_REPEATER="model_repeater",t})({});function B(t={}){return function(e,r){var n;e.constructor._fields||(e.constructor._fields=[]);const o=Reflect.getMetadata("design:type",e,r);let s=t.dataType;!s&&o&&(o===String?s=ct.STRING:o===Number?s=ct.NUMBER:o===Boolean?s=ct.BOOLEAN:o===Array?s=ct.ARRAY:o===Object&&(s=ct.OBJECT)),e.constructor._fields.push({name:r,dataType:s,required:(n=t.required)!=null?n:!1,defaultValue:t.defaultValue,type:t.type,...t})}}si(B,"Field");function z(t){return function(e,r){e.constructor._editors||(e.constructor._editors=[]),e.constructor._editors.push({name:r,...t})}}si(z,"Editor");function Nt(t,e){return function(r){return typeof t=="string"?r.prototype.constructor._schema={name:t,version:e||"1.0.0"}:r.prototype.constructor._schema={version:"1.0.0",...t},r}}si(Nt,"Schema");var vT=class{static async validate(e){const r=new this;Object.assign(r,e);const n=this._fields||[],o=[];for(const l of n)l.required&&e[l.name]===void 0&&o.push(`Field '${l.name}' is required`);let s=[];try{s=await s9(r)}catch(l){o.push("Validation failed: "+l.message)}for(const l of s)l.constraints&&o.push(...Object.values(l.constraints));return{isValid:o.length===0,errors:o,validationErrors:s}}static validateSync(e){const r=this._fields||[],n=[];for(const o of r)o.required&&e[o.name]===void 0&&n.push(`Field '${o.name}' is required`);return{isValid:n.length===0,errors:n}}static getSchema(){const e=this._fields||[],r=this._editors||[],n=this._schema||{name:this.name,version:"1.0.0"},o=Is(),s=e.map(l=>{const c=r.find(h=>h.name===l.name),f=o.getTargetValidationMetadatas(this,this.prototype,!1,!1).filter(h=>h.propertyName===l.name).map(h=>({type:h.type,constraints:h.constraints}));return{name:l.name,data_type:l.dataType,required:l.required||!1,defaultValue:l.defaultValue,type:l.type,editor:c?{field_type:c.field_type,label:c.label,description:c.description,placeholder:c.placeholder,help_text:c.help_text,validation:c.validation}:void 0,...f.length>0&&{validation:f}}});return{name:n.name,version:n.version||"1.0.0",description:n.description,fields:s}}static createWithDefaults(e={}){const r=new this,n=this._fields||[];for(const o of n)o.defaultValue!==void 0&&e[o.name]===void 0&&(r[o.name]=o.defaultValue);return Object.assign(r,e),r}};si(vT,"Model");var lr=vT,bT=class{constructor(e,r){Yi(this,"field",{}),this.field.name=e,this.field.data_type=r,this.field.required=!1}required(e=!0){return this.field.required=e,this}defaultValue(e){return this.field.defaultValue=e,this}type(e){return this.field.type=e,this}editor(e){return this.field.editor={field_type:$.TEXT,label:this.field.name||"",description:"",...e},this}textEditor(e,r,n){return this.editor({field_type:$.TEXT,label:e,description:r,placeholder:n})}textareaEditor(e,r,n){return this.editor({field_type:$.TEXTAREA,label:e,description:r,placeholder:n})}selectEditor(e,r,n){return this.editor({field_type:$.SELECT,label:e,description:r,validation:{options:n}})}validation(e){return this.field.editor||(this.field.editor={field_type:$.TEXT,label:this.field.name||"",description:""}),this.field.editor.validation=e,this}build(){var e;if(!this.field.name||!this.field.data_type)throw new Error("Field name and data_type are required");return{name:this.field.name,data_type:this.field.data_type,required:(e=this.field.required)!=null?e:!1,defaultValue:this.field.defaultValue,type:this.field.type,editor:this.field.editor}}};si(bT,"FieldBuilder");var m9=bT,xT=class{constructor(e,r="1.0.0"){Yi(this,"schema",{fields:[]}),this.schema.name=e,this.schema.version=r}description(e){return this.schema.description=e,this}field(e,r){const n=new m9(e,r),o=n.build.bind(n);return n.build=()=>{const s=o();return this.schema.fields.push(s),s},n}addField(e){return this.schema.fields.push(e),this}addFields(e){return this.schema.fields.push(...e),this}uses(...e){return this.schema.uses||(this.schema.uses=[]),this.schema.uses.push(...e),this}build(){if(!this.schema.name||!this.schema.version)throw new Error("Schema name and version are required");if(!this.schema.fields||this.schema.fields.length===0)throw new Error("Schema must have at least one field");return{name:this.schema.name,version:this.schema.version,description:this.schema.description,uses:this.schema.uses,models:this.schema.models,fields:this.schema.fields}}};si(xT,"SchemaBuilder");var g9=xT;function y9(t,e="1.0.0"){return new g9(t,e)}si(y9,"createSchema");var wT=class{constructor(e={}){Yi(this,"cache",new Map),Yi(this,"config"),this.config={maxSize:100,defaultTtl:300*1e3,enableLogging:!1,...e},this.log("MemoryCacheProvider initialized",{config:this.config})}get(e){const r=this.cache.get(e);if(!r)return this.log(`Cache miss: ${e}`),null;const n=Date.now(),o=r.ttl||this.config.defaultTtl;return n-r.timestamp>o?(this.cache.delete(e),this.log(`Cache expired: ${e}`),null):(this.cache.delete(e),this.cache.set(e,r),this.log(`Cache hit: ${e}`),r.data)}set(e,r,n){if(this.cache.has(e)&&this.cache.delete(e),this.cache.size>=this.config.maxSize){const s=this.cache.keys().next().value;s&&(this.cache.delete(s),this.log(`LRU evicted: ${s}`))}const o={data:r,timestamp:Date.now(),ttl:n};this.cache.set(e,o),this.log(`Cache set: ${e}`,{ttl:n||this.config.defaultTtl})}clear(e){e?this.cache.delete(e)&&this.log(`Cache cleared: ${e}`):(this.cache.clear(),this.log("Cache cleared completely"))}getStats(){return{size:this.cache.size,maxSize:this.config.maxSize,keys:Array.from(this.cache.keys())}}cleanup(){const e=Date.now();let r=0;for(const[n,o]of this.cache.entries()){const s=o.ttl||this.config.defaultTtl;e-o.timestamp>s&&(this.cache.delete(n),r++)}return r>0&&this.log(`Cleanup removed ${r} expired entries`),r}log(e,r){this.config.enableLogging&&console.log(`[MemoryCacheProvider] ${e}`,r||"")}};si(wT,"MemoryCacheProvider");var Tf=wT,ST=class{constructor(e,r=!0){Yi(this,"cacheProvider"),Yi(this,"provider"),Yi(this,"config");var n,o,s;if(this.provider=e,r===!1)this.cacheProvider=null,this.config={defaultTTL:300*1e3,maxSize:100,enableLogging:!1};else if(r===!0)this.cacheProvider=new Tf,this.config={defaultTTL:300*1e3,maxSize:100,enableLogging:!1};else if("get"in r&&"set"in r)this.cacheProvider=r,this.config={defaultTTL:300*1e3,maxSize:100,enableLogging:!1};else{const l=r;this.cacheProvider=new Tf({maxSize:l.maxSize,defaultTtl:l.defaultTTL,enableLogging:l.enableLogging}),this.config={defaultTTL:(n=l.defaultTTL)!=null?n:300*1e3,maxSize:(o=l.maxSize)!=null?o:100,enableLogging:(s=l.enableLogging)!=null?s:!1}}}async get(e){if(!this.cacheProvider)return await this.provider.get(e);const r=`get:${e}`,n=this.cacheProvider.get(r);if(n)return this.log(`Cache hit for get(${e})`),{...await this.provider.get(e),data:n,cached:!0};this.log(`Cache miss for get(${e}), fetching from provider`);const o=await this.provider.get(e);return o.data&&this.cacheProvider.set(r,o.data,this.config.defaultTTL),{...o,cached:!1}}async select(e,r={}){if(!this.cacheProvider)return await this.provider.select(e,r);const n=`select:${e}:${JSON.stringify(r)}`,o=this.cacheProvider.get(n);if(o)return this.log(`Cache hit for select(${e})`),{...await this.provider.select(e,r),data:o,cached:!0};this.log(`Cache miss for select(${e}), fetching from provider`);const s=await this.provider.select(e,r);return s.data&&this.cacheProvider.set(n,s.data,this.config.defaultTTL),{...s,cached:!1}}clearCache(e){var r,n;if(!this.cacheProvider){this.log("No cache provider, nothing to clear");return}if(e)if(e.includes("*")){const o=(n=(r=this.cacheProvider).getStats)==null?void 0:n.call(r);if(o){const s=e.replace(/\*/g,".*"),l=new RegExp(s);for(const c of o.keys)l.test(c)&&(this.cacheProvider.clear(c),this.log(`Cleared cache key: ${c}`))}else this.log("Cache provider does not support pattern clearing")}else this.cacheProvider.clear(e),this.log(`Cleared cache key: ${e}`);else this.cacheProvider.clear(),this.log("Cleared all cache")}getCacheStats(){var e,r,n,o,s,l;if(!this.cacheProvider)return{totalEntries:0,validEntries:0,expiredEntries:0,maxSize:this.config.maxSize,defaultTTL:this.config.defaultTTL,cachingEnabled:!1};const c=(r=(e=this.cacheProvider).getStats)==null?void 0:r.call(e);return{totalEntries:(n=c==null?void 0:c.size)!=null?n:0,validEntries:(o=c==null?void 0:c.size)!=null?o:0,expiredEntries:0,maxSize:(s=c==null?void 0:c.maxSize)!=null?s:this.config.maxSize,defaultTTL:this.config.defaultTTL,cachingEnabled:!0,keys:(l=c==null?void 0:c.keys)!=null?l:[]}}setCacheEntryManually(e,r,n){if(!this.cacheProvider){this.log("No cache provider, cannot set cache entry manually");return}this.cacheProvider.set(e,r,n||this.config.defaultTTL),this.log(`Manually set cache entry: ${e} (TTL: ${n||this.config.defaultTTL}ms)`)}log(e){this.config.enableLogging&&console.log(`[CachedDataProvider] ${e}`)}};si(ST,"CachedDataProvider");var uS=ST,v9=class{constructor(e={},r=!0,n=1){if(Yi(this,"data"),e=this.convertDottedNotation(e.data||e),r){const{MustacheTemplateProvider:o}=(yT(),h9(gT)),s=new o(n);for(const l of Object.keys(e)){const c=e[l];if(typeof c=="string")e[l]=s.resolve(c,e);else if(typeof c=="object"){const u=JSON.stringify(c),f=s.resolve(u,e);e[l]=JSON.parse(f)}}}this.data=e}async get(e){const r=this.getValueByPath(e);return r===void 0?{data:void 0}:{data:Array.isArray(r)?r[0]:r,cached:!1,meta:{schema:this.inferModelName(e),version:"1.0.0",slug:e}}}async select(e,r={}){`${e}${JSON.stringify(r)}`;let o=this.findItemsBySchema(e);r.filters&&(o=this.applyFilters(o,r.filters)),r.sort&&r.sort!=="none"&&r.orderBy&&(o=this.applySorting(o,r.orderBy,r.sort));const s=o.length,l=r.offset||0,c=r.limit||s,f=o.slice(l,l+c).map(h=>h);return{data:f,cached:!1,meta:{schema:e,version:"1.0.0",total:s,offset:l,limit:Math.min(c,f.length)}}}updateData(e){this.data=this.convertDottedNotation(e)}convertDottedNotation(e){const r={};for(const[n,o]of Object.entries(e))if(n.includes(".")){const s=n.split(".");let l=r;for(let u=0;u<s.length-1;u++){const f=s[u];l[f]||(l[f]={}),l=l[f]}const c=s[s.length-1];l[c]=o}else o&&typeof o=="object"&&!Array.isArray(o)?r[n]=this.convertDottedNotation(o):r[n]=o;return r}getValueByPath(e){const r=e.replace(/^\//,"").split(/[/.]/);let n=this.data;for(const o of r){if(n==null)return;if(Array.isArray(n)&&!isNaN(Number(o)))n=n[Number(o)];else if(typeof n=="object"&&n!==null)n=n[o];else return}return n}findItemsBySchema(e){const r=[];return this.data[e]&&Array.isArray(this.data[e])&&r.push(...this.data[e]),this.searchObjectForSchema(this.data,e,r),r}searchObjectForSchema(e,r,n){typeof e!="object"||e===null||(Array.isArray(e)?e.forEach(o=>this.searchObjectForSchema(o,r,n)):((e.modelName===r||e.schema===r)&&n.push(e),Object.values(e).forEach(o=>{this.searchObjectForSchema(o,r,n)})))}applyFilters(e,r){return e.filter(n=>Object.entries(r).every(([o,s])=>this.getValueByPath.call({data:n},o)===s))}applySorting(e,r,n){return[...e].sort((o,s)=>{const l=this.getValueByPath.call({data:o},r),c=this.getValueByPath.call({data:s},r);return l<c?n==="asc"?-1:1:l>c?n==="asc"?1:-1:0})}inferModelName(e){return e.replace(/^\//,"").split("/")[0]||"unknown"}generateSlug(e,r){return`/${e.toLowerCase()}/${r}`}};si(v9,"JsonDataProvider");yT();const b9=Ie([p.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),p.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),CT=Ie(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),x9=Ie(p.jsx("path",{d:"M6.36 18.78 6.61 21l1.62-1.54 2.77-7.6c-.68-.17-1.28-.51-1.77-.98zm8.41-7.9c-.49.47-1.1.81-1.77.98l2.77 7.6L17.39 21l.26-2.22zM15 8c0-1.3-.84-2.4-2-2.82V3h-2v2.18C9.84 5.6 9 6.7 9 8c0 1.66 1.34 3 3 3s3-1.34 3-3m-3 1c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1"})),w9=Ie(p.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),S9=Ie(p.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"})),C9=Ie(p.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"})),T9=Ie(p.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"})),E9=Ie(p.jsx("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-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"})),k9=Ie(p.jsx("path",{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4"})),P9=Ie(p.jsx("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"})),TT=Ie(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"})),_g=Ie(p.jsx("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 4h5v8l-2.5-1.5L6 12z"})),dS=Ie(p.jsx("path",{d:"M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2m-3 6.42 3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4z"})),R9=Ie(p.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"})),Lg=Ie(p.jsx("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"})),ET=Ie(p.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),mh=Ie(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),M9=Ie(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2"})),I9=Ie(p.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"})),A9=Ie(p.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"})),j9=Ie(p.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),kT=Ie(p.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),PT=Ie(p.jsx("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"})),_9=Ie(p.jsx("path",{d:"m13.7826 15.1719 2.1213-2.1213 5.9963 5.9962-2.1213 2.1213zM17.5 10c1.93 0 3.5-1.57 3.5-3.5 0-.58-.16-1.12-.41-1.6l-2.7 2.7-1.49-1.49 2.7-2.7c-.48-.25-1.02-.41-1.6-.41C15.57 3 14 4.57 14 6.5c0 .41.08.8.21 1.16l-1.85 1.85-1.78-1.78.71-.71-1.41-1.41L12 3.49c-1.17-1.17-3.07-1.17-4.24 0L4.22 7.03l1.41 1.41H2.81l-.71.71 3.54 3.54.71-.71V9.15l1.41 1.41.71-.71 1.78 1.78-7.41 7.41 2.12 2.12L16.34 9.79c.36.13.75.21 1.16.21"})),RT=Ie(p.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),pS=Ie(p.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"})),L9=Ie(p.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"})),$0=Ie(p.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),O9=Ie(p.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),Cy=Ie(p.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),fS=Ie(p.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"})),B0=Ie(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),MT=Ie(p.jsx("path",{d:"m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z"})),N9=Ie(p.jsx("path",{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"})),$9=Ie(p.jsx("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"})),B9=Ie(p.jsx("path",{d:"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6m-7 2v2h14v-2z"})),z9=Ie(p.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),IT=Ie(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"})),AT=Ie(p.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),Ty=Ie(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),D9=Ie(p.jsx("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-.14 0-.27.01-.4.04-.39.08-.74.28-1.01.55-.18.18-.33.4-.43.64-.1.23-.16.49-.16.77v14c0 .27.06.54.16.78s.25.45.43.64c.27.27.62.47 1.01.55.13.02.26.03.4.03h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-8 11.17-1.41 1.42L6 12l3.59-3.59L11 9.83 8.83 12zm1-9.92c-.41 0-.75-.34-.75-.75s.34-.75.75-.75.75.34.75.75-.34.75-.75.75m2.41 11.34L13 14.17 15.17 12 13 9.83l1.41-1.42L18 12z"})),F9=Ie(p.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4l16-.02z"})),H9=Ie(p.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4h16z"})),U9=Ie(p.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),V9=Ie(p.jsx("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27z"})),of=Ie(p.jsx("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-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"})),jl=Ie(p.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7"})),Ey=Ie(p.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-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),W9=Ie(p.jsx("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"})),q9=Ie([p.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),p.jsx("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49q-.48-.405-1.08-.63L18 11h-2l-.3 1.49q-.6.225-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49q.48.405 1.08.63L16 21h2l.3-1.49q.6-.225 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")]),jT=Ie(p.jsx("path",{d:"M15 9H9v6h6zm-2 4h-2v-2h2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2zm-4 6H7V7h10z"})),G9=Ie(p.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),X9=Ie(p.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),K9=Ie(p.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"})),Q9=Ie(p.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"})),ky=Ie(p.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),Y9=Ie([p.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),p.jsx("path",{d:"M10.35 14.01C7.62 13.91 2 15.27 2 18v2h9.54c-2.47-2.76-1.23-5.89-1.19-5.99m9.08 4.01c.36-.59.57-1.28.57-2.02 0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4c.74 0 1.43-.22 2.02-.57L20.59 22 22 20.59zM16 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")]),J9=Ie(p.jsx("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02z"})),Z9=Ie(p.jsx("path",{d:"M8 5v14l11-7z"})),e7=Ie([p.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),p.jsx("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),hS=Ie(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),z0=Ie(p.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"})),t7=Ie(p.jsx("path",{d:"M15.55 5.55 11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48"})),r7=Ie(p.jsx("path",{d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18c-1.16.41-2 1.51-2 2.82 0 1.66 1.34 3 3 3s3-1.34 3-3c0-1.3-.84-2.4-2-2.82"})),n7=Ie(p.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"})),gh=Ie(p.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),o7=Ie(p.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z"})),i7=Ie(p.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"})),mS=Ie(p.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"})),a7=Ie(p.jsx("path",{d:"M9 16h6.5c1.38 0 2.5-1.12 2.5-2.5S16.88 11 15.5 11h-.05c-.24-1.69-1.69-3-3.45-3-1.4 0-2.6.83-3.16 2.02h-.16C7.17 10.18 6 11.45 6 13c0 1.66 1.34 3 3 3M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16.01H3V4.99h18z"})),s7=Ie(p.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"})),Og=Ie(p.jsx("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"})),l7=Ie(p.jsx("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"})),c7=Ie(p.jsx("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"})),_T=Ie(p.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"})),u7=Ie([p.jsx("path",{d:"M21 12.22C21 6.73 16.74 3 12 3c-4.69 0-9 3.65-9 9.28-.6.34-1 .98-1 1.72v2c0 1.1.9 2 2 2h1v-6.1c0-3.87 3.13-7 7-7s7 3.13 7 7V19h-8v2h8c1.1 0 2-.9 2-2v-1.22c.59-.31 1-.92 1-1.64v-2.3c0-.7-.41-1.31-1-1.62"},"0"),p.jsx("circle",{cx:"9",cy:"13",r:"1"},"1"),p.jsx("circle",{cx:"15",cy:"13",r:"1"},"2"),p.jsx("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6c-3.03 0-6.29 2.51-6.03 6.45 2.47-1.01 4.33-3.21 4.86-5.89 1.31 2.63 4 4.44 7.12 4.47"},"3")]),d7=Ie(p.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-8m0 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-4z"})),p7=Ie(p.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"})),f7=Ie(p.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"})),h7=Ie(p.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z"})),LT=Ie(p.jsx("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.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),OT=Ie(p.jsx("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 7M2 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 3zM7.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.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"})),m7=Ie(p.jsx("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"})),D0=Ie(p.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"})),g7=Ie(p.jsx("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}));var Qo;(function(t){t[t.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",t[t.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",t[t.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"})(Qo||(Qo={}));var y7=(function(){function t(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}return t.prototype.addTypeMetadata=function(e){this._typeMetadatas.has(e.target)||this._typeMetadatas.set(e.target,new Map),this._typeMetadatas.get(e.target).set(e.propertyName,e)},t.prototype.addTransformMetadata=function(e){this._transformMetadatas.has(e.target)||this._transformMetadatas.set(e.target,new Map),this._transformMetadatas.get(e.target).has(e.propertyName)||this._transformMetadatas.get(e.target).set(e.propertyName,[]),this._transformMetadatas.get(e.target).get(e.propertyName).push(e)},t.prototype.addExposeMetadata=function(e){this._exposeMetadatas.has(e.target)||this._exposeMetadatas.set(e.target,new Map),this._exposeMetadatas.get(e.target).set(e.propertyName,e)},t.prototype.addExcludeMetadata=function(e){this._excludeMetadatas.has(e.target)||this._excludeMetadatas.set(e.target,new Map),this._excludeMetadatas.get(e.target).set(e.propertyName,e)},t.prototype.findTransformMetadatas=function(e,r,n){return this.findMetadatas(this._transformMetadatas,e,r).filter(function(o){return!o.options||o.options.toClassOnly===!0&&o.options.toPlainOnly===!0?!0:o.options.toClassOnly===!0?n===Qo.CLASS_TO_CLASS||n===Qo.PLAIN_TO_CLASS:o.options.toPlainOnly===!0?n===Qo.CLASS_TO_PLAIN:!0})},t.prototype.findExcludeMetadata=function(e,r){return this.findMetadata(this._excludeMetadatas,e,r)},t.prototype.findExposeMetadata=function(e,r){return this.findMetadata(this._exposeMetadatas,e,r)},t.prototype.findExposeMetadataByCustomName=function(e,r){return this.getExposedMetadatas(e).find(function(n){return n.options&&n.options.name===r})},t.prototype.findTypeMetadata=function(e,r){return this.findMetadata(this._typeMetadatas,e,r)},t.prototype.getStrategy=function(e){var r=this._excludeMetadatas.get(e),n=r&&r.get(void 0),o=this._exposeMetadatas.get(e),s=o&&o.get(void 0);return n&&s||!n&&!s?"none":n?"excludeAll":"exposeAll"},t.prototype.getExposedMetadatas=function(e){return this.getMetadata(this._exposeMetadatas,e)},t.prototype.getExcludedMetadatas=function(e){return this.getMetadata(this._excludeMetadatas,e)},t.prototype.getExposedProperties=function(e,r){return this.getExposedMetadatas(e).filter(function(n){return!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===Qo.CLASS_TO_CLASS||r===Qo.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===Qo.CLASS_TO_PLAIN:!0}).map(function(n){return n.propertyName})},t.prototype.getExcludedProperties=function(e,r){return this.getExcludedMetadatas(e).filter(function(n){return!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===Qo.CLASS_TO_CLASS||r===Qo.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===Qo.CLASS_TO_PLAIN:!0}).map(function(n){return n.propertyName})},t.prototype.clear=function(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()},t.prototype.getMetadata=function(e,r){var n=e.get(r),o;n&&(o=Array.from(n.values()).filter(function(v){return v.propertyName!==void 0}));for(var s=[],l=0,c=this.getAncestors(r);l<c.length;l++){var u=c[l],f=e.get(u);if(f){var h=Array.from(f.values()).filter(function(v){return v.propertyName!==void 0});s.push.apply(s,h)}}return s.concat(o||[])},t.prototype.findMetadata=function(e,r,n){var o=e.get(r);if(o){var s=o.get(n);if(s)return s}for(var l=0,c=this.getAncestors(r);l<c.length;l++){var u=c[l],f=e.get(u);if(f){var h=f.get(n);if(h)return h}}},t.prototype.findMetadatas=function(e,r,n){var o=e.get(r),s;o&&(s=o.get(n));for(var l=[],c=0,u=this.getAncestors(r);c<u.length;c++){var f=u[c],h=e.get(f);h&&h.has(n)&&l.push.apply(l,h.get(n))}return l.slice().reverse().concat((s||[]).slice().reverse())},t.prototype.getAncestors=function(e){if(!e)return[];if(!this._ancestorsMap.has(e)){for(var r=[],n=Object.getPrototypeOf(e.prototype.constructor);typeof n.prototype<"u";n=Object.getPrototypeOf(n.prototype.constructor))r.push(n);this._ancestorsMap.set(e,r)}return this._ancestorsMap.get(e)},t})(),v7=new y7;function ro(t,e){return e===void 0&&(e={}),function(r,n){var o=Reflect.getMetadata("design:type",r,n);v7.addTypeMetadata({target:r.constructor,propertyName:n,reflectedType:o,typeFunction:t,options:e})}}var gS={};const Py={xs:0,sm:600,md:900,lg:1200,xl:1536},yS={"extra-small":"xs",small:"sm",medium:"md",large:"lg","extra-large":"xl"};function vS(t){return t===!1||t===void 0?!1:t in Py?t:t in yS?yS[t]:"lg"}const b7={width:{tiny:120,small:200,medium:300,large:400,"x-large":500,huge:600},height:{tiny:200,small:300,medium:400,large:500,"x-large":600,huge:800},maxWidth:{tiny:300,small:600,medium:900,large:1200,"x-large":1536,huge:1920},maxHeight:{tiny:200,small:400,medium:600,large:800,"x-large":1e3,huge:1200},minWidth:{tiny:50,small:100,medium:200,large:300,"x-large":400,huge:500},minHeight:{tiny:50,small:100,medium:200,large:300,"x-large":400,huge:500}},x7=/^(\d+(\.\d+)?(px|%|em|rem|vh|vw|fr|ch|ex)|auto|inherit|initial|unset|min-content|max-content|fit-content)$/;function jo(t,e="width"){if(t==null)return;if(typeof t=="number")return t;if(t==="auto")return"auto";if(t==="grow")return"1";const r=b7[e];if(r&&t in r)return r[t];if((e==="maxWidth"||e==="width")&&t in Py)return Py[t];if(typeof t=="string")return x7.test(t)||console.warn(`[QwickApps] Invalid CSS dimension value: "${t}". Using as-is but consider using a valid CSS value or t-shirt size.`),t}function w7(t){return{width:jo(t.width,"width"),height:jo(t.height,"height"),minWidth:jo(t.minWidth,"minWidth"),minHeight:jo(t.minHeight,"minHeight"),maxWidth:jo(t.maxWidth,"maxWidth"),maxHeight:jo(t.maxHeight,"maxHeight")}}const Zc={none:0,tiny:.5,small:1,medium:2,large:3,huge:4},bS=/^(\d+(\.\d+)?(px|em|rem|%)|0|auto|inherit|initial|unset)$/;function Mn(t){if(t!=null){if(typeof t=="number")return t;if(t in Zc)return Zc[t];if(typeof t=="string"){const e=t.split(" ");return e.length>1&&e.every(n=>bS.test(n)||n in Zc)?e.map(n=>n in Zc?`${Zc[n]*8}px`:n).join(" "):(bS.test(t)||console.warn(`[QwickApps] Invalid CSS spacing value: "${t}". Using as-is but consider using a valid CSS value or t-shirt size.`),t)}}}function S7(t){const e={};return t.padding!==void 0&&(e.p=Mn(t.padding)),t.paddingTop!==void 0&&(e.pt=Mn(t.paddingTop)),t.paddingRight!==void 0&&(e.pr=Mn(t.paddingRight)),t.paddingBottom!==void 0&&(e.pb=Mn(t.paddingBottom)),t.paddingLeft!==void 0&&(e.pl=Mn(t.paddingLeft)),t.paddingX!==void 0&&(e.px=Mn(t.paddingX)),t.paddingY!==void 0&&(e.py=Mn(t.paddingY)),t.margin!==void 0&&(e.m=Mn(t.margin)),t.marginTop!==void 0&&(e.mt=Mn(t.marginTop)),t.marginRight!==void 0&&(e.mr=Mn(t.marginRight)),t.marginBottom!==void 0&&(e.mb=Mn(t.marginBottom)),t.marginLeft!==void 0&&(e.ml=Mn(t.marginLeft)),t.marginX!==void 0&&(e.mx=Mn(t.marginX)),t.marginY!==void 0&&(e.my=Mn(t.marginY)),e}const _n=Symbol("QwickAppComponent");function Tn(t){const{span:e,xs:r,sm:n,md:o,lg:s,xl:l,className:c,sx:u,style:f,width:h,height:v,minWidth:g,minHeight:y,maxWidth:w,maxHeight:x,padding:C,paddingTop:R,paddingRight:P,paddingBottom:M,paddingLeft:E,paddingX:I,paddingY:A,margin:F,marginTop:j,marginRight:H,marginBottom:G,marginLeft:N,marginX:k,marginY:q,background:U,backgroundImage:L,backgroundGradient:W,textAlign:K,id:ee,role:Z,"aria-label":Q,"aria-labelledby":X,"aria-describedby":re,"data-testid":ce,onClick:Y,onMouseEnter:ne,onMouseLeave:J,onFocus:de,onBlur:Ce,...he}=t,se=S.useMemo(()=>e||r||n||o||s||l?{span:e,xs:e||r,sm:e||n,md:e||o,lg:e||s,xl:e||l}:null,[e,r,n,o,s,l]),De=S.useMemo(()=>w7({width:h,height:v,minWidth:g,minHeight:y,maxWidth:w,maxHeight:x}),[h,v,g,y,w,x]),Ne=S.useMemo(()=>S7({padding:C,paddingTop:R,paddingRight:P,paddingBottom:M,paddingLeft:E,paddingX:I,paddingY:A,margin:F,marginTop:j,marginRight:H,marginBottom:G,marginLeft:N,marginX:k,marginY:q}),[C,R,P,M,E,I,A,F,j,H,G,N,k,q]),Oe=S.useMemo(()=>{const Ke={};return W?Ke.background=W:L?(Ke.backgroundImage=`url(${L})`,Ke.backgroundSize="cover",Ke.backgroundPosition="center",Ke.backgroundRepeat="no-repeat"):U&&(Ke.background=U),K&&(Ke.textAlign=K),Ke},[U,L,W,K]),Be=S.useMemo(()=>({...De,...Ne,...Oe,...u}),[De,Ne,Oe,u]);return{gridProps:se,styleProps:{className:c,sx:Be,style:f},htmlProps:{id:ee,role:Z,"aria-label":Q,"aria-labelledby":X,"aria-describedby":re,"data-testid":ce,onClick:Y,onMouseEnter:ne,onMouseLeave:J,onFocus:de,onBlur:Ce},restProps:he}}class C7{constructor(e){this.name=e}debug(e,...r){console.debug(`[${this.name}] ${e}`,...r)}info(e,...r){console.info(`[${this.name}] ${e}`,...r)}warn(e,...r){console.warn(`[${this.name}] ${e}`,...r)}error(e,...r){console.error(`[${this.name}] ${e}`,...r)}}function yi(t){try{return require("@qwickapps/logging").getLogger(t)}catch{return new C7(t)}}const T7={scaffold:yi("Scaffold"),navigation:yi("Navigation"),auth:yi("Auth"),theme:yi("Theme"),palette:yi("Palette"),form:yi("Form"),layout:yi("Layout"),menu:yi("Menu"),router:yi("Router")};class E7{constructor(e){this.log=yi("ContentResolver"),this.enableLogging=e.enableLogging||!1,this.templateResolver=e.templateResolver||new N0,e.cacheProvider===!0?(new Tf({enableLogging:e.enableLogging||!1}),this.dataProvider=new uS(e.dataProvider)):e.cacheProvider===!1?this.dataProvider=e.dataProvider:(new Tf({enableLogging:e.enableLogging||!1}),this.dataProvider=new uS(e.dataProvider)),this.log.debug("ContentResolver initialized",{dataProvider:e.dataProvider?e.dataProvider.constructor.name:"none",templateResolver:this.templateResolver.constructor.name,cacheProvider:e.cacheProvider?e.cacheProvider===!0?"MemoryCacheProvider(default)":e.cacheProvider.constructor.name:"disabled"})}async get(e){return this.dataProvider.get(e)}async select(e,r){return this.dataProvider.select(e,r)}async resolveTemplate(e){if(this.log.debug(`Resolving template: ${e}`),!e||!e.includes("{{"))return e;const r=await this.createLazyContext(e);try{const n=this.templateResolver.resolve(e,r);return this.log.debug(`Template resolved: ${e} -> ${n}`),n}catch(n){throw this.log.debug(`Template resolution failed: ${n instanceof Error?n.message:String(n)}`),n}}async createLazyContext(e){const r=/\{\{([^}]+)\}\}/g,n=Array.from(e.matchAll(r)),o=new Set;for(const l of n){const c=l[1].trim(),[u]=c.split(".");o.add(u)}const s={};for(const l of o)try{const c=await this.select(l);if(c.data&&c.data.length>0)s[l]=c.data[0];else{const u=await this.get(l);u.data&&(s[l]=u.data)}}catch(c){this.log.error(`Failed to load data for ${l}: ${c instanceof Error?c.message:String(c)}`)}return s}}const F0=S.createContext(null);function k7({dataSource:t,children:e}){const r=new E7(t),n={provider:r,get:async o=>{const s=await r.get(o);return s&&s.data?s.data:void 0},select:async(o,s)=>{const l=await r.select(o,s);return l&&Array.isArray(l.data)?l.data:[]},resolveTemplate:o=>r.resolveTemplate(o)};return p.jsx(F0.Provider,{value:n,children:e})}function P7(){const t=S.useContext(F0);if(!t)throw new Error("useDataContext must be used within a DataProvider. Did you wrap your component with <DataProvider>?");return t}function R7(t){const e=S.useContext(F0),[r,n]=S.useState(void 0),[o,s]=S.useState(!0),[l,c]=S.useState(null);return S.useEffect(()=>{if(!e){s(!1);return}(async()=>{if(!t){s(!1);return}try{s(!0),c(null);const f=await e.get(t);n(f),s(!1)}catch(f){c(f instanceof Error?f:new Error(String(f))),s(!1)}})()},[e,t]),e?{data:r,loading:o,error:l}:{data:void 0,loading:!1,error:null}}function M7(t){const{resolveTemplate:e}=P7(),[r,n]=S.useState(t),[o,s]=S.useState(!1),[l,c]=S.useState(null);return S.useEffect(()=>{let u=!0;async function f(){if(!t){n(t);return}try{s(!0),c(null);const h=await e(t);u&&(n(h),s(!1))}catch(h){u&&(c(h instanceof Error?h:new Error(String(h))),n(t),s(!1))}}return f(),()=>{u=!1}},[t,e]),{resolved:r,loading:o,error:l}}function NT(t){const{resolved:e,loading:r,error:n}=M7(t);return r?null:n?`[Template Error: ${n.message}]`:e}function cu(t,...e){const r=String.raw(t,...e),n=()=>NT(r);return p.jsx(n,{})}cu.wrap=t=>(e,...r)=>{const n=String.raw(e,...r),o=()=>{const s=NT(n);return s?p.jsx(t,{children:s}):null};return p.jsx(o,{})};function Oi(t,e){const r=t&&t.trim().length>0,n=R7(r?t:""),o=S.useMemo(()=>!r||n.data===void 0?e||{}:{...e||{},...n.data},[r,n.data,e]);return{...o,$loading:n.loading,$error:n.error,$dataSource:t,$cached:!1,...Object.prototype.hasOwnProperty.call(o,"loading")?{}:{loading:n.loading},...Object.prototype.hasOwnProperty.call(o,"error")?{}:{error:n.error},cached:!1}}const $T=Mt.createContext({appName:"QwickApps",logo:void 0,appId:!0,enableScaffolding:!1,navigationItems:[],appBar:void 0,showAppBar:!0,appBarHeight:64,showThemeSwitcher:!1,showPaletteSwitcher:!1,updateConfig:()=>{}}),H0=()=>{const t=Mt.useContext($T);if(!t)throw new Error("useQwickApp must be used within a QwickApp provider");return t},I7=t=>{if(typeof document>"u"||typeof window>"u")return;document.documentElement.setAttribute("data-theme",t),window.dispatchEvent(new CustomEvent("themeChange",{detail:{theme:t}}))},A7={id:"default",name:"Default",description:"Classic blue and neutral colors",primaryColor:"#007bff"},j7={id:"autumn",name:"Autumn",description:"Warm oranges and golden yellows",primaryColor:"#ea580c"},_7={id:"ocean",name:"Ocean",description:"Deep blues and aqua teals",primaryColor:"#0891b2"},L7={id:"spring",name:"Spring",description:"Fresh greens and soft pinks",primaryColor:"#16a34a"},O7={id:"winter",name:"Winter",description:"Cool blues and icy whites",primaryColor:"#0077be"},N7={id:"cosmic",name:"Cosmic",description:"Modern purple gradient for creative and tech brands",primaryColor:"#8b5cf6"},$7=[A7,_7,N7,O7,j7,L7],xS=t=>{if(!t||typeof window>"u")return null;try{const e=localStorage.getItem(t);if(e&&["light","dark","system"].includes(e))return e}catch(e){console.warn("[persistenceUtils] Theme localStorage read failed:",e)}return null},B7=(t,e)=>{if(!(!t||typeof window>"u"))try{localStorage.setItem(t,e)}catch(r){console.warn("[persistenceUtils] Theme localStorage write failed:",r)}},z7=t=>{if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(e){console.warn("[persistenceUtils] Theme localStorage clear failed:",e)}},wS=(t,e)=>{if(!t||typeof window>"u")return null;try{const r=localStorage.getItem(t);if(r&&e.includes(r))return r}catch(r){console.warn("[persistenceUtils] Palette localStorage read failed:",r)}return null},D7=(t,e)=>{if(!(!t||typeof window>"u"))try{localStorage.setItem(t,e)}catch(r){console.warn("[persistenceUtils] Palette localStorage write failed:",r)}},F7=t=>{if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(e){console.warn("[persistenceUtils] Palette localStorage clear failed:",e)}},H7={enableRemote:!0,remoteUrl:"https://qwickapps.com/palettes/manifest.json",localPath:"/palettes/manifest.json"};let xl=null,SS=!1;async function CS(t){try{const e=await fetch(t,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(5e3)});if(!e.ok)return console.warn(`[PaletteManifest] Failed to fetch from ${t}: ${e.status} ${e.statusText}`),null;const r=await e.json();return!r.version||!Array.isArray(r.palettes)?(console.warn(`[PaletteManifest] Invalid manifest structure from ${t}`),null):r}catch{return null}}function U7(...t){const e=new Map;let r="0.0.0";for(const n of t)if(n){n.version>r&&(r=n.version);for(const o of n.palettes)e.set(o.id,o)}return{version:r,palettes:Array.from(e.values())}}async function V7(t={}){if(xl)return xl;if(SS)return TS();SS=!0;const e={...H7,...t},r=[];if(e.enableRemote){const o=await CS(e.remoteUrl);r.push(o)}if(typeof window<"u"){const o=await CS(e.localPath);r.push(o)}const n=U7(...r);return n.palettes.length===0?(xl=TS(),xl):(xl=n,xl)}function TS(){return{version:"1.4.9",palettes:[{id:"default",name:"Default",description:"Classic blue and neutral color scheme",version:"1.4.9",file:"PaletteDefault.css",primaryColor:"#007bff",inlined:!0},{id:"autumn",name:"Autumn",description:"Warm oranges, golden yellows, and earthy browns",version:"1.4.9",file:"PaletteAutumn.css",primaryColor:"#ea580c",inlined:!1},{id:"cosmic",name:"Cosmic",description:"Modern purple gradient for creative and tech brands",version:"1.4.9",file:"PaletteCosmic.css",primaryColor:"#8b5cf6",inlined:!1},{id:"ocean",name:"Ocean",description:"Deep blues, aqua teals, and seafoam greens",version:"1.4.9",file:"PaletteOcean.css",primaryColor:"#0891b2",inlined:!1},{id:"spring",name:"Spring",description:"Fresh greens, soft pinks, and bright yellows",version:"1.4.9",file:"PaletteSpring.css",primaryColor:"#16a34a",inlined:!1},{id:"winter",name:"Winter",description:"Cool blues, icy whites, and frosty grays",version:"1.4.9",file:"PaletteWinter.css",primaryColor:"#0077be",inlined:!1}]}}async function W7(t,e){return(await V7(e)).palettes.find(n=>n.id===t)||null}const Ia=new Set,bi=new Map,ES=["https://qwickapps.com/palettes/","/palettes/"];let q7={enableRemote:!0};async function G7(t,e){if(Ia.has(t))return Promise.resolve();if(bi.has(t))return bi.get(t);const r=X7(t,e);return bi.set(t,r),r}async function X7(t,e){const r={...q7,...e};if(t==="default"){Ia.add(t),bi.delete(t);return}if(typeof document>"u"){Ia.add(t),bi.delete(t);return}if(document.querySelector(`link[data-palette-id="${t}"]`)){Ia.add(t),bi.delete(t);return}try{const o=await W7(t,r);if(!o){Ia.add(t),bi.delete(t);return}if(o.inlined){Ia.add(t),bi.delete(t);return}const c=!!1&&o.fileMinified?o.fileMinified:o.file,u=[];r.enableRemote&&u.push(`${ES[0]}${c}`),u.push(`${ES[1]}${c}`);let f=!1;for(const h of u)if(await K7(h,t)){f=!0;break}Ia.add(t),bi.delete(t)}catch{Ia.add(t),bi.delete(t)}}function K7(t,e){return new Promise(r=>{const n=document.createElement("link");n.rel="stylesheet",n.href=t,n.setAttribute("data-palette-id",e),n.onload=()=>{r(!0)},n.onerror=()=>{document.head.removeChild(n),r(!1)},document.head.appendChild(n)})}const BT=S.createContext(null),zT=()=>{const t=S.useContext(BT);if(!t)throw new Error("usePalette must be used within a PaletteProvider");return t},xs=$7,kS=(t,e=!0)=>t&&xs.some(r=>r.id===t)?t:(e&&console.warn(`[PaletteProvider] Invalid defaultPalette '${t}'. Using 'default'.`),"default"),Q7=({children:t,appId:e,defaultPalette:r="default"})=>{const n=Mt.useMemo(()=>{if(e===!1)return null;if(typeof e=="string")return`${e}.palette`;const x="qwickapps-react-framework-palette";return console.warn(`[PaletteProvider] Using default storage key '${x}'. Consider providing an appId for production apps to avoid conflicts. Example: <PaletteProvider appId="com.mycompany.myapp">`),x},[e]),o=xs.map(x=>x.id),[s,l]=S.useState(()=>wS(n,o)),[c,u]=S.useState(()=>wS(n,o)||kS(r));S.useEffect(()=>{typeof document<"u"&&G7(c).then(()=>{document.documentElement.setAttribute("data-palette",c),setTimeout(()=>{const x=new CustomEvent("palette-changed",{detail:{palette:c}});window.dispatchEvent(x)},50)}).catch(x=>{console.error(`[PaletteContext] Failed to load palette "${c}":`,x),document.documentElement.setAttribute("data-palette",c);const C=new CustomEvent("palette-changed",{detail:{palette:c}});window.dispatchEvent(C)})},[c]);const w={currentPalette:c,preferredPalette:s,availablePalettes:xs,isPersistent:n!==null,setPreferredPalette:x=>{xs.find(R=>R.id===x)?(l(x),u(x),D7(n,x)):console.warn(`Palette "${x}" not found. Available palettes:`,xs.map(R=>R.id))},clearPreferredPalette:()=>{l(null),F7(n);const x=kS(r,!1);u(x)},getPreferredPalette:()=>s,getCurrentPalette:()=>c,setCurrentPalette:x=>{xs.find(R=>R.id===x)?u(x):console.warn(`Palette "${x}" not found. Available palettes:`,xs.map(R=>R.id))}};return p.jsx(BT.Provider,{value:w,children:t})},DT=S.createContext(null),FT=()=>{const t=S.useContext(DT);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t},PS=(t,e=!0)=>t&&["light","dark","system"].includes(t)?t:(e&&console.warn(`[ThemeProvider] Invalid defaultTheme '${t}'. Using 'system'.`),"system"),Y7=({children:t,appId:e,includePalette:r=!0,defaultTheme:n="light",defaultPalette:o})=>{const l=Mt.useMemo(()=>{if(e===!1)return null;if(typeof e=="string")return`${e}.theme`;const j="qwickapps-react-framework-theme";return console.warn(`[ThemeProvider] Using default storage key '${j}'. Consider providing an appId for production apps to avoid conflicts. Example: <ThemeProvider appId="com.mycompany.myapp">`),j},[e]),[c,u]=S.useState(()=>xS(l)),[f,h]=S.useState(()=>xS(l)||PS(n)),[v,g]=S.useState(0),y=e8("(prefers-color-scheme: dark)"),w=f==="system"?y?"dark":"light":f;S.useEffect(()=>{if(typeof window<"u"){const j=()=>{g(G=>G+1)},H=()=>{g(G=>G+1)};return window.addEventListener("palette-changed",j),window.addEventListener("theme-changed",H),()=>{window.removeEventListener("palette-changed",j),window.removeEventListener("theme-changed",H)}}},[]),S.useEffect(()=>{if(typeof window<"u"){const j=new CustomEvent("theme-changed",{detail:{theme:w}});window.dispatchEvent(j)}},[w]),S.useEffect(()=>{typeof window<"u"&&I7(w)},[w]);const x=j=>typeof window<"u"&&typeof document<"u"?getComputedStyle(document.documentElement).getPropertyValue(j).trim():"",C=Mt.useMemo(()=>{const j=w==="dark",H=x("--theme-primary-light")||(j?"#87ceeb":"#4a90e2"),G=x("--theme-primary")||(j?"#90caf9":"#1976d2"),N=x("--theme-primary-dark")||(j?"#1a365d":"#0056b3"),k=x("--theme-on-primary")||(j?"#000000":"#ffffff"),q=x("--theme-secondary-light")||(j?"#adb5bd":"#868e96"),U=x("--theme-secondary")||(j?"#f48fb1":"#dc004e"),L=x("--theme-secondary-dark")||(j?"#6c757d":"#495057"),W=x("--theme-on-secondary")||(j?"#b0b0b0":"#666666"),K=x("--theme-error-light")||(j?"#f9c2c2":"#f5c6cb"),ee=x("--theme-error")||(j?"#f87171":"#dc3545"),Z=x("--theme-error-dark")||(j?"#b91c1c":"#a71d2a"),Q=x("--theme-warning-light")||(j?"#fbbf24":"#ffc107"),X=x("--theme-warning")||(j?"#fbbf24":"#ffc107"),re=x("--theme-warning-dark")||(j?"#b57c00":"#856404"),ce=x("--theme-info-light")||(j?"#60a5fa":"#007acc"),Y=x("--theme-info")||(j?"#60a5fa":"#007acc"),ne=x("--theme-info-dark")||(j?"#1e3a8a":"#0d6efd"),J=x("--theme-success-light")||(j?"#4ade80":"#28a745"),de=x("--theme-success")||(j?"#4ade80":"#28a745"),Ce=x("--theme-success-dark")||(j?"#1f9e3d":"#1c7430"),he=x("--theme-background")||(j?"#121212":"#ffffff"),se=x("--theme-surface")||(j?"#1e1e1e":"#ffffff"),De=x("--theme-text-primary")||(j?"#ffffff":"#000000"),Ne=x("--theme-text-secondary")||(j?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.6)"),Oe=x("--theme-on-disabled")||(j?"rgba(255, 255, 255, 0.38)":"rgba(0, 0, 0, 0.38)");return eh({palette:{mode:w,primary:{main:G,light:H,dark:N,contrastText:k},secondary:{main:U,light:q,dark:L,contrastText:W},error:{light:K,main:ee,dark:Z},warning:{light:Q,main:X,dark:re},info:{light:ce,main:Y,dark:ne},background:{default:he,paper:se},text:{primary:De,secondary:Ne,disabled:Oe},success:{light:J,main:de,dark:Ce}},typography:{fontFamily:'"Segoe UI", "Roboto", "Arial", sans-serif'},components:{MuiButton:{styleOverrides:{root:{textTransform:"none"}}}}})},[w,v]),A={currentTheme:f,preferredTheme:c,actualThemeMode:w,theme:C,isDark:w==="dark",isPersistent:l!==null,setPreferredTheme:j=>{u(j),h(j),B7(l,j)},clearPreferredTheme:()=>{u(null),z7(l);const j=PS(n,!1);h(j)},getPreferredTheme:()=>c,getCurrentTheme:()=>f,setCurrentTheme:j=>{h(j)}},F=p.jsx(DT.Provider,{value:A,children:p.jsx(pI,{theme:C,children:t})});return r?p.jsx(Q7,{appId:e,defaultPalette:o,children:F}):F},Ry={theme:"light",palette:void 0,hideScaffolding:!0,hideInteractiveElements:!1,optimizeForMonochrome:!1,showPrintDate:!0,pageMargins:"12mm"};function J7(t,e){switch(e.type){case"TRIGGER_PRINT":return t.printModeState==="normal"?{...t,printModeState:"applying_print_config",printConfig:e.config?{...Ry,...e.config}:Ry}:t;case"APPLY_CONFIG":return t.printModeState==="applying_print_config"?{...t,printModeState:"entering_print_mode"}:t;case"VIEW_LOADING":return t.printModeState==="entering_print_mode"?{...t,printModeState:"view_loading"}:t;case"VIEW_READY":return t.printModeState==="view_loading"?{...t,printModeState:"config_applied"}:t.printModeState==="exiting_print_mode"?{...t,printModeState:"restoring_config"}:t;case"CONFIG_APPLIED":return t.printModeState==="config_applied"?{...t,printModeState:"print_mode"}:t;case"EXIT_PRINT_MODE":return t.printModeState!=="normal"&&t.printModeState!=="exiting_print_mode"&&t.printModeState!=="restoring_config"?{...t,printModeState:"exiting_print_mode"}:t;case"RESTORE_CONFIG":return t.printModeState==="restoring_config"?{...t,printModeState:"normal"}:t;case"SET_ORIGINAL_THEME":return{...t,originalTheme:e.theme};case"SET_ORIGINAL_PALETTE":return{...t,originalPalette:e.palette};default:return t}}const HT=S.createContext(null),Z7=()=>{const t=S.useContext(HT);if(!t)throw new Error("usePrintMode must be used within a PrintModeProvider");return t},eB=({children:t})=>{const[e,r]=S.useReducer(J7,{printModeState:"normal",printConfig:Ry,originalTheme:null,originalPalette:null}),{updateConfig:n}=H0(),{setCurrentTheme:o,getCurrentTheme:s}=FT(),{setCurrentPalette:l,getCurrentPalette:c}=zT(),u=e.printModeState==="entering_print_mode"||e.printModeState==="view_loading"||e.printModeState==="config_applied"||e.printModeState==="print_mode",f=S.useCallback(w=>{r({type:"TRIGGER_PRINT",config:w})},[]),h=S.useCallback(()=>{r({type:"EXIT_PRINT_MODE"})},[]),v=S.useCallback(()=>{r({type:"VIEW_LOADING"})},[]),g=S.useCallback(()=>{r({type:"VIEW_READY"})},[]);S.useEffect(()=>{if(e.printModeState==="applying_print_config"){if(e.printConfig.hideScaffolding&&n({enableScaffolding:!1}),e.printConfig.theme&&(r({type:"SET_ORIGINAL_THEME",theme:s()}),o(e.printConfig.theme)),e.printConfig.palette&&(r({type:"SET_ORIGINAL_PALETTE",palette:c()}),l(e.printConfig.palette)),typeof document<"u"&&(document.body.classList.add("print-mode"),e.printConfig.optimizeForMonochrome&&document.body.classList.add("print-monochrome"),e.printConfig.hideInteractiveElements&&document.body.classList.add("print-hide-interactive"),e.printConfig.pageMargins&&e.printConfig.pageMargins!=="12mm")){let w=document.querySelector("#qwick-print-margins");w||(w=document.createElement("style"),w.id="qwick-print-margins",document.head.appendChild(w)),w.textContent=`
332
+ @media print {
333
+ @page {
334
+ margin: ${e.printConfig.pageMargins};
335
+ }
336
+ }
337
+ `}r({type:"APPLY_CONFIG"})}},[e.printModeState,e.printConfig,n,s,c,o,l]),S.useEffect(()=>{if(e.printModeState==="config_applied"){const w=requestAnimationFrame(()=>{r({type:"CONFIG_APPLIED"})});return()=>cancelAnimationFrame(w)}},[e.printModeState]),S.useEffect(()=>{e.printModeState==="exiting_print_mode"&&r({type:"VIEW_READY"})},[e.printModeState]),S.useEffect(()=>{if(e.printModeState==="restoring_config"){if(n({enableScaffolding:!0}),e.originalTheme&&o(e.originalTheme),e.originalPalette&&l(e.originalPalette),typeof document<"u"){document.body.classList.remove("print-mode","print-monochrome","print-hide-interactive");const w=document.querySelector("#qwick-print-margins");w&&w.remove()}r({type:"RESTORE_CONFIG"})}},[e.printModeState,e.originalTheme,e.originalPalette,n,o,l]),S.useEffect(()=>{e.printModeState==="print_mode"&&typeof window<"u"&&window.print()},[e.printModeState]),S.useEffect(()=>{const w=()=>{f()},x=()=>{h()};if(typeof window<"u")return window.addEventListener("beforeprint",w),window.addEventListener("afterprint",x),()=>{window.removeEventListener("beforeprint",w),window.removeEventListener("afterprint",x)}},[h,f]);const y={printModeState:e.printModeState,isPrintMode:u,printConfig:e.printConfig,triggerPrint:f,exitPrintMode:h,onViewLoading:v,onViewReady:g};return p.jsx(HT.Provider,{value:y,children:t})};function tB(){const t=Z7();return{isPrintMode:t.isPrintMode,printConfig:t.printConfig,printModeState:t.printModeState,enterPrintMode:t.triggerPrint,exitPrintMode:t.exitPrintMode,togglePrintMode:e=>{t.isPrintMode?t.exitPrintMode():t.triggerPrint(e)},triggerPrint:t.triggerPrint,onViewLoading:t.onViewLoading,onViewReady:t.onViewReady}}function rB(t){const e={};for(const[r,n]of Object.entries(t))if(typeof n=="string"&&n.trim())try{const o=new Function("event",n);e[r]=o}catch(o){console.warn(`Invalid event handler string for ${r}:`,n,o)}else typeof n=="function"&&(e[r]=n);return e}function nB(t){if(t){if(typeof t=="string")try{return JSON.parse(t)}catch(e){console.warn("Invalid sx JSON string:",t,e);return}return t}}function oB(t){if(t){if(typeof t=="string")try{return JSON.parse(t)}catch(e){console.warn("Invalid style JSON string:",t,e);return}return t}}function wl(t){if(t!=null){if(typeof t=="number")return t;if(typeof t=="string"){if(t==="auto"||t==="grow")return t;const e=parseInt(t,10);if(!isNaN(e)&&e>0)return e}}}function iB(t){const{sx:e,style:r,onClick:n,onMouseEnter:o,onMouseLeave:s,onFocus:l,onBlur:c,span:u,xs:f,sm:h,md:v,lg:g,xl:y,backgroundColor:w,...x}=t,C=nB(e),R=oB(r),P=rB({onClick:n,onMouseEnter:o,onMouseLeave:s,onFocus:l,onBlur:c}),M={span:wl(u),xs:wl(f),sm:wl(h),md:wl(v),lg:wl(g),xl:wl(y)},E=x.background??w,I={...x,...M,sx:C,style:R,...P,background:E};return delete I.backgroundColor,I}function My(t){if(!(t==null||typeof t=="boolean")){if(typeof t=="string"||typeof t=="number")return String(t);if(Array.isArray(t))return t.map(My).filter(Boolean).join("")}}function no(t){const{tagName:e,version:r,role:n,View:o,childrenStrategy:s={mode:"react-children"},finalize:l}=t;function c(f){const{dataSource:h,bindingOptions:v,children:g,...y}=f;let w=y;if(s.mode==="content-prop"){const H=s.propName||"content";if(w[H]==null){const G=My(g);typeof G=="string"&&(w={...w,[H]:G})}}const x=iB(w),{loading:C,error:R,...P}=Oi(h||void 0,x,void 0,h?{...v}:{});let M=x;h&&!R&&(M={...x,...P});const{gridProps:E,styleProps:I,htmlProps:A,restProps:F}=Tn(M);if(h&&C)return p.jsx("div",{children:"Loading..."});if(h&&R)return console.error("Data binding error:",R),p.jsxs("div",{style:{color:"red",padding:"1rem",border:"1px solid red"},children:["Error loading data: ",R.message]});let j={...F,...I,...A,...n==="container"&&E?{gridProps:E}:{}};return l&&(j=l(j)),s.mode==="content-prop"?p.jsx(o,{...j}):p.jsx(o,{...j,children:g})}const u=c;return u.tagName=e,u.version=r,u[_n]=_n,u.fromJson=function(h){const v=h,{tagName:g,version:y,data:w}=v;if(g!==e)throw new Error(`Tag name mismatch: expected ${e}, got ${g}`);if(y!==r&&console.warn(`Version mismatch for ${e}: expected ${r}, got ${y}`),s.mode==="content-prop"){const x=s.propName||"content",{children:C,...R}=w||{},P={...R,[x]:(w==null?void 0:w[x])||""};return Mt.createElement(u,P)}else{const x={...w};return w.children!==void 0&&(x.children=ComponentTransformer.deserialize(w.children)),Mt.createElement(u,x)}},u.toJson=function(h){if(s.mode==="content-prop"){const v=s.propName||"content",{children:g,...y}=h||{},w=(h==null?void 0:h[v])??My(h==null?void 0:h.children),x={};for(const[C,R]of Object.entries(y))typeof R=="function"&&C.startsWith("on")?x[C]=R.toString():typeof R!="function"&&R!==void 0&&R!==null&&(x[C]=R);return{tagName:e,version:r,data:{...x,[v]:w||""}}}else{const v={};for(const[g,y]of Object.entries(h))if(typeof y=="function"&&g.startsWith("on"))v[g]=y.toString();else{if(typeof y=="function")continue;(g==="children"||y!=null)&&(v[g]=y)}return{tagName:e,version:r,data:v}}},u.displayName=`SerializableView(${e})`,u}function aB({children:t,gridProps:e,...r}){return p.jsx(be,{...r,...e?{"data-grid":JSON.stringify(e)}:{},component:"div",children:t})}const sB=no({tagName:"Container",version:"1.0.0",role:"container",View:aB});function lB({content:t,language:e="text",showCopy:r=!0,showLineNumbers:n=!1,title:o,wrapLines:s=!1,codeBackground:l,...c}){var I;const u=Jn(),[f,h]=S.useState(!1),[v,g]=S.useState(!1),y=((I=c.sx)==null?void 0:I.maxHeight)||400,w=t||"";if(!(w!=null&&w.trim()))return p.jsx(Ir,{...c,variant:"outlined",sx:{p:3,textAlign:"center",opacity:.6,...c.sx},children:p.jsx(je,{variant:"body2",color:"text.secondary",children:"No code content provided"})});const x=async()=>{try{await navigator.clipboard.writeText(w),h(!0),g(!0),setTimeout(()=>h(!1),2e3)}catch(A){console.error("Failed to copy code:",A)}},C=w.split(`
338
+ `),R=()=>l||u.palette.grey[u.palette.mode==="dark"?900:50],P=()=>u.palette.grey[u.palette.mode==="dark"?800:200],M=()=>u.palette.text.primary,E=()=>u.palette.divider;return p.jsxs(Ir,{...c,variant:"outlined",sx:{backgroundColor:R(),border:`1px solid ${E()}`,borderRadius:1,overflow:"hidden",position:"relative",...c.sx},children:[(o||r)&&p.jsxs(be,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:1,backgroundColor:P(),borderBottom:`1px solid ${E()}`},children:[o&&p.jsx(je,{variant:"body2",sx:{fontFamily:'Monaco, Consolas, "Ubuntu Mono", monospace',color:M(),opacity:.8},children:o}),p.jsx(be,{sx:{ml:"auto"},children:r&&p.jsx(Jr,{title:f?"Copied!":"Copy code",children:p.jsx(mr,{size:"small",onClick:x,sx:{color:M(),opacity:.7,"&:hover":{opacity:1,backgroundColor:u.palette.action.hover}},children:f?p.jsx(ET,{fontSize:"small"}):p.jsx(RT,{fontSize:"small"})})})})]}),p.jsx(be,{sx:{maxHeight:y,overflow:"auto",position:"relative"},children:p.jsx(be,{component:"pre",sx:{margin:0,padding:2,fontFamily:'Monaco, Consolas, "Ubuntu Mono", monospace',fontSize:"0.875rem",lineHeight:1.5,color:M(),backgroundColor:"transparent",overflow:s?"visible":"auto",whiteSpace:s?"pre-wrap":"pre",wordBreak:s?"break-word":"normal"},children:n?p.jsxs(be,{sx:{display:"flex"},children:[p.jsx(be,{sx:{pr:2,mr:2,borderRight:`1px solid ${E()}`,color:M(),opacity:.5,userSelect:"none",minWidth:`${String(C.length).length+1}ch`},children:C.map((A,F)=>p.jsx(be,{sx:{textAlign:"right"},children:F+1},F))}),p.jsx(be,{sx:{flex:1,minWidth:0},children:p.jsx("code",{children:w})})]}):p.jsx("code",{children:w})})}),p.jsx(sT,{open:v,autoHideDuration:2e3,onClose:()=>g(!1),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:p.jsx(Un,{onClose:()=>g(!1),severity:"success",variant:"filled",children:"Code copied to clipboard!"})})]})}const _l=no({tagName:"Code",version:"1.0.0",role:"view",View:lB,childrenStrategy:{mode:"content-prop",propName:"content"}});_l.registerPatternHandlers=t=>{t.hasPattern&&(t.hasPattern("pre code")||t.registerPattern("pre code",_l.transformPreCode),t.hasPattern("code.highlight")||t.registerPattern("code.highlight",_l.transformCodeHighlight))};_l.transformPreCode=t=>{var n;const e=t.querySelector("code");return e?{tagName:"Code",props:{language:((n=Array.from(e.classList).find(o=>o.startsWith("language-")))==null?void 0:n.replace("language-",""))||"text",showCopy:!0,showLineNumbers:!1,content:e.textContent||""}}:null};_l.transformCodeHighlight=t=>{var r;return{tagName:"Code",props:{language:((r=Array.from(t.classList).find(n=>n.startsWith("language-")))==null?void 0:r.replace("language-",""))||"text",showCopy:!0,showLineNumbers:!1,content:t.textContent||""}}};const cB={home:{emoji:"🏠",component:AT},menu:{emoji:"☰",component:G9},dashboard:{emoji:"📊",component:L9},info:{emoji:"ℹ️",component:Ty},about:{emoji:"ℹ️",component:Ty},help:{emoji:"❓",component:IT},book:{emoji:"📖",component:_g},email:{emoji:"📧",component:fS},contact:{emoji:"📧",component:fS},phone:{emoji:"📱",component:J9},send:{emoji:"📤",component:i7},add:{emoji:"➕",component:CT},edit:{emoji:"✏️",component:Cy},delete:{emoji:"🗑️",component:$0},save:{emoji:"💾",component:n7},check:{emoji:"✓",component:ET},close:{emoji:"✕",component:I9},arrowforward:{emoji:"→",component:C9},arrowback:{emoji:"←",component:w9},search:{emoji:"🔍",component:gh},share:{emoji:"🔗",component:s7},download:{emoji:"⬇️",component:O9},clouddownload:{emoji:"☁️⬇️",component:A9},cloudupload:{emoji:"☁️⬆️",component:j9},person:{emoji:"👤",component:ky},user:{emoji:"👤",component:ky},group:{emoji:"👥",component:z9},favorite:{emoji:"❤️",component:MT},star:{emoji:"⭐",component:c7},verified_user:{emoji:"✅",component:h7},business:{emoji:"🏢",component:Lg},shoppingcart:{emoji:"🛒",component:Og},cart:{emoji:"🛒",component:Og},attachmoney:{emoji:"💰",component:k9},lock:{emoji:"🔒",component:Ey},lockopen:{emoji:"🔓",component:W9},visibility:{emoji:"👁️",component:LT},visibilityoff:{emoji:"🙈",component:OT},settings:{emoji:"⚙️",component:mS},computer:{emoji:"💻",component:PT},article:{emoji:"📰",component:E9},blog:{emoji:"📝",component:_g},news:{emoji:"📰",component:_g},products:{emoji:"🛍️",component:Og},services:{emoji:"⚙️",component:mS},portfolio:{emoji:"💼",component:Lg},gallery:{emoji:"🖼️",component:Lg},inventory:{emoji:"📦",component:F9},inventory_2:{emoji:"📦",component:H9},speed:{emoji:"⚡",component:l7},support_agent:{emoji:"🛎️",component:u7},tune:{emoji:"🎛️",component:f7},code:{emoji:"💻",component:kT},psychology:{emoji:"🧠",component:e7},autorenew:{emoji:"🔄",component:P9},integration_instructions:{emoji:"🔌",component:D9},construction:{emoji:"🚧",component:_9},work:{emoji:"💼",component:g7},layers:{emoji:"📚",component:V9},trending_up:{emoji:"📈",component:p7},route:{emoji:"🗺️",component:r7},sync:{emoji:"🔄",component:d7},architecture:{emoji:"🏛️",component:x9},security:{emoji:"🔐",component:o7},key:{emoji:"🔑",component:U9},vpn_key:{emoji:"🔐",component:m7},person_search:{emoji:"🔍",component:Y9},manage_accounts:{emoji:"👥",component:q9},storage:{emoji:"💾",component:_T},refresh:{emoji:"🔄",component:z0},block:{emoji:"🚫",component:TT},check_circle:{emoji:"✅",component:mh},rotate_right:{emoji:"🔄",component:t7},memory:{emoji:"🧠",component:jT},local_offer:{emoji:"🏷️",component:jl}};function Iy(t){if(!t)return null;const e=cB[t.toLowerCase()];if(!(e!=null&&e.component))return console.warn(`[IconMap] Icon "${t}" not found in registry`),null;const r=e.component;return p.jsx(r,{})}const UT=Mt.forwardRef((t,e)=>{const{label:r,variant:n="primary",color:o,buttonSize:s="medium",icon:l,endIcon:c,href:u,target:f="_self",onClick:h,action:v,disabled:g=!1,loading:y=!1,fullWidth:w=!1,children:x,...C}=t,R=()=>{switch(n){case"primary":return"contained";case"secondary":return"contained";case"outlined":return"outlined";case"text":return"text";case"contained":return"contained";default:return"contained"}},P=()=>{if(o)return o;switch(n){case"primary":return"primary";case"secondary":return"secondary";case"outlined":return"primary";case"text":return"primary";case"contained":return"primary";default:return"primary"}},M=()=>{const j=R(),H=P();return j==="contained"?{backgroundColor:`var(--theme-${H})`,color:`var(--theme-on-${H})`,"&:hover":{backgroundColor:`var(--theme-${H}-dark)`},"&.Mui-disabled":{backgroundColor:"var(--theme-text-disabled)",color:"var(--theme-on-surface)"}}:j==="outlined"?{borderColor:`var(--theme-${H})`,color:`var(--theme-${H})`,"&:hover":{borderColor:`var(--theme-${H}-dark)`,backgroundColor:`var(--theme-${H}-light)`},"&.Mui-disabled":{borderColor:"var(--theme-border-main)",color:"var(--theme-text-disabled)"}}:{color:`var(--theme-${H})`,"&:hover":{backgroundColor:`var(--theme-${H}-light)`},"&.Mui-disabled":{color:"var(--theme-text-disabled)"}}},E=Mt.useCallback(j=>{if(v)switch(j.preventDefault(),v.type){case"navigate":v.url&&(v.target==="_blank"?window.open(v.url,"_blank","noopener,noreferrer"):window.location.href=v.url);break;case"submit":if(v.form){const H=document.getElementById(v.form);H instanceof HTMLFormElement&&H.requestSubmit()}break;case"external":v.url&&window.open(v.url,v.target||"_blank","noopener,noreferrer");break;case"custom":if(v.customHandler&&typeof window<"u"){const H=window[v.customHandler];typeof H=="function"&&H(j)}break}h&&h(j)},[v,h]),I=!!(u&&!g&&!y),A={variant:R(),size:s,disabled:g||y,fullWidth:w,...C,sx:{...M(),textTransform:"none",...y&&{"& .MuiButton-startIcon":{marginRight:1}},...C.sx||{}},startIcon:y?p.jsx(vo,{size:16,color:"inherit","aria-label":"Loading"}):l,endIcon:y?void 0:c};if(I){const j={...A,component:"a",href:u,target:f,rel:f==="_blank"?"noopener noreferrer":void 0,onClick:void 0};return p.jsx(_u,{ref:e,...j,children:r||x})}const F={...A,onClick:g||y?void 0:v?E:h};return p.jsx(_u,{ref:e,...F,children:r||x})});UT.displayName="ButtonView";const Rr=no({tagName:"Button",version:"1.0.0",role:"view",View:UT,finalize:t=>{const e={...t};if(typeof t.icon=="string"){const r=Iy(t.icon);e.icon=r||void 0}if(typeof t.endIcon=="string"){const r=Iy(t.endIcon);e.endIcon=r||void 0}return e}});Rr.registerPatternHandlers=t=>{t.hasPattern("button")||t.registerPattern("button",uB),t.hasPattern('input[type="button"]')||t.registerPattern('input[type="button"]',dB),t.hasPattern('input[type="submit"]')||t.registerPattern('input[type="submit"]',pB)};function uB(t){const e=t.getAttribute("data-variant")||(t.className.includes("btn-primary")?"primary":t.className.includes("btn-outlined")?"outlined":"secondary"),r=t.hasAttribute("disabled"),n=t.getAttribute("data-href"),o=t.getAttribute("data-target");return{tagName:"Button",props:{label:t.textContent||"Button",variant:e,disabled:r,href:n||void 0,target:o||void 0}}}function dB(t){const e=t.hasAttribute("disabled");return{tagName:"Button",props:{label:t.getAttribute("value")||"Button",variant:"secondary",disabled:e}}}function pB(t){const e=t.hasAttribute("disabled");return{tagName:"Button",props:{label:t.getAttribute("value")||"Submit",variant:"primary",disabled:e,type:"submit"}}}function fB({content:t,variant:e="body1",color:r="inherit",align:n="inherit",component:o="p",fontWeight:s="inherit",textDecoration:l="none",textTransform:c="none",noWrap:u=!1,paragraph:f=!1,gutterBottom:h=!1,fontSize:v,lineHeight:g,letterSpacing:y,fontFamily:w,customColor:x,maxWidth:C,className:R,style:P,...M}){const E=t||"";if(!E)return null;const I={...P};return v&&(I.fontSize=v),g&&(I.lineHeight=g),y&&(I.letterSpacing=y),w&&(I.fontFamily=w),x&&(I.color=x),C&&(I.maxWidth=C),s!=="inherit"&&(I.fontWeight=s),l!=="none"&&(I.textDecoration=l),c!=="none"&&(I.textTransform=c),M.onClick&&(I.cursor="pointer"),p.jsx(je,{...M,variant:e,color:r,align:n,component:o,noWrap:u,paragraph:f,gutterBottom:h,className:`text ${R||""}`.trim(),style:I,children:E})}const jt=no({tagName:"Text",version:"1.0.0",role:"view",View:fB,childrenStrategy:{mode:"content-prop",propName:"content"}});jt.registerPatternHandlers=t=>{const e=jt;t.hasPattern("p")||t.registerPattern("p",e.transformParagraph),["h1","h2","h3","h4","h5","h6"].forEach(n=>{t.hasPattern(n)||t.registerPattern(n,o=>e.transformHeading(o,n))}),t.hasPattern("span")||t.registerPattern("span",e.transformSpan)};jt.transformParagraph=t=>({tagName:"Text",version:"1.0.0",data:{variant:"body1",component:"p",content:t.textContent||""}});jt.transformHeading=(t,e)=>({tagName:"Text",version:"1.0.0",data:{variant:{h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"}[e]||"h4",component:e,content:t.textContent||""}});jt.transformSpan=t=>({tagName:"Text",version:"1.0.0",data:{variant:"body2",component:"span",content:t.textContent||""}});function hB({title:t="",subtitle:e,backgroundImage:r,backgroundGradient:n,backgroundColor:o="primary",actions:s=[],children:l,textAlign:c="center",blockHeight:u="medium",overlayOpacity:f=.5,gridProps:h,...v}){const g=Jn(),y=()=>{switch(u){case"small":return 300;case"medium":return 400;case"large":return 600;case"viewport":return"100vh";default:return 400}},w=()=>{if(r||n)return"transparent";switch(o){case"primary":return g.palette.primary.main;case"secondary":return g.palette.secondary.main;case"surface":return g.palette.background.paper;default:return g.palette.background.default}},x=()=>{switch(o){case"primary":return g.palette.primary.contrastText;case"secondary":return g.palette.secondary.contrastText;case"surface":return g.palette.getContrastText(g.palette.background.paper);default:return g.palette.text.primary}};return p.jsxs(be,{component:"section",...v,...h?{"data-grid":JSON.stringify(h)}:{},sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",minHeight:y(),backgroundColor:w(),color:x(),backgroundImage:r?`url(${r})`:n||"none",backgroundSize:r?"cover":"auto",backgroundPosition:r?"center":"initial",backgroundRepeat:"no-repeat",overflow:"hidden",...v.sx},children:[r&&p.jsx(be,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.4)",opacity:f,zIndex:1}}),p.jsx(wf,{maxWidth:"md",sx:{position:"relative",zIndex:2,textAlign:c,py:4},children:p.jsxs(Bw,{spacing:3,alignItems:c==="center"?"center":c==="right"?"flex-end":"flex-start",children:[p.jsx(jt,{variant:"h2",component:"h1",customColor:"var(--theme-on-primary)",sx:{fontWeight:700,fontSize:{xs:"2rem",sm:"2.5rem",md:"3rem",lg:"3.5rem"},lineHeight:1.2,maxWidth:"800px"},children:t}),e&&p.jsx(jt,{variant:"h5",component:"p",customColor:"var(--theme-on-primary)",fontWeight:"400",sx:{opacity:.9,maxWidth:"600px"},children:e}),s.length>0&&p.jsx(Bw,{direction:"row",spacing:2,sx:{mt:2,flexWrap:"wrap",gap:1,justifyContent:c==="center"?"center":c==="right"?"flex-end":"flex-start"},children:s.map((C,R)=>p.jsx(Rr,{buttonSize:"large",...C},`hero-action-${R}`))}),l&&p.jsx(be,{sx:{maxWidth:"800px"},children:l})]})})]})}const mB=no({tagName:"HeroBlock",version:"1.0.0",role:"container",View:hB});function gB({src:t,alt:e="",width:r,height:n,objectFit:o="cover",objectPosition:s="center",loading:l="lazy",title:c,draggable:u=!1,borderRadius:f,showLoading:h=!1,showError:v=!1,fallbackSrc:g,sizes:y,srcSet:w,loadingPlaceholder:x,errorPlaceholder:C,onClick:R,style:P,className:M,...E}){const I=Jn(),[A,F]=S.useState("loading"),[j,H]=S.useState(t),G=S.useCallback(()=>{F("loaded")},[]),N=S.useCallback(()=>{if(g&&j!==g){H(g);return}F("error")},[g,j]);if(!t)return v?p.jsx(be,{...E,className:`image-error ${M||""}`.trim(),style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:I.palette.grey[100],color:I.palette.text.secondary,width:r||200,height:n||150,borderRadius:f,...P},children:C||p.jsxs(be,{sx:{textAlign:"center"},children:[p.jsx(dS,{sx:{fontSize:48,mb:1,opacity:.5}}),p.jsx(je,{variant:"body2",color:"text.secondary",children:"No image source"})]})}):null;if(A==="loading"&&h)return p.jsx(be,{...E,className:`image-loading ${M||""}`.trim(),style:{width:r||"100%",height:n||200,borderRadius:f,...P},children:x||p.jsx(uN,{variant:"rectangular",width:"100%",height:"100%",sx:{borderRadius:f}})});if(A==="error"&&v)return p.jsx(be,{...E,className:`image-error ${M||""}`.trim(),style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:I.palette.grey[100],color:I.palette.text.secondary,width:r||"100%",height:n||200,borderRadius:f,...P},children:C||p.jsxs(be,{sx:{textAlign:"center",p:2},children:[p.jsx(dS,{sx:{fontSize:48,mb:1,opacity:.5}}),p.jsx(je,{variant:"body2",color:"text.secondary",children:"Failed to load image"}),g&&p.jsx(je,{variant:"caption",color:"text.secondary",children:"Fallback image also failed"})]})});const k={display:"block",maxWidth:"100%",height:"auto",objectFit:o,objectPosition:s,borderRadius:f,cursor:R?"pointer":"default",...P};return r&&(k.width=r),n&&(k.height=n),p.jsx("img",{...E,src:j,alt:e,width:r,height:n,loading:l,title:c,draggable:u,sizes:y,srcSet:w,className:`image ${M||""}`.trim(),style:k,onClick:R,onLoad:G,onError:N})}const VT=no({tagName:"Image",version:"1.0.0",role:"view",View:gB});VT.registerPatternHandlers=t=>{t.hasPattern("img")||t.registerPattern("img",yB),t.hasPattern("figure img")||t.registerPattern("figure img",vB)};function yB(t){const e=t.getAttribute("src")||"",r=t.getAttribute("alt")||"",n=t.getAttribute("width"),o=t.getAttribute("height"),s=t.getAttribute("loading");return{tagName:"Image",props:{src:e,alt:r,width:n?parseInt(n):void 0,height:o?parseInt(o):void 0,loading:s||"lazy"}}}function vB(t){const e=t.closest("figure"),r=e==null?void 0:e.querySelector("figcaption"),n=(r==null?void 0:r.textContent)||"",o=t.getAttribute("src")||"",s=t.getAttribute("alt")||n,l=t.getAttribute("width"),c=t.getAttribute("height");return{tagName:"Image",props:{src:o,alt:s,caption:n||void 0,width:l?parseInt(l):void 0,height:c?parseInt(c):void 0,loading:"lazy"}}}function bB({children:t,background:e="var(--theme-surface)",color:r="var(--theme-on-surface)",padding:n="medium",contentMaxWidth:o="lg",component:s="section",gridProps:l,...c}){if(!t)return p.jsx(be,{component:s,...c,...l?{"data-grid":JSON.stringify(l)}:{},sx:{backgroundColor:e,color:r,position:"static",py:2,px:0,...c.sx},children:p.jsx(wf,{maxWidth:vS(o),sx:{position:"relative",textAlign:"center",opacity:.6,...o===!1&&{maxWidth:"none !important",px:3}},children:"No content provided for this section"})});const u=()=>{switch(n){case"none":return 0;case"tiny":return{py:1,px:0};case"small":return{py:2,px:0};case"medium":return{py:4,px:0};case"large":return{py:8,px:0};case"extra-large":return{py:12,px:0};default:return{py:4,px:0}}};return p.jsx(be,{component:s,...c,...l?{"data-grid":JSON.stringify(l)}:{},sx:{backgroundColor:e,color:r,position:"static",...u(),...c.sx},children:p.jsx(wf,{maxWidth:vS(o),sx:{position:"relative",...o===!1&&{maxWidth:"none !important",px:3}},children:t})})}const Ll=no({tagName:"Section",version:"1.0.0",role:"container",View:bB,finalize:t=>t.contentMaxWidth==="false"?{...t,contentMaxWidth:!1}:t});Ll.registerPatternHandlers=t=>{t.hasPattern("section")||t.registerPattern("section",Ll.transformSection),t.hasPattern("section.blog-section")||t.registerPattern("section.blog-section",Ll.transformBlogSection)};Ll.transformSection=t=>{const e=t.getAttribute("data-padding")||"medium",r=t.getAttribute("data-background"),n=t.getAttribute("data-max-width")||"lg";return{tagName:"Section",version:"1.0.0",data:{padding:e,background:r,contentMaxWidth:n,children:t.innerHTML}}};Ll.transformBlogSection=t=>{const e=t.getAttribute("data-padding")||"large",r=t.getAttribute("data-background")||"var(--theme-surface)";return{tagName:"Section",version:"1.0.0",data:{padding:e,background:r,contentMaxWidth:"md",children:t.innerHTML}}};function _(t,e,r,n){var o=arguments.length,s=o<3?e:n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(s=(o<3?l(s):o>3?l(e,r,s):l(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s}function D(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}let mt=class extends lr{};_([B(),z({field_type:$.TEXT,label:"Grid Span",description:"Column span for grid layouts (number, auto, or grow)"}),V(),$o((t,e)=>typeof e=="string"),He(["auto","grow"]),$o((t,e)=>typeof e=="number"),sc(),to(1),D("design:type",Object)],mt.prototype,"span",void 0);_([B(),z({field_type:$.TEXT,label:"Extra Small Breakpoint (xs)",description:"Column span for extra small screens"}),V(),$o((t,e)=>typeof e=="string"),He(["auto"]),$o((t,e)=>typeof e=="number"),sc(),to(1),D("design:type",Object)],mt.prototype,"xs",void 0);_([B(),z({field_type:$.SELECT,label:"Small Breakpoint (sm)",description:"Column span for small screens"}),V(),$o((t,e)=>typeof e=="string"),He(["auto"]),$o((t,e)=>typeof e=="number"),sc(),to(1),D("design:type",Object)],mt.prototype,"sm",void 0);_([B(),z({field_type:$.SELECT,label:"Medium Breakpoint (md)",description:"Column span for medium screens"}),V(),$o((t,e)=>typeof e=="string"),He(["auto"]),$o((t,e)=>typeof e=="number"),sc(),to(1),D("design:type",Object)],mt.prototype,"md",void 0);_([B(),z({field_type:$.SELECT,label:"Large Breakpoint (lg)",description:"Column span for large screens"}),V(),$o((t,e)=>typeof e=="string"),He(["auto"]),$o((t,e)=>typeof e=="number"),sc(),to(1),D("design:type",Object)],mt.prototype,"lg",void 0);_([B(),z({field_type:$.SELECT,label:"Extra Large Breakpoint (xl)",description:"Column span for extra large screens"}),V(),$o((t,e)=>typeof e=="string"),He(["auto"]),$o((t,e)=>typeof e=="number"),sc(),to(1),D("design:type",Object)],mt.prototype,"xl",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class Name",description:"Additional CSS class name for custom styling",placeholder:"custom-class-name"}),V(),ie(),D("design:type",String)],mt.prototype,"className",void 0);_([B(),z({field_type:$.TEXTAREA,label:"MUI SX Props",description:"MUI sx prop as JSON string for advanced styling",placeholder:'{"color": "primary.main", "fontWeight": "bold"}'}),V(),ie(),D("design:type",Object)],mt.prototype,"sx",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Inline Styles",description:"Inline CSS styles as JSON string",placeholder:'{"color": "red", "margin": "10px"}'}),V(),ie(),D("design:type",Object)],mt.prototype,"style",void 0);_([B(),z({field_type:$.TEXT,label:"Width",description:"Component width (t-shirt sizes, breakpoints, CSS values, or numbers)",placeholder:"medium, 300px, 50%, auto, grow"}),V(),ie(),D("design:type",Object)],mt.prototype,"width",void 0);_([B(),z({field_type:$.TEXT,label:"Height",description:"Component height (t-shirt sizes, CSS values, or numbers)",placeholder:"medium, 200px, 50vh, auto"}),V(),ie(),D("design:type",Object)],mt.prototype,"height",void 0);_([B(),z({field_type:$.TEXT,label:"Minimum Width",description:"Minimum width constraint",placeholder:"small, 100px, auto"}),V(),ie(),D("design:type",Object)],mt.prototype,"minWidth",void 0);_([B(),z({field_type:$.TEXT,label:"Minimum Height",description:"Minimum height constraint",placeholder:"small, 100px, auto"}),V(),ie(),D("design:type",Object)],mt.prototype,"minHeight",void 0);_([B(),z({field_type:$.TEXT,label:"Maximum Width",description:"Maximum width constraint",placeholder:"large, lg, 1200px"}),V(),ie(),D("design:type",Object)],mt.prototype,"maxWidth",void 0);_([B(),z({field_type:$.TEXT,label:"Maximum Height",description:"Maximum height constraint",placeholder:"large, 500px, 80vh"}),V(),ie(),D("design:type",Object)],mt.prototype,"maxHeight",void 0);_([B(),z({field_type:$.SELECT,label:"Padding",description:"Internal spacing for all sides"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"padding",void 0);_([B(),z({field_type:$.SELECT,label:"Padding Top",description:"Internal spacing for top side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"paddingTop",void 0);_([B(),z({field_type:$.SELECT,label:"Padding Right",description:"Internal spacing for right side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"paddingRight",void 0);_([B(),z({field_type:$.SELECT,label:"Padding Bottom",description:"Internal spacing for bottom side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"paddingBottom",void 0);_([B(),z({field_type:$.SELECT,label:"Padding Left",description:"Internal spacing for left side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"paddingLeft",void 0);_([B(),z({field_type:$.SELECT,label:"Padding Horizontal (X)",description:"Internal spacing for left and right sides"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"paddingX",void 0);_([B(),z({field_type:$.SELECT,label:"Padding Vertical (Y)",description:"Internal spacing for top and bottom sides"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"paddingY",void 0);_([B(),z({field_type:$.SELECT,label:"Margin",description:"External spacing for all sides"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"margin",void 0);_([B(),z({field_type:$.SELECT,label:"Margin Top",description:"External spacing for top side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"marginTop",void 0);_([B(),z({field_type:$.SELECT,label:"Margin Right",description:"External spacing for right side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"marginRight",void 0);_([B(),z({field_type:$.SELECT,label:"Margin Bottom",description:"External spacing for bottom side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"marginBottom",void 0);_([B(),z({field_type:$.SELECT,label:"Margin Left",description:"External spacing for left side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"marginLeft",void 0);_([B(),z({field_type:$.SELECT,label:"Margin Horizontal (X)",description:"External spacing for left and right sides"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"marginX",void 0);_([B(),z({field_type:$.SELECT,label:"Margin Vertical (Y)",description:"External spacing for top and bottom sides"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"marginY",void 0);_([B(),z({field_type:$.TEXT,label:"Background",description:"Background fill (color, gradient, image CSS). Canonical name.",placeholder:"#ffffff, primary.main, linear-gradient(...)"}),V(),ie(),D("design:type",String)],mt.prototype,"background",void 0);_([B(),z({field_type:$.TEXT,label:"Background Color (Deprecated)",description:"Use background instead. Kept for backward compatibility.",placeholder:"#ffffff, primary.main"}),V(),ie(),D("design:type",String)],mt.prototype,"backgroundColor",void 0);_([B(),z({field_type:$.TEXT,label:"Background Image",description:"Background image URL",placeholder:"https://example.com/image.jpg"}),V(),ie(),D("design:type",String)],mt.prototype,"backgroundImage",void 0);_([B(),z({field_type:$.TEXT,label:"Background Gradient",description:"CSS gradient for background",placeholder:"linear-gradient(45deg, #ff6b6b, #4ecdc4)"}),V(),ie(),D("design:type",String)],mt.prototype,"backgroundGradient",void 0);_([B(),z({field_type:$.SELECT,label:"Text Alignment",description:"Text alignment within the component"}),V(),ie(),He(["left","center","right","justify"]),D("design:type",String)],mt.prototype,"textAlign",void 0);_([B(),z({field_type:$.TEXT,label:"Element ID",description:"Unique HTML element ID",placeholder:"unique-element-id"}),V(),ie(),D("design:type",String)],mt.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Role",description:"ARIA role for accessibility",placeholder:"button, navigation, main, etc."}),V(),ie(),D("design:type",String)],mt.prototype,"role",void 0);_([B(),z({field_type:$.TEXT,label:"ARIA Label",description:"Accessibility label for screen readers",placeholder:"Describe this element..."}),V(),ie(),D("design:type",String)],mt.prototype,"aria-label",void 0);_([B(),z({field_type:$.TEXT,label:"ARIA Labelled By",description:"IDs of elements that label this component",placeholder:"label-element-id"}),V(),ie(),D("design:type",String)],mt.prototype,"aria-labelledby",void 0);_([B(),z({field_type:$.TEXT,label:"ARIA Described By",description:"IDs of elements that describe this component",placeholder:"element-id-1 element-id-2"}),V(),ie(),D("design:type",String)],mt.prototype,"aria-describedby",void 0);_([B(),z({field_type:$.TEXT,label:"Data Test ID",description:"Test automation identifier",placeholder:"test-element-name"}),V(),ie(),D("design:type",String)],mt.prototype,"data-testid",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Click Handler",description:"JavaScript function for click events",placeholder:'function(event) { console.debug("clicked"); }'}),V(),ie(),D("design:type",Function)],mt.prototype,"onClick",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Mouse Enter Handler",description:"JavaScript function for mouse enter events",placeholder:"function(event) { /* hover start */ }"}),V(),ie(),D("design:type",Function)],mt.prototype,"onMouseEnter",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Mouse Leave Handler",description:"JavaScript function for mouse leave events",placeholder:"function(event) { /* hover end */ }"}),V(),ie(),D("design:type",Function)],mt.prototype,"onMouseLeave",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Focus Handler",description:"JavaScript function for focus events",placeholder:"function(event) { /* element focused */ }"}),V(),ie(),D("design:type",Function)],mt.prototype,"onFocus",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Blur Handler",description:"JavaScript function for blur events",placeholder:"function(event) { /* element blurred */ }"}),V(),ie(),D("design:type",Function)],mt.prototype,"onBlur",void 0);mt=_([Nt("ViewSchema","1.0.0")],mt);var WT=mt;let ea=class extends WT{};_([B(),z({field_type:$.TEXTAREA,label:"Content",description:"Main content shown when expanded (HTML supported)",placeholder:"Enter main content..."}),V(),ie(),D("design:type",Object)],ea.prototype,"children",void 0);ea=_([Nt("ContainerSchema","1.0.0")],ea);let ri=class extends ea{};_([B(),z({field_type:$.TEXT,label:"Title",description:"Title for the default header (ignored if custom header is provided)",placeholder:"Enter form title..."}),V(),ie(),D("design:type",String)],ri.prototype,"title",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Description",description:"Description/subtitle for the default header (ignored if custom header is provided)",placeholder:"Enter form description..."}),V(),ie(),D("design:type",String)],ri.prototype,"description",void 0);_([B(),z({field_type:$.TEXT,label:"Cover Image URL",description:"Cover image URL for the default header (ignored if custom header is provided)",placeholder:"https://example.com/image.jpg"}),V(),ie(),D("design:type",Object)],ri.prototype,"coverImage",void 0);_([B(),z({field_type:$.TEXT,label:"Status Type",description:"Status type for message display (info, success, warning, error)",placeholder:"info"}),V(),He(["info","success","warning","error"]),D("design:type",String)],ri.prototype,"status",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Status Message",description:"Status message to display",placeholder:"Enter status message..."}),V(),ie(),D("design:type",String)],ri.prototype,"message",void 0);_([B({defaultValue:"sm"}),z({field_type:$.TEXT,label:"Maximum Width",description:"Maximum width of the form container (xs, sm, md)",placeholder:"sm"}),V(),He(["xs","sm","md"]),D("design:type",String)],ri.prototype,"maxWidth",void 0);_([B({defaultValue:"default"}),z({field_type:$.TEXT,label:"Background Style",description:"Background style variant (default, gradient, image)",placeholder:"default"}),V(),He(["default","gradient","image"]),D("design:type",String)],ri.prototype,"background",void 0);_([B(),z({field_type:$.TEXT,label:"Background Image URL",description:'Background image URL (when background="image")',placeholder:"https://example.com/background.jpg"}),V(),ie(),D("design:type",String)],ri.prototype,"backgroundImage",void 0);ri=_([Nt("FormBlock","1.0.0")],ri);var xB=ri;function Ay(t){if(t==null)return"";if(typeof t=="string"||typeof t=="number")return String(t);if(typeof t=="boolean")return t?"true":"false";if(Array.isArray(t))return t.map(e=>Ay(e)).join("");if(typeof t=="object"&&t!==null&&"props"in t){const e=t;if(e.props&&e.props.children)return Ay(e.props.children)}return String(t)}function wB(t){const{span:e,xs:r,sm:n,md:o,lg:s,xl:l,sx:c,style:u,...f}=t;return{span:e==="auto"?"auto":e==="grow"?"grow":e&&typeof e=="string"?parseInt(e,10):e,xs:r==="auto"?"auto":r&&typeof r=="string"?parseInt(r,10):r,sm:n==="auto"?"auto":n&&typeof n=="string"?parseInt(n,10):n,md:o==="auto"?"auto":o&&typeof o=="string"?parseInt(o,10):o,lg:s==="auto"?"auto":s&&typeof s=="string"?parseInt(s,10):s,xl:l==="auto"?"auto":l&&typeof l=="string"?parseInt(l,10):l,sx:typeof c=="string"?(()=>{try{return JSON.parse(c)}catch{return c}})():c,style:typeof u=="string"?(()=>{try{return JSON.parse(u)}catch{return u}})():u,onClick:typeof t.onClick=="string"?eu(t.onClick):t.onClick,onMouseEnter:typeof t.onMouseEnter=="string"?eu(t.onMouseEnter):t.onMouseEnter,onMouseLeave:typeof t.onMouseLeave=="string"?eu(t.onMouseLeave):t.onMouseLeave,onFocus:typeof t.onFocus=="string"?eu(t.onFocus):t.onFocus,onBlur:typeof t.onBlur=="string"?eu(t.onBlur):t.onBlur,...f}}function eu(t){if(!(!t||typeof t!="string"))try{let e;return t.trim().startsWith("function")?e=new Function(`return (${t})`)():e=new Function("event",t),r=>e(r)}catch(e){console.error("Error parsing event handler:",e);return}}class zs extends Mt.Component{static fromJson(e){const r=e,{tagName:n,version:o,data:s}=r;if(n!==this.tagName)throw new Error(`Cannot deserialize: Expected tagName '${this.tagName}' but got '${n}'`);return o!==this.version&&console.warn(`Version mismatch: Expected ${this.version} but got ${o}`),Mt.createElement(this,s||{})}toJson(){const e=this.getBaseSerializableProps(),r=this.getComponentSpecificProps();return{tagName:this.constructor.tagName,version:this.constructor.version,data:{...e,...r}}}getProcessedProps(){const{dataSource:e,bindingOptions:r,...n}=this.props,o=wB(n);return{gridProps:{span:o.span,xs:o.xs,sm:o.sm,md:o.md,lg:o.lg,xl:o.xl},styleProps:{className:o.className,sx:o.sx,style:o.style},htmlProps:{id:o.id,role:o.role,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],"aria-describedby":o["aria-describedby"],"data-testid":o["data-testid"],onClick:o.onClick,onMouseEnter:o.onMouseEnter,onMouseLeave:o.onMouseLeave,onFocus:o.onFocus,onBlur:o.onBlur},restProps:{width:o.width,height:o.height,minWidth:o.minWidth,minHeight:o.minHeight,maxWidth:o.maxWidth,maxHeight:o.maxHeight,padding:o.padding,paddingTop:o.paddingTop,paddingRight:o.paddingRight,paddingBottom:o.paddingBottom,paddingLeft:o.paddingLeft,paddingX:o.paddingX,paddingY:o.paddingY,margin:o.margin,marginTop:o.marginTop,marginRight:o.marginRight,marginBottom:o.marginBottom,marginLeft:o.marginLeft,marginX:o.marginX,marginY:o.marginY,background:o.background,backgroundImage:o.backgroundImage,backgroundGradient:o.backgroundGradient,textAlign:o.textAlign}}}getBaseSerializableProps(){const e=this.props;return{children:e.children?this.serializeChildren(e.children):void 0,dataSource:e.dataSource,bindingOptions:e.bindingOptions,...e}}serializeChildren(e){if(typeof e=="string")return e;if(this.hasNestedComponents(e))throw new Error("Components with nested components must override serializeChildren method");return Ay(e)}hasNestedComponents(e){return!1}render(){return this.props.dataSource?this.renderWithDataBinding():this.renderView()}static registerPatternHandlers(e){}}zs.tagName="";zs.version="";let Mi=class extends lr{};_([B(),z({field_type:$.TEXT,label:"ID",description:"Unique identifier for the action",placeholder:"action-id"}),ie(),Ya(),D("design:type",String)],Mi.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Label",description:"Display label for the action button",placeholder:"Action label"}),ie(),D("design:type",String)],Mi.prototype,"label",void 0);_([B(),z({field_type:$.TEXT,label:"Icon",description:"Icon component or JSX element",placeholder:"icon-name"}),V(),ie(),D("design:type",String)],Mi.prototype,"icon",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Whether this action is disabled"}),V(),_t(),D("design:type",Boolean)],Mi.prototype,"disabled",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Destructive",description:"Whether this action is destructive (shows with warning styling)"}),V(),_t(),D("design:type",Boolean)],Mi.prototype,"destructive",void 0);_([B(),z({field_type:$.NUMBER,label:"Priority",description:"Priority for ordering (lower numbers = higher priority)",validation:{min:1,max:100}}),V(),wr(),to(1),Bs(100),D("design:type",Number)],Mi.prototype,"priority",void 0);Mi=_([Nt("HeaderAction","1.0.0")],Mi);let en=class extends lr{};_([B(),z({field_type:$.IMAGE,label:"Image",description:"Image URL or component",placeholder:"Upload image"}),V(),ie(),D("design:type",String)],en.prototype,"image",void 0);_([B(),z({field_type:$.TEXT,label:"Image Alt Text",description:"Alternative text for image",placeholder:"Descriptive alt text..."}),V(),ie(),D("design:type",String)],en.prototype,"imageAlt",void 0);_([B(),z({field_type:$.SELECT,label:"Image Size",description:"Size of the image",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),V(),He(["small","medium","large"]),D("design:type",String)],en.prototype,"imageSize",void 0);_([B(),z({field_type:$.SELECT,label:"Image Shape",description:"Shape of the image",validation:{options:[{label:"Square",value:"square"},{label:"Circle",value:"circle"},{label:"Rounded",value:"rounded"}]}}),V(),He(["square","circle","rounded"]),D("design:type",String)],en.prototype,"imageShape",void 0);_([B({defaultValue:"transparent"}),z({field_type:$.COLOR,label:"Image Background",description:"Image background color",placeholder:"Pick a color for the image background"}),V(),ie(),D("design:type",String)],en.prototype,"imageBackgroundColor",void 0);_([B(),z({field_type:$.TEXT,label:"Overline",description:"Small text above the main title",placeholder:"Overline text"}),V(),ie(),D("design:type",String)],en.prototype,"overline",void 0);_([B(),z({field_type:$.TEXT,label:"Title",description:"Main heading/title text",placeholder:"Enter title..."}),ie(),D("design:type",String)],en.prototype,"title",void 0);_([B(),z({field_type:$.TEXT,label:"Subtitle",description:"Secondary text below the title",placeholder:"Enter subtitle..."}),V(),ie(),D("design:type",String)],en.prototype,"subtitle",void 0);_([B(),z({field_type:$.REPEATER,label:"Tags",description:"Array of tag strings"}),V(),rn(),ie({each:!0}),D("design:type",Array)],en.prototype,"tags",void 0);_([B(),z({field_type:$.REPEATER,label:"Actions",description:"Array of header action buttons"}),V(),rn(),eo({each:!0}),ro(()=>Mi),D("design:type",Array)],en.prototype,"actions",void 0);_([B(),z({field_type:$.NUMBER,label:"Max Visible Actions",description:"Maximum visible actions before overflow",validation:{min:1,max:10}}),V(),wr(),to(1),Bs(10),D("design:type",Number)],en.prototype,"maxVisibleActions",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-class"}),V(),ie(),D("design:type",String)],en.prototype,"className",void 0);_([B(),z({field_type:$.SELECT,label:"Header Variant",description:"Style variant for the header",validation:{options:[{label:"Default",value:"default"},{label:"Compact",value:"compact"},{label:"Prominent",value:"prominent"}]}}),V(),He(["default","compact","prominent"]),D("design:type",String)],en.prototype,"variant",void 0);_([B({defaultValue:"--var(--theme-primary)"}),z({field_type:$.TEXT,label:"Background",description:"Background color or image URL",placeholder:"Pick a color for the background or enter a image URL"}),V(),ie(),D("design:type",String)],en.prototype,"background",void 0);_([B({defaultValue:"--var(--theme-on-primary)"}),z({field_type:$.COLOR,label:"Color",description:"Foreground color",placeholder:"#000000"}),V(),ie(),D("design:type",String)],en.prototype,"color",void 0);en=_([Nt("CoverImageHeader","1.0.0")],en);var SB=en;function RS({image:t,imageAlt:e="",imageSize:r="medium",imageShape:n="rounded",imageBackgroundColor:o="transparent",overline:s,title:l,subtitle:c,tags:u=[],actions:f=[],maxVisibleActions:h=3,variant:v="default",background:g,color:y,...w}){const{gridProps:x,styleProps:C,htmlProps:R}=Tn(w),[P,M]=S.useState(null),E=!!P,I=[...f].sort((Z,Q)=>(Z.priority||999)-(Q.priority||999)),A=I.slice(0,h),F=I.slice(h),j=Z=>{M(Z.currentTarget)},H=()=>{M(null)},G=()=>{switch(r){case"small":return 48;case"large":return 80;default:return 64}},N=()=>{switch(n){case"circle":return"circular";case"square":return"square";default:return"rounded"}},k=()=>{if(!t)return null;const Z=G();return typeof t=="string"?p.jsx(yw,{src:t,alt:e,variant:N(),sx:{width:Z,height:Z}}):p.jsx(yw,{variant:N(),sx:{width:Z,height:Z,backgroundColor:o||"transparent"},children:t})},q=()=>u.length===0?null:p.jsx(be,{sx:{display:"flex",flexWrap:"wrap",gap:.5,mt:.5},children:u.map((Z,Q)=>p.jsx(ln,{label:Z,size:"small",color:"primary",sx:{fontSize:"0.75rem",height:"24px"}},Q))}),U=()=>f.length===0?null:p.jsxs(be,{sx:{display:"flex",alignItems:"flex-start",gap:.5},children:[A.map(Z=>p.jsx(_u,{variant:"outlined",size:"small",startIcon:Z.icon,onClick:Z.onClick,disabled:Z.disabled,color:Z.destructive?"error":"primary",sx:{minHeight:36,whiteSpace:"nowrap","& .MuiButton-startIcon":{mr:.5}},children:Z.label},Z.id)),F.length>0&&p.jsxs(p.Fragment,{children:[p.jsx(mr,{size:"small",onClick:j,"aria-label":"More actions",color:"info",sx:{minHeight:36,minWidth:36},children:p.jsx(X9,{})}),p.jsx(ph,{anchorEl:P,open:E,onClose:H,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:F.map(Z=>p.jsxs(cn,{onClick:()=>{Z.onClick(),H()},disabled:Z.disabled,sx:{color:Z.destructive?"error.main":"inherit",gap:1.5,minWidth:200},children:[Z.icon&&p.jsx(be,{component:"span",sx:{display:"flex"},children:Z.icon}),Z.label]},Z.id))})]})]}),L=()=>{switch(v){case"compact":return 2;case"prominent":return 3;default:return 2.5}},W=()=>{switch(v){case"compact":return 1.5;case"prominent":return 2;default:return 2}},K=()=>{switch(v){case"default":return 0;case"compact":return 1;case"prominent":return 1;default:return 0}},ee=g?{background:g.startsWith("http")||g.startsWith("data:")?`linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url(${g})`:g,backgroundSize:"cover",backgroundPosition:"center"}:{background:"-var(--theme-primary)"};return p.jsx(Ir,{component:"header",...R,...x&&{"data-grid-span":x.span,"data-grid-xs":x.xs,"data-grid-sm":x.sm,"data-grid-md":x.md,"data-grid-lg":x.lg,"data-grid-xl":x.xl},sx:{p:L(),borderRadius:K()>0?2:0,...ee,color:g?"white":"inherit",...C.sx},elevation:K(),children:p.jsxs(be,{sx:{display:"flex",alignItems:v==="prominent"?"center":"flex-start",gap:W(),flexWrap:{xs:"wrap",sm:"nowrap"},minHeight:v==="prominent"?120:"auto"},children:[k(),p.jsxs(be,{sx:{flex:1,minWidth:0},children:[s&&p.jsx(je,{variant:"overline",color:y||"--var(--theme-on-primary)",sx:{display:"block",fontSize:"0.75rem",fontWeight:600,lineHeight:1.2,mb:.25},children:s}),p.jsx(je,{variant:"h5",component:"h1",sx:{fontWeight:600,lineHeight:1.3,wordBreak:"break-word",mb:c?.25:0},children:l}),c&&p.jsx(je,{variant:"body2",color:y||"--var(--theme-on-primary)",sx:{lineHeight:1.4,mb:(u.length>0,0)},children:c}),q()]}),p.jsx(be,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"},display:"flex",justifyContent:{xs:"flex-end",sm:"flex-start"},mt:{xs:1,sm:0}},children:U()})]})})}function CB(){return p.jsxs(Ir,{variant:"outlined",sx:{p:3,textAlign:"center"},children:[p.jsx(je,{variant:"body2",children:"Loading Cover Image Header..."}),p.jsx(je,{variant:"caption",color:"text.secondary",children:"Loading header content from data source..."})]})}function TB(){return p.jsx(Ir,{variant:"outlined",sx:{p:3,textAlign:"center",borderColor:"error.main"},children:p.jsx(je,{variant:"body2",color:"error",children:"Error loading cover image header"})})}function EB(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Oi(e||"",n,SB.getSchema(),{...r});if(!e)return p.jsx(RS,{...n});const{loading:s,error:l,...c}=o;if(s)return p.jsx(CB,{});if(l)return console.error("Error loading cover image header:",l),p.jsx(TB,{});const{actions:u,...f}=c,h=u?u.filter(v=>typeof v.id=="string"&&!!v.id).map(v=>({...v,id:v.id,onClick:()=>console.debug(`Action clicked: ${v.id}`)})):[];return p.jsx(RS,{...f,actions:h})}let Cn=class extends lr{};_([B({defaultValue:"Qwick Apps",dataType:ct.STRING}),z({field_type:$.TEXT,label:"Logo Name/Text",description:"Logo name/text to display. Supports up to TWO parts with \\n for line breaks and \\s for explicit spaces.",placeholder:'Enter logo text (e.g., "Qwick Apps", "Qwick\\nApps")'}),V(),ie(),D("design:type",String)],Cn.prototype,"name",void 0);_([B({defaultValue:"default",dataType:ct.STRING}),z({field_type:$.SELECT,label:"Visual Variant",description:"Visual style variant of the logo",validation:{options:[{label:"Default",value:"default"},{label:"High Contrast",value:"high-contrast"},{label:"Monochrome",value:"monochrome"},{label:"On Primary Background",value:"on-primary"}]}}),V(),ie(),He(["default","high-contrast","monochrome","on-primary"]),D("design:type",String)],Cn.prototype,"variant",void 0);_([B({defaultValue:"medium",dataType:ct.STRING}),z({field_type:$.SELECT,label:"Size",description:"Size variant of the logo (controls both text size and visual height)",validation:{options:[{label:"Tiny (16px)",value:"tiny"},{label:"Small (20px)",value:"small"},{label:"Medium (28px)",value:"medium"},{label:"Large (36px)",value:"large"},{label:"Extra Large (48px)",value:"extra-large"}]}}),V(),ie(),He(["tiny","small","medium","large","extra-large"]),D("design:type",String)],Cn.prototype,"size",void 0);_([B({defaultValue:"top-right",dataType:ct.STRING}),z({field_type:$.SELECT,label:"Badge Position",description:'Badge position and visibility. "none" hides the badge, others show it at the specified position.',validation:{options:[{label:"None (Hidden)",value:"none"},{label:"Top Left",value:"top-left"},{label:"Top Center",value:"top-center"},{label:"Top Right",value:"top-right"},{label:"Start (Left Center)",value:"start"},{label:"Center",value:"center"},{label:"End (Right Center)",value:"end"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Bottom Right",value:"bottom-right"}]}}),V(),ie(),He(["none","top-left","top-center","top-right","start","center","end","bottom-left","bottom-center","bottom-right"]),D("design:type",String)],Cn.prototype,"badge",void 0);_([B({defaultValue:"circle",dataType:ct.STRING}),z({field_type:$.SELECT,label:"Badge Shape",description:"Shape of the badge when visible",validation:{options:[{label:"Circle",value:"circle"},{label:"Star",value:"star"},{label:"Square",value:"square"},{label:"Heart",value:"heart"}]}}),V(),ie(),He(["circle","star","square","heart"]),D("design:type",String)],Cn.prototype,"badgeShape",void 0);_([B({dataType:ct.NUMBER}),z({field_type:$.NUMBER,label:"Badge Offset X",description:"Horizontal offset from calculated badge position (positive = right, negative = left)",placeholder:"0"}),V(),wr(),D("design:type",Number)],Cn.prototype,"badgeOffsetX",void 0);_([B({dataType:ct.NUMBER}),z({field_type:$.NUMBER,label:"Badge Offset Y",description:"Vertical offset from calculated badge position (positive = down, negative = up)",placeholder:"0"}),V(),wr(),D("design:type",Number)],Cn.prototype,"badgeOffsetY",void 0);_([B({defaultValue:"Segoe UI, sans-serif",dataType:ct.STRING}),z({field_type:$.TEXT,label:"Font Family",description:"Font family for the logo text",placeholder:"Segoe UI, sans-serif"}),V(),ie(),D("design:type",String)],Cn.prototype,"fontFamily",void 0);_([B({defaultValue:"bold",dataType:ct.STRING}),z({field_type:$.TEXT,label:"Font Weight",description:"Font weight for the logo text",placeholder:"bold"}),V(),ie(),D("design:type",String)],Cn.prototype,"fontWeight",void 0);_([B({defaultValue:"logo-first-part",dataType:ct.STRING}),z({field_type:$.TEXT,label:"First Part CSS Class",description:"CSS class name for the first part of the logo text",placeholder:"logo-first-part"}),V(),ie(),D("design:type",String)],Cn.prototype,"firstPartClass",void 0);_([B({defaultValue:"logo-second-part",dataType:ct.STRING}),z({field_type:$.TEXT,label:"Second Part CSS Class",description:"CSS class name for the second part of the logo text",placeholder:"logo-second-part"}),V(),ie(),D("design:type",String)],Cn.prototype,"secondPartClass",void 0);_([B({dataType:ct.STRING}),z({field_type:$.IMAGE,label:"Logo Image",description:"Optional image to display alongside the logo text (ReactNode or image path)",placeholder:"Image path or React component"}),V(),D("design:type",Object)],Cn.prototype,"image",void 0);_([B({defaultValue:"start",dataType:ct.STRING}),z({field_type:$.SELECT,label:"Image Position",description:"Position of the image relative to the logo text",validation:{options:[{label:"None (Hidden)",value:"none"},{label:"Top Left",value:"top-left"},{label:"Top Center",value:"top-center"},{label:"Top Right",value:"top-right"},{label:"Start (Left)",value:"start"},{label:"Center",value:"center"},{label:"End (Right)",value:"end"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Bottom Right",value:"bottom-right"}]}}),V(),ie(),He(["none","top-left","top-center","top-right","start","center","end","bottom-left","bottom-center","bottom-right"]),D("design:type",String)],Cn.prototype,"imagePosition",void 0);Cn=_([Nt("Logo","1.0.0")],Cn);var kB=Cn;function MS({name:t="Qwick Apps",variant:e="default",size:r="medium",badge:n="top-right",badgeShape:o="circle",badgeOffsetX:s,badgeOffsetY:l,fontFamily:c="Segoe UI, sans-serif",fontWeight:u="bold",firstPartClass:f="logo-first-part",secondPartClass:h="logo-second-part",image:v,imagePosition:g="start",onClick:y,style:w,className:x,...C}){const{styleProps:R,htmlProps:P}=Tn(C),M=S.useMemo(()=>s!==void 0||l!==void 0?{x:s,y:l}:void 0,[s,l]),E=S.useRef(null),[I,A]=S.useState({x:155,y:20}),[F,j]=S.useState(180),H=S.useCallback(Y=>{if(Y.includes("\\n")){const[J,...de]=Y.split("\\n");return{firstPart:J.replace(/\\s/g," "),secondPart:de.join("\\n").replace(/\\s/g," "),isNewLine:!0}}if(Y.includes("\\s")){const J=Y.split("\\s");return J.length>=2?{firstPart:J[0],secondPart:J.slice(1).join(" "),isNewLine:!1}:{firstPart:J[0],secondPart:"",isNewLine:!1}}const ne=Y.trim().split(/\s+/);return ne.length===1?{firstPart:ne[0],secondPart:"",isNewLine:!1}:ne.length===2?{firstPart:ne[0],secondPart:ne[1],isNewLine:!1}:{firstPart:ne.slice(0,-1).join(" "),secondPart:ne[ne.length-1],isNewLine:!1}},[]),{firstPart:G,secondPart:N,isNewLine:k}=H(t),q=t.includes("\\s"),U=`logo-${r}`,L=(Y,ne)=>{const J={tiny:{fontSize:16,height:32},small:{fontSize:20,height:40},medium:{fontSize:28,height:50},large:{fontSize:36,height:64},"extra-large":{fontSize:48,height:84}},de=J[Y]||J.medium;return ne&&(de.height+=Math.round(de.fontSize*1.4)),de},{fontSize:W,height:K}=L(r,k),ee=S.useCallback(Y=>{const ne=W/28,J=8*ne,de=((M==null?void 0:M.x)??0)*ne,Ce=((M==null?void 0:M.y)??0)*ne;let he,se;switch(n){case"top-left":he=Y.x-J,se=Y.y+J;break;case"top-center":he=Y.x+Y.width/2,se=Y.y+J;break;case"top-right":he=Y.x+Y.width+J,se=Y.y+J;break;case"start":he=Y.x-J,se=Y.y+Y.height/2;break;case"center":he=Y.x+Y.width/2,se=Y.y+Y.height/2;break;case"end":he=Y.x+Y.width+J,se=Y.y+Y.height/2;break;case"bottom-left":he=Y.x-J,se=Y.y+Y.height-J;break;case"bottom-center":he=Y.x+Y.width/2,se=Y.y+Y.height-J;break;case"bottom-right":he=Y.x+Y.width+J,se=Y.y+Y.height-J;break;default:he=Y.x+Y.width+J,se=Y.y+J;break}return{x:he+de,y:se+Ce}},[n,M,W]);S.useEffect(()=>{if(E.current){const Y=E.current.getBBox(),ne=ee(Y),J=Math.max(180,Y.x+Y.width+20);A(ne),j(J)}},[t,n,M,ee,W,K,H,F]);let Z="";e==="high-contrast"||e==="monochrome"||e==="on-primary"?Z=`logo-${e}`:e!=="default"?Z=`logo-${e}`:Z="logo-default";const Q=`${t} Logo`,X=()=>{if(n==="none")return null;const Y={className:`logo-badge logo-badge-${o}`},{x:ne,y:J}=I,de=W/28,Ce=5*de,he=10*de;switch(o){case"circle":return p.jsx("circle",{cx:ne,cy:J,r:Ce,...Y,children:p.jsx("animate",{attributeName:"r",values:`${Ce};${Ce+1};${Ce}`,dur:"1.5s",repeatCount:"indefinite"})});case"star":{const se=de;return p.jsx("polygon",{points:`${ne},${J-5*se} ${ne+2*se},${J} ${ne+7*se},${J} ${ne+3*se},${J+3*se} ${ne+5*se},${J+8*se} ${ne},${J+5*se} ${ne-5*se},${J+8*se} ${ne-3*se},${J+3*se} ${ne-7*se},${J} ${ne-2*se},${J}`,...Y,children:p.jsx("animate",{attributeName:"opacity",values:"0.8;1;0.8",dur:"1.5s",repeatCount:"indefinite"})})}case"square":return p.jsx("rect",{x:ne-Ce,y:J-Ce,width:he,height:he,...Y,children:p.jsx("animate",{attributeName:"opacity",values:"0.8;1;0.8",dur:"1.5s",repeatCount:"indefinite"})});case"heart":{const se=de;return p.jsx("path",{d:`M${ne},${J+6*se} C${ne},${J+6*se} ${ne-7*se},${J} ${ne-7*se},${J-4*se} C${ne-7*se},${J-6*se} ${ne-5*se},${J-8*se} ${ne-3*se},${J-8*se} C${ne-2*se},${J-8*se} ${ne},${J-7*se} ${ne},${J-5*se} C${ne},${J-7*se} ${ne+2*se},${J-8*se} ${ne+3*se},${J-8*se} C${ne+5*se},${J-8*se} ${ne+7*se},${J-6*se} ${ne+7*se},${J-4*se} C${ne+7*se},${J} ${ne},${J+6*se} ${ne},${J+6*se} Z`,...Y,children:p.jsx("animate",{attributeName:"fill-opacity",values:"0.7;1;0.7",dur:"1.5s",repeatCount:"indefinite"})})}default:return p.jsx("circle",{cx:ne,cy:J,r:Ce,...Y,children:p.jsx("animate",{attributeName:"r",values:`${Ce};${Ce+1};${Ce}`,dur:"1.5s",repeatCount:"indefinite"})})}},re=()=>{if(!v||g==="none")return null;if(typeof v=="string"){const Y=W;return p.jsx("img",{src:v,alt:"",style:{width:Y,height:Y,objectFit:"contain"},className:"logo-image"})}return p.jsx("div",{className:"logo-image-container",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:v})};return(()=>{const Y=p.jsxs("svg",{width:F,height:K,viewBox:`0 0 ${F} ${K}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`logo-svg dynamic-logo ${U} ${Z}`.trim(),style:{height:`${K}px`,...w},role:"img","aria-label":Q,children:[p.jsxs("text",{ref:E,fontFamily:c,fontSize:W,fontWeight:u,children:[p.jsx("tspan",{x:"15",y:k?K*.4:K*.7,className:f,children:G}),N&&p.jsx("tspan",{x:k?"15":void 0,dy:k?W*1.2:void 0,className:h,children:k?N:q?` ${N}`:N})]}),X()]}),ne=re();if(!ne)return Y;const J={display:"flex",alignItems:"center",gap:"8px"};let de="logo-container";switch(g){case"start":J.flexDirection="row",de+=" logo-image-start";break;case"end":J.flexDirection="row-reverse",de+=" logo-image-end";break;case"top-center":J.flexDirection="column",de+=" logo-image-top";break;case"bottom-center":J.flexDirection="column-reverse",de+=" logo-image-bottom";break;default:J.flexDirection="row",de+=" logo-image-start";break}return p.jsxs("div",{...P,...R,className:`${de} ${x||""}`.trim(),style:{...J,cursor:y?"pointer":"default",...w},onClick:y,children:[ne,Y]})})()}function yh(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Oi(e||"",{initialData:n,schema:kB.getSchema(),cache:!0,cacheTTL:3e5,strict:!1,...r});if(!e)return p.jsx(MS,{...n});const{loading:s,error:l,...c}=o;return s?p.jsx("div",{style:{opacity:.5,textAlign:"center",padding:"16px"},children:"Loading logo..."}):l?p.jsxs("div",{style:{color:"red",textAlign:"center",padding:"16px"},children:["Error loading logo: ",l.message]}):p.jsx(MS,{...c})}Object.defineProperty(yh,_n,{value:!0,enumerable:!1,configurable:!0});const PB=({title:t,subtitle:e,coverImage:r})=>{const{appName:n}=H0(),o=r||p.jsx(yh,{name:n||"Qwick Apps",size:"medium",variant:"default"});return p.jsx(EB,{image:o,imageSize:"medium",imageShape:"square",title:t||"Welcome",subtitle:e,variant:"default"})};function qT({header:t,title:e,description:r,coverImage:n,children:o,footer:s,status:l,message:c,maxWidth:u="sm",background:f="--theme-surface",backgroundImage:h,...v}){const{styleProps:g,htmlProps:y}=Tn(v),w=Jn();if(!o)return p.jsx(Ir,{...y,...g,variant:"outlined",sx:{p:3,textAlign:"center",opacity:.6,...g.sx},children:p.jsx(je,{variant:"body2",color:"text.secondary",children:"No form content provided"})});const x=()=>{switch(f){case"gradient":return{background:`linear-gradient(135deg, ${w.palette.primary.main} 0%, ${w.palette.secondary.main} 100%)`};case"image":return h?{backgroundImage:`linear-gradient(${w.palette.action.hover}, ${w.palette.action.hover}), url(${h})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{};default:return{backgroundColor:w.palette.background.default}}};return p.jsx(be,{...y,...g,className:`${g.className||""}`,sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",py:3,...x(),...g.sx},children:p.jsx(wf,{maxWidth:u,children:p.jsxs(Yt,{elevation:f==="default"?1:8,sx:{borderRadius:3,overflow:"hidden",backgroundColor:f==="default"?w.palette.background.paper:w.palette.mode==="dark"?"rgba(18, 18, 18, 0.95)":"rgba(255, 255, 255, 0.95)",backdropFilter:f!=="default"?"blur(10px)":"none"},children:[t||e||r?t||p.jsx(PB,{title:e,subtitle:r,coverImage:n}):null,p.jsxs(Jt,{sx:{p:{xs:3,sm:4,md:5}},children:[l&&c&&p.jsx(Un,{severity:l,sx:{mb:3},variant:"outlined",children:c}),p.jsx(be,{sx:{mb:s?3:0},children:o}),s&&p.jsx(be,{sx:{textAlign:"center"},children:s})]})]})})})}class lc extends zs{static fromJson(e){return p.jsx(lc,{...e})}hasNestedComponents(e){return!0}serializeChildren(e){var r;if(Mt.isValidElement(e)&&((r=e.type.prototype)!=null&&r.toJson)){const n=e.type;return n.fromJson?{component:n.tagName,props:e.props}:e}return super.serializeChildren(e)}getComponentSpecificProps(){return{title:this.props.title,description:this.props.description,status:this.props.status,message:this.props.message,maxWidth:this.props.maxWidth,background:this.props.background,backgroundImage:this.props.backgroundImage}}renderView(){const{dataSource:e,bindingOptions:r,...n}=this.props;return p.jsx(qT,{...n})}renderWithDataBinding(){return p.jsx(RB,{...this.props})}}lc.tagName="FormBlock";lc.version="1.0.0";function RB(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:s,...l}=Oi(e,n,xB.getSchema(),{...r});return o?p.jsxs(Ir,{variant:"outlined",sx:{p:3,textAlign:"center"},children:[p.jsx(je,{variant:"body2",children:"Loading Form..."}),p.jsx(je,{variant:"caption",color:"text.secondary",children:"Loading form content from data source..."})]}):s?(console.error("Error loading form block:",s),p.jsx(Ir,{variant:"outlined",sx:{p:3,textAlign:"center",borderColor:"error.main"},children:p.jsxs(je,{variant:"body2",color:"error",children:["Error loading form: ",s.message]})})):p.jsx(qT,{...l})}lc[_n]=!0;var kt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function MB(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function IB(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var GT={},Fu={},U0={},Hu={},V0={};Object.defineProperty(V0,"__esModule",{value:!0});V0.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var W0={};Object.defineProperty(W0,"__esModule",{value:!0});W0.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var jy={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(s){var l="";return s>65535&&(s-=65536,l+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),l+=String.fromCharCode(s),l};function n(s){var l;return s>=55296&&s<=57343||s>1114111?65533:(l=r.get(s))!==null&&l!==void 0?l:s}t.replaceCodePoint=n;function o(s){return(0,t.fromCodePoint)(n(s))}t.default=o})(jy);(function(t){var e=kt&&kt.__createBinding||(Object.create?(function(N,k,q,U){U===void 0&&(U=q);var L=Object.getOwnPropertyDescriptor(k,q);(!L||("get"in L?!k.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:function(){return k[q]}}),Object.defineProperty(N,U,L)}):(function(N,k,q,U){U===void 0&&(U=q),N[U]=k[q]})),r=kt&&kt.__setModuleDefault||(Object.create?(function(N,k){Object.defineProperty(N,"default",{enumerable:!0,value:k})}):function(N,k){N.default=k}),n=kt&&kt.__importStar||function(N){if(N&&N.__esModule)return N;var k={};if(N!=null)for(var q in N)q!=="default"&&Object.prototype.hasOwnProperty.call(N,q)&&e(k,N,q);return r(k,N),k},o=kt&&kt.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var s=o(V0);t.htmlDecodeTree=s.default;var l=o(W0);t.xmlDecodeTree=l.default;var c=n(jy);t.decodeCodePoint=c.default;var u=jy;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var f;(function(N){N[N.NUM=35]="NUM",N[N.SEMI=59]="SEMI",N[N.EQUALS=61]="EQUALS",N[N.ZERO=48]="ZERO",N[N.NINE=57]="NINE",N[N.LOWER_A=97]="LOWER_A",N[N.LOWER_F=102]="LOWER_F",N[N.LOWER_X=120]="LOWER_X",N[N.LOWER_Z=122]="LOWER_Z",N[N.UPPER_A=65]="UPPER_A",N[N.UPPER_F=70]="UPPER_F",N[N.UPPER_Z=90]="UPPER_Z"})(f||(f={}));var h=32,v;(function(N){N[N.VALUE_LENGTH=49152]="VALUE_LENGTH",N[N.BRANCH_LENGTH=16256]="BRANCH_LENGTH",N[N.JUMP_TABLE=127]="JUMP_TABLE"})(v=t.BinTrieFlags||(t.BinTrieFlags={}));function g(N){return N>=f.ZERO&&N<=f.NINE}function y(N){return N>=f.UPPER_A&&N<=f.UPPER_F||N>=f.LOWER_A&&N<=f.LOWER_F}function w(N){return N>=f.UPPER_A&&N<=f.UPPER_Z||N>=f.LOWER_A&&N<=f.LOWER_Z||g(N)}function x(N){return N===f.EQUALS||w(N)}var C;(function(N){N[N.EntityStart=0]="EntityStart",N[N.NumericStart=1]="NumericStart",N[N.NumericDecimal=2]="NumericDecimal",N[N.NumericHex=3]="NumericHex",N[N.NamedEntity=4]="NamedEntity"})(C||(C={}));var R;(function(N){N[N.Legacy=0]="Legacy",N[N.Strict=1]="Strict",N[N.Attribute=2]="Attribute"})(R=t.DecodingMode||(t.DecodingMode={}));var P=(function(){function N(k,q,U){this.decodeTree=k,this.emitCodePoint=q,this.errors=U,this.state=C.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=R.Strict}return N.prototype.startEntity=function(k){this.decodeMode=k,this.state=C.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},N.prototype.write=function(k,q){switch(this.state){case C.EntityStart:return k.charCodeAt(q)===f.NUM?(this.state=C.NumericStart,this.consumed+=1,this.stateNumericStart(k,q+1)):(this.state=C.NamedEntity,this.stateNamedEntity(k,q));case C.NumericStart:return this.stateNumericStart(k,q);case C.NumericDecimal:return this.stateNumericDecimal(k,q);case C.NumericHex:return this.stateNumericHex(k,q);case C.NamedEntity:return this.stateNamedEntity(k,q)}},N.prototype.stateNumericStart=function(k,q){return q>=k.length?-1:(k.charCodeAt(q)|h)===f.LOWER_X?(this.state=C.NumericHex,this.consumed+=1,this.stateNumericHex(k,q+1)):(this.state=C.NumericDecimal,this.stateNumericDecimal(k,q))},N.prototype.addToNumericResult=function(k,q,U,L){if(q!==U){var W=U-q;this.result=this.result*Math.pow(L,W)+parseInt(k.substr(q,W),L),this.consumed+=W}},N.prototype.stateNumericHex=function(k,q){for(var U=q;q<k.length;){var L=k.charCodeAt(q);if(g(L)||y(L))q+=1;else return this.addToNumericResult(k,U,q,16),this.emitNumericEntity(L,3)}return this.addToNumericResult(k,U,q,16),-1},N.prototype.stateNumericDecimal=function(k,q){for(var U=q;q<k.length;){var L=k.charCodeAt(q);if(g(L))q+=1;else return this.addToNumericResult(k,U,q,10),this.emitNumericEntity(L,2)}return this.addToNumericResult(k,U,q,10),-1},N.prototype.emitNumericEntity=function(k,q){var U;if(this.consumed<=q)return(U=this.errors)===null||U===void 0||U.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(k===f.SEMI)this.consumed+=1;else if(this.decodeMode===R.Strict)return 0;return this.emitCodePoint((0,c.replaceCodePoint)(this.result),this.consumed),this.errors&&(k!==f.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},N.prototype.stateNamedEntity=function(k,q){for(var U=this.decodeTree,L=U[this.treeIndex],W=(L&v.VALUE_LENGTH)>>14;q<k.length;q++,this.excess++){var K=k.charCodeAt(q);if(this.treeIndex=E(U,L,this.treeIndex+Math.max(1,W),K),this.treeIndex<0)return this.result===0||this.decodeMode===R.Attribute&&(W===0||x(K))?0:this.emitNotTerminatedNamedEntity();if(L=U[this.treeIndex],W=(L&v.VALUE_LENGTH)>>14,W!==0){if(K===f.SEMI)return this.emitNamedEntityData(this.treeIndex,W,this.consumed+this.excess);this.decodeMode!==R.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},N.prototype.emitNotTerminatedNamedEntity=function(){var k,q=this,U=q.result,L=q.decodeTree,W=(L[U]&v.VALUE_LENGTH)>>14;return this.emitNamedEntityData(U,W,this.consumed),(k=this.errors)===null||k===void 0||k.missingSemicolonAfterCharacterReference(),this.consumed},N.prototype.emitNamedEntityData=function(k,q,U){var L=this.decodeTree;return this.emitCodePoint(q===1?L[k]&~v.VALUE_LENGTH:L[k+1],U),q===3&&this.emitCodePoint(L[k+2],U),U},N.prototype.end=function(){var k;switch(this.state){case C.NamedEntity:return this.result!==0&&(this.decodeMode!==R.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case C.NumericDecimal:return this.emitNumericEntity(0,2);case C.NumericHex:return this.emitNumericEntity(0,3);case C.NumericStart:return(k=this.errors)===null||k===void 0||k.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case C.EntityStart:return 0}},N})();t.EntityDecoder=P;function M(N){var k="",q=new P(N,function(U){return k+=(0,c.fromCodePoint)(U)});return function(L,W){for(var K=0,ee=0;(ee=L.indexOf("&",ee))>=0;){k+=L.slice(K,ee),q.startEntity(W);var Z=q.write(L,ee+1);if(Z<0){K=ee+q.end();break}K=ee+Z,ee=Z===0?K+1:K}var Q=k+L.slice(K);return k="",Q}}function E(N,k,q,U){var L=(k&v.BRANCH_LENGTH)>>7,W=k&v.JUMP_TABLE;if(L===0)return W!==0&&U===W?q:-1;if(W){var K=U-W;return K<0||K>=L?-1:N[q+K]-1}for(var ee=q,Z=ee+L-1;ee<=Z;){var Q=ee+Z>>>1,X=N[Q];if(X<U)ee=Q+1;else if(X>U)Z=Q-1;else return N[Q+L]}return-1}t.determineBranch=E;var I=M(s.default),A=M(l.default);function F(N,k){return k===void 0&&(k=R.Legacy),I(N,k)}t.decodeHTML=F;function j(N){return I(N,R.Attribute)}t.decodeHTMLAttribute=j;function H(N){return I(N,R.Strict)}t.decodeHTMLStrict=H;function G(N){return A(N,R.Strict)}t.decodeXML=G})(Hu);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=Hu,r;(function(g){g[g.Tab=9]="Tab",g[g.NewLine=10]="NewLine",g[g.FormFeed=12]="FormFeed",g[g.CarriageReturn=13]="CarriageReturn",g[g.Space=32]="Space",g[g.ExclamationMark=33]="ExclamationMark",g[g.Number=35]="Number",g[g.Amp=38]="Amp",g[g.SingleQuote=39]="SingleQuote",g[g.DoubleQuote=34]="DoubleQuote",g[g.Dash=45]="Dash",g[g.Slash=47]="Slash",g[g.Zero=48]="Zero",g[g.Nine=57]="Nine",g[g.Semi=59]="Semi",g[g.Lt=60]="Lt",g[g.Eq=61]="Eq",g[g.Gt=62]="Gt",g[g.Questionmark=63]="Questionmark",g[g.UpperA=65]="UpperA",g[g.LowerA=97]="LowerA",g[g.UpperF=70]="UpperF",g[g.LowerF=102]="LowerF",g[g.UpperZ=90]="UpperZ",g[g.LowerZ=122]="LowerZ",g[g.LowerX=120]="LowerX",g[g.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(g){g[g.Text=1]="Text",g[g.BeforeTagName=2]="BeforeTagName",g[g.InTagName=3]="InTagName",g[g.InSelfClosingTag=4]="InSelfClosingTag",g[g.BeforeClosingTagName=5]="BeforeClosingTagName",g[g.InClosingTagName=6]="InClosingTagName",g[g.AfterClosingTagName=7]="AfterClosingTagName",g[g.BeforeAttributeName=8]="BeforeAttributeName",g[g.InAttributeName=9]="InAttributeName",g[g.AfterAttributeName=10]="AfterAttributeName",g[g.BeforeAttributeValue=11]="BeforeAttributeValue",g[g.InAttributeValueDq=12]="InAttributeValueDq",g[g.InAttributeValueSq=13]="InAttributeValueSq",g[g.InAttributeValueNq=14]="InAttributeValueNq",g[g.BeforeDeclaration=15]="BeforeDeclaration",g[g.InDeclaration=16]="InDeclaration",g[g.InProcessingInstruction=17]="InProcessingInstruction",g[g.BeforeComment=18]="BeforeComment",g[g.CDATASequence=19]="CDATASequence",g[g.InSpecialComment=20]="InSpecialComment",g[g.InCommentLike=21]="InCommentLike",g[g.BeforeSpecialS=22]="BeforeSpecialS",g[g.SpecialStartSequence=23]="SpecialStartSequence",g[g.InSpecialTag=24]="InSpecialTag",g[g.BeforeEntity=25]="BeforeEntity",g[g.BeforeNumericEntity=26]="BeforeNumericEntity",g[g.InNamedEntity=27]="InNamedEntity",g[g.InNumericEntity=28]="InNumericEntity",g[g.InHexEntity=29]="InHexEntity"})(n||(n={}));function o(g){return g===r.Space||g===r.NewLine||g===r.Tab||g===r.FormFeed||g===r.CarriageReturn}function s(g){return g===r.Slash||g===r.Gt||o(g)}function l(g){return g>=r.Zero&&g<=r.Nine}function c(g){return g>=r.LowerA&&g<=r.LowerZ||g>=r.UpperA&&g<=r.UpperZ}function u(g){return g>=r.UpperA&&g<=r.UpperF||g>=r.LowerA&&g<=r.LowerF}var f;(function(g){g[g.NoValue=0]="NoValue",g[g.Unquoted=1]="Unquoted",g[g.Single=2]="Single",g[g.Double=3]="Double"})(f=t.QuoteType||(t.QuoteType={}));var h={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},v=(function(){function g(y,w){var x=y.xmlMode,C=x===void 0?!1:x,R=y.decodeEntities,P=R===void 0?!0:R;this.cbs=w,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=C,this.decodeEntities=P,this.entityTrie=C?e.xmlDecodeTree:e.htmlDecodeTree}return g.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},g.prototype.write=function(y){this.offset+=this.buffer.length,this.buffer=y,this.parse()},g.prototype.end=function(){this.running&&this.finish()},g.prototype.pause=function(){this.running=!1},g.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},g.prototype.getIndex=function(){return this.index},g.prototype.getSectionStart=function(){return this.sectionStart},g.prototype.stateText=function(y){y===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&y===r.Amp&&(this.state=n.BeforeEntity)},g.prototype.stateSpecialStartSequence=function(y){var w=this.sequenceIndex===this.currentSequence.length,x=w?s(y):(y|32)===this.currentSequence[this.sequenceIndex];if(!x)this.isSpecial=!1;else if(!w){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(y)},g.prototype.stateInSpecialTag=function(y){if(this.sequenceIndex===this.currentSequence.length){if(y===r.Gt||o(y)){var w=this.index-this.currentSequence.length;if(this.sectionStart<w){var x=this.index;this.index=w,this.cbs.ontext(this.sectionStart,w),this.index=x}this.isSpecial=!1,this.sectionStart=w+2,this.stateInClosingTagName(y);return}this.sequenceIndex=0}(y|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===h.TitleEnd?this.decodeEntities&&y===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(y===r.Lt)},g.prototype.stateCDATASequence=function(y){y===h.Cdata[this.sequenceIndex]?++this.sequenceIndex===h.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=h.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(y))},g.prototype.fastForwardTo=function(y){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===y)return!0;return this.index=this.buffer.length+this.offset-1,!1},g.prototype.stateInCommentLike=function(y){y===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===h.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):y!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},g.prototype.isTagStartChar=function(y){return this.xmlMode?!s(y):c(y)},g.prototype.startSpecial=function(y,w){this.isSpecial=!0,this.currentSequence=y,this.sequenceIndex=w,this.state=n.SpecialStartSequence},g.prototype.stateBeforeTagName=function(y){if(y===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(y===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(y)){var w=y|32;this.sectionStart=this.index,!this.xmlMode&&w===h.TitleEnd[2]?this.startSpecial(h.TitleEnd,3):this.state=!this.xmlMode&&w===h.ScriptEnd[2]?n.BeforeSpecialS:n.InTagName}else y===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(y))},g.prototype.stateInTagName=function(y){s(y)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y))},g.prototype.stateBeforeClosingTagName=function(y){o(y)||(y===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(y)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},g.prototype.stateInClosingTagName=function(y){(y===r.Gt||o(y))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(y))},g.prototype.stateAfterClosingTagName=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},g.prototype.stateBeforeAttributeName=function(y){y===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):y===r.Slash?this.state=n.InSelfClosingTag:o(y)||(this.state=n.InAttributeName,this.sectionStart=this.index)},g.prototype.stateInSelfClosingTag=function(y){y===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(y)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y))},g.prototype.stateInAttributeName=function(y){(y===r.Eq||s(y))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(y))},g.prototype.stateAfterAttributeName=function(y){y===r.Eq?this.state=n.BeforeAttributeValue:y===r.Slash||y===r.Gt?(this.cbs.onattribend(f.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y)):o(y)||(this.cbs.onattribend(f.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},g.prototype.stateBeforeAttributeValue=function(y){y===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):y===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(y)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(y))},g.prototype.handleInAttributeValue=function(y,w){y===w||!this.decodeEntities&&this.fastForwardTo(w)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(w===r.DoubleQuote?f.Double:f.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&y===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},g.prototype.stateInAttributeValueDoubleQuotes=function(y){this.handleInAttributeValue(y,r.DoubleQuote)},g.prototype.stateInAttributeValueSingleQuotes=function(y){this.handleInAttributeValue(y,r.SingleQuote)},g.prototype.stateInAttributeValueNoQuotes=function(y){o(y)||y===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(f.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y)):this.decodeEntities&&y===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},g.prototype.stateBeforeDeclaration=function(y){y===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=y===r.Dash?n.BeforeComment:n.InDeclaration},g.prototype.stateInDeclaration=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},g.prototype.stateInProcessingInstruction=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},g.prototype.stateBeforeComment=function(y){y===r.Dash?(this.state=n.InCommentLike,this.currentSequence=h.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},g.prototype.stateInSpecialComment=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},g.prototype.stateBeforeSpecialS=function(y){var w=y|32;w===h.ScriptEnd[3]?this.startSpecial(h.ScriptEnd,4):w===h.StyleEnd[3]?this.startSpecial(h.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(y))},g.prototype.stateBeforeEntity=function(y){this.entityExcess=1,this.entityResult=0,y===r.Number?this.state=n.BeforeNumericEntity:y===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(y))},g.prototype.stateInNamedEntity=function(y){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,y),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var w=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(w){var x=(w>>14)-1;if(!this.allowLegacyEntity()&&y!==r.Semi)this.trieIndex+=x;else{var C=this.index-this.entityExcess+1;C>this.sectionStart&&this.emitPartial(this.sectionStart,C),this.entityResult=this.trieIndex,this.trieIndex+=x,this.entityExcess=0,this.sectionStart=this.index+1,x===0&&this.emitNamedEntity()}}},g.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var y=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(y){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},g.prototype.stateBeforeNumericEntity=function(y){(y|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(y))},g.prototype.emitNumericEntity=function(y){var w=this.index-this.entityExcess-1,x=w+2+ +(this.state===n.InHexEntity);x!==this.index&&(w>this.sectionStart&&this.emitPartial(this.sectionStart,w),this.sectionStart=this.index+Number(y),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},g.prototype.stateInNumericEntity=function(y){y===r.Semi?this.emitNumericEntity(!0):l(y)?(this.entityResult=this.entityResult*10+(y-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},g.prototype.stateInHexEntity=function(y){y===r.Semi?this.emitNumericEntity(!0):l(y)?(this.entityResult=this.entityResult*16+(y-r.Zero),this.entityExcess++):u(y)?(this.entityResult=this.entityResult*16+((y|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},g.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},g.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},g.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},g.prototype.parse=function(){for(;this.shouldContinue();){var y=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(y);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(y);break}case n.InSpecialTag:{this.stateInSpecialTag(y);break}case n.CDATASequence:{this.stateCDATASequence(y);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(y);break}case n.InAttributeName:{this.stateInAttributeName(y);break}case n.InCommentLike:{this.stateInCommentLike(y);break}case n.InSpecialComment:{this.stateInSpecialComment(y);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(y);break}case n.InTagName:{this.stateInTagName(y);break}case n.InClosingTagName:{this.stateInClosingTagName(y);break}case n.BeforeTagName:{this.stateBeforeTagName(y);break}case n.AfterAttributeName:{this.stateAfterAttributeName(y);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(y);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(y);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(y);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(y);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(y);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(y);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(y);break}case n.InDeclaration:{this.stateInDeclaration(y);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(y);break}case n.BeforeComment:{this.stateBeforeComment(y);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(y);break}case n.InNamedEntity:{this.stateInNamedEntity(y);break}case n.BeforeEntity:{this.stateBeforeEntity(y);break}case n.InHexEntity:{this.stateInHexEntity(y);break}case n.InNumericEntity:{this.stateInNumericEntity(y);break}default:this.stateBeforeNumericEntity(y)}this.index++}this.cleanup()},g.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},g.prototype.handleTrailingData=function(){var y=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===h.CdataEnd?this.cbs.oncdata(this.sectionStart,y,0):this.cbs.oncomment(this.sectionStart,y,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,y)},g.prototype.emitPartial=function(y,w){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(y,w):this.cbs.ontext(y,w)},g.prototype.emitCodePoint=function(y){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(y):this.cbs.ontextentity(y)},g})();t.default=v})(U0);var AB=kt&&kt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),jB=kt&&kt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_B=kt&&kt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&AB(e,t,r);return jB(e,t),e};Object.defineProperty(Fu,"__esModule",{value:!0});Fu.Parser=void 0;var zp=_B(U0),IS=Hu,Sl=new Set(["input","option","optgroup","select","button","datalist","textarea"]),ir=new Set(["p"]),AS=new Set(["thead","tbody"]),jS=new Set(["dd","dt"]),_S=new Set(["rt","rp"]),LB=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",ir],["h1",ir],["h2",ir],["h3",ir],["h4",ir],["h5",ir],["h6",ir],["select",Sl],["input",Sl],["output",Sl],["button",Sl],["datalist",Sl],["textarea",Sl],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",jS],["dt",jS],["address",ir],["article",ir],["aside",ir],["blockquote",ir],["details",ir],["div",ir],["dl",ir],["fieldset",ir],["figcaption",ir],["figure",ir],["footer",ir],["form",ir],["header",ir],["hr",ir],["main",ir],["nav",ir],["ol",ir],["pre",ir],["section",ir],["table",ir],["ul",ir],["rt",_S],["rp",_S],["tbody",AS],["tfoot",AS]]),OB=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),LS=new Set(["math","svg"]),OS=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),NB=/\s|\//,$B=(function(){function t(e,r){r===void 0&&(r={});var n,o,s,l,c;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(o=r.lowerCaseAttributeNames)!==null&&o!==void 0?o:!r.xmlMode,this.tokenizer=new((s=r.Tokenizer)!==null&&s!==void 0?s:zp.default)(this.options,this),(c=(l=this.cbs).onparserinit)===null||c===void 0||c.call(l,this)}return t.prototype.ontext=function(e,r){var n,o,s=this.getSlice(e,r);this.endIndex=r-1,(o=(n=this.cbs).ontext)===null||o===void 0||o.call(n,s),this.startIndex=r},t.prototype.ontextentity=function(e){var r,n,o=this.tokenizer.getSectionStart();this.endIndex=o-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,IS.fromCodePoint)(e)),this.startIndex=o},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&OB.has(e)},t.prototype.onopentagname=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},t.prototype.emitOpenTag=function(e){var r,n,o,s;this.openTagStart=this.startIndex,this.tagname=e;var l=!this.options.xmlMode&&LB.get(e);if(l)for(;this.stack.length>0&&l.has(this.stack[this.stack.length-1]);){var c=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,c,!0)}this.isVoidElement(e)||(this.stack.push(e),LS.has(e)?this.foreignContext.push(!0):OS.has(e)&&this.foreignContext.push(!1)),(s=(o=this.cbs).onopentagname)===null||s===void 0||s.call(o,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,o,s,l,c,u;this.endIndex=r;var f=this.getSlice(e,r);if(this.lowerCaseTagNames&&(f=f.toLowerCase()),(LS.has(f)||OS.has(f))&&this.foreignContext.pop(),this.isVoidElement(f))!this.options.xmlMode&&f==="br"&&((o=(n=this.cbs).onopentagname)===null||o===void 0||o.call(n,"br"),(l=(s=this.cbs).onopentag)===null||l===void 0||l.call(s,"br",{},!0),(u=(c=this.cbs).onclosetag)===null||u===void 0||u.call(c,"br",!1));else{var h=this.stack.lastIndexOf(f);if(h!==-1)if(this.cbs.onclosetag)for(var v=this.stack.length-h;v--;)this.cbs.onclosetag(this.stack.pop(),v!==0);else this.stack.length=h;else!this.options.xmlMode&&f==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,o=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===o&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,o,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,IS.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,o;this.endIndex=r,(o=(n=this.cbs).onattribute)===null||o===void 0||o.call(n,this.attribname,this.attribvalue,e===zp.QuoteType.Double?'"':e===zp.QuoteType.Single?"'":e===zp.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(NB),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(o),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(o),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var o,s,l,c;this.endIndex=r,(s=(o=this.cbs).oncomment)===null||s===void 0||s.call(o,this.getSlice(e,r-n)),(c=(l=this.cbs).oncommentend)===null||c===void 0||c.call(l),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var o,s,l,c,u,f,h,v,g,y;this.endIndex=r;var w=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(o=this.cbs).oncdatastart)===null||s===void 0||s.call(o),(c=(l=this.cbs).ontext)===null||c===void 0||c.call(l,w),(f=(u=this.cbs).oncdataend)===null||f===void 0||f.call(u)):((v=(h=this.cbs).oncomment)===null||v===void 0||v.call(h,"[CDATA[".concat(w,"]]")),(y=(g=this.cbs).oncommentend)===null||y===void 0||y.call(g)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,o;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(o=(n=this.cbs).onparserinit)===null||o===void 0||o.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},t.prototype.parseChunk=function(e){this.write(e)},t.prototype.done=function(e){this.end(e)},t})();Fu.Parser=$B;var ta={},cc={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function r(n){return n.type===e.Tag||n.type===e.Script||n.type===e.Style}t.isTag=r,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(cc);var Dt={},Ja=kt&&kt.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),vu=kt&&kt.__assign||function(){return vu=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},vu.apply(this,arguments)};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.cloneNode=Dt.hasChildren=Dt.isDocument=Dt.isDirective=Dt.isComment=Dt.isText=Dt.isCDATA=Dt.isTag=Dt.Element=Dt.Document=Dt.CDATA=Dt.NodeWithChildren=Dt.ProcessingInstruction=Dt.Comment=Dt.Text=Dt.DataNode=Dt.Node=void 0;var qn=cc,q0=(function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),G0(this,e)},t})();Dt.Node=q0;var vh=(function(t){Ja(e,t);function e(r){var n=t.call(this)||this;return n.data=r,n}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),e})(q0);Dt.DataNode=vh;var XT=(function(t){Ja(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=qn.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e})(vh);Dt.Text=XT;var KT=(function(t){Ja(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=qn.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e})(vh);Dt.Comment=KT;var QT=(function(t){Ja(e,t);function e(r,n){var o=t.call(this,n)||this;return o.name=r,o.type=qn.ElementType.Directive,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e})(vh);Dt.ProcessingInstruction=QT;var bh=(function(t){Ja(e,t);function e(r){var n=t.call(this)||this;return n.children=r,n}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),e})(q0);Dt.NodeWithChildren=bh;var YT=(function(t){Ja(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=qn.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e})(bh);Dt.CDATA=YT;var JT=(function(t){Ja(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=qn.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e})(bh);Dt.Document=JT;var ZT=(function(t){Ja(e,t);function e(r,n,o,s){o===void 0&&(o=[]),s===void 0&&(s=r==="script"?qn.ElementType.Script:r==="style"?qn.ElementType.Style:qn.ElementType.Tag);var l=t.call(this,o)||this;return l.name=r,l.attribs=n,l.type=s,l}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var o,s;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(s=r["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),e})(bh);Dt.Element=ZT;function eE(t){return(0,qn.isTag)(t)}Dt.isTag=eE;function tE(t){return t.type===qn.ElementType.CDATA}Dt.isCDATA=tE;function rE(t){return t.type===qn.ElementType.Text}Dt.isText=rE;function nE(t){return t.type===qn.ElementType.Comment}Dt.isComment=nE;function oE(t){return t.type===qn.ElementType.Directive}Dt.isDirective=oE;function iE(t){return t.type===qn.ElementType.Root}Dt.isDocument=iE;function BB(t){return Object.prototype.hasOwnProperty.call(t,"children")}Dt.hasChildren=BB;function G0(t,e){e===void 0&&(e=!1);var r;if(rE(t))r=new XT(t.data);else if(nE(t))r=new KT(t.data);else if(eE(t)){var n=e?Ng(t.children):[],o=new ZT(t.name,vu({},t.attribs),n);n.forEach(function(u){return u.parent=o}),t.namespace!=null&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=vu({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=vu({},t["x-attribsPrefix"])),r=o}else if(tE(t)){var n=e?Ng(t.children):[],s=new YT(n);n.forEach(function(f){return f.parent=s}),r=s}else if(iE(t)){var n=e?Ng(t.children):[],l=new JT(n);n.forEach(function(f){return f.parent=l}),t["x-mode"]&&(l["x-mode"]=t["x-mode"]),r=l}else if(oE(t)){var c=new QT(t.name,t.data);t["x-name"]!=null&&(c["x-name"]=t["x-name"],c["x-publicId"]=t["x-publicId"],c["x-systemId"]=t["x-systemId"]),r=c}else throw new Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(r.sourceCodeLocation=t.sourceCodeLocation),r}Dt.cloneNode=G0;function Ng(t){for(var e=t.map(function(n){return G0(n,!0)}),r=1;r<e.length;r++)e[r].prev=e[r-1],e[r-1].next=e[r];return e}(function(t){var e=kt&&kt.__createBinding||(Object.create?(function(c,u,f,h){h===void 0&&(h=f);var v=Object.getOwnPropertyDescriptor(u,f);(!v||("get"in v?!u.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(c,h,v)}):(function(c,u,f,h){h===void 0&&(h=f),c[h]=u[f]})),r=kt&&kt.__exportStar||function(c,u){for(var f in c)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&e(u,c,f)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=cc,o=Dt;r(Dt,t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=(function(){function c(u,f,h){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof f=="function"&&(h=f,f=s),typeof u=="object"&&(f=u,u=void 0),this.callback=u??null,this.options=f??s,this.elementCB=h??null}return c.prototype.onparserinit=function(u){this.parser=u},c.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},c.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},c.prototype.onerror=function(u){this.handleCallback(u)},c.prototype.onclosetag=function(){this.lastNode=null;var u=this.tagStack.pop();this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(u)},c.prototype.onopentag=function(u,f){var h=this.options.xmlMode?n.ElementType.Tag:void 0,v=new o.Element(u,f,void 0,h);this.addNode(v),this.tagStack.push(v)},c.prototype.ontext=function(u){var f=this.lastNode;if(f&&f.type===n.ElementType.Text)f.data+=u,this.options.withEndIndices&&(f.endIndex=this.parser.endIndex);else{var h=new o.Text(u);this.addNode(h),this.lastNode=h}},c.prototype.oncomment=function(u){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=u;return}var f=new o.Comment(u);this.addNode(f),this.lastNode=f},c.prototype.oncommentend=function(){this.lastNode=null},c.prototype.oncdatastart=function(){var u=new o.Text(""),f=new o.CDATA([u]);this.addNode(f),u.parent=f,this.lastNode=u},c.prototype.oncdataend=function(){this.lastNode=null},c.prototype.onprocessinginstruction=function(u,f){var h=new o.ProcessingInstruction(u,f);this.addNode(h)},c.prototype.handleCallback=function(u){if(typeof this.callback=="function")this.callback(u,this.dom);else if(u)throw u},c.prototype.addNode=function(u){var f=this.tagStack[this.tagStack.length-1],h=f.children[f.children.length-1];this.options.withStartIndices&&(u.startIndex=this.parser.startIndex),this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),f.children.push(u),h&&(u.prev=h,h.next=u),u.parent=f,this.lastNode=null},c})();t.DomHandler=l,t.default=l})(ta);var af={},Za={},dd={},aE={},As={},X0={};Object.defineProperty(X0,"__esModule",{value:!0});function Dp(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}X0.default=new Map(Dp([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(Dp([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(Dp([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(Dp([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var Ef={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(o,s){return o.codePointAt(s)}:(function(o,s){return(o.charCodeAt(s)&64512)===55296?(o.charCodeAt(s)-55296)*1024+o.charCodeAt(s+1)-56320+65536:o.charCodeAt(s)});function r(o){for(var s="",l=0,c;(c=t.xmlReplacer.exec(o))!==null;){var u=c.index,f=o.charCodeAt(u),h=e.get(f);h!==void 0?(s+=o.substring(l,u)+h,l=u+1):(s+="".concat(o.substring(l,u),"&#x").concat((0,t.getCodePoint)(o,u).toString(16),";"),l=t.xmlReplacer.lastIndex+=+((f&64512)===55296))}return s+o.substr(l)}t.encodeXML=r,t.escape=r;function n(o,s){return function(c){for(var u,f=0,h="";u=o.exec(c);)f!==u.index&&(h+=c.substring(f,u.index)),h+=s.get(u[0].charCodeAt(0)),f=u.index+1;return h+c.substring(f)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(Ef);var zB=kt&&kt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(As,"__esModule",{value:!0});As.encodeNonAsciiHTML=As.encodeHTML=void 0;var DB=zB(X0),sE=Ef,FB=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function HB(t){return lE(FB,t)}As.encodeHTML=HB;function UB(t){return lE(sE.xmlReplacer,t)}As.encodeNonAsciiHTML=UB;function lE(t,e){for(var r="",n=0,o;(o=t.exec(e))!==null;){var s=o.index;r+=e.substring(n,s);var l=e.charCodeAt(s),c=DB.default.get(l);if(typeof c=="object"){if(s+1<e.length){var u=e.charCodeAt(s+1),f=typeof c.n=="number"?c.n===u?c.o:void 0:c.n.get(u);if(f!==void 0){r+=f,n=t.lastIndex+=1;continue}}c=c.v}if(c!==void 0)r+=c,n=s+1;else{var h=(0,sE.getCodePoint)(e,s);r+="&#x".concat(h.toString(16),";"),n=t.lastIndex+=+(h!==l)}}return r+e.substr(n)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=Hu,r=As,n=Ef,o;(function(g){g[g.XML=0]="XML",g[g.HTML=1]="HTML"})(o=t.EntityLevel||(t.EntityLevel={}));var s;(function(g){g[g.UTF8=0]="UTF8",g[g.ASCII=1]="ASCII",g[g.Extensive=2]="Extensive",g[g.Attribute=3]="Attribute",g[g.Text=4]="Text"})(s=t.EncodingMode||(t.EncodingMode={}));function l(g,y){y===void 0&&(y=o.XML);var w=typeof y=="number"?y:y.level;if(w===o.HTML){var x=typeof y=="object"?y.mode:void 0;return(0,e.decodeHTML)(g,x)}return(0,e.decodeXML)(g)}t.decode=l;function c(g,y){var w;y===void 0&&(y=o.XML);var x=typeof y=="number"?{level:y}:y;return(w=x.mode)!==null&&w!==void 0||(x.mode=e.DecodingMode.Strict),l(g,x)}t.decodeStrict=c;function u(g,y){y===void 0&&(y=o.XML);var w=typeof y=="number"?{level:y}:y;return w.mode===s.UTF8?(0,n.escapeUTF8)(g):w.mode===s.Attribute?(0,n.escapeAttribute)(g):w.mode===s.Text?(0,n.escapeText)(g):w.level===o.HTML?w.mode===s.ASCII?(0,r.encodeNonAsciiHTML)(g):(0,r.encodeHTML)(g):(0,n.encodeXML)(g)}t.encode=u;var f=Ef;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return f.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return f.escapeText}});var h=As;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return h.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return h.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return h.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return h.encodeHTML}});var v=Hu;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return v.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return v.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return v.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return v.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return v.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return v.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return v.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return v.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return v.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return v.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return v.decodeXML}})})(aE);var ql={};Object.defineProperty(ql,"__esModule",{value:!0});ql.attributeNames=ql.elementNames=void 0;ql.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]}));ql.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}));var Rl=kt&&kt.__assign||function(){return Rl=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Rl.apply(this,arguments)},VB=kt&&kt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),WB=kt&&kt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qB=kt&&kt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&VB(e,t,r);return WB(e,t),e};Object.defineProperty(dd,"__esModule",{value:!0});dd.render=void 0;var Xi=qB(cc),kf=aE,cE=ql,GB=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function XB(t){return t.replace(/"/g,"&quot;")}function KB(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?XB:e.xmlMode||e.encodeEntities!=="utf8"?kf.encodeXML:kf.escapeAttribute;return Object.keys(t).map(function(o){var s,l,c=(s=t[o])!==null&&s!==void 0?s:"";return e.xmlMode==="foreign"&&(o=(l=cE.attributeNames.get(o))!==null&&l!==void 0?l:o),!e.emptyAttrs&&!e.xmlMode&&c===""?o:"".concat(o,'="').concat(n(c),'"')}).join(" ")}}var NS=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function xh(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",o=0;o<r.length;o++)n+=QB(r[o],e);return n}dd.render=xh;dd.default=xh;function QB(t,e){switch(t.type){case Xi.Root:return xh(t.children,e);case Xi.Doctype:case Xi.Directive:return ez(t);case Xi.Comment:return nz(t);case Xi.CDATA:return rz(t);case Xi.Script:case Xi.Style:case Xi.Tag:return ZB(t,e);case Xi.Text:return tz(t,e)}}var YB=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),JB=new Set(["svg","math"]);function ZB(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=cE.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&YB.has(t.parent.name)&&(e=Rl(Rl({},e),{xmlMode:!1}))),!e.xmlMode&&JB.has(t.name)&&(e=Rl(Rl({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),o=KB(t.attribs,e);return o&&(n+=" ".concat(o)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&NS.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=xh(t.children,e)),(e.xmlMode||!NS.has(t.name))&&(n+="</".concat(t.name,">"))),n}function ez(t){return"<".concat(t.data,">")}function tz(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&GB.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,kf.encodeXML)(n):(0,kf.escapeText)(n)),n}function rz(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function nz(t){return"<!--".concat(t.data,"-->")}var oz=kt&&kt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Za,"__esModule",{value:!0});Za.getOuterHTML=uE;Za.getInnerHTML=sz;Za.getText=sf;Za.textContent=_y;Za.innerText=Ly;var ki=ta,iz=oz(dd),az=cc;function uE(t,e){return(0,iz.default)(t,e)}function sz(t,e){return(0,ki.hasChildren)(t)?t.children.map(function(r){return uE(r,e)}).join(""):""}function sf(t){return Array.isArray(t)?t.map(sf).join(""):(0,ki.isTag)(t)?t.name==="br"?`
339
+ `:sf(t.children):(0,ki.isCDATA)(t)?sf(t.children):(0,ki.isText)(t)?t.data:""}function _y(t){return Array.isArray(t)?t.map(_y).join(""):(0,ki.hasChildren)(t)&&!(0,ki.isComment)(t)?_y(t.children):(0,ki.isText)(t)?t.data:""}function Ly(t){return Array.isArray(t)?t.map(Ly).join(""):(0,ki.hasChildren)(t)&&(t.type===az.ElementType.Tag||(0,ki.isCDATA)(t))?Ly(t.children):(0,ki.isText)(t)?t.data:""}var Ni={};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.getChildren=dE;Ni.getParent=pE;Ni.getSiblings=lz;Ni.getAttributeValue=cz;Ni.hasAttrib=uz;Ni.getName=dz;Ni.nextElementSibling=pz;Ni.prevElementSibling=fz;var K0=ta;function dE(t){return(0,K0.hasChildren)(t)?t.children:[]}function pE(t){return t.parent||null}function lz(t){var e,r,n=pE(t);if(n!=null)return dE(n);for(var o=[t],s=t.prev,l=t.next;s!=null;)o.unshift(s),e=s,s=e.prev;for(;l!=null;)o.push(l),r=l,l=r.next;return o}function cz(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function uz(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function dz(t){return t.name}function pz(t){for(var e,r=t.next;r!==null&&!(0,K0.isTag)(r);)e=r,r=e.next;return r}function fz(t){for(var e,r=t.prev;r!==null&&!(0,K0.isTag)(r);)e=r,r=e.prev;return r}var es={};Object.defineProperty(es,"__esModule",{value:!0});es.removeElement=pd;es.replaceElement=hz;es.appendChild=mz;es.append=gz;es.prependChild=yz;es.prepend=vz;function pd(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function hz(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var o=e.parent=t.parent;if(o){var s=o.children;s[s.lastIndexOf(t)]=e,t.parent=null}}function mz(t,e){if(pd(e),e.next=null,e.parent=t,t.children.push(e)>1){var r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function gz(t,e){pd(e);var r=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){var o=r.children;o.splice(o.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function yz(t,e){if(pd(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var r=t.children[1];r.prev=e,e.next=r}else e.next=null}function vz(t,e){pd(e);var r=t.parent;if(r){var n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}var aa={};Object.defineProperty(aa,"__esModule",{value:!0});aa.filter=bz;aa.find=fE;aa.findOneChild=xz;aa.findOne=hE;aa.existsOne=mE;aa.findAll=wz;var js=ta;function bz(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),fE(t,Array.isArray(e)?e:[e],r,n)}function fE(t,e,r,n){for(var o=[],s=[Array.isArray(e)?e:[e]],l=[0];;){if(l[0]>=s[0].length){if(l.length===1)return o;s.shift(),l.shift();continue}var c=s[0][l[0]++];if(t(c)&&(o.push(c),--n<=0))return o;r&&(0,js.hasChildren)(c)&&c.children.length>0&&(l.unshift(0),s.unshift(c.children))}}function xz(t,e){return e.find(t)}function hE(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],o=0;o<n.length;o++){var s=n[o];if((0,js.isTag)(s)&&t(s))return s;if(r&&(0,js.hasChildren)(s)&&s.children.length>0){var l=hE(t,s.children,!0);if(l)return l}}return null}function mE(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,js.isTag)(r)&&t(r)||(0,js.hasChildren)(r)&&mE(t,r.children)})}function wz(t,e){for(var r=[],n=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=n[0].length){if(n.length===1)return r;n.shift(),o.shift();continue}var s=n[0][o[0]++];(0,js.isTag)(s)&&t(s)&&r.push(s),(0,js.hasChildren)(s)&&s.children.length>0&&(o.unshift(0),n.unshift(s.children))}}var sa={};Object.defineProperty(sa,"__esModule",{value:!0});sa.testElement=Cz;sa.getElements=Tz;sa.getElementById=Ez;sa.getElementsByTagName=kz;sa.getElementsByClassName=Pz;sa.getElementsByTagType=Rz;var ws=ta,fd=aa,Pf={tag_name:function(t){return typeof t=="function"?function(e){return(0,ws.isTag)(e)&&t(e.name)}:t==="*"?ws.isTag:function(e){return(0,ws.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,ws.isText)(e)&&t(e.data)}:function(e){return(0,ws.isText)(e)&&e.data===t}}};function Q0(t,e){return typeof e=="function"?function(r){return(0,ws.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,ws.isTag)(r)&&r.attribs[t]===e}}function Sz(t,e){return function(r){return t(r)||e(r)}}function gE(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Pf,r)?Pf[r](n):Q0(r,n)});return e.length===0?null:e.reduce(Sz)}function Cz(t,e){var r=gE(t);return r?r(e):!0}function Tz(t,e,r,n){n===void 0&&(n=1/0);var o=gE(t);return o?(0,fd.filter)(o,e,r,n):[]}function Ez(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,fd.findOne)(Q0("id",t),e,r)}function kz(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,fd.filter)(Pf.tag_name(t),e,r,n)}function Pz(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,fd.filter)(Q0("class",t),e,r,n)}function Rz(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,fd.filter)(Pf.tag_type(t),e,r,n)}var Ds={};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.DocumentPosition=void 0;Ds.removeSubsets=Mz;Ds.compareDocumentPosition=yE;Ds.uniqueSort=Iz;var $S=ta;function Mz(t){for(var e=t.length;--e>=0;){var r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(var n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Yo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Yo||(Ds.DocumentPosition=Yo={}));function yE(t,e){var r=[],n=[];if(t===e)return 0;for(var o=(0,$S.hasChildren)(t)?t:t.parent;o;)r.unshift(o),o=o.parent;for(o=(0,$S.hasChildren)(e)?e:e.parent;o;)n.unshift(o),o=o.parent;for(var s=Math.min(r.length,n.length),l=0;l<s&&r[l]===n[l];)l++;if(l===0)return Yo.DISCONNECTED;var c=r[l-1],u=c.children,f=r[l],h=n[l];return u.indexOf(f)>u.indexOf(h)?c===e?Yo.FOLLOWING|Yo.CONTAINED_BY:Yo.FOLLOWING:c===t?Yo.PRECEDING|Yo.CONTAINS:Yo.PRECEDING}function Iz(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=yE(e,r);return n&Yo.PRECEDING?-1:n&Yo.FOLLOWING?1:0}),t}var Y0={};Object.defineProperty(Y0,"__esModule",{value:!0});Y0.getFeed=jz;var Az=Za,hd=sa;function jz(t){var e=Rf($z,t);return e?e.name==="feed"?_z(e):Lz(e):null}function _z(t){var e,r=t.children,n={type:"atom",items:(0,hd.getElementsByTagName)("entry",r).map(function(l){var c,u=l.children,f={media:vE(u)};Hn(f,"id","id",u),Hn(f,"title","title",u);var h=(c=Rf("link",u))===null||c===void 0?void 0:c.attribs.href;h&&(f.link=h);var v=La("summary",u)||La("content",u);v&&(f.description=v);var g=La("updated",u);return g&&(f.pubDate=new Date(g)),f})};Hn(n,"id","id",r),Hn(n,"title","title",r);var o=(e=Rf("link",r))===null||e===void 0?void 0:e.attribs.href;o&&(n.link=o),Hn(n,"description","subtitle",r);var s=La("updated",r);return s&&(n.updated=new Date(s)),Hn(n,"author","email",r,!0),n}function Lz(t){var e,r,n=(r=(e=Rf("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],o={type:t.name.substr(0,3),id:"",items:(0,hd.getElementsByTagName)("item",t.children).map(function(l){var c=l.children,u={media:vE(c)};Hn(u,"id","guid",c),Hn(u,"title","title",c),Hn(u,"link","link",c),Hn(u,"description","description",c);var f=La("pubDate",c)||La("dc:date",c);return f&&(u.pubDate=new Date(f)),u})};Hn(o,"title","title",n),Hn(o,"link","link",n),Hn(o,"description","description",n);var s=La("lastBuildDate",n);return s&&(o.updated=new Date(s)),Hn(o,"author","managingEditor",n,!0),o}var Oz=["url","type","lang"],Nz=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function vE(t){return(0,hd.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},o=0,s=Oz;o<s.length;o++){var l=s[o];r[l]&&(n[l]=r[l])}for(var c=0,u=Nz;c<u.length;c++){var l=u[c];r[l]&&(n[l]=parseInt(r[l],10))}return r.expression&&(n.expression=r.expression),n})}function Rf(t,e){return(0,hd.getElementsByTagName)(t,e,!0,1)[0]}function La(t,e,r){return r===void 0&&(r=!1),(0,Az.textContent)((0,hd.getElementsByTagName)(t,e,r,1)).trim()}function Hn(t,e,r,n,o){o===void 0&&(o=!1);var s=La(r,n,o);s&&(t[e]=s)}function $z(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=kt&&kt.__createBinding||(Object.create?(function(o,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(o,c,u)}):(function(o,s,l,c){c===void 0&&(c=l),o[c]=s[l]})),r=kt&&kt.__exportStar||function(o,s){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&e(s,o,l)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(Za,t),r(Ni,t),r(es,t),r(aa,t),r(sa,t),r(Ds,t),r(Y0,t);var n=ta;Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return n.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return n.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return n.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return n.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return n.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return n.hasChildren}})})(af);(function(t){var e=kt&&kt.__createBinding||(Object.create?(function(R,P,M,E){E===void 0&&(E=M);var I=Object.getOwnPropertyDescriptor(P,M);(!I||("get"in I?!P.__esModule:I.writable||I.configurable))&&(I={enumerable:!0,get:function(){return P[M]}}),Object.defineProperty(R,E,I)}):(function(R,P,M,E){E===void 0&&(E=M),R[E]=P[M]})),r=kt&&kt.__setModuleDefault||(Object.create?(function(R,P){Object.defineProperty(R,"default",{enumerable:!0,value:P})}):function(R,P){R.default=P}),n=kt&&kt.__importStar||function(R){if(R&&R.__esModule)return R;var P={};if(R!=null)for(var M in R)M!=="default"&&Object.prototype.hasOwnProperty.call(R,M)&&e(P,R,M);return r(P,R),P},o=kt&&kt.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var s=Fu,l=Fu;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return l.Parser}});var c=ta,u=ta;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}});function f(R,P){var M=new c.DomHandler(void 0,P);return new s.Parser(M,P).end(R),M.root}t.parseDocument=f;function h(R,P){return f(R,P).children}t.parseDOM=h;function v(R,P,M){var E=new c.DomHandler(R,P,M);return new s.Parser(E,P)}t.createDomStream=v;var g=U0;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(g).default}}),t.ElementType=n(cc);var y=af,w=af;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return w.getFeed}});var x={xmlMode:!0};function C(R,P){return P===void 0&&(P=x),(0,y.getFeed)(h(R,P))}t.parseFeed=C,t.DomUtils=n(af)})(GT);var Bz=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},J0={};Object.defineProperty(J0,"__esModule",{value:!0});/*!
340
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
341
+ *
342
+ * Copyright (c) 2014-2017, Jon Schlinkert.
343
+ * Released under the MIT License.
344
+ */function BS(t){return Object.prototype.toString.call(t)==="[object Object]"}function zz(t){var e,r;return BS(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(BS(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}J0.isPlainObject=zz;var Dz=function(e){return Fz(e)&&!Hz(e)};function Fz(t){return!!t&&typeof t=="object"}function Hz(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||Wz(t)}var Uz=typeof Symbol=="function"&&Symbol.for,Vz=Uz?Symbol.for("react.element"):60103;function Wz(t){return t.$$typeof===Vz}function qz(t){return Array.isArray(t)?[]:{}}function Uu(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Gl(qz(t),t,e):t}function Gz(t,e,r){return t.concat(e).map(function(n){return Uu(n,r)})}function Xz(t,e){if(!e.customMerge)return Gl;var r=e.customMerge(t);return typeof r=="function"?r:Gl}function Kz(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function zS(t){return Object.keys(t).concat(Kz(t))}function bE(t,e){try{return e in t}catch{return!1}}function Qz(t,e){return bE(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function Yz(t,e,r){var n={};return r.isMergeableObject(t)&&zS(t).forEach(function(o){n[o]=Uu(t[o],r)}),zS(e).forEach(function(o){Qz(t,o)||(bE(t,o)&&r.isMergeableObject(e[o])?n[o]=Xz(o,r)(t[o],e[o],r):n[o]=Uu(e[o],r))}),n}function Gl(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||Gz,r.isMergeableObject=r.isMergeableObject||Dz,r.cloneUnlessOtherwiseSpecified=Uu;var n=Array.isArray(e),o=Array.isArray(t),s=n===o;return s?n?r.arrayMerge(t,e,r):Yz(t,e,r):Uu(e,r)}Gl.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Gl(n,o,r)},{})};var Jz=Gl,Zz=Jz,xE={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(kt,function(){return function(e){function r(E){return E===" "||E===" "||E===`
345
+ `||E==="\f"||E==="\r"}function n(E){var I,A=E.exec(e.substring(C));if(A)return I=A[0],C+=I.length,I}for(var o=e.length,s=/^[ \t\n\r\u000c]+/,l=/^[, \t\n\r\u000c]+/,c=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,f=/^\d+$/,h=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,v,g,y,w,x,C=0,R=[];;){if(n(l),C>=o)return R;v=n(c),g=[],v.slice(-1)===","?(v=v.replace(u,""),M()):P()}function P(){for(n(s),y="",w="in descriptor";;){if(x=e.charAt(C),w==="in descriptor")if(r(x))y&&(g.push(y),y="",w="after descriptor");else if(x===","){C+=1,y&&g.push(y),M();return}else if(x==="(")y=y+x,w="in parens";else if(x===""){y&&g.push(y),M();return}else y=y+x;else if(w==="in parens")if(x===")")y=y+x,w="in descriptor";else if(x===""){g.push(y),M();return}else y=y+x;else if(w==="after descriptor"&&!r(x))if(x===""){M();return}else w="in descriptor",C-=1;C+=1}}function M(){var E=!1,I,A,F,j,H={},G,N,k,q,U;for(j=0;j<g.length;j++)G=g[j],N=G[G.length-1],k=G.substring(0,G.length-1),q=parseInt(k,10),U=parseFloat(k),f.test(k)&&N==="w"?((I||A)&&(E=!0),q===0?E=!0:I=q):h.test(k)&&N==="x"?((I||A||F)&&(E=!0),U<0?E=!0:A=U):f.test(k)&&N==="h"?((F||A)&&(E=!0),q===0?E=!0:F=q):E=!0;E?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+G+"'."):(H.url=v,I&&(H.w=I),A&&(H.d=A),F&&(H.h=F),R.push(H))}}})})(xE);var eD=xE.exports,Z0={exports:{}},Lt=String,wE=function(){return{isColorSupported:!1,reset:Lt,bold:Lt,dim:Lt,italic:Lt,underline:Lt,inverse:Lt,hidden:Lt,strikethrough:Lt,black:Lt,red:Lt,green:Lt,yellow:Lt,blue:Lt,magenta:Lt,cyan:Lt,white:Lt,gray:Lt,bgBlack:Lt,bgRed:Lt,bgGreen:Lt,bgYellow:Lt,bgBlue:Lt,bgMagenta:Lt,bgCyan:Lt,bgWhite:Lt,blackBright:Lt,redBright:Lt,greenBright:Lt,yellowBright:Lt,blueBright:Lt,magentaBright:Lt,cyanBright:Lt,whiteBright:Lt,bgBlackBright:Lt,bgRedBright:Lt,bgGreenBright:Lt,bgYellowBright:Lt,bgBlueBright:Lt,bgMagentaBright:Lt,bgCyanBright:Lt,bgWhiteBright:Lt}};Z0.exports=wE();Z0.exports.createColors=wE;var tD=Z0.exports,rD={},nD=Object.freeze({__proto__:null,default:rD}),li=IB(nD);let DS=tD,FS=li,Oy=class SE extends Error{constructor(e,r,n,o,s,l){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),o&&(this.source=o),l&&(this.plugin=l),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,SE)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=DS.isColorSupported);let n=h=>h,o=h=>h,s=h=>h;if(e){let{bold:h,gray:v,red:g}=DS.createColors(!0);o=y=>h(g(y)),n=y=>v(y),FS&&(s=y=>FS(y))}let l=r.split(/\r?\n/),c=Math.max(this.line-3,0),u=Math.min(this.line+2,l.length),f=String(u).length;return l.slice(c,u).map((h,v)=>{let g=c+1+v,y=" "+(" "+g).slice(-f)+" | ";if(g===this.line){if(h.length>160){let x=20,C=Math.max(0,this.column-x),R=Math.max(this.column+x,this.endColumn+x),P=h.slice(C,R),M=n(y.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return o(">")+n(y)+s(P)+`
346
+ `+M+o("^")}let w=n(y.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(y)+s(h)+`
347
+ `+w+o("^")}return" "+n(y)+s(h)}).join(`
348
+ `)}toString(){let e=this.showSourceCode();return e&&(e=`
349
+
350
+ `+e+`
351
+ `),this.name+": "+this.message+e}};var ev=Oy;Oy.default=Oy;const HS={after:`
352
+ `,beforeClose:`
353
+ `,beforeComment:`
354
+ `,beforeDecl:`
355
+ `,beforeOpen:" ",beforeRule:`
356
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function oD(t){return t[0].toUpperCase()+t.slice(1)}let Ny=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{let s=(e.raws.between||"")+(r?";":"");this.builder(n+o+s,e)}}beforeAfter(e,r){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let o=e.parent,s=0;for(;o&&o.type!=="root";)s+=1,o=o.parent;if(n.includes(`
357
+ `)){let l=this.raw(e,null,"indent");if(l.length)for(let c=0;c<s;c++)n+=l}return n}block(e,r){let n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");let o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")}body(e){let r=e.nodes.length-1;for(;r>0&&e.nodes[r].type==="comment";)r-=1;let n=this.raw(e,"semicolon");for(let o=0;o<e.nodes.length;o++){let s=e.nodes[o],l=this.raw(s,"before");l&&this.builder(l),this.stringify(s,r!==o||n)}}comment(e){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+n+"*/",e)}decl(e,r){let n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)}document(e){this.body(e)}raw(e,r,n){let o;if(n||(n=r),r&&(o=e.raws[r],typeof o<"u"))return o;let s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return HS[n];let l=e.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[n]<"u")return l.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let c="raw"+oD(n);this[c]?o=this[c](l,e):l.walk(u=>{if(o=u.raws[r],typeof o<"u")return!1})}return typeof o>"u"&&(o=HS[n]),l.rawCache[n]=o,o}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
358
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let n;return e.walkComments(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
359
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,r){let n;return e.walkDecls(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
360
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let r;return e.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(e){let r;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
361
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(n=>{let o=n.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof n.raws.before<"u"){let s=n.raws.before.split(`
362
+ `);return r=s[s.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],o=e.raws[r];return o&&o.value===n?o.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}};var CE=Ny;Ny.default=Ny;let iD=CE;function $y(t,e){new iD(e).stringify(t)}var wh=$y;$y.default=$y;var md={};md.isClean=Symbol("isClean");md.my=Symbol("my");let aD=ev,sD=CE,lD=wh,{isClean:tu,my:cD}=md;function By(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let o=t[n],s=typeof o;n==="parent"&&s==="object"?e&&(r[n]=e):n==="source"?r[n]=o:Array.isArray(o)?r[n]=o.map(l=>By(l,r)):(s==="object"&&o!==null&&(o=By(o)),r[n]=o)}return r}function Ki(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,o=0;for(let s=0;s<t.length;s++){if(n===e.line&&r===e.column){o=s;break}t[s]===`
363
+ `?(r=1,n+=1):r+=1}return o}let zy=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[tu]=!1,this[cD]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let r=By(this);for(let n in e)r[n]=e[n];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:n,start:o}=this.rangeBy(r);return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},r)}return new aD(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markClean(){this[tu]=!0}markDirty(){if(this[tu]){this[tu]=!1;let e=this;for(;e=e.parent;)e[tu]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,s=n.slice(Ki(n,this.source.start),Ki(n,this.source.end)).indexOf(e.word);s!==-1&&(r=this.positionInside(s))}return r}positionInside(e){let r=this.source.start.column,n=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,s=Ki(o,this.source.start),l=s+e;for(let c=s;c<l;c++)o[c]===`
364
+ `?(r=1,n+=1):r+=1;return{column:r,line:n,offset:l}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:Ki(r,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Ki(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let l=r.slice(Ki(r,this.source.start),Ki(r,this.source.end)).indexOf(e.word);l!==-1&&(n=this.positionInside(l),o=this.positionInside(l+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:Ki(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:Ki(r,e.end)}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<n.line||o.line===n.line&&o.column<=n.column)&&(o={column:n.column+1,line:n.line,offset:n.offset+1}),{end:o,start:n}}raw(e,r){return new sD().raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let r=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(r,o),r=o):this.parent.insertBefore(r,o);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,r){let n={},o=r==null;r=r||new Map;let s=0;for(let l in this){if(!Object.prototype.hasOwnProperty.call(this,l)||l==="parent"||l==="proxyCache")continue;let c=this[l];if(Array.isArray(c))n[l]=c.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,r):u);else if(typeof c=="object"&&c.toJSON)n[l]=c.toJSON(null,r);else if(l==="source"){if(c==null)continue;let u=r.get(c.input);u==null&&(u=s,r.set(c.input,s),s++),n[l]={end:c.end,inputId:u,start:c.start}}else n[l]=c}return o&&(n.inputs=[...r.keys()].map(l=>l.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=lD){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let o={node:this};for(let s in n)o[s]=n[s];return e.warn(r,o)}};var Sh=zy;zy.default=zy;let uD=Sh,Dy=class extends uD{constructor(e){super(e),this.type="comment"}};var Ch=Dy;Dy.default=Dy;let dD=Sh,Fy=class extends dD{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};var Th=Fy;Fy.default=Fy;let TE=Ch,EE=Th,pD=Sh,{isClean:kE,my:PE}=md,tv,RE,ME,rv;function IE(t){return t.map(e=>(e.nodes&&(e.nodes=IE(e.nodes)),delete e.source,e))}function AE(t){if(t[kE]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)AE(e)}let ra=class jE extends pD{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let o of n)this.proxyOf.nodes.push(o)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,o;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],o=e(this.proxyOf.nodes[n],n),o!==!1);)this.indexes[r]+=1;return delete this.indexes[r],o}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(o=>typeof o=="function"?(s,l)=>o(s.toProxy(),l):o)):r==="every"||r==="some"?n=>e[r]((o,...s)=>n(o.toProxy(),...s)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),o=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let l of o)this.proxyOf.nodes.splice(n+1,0,l);let s;for(let l in this.indexes)s=this.indexes[l],n<s&&(this.indexes[l]=s+o.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),o=n===0?"prepend":!1,s=this.normalize(r,this.proxyOf.nodes[n],o).reverse();n=this.index(e);for(let c of s)this.proxyOf.nodes.splice(n,0,c);let l;for(let c in this.indexes)l=this.indexes[c],n<=l&&(this.indexes[c]=l+s.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=IE(RE(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new EE(e)]}else if(e.selector||e.selectors)e=[new rv(e)];else if(e.name)e=[new tv(e)];else if(e.text)e=[new TE(e)];else throw new Error("Unknown node type in node creation");return e.map(o=>(o[PE]||jE.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[kE]&&AE(o),o.raws||(o.raws={}),typeof o.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(o.raws.before=r.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let o of n)this.proxyOf.nodes.unshift(o);for(let o in this.indexes)this.indexes[o]=this.indexes[o]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(o=>{r.props&&!r.props.includes(o.prop)||r.fast&&!o.value.includes(r.fast)||(o.value=o.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let o;try{o=e(r,n)}catch(s){throw r.addToError(s)}return o!==!1&&r.walk&&(o=r.walk(e)),o})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,o)}):this.walk((n,o)=>{if(n.type==="atrule"&&n.name===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="atrule")return r(n,o)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,o)}):this.walk((n,o)=>{if(n.type==="decl"&&n.prop===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="decl")return r(n,o)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,o)}):this.walk((n,o)=>{if(n.type==="rule"&&n.selector===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="rule")return r(n,o)}))}};ra.registerParse=t=>{RE=t};ra.registerRule=t=>{rv=t};ra.registerAtRule=t=>{tv=t};ra.registerRoot=t=>{ME=t};var Fs=ra;ra.default=ra;ra.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,tv.prototype):t.type==="rule"?Object.setPrototypeOf(t,rv.prototype):t.type==="decl"?Object.setPrototypeOf(t,EE.prototype):t.type==="comment"?Object.setPrototypeOf(t,TE.prototype):t.type==="root"&&Object.setPrototypeOf(t,ME.prototype),t[PE]=!0,t.nodes&&t.nodes.forEach(e=>{ra.rebuild(e)})};let _E=Fs,Mf=class extends _E{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var nv=Mf;Mf.default=Mf;_E.registerAtRule(Mf);let fD=Fs,LE,OE,Vu=class extends fD{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new LE(new OE,this,e).stringify()}};Vu.registerLazyResult=t=>{LE=t};Vu.registerProcessor=t=>{OE=t};var ov=Vu;Vu.default=Vu;let hD="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",mD=(t=21)=>{let e="",r=t|0;for(;r--;)e+=hD[Math.random()*64|0];return e};var gD={nanoid:mD};let{existsSync:yD,readFileSync:vD}=li,{dirname:$g,join:bD}=li,{SourceMapConsumer:US,SourceMapGenerator:VS}=li;function xD(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let Hy=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=$g(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new US(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,l=e.match(o)||e.match(s);if(l)return decodeURIComponent(e.substr(l[0].length));let c=e.match(r)||e.match(n);if(c)return xD(e.substr(c[0].length));let u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),o=e.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,o)))}loadFile(e){if(this.root=$g(e),yD(e))return this.mapFile=e,vD(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let o=this.loadFile(n);if(!o)throw new Error("Unable to load previous source map: "+n.toString());return o}}else{if(r instanceof US)return VS.fromSourceMap(r).toString();if(r instanceof VS)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=bD($g(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var NE=Hy;Hy.default=Hy;let{nanoid:wD}=gD,{isAbsolute:Uy,resolve:Vy}=li,{SourceMapConsumer:SD,SourceMapGenerator:CD}=li,{fileURLToPath:WS,pathToFileURL:Fp}=li,qS=ev,TD=NE,Bg=li,zg=Symbol("lineToIndexCache"),ED=!!(SD&&CD),GS=!!(Vy&&Uy);function XS(t){if(t[zg])return t[zg];let e=t.css.split(`
365
+ `),r=new Array(e.length),n=0;for(let o=0,s=e.length;o<s;o++)r[o]=n,n+=e[o].length+1;return t[zg]=r,r}let If=class{get from(){return this.file||this.id}constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!GS||/^\w+:\/\//.test(r.from)||Uy(r.from)?this.file=r.from:this.file=Vy(r.from)),GS&&ED){let n=new TD(this.css,r);if(n.text){this.map=n;let o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+wD(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,o={}){let s,l,c,u,f;if(r&&typeof r=="object"){let v=r,g=n;if(typeof v.offset=="number"){u=v.offset;let y=this.fromOffset(u);r=y.line,n=y.col}else r=v.line,n=v.column,u=this.fromLineAndColumn(r,n);if(typeof g.offset=="number"){c=g.offset;let y=this.fromOffset(c);l=y.line,s=y.col}else l=g.line,s=g.column,c=this.fromLineAndColumn(g.line,g.column)}else if(n)u=this.fromLineAndColumn(r,n);else{u=r;let v=this.fromOffset(u);r=v.line,n=v.col}let h=this.origin(r,n,l,s);return h?f=new qS(e,h.endLine===void 0?h.line:{column:h.column,line:h.line},h.endLine===void 0?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,o.plugin):f=new qS(e,l===void 0?r:{column:n,line:r},l===void 0?n:{column:s,line:l},this.css,this.file,o.plugin),f.input={column:n,endColumn:s,endLine:l,endOffset:c,line:r,offset:u,source:this.css},this.file&&(Fp&&(f.input.url=Fp(this.file).toString()),f.input.file=this.file),f}fromLineAndColumn(e,r){return XS(this)[e-1]+r-1}fromOffset(e){let r=XS(this),n=r[r.length-1],o=0;if(e>=n)o=r.length-1;else{let s=r.length-2,l;for(;o<s;)if(l=o+(s-o>>1),e<r[l])s=l-1;else if(e>=r[l+1])o=l+1;else{o=l;break}}return{col:e-r[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Vy(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,o){if(!this.map)return!1;let s=this.map.consumer(),l=s.originalPositionFor({column:r,line:e});if(!l.source)return!1;let c;typeof n=="number"&&(c=s.originalPositionFor({column:o,line:n}));let u;Uy(l.source)?u=Fp(l.source):u=new URL(l.source,this.map.consumer().sourceRoot||Fp(this.map.mapFile));let f={column:l.column,endColumn:c&&c.column,endLine:c&&c.line,line:l.line,url:u.toString()};if(u.protocol==="file:")if(WS)f.file=WS(u);else throw new Error("file: protocol is not available in this PostCSS build");let h=s.sourceContentFor(l.source);return h&&(f.source=h),f}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Eh=If;If.default=If;Bg&&Bg.registerInput&&Bg.registerInput(If);let $E=Fs,BE,zE,Xl=class extends $E{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let o=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let s of o)s.raws.before=r.raws.before}return o}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new BE(new zE,this,e).stringify()}};Xl.registerLazyResult=t=>{BE=t};Xl.registerProcessor=t=>{zE=t};var gd=Xl;Xl.default=Xl;$E.registerRoot(Xl);let Wu={comma(t){return Wu.split(t,[","],!0)},space(t){let e=[" ",`
366
+ `," "];return Wu.split(t,e)},split(t,e,r){let n=[],o="",s=!1,l=0,c=!1,u="",f=!1;for(let h of t)f?f=!1:h==="\\"?f=!0:c?h===u&&(c=!1):h==='"'||h==="'"?(c=!0,u=h):h==="("?l+=1:h===")"?l>0&&(l-=1):l===0&&e.includes(h)&&(s=!0),s?(o!==""&&n.push(o.trim()),o="",s=!1):o+=h;return(r||o!=="")&&n.push(o.trim()),n}};var DE=Wu;Wu.default=Wu;let FE=Fs,kD=DE,Af=class extends FE{get selectors(){return kD.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var iv=Af;Af.default=Af;FE.registerRule(Af);let PD=nv,RD=Ch,MD=Th,ID=Eh,AD=NE,jD=gd,_D=iv;function qu(t,e){if(Array.isArray(t))return t.map(o=>qu(o));let{inputs:r,...n}=t;if(r){e=[];for(let o of r){let s={...o,__proto__:ID.prototype};s.map&&(s.map={...s.map,__proto__:AD.prototype}),e.push(s)}}if(n.nodes&&(n.nodes=t.nodes.map(o=>qu(o,e))),n.source){let{inputId:o,...s}=n.source;n.source=s,o!=null&&(n.source.input=e[o])}if(n.type==="root")return new jD(n);if(n.type==="decl")return new MD(n);if(n.type==="rule")return new _D(n);if(n.type==="comment")return new RD(n);if(n.type==="atrule")return new PD(n);throw new Error("Unknown node type: "+t.type)}var LD=qu;qu.default=qu;let{dirname:lf,relative:HE,resolve:UE,sep:VE}=li,{SourceMapConsumer:WE,SourceMapGenerator:cf}=li,{pathToFileURL:KS}=li,OD=Eh,ND=!!(WE&&cf),$D=!!(lf&&UE&&HE&&VE),BD=class{constructor(e,r,n,o){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
367
+ `;this.css.includes(`\r
368
+ `)&&(r=`\r
369
+ `),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||lf(e.file),o;this.mapOpts.sourcesContent===!1?(o=new WE(e.text),o.sourcesContent&&(o.sourcesContent=null)):o=e.consumer(),this.map.applySourceMap(o,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),$D&&ND&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=cf.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new cf({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new cf({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,l;this.stringify(this.root,(c,u,f)=>{if(this.css+=c,u&&f!=="end"&&(o.generated.line=e,o.generated.column=r-1,u.source&&u.source.start?(o.source=this.sourcePath(u),o.original.line=u.source.start.line,o.original.column=u.source.start.column-1,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,this.map.addMapping(o))),l=c.match(/\n/g),l?(e+=l.length,s=c.lastIndexOf(`
370
+ `),r=c.length-s):r+=c.length,u&&f!=="start"){let h=u.parent||{raws:{}};(!(u.type==="decl"||u.type==="atrule"&&!u.nodes)||u!==h.last||h.raws.semicolon)&&(u.source&&u.source.end?(o.source=this.sourcePath(u),o.original.line=u.source.end.line,o.original.column=u.source.end.column-1,o.generated.line=e,o.generated.column=r-2,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=e,o.generated.column=r-1,this.map.addMapping(o)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?lf(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=lf(UE(n,this.mapOpts.annotation)));let o=HE(n,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new OD(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let o=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(o,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(KS){let n=KS(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;VE==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var qE=BD;const Dg=39,QS=34,Hp=92,YS=47,Up=10,ru=32,Vp=12,Wp=9,qp=13,zD=91,DD=93,FD=40,HD=41,UD=123,VD=125,WD=59,qD=42,GD=58,XD=64,Gp=/[\t\n\f\r "#'()/;[\\\]{}]/g,Xp=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,KD=/.[\r\n"'(/\\]/,JS=/[\da-f]/i;var QD=function(e,r={}){let n=e.css.valueOf(),o=r.ignoreErrors,s,l,c,u,f,h,v,g,y,w,x=n.length,C=0,R=[],P=[];function M(){return C}function E(j){throw e.error("Unclosed "+j,C)}function I(){return P.length===0&&C>=x}function A(j){if(P.length)return P.pop();if(C>=x)return;let H=j?j.ignoreUnclosed:!1;switch(s=n.charCodeAt(C),s){case Up:case ru:case Wp:case qp:case Vp:{u=C;do u+=1,s=n.charCodeAt(u);while(s===ru||s===Up||s===Wp||s===qp||s===Vp);h=["space",n.slice(C,u)],C=u-1;break}case zD:case DD:case UD:case VD:case GD:case WD:case HD:{let G=String.fromCharCode(s);h=[G,G,C];break}case FD:{if(w=R.length?R.pop()[1]:"",y=n.charCodeAt(C+1),w==="url"&&y!==Dg&&y!==QS&&y!==ru&&y!==Up&&y!==Wp&&y!==Vp&&y!==qp){u=C;do{if(v=!1,u=n.indexOf(")",u+1),u===-1)if(o||H){u=C;break}else E("bracket");for(g=u;n.charCodeAt(g-1)===Hp;)g-=1,v=!v}while(v);h=["brackets",n.slice(C,u+1),C,u],C=u}else u=n.indexOf(")",C+1),l=n.slice(C,u+1),u===-1||KD.test(l)?h=["(","(",C]:(h=["brackets",l,C,u],C=u);break}case Dg:case QS:{f=s===Dg?"'":'"',u=C;do{if(v=!1,u=n.indexOf(f,u+1),u===-1)if(o||H){u=C+1;break}else E("string");for(g=u;n.charCodeAt(g-1)===Hp;)g-=1,v=!v}while(v);h=["string",n.slice(C,u+1),C,u],C=u;break}case XD:{Gp.lastIndex=C+1,Gp.test(n),Gp.lastIndex===0?u=n.length-1:u=Gp.lastIndex-2,h=["at-word",n.slice(C,u+1),C,u],C=u;break}case Hp:{for(u=C,c=!0;n.charCodeAt(u+1)===Hp;)u+=1,c=!c;if(s=n.charCodeAt(u+1),c&&s!==YS&&s!==ru&&s!==Up&&s!==Wp&&s!==qp&&s!==Vp&&(u+=1,JS.test(n.charAt(u)))){for(;JS.test(n.charAt(u+1));)u+=1;n.charCodeAt(u+1)===ru&&(u+=1)}h=["word",n.slice(C,u+1),C,u],C=u;break}default:{s===YS&&n.charCodeAt(C+1)===qD?(u=n.indexOf("*/",C+2)+1,u===0&&(o||H?u=n.length:E("comment")),h=["comment",n.slice(C,u+1),C,u],C=u):(Xp.lastIndex=C+1,Xp.test(n),Xp.lastIndex===0?u=n.length-1:u=Xp.lastIndex-2,h=["word",n.slice(C,u+1),C,u],R.push(h),C=u);break}}return C++,h}function F(j){P.push(j)}return{back:F,endOfFile:I,nextToken:A,position:M}};let YD=nv,JD=Ch,ZD=Th,eF=gd,ZS=iv,tF=QD;const eC={empty:!0,space:!0};function rF(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let nF=class{constructor(e){this.input=e,this.root=new eF,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new YD;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,o,s,l=!1,c=!1,u=[],f=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?f.push(n==="("?")":"]"):n==="{"&&f.length>0?f.push("}"):n===f[f.length-1]&&f.pop(),f.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){c=!0;break}else if(n==="}"){if(u.length>0){for(s=u.length-1,o=u[s];o&&o[0]==="space";)o=u[--s];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){l=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(r.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(r,"params",u),l&&(e=u[u.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,o;for(let s=r-1;s>=0&&(o=e[s],!(o[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let r=0,n,o,s;for(let[l,c]of e.entries()){if(o=c,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!n)this.doubleColon(o);else{if(n[0]==="word"&&n[1]==="progid")continue;return l}n=o}return!1}comment(e){let r=new JD;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let o=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}}createTokenizer(){this.tokenizer=tF(this.input)}decl(e,r){let n=new ZD;this.init(n,e[0][2]);let o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||rF(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let f=e[0][0];if(f===":"||f==="space"||f==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let l=[],c;for(;e.length&&(c=e[0][0],!(c!=="space"&&c!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(s=e[f],s[1].toLowerCase()==="!important"){n.important=!0;let h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(s[1].toLowerCase()==="important"){let h=e.slice(0),v="";for(let g=f;g>0;g--){let y=h[g][0];if(v.trim().startsWith("!")&&y!=="space")break;v=h.pop()[1]+v}v.trim().startsWith("!")&&(n.important=!0,n.raws.important=v,e=h)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(n.raws.between+=l.map(f=>f[1]).join(""),l=[]),this.raw(n,"value",l.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new ZS;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,o=!1,s=null,l=[],c=e[1].startsWith("--"),u=[],f=e;for(;f;){if(n=f[0],u.push(f),n==="("||n==="[")s||(s=f),l.push(n==="("?")":"]");else if(c&&o&&n==="{")s||(s=f),l.push("}");else if(l.length===0)if(n===";")if(o){this.decl(u,c);return}else break;else if(n==="{"){this.rule(u);return}else if(n==="}"){this.tokenizer.back(u.pop()),r=!0;break}else n===":"&&(o=!0);else n===l[l.length-1]&&(l.pop(),l.length===0&&(s=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),l.length>0&&this.unclosedBracket(s),r&&o){if(!c)for(;u.length&&(f=u[u.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,c)}else this.unknownWord(u)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,o){let s,l,c=n.length,u="",f=!0,h,v;for(let g=0;g<c;g+=1)s=n[g],l=s[0],l==="space"&&g===c-1&&!o?f=!1:l==="comment"?(v=n[g-1]?n[g-1][0]:"empty",h=n[g+1]?n[g+1][0]:"empty",!eC[v]&&!eC[h]?u.slice(-1)===","?f=!1:u+=s[1]:f=!1):u+=s[1];if(!f){let g=n.reduce((y,w)=>y+w[1],"");e.raws[r]={raw:g,value:u}}e[r]=u}rule(e){e.pop();let r=new ZS;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let o=r;o<e.length;o++)n+=e[o][1];return e.splice(r,e.length-r),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}};var oF=nF;let iF=Fs,aF=Eh,sF=oF;function jf(t,e){let r=new aF(t,e),n=new sF(r);try{n.parse()}catch(o){throw o.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?o.message+=`
371
+ You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?o.message+=`
372
+ You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(o.message+=`
373
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),o}return n.root}var av=jf;jf.default=jf;iF.registerParse(jf);let Wy=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var GE=Wy;Wy.default=Wy;let lF=GE,qy=class{get content(){return this.css}constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new lF(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var sv=qy;qy.default=qy;let tC={};var XE=function(e){tC[e]||(tC[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let cF=Fs,uF=ov,dF=qE,pF=av,rC=sv,fF=gd,hF=wh,{isClean:vi,my:mF}=md,gF=XE;const yF={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},vF={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},bF={Once:!0,postcssPlugin:!0,prepare:!0},Kl=0;function nu(t){return typeof t=="object"&&typeof t.then=="function"}function KE(t){let e=!1,r=yF[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Kl,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Kl,r+"Exit"]:[r,r+"Exit"]}function nC(t){let e;return t.type==="document"?e=["Document",Kl,"DocumentExit"]:t.type==="root"?e=["Root",Kl,"RootExit"]:e=KE(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Gy(t){return t[vi]=!1,t.nodes&&t.nodes.forEach(e=>Gy(e)),t}let Xy={},Ql=class QE{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,n){this.stringified=!1,this.processed=!1;let o;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))o=Gy(r);else if(r instanceof QE||r instanceof rC)o=Gy(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let s=pF;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(r,n)}catch(l){this.processed=!0,this.error=l}o&&!o[mF]&&cF.rebuild(o)}this.result=new rC(e,o,n),this.helpers={...Xy,postcss:Xy,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion){let o=n.postcssPlugin,s=n.postcssVersion,l=this.result.processor.version,c=s.split("."),u=l.split(".");(c[0]!==u[0]||parseInt(c[1])>parseInt(u[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+l+", but "+o+" uses "+s+". Perhaps this is the source of the error below.")}}catch(o){console&&console.error&&console.error(o)}return e}prepareVisitors(){this.listeners={};let e=(r,n,o)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,o])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!vF[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!bF[n])if(typeof r[n]=="object")for(let o in r[n])o==="*"?e(r,n,r[n][o]):e(r,n+"-"+o.toLowerCase(),r[n][o]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(nu(n))try{await n}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[vi];){e[vi]=!0;let r=[nC(e)];for(;r.length>0;){let n=this.visitTick(r);if(nu(n))try{await n}catch(o){let s=r[r.length-1].node;throw this.handleError(o,s)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let o=e.nodes.map(s=>n(s,this.helpers));await Promise.all(o)}else await n(e,this.helpers)}catch(o){throw this.handleError(o)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return nu(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=hF;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let o=new dF(r,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(nu(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[vi];)e[vi]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return"from"in this.opts||gF("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,o]of e){this.result.lastPlugin=n;let s;try{s=o(r,this.helpers)}catch(l){throw this.handleError(l,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(nu(s))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:o}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){let[l,c]=o[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=l;try{return c(n.toProxy(),this.helpers)}catch(u){throw this.handleError(u,n)}}if(r.iterator!==0){let l=r.iterator,c;for(;c=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!c[vi]){c[vi]=!0,e.push(nC(c));return}r.iterator=0,delete n.indexes[l]}let s=r.events;for(;r.eventIndex<s.length;){let l=s[r.eventIndex];if(r.eventIndex+=1,l===Kl){n.nodes&&n.nodes.length&&(n[vi]=!0,r.iterator=n.getIterator());return}else if(this.listeners[l]){r.visitors=this.listeners[l];return}}e.pop()}walkSync(e){e[vi]=!0;let r=KE(e);for(let n of r)if(n===Kl)e.nodes&&e.each(o=>{o[vi]||this.walkSync(o)});else{let o=this.listeners[n];if(o&&this.visitSync(o,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Ql.registerPostcss=t=>{Xy=t};var YE=Ql;Ql.default=Ql;fF.registerLazyResult(Ql);uF.registerLazyResult(Ql);let xF=qE,wF=av;const SF=sv;let CF=wh,TF=XE,Ky=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=wF;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let o,s=CF;this.result=new SF(this._processor,o,this._opts),this.result.css=r;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let c=new xF(s,o,this._opts,r);if(c.isMap()){let[u,f]=c.generate();u&&(this.result.css=u),f&&(this.result.map=f)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return"from"in this._opts||TF("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,r)}toString(){return this._css}warnings(){return[]}};var EF=Ky;Ky.default=Ky;let kF=ov,PF=YE,RF=EF,MF=gd,Gu=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else throw typeof n=="object"&&(n.parse||n.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new RF(this,e,r):new PF(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var IF=Gu;Gu.default=Gu;MF.registerProcessor(Gu);kF.registerProcessor(Gu);let JE=nv,ZE=Ch,AF=Fs,jF=ev,ek=Th,tk=ov,_F=LD,LF=Eh,OF=YE,NF=DE,$F=Sh,BF=av,lv=IF,zF=sv,rk=gd,nk=iv,DF=wh,FF=GE;function nr(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new lv(t)}nr.plugin=function(e,r){let n=!1;function o(...l){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
374
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),gS.LANG&&gS.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
375
+ https://www.w3ctech.com/topic/2226`));let c=r(...l);return c.postcssPlugin=e,c.postcssVersion=new lv().version,c}let s;return Object.defineProperty(o,"postcss",{get(){return s||(s=o()),s}}),o.process=function(l,c,u){return nr([o(u)]).process(l,c)},o};nr.stringify=DF;nr.parse=BF;nr.fromJSON=_F;nr.list=NF;nr.comment=t=>new ZE(t);nr.atRule=t=>new JE(t);nr.decl=t=>new ek(t);nr.rule=t=>new nk(t);nr.root=t=>new rk(t);nr.document=t=>new tk(t);nr.CssSyntaxError=jF;nr.Declaration=ek;nr.Container=AF;nr.Processor=lv;nr.Document=tk;nr.Comment=ZE;nr.Warning=FF;nr.AtRule=JE;nr.Result=zF;nr.Input=LF;nr.Rule=nk;nr.Root=rk;nr.Node=$F;OF.registerPostcss(nr);var HF=nr;nr.default=nr;const UF=GT,oC=Bz,{isPlainObject:VF}=J0,iC=Zz,WF=eD,{parse:qF}=HF,GF=["img","audio","video","picture","svg","object","map","iframe","embed"],XF=["script","style"];function El(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function Qi(t,e){return{}.hasOwnProperty.call(t,e)}function aC(t,e){const r=[];return El(t,function(n){e(n)&&r.push(n)}),r}function KF(t){for(const e in t)if(Qi(t,e))return!1;return!0}function QF(t){return t.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var YF=Xu;const JF=/^[^\0\t\n\f\r /<=>]+$/;function Xu(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",o="";function s(L,W){const K=this;this.tag=L,this.attribs=W||{},this.tagPosition=n.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(C.length){const ee=C[C.length-1];ee.text+=K.text}},this.updateParentNodeMediaChildren=function(){C.length&&GF.includes(this.tag)&&C[C.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},Xu.defaults,e),e.parser=Object.assign({},ZF,e.parser);const l=function(L){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(L)>-1};XF.forEach(function(L){l(L)&&!e.allowVulnerableTags&&console.warn(`
376
+
377
+ ⚠️ Your \`allowedTags\` option includes, \`${L}\`, which is inherently
378
+ vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
379
+ Or, to disable this warning, add the \`allowVulnerableTags\` option
380
+ and ensure you are accounting for this risk.
381
+
382
+ `)});const c=e.nonTextTags||["script","style","textarea","option"];let u,f;e.allowedAttributes&&(u={},f={},El(e.allowedAttributes,function(L,W){u[W]=[];const K=[];L.forEach(function(ee){typeof ee=="string"&&ee.indexOf("*")>=0?K.push(oC(ee).replace(/\\\*/g,".*")):u[W].push(ee)}),K.length&&(f[W]=new RegExp("^("+K.join("|")+")$"))}));const h={},v={},g={};El(e.allowedClasses,function(L,W){if(u&&(Qi(u,W)||(u[W]=[]),u[W].push("class")),h[W]=L,Array.isArray(L)){const K=[];h[W]=[],g[W]=[],L.forEach(function(ee){typeof ee=="string"&&ee.indexOf("*")>=0?K.push(oC(ee).replace(/\\\*/g,".*")):ee instanceof RegExp?g[W].push(ee):h[W].push(ee)}),K.length&&(v[W]=new RegExp("^("+K.join("|")+")$"))}});const y={};let w;El(e.transformTags,function(L,W){let K;typeof L=="function"?K=L:typeof L=="string"&&(K=Xu.simpleTransform(L)),W==="*"?w=K:y[W]=K});let x,C,R,P,M,E,I=!1;F();const A=new UF.Parser({onopentag:function(L,W){if(e.onOpenTag&&e.onOpenTag(L,W),e.enforceHtmlBoundary&&L==="html"&&F(),M){E++;return}const K=new s(L,W);C.push(K);let ee=!1;const Z=!!K.text;let Q;if(Qi(y,L)&&(Q=y[L](L,W),K.attribs=W=Q.attribs,Q.text!==void 0&&(K.innerText=Q.text),L!==Q.tagName&&(K.name=L=Q.tagName,P[x]=Q.tagName)),w&&(Q=w(L,W),K.attribs=W=Q.attribs,L!==Q.tagName&&(K.name=L=Q.tagName,P[x]=Q.tagName)),(!l(L)||e.disallowedTagsMode==="recursiveEscape"&&!KF(R)||e.nestingLimit!=null&&x>=e.nestingLimit)&&(ee=!0,R[x]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&c.indexOf(L)!==-1&&(M=!0,E=1)),x++,ee){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(K.innerText&&!Z){const ce=j(K.innerText);e.textFilter?n+=e.textFilter(ce,L):n+=ce,I=!0}return}o=n,n=""}n+="<"+L,L==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(K.innerText=""),ee&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?El(W,function(ce,Y){n+=" "+Y+'="'+j(ce||"",!0)+'"'}):(!u||Qi(u,L)||u["*"])&&El(W,function(ce,Y){if(!JF.test(Y)){delete K.attribs[Y];return}if(ce===""&&!e.allowedEmptyAttributes.includes(Y)&&(e.nonBooleanAttributes.includes(Y)||e.nonBooleanAttributes.includes("*"))){delete K.attribs[Y];return}let ne=!1;if(!u||Qi(u,L)&&u[L].indexOf(Y)!==-1||u["*"]&&u["*"].indexOf(Y)!==-1||Qi(f,L)&&f[L].test(Y)||f["*"]&&f["*"].test(Y))ne=!0;else if(u&&u[L]){for(const J of u[L])if(VF(J)&&J.name&&J.name===Y){ne=!0;let de="";if(J.multiple===!0){const Ce=ce.split(" ");for(const he of Ce)J.values.indexOf(he)!==-1&&(de===""?de=he:de+=" "+he)}else J.values.indexOf(ce)>=0&&(de=ce);ce=de}}if(ne){if(e.allowedSchemesAppliedToAttributes.indexOf(Y)!==-1&&H(L,ce)){delete K.attribs[Y];return}if(L==="script"&&Y==="src"){let J=!0;try{const de=G(ce);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Ce=(e.allowedScriptHostnames||[]).find(function(se){return se===de.url.hostname}),he=(e.allowedScriptDomains||[]).find(function(se){return de.url.hostname===se||de.url.hostname.endsWith(`.${se}`)});J=Ce||he}}catch{J=!1}if(!J){delete K.attribs[Y];return}}if(L==="iframe"&&Y==="src"){let J=!0;try{const de=G(ce);if(de.isRelativeUrl)J=Qi(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Ce=(e.allowedIframeHostnames||[]).find(function(se){return se===de.url.hostname}),he=(e.allowedIframeDomains||[]).find(function(se){return de.url.hostname===se||de.url.hostname.endsWith(`.${se}`)});J=Ce||he}}catch{J=!1}if(!J){delete K.attribs[Y];return}}if(Y==="srcset")try{let J=WF(ce);if(J.forEach(function(de){H("srcset",de.url)&&(de.evil=!0)}),J=aC(J,function(de){return!de.evil}),J.length)ce=QF(aC(J,function(de){return!de.evil})),K.attribs[Y]=ce;else{delete K.attribs[Y];return}}catch{delete K.attribs[Y];return}if(Y==="class"){const J=h[L],de=h["*"],Ce=v[L],he=g[L],se=g["*"],De=v["*"],Ne=[Ce,De].concat(he,se).filter(function(Oe){return Oe});if(J&&de?ce=U(ce,iC(J,de),Ne):ce=U(ce,J||de,Ne),!ce.length){delete K.attribs[Y];return}}if(Y==="style"){if(e.parseStyleAttributes)try{const J=qF(L+" {"+ce+"}",{map:!1}),de=N(J,e.allowedStyles);if(ce=k(de),ce.length===0){delete K.attribs[Y];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+L+" {"+ce+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete K.attribs[Y];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+Y,ce&&ce.length?n+='="'+j(ce,!0)+'"':e.allowedEmptyAttributes.includes(Y)&&(n+='=""')}else delete K.attribs[Y]}),e.selfClosing.indexOf(L)!==-1?n+=" />":(n+=">",K.innerText&&!Z&&!e.textFilter&&(n+=j(K.innerText),I=!0)),ee&&(n=o+j(n),o=""),K.openingTagLength=n.length-K.tagPosition},ontext:function(L){if(M)return;const W=C[C.length-1];let K;if(W&&(K=W.tag,L=W.innerText!==void 0?W.innerText:L),e.disallowedTagsMode==="completelyDiscard"&&!l(K))L="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(K==="script"||K==="style"))n+=L;else if(!I){const ee=j(L,!1);e.textFilter?n+=e.textFilter(ee,K):n+=ee}if(C.length){const ee=C[C.length-1];ee.text+=L}},onclosetag:function(L,W){if(e.onCloseTag&&e.onCloseTag(L,W),M)if(E--,!E)M=!1;else return;const K=C.pop();if(!K)return;if(K.tag!==L){C.push(K);return}M=e.enforceHtmlBoundary?L==="html":!1,x--;const ee=R[x];if(ee){if(delete R[x],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){K.updateParentNodeText();return}o=n,n=""}if(P[x]&&(L=P[x],delete P[x]),e.exclusiveFilter){const Z=e.exclusiveFilter(K);if(Z==="excludeTag"){ee&&(n=o,o=""),n=n.substring(0,K.tagPosition)+n.substring(K.tagPosition+K.openingTagLength);return}else if(Z){n=n.substring(0,K.tagPosition);return}}if(K.updateParentNodeMediaChildren(),K.updateParentNodeText(),e.selfClosing.indexOf(L)!==-1||W&&!l(L)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){ee&&(n=o,o="");return}n+="</"+L+">",ee&&(n=o+j(n),o=""),I=!1}},e.parser);return A.write(t),A.end(),n;function F(){n="",x=0,C=[],R={},P={},M=!1,E=0}function j(L,W){return typeof L!="string"&&(L=L+""),e.parser.decodeEntities&&(L=L.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),W&&(L=L.replace(/"/g,"&quot;"))),L=L.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),W&&(L=L.replace(/"/g,"&quot;")),L}function H(L,W){for(W=W.replace(/[\x00-\x20]+/g,"");;){const Z=W.indexOf("<!--");if(Z===-1)break;const Q=W.indexOf("-->",Z+4);if(Q===-1)break;W=W.substring(0,Z)+W.substring(Q+3)}const K=W.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!K)return W.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const ee=K[1].toLowerCase();return Qi(e.allowedSchemesByTag,L)?e.allowedSchemesByTag[L].indexOf(ee)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(ee)===-1}function G(L){if(L=L.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),L.startsWith("relative:"))throw new Error("relative: exploit attempt");let W="relative://relative-site";for(let Z=0;Z<100;Z++)W+=`/${Z}`;const K=new URL(L,W);return{isRelativeUrl:K&&K.hostname==="relative-site"&&K.protocol==="relative:",url:K}}function N(L,W){if(!W)return L;const K=L.nodes[0];let ee;return W[K.selector]&&W["*"]?ee=iC(W[K.selector],W["*"]):ee=W[K.selector]||W["*"],ee&&(L.nodes[0].nodes=K.nodes.reduce(q(ee),[])),L}function k(L){return L.nodes[0].nodes.reduce(function(W,K){return W.push(`${K.prop}:${K.value}${K.important?" !important":""}`),W},[]).join(";")}function q(L){return function(W,K){return Qi(L,K.prop)&&L[K.prop].some(function(Z){return Z.test(K.value)})&&W.push(K),W}}function U(L,W,K){return W?(L=L.split(/\s+/),L.filter(function(ee){return W.indexOf(ee)!==-1||K.some(function(Z){return Z.test(ee)})}).join(" ")):L}}const ZF={decodeEntities:!0};Xu.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};Xu.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,o){let s;if(r)for(s in e)o[s]=e[s];else o=e;return{tagName:t,attribs:o}}};var ok=MB(YF);let Ku=class extends lr{};_([B(),z({field_type:$.TEXTAREA,label:"HTML Content",description:"HTML content to be safely rendered after sanitization",placeholder:"<p>Enter HTML content...</p>"}),V(),ie(),D("design:type",String)],Ku.prototype,"html",void 0);_([B(),z({field_type:$.TEXT,label:"Placeholder Text",description:"Text to display when no HTML content is available",placeholder:"Loading..."}),V(),ie(),D("design:type",String)],Ku.prototype,"placeholder",void 0);Ku=_([Nt("SafeSpan","1.0.0")],Ku);var eH=Ku;function cv(t){const{html:e,placeholder:r,...n}=t,{styleProps:o,htmlProps:s}=Tn(n);cv[_n]=!0;const c=e?ok(e,{allowedTags:["p","br","strong","em","u","span","div","h1","h2","h3","h4","h5","h6","ul","ol","li","blockquote","pre","code","a","img"],allowedAttributes:{a:["href","title","target"],img:["src","alt","title","width","height"],span:["style","class"],div:["style","class"],p:["style","class"]},allowedSchemes:["http","https","mailto"],disallowedTagsMode:"discard",allowedSchemesByTag:{a:["http","https","mailto"],img:["http","https"]},transformTags:{a:function(u,f){return f.href&&(f.href.startsWith("http://")||f.href.startsWith("https://"))?{tagName:"a",attribs:{...f,rel:"noopener noreferrer",target:"_blank"}}:{tagName:u,attribs:f}}}}):"";return!c&&!r?null:!c&&r?p.jsx("span",{...s,...o,children:r}):p.jsx("span",{...s,...o,dangerouslySetInnerHTML:{__html:c}})}class go extends zs{getComponentSpecificProps(){return{html:this.props.html,placeholder:this.props.placeholder}}renderView(){const{...e}=this.props;return p.jsx(cv,{...e})}renderWithDataBinding(){return p.jsx(tH,{...this.props})}static registerPatternHandlers(e){e.hasPattern("span.safe-content")||e.registerPattern("span.safe-content",go.transformSafeSpan),e.hasPattern("span[data-safe]")||e.registerPattern("span[data-safe]",go.transformSafeSpan)}static transformSafeSpan(e){const r=e.getAttribute("data-placeholder");return{tagName:"SafeSpan",props:{html:e.innerHTML,placeholder:r||void 0}}}}go.tagName="SafeSpan";go.version="1.0.0";function tH(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:s,...l}=Oi(e,n,eH.getSchema(),{...r});return o?p.jsx("span",{children:"Loading..."}):s?(console.error("Error loading safe span:",s),p.jsxs("span",{children:["Error Loading Content: ",s.message]})):p.jsx(cv,{...l})}function rH({label:t,value:e="",onChange:r,onFocus:n,required:o=!1,disabled:s=!1,error:l,helperText:c,placeholder:u,rows:f=4,maxLength:h,showPreview:v=!0,showHelp:g=!1,...y}){const[w,x]=S.useState(!1),[C,R]=S.useState(!1),P=I=>{r==null||r(I.target.value)},M=(I,A=!0)=>{if(s)return;const F=document.activeElement;if(!F||F.tagName!=="TEXTAREA")return;const j=F.selectionStart,H=F.selectionEnd,G=e.substring(j,H);let N="";A?N=`<${I}>${G}</${I}>`:N=`<${I}>`;const k=e.substring(0,j)+N+e.substring(H);r==null||r(k),setTimeout(()=>{if(A&&!G){const q=j+I.length+2;F.setSelectionRange(q,q)}},0)},E=ok(e||"",{allowedTags:["b","i","u","strong","em","p","br","code","pre","span","div"],allowedAttributes:{"*":["style","class"]}});return p.jsxs(be,{...y,children:[p.jsxs(be,{sx:{display:"flex",alignItems:"center",mb:1,flexWrap:"wrap",gap:1},children:[p.jsxs(je,{variant:"body2",color:"text.secondary",children:[t,o&&p.jsx("span",{style:{color:"error.main"},children:" *"})]}),p.jsx(be,{sx:{flexGrow:1}}),p.jsxs(G_,{size:"small",disabled:s||w,children:[p.jsx(Jr,{title:"Bold",children:p.jsx(mr,{onClick:()=>M("b"),children:p.jsx(N9,{})})}),p.jsx(Jr,{title:"Italic",children:p.jsx(mr,{onClick:()=>M("i"),children:p.jsx($9,{})})}),p.jsx(Jr,{title:"Underline",children:p.jsx(mr,{onClick:()=>M("u"),children:p.jsx(B9,{})})}),p.jsx(Jr,{title:"Code",children:p.jsx(mr,{onClick:()=>M("code"),children:p.jsx(kT,{})})})]}),v&&p.jsx(Jr,{title:w?"Edit Mode":"Preview Mode",children:p.jsx(mr,{onClick:()=>x(!w),disabled:s,children:w?p.jsx(OT,{}):p.jsx(LT,{})})}),g&&p.jsx(Jr,{title:"HTML Help",children:p.jsx(mr,{onClick:()=>R(!C),children:p.jsx(IT,{})})})]}),p.jsx(ay,{in:C,children:p.jsx(Un,{severity:"info",sx:{mb:2},children:p.jsx(je,{variant:"body2",children:"Supported HTML tags: <b>, <i>, <u>, <strong>, <em>, <p>, <br>, <code>, <pre>"})})}),w?p.jsx(be,{sx:{border:1,borderColor:"divider",borderRadius:1,p:2,minHeight:f*24,backgroundColor:"background.paper"},children:p.jsx(go,{html:E,placeholder:"No content to preview"})}):p.jsx(un,{fullWidth:!0,multiline:!0,rows:f,value:e,onChange:P,onFocus:n,placeholder:u,disabled:s,error:!!l,helperText:l||c||(h?`${e.length}/${h}`:void 0),inputProps:{maxLength:h},sx:{"& .MuiInputBase-input":{fontFamily:"monospace",fontSize:"0.875rem"}}})]})}const ik=no({tagName:"HtmlInputField",version:"1.0.0",role:"view",View:rH});function nH({label:t="Options",options:e=[],onOptionChange:r,onAddOption:n,onChoiceFieldFocus:o,disabled:s=!1,placeholder:l="Enter option text. HTML formatting supported.",optionLabelPrefix:c="Option",rows:u=2,maxOptions:f=10,...h}){const v=w=>x=>{r==null||r(w,x)},g=w=>()=>{o==null||o(w)},y=()=>{e.length<f&&(n==null||n())};return p.jsxs(be,{...h,children:[p.jsx(je,{variant:"h6",gutterBottom:!0,children:t}),e.length===0&&p.jsx(Un,{severity:"info",sx:{mb:2},children:'No options added yet. Click "Add Option" to get started.'}),e.map((w,x)=>p.jsx(be,{sx:{mb:2},children:p.jsx(ik,{label:`${c} ${x+1}`,value:w,onChange:v(x),onFocus:g(x),placeholder:l,rows:u,disabled:s,showPreview:!0,showHelp:!1})},x)),e.length<f&&p.jsx(_u,{variant:"outlined",startIcon:p.jsx(CT,{}),onClick:y,disabled:s,sx:{mt:1},children:"Add Option"}),e.length>=f&&p.jsxs(je,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:1},children:["Maximum number of options (",f,") reached."]})]})}const oH=no({tagName:"ChoiceInputField",version:"1.0.0",role:"view",View:nH});class kh{}_([B(),z({field_type:$.TEXT,label:"Option Value",description:"The value for this option"}),ie(),D("design:type",Object)],kh.prototype,"value",void 0);_([B(),z({field_type:$.TEXT,label:"Option Label",description:"The display text for this option"}),V(),ie(),D("design:type",String)],kh.prototype,"label",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Whether this option is disabled"}),V(),_t(),D("design:type",Boolean)],kh.prototype,"disabled",void 0);let Ii=class extends mt{};_([B(),z({field_type:$.TEXT,label:"Field Label",description:"The label text displayed for this select field",placeholder:"Enter field label..."}),V(),ie(),D("design:type",String)],Ii.prototype,"label",void 0);_([B(),z({field_type:$.TEXT,label:"Selected Value",description:"The currently selected value"}),V(),ie(),D("design:type",Object)],Ii.prototype,"value",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Select Options",description:"Array of options available in the dropdown (JSON format)"}),V(),rn(),eo({each:!0}),ro(()=>kh),D("design:type",Array)],Ii.prototype,"options",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Required",description:"Whether this field is required"}),V(),_t(),D("design:type",Boolean)],Ii.prototype,"required",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Whether this field is disabled"}),V(),_t(),D("design:type",Boolean)],Ii.prototype,"disabled",void 0);_([B(),z({field_type:$.TEXT,label:"Error Message",description:"Error message to display when field validation fails",placeholder:"Error message..."}),V(),ie(),D("design:type",String)],Ii.prototype,"error",void 0);_([B(),z({field_type:$.TEXT,label:"Helper Text",description:"Additional helpful text displayed below the field",placeholder:"Helper text..."}),V(),ie(),D("design:type",String)],Ii.prototype,"helperText",void 0);_([B(),z({field_type:$.TEXT,label:"Placeholder Text",description:"Placeholder text shown when no value is selected",placeholder:"Select an option..."}),V(),ie(),D("design:type",String)],Ii.prototype,"placeholder",void 0);Ii=_([Nt("SelectInputField","1.0.0")],Ii);function iH({label:t,value:e="",onChange:r,onFocus:n,options:o=[],required:s=!1,disabled:l=!1,error:c,helperText:u,placeholder:f,...h}){const v=ne=>{r&&r(ne.target.value)},{margin:g,padding:y,paddingX:w,paddingY:x,paddingTop:C,paddingRight:R,paddingBottom:P,paddingLeft:M,width:E,height:I,minWidth:A,maxWidth:F,minHeight:j,maxHeight:H,sx:G,style:N,span:k,xs:q,sm:U,md:L,lg:W,xl:K,background:ee,backgroundImage:Z,backgroundGradient:Q,textAlign:X,className:re,...ce}=h,Y=t?`select-label-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0;return p.jsxs(za,{fullWidth:!0,required:s,disabled:l,error:!!c,sx:G,style:N,className:re,...ce,children:[t&&p.jsx(Vl,{id:Y,children:t}),p.jsxs(Ms,{labelId:Y,label:t,value:e,onChange:v,onFocus:n,displayEmpty:!!f,children:[f&&p.jsx(cn,{value:"",disabled:!0,children:p.jsx("em",{children:f})}),o.map((ne,J)=>p.jsx(cn,{value:ne.value,disabled:ne.disabled,children:ne.label},`${ne.value}-${J}`))]}),(c||u)&&p.jsx(ic,{children:c||u})]})}const aH=no({tagName:"SelectInputField",version:"1.0.0",role:"view",View:iH});function sH({label:t,checked:e=!1,onChange:r,onFocus:n,required:o=!1,disabled:s=!1,error:l,helperText:c,...u}){const f=re=>{r==null||r(re.target.checked)},{margin:h,padding:v,paddingX:g,paddingY:y,paddingTop:w,paddingRight:x,paddingBottom:C,paddingLeft:R,width:P,height:M,minWidth:E,maxWidth:I,minHeight:A,maxHeight:F,sx:j,style:H,span:G,xs:N,sm:k,md:q,lg:U,xl:L,background:W,backgroundImage:K,backgroundGradient:ee,textAlign:Z,className:Q,...X}=u;return p.jsxs(za,{component:"fieldset",error:!!l,disabled:s,sx:j,style:H,className:Q,...X,children:[p.jsx(J2,{control:p.jsx(_N,{checked:e,onChange:f,onFocus:n,required:o,disabled:s}),label:t}),(l||c)&&p.jsx(ic,{children:l||c})]})}const lH=no({tagName:"SwitchInputField",version:"1.0.0",role:"view",View:sH});function cH({label:t,value:e="",onChange:r,onFocus:n,required:o=!1,disabled:s=!1,error:l,helperText:c,placeholder:u,type:f="text",multiline:h=!1,rows:v,maxRows:g,textFieldProps:y,...w}){const x=Ce=>{r==null||r(Ce.target.value)},{margin:C,padding:R,paddingX:P,paddingY:M,paddingTop:E,paddingRight:I,paddingBottom:A,paddingLeft:F,width:j,height:H,minWidth:G,maxWidth:N,minHeight:k,maxHeight:q,sx:U,style:L,span:W,xs:K,sm:ee,md:Z,lg:Q,xl:X,background:re,backgroundImage:ce,backgroundGradient:Y,textAlign:ne,className:J,...de}=w;return p.jsx(un,{...de,fullWidth:!0,label:t,value:e,onChange:x,onFocus:n,required:o,disabled:s,error:!!l,helperText:l||c,placeholder:u,type:f,multiline:h,rows:v,maxRows:g,sx:U,style:L,className:J,...y})}const uH=no({tagName:"TextInputField",version:"1.0.0",role:"view",View:cH});function dH({children:t,gridProps:e,...r}){const n=e;return p.jsx(be,{...r,...n?{"data-grid-span":n.span,"data-grid-xs":n.xs,"data-grid-sm":n.sm,"data-grid-md":n.md,"data-grid-lg":n.lg,"data-grid-xl":n.xl}:{},children:t})}const pH=no({tagName:"GridCell",version:"1.0.0",role:"container",View:dH});function fH({children:t,columns:e,spacing:r="small",equalHeight:n=!1,height:o,width:s,minHeight:l,minWidth:c,maxHeight:u,maxWidth:f,gridProps:h,...v}){const g=Mn(r),y=()=>Mt.Children.toArray(t).map((x,C)=>{if(!Mt.isValidElement(x))return x;let R={};const P=x.props,M=P["data-grid-span"]||P.span,E=P["data-grid-xs"]||P.xs,I=P["data-grid-sm"]||P.sm,A=P["data-grid-md"]||P.md,F=P["data-grid-lg"]||P.lg,j=P["data-grid-xl"]||P.xl;if(M||E||I||A||F||j)if(M)R={size:M};else{const H={};E&&(H.xs=E),I&&(H.sm=I),A&&(H.md=A),F&&(H.lg=F),j&&(H.xl=j),R={size:H}}if(e&&Object.keys(R).length===0&&(R={size:{xs:12,sm:e>=3?6:12/Math.min(e,2),md:12/Math.min(e,3),lg:12/e}}),Object.keys(R).length>0){const H={...x.props};return delete H["data-grid-span"],delete H["data-grid-xs"],delete H["data-grid-sm"],delete H["data-grid-md"],delete H["data-grid-lg"],delete H["data-grid-xl"],p.jsx(jn,{...R,children:Mt.cloneElement(x,H)},x.key||C)}return p.jsx(Mt.Fragment,{children:x},x.key||C)});return p.jsx(jn,{container:!0,spacing:g,...v,...h?{"data-grid":JSON.stringify(h)}:{},sx:{width:"100%",height:jo(o,"height"),minHeight:jo(l,"minHeight"),minWidth:jo(c,"minWidth"),maxHeight:jo(u,"maxHeight"),maxWidth:jo(f,"maxWidth"),...s&&{width:jo(s,"width")},...n&&{alignItems:"stretch","& > .MuiGrid-root":{display:"flex","& > *":{width:"100%",height:"100%"}}},...v.sx},children:y()})}const uv=no({tagName:"GridLayout",version:"1.0.0",role:"container",View:fH});let Yl=class extends lr{};_([B(),z({field_type:$.TEXTAREA,label:"HTML Content",description:"HTML content to be transformed into React components",placeholder:"<p>Enter HTML content...</p>"}),V(),ie(),D("design:type",String)],Yl.prototype,"children",void 0);_([B(),z({field_type:$.CHECKBOX,label:"Strip Headers",description:"Whether to remove header elements (h1-h6) from the HTML"}),V(),_t(),D("design:type",Boolean)],Yl.prototype,"stripHeaders",void 0);_([B(),z({field_type:$.TEXT,label:"Placeholder",description:"Fallback content to display when HTML is empty",placeholder:"No content available"}),V(),ie(),D("design:type",String)],Yl.prototype,"placeholder",void 0);Yl=_([Nt("Html","1.0.0")],Yl);var hH=Yl;function dv({children:t="",stripHeaders:e=!1,placeholder:r,component:n="div",...o}){const{styleProps:s,htmlProps:l,restProps:c}=Tn(o);if(dv[_n]=!0,!t||!t.trim())return r?p.jsx(be,{component:n,...l,...s,...c,sx:{opacity:.6,fontStyle:"italic",...s.sx},children:r}):null;try{let u=t;e&&(u=u.replace(/<h[1-6][^>]*>.*?<\/h[1-6]>/gi,""));const f=Yr.transformHTML(u);return p.jsx(be,{component:n,...l,...s,...c,sx:{"& > *:not(:last-child)":{mb:1.5},"& h1, & h2, & h3, & h4, & h5, & h6":{mb:1.5,mt:2,"&:first-of-type":{mt:0}},"& p":{mb:1.5,lineHeight:1.6},"& ul, & ol":{mb:1.5,pl:3},...s.sx},children:f})}catch(u){return console.error("Error transforming HTML content:",u),p.jsxs(be,{component:n,...l,...s,...c,sx:{p:2,border:"1px solid red",borderRadius:1,backgroundColor:"rgba(255, 0, 0, 0.1)",...s.sx},children:[p.jsx("strong",{children:"HTML Transform Error:"})," ",u instanceof Error?u.message:"Unknown error",p.jsx(go,{html:t,placeholder:"Failed to transform HTML"})]})}}class _o extends zs{static fromJson(e){const{tagName:r,version:n,data:o}=e;if(r!==_o.tagName)throw new Error(`Cannot deserialize: Expected tagName 'Html' but got '${r}'`);n!==_o.version&&console.warn(`Version mismatch: Expected ${_o.version} but got ${n}`);const{children:s,...l}=o||{};return p.jsx(_o,{...l,children:Yr.deserialize(s)})}getComponentSpecificProps(){return{children:this.props.children,stripHeaders:this.props.stripHeaders,placeholder:this.props.placeholder}}renderView(){const{...e}=this.props;return p.jsx(dv,{...e})}renderWithDataBinding(){return p.jsx(mH,{...this.props})}static registerPatternHandlers(e){e.hasPattern("div.html-content")||e.registerPattern("div.html-content",_o.transformHtmlDiv),e.hasPattern("[data-html]")||e.registerPattern("[data-html]",_o.transformDataHtml)}static transformHtmlDiv(e){const r=e.getAttribute("data-strip-headers")==="true",n=e.getAttribute("data-placeholder");return{tagName:"Html",props:{children:e.innerHTML,stripHeaders:r,placeholder:n||void 0}}}static transformDataHtml(e){const r=e.getAttribute("data-html")||e.innerHTML,n=e.getAttribute("data-strip-headers")==="true",o=e.getAttribute("data-placeholder");return{tagName:"Html",props:{children:r,stripHeaders:n,placeholder:o||void 0}}}}_o.tagName="Html";_o.version="1.0.0";function mH(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:s,...l}=Oi(e,n,hH.getSchema(),{...r});return o?p.jsx(be,{sx:{p:2,textAlign:"center",opacity:.6},children:"Loading HTML content..."}):s?(console.error("Error loading HTML content:",s),p.jsxs(be,{sx:{p:2,border:"1px solid red",borderRadius:1,backgroundColor:"rgba(255, 0, 0, 0.1)"},children:[p.jsx("strong",{children:"Error Loading HTML:"})," ",s.message]})):p.jsx(dv,{...l})}class uo{static serialize(e){var r,n;if(e==null)return null;if(Array.isArray(e))return{type:"array",children:e.map(o=>uo.serialize(o))};if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return{type:"primitive",value:e};if(S.isValidElement(e)){const o=e,s=o.type,l=typeof s=="string"?s:((r=s==null?void 0:s.render)==null?void 0:r.name)||(s==null?void 0:s.name)||(s==null?void 0:s.muiName)||(s==null?void 0:s.displayName)||"Anonymous";return{type:"react-element",elementType:typeof l=="string"?((n=l.match(/^[A-Za-z]+?\(([^)]+)\)$/))==null?void 0:n[1])||l:"Anonymous",props:uo.serializeProps(o.props),key:o.key}}if(typeof e=="object"&&e!==null)try{const o={type:"object",data:{}};for(const[s,l]of Object.entries(e))o.data[s]=uo.serialize(l);return o}catch{return{type:"string",value:String(e)}}return{type:"string",value:String(e)}}static deserialize(e){var r;if(e==null)return null;if(typeof e=="object"&&e.type)switch(e.type){case"primitive":return e.value;case"string":return e.value;case"array":return((r=e.children)==null?void 0:r.map(n=>uo.deserialize(n)))||[];case"react-element":return uo.deserializeReactElement(e);case"object":{const n={};if(e.data&&typeof e.data=="object")for(const[o,s]of Object.entries(e.data))n[o]=uo.deserialize(s);return n}default:return String(e.value||e)}return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:String(e)}static serializeProps(e){if(!e||typeof e!="object")return e;const r={};for(const[n,o]of Object.entries(e))n==="children"?r[n]=uo.serialize(o):typeof o=="function"?r[n]=null:r[n]=o;return r}static deserializeReactElement(e){const r=e,{elementType:n,props:o,key:s}=r;try{if(typeof n=="string"){const l=uo.deserializeProps(o);return S.createElement(n,{key:s,...l})}}catch(l){console.warn("Error deserializing React element:",l)}return S.createElement(_o,{key:s,children:o.children})}static deserializeProps(e){if(!e||typeof e!="object")return e;const r={};for(const[n,o]of Object.entries(e))n==="children"?r[n]=uo.deserialize(o):r[n]=o;return r}static extractTextContent(e){return e?typeof e.children=="string"?e.children:e.title&&typeof e.title=="string"?e.title:e.label&&typeof e.label=="string"?e.label:e.text&&typeof e.text=="string"?e.text:null:null}}const mi=new Map,ys=new Map;let Cl=!0;const gH="__react_node__",yH="1.0.0";let Yr=class In{static setStrictMode(e){Cl=e}static isStrictMode(){return Cl}static registerComponent(e){const{tagName:r,version:n}=e;if(!r||typeof r!="string")throw new Error("Component class must have a static 'tagName' property");if(!n||typeof n!="string")throw new Error(`Component class '${r}' must have a static 'version' property`);if(typeof e.fromJson!="function")throw new Error(`Component class '${r}' must implement static 'fromJson' method`);mi.has(r)&&console.warn(`Component '${r}' is already registered. Overwriting existing registration.`),mi.set(r,e);const o=e;typeof o.registerPatternHandlers=="function"&&o.registerPatternHandlers(In)}static serialize(e){const r=In.serializeNode(e);return JSON.stringify(r)}static deserialize(e){if(typeof e=="string")try{const r=JSON.parse(e);return In.deserializeData(r)}catch{return e}return e==null?null:In.deserializeData(e)}static isSerializedComponent(e){return!!e&&typeof e=="object"&&typeof e.tagName=="string"&&typeof e.version=="string"&&"data"in e}static deserializeData(e){if(e==null)return null;if(Array.isArray(e))return e.map(r=>In.deserializeData(r));if(In.isSerializedComponent(e)){const{key:r,tagName:n,data:o}=e;try{const s=mi.get(n);if(!s){if(Cl)throw new Error(`Component '${n}' is not registered in strict mode`);const c=In.deserializeUnregisteredComponent(o);return r?Mt.cloneElement(c,{key:r}):c}const l=s.fromJson(e);return r?Mt.cloneElement(l,{key:r}):l}catch(s){if(Cl)throw s;console.error(`TEST: Error deserializing component '${n}':`,s)}}if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;console.warn("TEST: Unrecognized data:",e);{const r=typeof e=="object"?JSON.stringify(e,null,2):String(e);return Mt.createElement(go,{html:`<pre>${r}</pre>`})}}static serializeNode(e){if(e==null)return null;if(Array.isArray(e))return e.map(n=>In.serializeNode(n));if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="object"&&"type"in e){const n=e,o=n.key?{key:String(n.key)}:{},s=n.type;if(typeof s=="function"){const l=In.findTagNameForComponent(s);if(l){const c=mi.get(l);let u=null;const f=c;if(typeof f.toJson=="function"&&(u=f.toJson(n.props)),u!==null)return u.data&&u.data.children!==void 0&&(u.data.children=In.serializeNode(u.data.children)),{...o,...u}}else if(Cl){const c=s,u=c.displayName||c.name||"Unknown";throw new Error(`Unregistered component '${u}' cannot be serialized in strict mode`)}}}if(Cl)throw new Error(`Cannot serialize unregistered node in strict mode: ${typeof e=="object"&&e&&"type"in e?e.type:typeof e}`);return{tagName:gH,version:yH,data:uo.serialize(e)}}static deserializeUnregisteredComponent(e){return uo.deserialize(e)}static findTagNameForComponent(e){for(const[o,s]of mi.entries())if(s===e)return o;const r=e==null?void 0:e.tagName;if(typeof r=="string"&&mi.has(r))return r;const n=(e==null?void 0:e.displayName)||(e==null?void 0:e.name);if(n){const o=n.replace(/^[A-Za-z]+?\(([^)]+)\)$/,"$1").replace(/WithDataBinding$/,"");if(mi.has(o))return o;if(mi.has(n))return n}return null}static getRegisteredComponents(){return Array.from(mi.keys())}static clearRegistry(){mi.clear(),ys.clear()}static registerPattern(e,r){ys.has(e)&&console.warn(`Pattern '${e}' is already registered. Overwriting existing handler.`),ys.set(e,r)}static hasPattern(e){return ys.has(e)}static transformHTMLElement(e){for(const[r,n]of ys)if(e.matches(r))try{const o=n(e);return In.deserialize(o)}catch(o){return console.warn(`Error transforming element with pattern '${r}':`,o),null}return null}static transformHTML(e){if(!e.trim())return[];const n=new DOMParser().parseFromString(e,"text/html");return Array.from(n.body.children).map((o,s)=>In.transformElement(o,`element-${s}`))}static transformElement(e,r){const n=In.transformHTMLElement(e);if(n)return n;const o=Array.from(e.children);if(o.some(l=>Array.from(ys.keys()).some(c=>l.matches(c)))){const l=o.map((c,u)=>In.transformElement(c,`${r}-${u}`));return Mt.createElement(e.tagName.toLowerCase(),{key:r,className:e.className||void 0,id:e.id||void 0},l)}return uo.deserialize({type:"react-element",elementType:e.tagName.toLowerCase(),props:{key:r,className:e.className||void 0,id:e.id||void 0,dangerouslySetInnerHTML:{__html:e.innerHTML}}})}static getRegisteredPatterns(){return Array.from(ys.keys())}};function vH(){Yr.registerComponent(sB),Yr.registerComponent(_l),Yr.registerComponent(Ll),Yr.registerComponent(Rr),Yr.registerComponent(VT),Yr.registerComponent(jt),Yr.registerComponent(mB),Yr.registerComponent(uv),Yr.registerComponent(pH),Yr.registerComponent(uH),Yr.registerComponent(aH),Yr.registerComponent(ik),Yr.registerComponent(oH),Yr.registerComponent(lH),Yr.registerComponent(lc)}vH();let Qu=class extends lr{};_([B(),z({field_type:$.TEXTAREA,label:"HTML Content",description:"Raw HTML content to transform and render",placeholder:"Enter HTML content..."}),ie(),V(),D("design:type",String)],Qu.prototype,"html",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Skip Header",description:"Skip/remove header elements before rendering"}),V(),D("design:type",Boolean)],Qu.prototype,"skipHeader",void 0);Qu=_([Nt("Article","1.0.0")],Qu);var bH=Qu;function pv({html:t="",skipHeader:e=!1,...r}){const{styleProps:n,htmlProps:o,restProps:s}=Tn(r);return pv[_n]=!0,t.trim()?p.jsx(_o,{component:"article",stripHeaders:e,placeholder:"No content available",...o,...s,...n,maxWidth:"900px",mx:"auto",px:{xs:2,sm:3,md:4},py:{xs:3,md:5},"& h1, & h2, & h3, & h4, & h5, & h6":{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontWeight:700,letterSpacing:"-0.02em",color:"var(--theme-text)",scrollMarginTop:"100px","&:first-of-type":{mt:0}},"& h1":{fontSize:{xs:"2rem",md:"2.75rem"},lineHeight:1.15,mb:3,mt:5},"& h2":{fontSize:{xs:"1.5rem",md:"2rem"},lineHeight:1.25,mb:2.5,mt:5,pb:1.5,borderBottom:"1px solid var(--theme-border-lighter)"},"& h3":{fontSize:{xs:"1.25rem",md:"1.5rem"},lineHeight:1.3,mb:2,mt:4},"& h4":{fontSize:{xs:"1.1rem",md:"1.25rem"},lineHeight:1.4,mb:1.5,mt:3,color:"var(--theme-text)",fontWeight:600},"& p":{fontSize:{xs:"1rem",md:"1.0625rem"},lineHeight:1.75,mb:2,color:"var(--theme-text)",fontFamily:'Georgia, "Times New Roman", serif',"&:last-child":{mb:0}},"& ul, & ol":{mb:3,pl:{xs:3,md:4},"& li":{mb:1.25,lineHeight:1.7,fontSize:{xs:"1rem",md:"1.0625rem"},color:"var(--theme-text)",fontFamily:'Georgia, "Times New Roman", serif',"&::marker":{color:"var(--theme-primary)",fontWeight:600},"& p":{mb:.5}},"& ul, & ol":{mt:1,mb:0}},"& pre":{backgroundColor:"var(--theme-surface-elevated)",color:"var(--theme-text)",borderRadius:"var(--theme-border-radius)",p:{xs:2,md:3},mb:3,overflow:"auto",fontSize:"0.9rem",lineHeight:1.6,fontFamily:'"Fira Code", "Cascadia Code", "SF Mono", Monaco, Consolas, monospace',border:"1px solid var(--theme-border-light)",boxShadow:"var(--theme-elevation-2)","& code":{backgroundColor:"transparent",color:"inherit",padding:0,fontSize:"inherit",fontFamily:"inherit"}},"& code":{backgroundColor:"var(--theme-code-bg)",color:"var(--theme-error)",padding:"0.2em 0.4em",borderRadius:"var(--theme-border-radius-small)",fontSize:"0.9em",fontFamily:'"Fira Code", "Cascadia Code", "SF Mono", Monaco, Consolas, monospace',fontWeight:500},"& blockquote":{borderLeft:"4px solid var(--theme-primary)",backgroundColor:"var(--theme-surface-variant)",borderRadius:"0 var(--theme-border-radius-small) var(--theme-border-radius-small) 0",pl:3,pr:3,py:2.5,my:4,ml:0,mr:0,"& p":{fontSize:{xs:"1.05rem",md:"1.125rem"},fontStyle:"italic",lineHeight:1.6,mb:1.5,color:"var(--theme-text)","&:last-child":{mb:0}},"& cite":{display:"block",fontSize:"0.9rem",fontStyle:"normal",fontWeight:500,color:"var(--theme-text)",mt:1,"&::before":{content:'"— "',color:"var(--theme-primary)"}}},"& table":{width:"100%",borderCollapse:"separate",borderSpacing:0,mb:3,fontSize:"0.95rem",overflow:"hidden",borderRadius:"var(--theme-border-radius-small)",border:"1px solid var(--theme-border-light)","& thead":{backgroundColor:"var(--theme-surface-variant)","& th":{padding:"12px 16px",textAlign:"left",fontWeight:600,color:"var(--theme-text)",borderBottom:"2px solid var(--theme-border-main)",fontSize:"0.875rem",textTransform:"uppercase",letterSpacing:"0.05em"}},"& tbody":{"& tr":{borderBottom:"1px solid var(--theme-border-lighter)",transition:"background-color 0.2s ease","&:hover":{backgroundColor:"var(--theme-surface-variant)"},"&:last-child":{borderBottom:"none"}},"& td":{padding:"12px 16px",color:"var(--theme-text)",lineHeight:1.6}}},"& strong":{fontWeight:700,color:"var(--theme-text)"},"& em":{fontStyle:"italic",color:"var(--theme-text)"},"& a":{color:"var(--theme-primary)",textDecoration:"none",fontWeight:500,borderBottom:"1px solid transparent",transition:"border-color 0.2s ease","&:hover":{borderBottomColor:"var(--theme-primary)"},"&:focus-visible":{outline:"2px solid var(--theme-primary)",outlineOffset:"2px",borderRadius:"2px"}},"& img":{maxWidth:"100%",height:"auto",borderRadius:"var(--theme-border-radius-small)",display:"block",my:3},"& figure":{margin:"3rem 0","& img":{maxWidth:"100%",height:"auto",borderRadius:"var(--theme-border-radius-small)",boxShadow:"var(--theme-elevation-2)"},"& figcaption":{textAlign:"center",fontSize:"0.875rem",color:"var(--theme-text)",mt:1.5,fontStyle:"italic"}},"& hr":{border:"none",borderTop:"1px solid var(--theme-border-light)",my:5},...n.sx,children:t}):p.jsxs(be,{component:"article",...o,...n,sx:{maxWidth:"800px",mx:"auto",p:4,textAlign:"center",opacity:.6,...n.sx},children:[p.jsx(je,{variant:"h6",color:"var(--theme-text)",children:"No Content Available"}),p.jsx(je,{variant:"body2",color:"var(--theme-text)",children:"No HTML content provided for this article"})]})}class Ph extends zs{getComponentSpecificProps(){return{html:this.props.html,skipHeader:this.props.skipHeader}}renderView(){const{...e}=this.props;return p.jsx(pv,{...e})}renderWithDataBinding(){return p.jsx(xH,{...this.props})}static registerPatternHandlers(e){e.hasPattern("article")||e.registerPattern("article",Ph.transformArticle)}static transformArticle(e){const r=e.getAttribute("data-skip-header")==="true";return{tagName:"Article",props:{html:e.innerHTML,skipHeader:r}}}}Ph.tagName="Article";Ph.version="1.0.0";function xH(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:s,...l}=Oi(e,n,bH.getSchema(),{...r});return o?p.jsxs(be,{component:"article",sx:{maxWidth:"800px",mx:"auto",p:4,textAlign:"center"},children:[p.jsx(je,{variant:"h6",children:"Loading Article..."}),p.jsx(je,{variant:"body2",color:"var(--theme-text)",children:"Loading"})]}):s?(console.error("Error loading article:",s),p.jsxs(be,{component:"article",sx:{maxWidth:"800px",mx:"auto",p:4,textAlign:"center"},children:[p.jsx(je,{variant:"h6",children:"Error Loading Article"}),p.jsx(je,{variant:"body2",color:"var(--theme-text)",children:s.message})]})):p.jsx(pv,{...l})}let Kn=class extends lr{};_([B(),z({field_type:$.TEXT,label:"Label",description:"Button label text",placeholder:"Enter button text..."}),V(),ie(),D("design:type",String)],Kn.prototype,"label",void 0);_([B(),z({field_type:$.SELECT,label:"Variant",description:"Visual style variant",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Outlined",value:"outlined"},{label:"Text",value:"text"},{label:"Contained",value:"contained"}]}}),V(),He(["primary","secondary","outlined","text","contained"]),D("design:type",String)],Kn.prototype,"variant",void 0);_([B(),z({field_type:$.SELECT,label:"Size",description:"Button size",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),V(),He(["small","medium","large"]),D("design:type",String)],Kn.prototype,"buttonSize",void 0);_([B(),z({field_type:$.TEXT,label:"Icon",description:"Icon to display (before text)",placeholder:"Icon identifier..."}),V(),ie(),D("design:type",String)],Kn.prototype,"icon",void 0);_([B(),z({field_type:$.TEXT,label:"End Icon",description:"Icon to display after text",placeholder:"End icon identifier..."}),V(),ie(),D("design:type",String)],Kn.prototype,"endIcon",void 0);_([B(),z({field_type:$.URL,label:"URL",description:"Link URL - button becomes a link",placeholder:"https://..."}),V(),hh(),D("design:type",String)],Kn.prototype,"href",void 0);_([B(),z({field_type:$.SELECT,label:"Target",description:"Link target (when href is provided)",validation:{options:[{label:"Blank",value:"_blank"},{label:"Self",value:"_self"},{label:"Parent",value:"_parent"},{label:"Top",value:"_top"}]}}),V(),He(["_blank","_self","_parent","_top"]),D("design:type",String)],Kn.prototype,"target",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Disabled state"}),V(),D("design:type",Boolean)],Kn.prototype,"disabled",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Loading",description:"Loading state - shows spinner and disables interaction"}),V(),D("design:type",Boolean)],Kn.prototype,"loading",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Full Width",description:"Full width button"}),V(),D("design:type",Boolean)],Kn.prototype,"fullWidth",void 0);Kn=_([Nt("Action","1.0.0")],Kn);let Ai=class extends lr{};_([B(),z({field_type:$.TEXT,label:"Title",description:"Main heading for the content block",placeholder:"Enter content title..."}),V(),ie(),D("design:type",String)],Ai.prototype,"title",void 0);_([B(),z({field_type:$.TEXT,label:"Subtitle",description:"Secondary heading or description",placeholder:"Enter subtitle..."}),V(),ie(),D("design:type",String)],Ai.prototype,"subtitle",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Content",description:"Main content body (HTML supported)",placeholder:"Enter content body..."}),V(),ie(),D("design:type",Object)],Ai.prototype,"children",void 0);_([B(),z({field_type:$.REPEATER,label:"Actions",description:"Array of action buttons"}),V(),rn(),eo({each:!0}),ro(()=>Kn),D("design:type",Array)],Ai.prototype,"actions",void 0);_([B(),z({field_type:$.SELECT,label:"Variant",description:"Background/elevation style",validation:{options:[{label:"Default",value:"default"},{label:"Elevated",value:"elevated"},{label:"Outlined",value:"outlined"},{label:"Filled",value:"filled"}]}}),V(),He(["default","elevated","outlined","filled"]),D("design:type",String)],Ai.prototype,"variant",void 0);_([B(),z({field_type:$.SELECT,label:"Block Spacing",description:"Content padding size",validation:{options:[{label:"None",value:"none"},{label:"Compact",value:"compact"},{label:"Comfortable",value:"comfortable"},{label:"Spacious",value:"spacious"}]}}),V(),He(["none","compact","comfortable","spacious"]),D("design:type",String)],Ai.prototype,"blockSpacing",void 0);_([B(),z({field_type:$.SELECT,label:"Content Max Width",description:"Maximum content width constraint",validation:{options:[{label:"XS",value:"xs"},{label:"SM",value:"sm"},{label:"MD",value:"md"},{label:"LG",value:"lg"},{label:"XL",value:"xl"},{label:"Full Width",value:"false"}]}}),V(),He(["xs","sm","md","lg","xl","false"]),D("design:type",String)],Ai.prototype,"contentMaxWidth",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Centered",description:"Center align content"}),V(),_t(),D("design:type",Boolean)],Ai.prototype,"centered",void 0);Ai=_([Nt("Content","1.0.0")],Ai);let Yu=class extends lr{};_([B(),z({field_type:$.TEXT,label:"Label",description:'Metadata label (e.g., "followers", "posts")',placeholder:"followers"}),ie(),D("design:type",String)],Yu.prototype,"label",void 0);_([B(),z({field_type:$.TEXT,label:"Value",description:'Metadata value (e.g., "1.2k", "42")',placeholder:"1.2k"}),ie(),D("design:type",String)],Yu.prototype,"value",void 0);Yu=_([Nt("MetadataItem","1.0.0")],Yu);let pn=class extends lr{};_([B(),z({field_type:$.IMAGE,label:"Cover Image",description:"Large banner/cover image URL",placeholder:"Upload cover image"}),V(),ie(),D("design:type",String)],pn.prototype,"coverImage",void 0);_([B(),z({field_type:$.TEXT,label:"Cover Image Alt Text",description:"Alternative text for cover image",placeholder:"Descriptive alt text..."}),V(),ie(),D("design:type",String)],pn.prototype,"coverImageAlt",void 0);_([B(),z({field_type:$.IMAGE,label:"Profile Image",description:"Profile/avatar image URL",placeholder:"Upload profile image"}),V(),ie(),D("design:type",String)],pn.prototype,"profileImage",void 0);_([B(),z({field_type:$.TEXT,label:"Profile Image Alt Text",description:"Alternative text for profile image",placeholder:"Profile alt text..."}),V(),ie(),D("design:type",String)],pn.prototype,"profileImageAlt",void 0);_([B(),z({field_type:$.SELECT,label:"Profile Image Size",description:"Size of the profile image",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),V(),He(["small","medium","large"]),D("design:type",String)],pn.prototype,"profileImageSize",void 0);_([B(),z({field_type:$.TEXT,label:"Overline",description:"Small text above the main title",placeholder:"Overline text"}),V(),ie(),D("design:type",String)],pn.prototype,"overline",void 0);_([B(),z({field_type:$.TEXT,label:"Title",description:"Main heading/title text",placeholder:"Enter title..."}),ie(),D("design:type",String)],pn.prototype,"title",void 0);_([B(),z({field_type:$.TEXT,label:"Subtitle",description:"Secondary text below the title",placeholder:"Enter subtitle..."}),V(),ie(),D("design:type",String)],pn.prototype,"subtitle",void 0);_([B(),z({field_type:$.REPEATER,label:"Metadata",description:"Array of metadata items (followers, posts, etc.)"}),V(),rn(),eo({each:!0}),ro(()=>Yu),D("design:type",Array)],pn.prototype,"metadata",void 0);_([B(),z({field_type:$.REPEATER,label:"Tags",description:"Array of tag strings"}),V(),rn(),ie({each:!0}),D("design:type",Array)],pn.prototype,"tags",void 0);_([B(),z({field_type:$.REPEATER,label:"Actions",description:"Array of action buttons"}),V(),rn(),eo({each:!0}),ro(()=>Mi),D("design:type",Array)],pn.prototype,"actions",void 0);_([B(),z({field_type:$.NUMBER,label:"Max Visible Actions",description:"Maximum visible actions before overflow",validation:{min:1,max:10}}),V(),wr(),to(1),Bs(10),D("design:type",Number)],pn.prototype,"maxVisibleActions",void 0);_([B(),z({field_type:$.NUMBER,label:"Banner Height",description:"Height of the banner area in pixels",validation:{min:100,max:500}}),V(),wr(),to(100),Bs(500),D("design:type",Number)],pn.prototype,"height",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-class"}),V(),ie(),D("design:type",String)],pn.prototype,"className",void 0);_([B(),z({field_type:$.SELECT,label:"Profile Position",description:"Position of profile image relative to banner",validation:{options:[{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Overlay Center",value:"overlay-center"}]}}),V(),He(["bottom-left","bottom-center","overlay-center"]),D("design:type",String)],pn.prototype,"profilePosition",void 0);pn=_([Nt("PageBannerHeader","1.0.0")],pn);let ji=class extends lr{};_([B(),z({field_type:$.TEXT,label:"ID",description:"Unique identifier for the feature item",placeholder:"feature-id"}),ie(),Ya(),D("design:type",String)],ji.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Icon",description:"Feature icon (emoji or icon name)",placeholder:"🚀 or icon-name"}),V(),ie(),D("design:type",String)],ji.prototype,"icon",void 0);_([B(),z({field_type:$.TEXT,label:"Title",description:"Feature title",placeholder:"Feature title..."}),ie(),D("design:type",String)],ji.prototype,"title",void 0);_([B(),z({field_type:$.TEXT,label:"Description",description:"Feature description",placeholder:"Feature description..."}),ie(),D("design:type",String)],ji.prototype,"description",void 0);_([B(),z({field_type:$.TEXT,label:"Action",description:"Optional action/link text or content",placeholder:"Learn more"}),V(),ie(),D("design:type",String)],ji.prototype,"action",void 0);ji=_([Nt("FeatureItem","1.0.0")],ji);let _s=class extends lr{};_([B(),z({field_type:$.REPEATER,label:"Features",description:"Array of feature items"}),rn(),eo({each:!0}),ro(()=>ji),D("design:type",Array)],_s.prototype,"features",void 0);_([B(),z({field_type:$.SELECT,label:"Columns",description:"Number of columns in the grid",validation:{options:[{label:"1 Column",value:1},{label:"2 Columns",value:2},{label:"3 Columns",value:3},{label:"4 Columns",value:4},{label:"5 Columns",value:5},{label:"6 Columns",value:6}]}}),V(),wr(),He([1,2,3,4,5,6]),D("design:type",Number)],_s.prototype,"columns",void 0);_([B(),z({field_type:$.SELECT,label:"Gap",description:"Grid gap size",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),V(),He(["small","medium","large"]),D("design:type",String)],_s.prototype,"gap",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Equal Height",description:"Whether all grid items should have equal height"}),V(),_t(),D("design:type",Boolean)],_s.prototype,"equalHeight",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-class"}),V(),ie(),D("design:type",String)],_s.prototype,"className",void 0);_s=_([Nt("FeatureGrid","1.0.0")],_s);let $r=class extends lr{};_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Collapsed",description:"Whether the layout is currently collapsed"}),V(),_t(),D("design:type",Boolean)],$r.prototype,"collapsed",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Default Collapsed",description:"Initial collapsed state for uncontrolled usage"}),V(),_t(),D("design:type",Boolean)],$r.prototype,"defaultCollapsed",void 0);_([B(),z({field_type:$.TEXT,label:"Title",description:"Main title displayed in the header",placeholder:"Enter title..."}),V(),ie(),D("design:type",String)],$r.prototype,"title",void 0);_([B(),z({field_type:$.TEXT,label:"Subtitle",description:"Secondary text displayed below the title",placeholder:"Enter subtitle..."}),V(),ie(),D("design:type",String)],$r.prototype,"subtitle",void 0);_([B(),z({field_type:$.TEXT,label:"Lead Icon",description:"Icon displayed before the title (icon identifier or HTML)",placeholder:"Icon identifier..."}),V(),ie(),D("design:type",String)],$r.prototype,"leadIcon",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Header Actions",description:"Additional controls displayed in header (HTML/React content)",placeholder:"Enter header actions HTML..."}),V(),ie(),D("design:type",String)],$r.prototype,"headerActions",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Collapsed View",description:"Summary content shown when collapsed (HTML supported)",placeholder:"Enter collapsed view content..."}),V(),ie(),D("design:type",String)],$r.prototype,"collapsedView",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Content",description:"Main content shown when expanded (HTML supported)",placeholder:"Enter main content..."}),V(),ie(),D("design:type",Object)],$r.prototype,"children",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Footer View",description:"Always visible footer content (HTML supported)",placeholder:"Enter footer content..."}),V(),ie(),D("design:type",String)],$r.prototype,"footerView",void 0);_([B({defaultValue:"header"}),z({field_type:$.SELECT,label:"Trigger Area",description:"Area that responds to clicks for toggle functionality",validation:{options:[{label:"Button Only",value:"button"},{label:"Header Area",value:"header"},{label:"Button and Header",value:"both"}]}}),V(),He(["button","header","both"]),D("design:type",String)],$r.prototype,"triggerArea",void 0);_([B({defaultValue:"slide"}),z({field_type:$.SELECT,label:"Animation Style",description:"Animation variant for expand/collapse transitions",validation:{options:[{label:"Fade",value:"fade"},{label:"Slide",value:"slide"},{label:"Scale",value:"scale"}]}}),V(),He(["fade","slide","scale"]),D("design:type",String)],$r.prototype,"animationStyle",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Persist State",description:"Save collapse state in local storage"}),V(),_t(),D("design:type",Boolean)],$r.prototype,"persistState",void 0);_([B(),z({field_type:$.TEXT,label:"Collapsed Icon",description:"Icon shown when content is collapsed (default: VisibilityIcon)",placeholder:"Icon identifier..."}),V(),ie(),D("design:type",String)],$r.prototype,"collapsedIcon",void 0);_([B(),z({field_type:$.TEXT,label:"Expanded Icon",description:"Icon shown when content is expanded (default: VisibilityOffIcon)",placeholder:"Icon identifier..."}),V(),ie(),D("design:type",String)],$r.prototype,"expandedIcon",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Divider",description:"Show divider lines between header, content, and footer sections"}),V(),_t(),D("design:type",Boolean)],$r.prototype,"showDivider",void 0);_([B({defaultValue:"default"}),z({field_type:$.SELECT,label:"Variant",description:"Visual style variant for the layout container",validation:{options:[{label:"Default",value:"default"},{label:"Outlined",value:"outlined"},{label:"Elevated",value:"elevated"},{label:"Filled",value:"filled"}]}}),V(),He(["default","outlined","elevated","filled"]),D("design:type",String)],$r.prototype,"variant",void 0);_([B({defaultValue:"comfortable"}),z({field_type:$.SELECT,label:"Header Spacing",description:"Padding/spacing within the header area",validation:{options:[{label:"Compact",value:"compact"},{label:"Comfortable",value:"comfortable"},{label:"Spacious",value:"spacious"}]}}),V(),He(["compact","comfortable","spacious"]),D("design:type",String)],$r.prototype,"headerSpacing",void 0);_([B({defaultValue:"comfortable"}),z({field_type:$.SELECT,label:"Content Spacing",description:"Padding/spacing within the content area",validation:{options:[{label:"Compact",value:"compact"},{label:"Comfortable",value:"comfortable"},{label:"Spacious",value:"spacious"}]}}),V(),He(["compact","comfortable","spacious"]),D("design:type",String)],$r.prototype,"contentSpacing",void 0);$r=_([Nt("CollapsibleLayout","1.0.0")],$r);let Da=class extends lr{};_([B(),z({field_type:$.TEXT,label:"Action ID",description:"Unique identifier for the action",placeholder:"action-1"}),ie(),Ya(),D("design:type",String)],Da.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Label",description:"Action button label",placeholder:"Button text..."}),ie(),D("design:type",String)],Da.prototype,"label",void 0);_([B(),z({field_type:$.SELECT,label:"Style",description:"Button style variant",validation:{options:[{label:"Contained",value:"contained"},{label:"Outlined",value:"outlined"},{label:"Text",value:"text"}]}}),V(),He(["contained","outlined","text"]),D("design:type",String)],Da.prototype,"variant",void 0);_([B(),z({field_type:$.SELECT,label:"Color",description:"Button color theme",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Error",value:"error"}]}}),V(),He(["primary","secondary","error"]),D("design:type",String)],Da.prototype,"color",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Disabled state"}),V(),D("design:type",Boolean)],Da.prototype,"disabled",void 0);Da=_([Nt("FeatureCardAction","1.0.0")],Da);let Fa=class extends lr{};_([B({type:ct.OBJECT}),z({field_type:$.FORM,label:"Feature Data",description:"Single feature item to display"}),V(),eo(),ro(()=>ji),D("design:type",ji)],Fa.prototype,"feature",void 0);_([B({type:ct.ARRAY}),z({field_type:$.REPEATER,label:"Features List",description:"List of feature strings for list variant"}),V(),rn(),ie({each:!0}),D("design:type",Array)],Fa.prototype,"features",void 0);_([B({defaultValue:"standard"}),z({field_type:$.SELECT,label:"Card Type",description:"Display variant for the feature card",validation:{options:[{label:"Standard",value:"standard"},{label:"List",value:"list"}]}}),V(),He(["standard","list"]),D("design:type",String)],Fa.prototype,"variant",void 0);_([B({type:ct.ARRAY}),z({field_type:$.REPEATER,label:"Actions",description:"Custom action buttons"}),V(),rn(),eo({each:!0}),ro(()=>Da),D("design:type",Array)],Fa.prototype,"actions",void 0);_([B(),z({field_type:$.TEXT,label:"Title",description:"Title for list variant",placeholder:"Enter card title..."}),V(),ie(),D("design:type",String)],Fa.prototype,"title",void 0);_([B(),z({field_type:$.NUMBER,label:"Elevation",description:"Card elevation (0-24)",validation:{min:0,max:24}}),V(),wr(),to(0),Bs(24),D("design:type",Number)],Fa.prototype,"elevation",void 0);Fa=_([Nt("FeatureCard","1.0.0")],Fa);let Ls=class extends lr{};_([B(),z({field_type:$.TEXT,label:"ID",description:"Unique identifier for the footer item",placeholder:"footer-item-id"}),ie(),Ya(),D("design:type",String)],Ls.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Label",description:"Display text for the footer item",placeholder:"Navigation label"}),ie(),D("design:type",String)],Ls.prototype,"label",void 0);_([B(),z({field_type:$.URL,label:"URL",description:"Optional URL for links",placeholder:"https://example.com"}),V(),ie(),D("design:type",String)],Ls.prototype,"href",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"External Link",description:"Whether to open links in new tab"}),V(),_t(),D("design:type",Boolean)],Ls.prototype,"external",void 0);Ls=_([Nt("FooterItem","1.0.0")],Ls);let Jl=class extends lr{};_([B(),z({field_type:$.TEXT,label:"ID",description:"Unique identifier for the footer section",placeholder:"footer-section-id"}),ie(),Ya(),D("design:type",String)],Jl.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Title",description:"Section title/heading",placeholder:"Section title"}),V(),ie(),D("design:type",String)],Jl.prototype,"title",void 0);_([B(),z({field_type:$.REPEATER,label:"Items",description:"Array of items in this section"}),rn(),eo({each:!0}),ro(()=>Ls),D("design:type",Array)],Jl.prototype,"items",void 0);Jl=_([Nt("FooterSection","1.0.0")],Jl);let _i=class extends lr{};_([B(),z({field_type:$.REPEATER,label:"Sections",description:"Footer sections with navigation items"}),V(),rn(),eo({each:!0}),ro(()=>Jl),D("design:type",Array)],_i.prototype,"sections",void 0);_([B(),z({field_type:$.TEXT,label:"Logo",description:"Optional logo or branding element (HTML or text)",placeholder:"Company Logo or HTML"}),V(),ie(),D("design:type",String)],_i.prototype,"logo",void 0);_([B(),z({field_type:$.TEXT,label:"Copyright",description:"Copyright text",placeholder:"© 2025 Company Name"}),V(),ie(),D("design:type",String)],_i.prototype,"copyright",void 0);_([B(),z({field_type:$.TEXT,label:"Legal Text",description:"Additional legal or info text",placeholder:"All rights reserved."}),V(),ie(),D("design:type",String)],_i.prototype,"legalText",void 0);_([B(),z({field_type:$.SELECT,label:"Orientation",description:"Layout orientation",validation:{options:[{label:"Vertical",value:"vertical"},{label:"Horizontal",value:"horizontal"}]}}),V(),He(["vertical","horizontal"]),D("design:type",String)],_i.prototype,"orientation",void 0);_([B(),z({field_type:$.SELECT,label:"Variant",description:"Background variant",validation:{options:[{label:"Default",value:"default"},{label:"Contained",value:"contained"},{label:"Outlined",value:"outlined"}]}}),V(),He(["default","contained","outlined"]),D("design:type",String)],_i.prototype,"variant",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Show Divider",description:"Whether to show divider above footer"}),V(),_t(),D("design:type",Boolean)],_i.prototype,"showDivider",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-footer-class"}),V(),ie(),D("design:type",String)],_i.prototype,"className",void 0);_i=_([Nt("Footer","1.0.0")],_i);let Qn=class extends lr{};_([B(),z({field_type:$.TEXT,label:"Product ID",description:"Unique product identifier",placeholder:"product-1"}),ie(),Ya(),D("design:type",String)],Qn.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Product Name",description:"The display name of the product",placeholder:"Enter product name..."}),ie(),Ya(),D("design:type",String)],Qn.prototype,"name",void 0);_([B(),z({field_type:$.TEXT,label:"Category",description:"Product category or type",placeholder:"e.g., Software, Hardware, Service"}),ie(),D("design:type",String)],Qn.prototype,"category",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Description",description:"Full product description",placeholder:"Detailed product description..."}),ie(),D("design:type",String)],Qn.prototype,"description",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Short Description",description:"Brief product description for compact view",placeholder:"Brief description..."}),V(),ie(),D("design:type",String)],Qn.prototype,"shortDescription",void 0);_([B({type:ct.ARRAY}),z({field_type:$.REPEATER,label:"Features",description:"List of key product features"}),rn(),ie({each:!0}),D("design:type",Array)],Qn.prototype,"features",void 0);_([B({type:ct.ARRAY}),z({field_type:$.REPEATER,label:"Technologies",description:"Technologies used in the product"}),rn(),ie({each:!0}),D("design:type",Array)],Qn.prototype,"technologies",void 0);_([B(),z({field_type:$.TEXT,label:"Status",description:"Current product status",placeholder:"e.g., Active, Development, Beta"}),ie(),D("design:type",String)],Qn.prototype,"status",void 0);_([B(),z({field_type:$.IMAGE,label:"Image URL",description:"Product image or screenshot",placeholder:"https://..."}),V(),hh(),D("design:type",String)],Qn.prototype,"image",void 0);_([B(),z({field_type:$.URL,label:"Product URL",description:"Live product URL (for launched products)",placeholder:"https://..."}),V(),hh(),D("design:type",String)],Qn.prototype,"url",void 0);Qn=_([Nt("Product","1.0.0")],Qn);let Ha=class extends lr{};_([B(),z({field_type:$.TEXT,label:"Action ID",description:"Unique action identifier",placeholder:"action-1"}),ie(),Ya(),D("design:type",String)],Ha.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Button Label",description:"Action button text",placeholder:"Button text..."}),ie(),D("design:type",String)],Ha.prototype,"label",void 0);_([B(),z({field_type:$.SELECT,label:"Button Style",description:"Button style variant",validation:{options:[{label:"Contained",value:"contained"},{label:"Outlined",value:"outlined"},{label:"Text",value:"text"}]}}),V(),He(["contained","outlined","text"]),D("design:type",String)],Ha.prototype,"variant",void 0);_([B(),z({field_type:$.SELECT,label:"Button Color",description:"Button color theme",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Error",value:"error"}]}}),V(),He(["primary","secondary","error"]),D("design:type",String)],Ha.prototype,"color",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Disabled state"}),V(),D("design:type",Boolean)],Ha.prototype,"disabled",void 0);Ha=_([Nt("ProductCardAction","1.0.0")],Ha);let Ua=class extends lr{};_([B({type:ct.OBJECT}),z({field_type:$.FORM,label:"Product Data",description:"Product information to display"}),V(),eo(),ro(()=>Qn),D("design:type",Qn)],Ua.prototype,"product",void 0);_([B({defaultValue:"detailed"}),z({field_type:$.SELECT,label:"Card Variant",description:"Display variant for the product card",validation:{options:[{label:"Compact",value:"compact"},{label:"Detailed",value:"detailed"}]}}),V(),He(["compact","detailed"]),D("design:type",String)],Ua.prototype,"variant",void 0);_([B({type:ct.ARRAY}),z({field_type:$.REPEATER,label:"Custom Actions",description:"Custom action buttons"}),V(),rn(),eo({each:!0}),ro(()=>Ha),D("design:type",Array)],Ua.prototype,"actions",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Image",description:"Whether to display the product image"}),V(),D("design:type",Boolean)],Ua.prototype,"showImage",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Technologies",description:"Whether to display technology chips"}),V(),D("design:type",Boolean)],Ua.prototype,"showTechnologies",void 0);_([B({defaultValue:3}),z({field_type:$.NUMBER,label:"Max Features (Compact)",description:"Maximum features to show in compact mode",validation:{min:1,max:10}}),V(),wr(),to(1),Bs(10),D("design:type",Number)],Ua.prototype,"maxFeaturesCompact",void 0);Ua=_([Nt("ProductCard","1.0.0")],Ua);let Va=class extends ea{};_([B(),z({field_type:$.REPEATER,label:"Grid Items",description:"Array of items to display in the grid"}),rn(),D("design:type",Array)],Va.prototype,"items",void 0);_([B(),z({field_type:$.SELECT,label:"Columns",description:"Number of columns in the grid layout",validation:{options:[{value:1,label:"1 Column"},{value:2,label:"2 Columns (Default)"},{value:3,label:"3 Columns"},{value:4,label:"4 Columns"},{value:5,label:"5 Columns"},{value:6,label:"6 Columns"}]}}),V(),wr(),He([1,2,3,4,5,6]),D("design:type",Number)],Va.prototype,"columns",void 0);_([B(),z({field_type:$.SELECT,label:"Grid Spacing",description:"Spacing between grid items",validation:{options:[{value:"none",label:"No Spacing"},{value:"tiny",label:"Tiny"},{value:"small",label:"Small"},{value:"medium",label:"Medium"},{value:"large",label:"Large (Default)"},{value:"huge",label:"Huge"}]}}),V(),He(["none","tiny","small","medium","large","huge"]),D("design:type",String)],Va.prototype,"spacing",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Equal Height",description:"Whether all cards should have equal height"}),V(),_t(),D("design:type",Boolean)],Va.prototype,"equalHeight",void 0);_([B(),z({field_type:$.SELECT,label:"Card Component Type",description:"Type of card component to render for each item",validation:{options:[{value:"ProductCard",label:"Product Card"},{value:"FeatureCard",label:"Feature Card"},{value:"Custom",label:"Custom Component"}]}}),V(),He(["ProductCard","FeatureCard","Custom"]),D("design:type",String)],Va.prototype,"renderComponent",void 0);_([B(),z({field_type:$.FORM,label:"Item Properties",description:"Additional properties to pass to each rendered item"}),V(),a9(),D("design:type",Object)],Va.prototype,"itemProps",void 0);Va=_([Nt("CardListGrid","1.0.0")],Va);let ni=class extends lr{};_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Disable the theme switcher button"}),V(),_t(),D("design:type",Boolean)],ni.prototype,"disabled",void 0);_([B({defaultValue:"medium"}),z({field_type:$.SELECT,label:"Button Size",description:"Size of the theme switcher button"}),V(),ie(),He(["small","medium","large"]),D("design:type",String)],ni.prototype,"size",void 0);_([B(),z({field_type:$.TEXT,label:"Custom Tooltip",description:"Custom tooltip text override",placeholder:"Current theme: Light"}),V(),ie(),D("design:type",String)],ni.prototype,"tooltipText",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Tooltip",description:"Show tooltip on hover"}),V(),_t(),D("design:type",Boolean)],ni.prototype,"showTooltip",void 0);_([B({defaultValue:"bottom"}),z({field_type:$.SELECT,label:"Menu Position",description:"Position of the theme selection menu"}),V(),ie(),He(["bottom","top","left","right"]),D("design:type",String)],ni.prototype,"menuPosition",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Light Theme",description:"Show light theme option in menu"}),V(),_t(),D("design:type",Boolean)],ni.prototype,"showLightTheme",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Dark Theme",description:"Show dark theme option in menu"}),V(),_t(),D("design:type",Boolean)],ni.prototype,"showDarkTheme",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show System Theme",description:"Show system theme option in menu"}),V(),_t(),D("design:type",Boolean)],ni.prototype,"showSystemTheme",void 0);ni=_([Nt("ThemeSwitcher","1.0.0")],ni);var wH=ni;function sC({disabled:t=!1,size:e="medium",tooltipText:r,showTooltip:n=!0,menuPosition:o="bottom",showLightTheme:s=!0,showDarkTheme:l=!0,showSystemTheme:c=!0,...u}){const{styleProps:f,htmlProps:h}=Tn(u),{currentTheme:v,actualThemeMode:g,setPreferredTheme:y}=FT(),[w,x]=S.useState(null),C=!!w,R=H=>{t||x(H.currentTarget)},P=()=>{x(null)},M=H=>{t||(y(H),P())},E=()=>{switch(g){case"dark":return p.jsx(pS,{});case"light":return p.jsx(of,{});default:return p.jsx(of,{})}},I=()=>r||(t?"Theme switcher disabled":`Current theme: ${v==="system"?`System (${g})`:v.charAt(0).toUpperCase()+v.slice(1)}`),A=()=>{switch(o){case"top":return{vertical:"top",horizontal:"right"};case"left":return{vertical:"bottom",horizontal:"left"};case"right":return{vertical:"bottom",horizontal:"right"};default:return{vertical:"bottom",horizontal:"right"}}},F=()=>{switch(o){case"top":return{vertical:"bottom",horizontal:"right"};case"left":return{vertical:"top",horizontal:"right"};case"right":return{vertical:"top",horizontal:"left"};default:return{vertical:"top",horizontal:"right"}}};if(!s&&!l&&!c)return p.jsx(Ir,{variant:"outlined",sx:{p:2,textAlign:"center",borderColor:"error.main"},children:p.jsx(je,{variant:"body2",color:"error",children:"Error: No theme options enabled"})});const j=p.jsxs("span",{suppressHydrationWarning:!0,children:[p.jsx(mr,{...h,onClick:R,disabled:t,size:e,"aria-label":"theme switcher","aria-controls":C?"theme-menu":void 0,"aria-haspopup":"true","aria-expanded":C?"true":void 0,suppressHydrationWarning:!0,sx:{color:"var(--theme-on-surface, inherit)","&:hover":{backgroundColor:"var(--menu-hover, rgba(0, 0, 0, 0.04))"},"&:disabled":{color:"var(--theme-disabled, rgba(0, 0, 0, 0.26))"},...f.sx},className:f.className,children:E()}),p.jsxs(ph,{id:"theme-menu",anchorEl:w,open:C,onClose:P,slotProps:{paper:{"aria-labelledby":"theme-button"}},anchorOrigin:A(),transformOrigin:F(),children:[s&&p.jsxs(cn,{onClick:()=>M("light"),selected:v==="light",children:[p.jsx(rf,{children:p.jsx(of,{fontSize:"small"})}),p.jsx(nf,{children:"Light"})]}),l&&p.jsxs(cn,{onClick:()=>M("dark"),selected:v==="dark",children:[p.jsx(rf,{children:p.jsx(pS,{fontSize:"small"})}),p.jsx(nf,{children:"Dark"})]}),c&&p.jsxs(cn,{onClick:()=>M("system"),selected:v==="system",children:[p.jsx(rf,{children:p.jsx(a7,{fontSize:"small"})}),p.jsx(nf,{children:"System"})]})]})]});return n?p.jsx(Jr,{title:I(),children:j}):j}function ak(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Oi(e||"",n,wH.getSchema(),{...r});if(!e)return p.jsx(sC,{...n});const{loading:s,error:l,...c}=o;return s?p.jsx(mr,{disabled:!0,size:"medium",children:p.jsx(of,{})}):l?(console.error("Error loading theme switcher:",l),p.jsx(Ir,{variant:"outlined",sx:{p:2,textAlign:"center",borderColor:"error.main"},children:p.jsxs(je,{variant:"body2",color:"error",children:["Error loading theme switcher: ",l.message]})})):p.jsx(sC,{...c})}ak[_n]=!0;const fv=S.createContext(null);function SH({children:t}){const e=e0(),r=Zy(),n=o=>{(typeof o=="string"||typeof o=="number")&&e(o)};return p.jsx(fv.Provider,{value:{navigate:n,location:{pathname:r.pathname,search:r.search,hash:r.hash}},children:t})}function CH({children:t}){const e=n=>{typeof window>"u"||(typeof n=="string"?window.location.href=n:typeof n=="number"&&window.history.go(n))},r=typeof window<"u"?{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash}:void 0;return p.jsx(fv.Provider,{value:{navigate:e,location:r},children:t})}function TH({children:t}){return S.useContext(Zu)?p.jsx(SH,{children:t}):p.jsx(CH,{children:t})}function sk(){const t=S.useContext(fv);if(!t)throw new Error("useNavigation must be used within a NavigationProvider. Make sure your component is wrapped in QwickApp or NavigationProvider.");return t}let Wa=class extends lr{};_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Disable the palette switcher button"}),V(),_t(),D("design:type",Boolean)],Wa.prototype,"disabled",void 0);_([B(),z({field_type:$.TEXT,label:"Button Size",description:"Size of the palette switcher button",placeholder:"medium"}),V(),ie(),D("design:type",String)],Wa.prototype,"buttonSize",void 0);_([B(),z({field_type:$.TEXT,label:"Tooltip Text",description:"Custom tooltip text for the palette switcher",placeholder:"Switch color palette"}),V(),ie(),D("design:type",String)],Wa.prototype,"tooltipText",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Active Badge",description:'Show "Active" badge on currently selected palette'}),V(),_t(),D("design:type",Boolean)],Wa.prototype,"showActiveBadge",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Descriptions",description:"Show palette descriptions in menu items"}),V(),_t(),D("design:type",Boolean)],Wa.prototype,"showDescriptions",void 0);Wa=_([Nt("PaletteSwitcher","1.0.0")],Wa);var EH=Wa;function lC({disabled:t=!1,buttonSize:e="medium",tooltipText:r,showActiveBadge:n=!0,showDescriptions:o=!0,...s}){const{styleProps:l,htmlProps:c}=Tn(s),{currentPalette:u,setPreferredPalette:f,availablePalettes:h}=zT(),[v,g]=S.useState(null),y=!!v,w=E=>{g(E.currentTarget)},x=()=>{g(null)},C=E=>{f(E),x()},R=E=>{const I=E.id===u;return p.jsx(M9,{fontSize:"small",sx:{color:E.primaryColor,filter:I?"drop-shadow(0 0 3px currentColor) brightness(1.2)":"none",transform:I?"scale(1.1)":"scale(1)",transition:"all 0.2s ease-in-out"}})},P=()=>h.find(E=>E.id===u)||h[0];if(!h||h.length===0)return p.jsx(Ir,{...c,...l,variant:"outlined",sx:{p:2,textAlign:"center",opacity:.6,...l.sx},children:p.jsx(je,{variant:"body2",color:"text.secondary",children:"No color palettes available"})});const M=`Switch color palette (current: ${P().name})`;return p.jsxs(be,{...c,...l,children:[p.jsx(Jr,{title:r||M,children:p.jsx(mr,{onClick:w,disabled:t,size:e,"aria-label":"palette switcher","aria-controls":y?"palette-menu":void 0,"aria-haspopup":"true","aria-expanded":y?"true":void 0,sx:{color:"var(--theme-on-surface, inherit)","&:hover":{backgroundColor:"var(--menu-hover, rgba(0, 0, 0, 0.04))"}},children:p.jsx(K9,{})})}),p.jsx(ph,{id:"palette-menu",anchorEl:v,open:y,onClose:x,slotProps:{paper:{"aria-labelledby":"palette-button"}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:h.map(E=>p.jsxs(cn,{onClick:()=>C(E.id),selected:u===E.id,sx:{"&:hover":{backgroundColor:"action.hover"},"&.Mui-selected":{backgroundColor:"action.selected","&:hover":{backgroundColor:"action.selected"}}},children:[p.jsx(rf,{children:R(E)}),p.jsx(nf,{primary:p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:1},children:[E.name,n&&u===E.id&&p.jsx(be,{component:"span",sx:{fontSize:"0.75rem",px:1,py:.25,borderRadius:1,backgroundColor:"primary.main",color:"primary.contrastText"},children:"Active"})]}),secondary:o?E.description:void 0})]},E.id))})]})}function lk(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Oi(e||"",n,EH.getSchema(),{...r});if(!e)return p.jsx(lC,{...n});const{loading:s,error:l,...c}=o;return s?p.jsxs(Ir,{variant:"outlined",sx:{p:2,textAlign:"center"},children:[p.jsx(je,{variant:"body2",children:"Loading PaletteSwitcher..."}),p.jsx(je,{variant:"caption",color:"text.secondary",children:"Loading palette switcher from data source..."})]}):l?(console.error("Error loading palette switcher:",l),p.jsx(Ir,{variant:"outlined",sx:{p:2,textAlign:"center",borderColor:"error.main"},children:p.jsxs(je,{variant:"body2",color:"error",children:["Error loading palette switcher: ",l.message]})})):p.jsx(lC,{...c})}lk[_n]=!0;function bu({children:t,PaperProps:e,...r}){return p.jsx(qL,{...r,PaperProps:{...e,sx:{backgroundColor:"var(--theme-surface)",color:"var(--theme-text-primary)",borderRadius:"var(--theme-border-radius, 8px)",...e==null?void 0:e.sx}},children:t})}function xu({children:t,sx:e,...r}){return p.jsx(i6,{...r,sx:{color:"var(--theme-text-primary)",backgroundColor:"var(--theme-surface)",borderBottom:"1px solid var(--theme-border)",...e},children:t})}function wu({children:t,sx:e,...r}){return p.jsx(r6,{...r,sx:{color:"var(--theme-text-primary)",backgroundColor:"var(--theme-surface)",...e},children:t})}function Su({children:t,sx:e,...r}){return p.jsx(QL,{...r,sx:{backgroundColor:"var(--theme-surface)",borderTop:"1px solid var(--theme-border)",padding:"16px 24px",...e},children:t})}const ck=Mt.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:s}=Tn(t),{label:l,value:c,onChange:u,onChangeRaw:f,type:h="text",helperText:v,required:g=!1,readOnly:y=!1,disabled:w=!1,disabledColor:x,fullWidth:C=!0,multiline:R=!1,rows:P,placeholder:M,startAdornment:E,endAdornment:I,inputProps:A}=s,F=Mt.useId(),j=k=>{if(f){f(k);return}if(u){const q=h==="number"?parseInt(k.target.value)||0:k.target.value;u(q)}},H={p:1,pl:1.6,mt:3,color:w&&x?x:y?"var(--theme-text-secondary)":"var(--theme-text-primary)",backgroundColor:y?"var(--theme-surface-variant)":"transparent",borderRadius:1,"&.Mui-disabled":x?{color:x,WebkitTextFillColor:x}:void 0,"& input.Mui-disabled":x?{color:x,WebkitTextFillColor:x}:void 0,...n.sx},G={left:-12,fontWeight:600,color:"var(--theme-text-primary)"},N={color:"var(--theme-secondary)"};return p.jsxs(za,{ref:e,fullWidth:C,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[p.jsx(Vl,{htmlFor:F,sx:G,shrink:!0,children:l}),p.jsx(dh,{id:F,type:h,value:c,onChange:j,readOnly:y,disabled:w,required:g,multiline:R,rows:P,placeholder:M,inputProps:A,sx:H,startAdornment:E?p.jsx(Sf,{position:"start",children:E}):void 0,endAdornment:I?p.jsx(Sf,{position:"end",children:I}):void 0}),v&&p.jsx(ic,{sx:N,children:v})]})});ck.displayName="FormField";ck[_n]=!0;const uk=Mt.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:s}=Tn(t),{label:l,value:c,onChange:u,options:f,helperText:h,required:v=!1,disabled:g=!1,fullWidth:y=!0,size:w="small",placeholder:x}=s,C=E=>{u(E.target.value)},R={p:1,pl:1.6,...l?{mt:1,color:"var(--theme-text-primary)"}:{},backgroundColor:"var(--theme-surface-variant)",borderColor:"var(--theme-surface)",color:"var(--theme-text-primary)",borderRadius:1,...n.sx},P={left:-12,fontWeight:600,color:"var(--theme-text-primary)"},M={color:"var(--theme-secondary)"};return p.jsxs(za,{ref:e,fullWidth:y,size:w,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[l&&p.jsx(Vl,{sx:P,shrink:!0,children:l}),p.jsxs(Ms,{value:c,onChange:C,disabled:g,required:v,displayEmpty:!!x,sx:R,children:[x&&p.jsx(cn,{value:"",disabled:!0,children:x}),f.map(E=>p.jsx(cn,{value:E.value,children:E.label},E.value))]}),h&&p.jsx(ic,{sx:M,children:h})]})});uk.displayName="FormSelect";uk[_n]=!0;const dk=Mt.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:s}=Tn(t),{label:l,checked:c,onChange:u,helperText:f,required:h=!1,disabled:v=!1}=s,g=C=>{u(C.target.checked)},y={color:"var(--theme-primary)","&.Mui-checked":{color:"var(--theme-primary)"},"&.Mui-disabled":{color:"var(--theme-text-disabled)"}},w={color:"var(--theme-text-primary)","& .MuiFormControlLabel-label":{color:"var(--theme-text-primary)"},"& .MuiFormControlLabel-label.Mui-disabled":{color:"var(--theme-text-disabled)"},...n.sx},x={color:"var(--theme-secondary)",marginLeft:"32px"};return p.jsxs(za,{ref:e,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[p.jsx(J2,{control:p.jsx(vL,{checked:c,onChange:g,required:h,disabled:v,sx:y}),label:l,sx:w}),f&&p.jsx(ic,{sx:x,children:f})]})});dk.displayName="FormCheckbox";dk[_n]=!0;const pk=Mt.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:s}=Tn(t),{provider:l,siteKey:c,onVerify:u,onExpire:f,onError:h,theme:v="light",size:g="normal",action:y="submit"}=s,w=S.useRef(null),x=S.useRef(null),[C,R]=S.useState(!1),[P,M]=S.useState(null);return S.useEffect(()=>{(()=>{if((()=>{switch(l){case"recaptcha-v2":case"recaptcha-v3":return!!window.grecaptcha;case"hcaptcha":return!!window.hcaptcha;case"turnstile":return!!window.turnstile;default:return!1}})()){R(!0);return}const F=(()=>{switch(l){case"recaptcha-v2":return"https://www.google.com/recaptcha/api.js?render=explicit";case"recaptcha-v3":return`https://www.google.com/recaptcha/api.js?render=${c}`;case"hcaptcha":return"https://js.hcaptcha.com/1/api.js?render=explicit";case"turnstile":return"https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit";default:return""}})();if(!F){M("Unsupported CAPTCHA provider");return}const j=document.createElement("script");return j.src=F,j.async=!0,j.defer=!0,j.onload=()=>{R(!0)},j.onerror=()=>{M("Failed to load CAPTCHA script"),h==null||h(new Error("Failed to load CAPTCHA script"))},document.head.appendChild(j),()=>{document.head.removeChild(j)}})()},[l,c,h]),S.useEffect(()=>{if(!C||!w.current)return;const I=setTimeout(()=>{try{switch(l){case"recaptcha-v2":window.grecaptcha&&window.grecaptcha.render&&(x.current=window.grecaptcha.render(w.current,{sitekey:c,callback:u,"expired-callback":f,"error-callback":()=>{const A=new Error("reCAPTCHA error");M(A.message),h==null||h(A)},theme:v,size:g}));break;case"recaptcha-v3":window.grecaptcha&&window.grecaptcha.execute&&window.grecaptcha.execute(c,{action:y}).then(A=>{u(A)}).catch(A=>{M(A.message),h==null||h(A)});break;case"hcaptcha":window.hcaptcha&&window.hcaptcha.render&&(x.current=window.hcaptcha.render(w.current,{sitekey:c,callback:u,"expired-callback":f,"error-callback":()=>{const A=new Error("hCaptcha error");M(A.message),h==null||h(A)},theme:v,size:g==="normal"?"normal":"compact"}));break;case"turnstile":window.turnstile&&window.turnstile.render&&(x.current=window.turnstile.render(w.current,{sitekey:c,callback:u,"expired-callback":f,"error-callback":()=>{const A=new Error("Turnstile error");M(A.message),h==null||h(A)},theme:v,size:g==="compact"?"compact":"normal"}));break}}catch(A){const F=A instanceof Error?A:new Error("Failed to render CAPTCHA");M(F.message),h==null||h(F)}},100);return()=>{var A,F,j;if(clearTimeout(I),x.current!==null)try{switch(l){case"recaptcha-v2":(A=window.grecaptcha)==null||A.reset(x.current);break;case"hcaptcha":(F=window.hcaptcha)==null||F.remove(x.current);break;case"turnstile":(j=window.turnstile)==null||j.remove(x.current);break}}catch{}}},[C,l,c,u,f,h,v,g,y]),l==="recaptcha-v3"?null:p.jsxs(be,{ref:e,...o,sx:{my:2,...n.sx},...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[P&&p.jsx(Un,{severity:"error",sx:{mb:2},children:P}),p.jsx("div",{ref:w})]})});pk.displayName="Captcha";pk[_n]=!0;const fk=Mt.forwardRef((t,e)=>{var E;const{gridProps:r,styleProps:n,htmlProps:o,restProps:s}=Tn(t),{placeholder:l,value:c,defaultValue:u,slotProps:f,InputLabelProps:h,InputProps:v,variant:g="outlined",...y}=s,w=c!=null&&c!==""||u!=null&&u!=="",x=!!l&&!w,C=((E=f==null?void 0:f.inputLabel)==null?void 0:E.shrink)??(h==null?void 0:h.shrink),R=C!==void 0?C:x,P={...f,inputLabel:{...(f==null?void 0:f.inputLabel)||{},...R?{shrink:!0}:{}}};let M=v||{};return g==="outlined"&&R&&l&&!w&&M.notched===void 0&&(M={...M,notched:!0}),fk[_n]=!0,p.jsx(un,{ref:e,placeholder:l,value:c,defaultValue:u,variant:g,slotProps:P,InputProps:M,...y,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl}})});fk.displayName="TextField";function cC(t,e={}){const{defaultUnit:r="px",allowedUnits:n=["px","mm","cm","in","pt","pc"],allowKeywords:o=!1,fallback:s=`0${r}`}=e;if(t==null)return s;if(typeof t=="number"&&isFinite(t))return`${t}${r}`;const l=String(t).trim();return l?o&&/^(auto|inherit|initial|unset)$/.test(l)?l:/^-?\d+(\.\d+)?$/.test(l)?`${l}${r}`:new RegExp(`^-?\\d+(?:\\.\\d+)?(${n.map(u=>u.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")})$`).test(l)?l:s:s}const kH=S.createContext(null);function PH(t,e,r){const{openGraph:n=!0,removeOnUnmount:o=!1}={};S.useEffect(()=>{const s=document.title;let l=!1,c=document.querySelector('meta[name="description"]');t&&document.title!==t&&(document.title=t),e&&(c||(c=document.createElement("meta"),c.name="description",document.head.appendChild(c),l=!0),c.content!==e&&(c.content=e));let u=null,f=null;return n&&(t&&(u=document.querySelector('meta[property="og:title"]'),u||(u=document.createElement("meta"),u.setAttribute("property","og:title"),document.head.appendChild(u)),u.content!==t&&(u.content=t)),e&&(f=document.querySelector('meta[property="og:description"]'),f||(f=document.createElement("meta"),f.setAttribute("property","og:description"),document.head.appendChild(f)),f.content!==e&&(f.content=e))),()=>{var h,v,g;o&&(document.title===t&&(document.title=s),e&&c&&(l||o)&&((h=c.parentNode)==null||h.removeChild(c)),n&&(u&&o&&((v=u.parentNode)==null||v.removeChild(u)),f&&o&&((g=f.parentNode)==null||g.removeChild(f))))}},[t,e,n,o])}const RH=({renderView:t,renderPrintView:e,template:r,route:n,title:o,description:s,name:l,slug:c,printConfig:u,variant:f="default",padding:h="medium",background:v="default",maxWidth:g="large",children:y,...w})=>{const{htmlProps:x,styleProps:C}=Tn(w),[R,P]=S.useState(!1),[M,E]=S.useState(null),I={route:n??(r!=null&&r.slug?`/${r.slug}`:void 0),title:o??(r==null?void 0:r.title)??(r==null?void 0:r.name),description:s??(r==null?void 0:r.description),name:l??(r==null?void 0:r.name),slug:c??(r==null?void 0:r.slug),printConfig:{...r==null?void 0:r.printConfig,...u}};PH(I.title,I.description);const{isPrintMode:A,printConfig:F,onViewLoading:j,onViewReady:H,triggerPrint:G}=tB(),N=S.useCallback(ee=>G({...I.printConfig,...ee}),[G,I.printConfig]);S.useLayoutEffect(()=>{A&&(R?j():H())},[A,R,j,H]),S.useEffect(()=>{if(!A)return;const ee="qwickapps-print-page-setup",Z=F,Q=Z.pageSize||"auto",X=Z.printBackground||"transparent",re=Z.printBackgroundFirstPage||X,ce=document.querySelector(".page-print-header:not(.page-print-header-first-page)"),Y=document.querySelector(".page-print-footer:not(.page-print-footer-first-page)"),ne=ce!=null&&ce.getBoundingClientRect?Math.ceil(ce.getBoundingClientRect().height):0,J=Y!=null&&Y.getBoundingClientRect?Math.ceil(Y.getBoundingClientRect().height):0,de=ne?`${ne}px`:cC(Z.printHeaderHeight||0),Ce=J?`${J}px`:cC(Z.printFooterHeight||0),he=(Oe,Be)=>`@media print{@page{size:${Q};margin:0;} .page-print-mode{--print-header-height:${Oe};--print-footer-height:${Be};--print-background:${X};--print-background-first-page:${re};}}`;let se=document.getElementById(ee);se||(se=document.createElement("style"),se.id=ee,document.head.appendChild(se)),se.textContent=he(de,Ce);let De=null;window.ResizeObserver&&(De=new ResizeObserver(()=>{const Oe=ce!=null&&ce.getBoundingClientRect?Math.ceil(ce.getBoundingClientRect().height):0,Be=Y!=null&&Y.getBoundingClientRect?Math.ceil(Y.getBoundingClientRect().height):0,_e=he(Oe?`${Oe}px`:de,Be?`${Be}px`:Ce);se&&se.textContent!==_e&&(se.textContent=_e)}),ce&&De.observe(ce),Y&&De.observe(Y));const Ne=()=>{const Oe=document.getElementById(ee);Oe!=null&&Oe.parentNode&&Oe.parentNode.removeChild(Oe),De==null||De.disconnect()};return window.addEventListener("afterprint",Ne,{once:!0}),()=>{window.removeEventListener("afterprint",Ne),Ne()}},[A,F]);const{location:k}=sk(),q=I.route||(k==null?void 0:k.pathname)||"",U=S.useMemo(()=>({route:q,isPrintMode:A,printConfig:F,triggerPrint:N,setLoading:P,setError:E,isLoading:R,error:M}),[q,A,F,N,R,M]),L=["page",`page-variant-${f}`,`page-padding-${h}`,`page-background-${v}`,`page-max-width-${g}`,A&&"page-print-mode",A&&F.pageMargins==="0mm"&&"page-print-borderless",A&&F.pageMargins==="6mm"&&"page-print-compact",A&&F.pageMargins==="20mm"&&"page-print-large",A&&F.pageMargins==="25mm"&&"page-print-formal",A&&(F.printBackground||F.printBackgroundFirstPage)&&"has-background",C.className].filter(Boolean).join(" "),W=(A?e:t)(),K=W??y;return p.jsx(kH.Provider,{value:U,children:p.jsxs(be,{className:L,sx:C.sx,style:C.style,...x,children:[A&&F.printHeader&&p.jsx("div",{className:"page-print-header",children:typeof F.printHeader=="string"?p.jsx(go,{html:cu`${F.printHeader}`}):F.printHeader}),A&&F.printHeaderFirstPage&&p.jsx("div",{className:"page-print-header page-print-header-first-page",children:typeof F.printHeaderFirstPage=="string"?p.jsx(go,{html:cu`${F.printHeaderFirstPage}`}):F.printHeaderFirstPage}),A&&!F.printHeader&&F.printTitle&&p.jsxs("div",{className:"page-print-header",children:[p.jsx("h1",{children:F.printTitle}),F.showPrintDate&&p.jsxs("div",{className:"page-print-date",children:["Printed on: ",new Date().toLocaleString()]})]}),I.name&&I.name!==I.title&&p.jsx("div",{className:"page-heading",children:p.jsx("h1",{children:I.name})}),p.jsx("div",{className:"page-content",children:K}),A&&F.printFooter&&p.jsx("div",{className:"page-print-footer",children:typeof F.printFooter=="string"?p.jsx(go,{html:cu`${F.printFooter}`}):F.printFooter}),A&&F.printFooterFirstPage&&p.jsx("div",{className:"page-print-footer page-print-footer-first-page",children:typeof F.printFooterFirstPage=="string"?p.jsx(go,{html:cu`${F.printFooterFirstPage}`}):F.printFooterFirstPage})]})})};class MV extends Mt.Component{getPageProps(){return{}}renderView(){return this.props.children}renderPrintView(){return this.renderView()}render(){const e={...this.props,...this.getPageProps()};return p.jsx(RH,{...e,renderView:()=>this.renderView(),renderPrintView:()=>this.renderPrintView()})}}const gi=T7.scaffold,uC={mobile:600,tablet:1024},MH=({children:t,navigationItems:e=[],appBar:r,className:n="",showAppBar:o=!0,appBarHeight:s=64,appName:l,showThemeSwitcher:c=!1,showPaletteSwitcher:u=!1,onLogoClick:f})=>{const[h,v]=S.useState("desktop"),[g,y]=S.useState(!1),[w,x]=S.useState(!1),[C,R]=S.useState(!1),{navigate:P,location:M}=sk(),E=C?M==null?void 0:M.pathname:void 0;Mt.useEffect(()=>{E&&gi.debug("Current path changed to:",E)},[E]),S.useEffect(()=>{R(!0)},[]);const{appName:I,logo:A}=H0(),F=l||I;S.useEffect(()=>{const Q=()=>{const X=window.innerWidth;X<uC.mobile?v("mobile"):X<=uC.tablet?v("tablet"):v("desktop")};return Q(),window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[]);const j=[...e].sort((Q,X)=>(Q.priority||999)-(X.priority||999)),H=()=>{switch(h){case"mobile":{const Q=j.slice(0,5),X=j.slice(5);return{primaryItems:Q,drawerItems:X}}case"tablet":{const Q=j.slice(0,7),X=j.slice(7);return{primaryItems:Q,drawerItems:X}}case"desktop":{const Q=j.slice(0,7),X=j.slice(7);return{primaryItems:Q,drawerItems:X}}default:return{primaryItems:j,drawerItems:[]}}},{primaryItems:G,drawerItems:N}=H(),k=Mt.useMemo(()=>{const Q=r||{};return{...Q,title:Q.title||F,actions:Q.actions}},[r,F]),q=(k==null?void 0:k.logo)||A||p.jsx(yh,{name:(k==null?void 0:k.title)||F,size:"small"}),U=()=>{y(!g)},L=()=>{x(!w)},W=(Q,X="appbar")=>{const re=Q.active||Q.route&&E===Q.route||!Q.active&&!Q.route&&E&&E===`/${Q.id}`;Q.route&&gi.debug(`Route matching for ${Q.id}: ${E} === ${Q.route} = ${re}`);const ce=()=>{if(Q.disabled)return;if(re&&Q.route===E){gi.debug(`Navigation prevented: Already on route ${Q.route}`);return}if(Q.onClick)try{Q.onClick()}catch(he){gi.error("Menu item onClick error:",he)}else if(Q.route)try{if(gi.debug(`Navigating from ${E} to ${Q.route}`),E&&E===Q.route){gi.debug("Final check: Same route detected, skipping navigation");return}P(Q.route)}catch(he){const se=he instanceof Error?he.message:"Unknown error";if(gi.error("Navigation error caught:",he),gi.error("Navigation context:",{from:E,to:Q.route,isActiveItem:re,itemId:Q.id,errorMessage:se}),Q.route&&Q.route!==E)try{gi.debug("Attempting fallback navigation using window.location"),window.location.pathname=Q.route}catch(De){gi.error("Fallback navigation also failed:",De)}}},Y=X!=="drawer";let ne=null;Q.icon?typeof Q.icon=="string"?ne=Iy(Q.icon)||(Y?p.jsx(hS,{}):null):ne=Q.icon:Y&&(ne=p.jsx(hS,{}));const J=p.jsxs(p.Fragment,{children:[ne&&p.jsx("span",{className:`menu-item-icon menu-item-icon-${X}`,children:ne}),p.jsx("span",{className:`menu-item-label menu-item-label-${X}`,children:Q.label}),Q.badge&&p.jsx("span",{className:"menu-item-badge",children:Q.badge})]}),de={className:`menu-item menu-item-${X} ${re?"active":""} ${Q.disabled?"disabled":""}`,"aria-label":Q.label,"aria-current":re?"page":void 0,onClick:Q.disabled?void 0:ce};return Q.href&&!Q.disabled?p.jsx("a",{href:Q.href,...de,target:"_blank",rel:"noopener noreferrer",children:J}):p.jsx("button",{type:"button",...de,disabled:!!(Q.disabled||re&&Q.route===E),children:J})},ee=(()=>{const Q=h==="mobile"?16:h==="tablet"?24:32,X=Q+(o?s:0),re=Q+(h==="mobile"?80:0),ce=Q+(h==="tablet"?w?280:80:0);return{paddingTop:X,paddingBottom:re,paddingLeft:ce,paddingRight:Q}})(),Z=()=>p.jsx("div",{className:"appbar-logo",onClick:f,style:{cursor:f?"pointer":"default"},children:q});return p.jsxs("div",{className:`app-scaffold ${n}`,children:[o&&p.jsx("header",{className:"app-scaffold-appbar",style:{height:s},children:p.jsxs("div",{className:"appbar-content",children:[p.jsxs("div",{className:"appbar-left",children:[(N.length>0||h==="tablet")&&p.jsx("button",{type:"button",className:"menu-button",onClick:h==="tablet"?L:U,"aria-label":h==="tablet"?"Toggle navigation rail":"Open drawer menu",children:p.jsxs("span",{className:"hamburger-icon",children:[p.jsx("span",{},"hamburger-line-1"),p.jsx("span",{},"hamburger-line-2"),p.jsx("span",{},"hamburger-line-3")]})},"menu-button"),(!(k!=null&&k.logoPosition)||k.logoPosition==="left")&&p.jsx(Z,{},"app-logo-left")]}),p.jsxs("div",{className:"appbar-center",children:[(k==null?void 0:k.logoPosition)==="center"&&p.jsx(Z,{},"app-logo-center"),h==="desktop"&&p.jsx("nav",{className:"appbar-navigation",children:G.map(Q=>p.jsx(Mt.Fragment,{children:W(Q,"appbar")},Q.id))},"desktop-navigation")]}),p.jsxs("div",{className:"appbar-right",children:[(k==null?void 0:k.actions)&&p.jsx("div",{className:"appbar-actions",children:k.actions},"appbar-actions"),p.jsxs("div",{className:"appbar-theme-controls",children:[c&&p.jsx(ak,{},"theme-switcher"),u&&p.jsx(lk,{},"palette-switcher")]},"appbar-theme-controls")]})]})}),h==="tablet"&&p.jsx("nav",{className:`navigation-rail ${w?"expanded":"collapsed"}`,children:p.jsx("div",{className:"rail-items",children:G.map(Q=>p.jsx(Mt.Fragment,{children:W(Q,"rail")},Q.id))})}),h==="mobile"&&G.length>0&&p.jsx("nav",{className:"bottom-navigation",children:p.jsx("div",{className:"bottom-nav-items",children:G.map(Q=>p.jsx(Mt.Fragment,{children:W(Q,"bottom")},Q.id))})}),g&&N.length>0&&p.jsx("div",{className:"drawer-overlay",onClick:U,children:p.jsxs("nav",{className:"navigation-drawer",onClick:Q=>Q.stopPropagation(),children:[p.jsxs("div",{className:"drawer-header",children:[p.jsx("h3",{children:"Menu"},"drawer-title"),p.jsx("button",{type:"button",className:"drawer-close",onClick:U,"aria-label":"Close drawer",children:"×"},"drawer-close-button")]}),p.jsxs("div",{className:"drawer-items",children:[p.jsxs("div",{className:"drawer-section",children:[p.jsx("h4",{children:"Navigation"},"navigation-header"),G.map(Q=>p.jsx(Mt.Fragment,{children:W(Q,"drawer")},Q.id))]}),N.length>0&&p.jsxs("div",{className:"drawer-section",children:[p.jsx("h4",{children:"More"},"more-header"),N.map(Q=>p.jsx(Mt.Fragment,{children:W(Q,"drawer")},Q.id))]})]})]})}),p.jsx("main",{className:"app-scaffold-content",style:{paddingTop:`${ee.paddingTop}px`,paddingBottom:`${ee.paddingBottom}px`,paddingLeft:`${ee.paddingLeft}px`,paddingRight:`${ee.paddingRight}px`},children:t})]})};class IH extends S.Component{constructor(e){super(e),this.handleRetry=()=>{this.setState({hasError:!1,error:null,errorInfo:null})},this.handleRefresh=()=>{typeof window<"u"&&window.location.reload()},this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e,errorInfo:null}}componentDidCatch(e,r){var n;this.setState({error:e,errorInfo:r}),console.error("ErrorBoundary caught an error:",e,r),this.props.onError&&this.props.onError(e,r),typeof window<"u"&&(n=window.qwickapps)!=null&&n.logError&&window.qwickapps.logError(e,r)}render(){var e;return this.state.hasError?this.props.fallback?this.props.fallback:p.jsxs("div",{className:"error-boundary",role:"alert",style:{padding:"2rem",textAlign:"center",backgroundColor:"#fef2f2",border:"1px solid #fecaca",borderRadius:"8px",margin:"1rem",color:"#991b1b"},children:[p.jsxs("div",{style:{marginBottom:"1.5rem"},children:[p.jsx("h2",{style:{fontSize:"1.5rem",fontWeight:"bold",marginBottom:"0.5rem",color:"#991b1b"},children:"Something went wrong"}),p.jsx("p",{style:{color:"#7f1d1d",marginBottom:"1rem"},children:"An unexpected error occurred in the application. Please try again or refresh the page."})]}),p.jsxs("div",{style:{display:"flex",gap:"0.75rem",justifyContent:"center",marginBottom:"1rem"},children:[p.jsx(Rr,{variant:"contained",onClick:this.handleRetry,children:"Try Again"}),p.jsx(Rr,{variant:"outlined",onClick:this.handleRefresh,children:"Refresh Page"})]}),this.state.error&&p.jsxs("details",{style:{textAlign:"left",marginTop:"1rem",padding:"1rem",backgroundColor:"#f9fafb",border:"1px solid #d1d5db",borderRadius:"6px"},children:[p.jsx("summary",{style:{cursor:"pointer",fontWeight:"bold",marginBottom:"0.5rem",color:"#374151"},children:"Error Details (Development Mode)"}),p.jsxs("pre",{style:{fontSize:"0.75rem",color:"#374151",whiteSpace:"pre-wrap",overflow:"auto"},children:[this.state.error.toString(),((e=this.state.errorInfo)==null?void 0:e.componentStack)&&p.jsxs(p.Fragment,{children:[p.jsx("br",{}),p.jsx("br",{}),"Component Stack:",this.state.errorInfo.componentStack]})]})]})]}):this.props.children}}const AH=S.createContext(null),jH=(t,e)=>{switch(e.type){case"SET_HIGH_CONTRAST":return{...t,highContrast:e.payload};case"SET_REDUCED_MOTION":return{...t,reducedMotion:e.payload};case"SET_LARGE_TEXT":return{...t,largeText:e.payload};case"SET_FOCUS_VISIBLE":return{...t,focusVisible:e.payload};case"SET_KEYBOARD_USER":return{...t,isKeyboardUser:e.payload};case"ADD_ISSUE":return{...t,issues:[...t.issues,e.payload]};case"CLEAR_ISSUES":return{...t,issues:[]};case"SET_ANNOUNCEMENT":return{...t,lastAnnouncement:e.payload};default:return t}},_H={highContrast:!1,reducedMotion:!1,largeText:!1,focusVisible:!0,isKeyboardUser:!1,issues:[],lastAnnouncement:null,preferences:{}};class LH{constructor(){this.politeRegion=null,this.assertiveRegion=null,this.createLiveRegions()}createLiveRegions(){typeof document>"u"||(this.politeRegion=document.createElement("div"),this.politeRegion.setAttribute("aria-live","polite"),this.politeRegion.setAttribute("aria-atomic","true"),this.politeRegion.setAttribute("id","qwickapps-aria-live-polite"),this.politeRegion.style.cssText=`
383
+ position: absolute !important;
384
+ left: -10000px !important;
385
+ width: 1px !important;
386
+ height: 1px !important;
387
+ overflow: hidden !important;
388
+ `,document.body.appendChild(this.politeRegion),this.assertiveRegion=document.createElement("div"),this.assertiveRegion.setAttribute("aria-live","assertive"),this.assertiveRegion.setAttribute("aria-atomic","true"),this.assertiveRegion.setAttribute("id","qwickapps-aria-live-assertive"),this.assertiveRegion.style.cssText=`
389
+ position: absolute !important;
390
+ left: -10000px !important;
391
+ width: 1px !important;
392
+ height: 1px !important;
393
+ overflow: hidden !important;
394
+ `,document.body.appendChild(this.assertiveRegion))}announce(e,r="polite"){r==="assertive"?this.announceAssertive(e):this.announcePolite(e)}announcePolite(e){this.politeRegion&&(this.politeRegion.textContent="",setTimeout(()=>{this.politeRegion&&(this.politeRegion.textContent=e)},100))}announceAssertive(e){this.assertiveRegion&&(this.assertiveRegion.textContent="",setTimeout(()=>{this.assertiveRegion&&(this.assertiveRegion.textContent=e)},100))}}const Fg=new LH,OH=({children:t,enableAudit:e=!0})=>{const[r,n]=S.useReducer(jH,_H);S.useEffect(()=>{o();const f=s();return l(),e&&c(),()=>{f&&f()}},[e]);const o=()=>{if(!(typeof window>"u")&&(window.matchMedia&&window.matchMedia("(prefers-contrast: high)").matches&&n({type:"SET_HIGH_CONTRAST",payload:!0}),window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches&&n({type:"SET_REDUCED_MOTION",payload:!0}),window.matchMedia)){const f=window.matchMedia("(prefers-contrast: high)"),h=window.matchMedia("(prefers-reduced-motion: reduce)"),v=y=>{n({type:"SET_HIGH_CONTRAST",payload:y.matches})},g=y=>{n({type:"SET_REDUCED_MOTION",payload:y.matches})};return f.addEventListener("change",v),h.addEventListener("change",g),()=>{f.removeEventListener("change",v),h.removeEventListener("change",g)}}},s=()=>{if(typeof document>"u")return;let f=!1;const h=g=>{g.key==="Tab"&&(f=!0,n({type:"SET_KEYBOARD_USER",payload:!0}),document.body.classList.add("keyboard-user"))},v=()=>{f&&(f=!1,n({type:"SET_KEYBOARD_USER",payload:!1}),document.body.classList.remove("keyboard-user"))};return document.addEventListener("keydown",h),document.addEventListener("mousedown",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("mousedown",v)}},l=()=>{if(typeof document>"u")return;const f=document.createElement("style");f.textContent=`
395
+ .keyboard-user *:focus {
396
+ outline: 3px solid #005cee !important;
397
+ outline-offset: 2px !important;
398
+ }
399
+
400
+ .high-contrast *:focus {
401
+ outline: 3px solid #ffffff !important;
402
+ outline-offset: 2px !important;
403
+ box-shadow: 0 0 0 1px #000000 !important;
404
+ }
405
+
406
+ .reduced-motion * {
407
+ animation-duration: 0.01ms !important;
408
+ animation-iteration-count: 1 !important;
409
+ transition-duration: 0.01ms !important;
410
+ }
411
+
412
+ .large-text {
413
+ font-size: 1.2em !important;
414
+ }
415
+ `,document.head.appendChild(f)},c=()=>{typeof document>"u"||setTimeout(()=>{const f=[];document.querySelectorAll("img:not([alt])").forEach(y=>{f.push({type:"missing-alt-text",message:"Image missing alt attribute",level:"error",element:y})}),document.querySelectorAll("button:not([aria-label]):not([title])").forEach(y=>{var w;(w=y.textContent)!=null&&w.trim()||f.push({type:"unnamed-button",message:"Button missing accessible name",level:"error",element:y})}),document.querySelectorAll("input:not([aria-label]):not([title])").forEach(y=>{const w=y.getAttribute("id");w?document.querySelector(`label[for="${w}"]`)||f.push({type:"unlabeled-input",message:"Form input missing label",level:"error",element:y}):f.push({type:"unlabeled-input",message:"Form input missing label",level:"error",element:y})}),n({type:"CLEAR_ISSUES"}),f.forEach(y=>{n({type:"ADD_ISSUE",payload:y})}),f.length>0&&(console.group("🔍 Accessibility Issues Found"),f.forEach(y=>{(y.level==="error"?console.error:console.warn)(`${y.type}: ${y.message}`)}),console.groupEnd())},1e3)},u={...r,setHighContrast:f=>n({type:"SET_HIGH_CONTRAST",payload:f}),setReducedMotion:f=>n({type:"SET_REDUCED_MOTION",payload:f}),setLargeText:f=>n({type:"SET_LARGE_TEXT",payload:f}),setFocusVisible:f=>n({type:"SET_FOCUS_VISIBLE",payload:f}),announce:(f,h="polite")=>{Fg.announce(f,h),n({type:"SET_ANNOUNCEMENT",payload:{message:f,level:h,timestamp:Date.now()}})},announcePolite:f=>{Fg.announcePolite(f),n({type:"SET_ANNOUNCEMENT",payload:{message:f,level:"polite",timestamp:Date.now()}})},announceAssertive:f=>{Fg.announceAssertive(f),n({type:"SET_ANNOUNCEMENT",payload:{message:f,level:"assertive",timestamp:Date.now()}})},addIssue:f=>n({type:"ADD_ISSUE",payload:f}),clearIssues:()=>n({type:"CLEAR_ISSUES"}),runAudit:c};return S.useEffect(()=>{if(typeof document>"u")return;const{highContrast:f,reducedMotion:h,largeText:v}=r;document.body.classList.toggle("high-contrast",f),document.body.classList.toggle("reduced-motion",h),document.body.classList.toggle("large-text",v)},[r.highContrast,r.reducedMotion,r.largeText]),p.jsx(AH.Provider,{value:u,children:t})},NH=({children:t,className:e,style:r,defaultTheme:n,defaultPalette:o,appName:s,logo:l,appId:c,enableScaffolding:u,navigationItems:f=[],appBar:h,showAppBar:v=!0,appBarHeight:g=64,showThemeSwitcher:y,showPaletteSwitcher:w,onLogoClick:x,router:C,dataSource:R,config:P})=>{const M={appName:s??(P==null?void 0:P.app.name),appId:c??(P==null?void 0:P.app.id),logo:l??(P==null?void 0:P.app.logo),enableScaffolding:u??(P==null?void 0:P.ui.enableScaffolding)??!1,showThemeSwitcher:y??(P==null?void 0:P.ui.showThemeSwitcher)??!1,showPaletteSwitcher:w??(P==null?void 0:P.ui.showPaletteSwitcher)??!1,defaultTheme:n??(P==null?void 0:P.ui.defaultTheme),defaultPalette:o??(P==null?void 0:P.ui.defaultPalette)};if(!M.appName)throw new Error("QwickApp requires either appName prop or config with app.name");const[E,I]=S.useState({logo:M.logo,enableScaffolding:M.enableScaffolding,navigationItems:f,appBar:h,showAppBar:v,appBarHeight:g,showThemeSwitcher:M.showThemeSwitcher,showPaletteSwitcher:M.showPaletteSwitcher}),A=N=>{I(k=>({...k,...N}))},F={appName:M.appName,appId:M.appId,...E,onLogoClick:x,updateConfig:A},j=E.enableScaffolding?p.jsx(MH,{appName:M.appName,navigationItems:E.navigationItems,appBar:E.appBar,showAppBar:E.showAppBar,appBarHeight:E.appBarHeight,showThemeSwitcher:E.showThemeSwitcher,showPaletteSwitcher:E.showPaletteSwitcher,onLogoClick:x,children:t}):t,H=R?p.jsx(k7,{dataSource:R,children:j}):j,G=p.jsx(IH,{children:p.jsx(OH,{children:p.jsx(TH,{children:p.jsx("div",{className:`qwick-app ${e||""}`,style:r,children:p.jsx(Y7,{appId:M.appId,defaultTheme:M.defaultTheme,defaultPalette:M.defaultPalette,children:p.jsx($T.Provider,{value:F,children:p.jsx(eB,{children:H})})})})})})});return C?S.cloneElement(C,{},G):G},$H=({size:t=48,showBackground:e=!0,className:r="",style:n={}})=>p.jsxs("svg",{width:t,height:t,viewBox:"0 0 225 225",className:`qwick-icon ${r}`.trim(),style:n,role:"img","aria-label":"QwickApps Icon",children:[e&&p.jsx("rect",{width:"225",height:"225",rx:"48",fill:"var(--theme-surface)"}),p.jsx("g",{transform:"scale(0.9) translate(-5,-5)",children:p.jsxs("g",{transform:"translate(-128,-60)",children:[p.jsx("path",{className:"logo-first-part",fill:"#FE6D0F",d:"M0 0 C1.3480925 -0.00788544 1.3480925 -0.00788544 2.72341919 -0.01593018 C5.67419172 -0.02905871 8.62441792 -0.02041442 11.57519531 -0.01025391 C13.64251813 -0.0122774 15.70984025 -0.01519113 17.77716064 -0.01895142 C22.10443943 -0.02336572 26.43153199 -0.01697508 30.75878906 -0.00292969 C36.2773468 0.01411856 41.79546534 0.00434284 47.31400681 -0.01364708 C51.5831018 -0.02454577 55.85209467 -0.02101006 60.12119293 -0.0132637 C62.15435082 -0.01127624 64.18751828 -0.01366927 66.22066498 -0.02070236 C76.73689794 -0.04908929 86.57929633 -0.04924466 96.65332031 3.38818359 C97.54098083 3.67795074 98.42864136 3.9677179 99.34320068 4.26626587 C114.15399949 9.31896076 126.4675764 21.76744512 133.65332031 35.38818359 C137.44514211 43.9738112 139.81630642 51.43992278 139.7668457 60.84057617 C139.76699173 61.5728241 139.76713776 62.30507202 139.76728821 63.05950928 C139.76659444 65.46727515 139.75882723 67.87496257 139.75097656 70.28271484 C139.74911048 71.95708677 139.74768747 73.63145924 139.74668884 75.30583191 C139.74287867 79.7034558 139.73306121 84.10104644 139.72198486 88.49865723 C139.71173847 92.9898229 139.70718431 97.48099397 139.70214844 101.97216797 C139.69143757 110.77752174 139.6743792 119.58284852 139.65332031 128.38818359 C138.53702723 127.43704375 137.42154262 126.48495501 136.30639648 125.5324707 C135.68512375 125.002379 135.06385101 124.47228729 134.42375183 123.9261322 C132.20679827 122.00029626 130.09344729 119.97434276 127.96582031 117.95068359 C121.3544337 111.96606452 113.93765643 107.63396094 105.65332031 104.38818359 C105.64397461 103.07736816 105.63462891 101.76655273 105.625 100.41601562 C105.58487807 95.51415049 105.51905854 90.61289839 105.44580078 85.71142578 C105.41771934 83.59724858 105.39644155 81.4829689 105.38232422 79.36865234 C105.36071633 76.31473808 105.31397548 73.26203954 105.26269531 70.20849609 C105.26085236 68.80943527 105.26085236 68.80943527 105.25897217 67.3821106 C105.05613797 58.12249123 102.35361677 49.9326592 95.65332031 43.38818359 C93.37687152 41.83978825 91.12212389 40.64502905 88.65332031 39.38818359 C88.0702562 39.02808197 87.48719208 38.66798035 86.88645935 38.29696655 C83.71010797 37.00434036 80.90937194 37.11787995 77.4855957 37.09765625 C76.41412041 37.08758041 76.41412041 37.08758041 75.32099915 37.07730103 C72.96425383 37.05833326 70.60779341 37.05439768 68.25097656 37.05224609 C66.60957218 37.04581795 64.96816895 37.03908958 63.32676697 37.03207397 C59.88782087 37.02010475 56.44897522 37.01639285 53.01000977 37.01757812 C48.60705215 37.01778144 44.20473906 36.99046492 39.80193424 36.95603371 C36.41239981 36.93377976 33.02302096 36.92974009 29.63342094 36.93079758 C28.01032729 36.9284399 26.38722945 36.91960691 24.76420784 36.90413284 C22.49249412 36.88449971 20.22217644 36.89029871 17.95043945 36.90234375 C16.65900528 36.89949371 15.36757111 36.89664368 14.03700256 36.89370728 C10.0894619 37.47058336 8.4533178 38.60386481 5.65332031 41.38818359 C4.36488826 43.96504769 4.49328598 45.87037118 4.44799805 48.75585938 C4.42805283 49.87687042 4.4081076 50.99788147 4.38755798 52.15286255 C4.36248924 53.97477615 4.36248924 53.97477615 4.33691406 55.83349609 C4.31613297 57.07364471 4.29535187 58.31379333 4.27394104 59.59152222 C4.21954326 62.88930182 4.16931936 66.18711079 4.12109375 69.48498535 C4.07086797 72.84991002 4.01524033 76.21474503 3.95996094 79.57958984 C3.85188552 86.18238589 3.75285167 92.78523103 3.65332031 99.38818359 C-7.89667969 99.38818359 -19.44667969 99.38818359 -31.34667969 99.38818359 C-31.54722373 80.32312956 -31.54722373 80.32312956 -31.59082031 72.14990234 C-31.6206242 66.58894779 -31.65574998 61.02840778 -31.72387695 55.46777344 C-31.77850048 50.98085383 -31.80816368 46.4943792 -31.8210659 42.00715256 C-31.83025168 40.30161924 -31.84818881 38.59610823 -31.87532997 36.89076614 C-32.04228479 25.95844515 -31.41983501 17.49965078 -24.17089844 8.76708984 C-23.46578125 8.16767578 -22.76066406 7.56826172 -22.03417969 6.95068359 C-21.33679688 6.33322266 -20.63941406 5.71576172 -19.92089844 5.07958984 C-13.46479327 0.83756627 -7.52553047 -0.0549708 0 0 Z",transform:"translate(185.3466796875,71.61181640625)"}),p.jsx("path",{className:"logo-second-part",fill:"#03BBCA",d:"M0 0 C11.55 0 23.1 0 35 0 C35.04125 3.25875 35.0825 6.5175 35.125 9.875 C35.47125788 19.41754586 36.68077925 25.86440869 43.74900818 32.68862915 C50.89908532 38.23277376 58.35470598 37.77209826 66.97265625 37.5859375 C68.50677317 37.57472707 70.04091178 37.56619562 71.57505798 37.56021118 C75.58524366 37.53745715 79.59409585 37.47865487 83.60375977 37.4119873 C87.70635953 37.3502711 91.80917779 37.32313407 95.91210938 37.29296875 C103.94201372 37.2288942 111.97084033 37.12668322 120 37 C117.59324168 34.57863654 115.18359847 32.1601637 112.7734375 29.7421875 C111.75527954 28.71774536 111.75527954 28.71774536 110.71655273 27.67260742 C106.8829741 23.82970702 102.99745284 20.13165615 98.8515625 16.625 C95.05012274 13.28871531 91.43825451 9.70885787 88 6 C88 5.67 88 5.34 88 5 C110.75508023 4.37644173 110.75508023 4.37644173 121 8 C122.051875 8.35191406 123.10375 8.70382813 124.1875 9.06640625 C147.22737862 17.29881571 164.80240124 33.21278198 175.41943359 55.15429688 C179.68328916 64.37125249 183.15018908 73.71312925 183.09765625 83.95703125 C183.09443359 85.06884766 183.09121094 86.18066406 183.08789062 87.32617188 C183.07951172 88.47666016 183.07113281 89.62714844 183.0625 90.8125 C183.05798828 91.98232422 183.05347656 93.15214844 183.04882812 94.35742188 C183.0370693 97.23833358 183.02063426 100.11914044 183 103 C180.55229893 100.57810948 178.13689836 98.15012289 175.81640625 95.60546875 C164.49520711 83.46019619 148.63443632 75.12990963 131.85790539 74.44966316 C128.34721591 74.38623286 124.84006559 74.37663155 121.32896042 74.40841484 C118.45052331 74.43424814 115.57348925 74.42890466 112.69497681 74.41651917 C106.58815705 74.39596309 100.48178961 74.41534647 94.375 74.4375 C87.28101821 74.45873236 80.18749777 74.46298673 73.09352493 74.43699837 C70.28119532 74.43367673 67.46978403 74.45471435 64.65756226 74.47740173 C46.51926055 74.50804771 31.73862671 70.07462761 18.28125 57.27734375 C17.5284375 56.52582031 16.775625 55.77429688 16 55 C15.02546875 54.04287109 15.02546875 54.04287109 14.03125 53.06640625 C3.06105089 41.49477078 -0.55499727 26.82435381 -0.1875 11.3125 C-0.125625 7.579375 -0.06375 3.84625 0 0 Z",transform:"translate(154,171)"})]})})]}),BH=({icon:t,name:e,size:r="small",onClick:n,style:o,className:s,...l})=>{const c=(h="small")=>({tiny:20,small:32,medium:40,large:52,"extra-large":68})[h]||32,u=t||p.jsx($H,{}),f=S.isValidElement(u)?S.cloneElement(u,{size:u.props.size||c(r),style:{position:"relative",left:"25px",zIndex:999,...u.props.style}}):u;return p.jsx(yh,{name:e,size:r,image:f,imagePosition:"start",style:{cursor:n?"pointer":"default",zIndex:1e3,...o},className:s,onClick:n,...l})};function hk(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Hs=hk();function zH(t){Hs=t}const mk=/[&<>"']/,DH=new RegExp(mk.source,"g"),gk=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,FH=new RegExp(gk.source,"g"),HH={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},dC=t=>HH[t];function Sn(t,e){if(e){if(mk.test(t))return t.replace(DH,dC)}else if(gk.test(t))return t.replace(FH,dC);return t}const UH=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function yk(t){return t.replace(UH,(e,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}const VH=/(^|[^\[])\^/g;function sr(t,e){t=typeof t=="string"?t:t.source,e=e||"";const r={replace:(n,o)=>(o=o.source||o,o=o.replace(VH,"$1"),t=t.replace(n,o),r),getRegex:()=>new RegExp(t,e)};return r}const WH=/[^\w:]/g,qH=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function pC(t,e,r){if(t){let n;try{n=decodeURIComponent(yk(r)).replace(WH,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!qH.test(r)&&(r=QH(e,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const Kp={},GH=/^[^:]+:\/*[^/]*$/,XH=/^([^:]+:)[\s\S]*$/,KH=/^([^:]+:\/*[^/]*)[\s\S]*$/;function QH(t,e){Kp[" "+t]||(GH.test(t)?Kp[" "+t]=t+"/":Kp[" "+t]=uf(t,"/",!0)),t=Kp[" "+t];const r=t.indexOf(":")===-1;return e.substring(0,2)==="//"?r?e:t.replace(XH,"$1")+e:e.charAt(0)==="/"?r?e:t.replace(KH,"$1")+e:t+e}const _f={exec:function(){}};function fC(t,e){const r=t.replace(/\|/g,(s,l,c)=>{let u=!1,f=l;for(;--f>=0&&c[f]==="\\";)u=!u;return u?"|":" |"}),n=r.split(/ \|/);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function uf(t,e,r){const n=t.length;if(n===0)return"";let o=0;for(;o<n;){const s=t.charAt(n-o-1);if(s===e&&!r)o++;else if(s!==e&&r)o++;else break}return t.slice(0,n-o)}function YH(t,e){if(t.indexOf(e[1])===-1)return-1;const r=t.length;let n=0,o=0;for(;o<r;o++)if(t[o]==="\\")o++;else if(t[o]===e[0])n++;else if(t[o]===e[1]&&(n--,n<0))return o;return-1}function JH(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function hC(t,e){if(e<1)return"";let r="";for(;e>1;)e&1&&(r+=t),e>>=1,t+=t;return r+t}function mC(t,e,r,n){const o=e.href,s=e.title?Sn(e.title):null,l=t[1].replace(/\\([\[\]])/g,"$1");if(t[0].charAt(0)!=="!"){n.state.inLink=!0;const c={type:"link",raw:r,href:o,title:s,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,c}return{type:"image",raw:r,href:o,title:s,text:Sn(l)}}function ZH(t,e){const r=t.match(/^(\s+)(?:```)/);if(r===null)return e;const n=r[1];return e.split(`
416
+ `).map(o=>{const s=o.match(/^\s+/);if(s===null)return o;const[l]=s;return l.length>=n.length?o.slice(n.length):o}).join(`
417
+ `)}class hv{constructor(e){this.options=e||Hs}space(e){const r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){const r=this.rules.block.code.exec(e);if(r){const n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:uf(n,`
418
+ `)}}}fences(e){const r=this.rules.block.fences.exec(e);if(r){const n=r[0],o=ZH(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline._escapes,"$1"):r[2],text:o}}}heading(e){const r=this.rules.block.heading.exec(e);if(r){let n=r[2].trim();if(/#$/.test(n)){const o=uf(n,"#");(this.options.pedantic||!o||/ $/.test(o))&&(n=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:r[0]}}blockquote(e){const r=this.rules.block.blockquote.exec(e);if(r){const n=r[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(n);return this.lexer.state.top=o,{type:"blockquote",raw:r[0],tokens:s,text:n}}}list(e){let r=this.rules.block.list.exec(e);if(r){let n,o,s,l,c,u,f,h,v,g,y,w,x=r[1].trim();const C=x.length>1,R={type:"list",raw:"",ordered:C,start:C?+x.slice(0,-1):"",loose:!1,items:[]};x=C?`\\d{1,9}\\${x.slice(-1)}`:`\\${x}`,this.options.pedantic&&(x=C?x:"[*+-]");const P=new RegExp(`^( {0,3}${x})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(w=!1,!(!(r=P.exec(e))||this.rules.block.hr.test(e)));){if(n=r[0],e=e.substring(n.length),h=r[2].split(`
419
+ `,1)[0].replace(/^\t+/,E=>" ".repeat(3*E.length)),v=e.split(`
420
+ `,1)[0],this.options.pedantic?(l=2,y=h.trimLeft()):(l=r[2].search(/[^ ]/),l=l>4?1:l,y=h.slice(l),l+=r[1].length),u=!1,!h&&/^ *$/.test(v)&&(n+=v+`
421
+ `,e=e.substring(v.length+1),w=!0),!w){const E=new RegExp(`^ {0,${Math.min(3,l-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),I=new RegExp(`^ {0,${Math.min(3,l-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),A=new RegExp(`^ {0,${Math.min(3,l-1)}}(?:\`\`\`|~~~)`),F=new RegExp(`^ {0,${Math.min(3,l-1)}}#`);for(;e&&(g=e.split(`
422
+ `,1)[0],v=g,this.options.pedantic&&(v=v.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(A.test(v)||F.test(v)||E.test(v)||I.test(e)));){if(v.search(/[^ ]/)>=l||!v.trim())y+=`
423
+ `+v.slice(l);else{if(u||h.search(/[^ ]/)>=4||A.test(h)||F.test(h)||I.test(h))break;y+=`
424
+ `+v}!u&&!v.trim()&&(u=!0),n+=g+`
425
+ `,e=e.substring(g.length+1),h=v.slice(l)}}R.loose||(f?R.loose=!0:/\n *\n *$/.test(n)&&(f=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(y),o&&(s=o[0]!=="[ ] ",y=y.replace(/^\[[ xX]\] +/,""))),R.items.push({type:"list_item",raw:n,task:!!o,checked:s,loose:!1,text:y}),R.raw+=n}R.items[R.items.length-1].raw=n.trimRight(),R.items[R.items.length-1].text=y.trimRight(),R.raw=R.raw.trimRight();const M=R.items.length;for(c=0;c<M;c++)if(this.lexer.state.top=!1,R.items[c].tokens=this.lexer.blockTokens(R.items[c].text,[]),!R.loose){const E=R.items[c].tokens.filter(A=>A.type==="space"),I=E.length>0&&E.some(A=>/\n.*\n/.test(A.raw));R.loose=I}if(R.loose)for(c=0;c<M;c++)R.items[c].loose=!0;return R}}html(e){const r=this.rules.block.html.exec(e);if(r){const n={type:"html",raw:r[0],pre:!this.options.sanitizer&&(r[1]==="pre"||r[1]==="script"||r[1]==="style"),text:r[0]};if(this.options.sanitize){const o=this.options.sanitizer?this.options.sanitizer(r[0]):Sn(r[0]);n.type="paragraph",n.text=o,n.tokens=this.lexer.inline(o)}return n}}def(e){const r=this.rules.block.def.exec(e);if(r){const n=r[1].toLowerCase().replace(/\s+/g," "),o=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline._escapes,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:o,title:s}}}table(e){const r=this.rules.block.table.exec(e);if(r){const n={type:"table",header:fC(r[1]).map(o=>({text:o})),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
426
+ `):[]};if(n.header.length===n.align.length){n.raw=r[0];let o=n.align.length,s,l,c,u;for(s=0;s<o;s++)/^ *-+: *$/.test(n.align[s])?n.align[s]="right":/^ *:-+: *$/.test(n.align[s])?n.align[s]="center":/^ *:-+ *$/.test(n.align[s])?n.align[s]="left":n.align[s]=null;for(o=n.rows.length,s=0;s<o;s++)n.rows[s]=fC(n.rows[s],n.header.length).map(f=>({text:f}));for(o=n.header.length,l=0;l<o;l++)n.header[l].tokens=this.lexer.inline(n.header[l].text);for(o=n.rows.length,l=0;l<o;l++)for(u=n.rows[l],c=0;c<u.length;c++)u[c].tokens=this.lexer.inline(u[c].text);return n}}}lheading(e){const r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){const r=this.rules.block.paragraph.exec(e);if(r){const n=r[1].charAt(r[1].length-1)===`
427
+ `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){const r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:Sn(r[1])}}tag(e){const r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Sn(r[0]):r[0]}}link(e){const r=this.rules.inline.link.exec(e);if(r){const n=r[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const l=uf(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{const l=YH(r[2],"()");if(l>-1){const u=(r[0].indexOf("!")===0?5:4)+r[1].length+l;r[2]=r[2].substring(0,l),r[0]=r[0].substring(0,u).trim(),r[3]=""}}let o=r[2],s="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);l&&(o=l[1],s=l[3])}else s=r[3]?r[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(n)?o=o.slice(1):o=o.slice(1,-1)),mC(r,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},r[0],this.lexer)}}reflink(e,r){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let o=(n[2]||n[1]).replace(/\s+/g," ");if(o=r[o.toLowerCase()],!o){const s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return mC(n,o,n[0],this.lexer)}}emStrong(e,r,n=""){let o=this.rules.inline.emStrong.lDelim.exec(e);if(!o||o[3]&&n.match(/[\p{L}\p{N}]/u))return;const s=o[1]||o[2]||"";if(!s||s&&(n===""||this.rules.inline.punctuation.exec(n))){const l=o[0].length-1;let c,u,f=l,h=0;const v=o[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(v.lastIndex=0,r=r.slice(-1*e.length+l);(o=v.exec(r))!=null;){if(c=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!c)continue;if(u=c.length,o[3]||o[4]){f+=u;continue}else if((o[5]||o[6])&&l%3&&!((l+u)%3)){h+=u;continue}if(f-=u,f>0)continue;u=Math.min(u,u+f+h);const g=e.slice(0,l+o.index+(o[0].length-c.length)+u);if(Math.min(l,u)%2){const w=g.slice(1,-1);return{type:"em",raw:g,text:w,tokens:this.lexer.inlineTokens(w)}}const y=g.slice(2,-2);return{type:"strong",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(e){const r=this.rules.inline.code.exec(e);if(r){let n=r[2].replace(/\n/g," ");const o=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return o&&s&&(n=n.substring(1,n.length-1)),n=Sn(n,!0),{type:"codespan",raw:r[0],text:n}}}br(e){const r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){const r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e,r){const n=this.rules.inline.autolink.exec(e);if(n){let o,s;return n[2]==="@"?(o=Sn(this.options.mangle?r(n[1]):n[1]),s="mailto:"+o):(o=Sn(n[1]),s=o),{type:"link",raw:n[0],text:o,href:s,tokens:[{type:"text",raw:o,text:o}]}}}url(e,r){let n;if(n=this.rules.inline.url.exec(e)){let o,s;if(n[2]==="@")o=Sn(this.options.mangle?r(n[0]):n[0]),s="mailto:"+o;else{let l;do l=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(l!==n[0]);o=Sn(n[0]),n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:o,href:s,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e,r){const n=this.rules.inline.text.exec(e);if(n){let o;return this.lexer.state.inRawBlock?o=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Sn(n[0]):n[0]:o=Sn(this.options.smartypants?r(n[0]):n[0]),{type:"text",raw:n[0],text:o}}}}const bt={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:_f,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};bt._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;bt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;bt.def=sr(bt.def).replace("label",bt._label).replace("title",bt._title).getRegex();bt.bullet=/(?:[*+-]|\d{1,9}[.)])/;bt.listItemStart=sr(/^( *)(bull) */).replace("bull",bt.bullet).getRegex();bt.list=sr(bt.list).replace(/bull/g,bt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+bt.def.source+")").getRegex();bt._tag="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";bt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;bt.html=sr(bt.html,"i").replace("comment",bt._comment).replace("tag",bt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();bt.paragraph=sr(bt._paragraph).replace("hr",bt.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bt._tag).getRegex();bt.blockquote=sr(bt.blockquote).replace("paragraph",bt.paragraph).getRegex();bt.normal={...bt};bt.gfm={...bt.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};bt.gfm.table=sr(bt.gfm.table).replace("hr",bt.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bt._tag).getRegex();bt.gfm.paragraph=sr(bt._paragraph).replace("hr",bt.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",bt.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bt._tag).getRegex();bt.pedantic={...bt.normal,html:sr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",bt._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:_f,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:sr(bt.normal._paragraph).replace("hr",bt.hr).replace("heading",` *#{1,6} *[^
428
+ ]`).replace("lheading",bt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const at={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:_f,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:_f,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};at._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";at.punctuation=sr(at.punctuation).replace(/punctuation/g,at._punctuation).getRegex();at.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;at.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;at._comment=sr(bt._comment).replace("(?:-->|$)","-->").getRegex();at.emStrong.lDelim=sr(at.emStrong.lDelim).replace(/punct/g,at._punctuation).getRegex();at.emStrong.rDelimAst=sr(at.emStrong.rDelimAst,"g").replace(/punct/g,at._punctuation).getRegex();at.emStrong.rDelimUnd=sr(at.emStrong.rDelimUnd,"g").replace(/punct/g,at._punctuation).getRegex();at._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;at._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;at._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;at.autolink=sr(at.autolink).replace("scheme",at._scheme).replace("email",at._email).getRegex();at._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;at.tag=sr(at.tag).replace("comment",at._comment).replace("attribute",at._attribute).getRegex();at._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;at._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;at._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;at.link=sr(at.link).replace("label",at._label).replace("href",at._href).replace("title",at._title).getRegex();at.reflink=sr(at.reflink).replace("label",at._label).replace("ref",bt._label).getRegex();at.nolink=sr(at.nolink).replace("ref",bt._label).getRegex();at.reflinkSearch=sr(at.reflinkSearch,"g").replace("reflink",at.reflink).replace("nolink",at.nolink).getRegex();at.normal={...at};at.pedantic={...at.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:sr(/^!?\[(label)\]\((.*?)\)/).replace("label",at._label).getRegex(),reflink:sr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",at._label).getRegex()};at.gfm={...at.normal,escape:sr(at.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};at.gfm.url=sr(at.gfm.url,"i").replace("email",at.gfm._extended_email).getRegex();at.breaks={...at.gfm,br:sr(at.br).replace("{2,}","*").getRegex(),text:sr(at.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function eU(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function gC(t){let e="",r,n;const o=t.length;for(r=0;r<o;r++)n=t.charCodeAt(r),Math.random()>.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}class qa{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Hs,this.options.tokenizer=this.options.tokenizer||new hv,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={block:bt.normal,inline:at.normal};this.options.pedantic?(r.block=bt.pedantic,r.inline=at.pedantic):this.options.gfm&&(r.block=bt.gfm,this.options.breaks?r.inline=at.breaks:r.inline=at.gfm),this.tokenizer.rules=r}static get rules(){return{block:bt,inline:at}}static lex(e,r){return new qa(r).lex(e)}static lexInline(e,r){return new qa(r).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
429
+ `),this.blockTokens(e,this.tokens);let r;for(;r=this.inlineQueue.shift();)this.inlineTokens(r.src,r.tokens);return this.tokens}blockTokens(e,r=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(c,u,f)=>u+" ".repeat(f.length));let n,o,s,l;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(c=>(n=c.call({lexer:this},e,r))?(e=e.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&r.length>0?r[r.length-1].raw+=`
430
+ `:r.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
431
+ `+n.raw,o.text+=`
432
+ `+n.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
433
+ `+n.raw,o.text+=`
434
+ `+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),r.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startBlock){let c=1/0;const u=e.slice(1);let f;this.options.extensions.startBlock.forEach(function(h){f=h.call({lexer:this},u),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(s=e.substring(0,c+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s))){o=r[r.length-1],l&&o.type==="paragraph"?(o.raw+=`
435
+ `+n.raw,o.text+=`
436
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n),l=s.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&o.type==="text"?(o.raw+=`
437
+ `+n.raw,o.text+=`
438
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(e){const c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let n,o,s,l=e,c,u,f;if(this.tokens.links){const h=Object.keys(this.tokens.links);if(h.length>0)for(;(c=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)h.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,c.index)+"["+hC("a",c[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(c=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,c.index)+"["+hC("a",c[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(c=this.tokenizer.rules.inline.escapedEmSt.exec(l))!=null;)l=l.slice(0,c.index+c[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(u||(f=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(n=h.call({lexer:this},e,r))?(e=e.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(e,l,f)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(e,gC)){e=e.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,gC))){e=e.substring(n.raw.length),r.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startInline){let h=1/0;const v=e.slice(1);let g;this.options.extensions.startInline.forEach(function(y){g=y.call({lexer:this},v),typeof g=="number"&&g>=0&&(h=Math.min(h,g))}),h<1/0&&h>=0&&(s=e.substring(0,h+1))}if(n=this.tokenizer.inlineText(s,eU)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(f=n.raw.slice(-1)),u=!0,o=r[r.length-1],o&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(e){const h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}}class mv{constructor(e){this.options=e||Hs}code(e,r,n){const o=(r||"").match(/\S*/)[0];if(this.options.highlight){const s=this.options.highlight(e,o);s!=null&&s!==e&&(n=!0,e=s)}return e=e.replace(/\n$/,"")+`
439
+ `,o?'<pre><code class="'+this.options.langPrefix+Sn(o)+'">'+(n?e:Sn(e,!0))+`</code></pre>
440
+ `:"<pre><code>"+(n?e:Sn(e,!0))+`</code></pre>
441
+ `}blockquote(e){return`<blockquote>
442
+ ${e}</blockquote>
443
+ `}html(e){return e}heading(e,r,n,o){if(this.options.headerIds){const s=this.options.headerPrefix+o.slug(n);return`<h${r} id="${s}">${e}</h${r}>
444
+ `}return`<h${r}>${e}</h${r}>
445
+ `}hr(){return this.options.xhtml?`<hr/>
446
+ `:`<hr>
447
+ `}list(e,r,n){const o=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+o+s+`>
448
+ `+e+"</"+o+`>
449
+ `}listitem(e){return`<li>${e}</li>
450
+ `}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>
451
+ `}table(e,r){return r&&(r=`<tbody>${r}</tbody>`),`<table>
452
+ <thead>
453
+ `+e+`</thead>
454
+ `+r+`</table>
455
+ `}tablerow(e){return`<tr>
456
+ ${e}</tr>
457
+ `}tablecell(e,r){const n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+e+`</${n}>
458
+ `}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,r,n){if(e=pC(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let o='<a href="'+e+'"';return r&&(o+=' title="'+r+'"'),o+=">"+n+"</a>",o}image(e,r,n){if(e=pC(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let o=`<img src="${e}" alt="${n}"`;return r&&(o+=` title="${r}"`),o+=this.options.xhtml?"/>":">",o}text(e){return e}}class vk{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,r,n){return""+n}image(e,r,n){return""+n}br(){return""}}class bk{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,r){let n=e,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[e];do o++,n=e+"-"+o;while(this.seen.hasOwnProperty(n))}return r||(this.seen[e]=o,this.seen[n]=0),n}slug(e,r={}){const n=this.serialize(e);return this.getNextSafeSlug(n,r.dryrun)}}class Ga{constructor(e){this.options=e||Hs,this.options.renderer=this.options.renderer||new mv,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new vk,this.slugger=new bk}static parse(e,r){return new Ga(r).parse(e)}static parseInline(e,r){return new Ga(r).parseInline(e)}parse(e,r=!0){let n="",o,s,l,c,u,f,h,v,g,y,w,x,C,R,P,M,E,I,A;const F=e.length;for(o=0;o<F;o++){if(y=e[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[y.type]&&(A=this.options.extensions.renderers[y.type].call({parser:this},y),A!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(y.type))){n+=A||"";continue}switch(y.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{n+=this.renderer.heading(this.parseInline(y.tokens),y.depth,yk(this.parseInline(y.tokens,this.textRenderer)),this.slugger);continue}case"code":{n+=this.renderer.code(y.text,y.lang,y.escaped);continue}case"table":{for(v="",h="",c=y.header.length,s=0;s<c;s++)h+=this.renderer.tablecell(this.parseInline(y.header[s].tokens),{header:!0,align:y.align[s]});for(v+=this.renderer.tablerow(h),g="",c=y.rows.length,s=0;s<c;s++){for(f=y.rows[s],h="",u=f.length,l=0;l<u;l++)h+=this.renderer.tablecell(this.parseInline(f[l].tokens),{header:!1,align:y.align[l]});g+=this.renderer.tablerow(h)}n+=this.renderer.table(v,g);continue}case"blockquote":{g=this.parse(y.tokens),n+=this.renderer.blockquote(g);continue}case"list":{for(w=y.ordered,x=y.start,C=y.loose,c=y.items.length,g="",s=0;s<c;s++)P=y.items[s],M=P.checked,E=P.task,R="",P.task&&(I=this.renderer.checkbox(M),C?P.tokens.length>0&&P.tokens[0].type==="paragraph"?(P.tokens[0].text=I+" "+P.tokens[0].text,P.tokens[0].tokens&&P.tokens[0].tokens.length>0&&P.tokens[0].tokens[0].type==="text"&&(P.tokens[0].tokens[0].text=I+" "+P.tokens[0].tokens[0].text)):P.tokens.unshift({type:"text",text:I}):R+=I),R+=this.parse(P.tokens,C),g+=this.renderer.listitem(R,E,M);n+=this.renderer.list(g,w,x);continue}case"html":{n+=this.renderer.html(y.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(y.tokens));continue}case"text":{for(g=y.tokens?this.parseInline(y.tokens):y.text;o+1<F&&e[o+1].type==="text";)y=e[++o],g+=`
459
+ `+(y.tokens?this.parseInline(y.tokens):y.text);n+=r?this.renderer.paragraph(g):g;continue}default:{const j='Token with "'+y.type+'" type was not found.';if(this.options.silent){console.error(j);return}else throw new Error(j)}}}return n}parseInline(e,r){r=r||this.renderer;let n="",o,s,l;const c=e.length;for(o=0;o<c;o++){if(s=e[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]&&(l=this.options.extensions.renderers[s.type].call({parser:this},s),l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type))){n+=l||"";continue}switch(s.type){case"escape":{n+=r.text(s.text);break}case"html":{n+=r.html(s.text);break}case"link":{n+=r.link(s.href,s.title,this.parseInline(s.tokens,r));break}case"image":{n+=r.image(s.href,s.title,s.text);break}case"strong":{n+=r.strong(this.parseInline(s.tokens,r));break}case"em":{n+=r.em(this.parseInline(s.tokens,r));break}case"codespan":{n+=r.codespan(s.text);break}case"br":{n+=r.br();break}case"del":{n+=r.del(this.parseInline(s.tokens,r));break}case"text":{n+=r.text(s.text);break}default:{const u='Token with "'+s.type+'" type was not found.';if(this.options.silent){console.error(u);return}else throw new Error(u)}}}return n}}class Lf{constructor(e){this.options=e||Hs}preprocess(e){return e}postprocess(e){return e}}hs(Lf,"passThroughHooks",new Set(["preprocess","postprocess"]));function tU(t,e,r){return n=>{if(n.message+=`
460
+ Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+Sn(n.message+"",!0)+"</pre>";if(e)return Promise.resolve(o);if(r){r(null,o);return}return o}if(e)return Promise.reject(n);if(r){r(n);return}throw n}}function xk(t,e){return(r,n,o)=>{typeof n=="function"&&(o=n,n=null);const s={...n};n={...vt.defaults,...s};const l=tU(n.silent,n.async,o);if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(JH(n),n.hooks&&(n.hooks.options=n),o){const c=n.highlight;let u;try{n.hooks&&(r=n.hooks.preprocess(r)),u=t(r,n)}catch(v){return l(v)}const f=function(v){let g;if(!v)try{n.walkTokens&&vt.walkTokens(u,n.walkTokens),g=e(u,n),n.hooks&&(g=n.hooks.postprocess(g))}catch(y){v=y}return n.highlight=c,v?l(v):o(null,g)};if(!c||c.length<3||(delete n.highlight,!u.length))return f();let h=0;vt.walkTokens(u,function(v){v.type==="code"&&(h++,setTimeout(()=>{c(v.text,v.lang,function(g,y){if(g)return f(g);y!=null&&y!==v.text&&(v.text=y,v.escaped=!0),h--,h===0&&f()})},0))}),h===0&&f();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then(c=>t(c,n)).then(c=>n.walkTokens?Promise.all(vt.walkTokens(c,n.walkTokens)).then(()=>c):c).then(c=>e(c,n)).then(c=>n.hooks?n.hooks.postprocess(c):c).catch(l);try{n.hooks&&(r=n.hooks.preprocess(r));const c=t(r,n);n.walkTokens&&vt.walkTokens(c,n.walkTokens);let u=e(c,n);return n.hooks&&(u=n.hooks.postprocess(u)),u}catch(c){return l(c)}}}function vt(t,e,r){return xk(qa.lex,Ga.parse)(t,e,r)}vt.options=vt.setOptions=function(t){return vt.defaults={...vt.defaults,...t},zH(vt.defaults),vt};vt.getDefaults=hk;vt.defaults=Hs;vt.use=function(...t){const e=vt.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(r=>{const n={...r};if(n.async=vt.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const s=e.renderers[o.name];s?e.renderers[o.name]=function(...l){let c=o.renderer.apply(this,l);return c===!1&&(c=s.apply(this,l)),c}:e.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[o.level]?e[o.level].unshift(o.tokenizer):e[o.level]=[o.tokenizer],o.start&&(o.level==="block"?e.startBlock?e.startBlock.push(o.start):e.startBlock=[o.start]:o.level==="inline"&&(e.startInline?e.startInline.push(o.start):e.startInline=[o.start]))}o.childTokens&&(e.childTokens[o.name]=o.childTokens)}),n.extensions=e),r.renderer){const o=vt.defaults.renderer||new mv;for(const s in r.renderer){const l=o[s];o[s]=(...c)=>{let u=r.renderer[s].apply(o,c);return u===!1&&(u=l.apply(o,c)),u}}n.renderer=o}if(r.tokenizer){const o=vt.defaults.tokenizer||new hv;for(const s in r.tokenizer){const l=o[s];o[s]=(...c)=>{let u=r.tokenizer[s].apply(o,c);return u===!1&&(u=l.apply(o,c)),u}}n.tokenizer=o}if(r.hooks){const o=vt.defaults.hooks||new Lf;for(const s in r.hooks){const l=o[s];Lf.passThroughHooks.has(s)?o[s]=c=>{if(vt.defaults.async)return Promise.resolve(r.hooks[s].call(o,c)).then(f=>l.call(o,f));const u=r.hooks[s].call(o,c);return l.call(o,u)}:o[s]=(...c)=>{let u=r.hooks[s].apply(o,c);return u===!1&&(u=l.apply(o,c)),u}}n.hooks=o}if(r.walkTokens){const o=vt.defaults.walkTokens;n.walkTokens=function(s){let l=[];return l.push(r.walkTokens.call(this,s)),o&&(l=l.concat(o.call(this,s))),l}}vt.setOptions(n)})};vt.walkTokens=function(t,e){let r=[];for(const n of t)switch(r=r.concat(e.call(vt,n)),n.type){case"table":{for(const o of n.header)r=r.concat(vt.walkTokens(o.tokens,e));for(const o of n.rows)for(const s of o)r=r.concat(vt.walkTokens(s.tokens,e));break}case"list":{r=r.concat(vt.walkTokens(n.items,e));break}default:vt.defaults.extensions&&vt.defaults.extensions.childTokens&&vt.defaults.extensions.childTokens[n.type]?vt.defaults.extensions.childTokens[n.type].forEach(function(o){r=r.concat(vt.walkTokens(n[o],e))}):n.tokens&&(r=r.concat(vt.walkTokens(n.tokens,e)))}return r};vt.parseInline=xk(qa.lexInline,Ga.parseInline);vt.Parser=Ga;vt.parser=Ga.parse;vt.Renderer=mv;vt.TextRenderer=vk;vt.Lexer=qa;vt.lexer=qa.lex;vt.Tokenizer=hv;vt.Slugger=bk;vt.Hooks=Lf;vt.parse=vt;vt.options;vt.setOptions;vt.use;vt.walkTokens;vt.parseInline;Ga.parse;qa.lex;let Zl=class extends lr{};_([B(),z({field_type:$.TEXTAREA,label:"Markdown Content",description:"Markdown content to be transformed into React components",placeholder:`# Enter Markdown content...
461
+
462
+ **Bold text** and *italic text*.`}),V(),ie(),D("design:type",String)],Zl.prototype,"children",void 0);_([B(),z({field_type:$.CHECKBOX,label:"Sanitize HTML",description:"Whether to sanitize HTML output for security"}),V(),_t(),D("design:type",Boolean)],Zl.prototype,"sanitize",void 0);_([B(),z({field_type:$.TEXT,label:"Placeholder",description:"Fallback content to display when Markdown is empty",placeholder:"No content available"}),V(),ie(),D("design:type",String)],Zl.prototype,"placeholder",void 0);Zl=_([Nt("Markdown","1.0.0")],Zl);var rU=Zl;const nU=[{selector:"pre",transform:(t,e)=>{var s;const r=t.querySelector("code");if(!r)return null;const o={tagName:"Code",version:"1.0.0",data:{language:((s=Array.from(r.classList).find(l=>l.startsWith("language-")))==null?void 0:s.replace("language-",""))||"text",showCopy:!0,showLineNumbers:!1,children:r.textContent||""}};return p.jsx(be,{sx:{my:1.5},children:Yr.deserialize(o)},e)}},{selector:"code",transform:t=>(t.closest("pre"),null)}],oU=t=>({gfm:!0,breaks:!1,pedantic:!1,sanitize:!1,smartypants:!1,renderer:new vt.Renderer,...t});function gv({children:t="",htmlTransformConfig:e,sanitize:r=!0,sanitizeOptions:n,placeholder:o,component:s="div",markedOptions:l,...c}){const{styleProps:u,htmlProps:f,restProps:h}=Tn(c);if(gv[_n]=!0,!t||!t.trim())return o?p.jsx(be,{component:s,...f,...u,...h,sx:{opacity:.6,fontStyle:"italic",...u.sx},children:o}):null;try{const v=oU(l),g=vt(t,v),y=e||{rules:nU,sanitize:r,sanitizeOptions:n};return p.jsx(_o,{transformConfig:y,sanitize:r,sanitizeOptions:n,component:s,...f,...u,...h,children:g})}catch(v){return console.error("Error processing Markdown content:",v),p.jsxs(be,{component:s,...f,...u,...h,sx:{p:2,border:"1px solid orange",borderRadius:1,backgroundColor:"rgba(255, 165, 0, 0.1)",...u.sx},children:[p.jsx("strong",{children:"Markdown Processing Error:"})," ",v instanceof Error?v.message:"Unknown error",p.jsx(go,{html:t,placeholder:"Failed to process Markdown"})]})}}class Ju extends zs{getComponentSpecificProps(){return{children:this.props.children,sanitize:this.props.sanitize,placeholder:this.props.placeholder}}renderView(){const{...e}=this.props;return p.jsx(gv,{...e})}renderWithDataBinding(){return p.jsx(iU,{...this.props})}static registerPatternHandlers(e){e.hasPattern("div.markdown-content")||e.registerPattern("div.markdown-content",Ju.transformMarkdownDiv),e.hasPattern("[data-markdown]")||e.registerPattern("[data-markdown]",Ju.transformDataMarkdown)}static transformMarkdownDiv(e){const r=e.getAttribute("data-sanitize")!=="false",n=e.getAttribute("data-placeholder");return{tagName:"Markdown",props:{children:e.textContent||"",sanitize:r,placeholder:n||void 0}}}static transformDataMarkdown(e){const r=e.getAttribute("data-markdown")||e.textContent,n=e.getAttribute("data-sanitize")!=="false",o=e.getAttribute("data-placeholder");return{tagName:"Markdown",props:{children:r,sanitize:n,placeholder:o||void 0}}}}Ju.tagName="Markdown";Ju.version="1.0.0";function iU(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:s,...l}=Oi(e,n,rU.getSchema(),{...r});return o?p.jsx(be,{sx:{p:2,textAlign:"center",opacity:.6},children:"Loading Markdown content..."}):s?(console.error("Error loading Markdown content:",s),p.jsxs(be,{sx:{p:2,border:"1px solid orange",borderRadius:1,backgroundColor:"rgba(255, 165, 0, 0.1)"},children:[p.jsx("strong",{children:"Error Loading Markdown:"})," ",s.message]})):p.jsx(gv,{...l})}class aU{constructor(){this.measurements=[],this.isEnabled=!0,this.isEnabled&&this.initializeListeners()}initializeListeners(){typeof window>"u"||(window.addEventListener("theme-changed",e=>{var r;this.measureThemeSwitch("theme",(r=e.detail)==null?void 0:r.theme)}),window.addEventListener("palette-changed",e=>{var r;this.measureThemeSwitch("palette",(r=e.detail)==null?void 0:r.palette)}))}measureThemeSwitch(e,r){if(!this.isEnabled||typeof window>"u"||typeof performance>"u")return;const n=performance.now();requestAnimationFrame(()=>{requestAnimationFrame(()=>{const s=performance.now()-n,l={type:e,value:r,duration:s,timestamp:new Date().toISOString()};this.measurements.push(l),this.measurements.length>50&&this.measurements.shift(),s>100?console.warn(`Slow ${e} switch detected:`,l):console.log(`${e} switch performance:`,`${s.toFixed(2)}ms`)})})}getStatistics(){if(!this.isEnabled||this.measurements.length===0)return null;const e=this.measurements.map(s=>s.duration),r=e.reduce((s,l)=>s+l,0)/e.length,n=Math.min(...e),o=Math.max(...e);return{totalMeasurements:this.measurements.length,averageDuration:r.toFixed(2),minDuration:n.toFixed(2),maxDuration:o.toFixed(2),recentMeasurements:this.measurements.slice(-10)}}logStatistics(){if(!this.isEnabled)return;const e=this.getStatistics();e&&(console.group("Theme Performance Statistics"),console.log("Total measurements:",e.totalMeasurements),console.log("Average duration:",e.averageDuration+"ms"),console.log("Min duration:",e.minDuration+"ms"),console.log("Max duration:",e.maxDuration+"ms"),console.log("Recent measurements:",e.recentMeasurements),console.groupEnd())}reset(){this.measurements=[]}}new aU;var yC;(function(t){t.POST="POST",t.PUT="PUT",t.PATCH="PATCH"})(yC||(yC={}));var vC;(function(t){t.NAVIGATE="navigate",t.SUBMIT="submit",t.RESET="reset",t.CANCEL="cancel"})(vC||(vC={}));class yv{constructor(e){this.app=Object.freeze({...e.app}),this.build=Object.freeze({...e.build}),this.pwa=Object.freeze({...e.pwa}),this.ui=Object.freeze({...e.ui}),this.copyright=Object.freeze({...e.copyright}),Object.freeze(this)}get viteConfig(){return{server:{port:this.build.port,host:!0},preview:{port:this.build.previewPort,host:!0},build:{outDir:this.build.outputDir},base:this.build.base,publicDir:"public",define:{__APP_NAME__:JSON.stringify(this.app.name),__APP_ID__:JSON.stringify(this.app.id),__APP_VERSION__:JSON.stringify(this.app.version)}}}get pwaManifest(){return{name:this.app.name,short_name:this.app.shortName,description:this.app.description,start_url:this.pwa.startUrl,display:this.pwa.display,orientation:this.pwa.orientation,theme_color:this.pwa.themeColor,background_color:this.pwa.backgroundColor,scope:this.pwa.scope,icons:[{src:"pwa-192x192.png",sizes:"192x192",type:"image/png"},{src:"pwa-512x512.png",sizes:"512x512",type:"image/png"}]}}toJSON(){return{app:this.app,build:this.build,pwa:this.pwa,ui:this.ui,copyright:this.copyright}}with(e){return new yv({app:{...this.app,...e.app},build:{...this.build,...e.build},pwa:{...this.pwa,...e.pwa},ui:{...this.ui,...e.ui},copyright:{...this.copyright,...e.copyright}})}}let uu,du;try{typeof window>"u"&&typeof process<"u"&&(uu=require("fs"),du=require("path"))}catch{}class vv{constructor(){this.config={app:{},build:{},pwa:{},ui:{},copyright:{}},this.options={}}static create(){return new vv}withConfig(e){if(!uu||!du)return typeof window>"u"&&console.warn("Warning: File system operations not available in browser environment"),this;try{const r=du.resolve(e),n=JSON.parse(uu.readFileSync(r,"utf-8"));n.app&&Object.assign(this.config.app,n.app),n.build&&Object.assign(this.config.build,n.build),n.pwa&&Object.assign(this.config.pwa,n.pwa),n.ui&&Object.assign(this.config.ui,n.ui),n.copyright&&Object.assign(this.config.copyright,n.copyright)}catch{console.warn(`Warning: Could not load config file: ${e}`)}return this}withOptions(e){return this.options={...this.options,...e},this}withName(e){return this.config.app.name=e,this}withId(e){return this.config.app.id=e,this}withShortName(e){return this.config.app.shortName=e,this}withDescription(e){return this.config.app.description=e,this}withVersion(e){return this.config.app.version=e,this}withLogo(e){return this.config.app.logo=e,this}withAuthor(e){return this.config.app.author=e,this}withHomepage(e){return this.config.app.homepage=e,this}withPort(e){return this.config.build.port=e,this}withPreviewPort(e){return this.config.build.previewPort=e,this}withOutputDir(e){return this.config.build.outputDir=e,this}withPublicPath(e){return this.config.build.publicPath=e,this}withBase(e){return this.config.build.base=e,this}withThemeColor(e){return this.config.pwa.themeColor=e,this}withBackgroundColor(e){return this.config.pwa.backgroundColor=e,this}withStartUrl(e){return this.config.pwa.startUrl=e,this}withScope(e){return this.config.pwa.scope=e,this}withDisplay(e){return this.config.pwa.display=e,this}withOrientation(e){return this.config.pwa.orientation=e,this}withDefaultTheme(e){return this.config.ui.defaultTheme=e,this}withDefaultPalette(e){return this.config.ui.defaultPalette=e,this}withScaffolding(e){return this.config.ui.enableScaffolding=e,this}withThemeSwitcher(e){return this.config.ui.showThemeSwitcher=e,this}withPaletteSwitcher(e){return this.config.ui.showPaletteSwitcher=e,this}withCopyright(e,r,n){return this.config.copyright.year=e,this.config.copyright.author=r,n!==void 0&&(this.config.copyright.text=n),this}withCopyrightYear(e){return this.config.copyright.year=e,this}withCopyrightAuthor(e){return this.config.copyright.author=e,this}withCopyrightText(e){return this.config.copyright.text=e,this}build(){const e=this.validate();if(e.warnings.forEach(n=>{console.warn(`⚠️ AppConfig: ${n}`)}),!e.isValid)throw new Error(`AppConfig validation failed:
463
+ ${e.errors.map(n=>` - ${n}`).join(`
464
+ `)}`);const r=this.applyDefaults();return new yv(r)}validate(){const e=[],r=[];if(this.config.app.name||r.push("App name is required"),this.config.app.id||r.push("App ID is required"),this.config.copyright.year&&this.config.copyright.year!=="auto"&&(!Number.isInteger(this.config.copyright.year)||this.config.copyright.year<1900)&&e.push('Copyright year should be "auto" or a valid year >= 1900'),this.config.app.logo&&!this.options.skipValidation&&uu&&du){const n=du.resolve(this.options.baseDir||process.cwd(),this.config.app.logo);uu.existsSync(n)||e.push(`Logo file not found: ${this.config.app.logo} (will use default)`)}return this.config.build.port!==void 0&&(!Number.isInteger(this.config.build.port)||this.config.build.port<1||this.config.build.port>65535)&&r.push("Port must be a valid integer between 1 and 65535"),this.config.build.previewPort!==void 0&&(!Number.isInteger(this.config.build.previewPort)||this.config.build.previewPort<1||this.config.build.previewPort>65535)&&r.push("Preview port must be a valid integer between 1 and 65535"),this.config.pwa.themeColor&&!this.isValidColor(this.config.pwa.themeColor)&&e.push(`Theme color may not be valid: ${this.config.pwa.themeColor}`),this.config.pwa.backgroundColor&&!this.isValidColor(this.config.pwa.backgroundColor)&&e.push(`Background color may not be valid: ${this.config.pwa.backgroundColor}`),{warnings:e,errors:r,isValid:r.length===0}}applyDefaults(){const e={id:this.config.app.id,name:this.config.app.name,shortName:this.config.app.shortName||this.config.app.name,description:this.config.app.description||this.config.app.name,version:this.config.app.version||"1.0.0",logo:this.config.app.logo||"/favicon.ico",author:this.config.app.author,homepage:this.config.app.homepage},r={port:this.config.build.port||3e3,previewPort:this.config.build.previewPort||4173,outputDir:this.config.build.outputDir||"dist",publicPath:this.config.build.publicPath||"/",base:this.config.build.base||"/"},n={themeColor:this.config.pwa.themeColor||"#000000",backgroundColor:this.config.pwa.backgroundColor||"#ffffff",startUrl:this.config.pwa.startUrl||"/",scope:this.config.pwa.scope||"/",display:this.config.pwa.display||"standalone",orientation:this.config.pwa.orientation},o={defaultTheme:this.config.ui.defaultTheme||"light",defaultPalette:this.config.ui.defaultPalette||"default",enableScaffolding:this.config.ui.enableScaffolding??!0,showThemeSwitcher:this.config.ui.showThemeSwitcher??!1,showPaletteSwitcher:this.config.ui.showPaletteSwitcher??!1},s={year:this.config.copyright.year||"auto",author:this.config.copyright.author||e.author||e.name,text:this.config.copyright.text};return{app:e,build:r,pwa:n,ui:o,copyright:s}}isValidColor(e){return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e)||/^(black|white|red|green|blue|yellow|orange|purple|pink|gray|grey)$/i.test(e)||/^rgba?\([^)]+\)$/i.test(e)}}let na=class extends mt{};_([B(),z({field_type:$.TEXT,label:"Field Label",description:"Label/title for the choice input field",placeholder:"Options"}),V(),ie(),D("design:type",String)],na.prototype,"label",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Options",description:"Array of option values (HTML content supported) - JSON array format"}),V(),rn(),ie({each:!0}),D("design:type",Array)],na.prototype,"options",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Whether the input fields are disabled"}),V(),_t(),D("design:type",Boolean)],na.prototype,"disabled",void 0);_([B(),z({field_type:$.TEXT,label:"Placeholder Text",description:"Placeholder text for option inputs",placeholder:"Enter option text. HTML formatting supported."}),V(),ie(),D("design:type",String)],na.prototype,"placeholder",void 0);_([B(),z({field_type:$.TEXT,label:"Option Label Prefix",description:'Prefix for each option label (e.g., "Option", "Choice")',placeholder:"Option"}),V(),ie(),D("design:type",String)],na.prototype,"optionLabelPrefix",void 0);_([B({defaultValue:2}),z({field_type:$.NUMBER,label:"Input Rows",description:"Number of rows for each option input field"}),V(),wr(),D("design:type",Number)],na.prototype,"rows",void 0);_([B(),z({field_type:$.TEXT,label:"Add Button Text",description:"Text for the add option button",placeholder:"Add Option"}),V(),ie(),D("design:type",String)],na.prototype,"addButtonText",void 0);na=_([Nt("ChoiceInputField","1.0.0")],na);let oa=class extends WT{};_([B(),z({field_type:$.TEXTAREA,label:"Content",description:"Raw code text. If provided, React children are ignored in serialization.",placeholder:"Enter code content..."}),V(),ie(),D("design:type",String)],oa.prototype,"content",void 0);_([B(),z({field_type:$.TEXT,label:"Language",description:"Programming language for syntax highlighting (e.g., typescript, javascript, python)",placeholder:"javascript"}),V(),ie(),D("design:type",String)],oa.prototype,"language",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Show Copy Button",description:"Display a copy-to-clipboard button"}),V(),_t(),D("design:type",Boolean)],oa.prototype,"showCopy",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Show Line Numbers",description:"Display line numbers alongside the code"}),V(),_t(),D("design:type",Boolean)],oa.prototype,"showLineNumbers",void 0);_([B(),z({field_type:$.TEXT,label:"Title",description:"Optional title or filename to display above the code",placeholder:"File name or title"}),V(),ie(),D("design:type",String)],oa.prototype,"title",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Wrap Long Lines",description:"Allow long lines to wrap instead of scrolling horizontally"}),V(),_t(),D("design:type",Boolean)],oa.prototype,"wrapLines",void 0);_([B(),z({field_type:$.TEXT,label:"Background Color",description:"Custom background color override",placeholder:"#f5f5f5"}),V(),ie(),D("design:type",String)],oa.prototype,"codeBackground",void 0);oa=_([Nt("Code","1.0.0")],oa);let Yn=class extends ea{};_([B(),z({field_type:$.NUMBER,label:"Span",description:"Number of columns to span (1-12)",placeholder:"12"}),V(),wr(),He([1,2,3,4,5,6,7,8,9,10,11,12]),D("design:type",Number)],Yn.prototype,"span",void 0);_([B(),z({field_type:$.NUMBER,label:"XS (Mobile)",description:"Columns on extra small screens (1-12)",placeholder:"12"}),V(),wr(),He([1,2,3,4,5,6,7,8,9,10,11,12]),D("design:type",Number)],Yn.prototype,"xs",void 0);_([B(),z({field_type:$.NUMBER,label:"SM (Tablet)",description:"Columns on small screens (1-12)",placeholder:"6"}),V(),wr(),He([1,2,3,4,5,6,7,8,9,10,11,12]),D("design:type",Number)],Yn.prototype,"sm",void 0);_([B(),z({field_type:$.NUMBER,label:"MD (Desktop)",description:"Columns on medium screens (1-12)",placeholder:"4"}),V(),wr(),He([1,2,3,4,5,6,7,8,9,10,11,12]),D("design:type",Number)],Yn.prototype,"md",void 0);_([B(),z({field_type:$.NUMBER,label:"LG (Large Desktop)",description:"Columns on large screens (1-12)",placeholder:"3"}),V(),wr(),He([1,2,3,4,5,6,7,8,9,10,11,12]),D("design:type",Number)],Yn.prototype,"lg",void 0);_([B(),z({field_type:$.NUMBER,label:"XL (Extra Large)",description:"Columns on extra large screens (1-12)",placeholder:"2"}),V(),wr(),He([1,2,3,4,5,6,7,8,9,10,11,12]),D("design:type",Number)],Yn.prototype,"xl",void 0);_([B(),z({field_type:$.TEXT,label:"Background",description:'Background color or theme color (e.g., "primary.main", "#ffffff")',placeholder:"transparent"}),V(),ie(),D("design:type",String)],Yn.prototype,"background",void 0);_([B(),z({field_type:$.TEXT,label:"Padding",description:'Internal spacing (e.g., "medium", "16px", "1rem")',placeholder:"medium"}),V(),ie(),D("design:type",String)],Yn.prototype,"padding",void 0);_([B(),z({field_type:$.TEXT,label:"Margin",description:'External spacing (e.g., "small", "8px", "0.5rem")',placeholder:"0"}),V(),ie(),D("design:type",String)],Yn.prototype,"margin",void 0);_([B(),z({field_type:$.TEXT,label:"Height",description:'Cell height (e.g., "200px", "medium")',placeholder:"auto"}),V(),ie(),D("design:type",String)],Yn.prototype,"height",void 0);_([B(),z({field_type:$.TEXT,label:"Width",description:'Cell width (e.g., "100%", "300px")',placeholder:"100%"}),V(),ie(),D("design:type",String)],Yn.prototype,"width",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class",description:"Additional CSS class names",placeholder:"custom-cell-class"}),V(),ie(),D("design:type",String)],Yn.prototype,"className",void 0);Yn=_([Nt("GridCell","1.0.0")],Yn);let Bo=class extends ea{};_([B(),z({field_type:$.NUMBER,label:"Columns",description:"Number of equal-width columns for auto-distribution"}),V(),wr(),to(1),D("design:type",Number)],Bo.prototype,"columns",void 0);_([B({defaultValue:"small"}),z({field_type:$.SELECT,label:"Spacing",description:"Spacing between grid items"}),V(),ie(),He(["tiny","small","medium","large","huge"]),D("design:type",String)],Bo.prototype,"spacing",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Equal Height",description:"Make all grid items the same height"}),V(),_t(),D("design:type",Boolean)],Bo.prototype,"equalHeight",void 0);_([B(),z({field_type:$.TEXT,label:"Height",description:'Grid container height (e.g., "400px", "50vh", "medium")',placeholder:"auto"}),V(),ie(),D("design:type",String)],Bo.prototype,"height",void 0);_([B(),z({field_type:$.TEXT,label:"Width",description:'Grid container width (e.g., "100%", "800px", "large")',placeholder:"100%"}),V(),ie(),D("design:type",String)],Bo.prototype,"width",void 0);_([B(),z({field_type:$.TEXT,label:"Min Height",description:"Minimum grid container height",placeholder:"auto"}),V(),ie(),D("design:type",String)],Bo.prototype,"minHeight",void 0);_([B(),z({field_type:$.TEXT,label:"Min Width",description:"Minimum grid container width",placeholder:"auto"}),V(),ie(),D("design:type",String)],Bo.prototype,"minWidth",void 0);_([B(),z({field_type:$.TEXT,label:"Max Height",description:"Maximum grid container height",placeholder:"none"}),V(),ie(),D("design:type",String)],Bo.prototype,"maxHeight",void 0);_([B(),z({field_type:$.TEXT,label:"Max Width",description:"Maximum grid container width",placeholder:"none"}),V(),ie(),D("design:type",String)],Bo.prototype,"maxWidth",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class",description:"Additional CSS class names",placeholder:"custom-grid-class"}),V(),ie(),D("design:type",String)],Bo.prototype,"className",void 0);Bo=_([Nt("GridLayout","1.0.0")],Bo);let zo=class extends ea{};_([B(),z({field_type:$.TEXT,label:"Title",description:"Main headline text",placeholder:"Enter hero title..."}),ie(),D("design:type",String)],zo.prototype,"title",void 0);_([B(),z({field_type:$.TEXT,label:"Subtitle",description:"Subtitle or description text",placeholder:"Enter subtitle..."}),V(),ie(),D("design:type",String)],zo.prototype,"subtitle",void 0);_([B(),z({field_type:$.IMAGE,label:"Background Image",description:"Background image URL",placeholder:"https://..."}),V(),hh(),D("design:type",String)],zo.prototype,"backgroundImage",void 0);_([B(),z({field_type:$.TEXT,label:"Background Gradient",description:"Background gradient CSS value",placeholder:"linear-gradient(...)"}),V(),ie(),D("design:type",String)],zo.prototype,"backgroundGradient",void 0);_([B({defaultValue:"default"}),z({field_type:$.SELECT,label:"Background Color",description:"Background color theme variant",validation:{options:[{label:"Default",value:"default"},{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Surface",value:"surface"}]}}),V(),He(["default","primary","secondary","surface"]),D("design:type",String)],zo.prototype,"backgroundColor",void 0);_([B({type:ct.ARRAY}),z({field_type:$.REPEATER,label:"Actions",description:"Action buttons for the hero section"}),V(),rn(),eo({each:!0}),ro(()=>Kn),D("design:type",Array)],zo.prototype,"actions",void 0);_([B({defaultValue:"center"}),z({field_type:$.SELECT,label:"Text Alignment",description:"Text alignment",validation:{options:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}]}}),V(),He(["left","center","right"]),D("design:type",String)],zo.prototype,"textAlign",void 0);_([B({defaultValue:"medium"}),z({field_type:$.SELECT,label:"Block Height",description:"Block height preset",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"},{label:"Viewport",value:"viewport"}]}}),V(),He(["small","medium","large","viewport"]),D("design:type",String)],zo.prototype,"blockHeight",void 0);_([B(),z({field_type:$.NUMBER,label:"Overlay Opacity",description:"Custom overlay opacity (0-1) when using background images",validation:{min:0,max:1}}),V(),wr(),to(0),Bs(1),D("design:type",Number)],zo.prototype,"overlayOpacity",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-hero-class"}),V(),ie(),D("design:type",String)],zo.prototype,"className",void 0);zo=_([Nt("HeroBlock","1.0.0")],zo);let Gr=class extends mt{};_([B({dataType:ct.STRING}),z({field_type:$.IMAGE,label:"Image Source",description:"Image source URL or path",placeholder:"https://example.com/image.jpg"}),V(),ie(),D("design:type",String)],Gr.prototype,"src",void 0);_([B({dataType:ct.STRING}),z({field_type:$.TEXT,label:"Alt Text",description:"Alternative text for accessibility (required for images with src)",placeholder:"Describe the image for screen readers"}),V(),ie(),D("design:type",String)],Gr.prototype,"alt",void 0);_([B({dataType:ct.NUMBER}),z({field_type:$.NUMBER,label:"Width",description:"Image width in pixels (optional)",placeholder:"300"}),V(),wr(),D("design:type",Number)],Gr.prototype,"width",void 0);_([B({dataType:ct.NUMBER}),z({field_type:$.NUMBER,label:"Height",description:"Image height in pixels (optional)",placeholder:"200"}),V(),wr(),D("design:type",Number)],Gr.prototype,"height",void 0);_([B({defaultValue:"cover",dataType:ct.STRING}),z({field_type:$.SELECT,label:"Object Fit",description:"How the image should be resized to fit its container",validation:{options:[{label:"Fill",value:"fill"},{label:"Contain",value:"contain"},{label:"Cover",value:"cover"},{label:"None",value:"none"},{label:"Scale Down",value:"scale-down"}]}}),V(),ie(),He(["fill","contain","cover","none","scale-down"]),D("design:type",String)],Gr.prototype,"objectFit",void 0);_([B({defaultValue:"center",dataType:ct.STRING}),z({field_type:$.SELECT,label:"Object Position",description:"Position of the image within its container",validation:{options:[{label:"Center",value:"center"},{label:"Top",value:"top"},{label:"Bottom",value:"bottom"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Top Left",value:"top-left"},{label:"Top Right",value:"top-right"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Right",value:"bottom-right"}]}}),V(),ie(),He(["center","top","bottom","left","right","top-left","top-right","bottom-left","bottom-right"]),D("design:type",String)],Gr.prototype,"objectPosition",void 0);_([B({defaultValue:"lazy",dataType:ct.STRING}),z({field_type:$.SELECT,label:"Loading",description:"Image loading behavior",validation:{options:[{label:"Lazy (load when visible)",value:"lazy"},{label:"Eager (load immediately)",value:"eager"}]}}),V(),ie(),He(["lazy","eager"]),D("design:type",String)],Gr.prototype,"loading",void 0);_([B({dataType:ct.STRING}),z({field_type:$.TEXT,label:"Title",description:"Image title (tooltip text)",placeholder:"Tooltip text on hover"}),V(),ie(),D("design:type",String)],Gr.prototype,"title",void 0);_([B({defaultValue:!1,dataType:ct.BOOLEAN}),z({field_type:$.BOOLEAN,label:"Draggable",description:"Allow the image to be dragged"}),V(),_t(),D("design:type",Boolean)],Gr.prototype,"draggable",void 0);_([B({dataType:ct.STRING}),z({field_type:$.TEXT,label:"Border Radius",description:'CSS border radius (e.g., "8px", "50%", "1rem")',placeholder:"8px"}),V(),ie(),D("design:type",String)],Gr.prototype,"borderRadius",void 0);_([B({defaultValue:!1,dataType:ct.BOOLEAN}),z({field_type:$.BOOLEAN,label:"Show Loading State",description:"Display a loading placeholder while the image loads"}),V(),_t(),D("design:type",Boolean)],Gr.prototype,"showLoading",void 0);_([B({defaultValue:!1,dataType:ct.BOOLEAN}),z({field_type:$.BOOLEAN,label:"Show Error State",description:"Display an error message if the image fails to load"}),V(),_t(),D("design:type",Boolean)],Gr.prototype,"showError",void 0);_([B({dataType:ct.STRING}),z({field_type:$.TEXT,label:"Fallback Image",description:"Fallback image URL to use if the main image fails to load",placeholder:"https://example.com/fallback.jpg"}),V(),ie(),D("design:type",String)],Gr.prototype,"fallbackSrc",void 0);_([B({dataType:ct.STRING}),z({field_type:$.TEXTAREA,label:"Responsive Sizes",description:"Responsive image sizes attribute for optimized loading",placeholder:"(max-width: 768px) 100vw, 50vw"}),V(),ie(),D("design:type",String)],Gr.prototype,"sizes",void 0);_([B({dataType:ct.STRING}),z({field_type:$.TEXTAREA,label:"Source Set",description:"Source set for responsive images (comma-separated)",placeholder:"image-320w.jpg 320w, image-640w.jpg 640w, image-1280w.jpg 1280w"}),V(),ie(),D("design:type",String)],Gr.prototype,"srcSet",void 0);_([B({dataType:ct.STRING}),z({field_type:$.TEXTAREA,label:"Loading Placeholder",description:"Custom loading placeholder content (for advanced use)",placeholder:"Custom loading content..."}),V(),D("design:type",Object)],Gr.prototype,"loadingPlaceholder",void 0);_([B({dataType:ct.STRING}),z({field_type:$.TEXTAREA,label:"Error Placeholder",description:"Custom error placeholder content (for advanced use)",placeholder:"Custom error content..."}),V(),D("design:type",Object)],Gr.prototype,"errorPlaceholder",void 0);Gr=_([Nt("Image","1.0.0")],Gr);let Os=class extends ea{};_([B(),z({field_type:$.TEXT,label:"Background Color",description:"Background color (CSS color, theme path, or palette color)",placeholder:"#ffffff or primary.main"}),V(),ie(),D("design:type",String)],Os.prototype,"background",void 0);_([B(),z({field_type:$.TEXT,label:"Text Color",description:"Text color (CSS color, theme path, or palette color)",placeholder:"#000000 or text.primary"}),V(),ie(),D("design:type",String)],Os.prototype,"color",void 0);_([B(),z({field_type:$.SELECT,label:"Section Padding",description:"Vertical padding/spacing for the section",validation:{options:[{value:"none",label:"None"},{value:"tiny",label:"Tiny (8px)"},{value:"small",label:"Small (16px)"},{value:"medium",label:"Medium (32px)"},{value:"large",label:"Large (64px)"},{value:"extra-large",label:"Extra Large (96px)"}]}}),V(),He(["none","tiny","small","medium","large","extra-large"]),D("design:type",String)],Os.prototype,"padding",void 0);_([B(),z({field_type:$.SELECT,label:"Content Max Width",description:"Maximum width for the content container",validation:{options:[{value:"xs",label:"Extra Small (444px)"},{value:"sm",label:"Small (600px)"},{value:"md",label:"Medium (900px)"},{value:"lg",label:"Large (1200px)"},{value:"xl",label:"Extra Large (1536px)"},{value:"false",label:"Full Width"}]}}),V(),He(["xs","sm","md","lg","xl","false"]),D("design:type",String)],Os.prototype,"contentMaxWidth",void 0);_([B(),z({field_type:$.SELECT,label:"HTML Element",description:"HTML element type to use for the section",validation:{options:[{value:"section",label:"Section"},{value:"div",label:"Div"},{value:"article",label:"Article"},{value:"main",label:"Main"}]}}),V(),He(["section","div","article","main"]),D("design:type",String)],Os.prototype,"component",void 0);Os=_([Nt("Section","1.0.0")],Os);let wo=class extends mt{};_([B(),z({field_type:$.TEXT,label:"Field Label",description:"The label displayed for the text input field",placeholder:"Enter field label..."}),ie(),D("design:type",String)],wo.prototype,"label",void 0);_([B(),z({field_type:$.TEXT,label:"Value",description:"Current field value",placeholder:"Enter value..."}),V(),ie(),D("design:type",String)],wo.prototype,"value",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Required",description:"Whether the field is required"}),V(),_t(),D("design:type",Boolean)],wo.prototype,"required",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Whether the field is disabled"}),V(),_t(),D("design:type",Boolean)],wo.prototype,"disabled",void 0);_([B(),z({field_type:$.TEXT,label:"Error Message",description:"Error message to display if validation fails",placeholder:"Enter error message..."}),V(),ie(),D("design:type",String)],wo.prototype,"error",void 0);_([B(),z({field_type:$.TEXT,label:"Helper Text",description:"Helper text to guide the user",placeholder:"Enter helper text..."}),V(),ie(),D("design:type",String)],wo.prototype,"helperText",void 0);_([B(),z({field_type:$.TEXT,label:"Placeholder",description:"Placeholder text shown when field is empty",placeholder:"Enter placeholder text..."}),V(),ie(),D("design:type",String)],wo.prototype,"placeholder",void 0);_([B(),z({field_type:$.TEXT,label:"Input Type",description:"HTML input type (text, email, number, password, etc.)",placeholder:"text"}),V(),ie(),D("design:type",String)],wo.prototype,"type",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Multiline",description:"Whether the field supports multiple lines (textarea)"}),V(),_t(),D("design:type",Boolean)],wo.prototype,"multiline",void 0);_([B(),z({field_type:$.NUMBER,label:"Rows",description:"Number of rows for multiline fields"}),V(),wr(),D("design:type",Number)],wo.prototype,"rows",void 0);_([B(),z({field_type:$.NUMBER,label:"Max Rows",description:"Maximum number of rows for multiline fields"}),V(),wr(),D("design:type",Number)],wo.prototype,"maxRows",void 0);wo=_([Nt("TextInputField","1.0.0")],wo);let Br=class extends lr{};_([B({dataType:ct.STRING}),z({field_type:$.TEXTAREA,label:"Text Content",description:"The text content to display",placeholder:"Enter your text content here..."}),V(),ie(),D("design:type",String)],Br.prototype,"content",void 0);_([B({defaultValue:"body1",dataType:ct.STRING}),z({field_type:$.SELECT,label:"Typography Variant",description:"Typography variant that determines font size, weight, and line height",validation:{options:[{label:"Heading 1",value:"h1"},{label:"Heading 2",value:"h2"},{label:"Heading 3",value:"h3"},{label:"Heading 4",value:"h4"},{label:"Heading 5",value:"h5"},{label:"Heading 6",value:"h6"},{label:"Subtitle 1",value:"subtitle1"},{label:"Subtitle 2",value:"subtitle2"},{label:"Body 1",value:"body1"},{label:"Body 2",value:"body2"},{label:"Button",value:"button"},{label:"Caption",value:"caption"},{label:"Overline",value:"overline"}]}}),V(),ie(),He(["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline"]),D("design:type",String)],Br.prototype,"variant",void 0);_([B({defaultValue:"inherit",dataType:ct.STRING}),z({field_type:$.SELECT,label:"Text Color",description:"Color variant for the text",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Text Primary",value:"textPrimary"},{label:"Text Secondary",value:"textSecondary"},{label:"Error",value:"error"},{label:"Warning",value:"warning"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Inherit",value:"inherit"}]}}),V(),ie(),He(["primary","secondary","textPrimary","textSecondary","error","warning","info","success","inherit"]),D("design:type",String)],Br.prototype,"color",void 0);_([B({defaultValue:"inherit",dataType:ct.STRING}),z({field_type:$.SELECT,label:"Text Alignment",description:"How to align the text horizontally",validation:{options:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"},{label:"Justify",value:"justify"},{label:"Inherit",value:"inherit"}]}}),V(),ie(),He(["left","center","right","justify","inherit"]),D("design:type",String)],Br.prototype,"align",void 0);_([B({defaultValue:"p",dataType:ct.STRING}),z({field_type:$.SELECT,label:"HTML Element",description:"The HTML element to render (affects semantics and accessibility)",validation:{options:[{label:"Paragraph (p)",value:"p"},{label:"Span",value:"span"},{label:"Div",value:"div"},{label:"Heading 1 (h1)",value:"h1"},{label:"Heading 2 (h2)",value:"h2"},{label:"Heading 3 (h3)",value:"h3"},{label:"Heading 4 (h4)",value:"h4"},{label:"Heading 5 (h5)",value:"h5"},{label:"Heading 6 (h6)",value:"h6"},{label:"Label",value:"label"},{label:"Legend",value:"legend"}]}}),V(),ie(),He(["p","span","div","h1","h2","h3","h4","h5","h6","label","legend"]),D("design:type",String)],Br.prototype,"component",void 0);_([B({defaultValue:"inherit",dataType:ct.STRING}),z({field_type:$.SELECT,label:"Font Weight",description:"The weight (thickness) of the font",validation:{options:[{label:"Inherit",value:"inherit"},{label:"Lighter",value:"lighter"},{label:"Normal",value:"normal"},{label:"Bold",value:"bold"},{label:"Bolder",value:"bolder"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}]}}),V(),ie(),He(["inherit","lighter","normal","bold","bolder","100","200","300","400","500","600","700","800","900"]),D("design:type",String)],Br.prototype,"fontWeight",void 0);_([B({defaultValue:"none",dataType:ct.STRING}),z({field_type:$.SELECT,label:"Text Decoration",description:"Text decoration style",validation:{options:[{label:"None",value:"none"},{label:"Underline",value:"underline"},{label:"Overline",value:"overline"},{label:"Line Through",value:"line-through"}]}}),V(),ie(),He(["none","underline","overline","line-through"]),D("design:type",String)],Br.prototype,"textDecoration",void 0);_([B({defaultValue:"none",dataType:ct.STRING}),z({field_type:$.SELECT,label:"Text Transform",description:"How to transform the text case",validation:{options:[{label:"None",value:"none"},{label:"Capitalize",value:"capitalize"},{label:"Uppercase",value:"uppercase"},{label:"Lowercase",value:"lowercase"},{label:"Inherit",value:"inherit"}]}}),V(),ie(),He(["none","capitalize","uppercase","lowercase","inherit"]),D("design:type",String)],Br.prototype,"textTransform",void 0);_([B({defaultValue:!1,dataType:ct.BOOLEAN}),z({field_type:$.BOOLEAN,label:"No Wrap",description:"Prevent text from wrapping to multiple lines"}),V(),_t(),D("design:type",Boolean)],Br.prototype,"noWrap",void 0);_([B({defaultValue:!1,dataType:ct.BOOLEAN}),z({field_type:$.BOOLEAN,label:"Paragraph Mode",description:"Apply paragraph spacing and formatting"}),V(),_t(),D("design:type",Boolean)],Br.prototype,"paragraph",void 0);_([B({defaultValue:!1,dataType:ct.BOOLEAN}),z({field_type:$.BOOLEAN,label:"Gutter Bottom",description:"Add margin bottom for spacing (useful for headings)"}),V(),_t(),D("design:type",Boolean)],Br.prototype,"gutterBottom",void 0);_([B({dataType:ct.STRING}),z({field_type:$.TEXT,label:"Font Size",description:'Custom font size (overrides variant sizing, e.g., "16px", "1.2rem")',placeholder:"16px"}),V(),ie(),D("design:type",String)],Br.prototype,"fontSize",void 0);_([B({dataType:ct.STRING}),z({field_type:$.TEXT,label:"Line Height",description:'Custom line height (e.g., "1.5", "24px", "150%")',placeholder:"1.5"}),V(),ie(),D("design:type",String)],Br.prototype,"lineHeight",void 0);_([B({dataType:ct.STRING}),z({field_type:$.TEXT,label:"Letter Spacing",description:'Custom letter spacing (e.g., "0.1em", "1px")',placeholder:"0.1em"}),V(),ie(),D("design:type",String)],Br.prototype,"letterSpacing",void 0);_([B({dataType:ct.STRING}),z({field_type:$.TEXT,label:"Font Family",description:'Custom font family (e.g., "Arial, sans-serif")',placeholder:"Arial, sans-serif"}),V(),ie(),D("design:type",String)],Br.prototype,"fontFamily",void 0);_([B({dataType:ct.STRING}),z({field_type:$.TEXTAREA,label:"Custom Color",description:"Custom text color (CSS color value, overrides color variant)",placeholder:"#333333 or rgb(51, 51, 51)"}),V(),ie(),D("design:type",String)],Br.prototype,"customColor",void 0);_([B({dataType:ct.STRING}),z({field_type:$.TEXTAREA,label:"Max Width",description:'Maximum width for the text (e.g., "300px", "50%")',placeholder:"300px"}),V(),ie(),D("design:type",String)],Br.prototype,"maxWidth",void 0);_([B({dataType:ct.STRING}),z({field_type:$.TEXTAREA,label:"Rich Content",description:"Rich text content with React elements (for advanced use)",placeholder:"Rich content..."}),V(),D("design:type",Object)],Br.prototype,"children",void 0);Br=_([Nt("Text","1.0.0")],Br);let zr=class extends lr{};_([B({defaultValue:"light"}),z({field_type:$.SELECT,label:"Print Theme",description:"Theme mode to use when printing",validation:{options:[{label:"Light",value:"light"},{label:"Dark",value:"dark"}]}}),V(),He(["light","dark"]),D("design:type",String)],zr.prototype,"theme",void 0);_([B({defaultValue:"default"}),z({field_type:$.SELECT,label:"Print Palette",description:"Color palette to use for print output",validation:{options:[{label:"Default",value:"default"},{label:"Autumn",value:"autumn"},{label:"Cosmic",value:"cosmic"},{label:"Ocean",value:"ocean"},{label:"Spring",value:"spring"},{label:"Winter",value:"winter"}]}}),V(),ie(),D("design:type",String)],zr.prototype,"palette",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Hide Scaffolding",description:"Hide app scaffolding (navigation, headers) when printing"}),V(),_t(),D("design:type",Boolean)],zr.prototype,"hideScaffolding",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Hide Interactive Elements",description:"Hide buttons and interactive elements when printing"}),V(),_t(),D("design:type",Boolean)],zr.prototype,"hideInteractiveElements",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Optimize For Monochrome",description:"Optimize design for black and white printing"}),V(),_t(),D("design:type",Boolean)],zr.prototype,"optimizeForMonochrome",void 0);_([B(),z({field_type:$.TEXT,label:"Print Title",description:"Custom title to show when printing (optional)",placeholder:"Document Title"}),V(),ie(),D("design:type",String)],zr.prototype,"printTitle",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Print Date",description:"Include print date and time in printed output"}),V(),_t(),D("design:type",Boolean)],zr.prototype,"showPrintDate",void 0);_([B(),z({field_type:$.TEXT,label:"Print Header",description:"Custom header content for printed pages (HTML string or React component)",placeholder:"<div>Custom header content...</div>"}),V(),D("design:type",Object)],zr.prototype,"printHeader",void 0);_([B(),z({field_type:$.TEXT,label:"Print Header (First Page)",description:"Different header for the first page only (overrides main header on page 1)",placeholder:"<div>First page header...</div>"}),V(),D("design:type",Object)],zr.prototype,"printHeaderFirstPage",void 0);_([B(),z({field_type:$.TEXT,label:"Print Footer",description:"Custom footer content for printed pages (HTML string or React component)",placeholder:"<div>Custom footer content...</div>"}),V(),D("design:type",Object)],zr.prototype,"printFooter",void 0);_([B(),z({field_type:$.TEXT,label:"Print Footer (First Page)",description:"Different footer for the first page only (overrides main footer on page 1)",placeholder:"<div>First page footer...</div>"}),V(),D("design:type",Object)],zr.prototype,"printFooterFirstPage",void 0);_([B({defaultValue:"12mm"}),z({field_type:$.SELECT,label:"Page Margins",description:"Print page margins",validation:{options:[{label:"Compact (6mm)",value:"6mm"},{label:"Standard (12mm)",value:"12mm"},{label:"Large (20mm)",value:"20mm"},{label:"Formal (25mm)",value:"25mm"}]}}),V(),ie(),D("design:type",String)],zr.prototype,"pageMargins",void 0);_([B({defaultValue:"60px"}),z({field_type:$.TEXT,label:"Print Header Height",description:"Height allocated for print header (CSS units: px, mm, etc.)",placeholder:"60px"}),V(),ie(),D("design:type",String)],zr.prototype,"printHeaderHeight",void 0);_([B({defaultValue:"40px"}),z({field_type:$.TEXT,label:"Print Footer Height",description:"Height allocated for print footer (CSS units: px, mm, etc.)",placeholder:"40px"}),V(),ie(),D("design:type",String)],zr.prototype,"printFooterHeight",void 0);_([B(),z({field_type:$.TEXT,label:"Print Background",description:"CSS background for all printed pages (color, gradient, or image)",placeholder:"linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"}),V(),ie(),D("design:type",String)],zr.prototype,"printBackground",void 0);_([B(),z({field_type:$.TEXT,label:"Print Background (First Page)",description:"Different background for the first page only",placeholder:"url(/logo-watermark.png) no-repeat center, #ffffff"}),V(),ie(),D("design:type",String)],zr.prototype,"printBackgroundFirstPage",void 0);zr=_([Nt("PrintConfig","1.0.0")],zr);let tn=class extends mt{};_([B(),z({field_type:$.TEXT,label:"Page Slug",description:'URL-friendly page identifier (e.g., "about-us")',placeholder:"page-slug"}),V(),ie(),D("design:type",String)],tn.prototype,"slug",void 0);_([B(),z({field_type:$.TEXT,label:"Page Name",description:"Human-readable page name",placeholder:"About Us"}),V(),ie(),D("design:type",String)],tn.prototype,"name",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Page Description",description:"Description of the page content (used for SEO)",placeholder:"Brief description of this page..."}),V(),ie(),D("design:type",String)],tn.prototype,"description",void 0);_([B(),z({field_type:$.TEXT,label:"Page Title",description:"HTML title tag content (defaults to name if not provided)",placeholder:"Page Title | Site Name"}),V(),ie(),D("design:type",String)],tn.prototype,"title",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Meta Keywords",description:"SEO keywords (comma-separated)",placeholder:"keyword1, keyword2, keyword3"}),V(),ie(),D("design:type",String)],tn.prototype,"metaKeywords",void 0);_([B(),z({field_type:$.TEXT,label:"Meta Author",description:"Page author information",placeholder:"Author Name"}),V(),ie(),D("design:type",String)],tn.prototype,"metaAuthor",void 0);_([B(),z({field_type:$.URL,label:"Canonical URL",description:"Canonical URL for SEO (optional)",placeholder:"https://example.com/page"}),V(),ie(),D("design:type",String)],tn.prototype,"canonicalUrl",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Page Content",description:"Main page content - can include React components and HTML"}),V(),D("design:type",Object)],tn.prototype,"children",void 0);_([B(),z({field_type:$.FORM,label:"Print Configuration",description:"Configuration for print mode behavior"}),V(),eo(),ro(()=>zr),D("design:type",zr)],tn.prototype,"printConfig",void 0);_([B(),z({field_type:$.TEXT,label:"Layout Template",description:"Layout template identifier to use for this page",placeholder:"default, fullwidth, sidebar, etc."}),V(),ie(),D("design:type",String)],tn.prototype,"layout",void 0);_([B(),z({field_type:$.TEXT,label:"Page Icon",description:"Icon identifier for page (used in navigation)",placeholder:"home, about, contact"}),V(),ie(),D("design:type",String)],tn.prototype,"icon",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Requires Authentication",description:"Whether this page requires user authentication"}),V(),D("design:type",Boolean)],tn.prototype,"requiresAuth",void 0);_([B(),z({field_type:$.TEXT,label:"Required Roles",description:"Comma-separated list of roles required to access this page",placeholder:"admin, user, moderator"}),V(),ie(),D("design:type",String)],tn.prototype,"requiredRoles",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show in Navigation",description:"Whether to include this page in navigation menus"}),V(),D("design:type",Boolean)],tn.prototype,"showInNavigation",void 0);_([B({defaultValue:0}),z({field_type:$.NUMBER,label:"Navigation Priority",description:"Priority in navigation (lower numbers appear first)"}),V(),D("design:type",Number)],tn.prototype,"navigationPriority",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Indexable",description:"Whether search engines should index this page"}),V(),D("design:type",Boolean)],tn.prototype,"indexable",void 0);tn=_([Nt("PageTemplate","1.0.0")],tn);const sU=vv.create().withName("Control Panel").withId("com.qwickapps.control-panel").withVersion("1.0.0").withDefaultTheme("dark").withDefaultPalette("cosmic").withThemeSwitcher(!0).withPaletteSwitcher(!0).withDisplay("standalone").build(),wk=S.createContext(null);function lU({initialWidgets:t=[],children:e}){const[r,n]=S.useState(t.map(u=>({...u,visible:u.visible!==!1,priority:u.priority??100}))),o=S.useCallback(u=>{n(f=>f.some(v=>v.id===u.id)?f.map(v=>v.id===u.id?{...u,visible:u.visible!==!1,priority:u.priority??100}:v):[...f,{...u,visible:u.visible!==!1,priority:u.priority??100}])},[]),s=S.useCallback(u=>{n(f=>f.filter(h=>h.id!==u))},[]),l=S.useCallback((u,f)=>{n(h=>h.map(v=>v.id===u?{...v,visible:f??!v.visible}:v))},[]),c=S.useCallback(()=>r.filter(u=>u.visible!==!1).sort((u,f)=>(u.priority??100)-(f.priority??100)),[r]);return p.jsx(wk.Provider,{value:{widgets:r,registerWidget:o,unregisterWidget:s,toggleWidget:l,getVisibleWidgets:c},children:e})}function cU(){const t=S.useContext(wk);if(!t)throw new Error("useDashboardWidgets must be used within a DashboardWidgetProvider");return t}function uU(){const{getVisibleWidgets:t}=cU(),e=t();return e.length===0?null:p.jsx(p.Fragment,{children:e.map(r=>p.jsxs(be,{sx:{mt:4},children:[r.title&&p.jsx(je,{variant:"h6",sx:{mb:2,color:"var(--theme-text-primary)"},children:r.title}),r.component]},r.id))})}const dU=S.createContext(null);function pU(){const t=S.useContext(dU);if(!t)throw new Error("useWidgetComponentRegistry must be used within a WidgetComponentRegistryProvider");return t}class fU{constructor(e=""){hs(this,"baseUrl");this.baseUrl=e}setBaseUrl(e){this.baseUrl=e}async detectFeatures(){const[e,r,n]=await Promise.all([this.checkEndpoint("/api/users"),this.checkEndpoint("/api/bans"),this.checkEndpoint("/api/entitlements/available")]);let o=!0;if(n)try{o=(await this.getEntitlementsStatus()).readonly}catch{}return{users:e,bans:r,entitlements:n,entitlementsReadonly:o}}async checkEndpoint(e){try{return(await fetch(`${this.baseUrl}${e}`,{method:"HEAD"})).status!==404}catch{return!1}}async getUsers(e={}){const r=new URLSearchParams;e.limit&&r.set("limit",e.limit.toString()),e.page&&r.set("page",e.page.toString()),e.search&&r.set("search",e.search);const n=await fetch(`${this.baseUrl}/api/users?${r}`);if(!n.ok)throw new Error(`Users request failed: ${n.statusText}`);return n.json()}async getUserById(e){const r=await fetch(`${this.baseUrl}/api/users/${e}`);if(!r.ok)throw new Error(`User request failed: ${r.statusText}`);return r.json()}async getBans(){const e=await fetch(`${this.baseUrl}/api/bans`);if(!e.ok)throw new Error(`Bans request failed: ${e.statusText}`);return e.json()}async banUser(e,r,n){const o=await fetch(`${this.baseUrl}/api/bans`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,reason:r,expiresAt:n})});if(!o.ok){const s=await o.json().catch(()=>({}));throw new Error(s.error||`Ban request failed: ${o.statusText}`)}}async unbanUser(e){const r=await fetch(`${this.baseUrl}/api/bans/${encodeURIComponent(e)}`,{method:"DELETE"});if(!r.ok)throw new Error(`Unban request failed: ${r.statusText}`)}async checkBan(e){const r=await fetch(`${this.baseUrl}/api/bans/check/${encodeURIComponent(e)}`);if(!r.ok)throw new Error(`Ban check failed: ${r.statusText}`);return r.json()}async getEntitlements(e){const r=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}`);if(!r.ok)throw new Error(`Entitlements request failed: ${r.statusText}`);return r.json()}async refreshEntitlements(e){const r=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}/refresh`,{method:"POST"});if(!r.ok)throw new Error(`Entitlements refresh failed: ${r.statusText}`);return r.json()}async checkEntitlement(e,r){const n=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}/check/${encodeURIComponent(r)}`);if(!n.ok)throw new Error(`Entitlement check failed: ${n.statusText}`);return n.json()}async getAvailableEntitlements(){const e=await fetch(`${this.baseUrl}/api/entitlements/available`);if(!e.ok)throw new Error(`Available entitlements request failed: ${e.statusText}`);return(await e.json()).entitlements}async grantEntitlement(e,r){const n=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({entitlement:r})});if(!n.ok){const o=await n.json().catch(()=>({}));throw new Error(o.error||`Grant entitlement failed: ${n.statusText}`)}}async revokeEntitlement(e,r){const n=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}/${encodeURIComponent(r)}`,{method:"DELETE"});if(!n.ok)throw new Error(`Revoke entitlement failed: ${n.statusText}`)}async invalidateEntitlementCache(e){const r=await fetch(`${this.baseUrl}/api/entitlements/cache/${encodeURIComponent(e)}`,{method:"DELETE"});if(!r.ok)throw new Error(`Cache invalidation failed: ${r.statusText}`)}async getEntitlementsStatus(){const e=await fetch(`${this.baseUrl}/api/entitlements/status`);if(!e.ok)throw new Error(`Entitlements status request failed: ${e.statusText}`);return e.json()}async getHealth(){const e=await fetch(`${this.baseUrl}/api/health`);if(!e.ok)throw new Error(`Health check failed: ${e.statusText}`);return e.json()}async getInfo(){const e=await fetch(`${this.baseUrl}/api/info`);if(!e.ok)throw new Error(`Info request failed: ${e.statusText}`);return e.json()}async getDiagnostics(){const e=await fetch(`${this.baseUrl}/api/diagnostics`);if(!e.ok)throw new Error(`Diagnostics request failed: ${e.statusText}`);return e.json()}async getConfig(){const e=await fetch(`${this.baseUrl}/api/config`);if(!e.ok)throw new Error(`Config request failed: ${e.statusText}`);return e.json()}async getLogs(e={}){const r=new URLSearchParams;e.source&&r.set("source",e.source),e.level&&r.set("level",e.level),e.search&&r.set("search",e.search),e.limit&&r.set("limit",e.limit.toString()),e.page&&r.set("page",e.page.toString());const n=await fetch(`${this.baseUrl}/api/logs?${r}`);if(!n.ok)throw new Error(`Logs request failed: ${n.statusText}`);return n.json()}async getLogSources(){const e=await fetch(`${this.baseUrl}/api/logs/sources`);if(!e.ok)throw new Error(`Log sources request failed: ${e.statusText}`);return(await e.json()).sources}async getPlugins(){const e=await fetch(`${this.baseUrl}/api/plugins`);if(!e.ok)throw new Error(`Plugins request failed: ${e.statusText}`);return e.json()}async getUiContributions(){const e=await fetch(`${this.baseUrl}/api/ui-contributions`);if(!e.ok)throw new Error(`UI contributions request failed: ${e.statusText}`);return e.json()}}const ar=new fU;function hU({defaultOnly:t=!0,additionalWidgetIds:e=[]}){const[r,n]=S.useState([]),[o,s]=S.useState(!0),[l,c]=S.useState(null),{getComponent:u,hasComponent:f}=pU();if(S.useEffect(()=>{(async()=>{try{const g=await ar.getUiContributions();n(g.widgets||[]),c(null)}catch(g){c(g instanceof Error?g.message:"Failed to fetch widgets")}finally{s(!1)}})()},[]),o)return p.jsx(be,{sx:{display:"flex",justifyContent:"center",py:4},children:p.jsx(vo,{size:24})});if(l)return p.jsx(Un,{severity:"error",sx:{mt:2},children:l});const h=r.filter(v=>t?v.showByDefault||e.includes(v.id):!0).filter(v=>f(v.component)?!0:(console.warn(`Widget "${v.id}" references unregistered component "${v.component}"`),!1)).sort((v,g)=>(v.priority??100)-(g.priority??100));return h.length===0?null:p.jsx(p.Fragment,{children:h.map(v=>p.jsxs(be,{sx:{mt:4},children:[v.title&&p.jsx(je,{variant:"h6",sx:{mb:2,color:"var(--theme-text-primary)"},children:v.title}),u(v.component)]},v.id))})}function mU(t){switch(t){case"healthy":return p.jsx(mh,{sx:{color:"var(--theme-success)"}});case"degraded":return p.jsx(D0,{sx:{color:"var(--theme-warning)"}});case"unhealthy":return p.jsx(B0,{sx:{color:"var(--theme-error)"}});default:return p.jsx(vo,{size:20})}}function Hg(t){switch(t){case"healthy":return"var(--theme-success)";case"degraded":return"var(--theme-warning)";case"unhealthy":return"var(--theme-error)";default:return"var(--theme-text-secondary)"}}function gU(){var g,y;const t=e0(),[e,r]=S.useState(null),[n,o]=S.useState(null),[s,l]=S.useState(!0),[c,u]=S.useState(null);if(S.useEffect(()=>{const w=async()=>{try{const[C,R]=await Promise.all([ar.getHealth(),ar.getInfo()]);r(C),o(R),u(null)}catch(C){u(C instanceof Error?C.message:"Failed to fetch data")}finally{l(!1)}};w();const x=setInterval(w,1e4);return()=>clearInterval(x)},[]),s)return p.jsx(be,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:p.jsx(vo,{})});if(c)return p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:p.jsx(Jt,{children:p.jsx(je,{color:"error",children:c})})});const f=e?Object.entries(e.checks):[],h=f.filter(([,w])=>w.status==="healthy").length,v=f.length;return p.jsxs(be,{children:[p.jsx(je,{variant:"h4",sx:{mb:1,color:"var(--theme-text-primary)"},children:"Dashboard"}),p.jsxs(je,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:["Real-time overview of ",(n==null?void 0:n.product)||"your service"]}),p.jsx(Yt,{sx:{mb:4,bgcolor:"var(--theme-surface)",border:`2px solid ${Hg((e==null?void 0:e.status)||"unknown")}`},children:p.jsx(tL,{onClick:()=>t("/health"),children:p.jsxs(Jt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:2},children:[mU((e==null?void 0:e.status)||"unknown"),p.jsxs(be,{children:[p.jsxs(je,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:["Service Status: ",(g=e==null?void 0:e.status)==null?void 0:g.charAt(0).toUpperCase(),(y=e==null?void 0:e.status)==null?void 0:y.slice(1)]}),p.jsx(je,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:"Click to view detailed health information"})]})]}),p.jsx(ln,{label:`${h}/${v} checks passing`,sx:{bgcolor:Hg((e==null?void 0:e.status)||"unknown")+"20",color:Hg((e==null?void 0:e.status)||"unknown")}})]})})}),p.jsx(hU,{}),p.jsx(uU,{})]})}function bC(t){switch(t.toLowerCase()){case"error":return"var(--theme-error)";case"warn":case"warning":return"var(--theme-warning)";case"info":return"var(--theme-info)";case"debug":return"var(--theme-text-secondary)";default:return"var(--theme-text-primary)"}}function yU(){const[t,e]=S.useState([]),[r,n]=S.useState([]),[o,s]=S.useState(!0),[l,c]=S.useState(null),[u,f]=S.useState(""),[h,v]=S.useState(""),[g,y]=S.useState(""),[w,x]=S.useState(1),[C,R]=S.useState(0),P=50,[M,E]=S.useState(!1),[I,A]=S.useState("desc"),F=S.useRef(null),j={total:C,errors:t.filter(U=>U.level.toLowerCase()==="error").length,warnings:t.filter(U=>["warn","warning"].includes(U.level.toLowerCase())).length,info:t.filter(U=>U.level.toLowerCase()==="info").length,debug:t.filter(U=>U.level.toLowerCase()==="debug").length},H=S.useCallback(async()=>{s(!0);try{const U=await ar.getLogs({source:u||void 0,level:h||void 0,search:g||void 0,limit:P,page:w}),L=[...U.logs].sort((W,K)=>{const ee=new Date(W.timestamp).getTime(),Z=new Date(K.timestamp).getTime();return I==="desc"?Z-ee:ee-Z});e(L),R(U.total),c(null)}catch(U){c(U instanceof Error?U.message:"Failed to fetch logs")}finally{s(!1)}},[u,h,g,w,I]),G=async()=>{try{const U=await ar.getLogSources();n(U)}catch{}};S.useEffect(()=>{G()},[]),S.useEffect(()=>{H()},[H]),S.useEffect(()=>(M?F.current=setInterval(H,5e3):F.current&&(clearInterval(F.current),F.current=null),()=>{F.current&&clearInterval(F.current)}),[M,H]);const N=()=>{x(1),H()},k=(U,L)=>{L!==null&&A(L)},q=Math.ceil(C/P);return p.jsxs(be,{children:[p.jsx(je,{variant:"h4",sx:{mb:1,color:"var(--theme-text-primary)"},children:"Logs"}),p.jsx(je,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"View and search application logs"}),p.jsxs(jn,{container:!0,spacing:2,sx:{mb:3},children:[p.jsx(jn,{size:{xs:6,sm:3,md:2.4},children:p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsxs(Jt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[p.jsx(be,{sx:{display:"flex",alignItems:"center",gap:1},children:p.jsx(je,{variant:"h5",sx:{color:"var(--theme-text-primary)",fontWeight:600},children:j.total.toLocaleString()})}),p.jsx(je,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Total Logs"})]})})}),p.jsx(jn,{size:{xs:6,sm:3,md:2.4},children:p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsxs(Jt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:1},children:[p.jsx(B0,{sx:{color:"var(--theme-error)",fontSize:20}}),p.jsx(je,{variant:"h5",sx:{color:"var(--theme-error)",fontWeight:600},children:j.errors})]}),p.jsx(je,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Errors"})]})})}),p.jsx(jn,{size:{xs:6,sm:3,md:2.4},children:p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsxs(Jt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:1},children:[p.jsx(D0,{sx:{color:"var(--theme-warning)",fontSize:20}}),p.jsx(je,{variant:"h5",sx:{color:"var(--theme-warning)",fontWeight:600},children:j.warnings})]}),p.jsx(je,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Warnings"})]})})}),p.jsx(jn,{size:{xs:6,sm:3,md:2.4},children:p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsxs(Jt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:1},children:[p.jsx(Ty,{sx:{color:"var(--theme-info)",fontSize:20}}),p.jsx(je,{variant:"h5",sx:{color:"var(--theme-info)",fontWeight:600},children:j.info})]}),p.jsx(je,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Info"})]})})}),p.jsx(jn,{size:{xs:6,sm:3,md:2.4},children:p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsxs(Jt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:1},children:[p.jsx(R9,{sx:{color:"var(--theme-text-secondary)",fontSize:20}}),p.jsx(je,{variant:"h5",sx:{color:"var(--theme-text-primary)",fontWeight:600},children:j.debug})]}),p.jsx(je,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Debug"})]})})})]}),p.jsx(Yt,{sx:{mb:3,bgcolor:"var(--theme-surface)"},children:p.jsx(Jt,{children:p.jsxs(be,{sx:{display:"flex",gap:2,flexWrap:"wrap",alignItems:"center"},children:[r.length>0&&p.jsxs(za,{size:"small",sx:{minWidth:150},children:[p.jsx(Vl,{sx:{color:"var(--theme-text-secondary)"},children:"Source"}),p.jsxs(Ms,{value:u,label:"Source",onChange:U=>f(U.target.value),sx:{color:"var(--theme-text-primary)"},children:[p.jsx(cn,{value:"",children:"All Sources"}),r.map(U=>p.jsx(cn,{value:U.name,children:U.name},U.name))]})]}),p.jsxs(za,{size:"small",sx:{minWidth:120},children:[p.jsx(Vl,{sx:{color:"var(--theme-text-secondary)"},children:"Level"}),p.jsxs(Ms,{value:h,label:"Level",onChange:U=>v(U.target.value),sx:{color:"var(--theme-text-primary)"},children:[p.jsx(cn,{value:"",children:"All Levels"}),p.jsx(cn,{value:"error",children:"Error"}),p.jsx(cn,{value:"warn",children:"Warning"}),p.jsx(cn,{value:"info",children:"Info"}),p.jsx(cn,{value:"debug",children:"Debug"})]})]}),p.jsx(un,{size:"small",placeholder:"Search logs...",value:g,onChange:U=>y(U.target.value),onKeyPress:U=>U.key==="Enter"&&N(),sx:{flex:1,minWidth:200,"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}},InputProps:{startAdornment:p.jsx(gh,{sx:{mr:1,color:"var(--theme-text-secondary)"}})}}),p.jsxs(Z$,{value:I,exclusive:!0,onChange:k,size:"small","aria-label":"sort order",children:[p.jsx(Xw,{value:"desc","aria-label":"newest first",children:p.jsx(Jr,{title:"Newest First",children:p.jsx(S9,{fontSize:"small"})})}),p.jsx(Xw,{value:"asc","aria-label":"oldest first",children:p.jsx(Jr,{title:"Oldest First",children:p.jsx(T9,{fontSize:"small"})})})]}),p.jsx(Jr,{title:M?"Pause auto-refresh":"Enable auto-refresh (5s)",children:p.jsx(mr,{onClick:()=>E(!M),sx:{color:M?"var(--theme-success)":"var(--theme-text-secondary)",bgcolor:M?"var(--theme-success)20":"transparent"},children:M?p.jsx(Q9,{}):p.jsx(Z9,{})})}),p.jsx(Jr,{title:"Refresh",children:p.jsx(mr,{onClick:H,sx:{color:"var(--theme-primary)"},children:p.jsx(z0,{})})})]})})}),l&&p.jsx(Yt,{sx:{mb:3,bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:p.jsx(Jt,{children:p.jsx(je,{color:"error",children:l})})}),p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:o?p.jsx(be,{sx:{display:"flex",justifyContent:"center",p:4},children:p.jsx(vo,{})}):t.length===0?p.jsx(Jt,{children:p.jsx(je,{sx:{color:"var(--theme-text-secondary)",textAlign:"center"},children:"No logs found"})}):p.jsxs(p.Fragment,{children:[p.jsx(Bu,{children:p.jsxs(Nu,{size:"small",children:[p.jsx(zu,{children:p.jsxs(ho,{children:[p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:180},children:"Timestamp"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:100},children:"Level"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:120},children:"Component"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Message"})]})}),p.jsx($u,{children:t.map((U,L)=>p.jsxs(ho,{hover:!0,children:[p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.75rem"},children:new Date(U.timestamp).toLocaleString()}),p.jsx(ht,{sx:{borderColor:"var(--theme-border)"},children:p.jsx(ln,{label:U.level.toUpperCase(),size:"small",sx:{bgcolor:bC(U.level)+"20",color:bC(U.level),fontSize:"0.65rem",height:20}})}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontSize:"0.75rem"},children:U.namespace||"-"}),p.jsx(ht,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.8rem",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:U.message})]},L))})]})}),q>1&&p.jsx(be,{sx:{display:"flex",justifyContent:"center",p:2},children:p.jsx(XO,{count:q,page:w,onChange:(U,L)=>x(L),sx:{"& .MuiPaginationItem-root":{color:"var(--theme-text-primary)"}}})})]})})]})}function Ug(t){if(t===0)return"0 B";const e=1024,r=["B","KB","MB","GB"],n=Math.floor(Math.log(t)/Math.log(e));return parseFloat((t/Math.pow(e,n)).toFixed(2))+" "+r[n]}function vU(t){const e=Math.floor(t/1e3),r=Math.floor(e/60),n=Math.floor(r/60),o=Math.floor(n/24);return o>0?`${o}d ${n%24}h ${r%60}m`:n>0?`${n}h ${r%60}m ${e%60}s`:r>0?`${r}m ${e%60}s`:`${e}s`}function bU(t,e=20){switch(t){case"healthy":return p.jsx(mh,{sx:{color:"var(--theme-success)",fontSize:e}});case"degraded":return p.jsx(D0,{sx:{color:"var(--theme-warning)",fontSize:e}});case"unhealthy":return p.jsx(B0,{sx:{color:"var(--theme-error)",fontSize:e}});default:return p.jsx(vo,{size:e})}}function ou(t){switch(t){case"healthy":return"var(--theme-success)";case"degraded":return"var(--theme-warning)";case"unhealthy":return"var(--theme-error)";default:return"var(--theme-text-secondary)"}}function xU(t){return t===void 0?"-":t<1e3?`${t}ms`:`${(t/1e3).toFixed(2)}s`}function wU(){const[t,e]=S.useState(null),[r,n]=S.useState(null),[o,s]=S.useState(!0),[l,c]=S.useState(null),[u,f]=S.useState({open:!1,message:""}),h=async()=>{s(!0);try{const[y,w]=await Promise.all([ar.getDiagnostics(),ar.getHealth().catch(()=>null)]);e(y),n(w),c(null)}catch(y){c(y instanceof Error?y.message:"Failed to fetch diagnostics")}finally{s(!1)}};S.useEffect(()=>{h();const y=setInterval(h,3e4);return()=>clearInterval(y)},[]);const v=()=>{navigator.clipboard.writeText(JSON.stringify(t,null,2)),f({open:!0,message:"Diagnostics copied to clipboard"})};if(o&&!t)return p.jsx(be,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:p.jsx(vo,{})});if(l)return p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:p.jsx(Jt,{children:p.jsx(je,{color:"error",children:l})})});const g=t?t.system.memory.used/t.system.memory.total*100:0;return p.jsxs(be,{children:[p.jsxs(be,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[p.jsx(je,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"System"}),p.jsxs(be,{sx:{display:"flex",gap:1},children:[p.jsx(Jr,{title:"Copy diagnostics JSON",children:p.jsx(mr,{onClick:v,sx:{color:"var(--theme-primary)"},children:p.jsx(RT,{})})}),p.jsx(Jr,{title:"Refresh",children:p.jsx(mr,{onClick:h,sx:{color:"var(--theme-primary)"},children:p.jsx(z0,{})})})]})]}),p.jsx(je,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"System information and diagnostics"}),p.jsxs(jn,{container:!0,spacing:3,children:[p.jsx(jn,{size:{xs:12,md:6},children:p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:p.jsxs(Jt,{children:[p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[p.jsx(PT,{sx:{color:"var(--theme-primary)"}}),p.jsx(je,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"System Information"})]}),p.jsxs(be,{sx:{display:"flex",flexDirection:"column",gap:2},children:[p.jsxs(be,{sx:{display:"flex",justifyContent:"space-between"},children:[p.jsx(je,{sx:{color:"var(--theme-text-secondary)"},children:"QwickApps Server"}),p.jsx(ln,{label:t!=null&&t.frameworkVersion?`v${t.frameworkVersion}`:"N/A",size:"small",sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})]}),p.jsxs(be,{sx:{display:"flex",justifyContent:"space-between"},children:[p.jsx(je,{sx:{color:"var(--theme-text-secondary)"},children:"Node.js"}),p.jsx(ln,{label:t==null?void 0:t.system.nodeVersion,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}})]}),p.jsxs(be,{sx:{display:"flex",justifyContent:"space-between"},children:[p.jsx(je,{sx:{color:"var(--theme-text-secondary)"},children:"Platform"}),p.jsx(ln,{label:t==null?void 0:t.system.platform,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}})]}),p.jsxs(be,{sx:{display:"flex",justifyContent:"space-between"},children:[p.jsx(je,{sx:{color:"var(--theme-text-secondary)"},children:"Architecture"}),p.jsx(ln,{label:t==null?void 0:t.system.arch,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}})]})]})]})})}),p.jsx(jn,{size:{xs:12,md:6},children:p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:p.jsxs(Jt,{children:[p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[p.jsx(jT,{sx:{color:"var(--theme-warning)"}}),p.jsx(je,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Memory Usage"})]}),p.jsxs(be,{sx:{mb:2},children:[p.jsxs(be,{sx:{display:"flex",justifyContent:"space-between",mb:1},children:[p.jsx(je,{sx:{color:"var(--theme-text-secondary)"},children:"Heap Used"}),p.jsx(je,{sx:{color:"var(--theme-text-primary)"},children:Ug((t==null?void 0:t.system.memory.used)||0)})]}),p.jsx(I0,{variant:"determinate",value:g,sx:{height:8,borderRadius:4,bgcolor:"var(--theme-background)","& .MuiLinearProgress-bar":{bgcolor:g>80?"var(--theme-error)":"var(--theme-warning)",borderRadius:4}}})]}),p.jsxs(be,{sx:{display:"flex",flexDirection:"column",gap:2},children:[p.jsxs(be,{sx:{display:"flex",justifyContent:"space-between"},children:[p.jsx(je,{sx:{color:"var(--theme-text-secondary)"},children:"Heap Total"}),p.jsx(je,{sx:{color:"var(--theme-text-primary)"},children:Ug((t==null?void 0:t.system.memory.total)||0)})]}),p.jsxs(be,{sx:{display:"flex",justifyContent:"space-between"},children:[p.jsx(je,{sx:{color:"var(--theme-text-secondary)"},children:"Heap Free"}),p.jsx(je,{sx:{color:"var(--theme-text-primary)"},children:Ug((t==null?void 0:t.system.memory.free)||0)})]})]})]})})}),p.jsx(jn,{size:{xs:12,md:6},children:p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:p.jsxs(Jt,{children:[p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[p.jsx(_T,{sx:{color:"var(--theme-info)"}}),p.jsx(je,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Service Info"})]}),p.jsxs(be,{sx:{display:"flex",flexDirection:"column",gap:2},children:[p.jsxs(be,{sx:{display:"flex",justifyContent:"space-between"},children:[p.jsx(je,{sx:{color:"var(--theme-text-secondary)"},children:"Product"}),p.jsx(je,{sx:{color:"var(--theme-text-primary)"},children:t==null?void 0:t.product})]}),p.jsxs(be,{sx:{display:"flex",justifyContent:"space-between"},children:[p.jsx(je,{sx:{color:"var(--theme-text-secondary)"},children:"Version"}),p.jsx(ln,{label:(t==null?void 0:t.version)||"N/A",size:"small",sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})]}),p.jsxs(be,{sx:{display:"flex",justifyContent:"space-between"},children:[p.jsx(je,{sx:{color:"var(--theme-text-secondary)"},children:"Timestamp"}),p.jsx(je,{sx:{color:"var(--theme-text-primary)",fontSize:"0.875rem"},children:t!=null&&t.timestamp?new Date(t.timestamp).toLocaleString():"N/A"})]})]})]})})}),p.jsx(jn,{size:{xs:12,md:6},children:p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:p.jsxs(Jt,{children:[p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[p.jsx(b9,{sx:{color:"var(--theme-success)"}}),p.jsx(je,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Uptime"})]}),p.jsx(je,{variant:"h3",sx:{color:"var(--theme-success)",mb:1},children:vU((t==null?void 0:t.uptime)||0)}),p.jsx(je,{sx:{color:"var(--theme-text-secondary)"},children:"Service has been running without interruption"})]})})}),r&&p.jsx(jn,{size:{xs:12},children:p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsxs(Jt,{children:[p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[p.jsx(MT,{sx:{color:ou(r.status)}}),p.jsx(je,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Health Checks"}),p.jsx(ln,{label:r.status,size:"small",sx:{bgcolor:ou(r.status)+"20",color:ou(r.status),textTransform:"capitalize",ml:"auto"}})]}),p.jsx(Bu,{children:p.jsxs(Nu,{size:"small",children:[p.jsx(zu,{children:p.jsxs(ho,{children:[p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Check"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Status"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Latency"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Last Checked"})]})}),p.jsx($u,{children:Object.entries(r.checks).map(([y,w])=>p.jsxs(ho,{children:[p.jsx(ht,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:1},children:[bU(w.status),p.jsx(je,{fontWeight:500,children:y})]})}),p.jsx(ht,{sx:{borderColor:"var(--theme-border)"},children:p.jsx(ln,{label:w.status,size:"small",sx:{bgcolor:ou(w.status)+"20",color:ou(w.status),textTransform:"capitalize"}})}),p.jsx(ht,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:xU(w.latency)}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:new Date(w.lastChecked).toLocaleTimeString()})]},y))})]})})]})})}),p.jsx(jn,{size:{xs:12},children:p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsxs(Jt,{children:[p.jsx(je,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Raw Diagnostics JSON (for AI agents)"}),p.jsx(be,{component:"pre",sx:{bgcolor:"var(--theme-background)",p:2,borderRadius:1,overflow:"auto",maxHeight:300,color:"var(--theme-text-primary)",fontFamily:"monospace",fontSize:"0.75rem"},children:JSON.stringify(t,null,2)})]})})})]}),p.jsx(sT,{open:u.open,autoHideDuration:2e3,onClose:()=>f({...u,open:!1}),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:p.jsx(Un,{severity:"success",variant:"filled",children:u.message})})]})}function SU({title:t="User Management",subtitle:e="Manage users, bans, and entitlements",features:r,headerActions:n,onUserSelect:o}){const[s,l]=S.useState({users:(r==null?void 0:r.users)??!0,bans:(r==null?void 0:r.bans)??!1,entitlements:(r==null?void 0:r.entitlements)??!1,entitlementsReadonly:(r==null?void 0:r.entitlementsReadonly)??!0}),[c,u]=S.useState(!!r),[f,h]=S.useState(0),[v,g]=S.useState([]),[y,w]=S.useState(0),[x,C]=S.useState(0),[R,P]=S.useState(25),[M,E]=S.useState(""),[I,A]=S.useState({}),[F,j]=S.useState([]),[H,G]=S.useState(0),[N,k]=S.useState(!0),[q,U]=S.useState(null),[L,W]=S.useState(null),[K,ee]=S.useState(!1),[Z,Q]=S.useState({email:"",reason:"",expiresAt:""}),[X,re]=S.useState(!1),[ce,Y]=S.useState(""),[ne,J]=S.useState(!1),[de,Ce]=S.useState(!1),[he,se]=S.useState(null),[De,Ne]=S.useState(null),[Oe,Be]=S.useState([]),[_e,Ke]=S.useState(""),[dt,ke]=S.useState(!1);S.useEffect(()=>{r||ar.detectFeatures().then(oe=>{l(oe),u(!0)}).catch(()=>{u(!0)})},[r]),S.useEffect(()=>{c&&s.entitlements&&!s.entitlementsReadonly&&ar.getAvailableEntitlements().then(Be).catch(()=>{})},[c,s.entitlements,s.entitlementsReadonly]);const ft=S.useCallback(async()=>{var oe;if(s.users){k(!0);try{const Ee=await ar.getUsers({limit:R,page:x,search:M||void 0});if(g(Ee.users||[]),w(Ee.total),U(null),s.entitlements&&((oe=Ee.users)!=null&&oe.length)){const $e={};await Promise.all(Ee.users.map(async Fe=>{try{const xt=await ar.getEntitlements(Fe.email);$e[Fe.email]=xt.entitlements.length}catch{$e[Fe.email]=0}})),A(Fe=>({...Fe,...$e}))}}catch(Ee){U(Ee instanceof Error?Ee.message:"Failed to fetch users")}finally{k(!1)}}},[s.users,s.entitlements,x,R,M]),We=S.useCallback(async()=>{if(s.bans){k(!0);try{const oe=await ar.getBans();j(oe.bans||[]),G(oe.total),U(null)}catch(oe){U(oe instanceof Error?oe.message:"Failed to fetch bans")}finally{k(!1)}}},[s.bans]);S.useEffect(()=>{c&&(f===0&&s.users?ft():f===1&&s.bans&&We())},[f,c,s.users,s.bans,ft,We]),S.useEffect(()=>{c&&s.bans&&We()},[c,s.bans,We]),S.useEffect(()=>{if(!c)return;const oe=setTimeout(()=>{f===0&&s.users&&(C(0),ft())},300);return()=>clearTimeout(oe)},[M,f,c,s.users,ft]);const pt=async()=>{try{await ar.banUser(Z.email,Z.reason,Z.expiresAt||void 0),W("User banned successfully"),ee(!1),Q({email:"",reason:"",expiresAt:""}),We()}catch(oe){U(oe instanceof Error?oe.message:"Failed to ban user")}},Ue=async oe=>{if(confirm("Unban this user?"))try{await ar.unbanUser(oe),W("User unbanned successfully"),We()}catch{U("Failed to unban user")}},Wt=async()=>{if(!ce.trim()){Ne("Please enter an email address");return}J(!0),Ne(null),se(null);try{const oe=await ar.getEntitlements(ce);se(oe)}catch(oe){Ne(oe instanceof Error?oe.message:"Failed to lookup entitlements")}finally{J(!1)}},Tt=async()=>{if(he){Ce(!0);try{const oe=await ar.refreshEntitlements(ce);se(oe)}catch{Ne("Failed to refresh entitlements")}finally{Ce(!1)}}},ue=async()=>{if(!(!_e||!he)){ke(!0);try{await ar.grantEntitlement(he.identifier,_e),W(`Entitlement "${_e}" granted`),Ke("");const oe=await ar.refreshEntitlements(he.identifier);se(oe),A(Ee=>({...Ee,[he.identifier]:oe.entitlements.length}))}catch(oe){U(oe instanceof Error?oe.message:"Failed to grant entitlement")}finally{ke(!1)}}},ve=async oe=>{if(he&&confirm(`Revoke "${oe}" from ${he.identifier}?`))try{await ar.revokeEntitlement(he.identifier,oe),W(`Entitlement "${oe}" revoked`);const Ee=await ar.refreshEntitlements(he.identifier);se(Ee),A($e=>({...$e,[he.identifier]:Ee.entitlements.length}))}catch(Ee){U(Ee instanceof Error?Ee.message:"Failed to revoke entitlement")}},Te=oe=>{oe&&(Y(oe),J(!0),Ne(null),se(null),ar.getEntitlements(oe).then(se).catch(Ee=>Ne(Ee instanceof Error?Ee.message:"Failed to lookup entitlements")).finally(()=>J(!1))),re(!0)},Pe=oe=>oe?new Date(oe).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"Never",Ve=Oe.filter(oe=>!(he!=null&&he.entitlements.includes(oe.name))),Qe=[];return s.users&&Qe.push({label:"Users",count:y}),s.bans&&Qe.push({label:"Banned",count:H}),c?p.jsxs(be,{children:[p.jsxs(be,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[p.jsxs(be,{children:[p.jsx(jt,{variant:"h4",content:t,customColor:"var(--theme-text-primary)"}),p.jsx(jt,{variant:"body2",content:e,customColor:"var(--theme-text-secondary)"})]}),p.jsxs(be,{sx:{display:"flex",gap:1},children:[n,s.entitlements&&p.jsx(Rr,{variant:"outlined",icon:"person_search",label:"Lookup Entitlements",onClick:()=>Te()}),s.bans&&p.jsx(Rr,{variant:"primary",color:"error",icon:"block",label:"Ban User",onClick:()=>ee(!0)})]})]}),N&&p.jsx(I0,{sx:{mb:2}}),q&&p.jsx(Un,{severity:"error",onClose:()=>U(null),sx:{mb:2},children:q}),L&&p.jsx(Un,{severity:"success",onClose:()=>W(null),sx:{mb:2},children:L}),s.users&&p.jsxs(uv,{columns:s.bans?3:2,spacing:"medium",sx:{mb:3},equalHeight:!0,children:[p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsx(Jt,{children:p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:2},children:[p.jsx(ky,{sx:{fontSize:40,color:"var(--theme-primary)"}}),p.jsxs(be,{children:[p.jsx(jt,{variant:"h4",content:y.toLocaleString(),customColor:"var(--theme-text-primary)"}),p.jsx(jt,{variant:"body2",content:"Total Users",customColor:"var(--theme-text-secondary)"})]})]})})}),s.entitlements&&p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsx(Jt,{children:p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:2},children:[p.jsx(jl,{sx:{fontSize:40,color:"var(--theme-success)"}}),p.jsxs(be,{children:[p.jsx(jt,{variant:"body1",fontWeight:"500",content:"Entitlements",customColor:"var(--theme-text-primary)"}),p.jsx(jt,{variant:"body2",content:s.entitlementsReadonly?"Read-only Mode":"Plugin Active",customColor:s.entitlementsReadonly?"var(--theme-warning)":"var(--theme-success)"})]})]})})}),s.bans&&p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsx(Jt,{children:p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:2},children:[p.jsx(TT,{sx:{fontSize:40,color:H>0?"var(--theme-error)":"var(--theme-text-secondary)"}}),p.jsxs(be,{children:[p.jsx(jt,{variant:"h4",content:H.toString(),customColor:H>0?"var(--theme-error)":"var(--theme-text-primary)"}),p.jsx(jt,{variant:"body2",content:"Banned Users",customColor:"var(--theme-text-secondary)"})]})]})})})]}),p.jsxs(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:[Qe.length>1&&p.jsx(F$,{value:f,onChange:(oe,Ee)=>h(Ee),sx:{borderBottom:1,borderColor:"var(--theme-border)",px:2},children:Qe.map((oe,Ee)=>p.jsx($N,{label:`${oe.label}${oe.count!==void 0?` (${oe.count})`:""}`},Ee))}),p.jsxs(Jt,{sx:{p:0},children:[p.jsx(be,{sx:{p:2,borderBottom:1,borderColor:"var(--theme-border)"},children:p.jsx(un,{size:"small",placeholder:"Search by email or name...",value:M,onChange:oe=>E(oe.target.value),InputProps:{startAdornment:p.jsx(Sf,{position:"start",children:p.jsx(gh,{sx:{color:"var(--theme-text-secondary)"}})})},sx:{minWidth:300}})}),f===0&&s.users&&p.jsxs(p.Fragment,{children:[p.jsx(Bu,{children:p.jsxs(Nu,{children:[p.jsx(zu,{children:p.jsxs(ho,{children:[p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"ID"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Email"}),s.entitlements&&p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"center",children:"Entitlements"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Created"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),p.jsxs($u,{children:[v.map(oe=>p.jsxs(ho,{hover:!0,sx:{cursor:o?"pointer":"default"},onClick:()=>o==null?void 0:o(oe),children:[p.jsxs(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.75rem"},children:[oe.id.substring(0,8),"..."]}),p.jsx(ht,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:p.jsx(jt,{variant:"body1",content:oe.name||"--",fontWeight:"500"})}),p.jsx(ht,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:oe.email}),s.entitlements&&p.jsx(ht,{sx:{borderColor:"var(--theme-border)"},align:"center",children:p.jsx(ln,{size:"small",icon:p.jsx(jl,{sx:{fontSize:14}}),label:I[oe.email]??"...",sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:Pe(oe.created_at)}),p.jsx(ht,{sx:{borderColor:"var(--theme-border)"},align:"right",children:s.entitlements&&p.jsx(Jr,{title:"View entitlements",children:p.jsx(mr,{size:"small",onClick:Ee=>{Ee.stopPropagation(),Te(oe.email)},children:p.jsx(jl,{fontSize:"small"})})})})]},oe.id)),v.length===0&&!N&&p.jsx(ho,{children:p.jsx(ht,{colSpan:s.entitlements?6:5,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:M?"No users match your search":"No users found"})})]})]})}),p.jsx(w$,{component:"div",count:y,page:x,onPageChange:(oe,Ee)=>C(Ee),rowsPerPage:R,onRowsPerPageChange:oe=>{P(parseInt(oe.target.value,10)),C(0)},rowsPerPageOptions:[10,25,50,100],sx:{borderTop:1,borderColor:"var(--theme-border)"}})]}),f===1&&s.bans&&p.jsx(Bu,{children:p.jsxs(Nu,{children:[p.jsx(zu,{children:p.jsxs(ho,{children:[p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Email"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Reason"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Banned At"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Expires"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Banned By"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),p.jsxs($u,{children:[F.map(oe=>p.jsxs(ho,{children:[p.jsx(ht,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:p.jsx(jt,{variant:"body1",content:oe.email,fontWeight:"500"})}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",maxWidth:200},children:p.jsx(jt,{variant:"body2",content:oe.reason,noWrap:!0})}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:Pe(oe.banned_at)}),p.jsx(ht,{sx:{borderColor:"var(--theme-border)"},children:p.jsx(ln,{size:"small",label:oe.expires_at?Pe(oe.expires_at):"Permanent",sx:{bgcolor:oe.expires_at?"var(--theme-warning)20":"var(--theme-error)20",color:oe.expires_at?"var(--theme-warning)":"var(--theme-error)"}})}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:oe.banned_by}),p.jsx(ht,{sx:{borderColor:"var(--theme-border)"},align:"right",children:p.jsx(Rr,{buttonSize:"small",variant:"text",color:"success",icon:"check_circle",label:"Unban",onClick:()=>Ue(oe.email)})})]},oe.id)),F.length===0&&!N&&p.jsx(ho,{children:p.jsx(ht,{colSpan:6,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:"No users are currently banned"})})]})]})})]})]}),s.bans&&p.jsxs(bu,{open:K,onClose:()=>ee(!1),maxWidth:"sm",fullWidth:!0,children:[p.jsx(xu,{children:"Ban User"}),p.jsx(wu,{children:p.jsxs(be,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[p.jsx(un,{label:"Email",fullWidth:!0,value:Z.email,onChange:oe=>Q({...Z,email:oe.target.value}),placeholder:"Enter user email"}),p.jsx(un,{label:"Reason",fullWidth:!0,multiline:!0,rows:3,value:Z.reason,onChange:oe=>Q({...Z,reason:oe.target.value}),placeholder:"Enter reason for ban"}),p.jsx(un,{label:"Expiration (Optional)",type:"datetime-local",fullWidth:!0,value:Z.expiresAt,onChange:oe=>Q({...Z,expiresAt:oe.target.value}),InputLabelProps:{shrink:!0},helperText:"Leave empty for permanent ban"})]})}),p.jsxs(Su,{children:[p.jsx(Rr,{variant:"text",label:"Cancel",onClick:()=>{ee(!1),Q({email:"",reason:"",expiresAt:""})}}),p.jsx(Rr,{variant:"primary",color:"error",label:"Ban User",onClick:pt,disabled:!Z.email||!Z.reason})]})]}),s.entitlements&&p.jsxs(bu,{open:X,onClose:()=>re(!1),maxWidth:"md",fullWidth:!0,children:[p.jsx(xu,{children:"User Entitlements"}),p.jsx(wu,{children:p.jsxs(be,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[p.jsxs(be,{sx:{display:"flex",gap:1},children:[p.jsx(un,{label:"Email",fullWidth:!0,value:ce,onChange:oe=>Y(oe.target.value),placeholder:"Enter user email",onKeyDown:oe=>oe.key==="Enter"&&Wt()}),p.jsx(Rr,{variant:"primary",icon:"search",label:"Lookup",onClick:Wt,disabled:ne})]}),ne&&p.jsx(be,{sx:{display:"flex",justifyContent:"center",py:4},children:p.jsx(vo,{})}),De&&p.jsx(Un,{severity:"error",children:De}),he&&p.jsxs(be,{children:[p.jsxs(be,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[p.jsxs(be,{children:[p.jsx(jt,{variant:"h6",content:he.identifier,customColor:"var(--theme-text-primary)"}),p.jsx(jt,{variant:"body2",content:`Source: ${he.source}`,customColor:"var(--theme-text-secondary)"})]}),p.jsx(Rr,{variant:"outlined",icon:"refresh",label:de?"Refreshing...":"Refresh",onClick:Tt,disabled:de,buttonSize:"small"})]}),!s.entitlementsReadonly&&Ve.length>0&&p.jsxs(be,{sx:{display:"flex",gap:1,mb:2,p:2,bgcolor:"var(--theme-background)",borderRadius:1},children:[p.jsx(C_,{size:"small",options:Ve,getOptionLabel:oe=>oe.name,value:Ve.find(oe=>oe.name===_e)||null,onChange:(oe,Ee)=>Ke((Ee==null?void 0:Ee.name)||""),renderInput:oe=>p.jsx(un,{...oe,label:"Grant Entitlement",placeholder:"Select entitlement"}),sx:{flex:1}}),p.jsx(Rr,{variant:"primary",icon:"add",label:"Grant",onClick:ue,disabled:!_e||dt,buttonSize:"small"})]}),p.jsx(jt,{variant:"subtitle2",content:"Current Entitlements",customColor:"var(--theme-text-secondary)",style:{marginBottom:"8px"}}),he.entitlements.length===0?p.jsx(jt,{variant:"body2",content:"No entitlements found",customColor:"var(--theme-text-secondary)"}):p.jsx(be,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:he.entitlements.map((oe,Ee)=>p.jsx(ln,{icon:p.jsx(mh,{sx:{fontSize:16}}),label:oe,onDelete:s.entitlementsReadonly?void 0:()=>ve(oe),deleteIcon:p.jsx($0,{sx:{fontSize:16}}),sx:{bgcolor:"var(--theme-success)20",color:"var(--theme-success)","& .MuiChip-deleteIcon":{color:"var(--theme-error)","&:hover":{color:"var(--theme-error)"}}}},Ee))}),p.jsxs(be,{sx:{mt:2,pt:2,borderTop:1,borderColor:"var(--theme-border)"},children:[p.jsx(jt,{variant:"caption",content:`Data from: ${he.source==="cache"?"Cache":"Source"}`,customColor:"var(--theme-text-secondary)"}),he.cachedAt&&p.jsx(jt,{variant:"caption",content:` | Cached: ${Pe(he.cachedAt)}`,customColor:"var(--theme-text-secondary)"}),s.entitlementsReadonly&&p.jsx(jt,{variant:"caption",content:" | Read-only mode (modifications disabled)",customColor:"var(--theme-warning)"})]})]})]})}),p.jsx(Su,{children:p.jsx(Rr,{variant:"text",label:"Close",onClick:()=>re(!1)})})]})]}):p.jsx(be,{sx:{display:"flex",justifyContent:"center",py:8},children:p.jsx(vo,{})})}function CU({title:t="Entitlements",subtitle:e="Manage available entitlements",headerActions:r}){var ce;const[n,o]=S.useState(null),[s,l]=S.useState(!0),[c,u]=S.useState([]),[f,h]=S.useState([]),[v,g]=S.useState(!0),[y,w]=S.useState(null),[x,C]=S.useState(null),[R,P]=S.useState(""),[M,E]=S.useState(!1),[I,A]=S.useState(!1),[F,j]=S.useState(!1),[H,G]=S.useState(null),[N,k]=S.useState({name:"",category:"",description:""}),[q,U]=S.useState(!1);S.useEffect(()=>{ar.getEntitlementsStatus().then(o).catch(Y=>w(Y instanceof Error?Y.message:"Failed to get status")).finally(()=>l(!1))},[]);const L=S.useCallback(async()=>{g(!0);try{const Y=await ar.getAvailableEntitlements();u(Y),w(null)}catch(Y){w(Y instanceof Error?Y.message:"Failed to fetch entitlements")}finally{g(!1)}},[]);S.useEffect(()=>{L()},[L]),S.useEffect(()=>{if(!R.trim())h(c);else{const Y=R.toLowerCase();h(c.filter(ne=>{var J,de;return ne.name.toLowerCase().includes(Y)||((J=ne.category)==null?void 0:J.toLowerCase().includes(Y))||((de=ne.description)==null?void 0:de.toLowerCase().includes(Y))}))}},[c,R]);const W=[...new Set(c.map(Y=>Y.category||"Uncategorized"))],K=async()=>{if(!N.name.trim()){w("Name is required");return}U(!0);try{C(`Entitlement "${N.name}" created`),E(!1),k({name:"",category:"",description:""}),L()}catch(Y){w(Y instanceof Error?Y.message:"Failed to create entitlement")}finally{U(!1)}},ee=async()=>{if(H){U(!0);try{C(`Entitlement "${H.name}" updated`),A(!1),G(null),L()}catch(Y){w(Y instanceof Error?Y.message:"Failed to update entitlement")}finally{U(!1)}}},Z=async()=>{if(H){U(!0);try{C(`Entitlement "${H.name}" deleted`),j(!1),G(null),L()}catch(Y){w(Y instanceof Error?Y.message:"Failed to delete entitlement")}finally{U(!1)}}},Q=Y=>{G(Y),A(!0)},X=Y=>{G(Y),j(!0)},re=(n==null?void 0:n.readonly)??!0;return s?p.jsx(be,{sx:{display:"flex",justifyContent:"center",py:8},children:p.jsx(vo,{})}):p.jsxs(be,{children:[p.jsxs(be,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[p.jsxs(be,{children:[p.jsx(jt,{variant:"h4",content:t,customColor:"var(--theme-text-primary)"}),p.jsx(jt,{variant:"body2",content:e,customColor:"var(--theme-text-secondary)"})]}),p.jsxs(be,{sx:{display:"flex",gap:1},children:[r,!re&&p.jsx(Rr,{variant:"primary",icon:"add",label:"Add Entitlement",onClick:()=>E(!0)})]})]}),v&&p.jsx(I0,{sx:{mb:2}}),y&&p.jsx(Un,{severity:"error",onClose:()=>w(null),sx:{mb:2},children:y}),x&&p.jsx(Un,{severity:"success",onClose:()=>C(null),sx:{mb:2},children:x}),p.jsxs(uv,{columns:3,spacing:"medium",sx:{mb:3},equalHeight:!0,children:[p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsx(Jt,{children:p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:2},children:[p.jsx(jl,{sx:{fontSize:40,color:"var(--theme-primary)"}}),p.jsxs(be,{children:[p.jsx(jt,{variant:"h4",content:c.length.toString(),customColor:"var(--theme-text-primary)"}),p.jsx(jt,{variant:"body2",content:"Total Entitlements",customColor:"var(--theme-text-secondary)"})]})]})})}),p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsx(Jt,{children:p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:2},children:[p.jsx(be,{sx:{width:40,height:40,borderRadius:1,bgcolor:"var(--theme-primary)20",display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(jt,{variant:"h6",content:W.length.toString(),customColor:"var(--theme-primary)"})}),p.jsxs(be,{children:[p.jsx(jt,{variant:"body1",fontWeight:"500",content:"Categories",customColor:"var(--theme-text-primary)"}),p.jsx(jt,{variant:"body2",content:W.slice(0,3).join(", "),customColor:"var(--theme-text-secondary)"})]})]})})}),p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsx(Jt,{children:p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:2},children:[re?p.jsx(Ey,{sx:{fontSize:40,color:"var(--theme-warning)"}}):p.jsx(Cy,{sx:{fontSize:40,color:"var(--theme-success)"}}),p.jsxs(be,{children:[p.jsx(jt,{variant:"body1",fontWeight:"500",content:re?"Read-only":"Editable",customColor:re?"var(--theme-warning)":"var(--theme-success)"}),p.jsx(jt,{variant:"body2",content:`Source: ${((ce=n==null?void 0:n.sources[0])==null?void 0:ce.name)||"Unknown"}`,customColor:"var(--theme-text-secondary)"})]})]})})})]}),p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsxs(Jt,{sx:{p:0},children:[p.jsx(be,{sx:{p:2,borderBottom:1,borderColor:"var(--theme-border)"},children:p.jsx(un,{size:"small",placeholder:"Search entitlements...",value:R,onChange:Y=>P(Y.target.value),InputProps:{startAdornment:p.jsx(Sf,{position:"start",children:p.jsx(gh,{sx:{color:"var(--theme-text-secondary)"}})})},sx:{minWidth:300}})}),p.jsx(Bu,{children:p.jsxs(Nu,{children:[p.jsx(zu,{children:p.jsxs(ho,{children:[p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Category"}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Description"}),!re&&p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),p.jsxs($u,{children:[f.map(Y=>p.jsxs(ho,{hover:!0,children:[p.jsx(ht,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:1},children:[p.jsx(jl,{sx:{fontSize:18,color:"var(--theme-primary)"}}),p.jsx(jt,{variant:"body1",content:Y.name,fontWeight:"500"})]})}),p.jsx(ht,{sx:{borderColor:"var(--theme-border)"},children:Y.category?p.jsx(ln,{size:"small",label:Y.category,sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}}):p.jsx(jt,{variant:"body2",content:"--",customColor:"var(--theme-text-secondary)"})}),p.jsx(ht,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",maxWidth:300},children:Y.description||"--"}),!re&&p.jsxs(ht,{sx:{borderColor:"var(--theme-border)"},align:"right",children:[p.jsx(Jr,{title:"Edit",children:p.jsx(mr,{size:"small",onClick:()=>Q(Y),children:p.jsx(Cy,{fontSize:"small"})})}),p.jsx(Jr,{title:"Delete",children:p.jsx(mr,{size:"small",onClick:()=>X(Y),sx:{color:"var(--theme-error)"},children:p.jsx($0,{fontSize:"small"})})})]})]},Y.id)),f.length===0&&!v&&p.jsx(ho,{children:p.jsx(ht,{colSpan:re?3:4,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:R?"No entitlements match your search":"No entitlements defined"})})]})]})})]})}),n&&n.sources.length>0&&p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)",mt:3},children:p.jsxs(Jt,{children:[p.jsx(jt,{variant:"subtitle2",content:"Entitlement Sources",customColor:"var(--theme-text-secondary)",style:{marginBottom:"12px"}}),p.jsx(be,{sx:{display:"flex",flexDirection:"column",gap:1},children:n.sources.map((Y,ne)=>p.jsxs(be,{sx:{display:"flex",alignItems:"center",gap:2},children:[p.jsx(ln,{size:"small",label:Y.primary?"Primary":"Additional",sx:{bgcolor:Y.primary?"var(--theme-primary)20":"var(--theme-text-secondary)20",color:Y.primary?"var(--theme-primary)":"var(--theme-text-secondary)"}}),p.jsx(jt,{variant:"body1",content:Y.name,fontWeight:"500",customColor:"var(--theme-text-primary)"}),Y.description&&p.jsx(jt,{variant:"body2",content:`- ${Y.description}`,customColor:"var(--theme-text-secondary)"}),Y.readonly&&p.jsx(ln,{size:"small",icon:p.jsx(Ey,{sx:{fontSize:14}}),label:"Read-only",sx:{bgcolor:"var(--theme-warning)20",color:"var(--theme-warning)"}})]},ne))}),n.cacheEnabled&&p.jsx(be,{sx:{mt:2,pt:2,borderTop:1,borderColor:"var(--theme-border)"},children:p.jsx(jt,{variant:"caption",content:`Caching: Enabled (TTL: ${n.cacheTtl}s)`,customColor:"var(--theme-text-secondary)"})})]})}),!re&&p.jsxs(bu,{open:M,onClose:()=>E(!1),maxWidth:"sm",fullWidth:!0,children:[p.jsx(xu,{children:"Add Entitlement"}),p.jsx(wu,{children:p.jsxs(be,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[p.jsx(un,{label:"Name",fullWidth:!0,value:N.name,onChange:Y=>k({...N,name:Y.target.value}),placeholder:"e.g., premium, pro, feature:analytics",required:!0}),p.jsx(un,{label:"Category (Optional)",fullWidth:!0,value:N.category,onChange:Y=>k({...N,category:Y.target.value}),placeholder:"e.g., subscription, feature, access"}),p.jsx(un,{label:"Description (Optional)",fullWidth:!0,multiline:!0,rows:2,value:N.description,onChange:Y=>k({...N,description:Y.target.value}),placeholder:"Describe what this entitlement grants access to"})]})}),p.jsxs(Su,{children:[p.jsx(Rr,{variant:"text",label:"Cancel",onClick:()=>E(!1)}),p.jsx(Rr,{variant:"primary",label:"Create",onClick:K,disabled:!N.name.trim()||q})]})]}),!re&&H&&p.jsxs(bu,{open:I,onClose:()=>A(!1),maxWidth:"sm",fullWidth:!0,children:[p.jsx(xu,{children:"Edit Entitlement"}),p.jsx(wu,{children:p.jsxs(be,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[p.jsx(un,{label:"Name",fullWidth:!0,value:H.name,disabled:!0,helperText:"Name cannot be changed"}),p.jsx(un,{label:"Category",fullWidth:!0,value:H.category||"",onChange:Y=>G({...H,category:Y.target.value})}),p.jsx(un,{label:"Description",fullWidth:!0,multiline:!0,rows:2,value:H.description||"",onChange:Y=>G({...H,description:Y.target.value})})]})}),p.jsxs(Su,{children:[p.jsx(Rr,{variant:"text",label:"Cancel",onClick:()=>A(!1)}),p.jsx(Rr,{variant:"primary",label:"Save",onClick:ee,disabled:q})]})]}),!re&&H&&p.jsxs(bu,{open:F,onClose:()=>j(!1),maxWidth:"sm",fullWidth:!0,children:[p.jsx(xu,{children:"Delete Entitlement"}),p.jsxs(wu,{children:[p.jsx(jt,{variant:"body1",content:`Are you sure you want to delete the entitlement "${H.name}"?`,customColor:"var(--theme-text-primary)"}),p.jsx(Un,{severity:"warning",sx:{mt:2},children:"This will remove the entitlement from all users who currently have it."})]}),p.jsxs(Su,{children:[p.jsx(Rr,{variant:"text",label:"Cancel",onClick:()=>j(!1)}),p.jsx(Rr,{variant:"primary",color:"error",label:"Delete",onClick:Z,disabled:q})]})]})]})}function TU({pluginId:t,title:e,route:r}){const[n,o]=S.useState(!0),[s,l]=S.useState(null),[c,u]=S.useState(null);return S.useEffect(()=>{(async()=>{try{const h=await fetch(`${ar.baseUrl}/api${r}`);if(h.ok){const v=await h.json();u(v),l(null)}else h.status===404?(u(null),l(null)):l(`Failed to load page: ${h.statusText}`)}catch(h){l(h instanceof Error?h.message:"Failed to load page")}finally{o(!1)}})()},[r]),n?p.jsx(be,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:p.jsx(vo,{})}):p.jsxs(be,{children:[p.jsx(je,{variant:"h4",sx:{mb:1,color:"var(--theme-text-primary)"},children:e}),p.jsxs(je,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:["Plugin: ",t]}),s&&p.jsx(Un,{severity:"error",sx:{mb:3},children:s}),(c==null?void 0:c.cards)&&c.cards.length>0&&p.jsx(be,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:2,mb:4},children:c.cards.map((f,h)=>p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsxs(Jt,{children:[p.jsx(je,{variant:"h4",sx:{color:f.color||"var(--theme-text-primary)"},children:f.value}),p.jsx(je,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:f.title}),f.subtitle&&p.jsx(je,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:f.subtitle})]})},h))}),(c==null?void 0:c.sections)&&c.sections.length>0&&p.jsx(be,{sx:{display:"flex",flexDirection:"column",gap:3},children:c.sections.map((f,h)=>p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsxs(Jt,{children:[p.jsx(je,{variant:"h6",sx:{mb:2,color:"var(--theme-text-primary)"},children:f.title}),p.jsx(je,{variant:"body2",sx:{color:"var(--theme-text-secondary)",whiteSpace:"pre-wrap"},children:f.content})]})},h))}),!c&&!s&&p.jsx(Yt,{sx:{bgcolor:"var(--theme-surface)"},children:p.jsxs(Jt,{children:[p.jsx(je,{variant:"body1",sx:{color:"var(--theme-text-secondary)"},children:"This plugin page is available. Configure the plugin to add content here."}),p.jsxs(je,{variant:"body2",sx:{mt:2,color:"var(--theme-text-secondary)"},children:["API endpoint: ",p.jsxs("code",{children:["/api",r]})]})]})})]})}function EU(){const t=e0();return p.jsxs(be,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"50vh",textAlign:"center"},children:[p.jsx(je,{variant:"h1",sx:{color:"var(--theme-primary)",mb:2},children:"404"}),p.jsx(je,{variant:"h5",sx:{color:"var(--theme-text-primary)",mb:1},children:"Page Not Found"}),p.jsx(je,{sx:{color:"var(--theme-text-secondary)",mb:4},children:"The page you're looking for doesn't exist or has been moved."}),p.jsx(_u,{variant:"contained",startIcon:p.jsx(AT,{}),onClick:()=>t("/"),sx:{bgcolor:"var(--theme-primary)","&:hover":{bgcolor:"var(--theme-primary)"}},children:"Back to Dashboard"})]})}const xC=[{id:"dashboard",label:"Dashboard",route:"/",icon:"dashboard"},{id:"logs",label:"Logs",route:"/logs",icon:"article"},{id:"system",label:"System",route:"/system",icon:"settings"}],kU={users:{id:"users",label:"Users",route:"/users",icon:"people"}},PU=new Set(["/","/logs","/system","/users","/entitlements"]),RU="1.0.0",Sk=window.__APP_BASE_PATH__??"";ar.setBaseUrl(Sk);const MU=p.jsx(be,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,py:2},children:p.jsxs(jt,{variant:"caption",customColor:"var(--theme-text-secondary)",children:["Built with"," ",p.jsx(K6,{href:"https://qwickapps.com/products/qwickapps-server",target:"_blank",rel:"noopener noreferrer",sx:{color:"primary.main"},children:"QwickApps Server"})," ","v",RU]})});function IU(){const[t,e]=S.useState(xC),[r,n]=S.useState(new Set),[o,s]=S.useState([]),[l,c]=S.useState("Control Panel"),[u,f]=S.useState(),[h,v]=S.useState(!0);S.useEffect(()=>{(async()=>{try{const[x,C]=await Promise.allSettled([ar.getInfo(),ar.getUiContributions()]);if(x.status==="fulfilled"?(c(x.value.logoName),f(x.value.logoIconUrl)):console.warn("Failed to fetch product info:",x.reason),C.status==="fulfilled"){const{plugins:R,menuItems:P}=C.value,M=new Set(R.map(A=>A.id));n(M),s(P);const E=[...xC];for(const[A,F]of Object.entries(kU))M.has(A)&&E.push(F);const I=[...P].sort((A,F)=>(A.order??100)-(F.order??100));for(const A of I)E.some(F=>F.route===A.route)||E.push({id:A.id,label:A.label,route:A.route,icon:A.icon||"extension"});e(E)}else console.warn("Failed to fetch UI contributions:",C.reason)}finally{v(!1)}})()},[]);const g=u?p.jsx("img",{src:u,alt:l,style:{width:32,height:32,objectFit:"contain"}}):void 0,y=p.jsx(BH,{icon:g,name:l});return h?p.jsx(be,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",bgcolor:"var(--theme-background, #1a1a2e)"}}):p.jsx(h3,{basename:Sk||void 0,children:p.jsx(lU,{children:p.jsx(NH,{config:sU,logo:y,footerContent:MU,enableScaffolding:!0,navigationItems:t,showThemeSwitcher:!0,showPaletteSwitcher:!0,children:p.jsxs(d3,{children:[p.jsx(Ma,{path:"/",element:p.jsx(gU,{})}),p.jsx(Ma,{path:"/logs",element:p.jsx(yU,{})}),p.jsx(Ma,{path:"/system",element:p.jsx(wU,{})}),r.has("users")&&p.jsx(Ma,{path:"/users",element:p.jsx(SU,{})}),r.has("entitlements")&&p.jsx(Ma,{path:"/entitlements",element:p.jsx(CU,{})}),o.filter(w=>!PU.has(w.route)).map(w=>p.jsx(Ma,{path:w.route,element:p.jsx(TU,{pluginId:w.pluginId,title:w.label,route:w.route})},w.id)),p.jsx(Ma,{path:"*",element:p.jsx(EU,{})})]})})})})}v4.createRoot(document.getElementById("root")).render(p.jsx(Mt.StrictMode,{children:p.jsx(IU,{})}));
465
+ //# sourceMappingURL=index-Bsp2ntcw.js.map