promptfoo 0.18.4 → 0.19.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 (156) hide show
  1. package/dist/package.json +10 -5
  2. package/dist/src/evaluator.d.ts.map +1 -1
  3. package/dist/src/evaluator.js +17 -9
  4. package/dist/src/evaluator.js.map +1 -1
  5. package/dist/src/index.d.ts +1 -0
  6. package/dist/src/index.d.ts.map +1 -1
  7. package/dist/src/index.js +3 -0
  8. package/dist/src/index.js.map +1 -1
  9. package/dist/src/main.js +2 -2
  10. package/dist/src/main.js.map +1 -1
  11. package/dist/src/providers.d.ts +1 -1
  12. package/dist/src/providers.d.ts.map +1 -1
  13. package/dist/src/providers.js +5 -0
  14. package/dist/src/providers.js.map +1 -1
  15. package/dist/src/share.d.ts.map +1 -1
  16. package/dist/src/share.js +8 -7
  17. package/dist/src/share.js.map +1 -1
  18. package/dist/src/types.d.ts +9 -1
  19. package/dist/src/types.d.ts.map +1 -1
  20. package/dist/src/web/nextui/404/index.html +1 -0
  21. package/dist/src/web/nextui/404.html +1 -0
  22. package/dist/src/web/nextui/_next/static/P9zzdx-rDJKPcGFq_qOXC/_buildManifest.js +1 -0
  23. package/dist/src/web/nextui/_next/static/P9zzdx-rDJKPcGFq_qOXC/_ssgManifest.js +1 -0
  24. package/dist/src/web/nextui/_next/static/chunks/121-54cee610700b4756.js +27 -0
  25. package/dist/src/web/nextui/_next/static/chunks/339-501c32916b785ef1.js +1 -0
  26. package/dist/src/web/nextui/_next/static/chunks/373-6a411db0b05027d3.js +1 -0
  27. package/dist/src/web/nextui/_next/static/chunks/583-507e6d8883bb85ff.js +1 -0
  28. package/dist/src/web/nextui/_next/static/chunks/596-9c29c47b8dee7a50.js +25 -0
  29. package/dist/src/web/nextui/_next/static/chunks/658-f8f9d18540505edc.js +15 -0
  30. package/dist/src/web/nextui/_next/static/chunks/858-7255df6dbc44dff9.js +125 -0
  31. package/dist/src/web/nextui/_next/static/chunks/97-64e11ce2b0607459.js +1 -0
  32. package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/not-found-366629541fd598e9.js +1 -0
  33. package/dist/src/web/nextui/_next/static/chunks/app/eval/[id]/page-655bc42ac68b25cc.js +1 -0
  34. package/dist/src/web/nextui/_next/static/chunks/app/eval/page-d5e8697859d6294e.js +1 -0
  35. package/dist/src/web/nextui/_next/static/chunks/app/layout-4c714b1a5a3a768d.js +1 -0
  36. package/dist/src/web/nextui/_next/static/chunks/app/page-4fe8a6342d24ca23.js +1 -0
  37. package/dist/src/web/nextui/_next/static/chunks/app/setup/page-cd35686fe6c12be8.js +1 -0
  38. package/dist/src/web/nextui/_next/static/chunks/fd9d1056-d8847af536b5787b.js +9 -0
  39. package/dist/src/web/nextui/_next/static/chunks/framework-8883d1e9be70c3da.js +25 -0
  40. package/dist/src/web/nextui/_next/static/chunks/main-0670de04b1c026b4.js +1 -0
  41. package/dist/src/web/nextui/_next/static/chunks/main-app-581ccf0003955b21.js +1 -0
  42. package/dist/src/web/nextui/_next/static/chunks/pages/_app-52924524f99094ab.js +1 -0
  43. package/dist/src/web/nextui/_next/static/chunks/pages/_error-c92d5c4bb2b49926.js +1 -0
  44. package/dist/src/web/nextui/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js +1 -0
  45. package/dist/src/web/nextui/_next/static/chunks/webpack-a886dd767c2e76b7.js +1 -0
  46. package/dist/src/web/nextui/_next/static/css/48d388184a2f4ce3.css +1 -0
  47. package/dist/src/web/nextui/_next/static/css/7265c36d84346934.css +1 -0
  48. package/dist/src/web/nextui/_next/static/css/8119d8bd13a8adab.css +1 -0
  49. package/dist/src/web/nextui/_next/static/css/a35c840ac696f161.css +1 -0
  50. package/dist/src/web/nextui/_next/static/css/e388dd377baf25ec.css +1 -0
  51. package/dist/src/web/nextui/_next/static/css/fc460b8a7cadb952.css +1 -0
  52. package/dist/src/web/nextui/_next/static/media/0e4fe491bf84089c-s.p.woff2 +0 -0
  53. package/dist/src/web/nextui/_next/static/media/1c57ca6f5208a29b-s.woff2 +0 -0
  54. package/dist/src/web/nextui/_next/static/media/3dbd163d3bb09d47-s.woff2 +0 -0
  55. package/dist/src/web/nextui/_next/static/media/42d52f46a26971a3-s.woff2 +0 -0
  56. package/dist/src/web/nextui/_next/static/media/5647e4c23315a2d2-s.woff2 +0 -0
  57. package/dist/src/web/nextui/_next/static/media/627622453ef56b0d-s.p.woff2 +0 -0
  58. package/dist/src/web/nextui/_next/static/media/7be645d133f3ee22-s.woff2 +0 -0
  59. package/dist/src/web/nextui/_next/static/media/7c53f7419436e04b-s.woff2 +0 -0
  60. package/dist/src/web/nextui/_next/static/media/8fb72f69fba4e3d2-s.woff2 +0 -0
  61. package/dist/src/web/nextui/_next/static/media/912a9cfe43c928d9-s.woff2 +0 -0
  62. package/dist/src/web/nextui/_next/static/media/934c4b7cb736f2a3-s.p.woff2 +0 -0
  63. package/dist/src/web/nextui/_next/static/media/a5b77b63ef20339c-s.woff2 +0 -0
  64. package/dist/src/web/nextui/_next/static/media/a6d330d7873e7320-s.woff2 +0 -0
  65. package/dist/src/web/nextui/_next/static/media/baf12dd90520ae41-s.woff2 +0 -0
  66. package/dist/src/web/nextui/_next/static/media/bbdb6f0234009aba-s.woff2 +0 -0
  67. package/dist/src/web/nextui/_next/static/media/cff529cd86cc0276-s.woff2 +0 -0
  68. package/dist/src/web/nextui/_next/static/media/d117eea74e01de14-s.woff2 +0 -0
  69. package/dist/src/web/nextui/_next/static/media/dfa8b99978df7bbc-s.woff2 +0 -0
  70. package/dist/src/web/nextui/_next/static/media/e25729ca87cc7df9-s.woff2 +0 -0
  71. package/dist/src/web/nextui/_next/static/media/eb52b768f62eeeb4-s.woff2 +0 -0
  72. package/dist/src/web/nextui/_next/static/media/f06116e890b3dadb-s.woff2 +0 -0
  73. package/dist/src/web/nextui/api +1 -0
  74. package/dist/src/web/nextui/eval/index.html +1 -0
  75. package/dist/src/web/nextui/eval/index.txt +13 -0
  76. package/dist/src/web/nextui/index.html +1 -0
  77. package/dist/src/web/nextui/index.txt +13 -0
  78. package/dist/src/web/nextui/setup/index.html +1 -0
  79. package/dist/src/web/nextui/setup/index.txt +14 -0
  80. package/dist/src/web/server.d.ts +1 -1
  81. package/dist/src/web/server.d.ts.map +1 -1
  82. package/dist/src/web/server.js +47 -4
  83. package/dist/src/web/server.js.map +1 -1
  84. package/package.json +10 -5
  85. package/src/evaluator.ts +17 -9
  86. package/src/index.ts +7 -1
  87. package/src/main.ts +3 -3
  88. package/src/providers.ts +11 -2
  89. package/src/share.ts +10 -8
  90. package/src/types.ts +10 -1
  91. package/src/web/nextui/.eslintrc.json +3 -0
  92. package/src/web/nextui/next.config.js +14 -0
  93. package/src/web/nextui/package-lock.json +4615 -0
  94. package/src/web/nextui/package.json +45 -0
  95. package/src/web/nextui/src/app/Home.css +3 -0
  96. package/src/web/nextui/src/app/api/route.ts +6 -0
  97. package/src/web/{client/src/NavBar.css → nextui/src/app/components/DarkMode.css} +1 -0
  98. package/src/web/{client/src/NavBar.tsx → nextui/src/app/components/DarkMode.tsx} +4 -9
  99. package/src/web/nextui/src/app/components/Logo.css +32 -0
  100. package/src/web/nextui/src/app/components/PageShell.css +33 -0
  101. package/src/web/nextui/src/app/components/PageShell.tsx +87 -0
  102. package/src/web/{client/src → nextui/src/app/eval}/ConfigModal.tsx +8 -5
  103. package/src/web/nextui/src/app/eval/Eval.css +13 -0
  104. package/src/web/nextui/src/app/eval/Eval.tsx +79 -0
  105. package/src/web/{client/src → nextui/src/app/eval}/EvalOutputPromptDialog.tsx +2 -2
  106. package/src/web/{client/src → nextui/src/app/eval}/ResultsTable.css +10 -12
  107. package/src/web/{client/src → nextui/src/app/eval}/ResultsTable.tsx +57 -14
  108. package/src/web/{client/src → nextui/src/app/eval}/ResultsView.tsx +4 -4
  109. package/src/web/nextui/src/app/eval/[id]/not-found.tsx +5 -0
  110. package/src/web/nextui/src/app/eval/[id]/page.css +9 -0
  111. package/src/web/nextui/src/app/eval/[id]/page.tsx +20 -0
  112. package/src/web/nextui/src/app/eval/index.css +0 -0
  113. package/src/web/nextui/src/app/eval/page.tsx +8 -0
  114. package/src/web/{client/src → nextui/src/app/eval}/store.ts +2 -2
  115. package/src/web/nextui/src/app/eval/types.ts +20 -0
  116. package/src/web/{client/src/index.css → nextui/src/app/globals.css} +21 -3
  117. package/src/web/nextui/src/app/layout.tsx +25 -0
  118. package/src/web/nextui/src/app/page.tsx +7 -0
  119. package/src/web/nextui/src/app/setup/AssertsForm.tsx +118 -0
  120. package/src/web/nextui/src/app/setup/PromptDialog.tsx +77 -0
  121. package/src/web/nextui/src/app/setup/PromptsSection.tsx +190 -0
  122. package/src/web/nextui/src/app/setup/ProviderConfigDialog.tsx +99 -0
  123. package/src/web/nextui/src/app/setup/ProviderSelector.tsx +149 -0
  124. package/src/web/nextui/src/app/setup/RunTestSuiteButton.tsx +88 -0
  125. package/src/web/nextui/src/app/setup/TestCaseDialog.tsx +108 -0
  126. package/src/web/nextui/src/app/setup/TestCasesSection.tsx +154 -0
  127. package/src/web/nextui/src/app/setup/VarsForm.tsx +57 -0
  128. package/src/web/nextui/src/app/setup/page.css +3 -0
  129. package/src/web/nextui/src/app/setup/page.tsx +160 -0
  130. package/src/web/nextui/src/util/api.ts +1 -0
  131. package/src/web/nextui/src/util/store.ts +53 -0
  132. package/src/web/nextui/tsconfig.json +28 -0
  133. package/src/web/server.ts +56 -2
  134. package/dist/src/web/client/assets/index-6d2a3573.js +0 -200
  135. package/dist/src/web/client/assets/index-d2b6a160.css +0 -1
  136. package/dist/src/web/client/assets/js-yaml-8bbf9398.js +0 -32
  137. package/dist/src/web/client/index.html +0 -15
  138. package/src/web/client/.eslintrc.cjs +0 -14
  139. package/src/web/client/index.html +0 -13
  140. package/src/web/client/package-lock.json +0 -5726
  141. package/src/web/client/package.json +0 -39
  142. package/src/web/client/src/App.css +0 -4
  143. package/src/web/client/src/App.tsx +0 -120
  144. package/src/web/client/src/Logo.css +0 -18
  145. package/src/web/client/src/main.tsx +0 -10
  146. package/src/web/client/src/types.ts +0 -36
  147. package/src/web/client/src/vite-env.d.ts +0 -1
  148. package/src/web/client/tsconfig.json +0 -24
  149. package/src/web/client/tsconfig.node.json +0 -10
  150. package/src/web/client/vite.config.ts +0 -7
  151. /package/dist/src/web/{client → nextui}/favicon.ico +0 -0
  152. /package/dist/src/web/{client → nextui}/logo.svg +0 -0
  153. /package/src/web/{client → nextui}/public/favicon.ico +0 -0
  154. /package/src/web/{client → nextui}/public/logo.svg +0 -0
  155. /package/src/web/{client/src → nextui/src/app/components}/Logo.tsx +0 -0
  156. /package/src/web/{client/src → nextui/src/app/eval}/ShareModal.tsx +0 -0
@@ -1,200 +0,0 @@
1
- function mx(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function af(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gx(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Zg={exports:{}},Ta={},Jg={exports:{}},xe={};/**
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 Ms=Symbol.for("react.element"),vx=Symbol.for("react.portal"),yx=Symbol.for("react.fragment"),xx=Symbol.for("react.strict_mode"),bx=Symbol.for("react.profiler"),Sx=Symbol.for("react.provider"),wx=Symbol.for("react.context"),Cx=Symbol.for("react.forward_ref"),kx=Symbol.for("react.suspense"),Rx=Symbol.for("react.memo"),$x=Symbol.for("react.lazy"),sh=Symbol.iterator;function Ex(e){return e===null||typeof e!="object"?null:(e=sh&&e[sh]||e["@@iterator"],typeof e=="function"?e:null)}var ev={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tv=Object.assign,nv={};function ii(e,t,n){this.props=e,this.context=t,this.refs=nv,this.updater=n||ev}ii.prototype.isReactComponent={};ii.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};ii.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rv(){}rv.prototype=ii.prototype;function uf(e,t,n){this.props=e,this.context=t,this.refs=nv,this.updater=n||ev}var cf=uf.prototype=new rv;cf.constructor=uf;tv(cf,ii.prototype);cf.isPureReactComponent=!0;var lh=Array.isArray,ov=Object.prototype.hasOwnProperty,df={current:null},iv={key:!0,ref:!0,__self:!0,__source:!0};function sv(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)ov.call(t,r)&&!iv.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Ms,type:e,key:i,ref:s,props:o,_owner:df.current}}function Px(e,t){return{$$typeof:Ms,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ff(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ms}function _x(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ah=/\/+/g;function Yu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_x(""+e.key):t.toString(36)}function Rl(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ms:case vx:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Yu(s,0):r,lh(o)?(n="",e!=null&&(n=e.replace(ah,"$&/")+"/"),Rl(o,t,n,"",function(u){return u})):o!=null&&(ff(o)&&(o=Px(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(ah,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",lh(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+Yu(i,l);s+=Rl(i,t,n,a,o)}else if(a=Ex(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+Yu(i,l++),s+=Rl(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Gs(e,t,n){if(e==null)return e;var r=[],o=0;return Rl(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Tx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var kt={current:null},$l={transition:null},Mx={ReactCurrentDispatcher:kt,ReactCurrentBatchConfig:$l,ReactCurrentOwner:df};xe.Children={map:Gs,forEach:function(e,t,n){Gs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gs(e,function(){t++}),t},toArray:function(e){return Gs(e,function(t){return t})||[]},only:function(e){if(!ff(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xe.Component=ii;xe.Fragment=yx;xe.Profiler=bx;xe.PureComponent=uf;xe.StrictMode=xx;xe.Suspense=kx;xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mx;xe.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=tv({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=df.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)ov.call(t,a)&&!iv.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Ms,type:e.type,key:o,ref:i,props:r,_owner:s}};xe.createContext=function(e){return e={$$typeof:wx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Sx,_context:e},e.Consumer=e};xe.createElement=sv;xe.createFactory=function(e){var t=sv.bind(null,e);return t.type=e,t};xe.createRef=function(){return{current:null}};xe.forwardRef=function(e){return{$$typeof:Cx,render:e}};xe.isValidElement=ff;xe.lazy=function(e){return{$$typeof:$x,_payload:{_status:-1,_result:e},_init:Tx}};xe.memo=function(e,t){return{$$typeof:Rx,type:e,compare:t===void 0?null:t}};xe.startTransition=function(e){var t=$l.transition;$l.transition={};try{e()}finally{$l.transition=t}};xe.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};xe.useCallback=function(e,t){return kt.current.useCallback(e,t)};xe.useContext=function(e){return kt.current.useContext(e)};xe.useDebugValue=function(){};xe.useDeferredValue=function(e){return kt.current.useDeferredValue(e)};xe.useEffect=function(e,t){return kt.current.useEffect(e,t)};xe.useId=function(){return kt.current.useId()};xe.useImperativeHandle=function(e,t,n){return kt.current.useImperativeHandle(e,t,n)};xe.useInsertionEffect=function(e,t){return kt.current.useInsertionEffect(e,t)};xe.useLayoutEffect=function(e,t){return kt.current.useLayoutEffect(e,t)};xe.useMemo=function(e,t){return kt.current.useMemo(e,t)};xe.useReducer=function(e,t,n){return kt.current.useReducer(e,t,n)};xe.useRef=function(e){return kt.current.useRef(e)};xe.useState=function(e){return kt.current.useState(e)};xe.useSyncExternalStore=function(e,t,n){return kt.current.useSyncExternalStore(e,t,n)};xe.useTransition=function(){return kt.current.useTransition()};xe.version="18.2.0";Jg.exports=xe;var w=Jg.exports;const wt=af(w),ql=mx({__proto__:null,default:wt},[w]);/**
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 Ox=w,Ix=Symbol.for("react.element"),Ax=Symbol.for("react.fragment"),Fx=Object.prototype.hasOwnProperty,Lx=Ox.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Nx={key:!0,ref:!0,__self:!0,__source:!0};function lv(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Fx.call(t,r)&&!Nx.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Ix,type:e,key:i,ref:s,props:o,_owner:Lx.current}}Ta.Fragment=Ax;Ta.jsx=lv;Ta.jsxs=lv;Zg.exports=Ta;var b=Zg.exports,Hc={},av={exports:{}},Kt={},uv={exports:{}},cv={};/**
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
- */(function(e){function t(M,L){var F=M.length;M.push(L);e:for(;0<F;){var X=F-1>>>1,G=M[X];if(0<o(G,L))M[X]=L,M[F]=G,F=X;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var L=M[0],F=M.pop();if(F!==L){M[0]=F;e:for(var X=0,G=M.length,oe=G>>>1;X<oe;){var te=2*(X+1)-1,Z=M[te],se=te+1,Ce=M[se];if(0>o(Z,F))se<G&&0>o(Ce,Z)?(M[X]=Ce,M[se]=F,X=se):(M[X]=Z,M[te]=F,X=te);else if(se<G&&0>o(Ce,F))M[X]=Ce,M[se]=F,X=se;else break e}}return L}function o(M,L){var F=M.sortIndex-L.sortIndex;return F!==0?F:M.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,d=null,f=3,h=!1,y=!1,m=!1,k=typeof setTimeout=="function"?setTimeout:null,g=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 v(M){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=M)r(u),L.sortIndex=L.expirationTime,t(a,L);else break;L=n(u)}}function x(M){if(m=!1,v(M),!y)if(n(a)!==null)y=!0,O(C);else{var L=n(u);L!==null&&N(x,L.startTime-M)}}function C(M,L){y=!1,m&&(m=!1,g(E),E=-1),h=!0;var F=f;try{for(v(L),d=n(a);d!==null&&(!(d.expirationTime>L)||M&&!I());){var X=d.callback;if(typeof X=="function"){d.callback=null,f=d.priorityLevel;var G=X(d.expirationTime<=L);L=e.unstable_now(),typeof G=="function"?d.callback=G:d===n(a)&&r(a),v(L)}else r(a);d=n(a)}if(d!==null)var oe=!0;else{var te=n(u);te!==null&&N(x,te.startTime-L),oe=!1}return oe}finally{d=null,f=F,h=!1}}var R=!1,$=null,E=-1,_=5,P=-1;function I(){return!(e.unstable_now()-P<_)}function j(){if($!==null){var M=e.unstable_now();P=M;var L=!0;try{L=$(!0,M)}finally{L?D():(R=!1,$=null)}}else R=!1}var D;if(typeof p=="function")D=function(){p(j)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,T=A.port2;A.port1.onmessage=j,D=function(){T.postMessage(null)}}else D=function(){k(j,0)};function O(M){$=M,R||(R=!0,D())}function N(M,L){E=k(function(){M(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,O(C))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(M){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var F=f;f=L;try{return M()}finally{f=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,L){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var F=f;f=M;try{return L()}finally{f=F}},e.unstable_scheduleCallback=function(M,L,F){var X=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?X+F:X):F=X,M){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=F+G,M={id:c++,callback:L,priorityLevel:M,startTime:F,expirationTime:G,sortIndex:-1},F>X?(M.sortIndex=F,t(u,M),n(a)===null&&M===n(u)&&(m?(g(E),E=-1):m=!0,N(x,F-X))):(M.sortIndex=G,t(a,M),y||h||(y=!0,O(C))),M},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(M){var L=f;return function(){var F=f;f=L;try{return M.apply(this,arguments)}finally{f=F}}}})(cv);uv.exports=cv;var zx=uv.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 dv=w,Wt=zx;function z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var fv=new Set,ls={};function to(e,t){Uo(e,t),Uo(e+"Capture",t)}function Uo(e,t){for(ls[e]=t,e=0;e<t.length;e++)fv.add(t[e])}var qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uc=Object.prototype.hasOwnProperty,Dx=/^[: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]*$/,uh={},ch={};function jx(e){return Uc.call(ch,e)?!0:Uc.call(uh,e)?!1:Dx.test(e)?ch[e]=!0:(uh[e]=!0,!1)}function Bx(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Vx(e,t,n,r){if(t===null||typeof t>"u"||Bx(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Rt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ht[e]=new Rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ht[t]=new Rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ht[e]=new Rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ht[e]=new Rt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ht[e]=new Rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ht[e]=new Rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ht[e]=new Rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ht[e]=new Rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ht[e]=new Rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var pf=/[\-:]([a-z])/g;function hf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(pf,hf);ht[t]=new Rt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(pf,hf);ht[t]=new Rt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(pf,hf);ht[t]=new Rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ht[e]=new Rt(e,1,!1,e.toLowerCase(),null,!1,!1)});ht.xlinkHref=new Rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ht[e]=new Rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function mf(e,t,n,r){var o=ht.hasOwnProperty(t)?ht[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Vx(t,n,o,r)&&(n=null),r||o===null?jx(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Jn=dv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ks=Symbol.for("react.element"),ko=Symbol.for("react.portal"),Ro=Symbol.for("react.fragment"),gf=Symbol.for("react.strict_mode"),Wc=Symbol.for("react.profiler"),pv=Symbol.for("react.provider"),hv=Symbol.for("react.context"),vf=Symbol.for("react.forward_ref"),Gc=Symbol.for("react.suspense"),Kc=Symbol.for("react.suspense_list"),yf=Symbol.for("react.memo"),or=Symbol.for("react.lazy"),mv=Symbol.for("react.offscreen"),dh=Symbol.iterator;function vi(e){return e===null||typeof e!="object"?null:(e=dh&&e[dh]||e["@@iterator"],typeof e=="function"?e:null)}var Ve=Object.assign,Xu;function zi(e){if(Xu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Xu=t&&t[1]||""}return`
34
- `+Xu+e}var Qu=!1;function Zu(e,t){if(!e||Qu)return"";Qu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
35
- `),i=r.stack.split(`
36
- `),s=o.length-1,l=i.length-1;1<=s&&0<=l&&o[s]!==i[l];)l--;for(;1<=s&&0<=l;s--,l--)if(o[s]!==i[l]){if(s!==1||l!==1)do if(s--,l--,0>l||o[s]!==i[l]){var a=`
37
- `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Qu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zi(e):""}function Hx(e){switch(e.tag){case 5:return zi(e.type);case 16:return zi("Lazy");case 13:return zi("Suspense");case 19:return zi("SuspenseList");case 0:case 2:case 15:return e=Zu(e.type,!1),e;case 11:return e=Zu(e.type.render,!1),e;case 1:return e=Zu(e.type,!0),e;default:return""}}function qc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ro:return"Fragment";case ko:return"Portal";case Wc:return"Profiler";case gf:return"StrictMode";case Gc:return"Suspense";case Kc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hv:return(e.displayName||"Context")+".Consumer";case pv:return(e._context.displayName||"Context")+".Provider";case vf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yf:return t=e.displayName||null,t!==null?t:qc(e.type)||"Memo";case or:t=e._payload,e=e._init;try{return qc(e(t))}catch{}}return null}function Ux(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return qc(t);case 8:return t===gf?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Sr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Wx(e){var t=gv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qs(e){e._valueTracker||(e._valueTracker=Wx(e))}function vv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Yc(e,t){var n=t.checked;return Ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yv(e,t){t=t.checked,t!=null&&mf(e,"checked",t,!1)}function Xc(e,t){yv(e,t);var n=Sr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Qc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qc(e,t.type,Sr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ph(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Qc(e,t,n){(t!=="number"||Yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Di=Array.isArray;function Lo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Sr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Zc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(z(91));return Ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(z(92));if(Di(n)){if(1<n.length)throw Error(z(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Sr(n)}}function xv(e,t){var n=Sr(t.value),r=Sr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function mh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function bv(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Jc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?bv(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ys,Sv=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ys=Ys||document.createElement("div"),Ys.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ys.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function as(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gi={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},Gx=["Webkit","ms","Moz","O"];Object.keys(Gi).forEach(function(e){Gx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gi[t]=Gi[e]})});function wv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gi.hasOwnProperty(e)&&Gi[e]?(""+t).trim():t+"px"}function Cv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=wv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Kx=Ve({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 ed(e,t){if(t){if(Kx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function td(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nd=null;function xf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rd=null,No=null,zo=null;function gh(e){if(e=As(e)){if(typeof rd!="function")throw Error(z(280));var t=e.stateNode;t&&(t=Fa(t),rd(e.stateNode,e.type,t))}}function kv(e){No?zo?zo.push(e):zo=[e]:No=e}function Rv(){if(No){var e=No,t=zo;if(zo=No=null,gh(e),t)for(e=0;e<t.length;e++)gh(t[e])}}function $v(e,t){return e(t)}function Ev(){}var Ju=!1;function Pv(e,t,n){if(Ju)return e(t,n);Ju=!0;try{return $v(e,t,n)}finally{Ju=!1,(No!==null||zo!==null)&&(Ev(),Rv())}}function us(e,t){var n=e.stateNode;if(n===null)return null;var r=Fa(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(z(231,t,typeof n));return n}var od=!1;if(qn)try{var yi={};Object.defineProperty(yi,"passive",{get:function(){od=!0}}),window.addEventListener("test",yi,yi),window.removeEventListener("test",yi,yi)}catch{od=!1}function qx(e,t,n,r,o,i,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ki=!1,Xl=null,Ql=!1,id=null,Yx={onError:function(e){Ki=!0,Xl=e}};function Xx(e,t,n,r,o,i,s,l,a){Ki=!1,Xl=null,qx.apply(Yx,arguments)}function Qx(e,t,n,r,o,i,s,l,a){if(Xx.apply(this,arguments),Ki){if(Ki){var u=Xl;Ki=!1,Xl=null}else throw Error(z(198));Ql||(Ql=!0,id=u)}}function no(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function _v(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function vh(e){if(no(e)!==e)throw Error(z(188))}function Zx(e){var t=e.alternate;if(!t){if(t=no(e),t===null)throw Error(z(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return vh(o),e;if(i===r)return vh(o),t;i=i.sibling}throw Error(z(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(z(189))}}if(n.alternate!==r)throw Error(z(190))}if(n.tag!==3)throw Error(z(188));return n.stateNode.current===n?e:t}function Tv(e){return e=Zx(e),e!==null?Mv(e):null}function Mv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Mv(e);if(t!==null)return t;e=e.sibling}return null}var Ov=Wt.unstable_scheduleCallback,yh=Wt.unstable_cancelCallback,Jx=Wt.unstable_shouldYield,eb=Wt.unstable_requestPaint,Ye=Wt.unstable_now,tb=Wt.unstable_getCurrentPriorityLevel,bf=Wt.unstable_ImmediatePriority,Iv=Wt.unstable_UserBlockingPriority,Zl=Wt.unstable_NormalPriority,nb=Wt.unstable_LowPriority,Av=Wt.unstable_IdlePriority,Ma=null,In=null;function rb(e){if(In&&typeof In.onCommitFiberRoot=="function")try{In.onCommitFiberRoot(Ma,e,void 0,(e.current.flags&128)===128)}catch{}}var Sn=Math.clz32?Math.clz32:sb,ob=Math.log,ib=Math.LN2;function sb(e){return e>>>=0,e===0?32:31-(ob(e)/ib|0)|0}var Xs=64,Qs=4194304;function ji(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Jl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=ji(l):(i&=s,i!==0&&(r=ji(i)))}else s=n&~o,s!==0?r=ji(s):i!==0&&(r=ji(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Sn(t),o=1<<n,r|=e[n],t&=~o;return r}function lb(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 ab(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Sn(i),l=1<<s,a=o[s];a===-1?(!(l&n)||l&r)&&(o[s]=lb(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function sd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Fv(){var e=Xs;return Xs<<=1,!(Xs&4194240)&&(Xs=64),e}function ec(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Os(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Sn(t),e[t]=n}function ub(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Sn(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Sf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Sn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Te=0;function Lv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Nv,wf,zv,Dv,jv,ld=!1,Zs=[],fr=null,pr=null,hr=null,cs=new Map,ds=new Map,sr=[],cb="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 xh(e,t){switch(e){case"focusin":case"focusout":fr=null;break;case"dragenter":case"dragleave":pr=null;break;case"mouseover":case"mouseout":hr=null;break;case"pointerover":case"pointerout":cs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ds.delete(t.pointerId)}}function xi(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=As(t),t!==null&&wf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function db(e,t,n,r,o){switch(t){case"focusin":return fr=xi(fr,e,t,n,r,o),!0;case"dragenter":return pr=xi(pr,e,t,n,r,o),!0;case"mouseover":return hr=xi(hr,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return cs.set(i,xi(cs.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ds.set(i,xi(ds.get(i)||null,e,t,n,r,o)),!0}return!1}function Bv(e){var t=Dr(e.target);if(t!==null){var n=no(t);if(n!==null){if(t=n.tag,t===13){if(t=_v(n),t!==null){e.blockedOn=t,jv(e.priority,function(){zv(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function El(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ad(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);nd=r,n.target.dispatchEvent(r),nd=null}else return t=As(n),t!==null&&wf(t),e.blockedOn=n,!1;t.shift()}return!0}function bh(e,t,n){El(e)&&n.delete(t)}function fb(){ld=!1,fr!==null&&El(fr)&&(fr=null),pr!==null&&El(pr)&&(pr=null),hr!==null&&El(hr)&&(hr=null),cs.forEach(bh),ds.forEach(bh)}function bi(e,t){e.blockedOn===t&&(e.blockedOn=null,ld||(ld=!0,Wt.unstable_scheduleCallback(Wt.unstable_NormalPriority,fb)))}function fs(e){function t(o){return bi(o,e)}if(0<Zs.length){bi(Zs[0],e);for(var n=1;n<Zs.length;n++){var r=Zs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(fr!==null&&bi(fr,e),pr!==null&&bi(pr,e),hr!==null&&bi(hr,e),cs.forEach(t),ds.forEach(t),n=0;n<sr.length;n++)r=sr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<sr.length&&(n=sr[0],n.blockedOn===null);)Bv(n),n.blockedOn===null&&sr.shift()}var Do=Jn.ReactCurrentBatchConfig,ea=!0;function pb(e,t,n,r){var o=Te,i=Do.transition;Do.transition=null;try{Te=1,Cf(e,t,n,r)}finally{Te=o,Do.transition=i}}function hb(e,t,n,r){var o=Te,i=Do.transition;Do.transition=null;try{Te=4,Cf(e,t,n,r)}finally{Te=o,Do.transition=i}}function Cf(e,t,n,r){if(ea){var o=ad(e,t,n,r);if(o===null)cc(e,t,r,ta,n),xh(e,r);else if(db(o,e,t,n,r))r.stopPropagation();else if(xh(e,r),t&4&&-1<cb.indexOf(e)){for(;o!==null;){var i=As(o);if(i!==null&&Nv(i),i=ad(e,t,n,r),i===null&&cc(e,t,r,ta,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else cc(e,t,r,null,n)}}var ta=null;function ad(e,t,n,r){if(ta=null,e=xf(r),e=Dr(e),e!==null)if(t=no(e),t===null)e=null;else if(n=t.tag,n===13){if(e=_v(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ta=e,null}function Vv(e){switch(e){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(tb()){case bf:return 1;case Iv:return 4;case Zl:case nb:return 16;case Av:return 536870912;default:return 16}default:return 16}}var ar=null,kf=null,Pl=null;function Hv(){if(Pl)return Pl;var e,t=kf,n=t.length,r,o="value"in ar?ar.value:ar.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return Pl=o.slice(e,1<r?1-r:void 0)}function _l(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Js(){return!0}function Sh(){return!1}function qt(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Js:Sh,this.isPropagationStopped=Sh,this}return Ve(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Js)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Js)},persist:function(){},isPersistent:Js}),t}var si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rf=qt(si),Is=Ve({},si,{view:0,detail:0}),mb=qt(Is),tc,nc,Si,Oa=Ve({},Is,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$f,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Si&&(Si&&e.type==="mousemove"?(tc=e.screenX-Si.screenX,nc=e.screenY-Si.screenY):nc=tc=0,Si=e),tc)},movementY:function(e){return"movementY"in e?e.movementY:nc}}),wh=qt(Oa),gb=Ve({},Oa,{dataTransfer:0}),vb=qt(gb),yb=Ve({},Is,{relatedTarget:0}),rc=qt(yb),xb=Ve({},si,{animationName:0,elapsedTime:0,pseudoElement:0}),bb=qt(xb),Sb=Ve({},si,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wb=qt(Sb),Cb=Ve({},si,{data:0}),Ch=qt(Cb),kb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rb={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"},$b={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Eb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$b[e])?!!t[e]:!1}function $f(){return Eb}var Pb=Ve({},Is,{key:function(e){if(e.key){var t=kb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_l(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Rb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$f,charCode:function(e){return e.type==="keypress"?_l(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_l(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_b=qt(Pb),Tb=Ve({},Oa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kh=qt(Tb),Mb=Ve({},Is,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$f}),Ob=qt(Mb),Ib=Ve({},si,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ab=qt(Ib),Fb=Ve({},Oa,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Lb=qt(Fb),Nb=[9,13,27,32],Ef=qn&&"CompositionEvent"in window,qi=null;qn&&"documentMode"in document&&(qi=document.documentMode);var zb=qn&&"TextEvent"in window&&!qi,Uv=qn&&(!Ef||qi&&8<qi&&11>=qi),Rh=String.fromCharCode(32),$h=!1;function Wv(e,t){switch(e){case"keyup":return Nb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $o=!1;function Db(e,t){switch(e){case"compositionend":return Gv(t);case"keypress":return t.which!==32?null:($h=!0,Rh);case"textInput":return e=t.data,e===Rh&&$h?null:e;default:return null}}function jb(e,t){if($o)return e==="compositionend"||!Ef&&Wv(e,t)?(e=Hv(),Pl=kf=ar=null,$o=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Uv&&t.locale!=="ko"?null:t.data;default:return null}}var Bb={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 Eh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Bb[e.type]:t==="textarea"}function Kv(e,t,n,r){kv(r),t=na(t,"onChange"),0<t.length&&(n=new Rf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yi=null,ps=null;function Vb(e){o0(e,0)}function Ia(e){var t=_o(e);if(vv(t))return e}function Hb(e,t){if(e==="change")return t}var qv=!1;if(qn){var oc;if(qn){var ic="oninput"in document;if(!ic){var Ph=document.createElement("div");Ph.setAttribute("oninput","return;"),ic=typeof Ph.oninput=="function"}oc=ic}else oc=!1;qv=oc&&(!document.documentMode||9<document.documentMode)}function _h(){Yi&&(Yi.detachEvent("onpropertychange",Yv),ps=Yi=null)}function Yv(e){if(e.propertyName==="value"&&Ia(ps)){var t=[];Kv(t,ps,e,xf(e)),Pv(Vb,t)}}function Ub(e,t,n){e==="focusin"?(_h(),Yi=t,ps=n,Yi.attachEvent("onpropertychange",Yv)):e==="focusout"&&_h()}function Wb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ia(ps)}function Gb(e,t){if(e==="click")return Ia(t)}function Kb(e,t){if(e==="input"||e==="change")return Ia(t)}function qb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kn=typeof Object.is=="function"?Object.is:qb;function hs(e,t){if(kn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Uc.call(t,o)||!kn(e[o],t[o]))return!1}return!0}function Th(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mh(e,t){var n=Th(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Th(n)}}function Xv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qv(){for(var e=window,t=Yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yl(e.document)}return t}function Pf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Yb(e){var t=Qv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xv(n.ownerDocument.documentElement,n)){if(r!==null&&Pf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Mh(n,i);var s=Mh(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Xb=qn&&"documentMode"in document&&11>=document.documentMode,Eo=null,ud=null,Xi=null,cd=!1;function Oh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cd||Eo==null||Eo!==Yl(r)||(r=Eo,"selectionStart"in r&&Pf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xi&&hs(Xi,r)||(Xi=r,r=na(ud,"onSelect"),0<r.length&&(t=new Rf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Eo)))}function el(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Po={animationend:el("Animation","AnimationEnd"),animationiteration:el("Animation","AnimationIteration"),animationstart:el("Animation","AnimationStart"),transitionend:el("Transition","TransitionEnd")},sc={},Zv={};qn&&(Zv=document.createElement("div").style,"AnimationEvent"in window||(delete Po.animationend.animation,delete Po.animationiteration.animation,delete Po.animationstart.animation),"TransitionEvent"in window||delete Po.transitionend.transition);function Aa(e){if(sc[e])return sc[e];if(!Po[e])return e;var t=Po[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zv)return sc[e]=t[n];return e}var Jv=Aa("animationend"),e0=Aa("animationiteration"),t0=Aa("animationstart"),n0=Aa("transitionend"),r0=new Map,Ih="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 $r(e,t){r0.set(e,t),to(t,[e])}for(var lc=0;lc<Ih.length;lc++){var ac=Ih[lc],Qb=ac.toLowerCase(),Zb=ac[0].toUpperCase()+ac.slice(1);$r(Qb,"on"+Zb)}$r(Jv,"onAnimationEnd");$r(e0,"onAnimationIteration");$r(t0,"onAnimationStart");$r("dblclick","onDoubleClick");$r("focusin","onFocus");$r("focusout","onBlur");$r(n0,"onTransitionEnd");Uo("onMouseEnter",["mouseout","mouseover"]);Uo("onMouseLeave",["mouseout","mouseover"]);Uo("onPointerEnter",["pointerout","pointerover"]);Uo("onPointerLeave",["pointerout","pointerover"]);to("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));to("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));to("onBeforeInput",["compositionend","keypress","textInput","paste"]);to("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));to("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));to("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bi="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(" "),Jb=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bi));function Ah(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Qx(r,t,void 0,e),e.currentTarget=null}function o0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==i&&o.isPropagationStopped())break e;Ah(o,l,u),i=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==i&&o.isPropagationStopped())break e;Ah(o,l,u),i=a}}}if(Ql)throw e=id,Ql=!1,id=null,e}function Fe(e,t){var n=t[md];n===void 0&&(n=t[md]=new Set);var r=e+"__bubble";n.has(r)||(i0(t,e,2,!1),n.add(r))}function uc(e,t,n){var r=0;t&&(r|=4),i0(n,e,r,t)}var tl="_reactListening"+Math.random().toString(36).slice(2);function ms(e){if(!e[tl]){e[tl]=!0,fv.forEach(function(n){n!=="selectionchange"&&(Jb.has(n)||uc(n,!1,e),uc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tl]||(t[tl]=!0,uc("selectionchange",!1,t))}}function i0(e,t,n,r){switch(Vv(t)){case 1:var o=pb;break;case 4:o=hb;break;default:o=Cf}n=o.bind(null,t,n,e),o=void 0,!od||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function cc(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;s=s.return}for(;l!==null;){if(s=Dr(l),s===null)return;if(a=s.tag,a===5||a===6){r=i=s;continue e}l=l.parentNode}}r=r.return}Pv(function(){var u=i,c=xf(n),d=[];e:{var f=r0.get(e);if(f!==void 0){var h=Rf,y=e;switch(e){case"keypress":if(_l(n)===0)break e;case"keydown":case"keyup":h=_b;break;case"focusin":y="focus",h=rc;break;case"focusout":y="blur",h=rc;break;case"beforeblur":case"afterblur":h=rc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=wh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=vb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Ob;break;case Jv:case e0:case t0:h=bb;break;case n0:h=Ab;break;case"scroll":h=mb;break;case"wheel":h=Lb;break;case"copy":case"cut":case"paste":h=wb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=kh}var m=(t&4)!==0,k=!m&&e==="scroll",g=m?f!==null?f+"Capture":null:f;m=[];for(var p=u,v;p!==null;){v=p;var x=v.stateNode;if(v.tag===5&&x!==null&&(v=x,g!==null&&(x=us(p,g),x!=null&&m.push(gs(p,x,v)))),k)break;p=p.return}0<m.length&&(f=new h(f,y,null,n,c),d.push({event:f,listeners:m}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==nd&&(y=n.relatedTarget||n.fromElement)&&(Dr(y)||y[Yn]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(y=n.relatedTarget||n.toElement,h=u,y=y?Dr(y):null,y!==null&&(k=no(y),y!==k||y.tag!==5&&y.tag!==6)&&(y=null)):(h=null,y=u),h!==y)){if(m=wh,x="onMouseLeave",g="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(m=kh,x="onPointerLeave",g="onPointerEnter",p="pointer"),k=h==null?f:_o(h),v=y==null?f:_o(y),f=new m(x,p+"leave",h,n,c),f.target=k,f.relatedTarget=v,x=null,Dr(c)===u&&(m=new m(g,p+"enter",y,n,c),m.target=v,m.relatedTarget=k,x=m),k=x,h&&y)t:{for(m=h,g=y,p=0,v=m;v;v=mo(v))p++;for(v=0,x=g;x;x=mo(x))v++;for(;0<p-v;)m=mo(m),p--;for(;0<v-p;)g=mo(g),v--;for(;p--;){if(m===g||g!==null&&m===g.alternate)break t;m=mo(m),g=mo(g)}m=null}else m=null;h!==null&&Fh(d,f,h,m,!1),y!==null&&k!==null&&Fh(d,k,y,m,!0)}}e:{if(f=u?_o(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var C=Hb;else if(Eh(f))if(qv)C=Kb;else{C=Wb;var R=Ub}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=Gb);if(C&&(C=C(e,u))){Kv(d,C,n,c);break e}R&&R(e,f,u),e==="focusout"&&(R=f._wrapperState)&&R.controlled&&f.type==="number"&&Qc(f,"number",f.value)}switch(R=u?_o(u):window,e){case"focusin":(Eh(R)||R.contentEditable==="true")&&(Eo=R,ud=u,Xi=null);break;case"focusout":Xi=ud=Eo=null;break;case"mousedown":cd=!0;break;case"contextmenu":case"mouseup":case"dragend":cd=!1,Oh(d,n,c);break;case"selectionchange":if(Xb)break;case"keydown":case"keyup":Oh(d,n,c)}var $;if(Ef)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else $o?Wv(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Uv&&n.locale!=="ko"&&($o||E!=="onCompositionStart"?E==="onCompositionEnd"&&$o&&($=Hv()):(ar=c,kf="value"in ar?ar.value:ar.textContent,$o=!0)),R=na(u,E),0<R.length&&(E=new Ch(E,e,null,n,c),d.push({event:E,listeners:R}),$?E.data=$:($=Gv(n),$!==null&&(E.data=$)))),($=zb?Db(e,n):jb(e,n))&&(u=na(u,"onBeforeInput"),0<u.length&&(c=new Ch("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=$))}o0(d,t)})}function gs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function na(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=us(e,n),i!=null&&r.unshift(gs(e,i,o)),i=us(e,t),i!=null&&r.push(gs(e,i,o))),e=e.return}return r}function mo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Fh(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,o?(a=us(n,i),a!=null&&s.unshift(gs(n,a,l))):o||(a=us(n,i),a!=null&&s.push(gs(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var eS=/\r\n?/g,tS=/\u0000|\uFFFD/g;function Lh(e){return(typeof e=="string"?e:""+e).replace(eS,`
38
- `).replace(tS,"")}function nl(e,t,n){if(t=Lh(t),Lh(e)!==t&&n)throw Error(z(425))}function ra(){}var dd=null,fd=null;function pd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hd=typeof setTimeout=="function"?setTimeout:void 0,nS=typeof clearTimeout=="function"?clearTimeout:void 0,Nh=typeof Promise=="function"?Promise:void 0,rS=typeof queueMicrotask=="function"?queueMicrotask:typeof Nh<"u"?function(e){return Nh.resolve(null).then(e).catch(oS)}:hd;function oS(e){setTimeout(function(){throw e})}function dc(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),fs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);fs(t)}function mr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function zh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var li=Math.random().toString(36).slice(2),Mn="__reactFiber$"+li,vs="__reactProps$"+li,Yn="__reactContainer$"+li,md="__reactEvents$"+li,iS="__reactListeners$"+li,sS="__reactHandles$"+li;function Dr(e){var t=e[Mn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yn]||n[Mn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=zh(e);e!==null;){if(n=e[Mn])return n;e=zh(e)}return t}e=n,n=e.parentNode}return null}function As(e){return e=e[Mn]||e[Yn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function _o(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(z(33))}function Fa(e){return e[vs]||null}var gd=[],To=-1;function Er(e){return{current:e}}function Le(e){0>To||(e.current=gd[To],gd[To]=null,To--)}function Ae(e,t){To++,gd[To]=e.current,e.current=t}var wr={},xt=Er(wr),_t=Er(!1),Gr=wr;function Wo(e,t){var n=e.type.contextTypes;if(!n)return wr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Tt(e){return e=e.childContextTypes,e!=null}function oa(){Le(_t),Le(xt)}function Dh(e,t,n){if(xt.current!==wr)throw Error(z(168));Ae(xt,t),Ae(_t,n)}function s0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(z(108,Ux(e)||"Unknown",o));return Ve({},n,r)}function ia(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wr,Gr=xt.current,Ae(xt,e),Ae(_t,_t.current),!0}function jh(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=s0(e,t,Gr),r.__reactInternalMemoizedMergedChildContext=e,Le(_t),Le(xt),Ae(xt,e)):Le(_t),Ae(_t,n)}var Un=null,La=!1,fc=!1;function l0(e){Un===null?Un=[e]:Un.push(e)}function lS(e){La=!0,l0(e)}function Pr(){if(!fc&&Un!==null){fc=!0;var e=0,t=Te;try{var n=Un;for(Te=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Un=null,La=!1}catch(o){throw Un!==null&&(Un=Un.slice(e+1)),Ov(bf,Pr),o}finally{Te=t,fc=!1}}return null}var Mo=[],Oo=0,sa=null,la=0,Qt=[],Zt=0,Kr=null,Wn=1,Gn="";function Ar(e,t){Mo[Oo++]=la,Mo[Oo++]=sa,sa=e,la=t}function a0(e,t,n){Qt[Zt++]=Wn,Qt[Zt++]=Gn,Qt[Zt++]=Kr,Kr=e;var r=Wn;e=Gn;var o=32-Sn(r)-1;r&=~(1<<o),n+=1;var i=32-Sn(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Wn=1<<32-Sn(t)+o|n<<o|r,Gn=i+e}else Wn=1<<i|n<<o|r,Gn=e}function _f(e){e.return!==null&&(Ar(e,1),a0(e,1,0))}function Tf(e){for(;e===sa;)sa=Mo[--Oo],Mo[Oo]=null,la=Mo[--Oo],Mo[Oo]=null;for(;e===Kr;)Kr=Qt[--Zt],Qt[Zt]=null,Gn=Qt[--Zt],Qt[Zt]=null,Wn=Qt[--Zt],Qt[Zt]=null}var Ht=null,Vt=null,ze=!1,yn=null;function u0(e,t){var n=en(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Bh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ht=e,Vt=mr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ht=e,Vt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Kr!==null?{id:Wn,overflow:Gn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=en(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ht=e,Vt=null,!0):!1;default:return!1}}function vd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function yd(e){if(ze){var t=Vt;if(t){var n=t;if(!Bh(e,t)){if(vd(e))throw Error(z(418));t=mr(n.nextSibling);var r=Ht;t&&Bh(e,t)?u0(r,n):(e.flags=e.flags&-4097|2,ze=!1,Ht=e)}}else{if(vd(e))throw Error(z(418));e.flags=e.flags&-4097|2,ze=!1,Ht=e}}}function Vh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ht=e}function rl(e){if(e!==Ht)return!1;if(!ze)return Vh(e),ze=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!pd(e.type,e.memoizedProps)),t&&(t=Vt)){if(vd(e))throw c0(),Error(z(418));for(;t;)u0(e,t),t=mr(t.nextSibling)}if(Vh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Vt=mr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Vt=null}}else Vt=Ht?mr(e.stateNode.nextSibling):null;return!0}function c0(){for(var e=Vt;e;)e=mr(e.nextSibling)}function Go(){Vt=Ht=null,ze=!1}function Mf(e){yn===null?yn=[e]:yn.push(e)}var aS=Jn.ReactCurrentBatchConfig;function hn(e,t){if(e&&e.defaultProps){t=Ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var aa=Er(null),ua=null,Io=null,Of=null;function If(){Of=Io=ua=null}function Af(e){var t=aa.current;Le(aa),e._currentValue=t}function xd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function jo(e,t){ua=e,Of=Io=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Et=!0),e.firstContext=null)}function rn(e){var t=e._currentValue;if(Of!==e)if(e={context:e,memoizedValue:t,next:null},Io===null){if(ua===null)throw Error(z(308));Io=e,ua.dependencies={lanes:0,firstContext:e}}else Io=Io.next=e;return t}var jr=null;function Ff(e){jr===null?jr=[e]:jr.push(e)}function d0(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ff(t)):(n.next=o.next,o.next=n),t.interleaved=n,Xn(e,r)}function Xn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ir=!1;function Lf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function f0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Kn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Re&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Xn(e,n)}return o=r.interleaved,o===null?(t.next=t,Ff(r)):(t.next=o.next,o.next=t),r.interleaved=t,Xn(e,n)}function Tl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sf(e,n)}}function Hh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ca(e,t,n,r){var o=e.updateQueue;ir=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var d=o.baseState;s=0,c=u=a=null,l=i;do{var f=l.lane,h=l.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,m=l;switch(f=t,h=n,m.tag){case 1:if(y=m.payload,typeof y=="function"){d=y.call(h,d,f);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,f=typeof y=="function"?y.call(h,d,f):y,f==null)break e;d=Ve({},d,f);break e;case 2:ir=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[l]:f.push(l))}else h={eventTime:h,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=h,a=d):c=c.next=h,s|=f;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;f=l,l=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(a=d),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Yr|=s,e.lanes=s,e.memoizedState=d}}function Uh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(z(191,o));o.call(r)}}}var p0=new dv.Component().refs;function bd(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Na={isMounted:function(e){return(e=e._reactInternals)?no(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ct(),o=yr(e),i=Kn(r,o);i.payload=t,n!=null&&(i.callback=n),t=gr(e,i,o),t!==null&&(wn(t,e,o,r),Tl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ct(),o=yr(e),i=Kn(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=gr(e,i,o),t!==null&&(wn(t,e,o,r),Tl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ct(),r=yr(e),o=Kn(n,r);o.tag=2,t!=null&&(o.callback=t),t=gr(e,o,r),t!==null&&(wn(t,e,r,n),Tl(t,e,r))}};function Wh(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!hs(n,r)||!hs(o,i):!0}function h0(e,t,n){var r=!1,o=wr,i=t.contextType;return typeof i=="object"&&i!==null?i=rn(i):(o=Tt(t)?Gr:xt.current,r=t.contextTypes,i=(r=r!=null)?Wo(e,o):wr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Na,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Gh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Na.enqueueReplaceState(t,t.state,null)}function Sd(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=p0,Lf(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=rn(i):(i=Tt(t)?Gr:xt.current,o.context=Wo(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(bd(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Na.enqueueReplaceState(o,o.state,null),ca(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function wi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(z(309));var r=n.stateNode}if(!r)throw Error(z(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var l=o.refs;l===p0&&(l=o.refs={}),s===null?delete l[i]:l[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(z(284));if(!n._owner)throw Error(z(290,e))}return e}function ol(e,t){throw e=Object.prototype.toString.call(t),Error(z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Kh(e){var t=e._init;return t(e._payload)}function m0(e){function t(g,p){if(e){var v=g.deletions;v===null?(g.deletions=[p],g.flags|=16):v.push(p)}}function n(g,p){if(!e)return null;for(;p!==null;)t(g,p),p=p.sibling;return null}function r(g,p){for(g=new Map;p!==null;)p.key!==null?g.set(p.key,p):g.set(p.index,p),p=p.sibling;return g}function o(g,p){return g=xr(g,p),g.index=0,g.sibling=null,g}function i(g,p,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<p?(g.flags|=2,p):v):(g.flags|=2,p)):(g.flags|=1048576,p)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,p,v,x){return p===null||p.tag!==6?(p=xc(v,g.mode,x),p.return=g,p):(p=o(p,v),p.return=g,p)}function a(g,p,v,x){var C=v.type;return C===Ro?c(g,p,v.props.children,x,v.key):p!==null&&(p.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===or&&Kh(C)===p.type)?(x=o(p,v.props),x.ref=wi(g,p,v),x.return=g,x):(x=Ll(v.type,v.key,v.props,null,g.mode,x),x.ref=wi(g,p,v),x.return=g,x)}function u(g,p,v,x){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=bc(v,g.mode,x),p.return=g,p):(p=o(p,v.children||[]),p.return=g,p)}function c(g,p,v,x,C){return p===null||p.tag!==7?(p=Ur(v,g.mode,x,C),p.return=g,p):(p=o(p,v),p.return=g,p)}function d(g,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=xc(""+p,g.mode,v),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Ks:return v=Ll(p.type,p.key,p.props,null,g.mode,v),v.ref=wi(g,null,p),v.return=g,v;case ko:return p=bc(p,g.mode,v),p.return=g,p;case or:var x=p._init;return d(g,x(p._payload),v)}if(Di(p)||vi(p))return p=Ur(p,g.mode,v,null),p.return=g,p;ol(g,p)}return null}function f(g,p,v,x){var C=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return C!==null?null:l(g,p,""+v,x);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ks:return v.key===C?a(g,p,v,x):null;case ko:return v.key===C?u(g,p,v,x):null;case or:return C=v._init,f(g,p,C(v._payload),x)}if(Di(v)||vi(v))return C!==null?null:c(g,p,v,x,null);ol(g,v)}return null}function h(g,p,v,x,C){if(typeof x=="string"&&x!==""||typeof x=="number")return g=g.get(v)||null,l(p,g,""+x,C);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ks:return g=g.get(x.key===null?v:x.key)||null,a(p,g,x,C);case ko:return g=g.get(x.key===null?v:x.key)||null,u(p,g,x,C);case or:var R=x._init;return h(g,p,v,R(x._payload),C)}if(Di(x)||vi(x))return g=g.get(v)||null,c(p,g,x,C,null);ol(p,x)}return null}function y(g,p,v,x){for(var C=null,R=null,$=p,E=p=0,_=null;$!==null&&E<v.length;E++){$.index>E?(_=$,$=null):_=$.sibling;var P=f(g,$,v[E],x);if(P===null){$===null&&($=_);break}e&&$&&P.alternate===null&&t(g,$),p=i(P,p,E),R===null?C=P:R.sibling=P,R=P,$=_}if(E===v.length)return n(g,$),ze&&Ar(g,E),C;if($===null){for(;E<v.length;E++)$=d(g,v[E],x),$!==null&&(p=i($,p,E),R===null?C=$:R.sibling=$,R=$);return ze&&Ar(g,E),C}for($=r(g,$);E<v.length;E++)_=h($,g,E,v[E],x),_!==null&&(e&&_.alternate!==null&&$.delete(_.key===null?E:_.key),p=i(_,p,E),R===null?C=_:R.sibling=_,R=_);return e&&$.forEach(function(I){return t(g,I)}),ze&&Ar(g,E),C}function m(g,p,v,x){var C=vi(v);if(typeof C!="function")throw Error(z(150));if(v=C.call(v),v==null)throw Error(z(151));for(var R=C=null,$=p,E=p=0,_=null,P=v.next();$!==null&&!P.done;E++,P=v.next()){$.index>E?(_=$,$=null):_=$.sibling;var I=f(g,$,P.value,x);if(I===null){$===null&&($=_);break}e&&$&&I.alternate===null&&t(g,$),p=i(I,p,E),R===null?C=I:R.sibling=I,R=I,$=_}if(P.done)return n(g,$),ze&&Ar(g,E),C;if($===null){for(;!P.done;E++,P=v.next())P=d(g,P.value,x),P!==null&&(p=i(P,p,E),R===null?C=P:R.sibling=P,R=P);return ze&&Ar(g,E),C}for($=r(g,$);!P.done;E++,P=v.next())P=h($,g,E,P.value,x),P!==null&&(e&&P.alternate!==null&&$.delete(P.key===null?E:P.key),p=i(P,p,E),R===null?C=P:R.sibling=P,R=P);return e&&$.forEach(function(j){return t(g,j)}),ze&&Ar(g,E),C}function k(g,p,v,x){if(typeof v=="object"&&v!==null&&v.type===Ro&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Ks:e:{for(var C=v.key,R=p;R!==null;){if(R.key===C){if(C=v.type,C===Ro){if(R.tag===7){n(g,R.sibling),p=o(R,v.props.children),p.return=g,g=p;break e}}else if(R.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===or&&Kh(C)===R.type){n(g,R.sibling),p=o(R,v.props),p.ref=wi(g,R,v),p.return=g,g=p;break e}n(g,R);break}else t(g,R);R=R.sibling}v.type===Ro?(p=Ur(v.props.children,g.mode,x,v.key),p.return=g,g=p):(x=Ll(v.type,v.key,v.props,null,g.mode,x),x.ref=wi(g,p,v),x.return=g,g=x)}return s(g);case ko:e:{for(R=v.key;p!==null;){if(p.key===R)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(g,p.sibling),p=o(p,v.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=bc(v,g.mode,x),p.return=g,g=p}return s(g);case or:return R=v._init,k(g,p,R(v._payload),x)}if(Di(v))return y(g,p,v,x);if(vi(v))return m(g,p,v,x);ol(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(g,p.sibling),p=o(p,v),p.return=g,g=p):(n(g,p),p=xc(v,g.mode,x),p.return=g,g=p),s(g)):n(g,p)}return k}var Ko=m0(!0),g0=m0(!1),Fs={},An=Er(Fs),ys=Er(Fs),xs=Er(Fs);function Br(e){if(e===Fs)throw Error(z(174));return e}function Nf(e,t){switch(Ae(xs,t),Ae(ys,e),Ae(An,Fs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jc(t,e)}Le(An),Ae(An,t)}function qo(){Le(An),Le(ys),Le(xs)}function v0(e){Br(xs.current);var t=Br(An.current),n=Jc(t,e.type);t!==n&&(Ae(ys,e),Ae(An,n))}function zf(e){ys.current===e&&(Le(An),Le(ys))}var je=Er(0);function da(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var pc=[];function Df(){for(var e=0;e<pc.length;e++)pc[e]._workInProgressVersionPrimary=null;pc.length=0}var Ml=Jn.ReactCurrentDispatcher,hc=Jn.ReactCurrentBatchConfig,qr=0,Be=null,ot=null,lt=null,fa=!1,Qi=!1,bs=0,uS=0;function mt(){throw Error(z(321))}function jf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!kn(e[n],t[n]))return!1;return!0}function Bf(e,t,n,r,o,i){if(qr=i,Be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ml.current=e===null||e.memoizedState===null?pS:hS,e=n(r,o),Qi){i=0;do{if(Qi=!1,bs=0,25<=i)throw Error(z(301));i+=1,lt=ot=null,t.updateQueue=null,Ml.current=mS,e=n(r,o)}while(Qi)}if(Ml.current=pa,t=ot!==null&&ot.next!==null,qr=0,lt=ot=Be=null,fa=!1,t)throw Error(z(300));return e}function Vf(){var e=bs!==0;return bs=0,e}function Pn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?Be.memoizedState=lt=e:lt=lt.next=e,lt}function on(){if(ot===null){var e=Be.alternate;e=e!==null?e.memoizedState:null}else e=ot.next;var t=lt===null?Be.memoizedState:lt.next;if(t!==null)lt=t,ot=e;else{if(e===null)throw Error(z(310));ot=e,e={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},lt===null?Be.memoizedState=lt=e:lt=lt.next=e}return lt}function Ss(e,t){return typeof t=="function"?t(e):t}function mc(e){var t=on(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=ot,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=s=null,a=null,u=i;do{var c=u.lane;if((qr&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=d,s=r):a=a.next=d,Be.lanes|=c,Yr|=c}u=u.next}while(u!==null&&u!==i);a===null?s=r:a.next=l,kn(r,t.memoizedState)||(Et=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Be.lanes|=i,Yr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function gc(e){var t=on(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);kn(i,t.memoizedState)||(Et=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function y0(){}function x0(e,t){var n=Be,r=on(),o=t(),i=!kn(r.memoizedState,o);if(i&&(r.memoizedState=o,Et=!0),r=r.queue,Hf(w0.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||lt!==null&&lt.memoizedState.tag&1){if(n.flags|=2048,ws(9,S0.bind(null,n,r,o,t),void 0,null),at===null)throw Error(z(349));qr&30||b0(n,t,o)}return o}function b0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Be.updateQueue,t===null?(t={lastEffect:null,stores:null},Be.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function S0(e,t,n,r){t.value=n,t.getSnapshot=r,C0(t)&&k0(e)}function w0(e,t,n){return n(function(){C0(t)&&k0(e)})}function C0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kn(e,n)}catch{return!0}}function k0(e){var t=Xn(e,1);t!==null&&wn(t,e,1,-1)}function qh(e){var t=Pn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ss,lastRenderedState:e},t.queue=e,e=e.dispatch=fS.bind(null,Be,e),[t.memoizedState,e]}function ws(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Be.updateQueue,t===null?(t={lastEffect:null,stores:null},Be.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function R0(){return on().memoizedState}function Ol(e,t,n,r){var o=Pn();Be.flags|=e,o.memoizedState=ws(1|t,n,void 0,r===void 0?null:r)}function za(e,t,n,r){var o=on();r=r===void 0?null:r;var i=void 0;if(ot!==null){var s=ot.memoizedState;if(i=s.destroy,r!==null&&jf(r,s.deps)){o.memoizedState=ws(t,n,i,r);return}}Be.flags|=e,o.memoizedState=ws(1|t,n,i,r)}function Yh(e,t){return Ol(8390656,8,e,t)}function Hf(e,t){return za(2048,8,e,t)}function $0(e,t){return za(4,2,e,t)}function E0(e,t){return za(4,4,e,t)}function P0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _0(e,t,n){return n=n!=null?n.concat([e]):null,za(4,4,P0.bind(null,t,e),n)}function Uf(){}function T0(e,t){var n=on();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&jf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function M0(e,t){var n=on();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&jf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function O0(e,t,n){return qr&21?(kn(n,t)||(n=Fv(),Be.lanes|=n,Yr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Et=!0),e.memoizedState=n)}function cS(e,t){var n=Te;Te=n!==0&&4>n?n:4,e(!0);var r=hc.transition;hc.transition={};try{e(!1),t()}finally{Te=n,hc.transition=r}}function I0(){return on().memoizedState}function dS(e,t,n){var r=yr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},A0(e))F0(t,n);else if(n=d0(e,t,n,r),n!==null){var o=Ct();wn(n,e,r,o),L0(n,t,r)}}function fS(e,t,n){var r=yr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(A0(e))F0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,kn(l,s)){var a=t.interleaved;a===null?(o.next=o,Ff(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=d0(e,t,o,r),n!==null&&(o=Ct(),wn(n,e,r,o),L0(n,t,r))}}function A0(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function F0(e,t){Qi=fa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function L0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sf(e,n)}}var pa={readContext:rn,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useInsertionEffect:mt,useLayoutEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useMutableSource:mt,useSyncExternalStore:mt,useId:mt,unstable_isNewReconciler:!1},pS={readContext:rn,useCallback:function(e,t){return Pn().memoizedState=[e,t===void 0?null:t],e},useContext:rn,useEffect:Yh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ol(4194308,4,P0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ol(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ol(4,2,e,t)},useMemo:function(e,t){var n=Pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dS.bind(null,Be,e),[r.memoizedState,e]},useRef:function(e){var t=Pn();return e={current:e},t.memoizedState=e},useState:qh,useDebugValue:Uf,useDeferredValue:function(e){return Pn().memoizedState=e},useTransition:function(){var e=qh(!1),t=e[0];return e=cS.bind(null,e[1]),Pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Be,o=Pn();if(ze){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),at===null)throw Error(z(349));qr&30||b0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Yh(w0.bind(null,r,i,e),[e]),r.flags|=2048,ws(9,S0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Pn(),t=at.identifierPrefix;if(ze){var n=Gn,r=Wn;n=(r&~(1<<32-Sn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=bs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=uS++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},hS={readContext:rn,useCallback:T0,useContext:rn,useEffect:Hf,useImperativeHandle:_0,useInsertionEffect:$0,useLayoutEffect:E0,useMemo:M0,useReducer:mc,useRef:R0,useState:function(){return mc(Ss)},useDebugValue:Uf,useDeferredValue:function(e){var t=on();return O0(t,ot.memoizedState,e)},useTransition:function(){var e=mc(Ss)[0],t=on().memoizedState;return[e,t]},useMutableSource:y0,useSyncExternalStore:x0,useId:I0,unstable_isNewReconciler:!1},mS={readContext:rn,useCallback:T0,useContext:rn,useEffect:Hf,useImperativeHandle:_0,useInsertionEffect:$0,useLayoutEffect:E0,useMemo:M0,useReducer:gc,useRef:R0,useState:function(){return gc(Ss)},useDebugValue:Uf,useDeferredValue:function(e){var t=on();return ot===null?t.memoizedState=e:O0(t,ot.memoizedState,e)},useTransition:function(){var e=gc(Ss)[0],t=on().memoizedState;return[e,t]},useMutableSource:y0,useSyncExternalStore:x0,useId:I0,unstable_isNewReconciler:!1};function Yo(e,t){try{var n="",r=t;do n+=Hx(r),r=r.return;while(r);var o=n}catch(i){o=`
39
- Error generating stack: `+i.message+`
40
- `+i.stack}return{value:e,source:t,stack:o,digest:null}}function vc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function wd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var gS=typeof WeakMap=="function"?WeakMap:Map;function N0(e,t,n){n=Kn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ma||(ma=!0,Od=r),wd(e,t)},n}function z0(e,t,n){n=Kn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){wd(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){wd(e,t),typeof r!="function"&&(vr===null?vr=new Set([this]):vr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Xh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new gS;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=TS.bind(null,e,t,n),t.then(e,e))}function Qh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Zh(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Kn(-1,1),t.tag=2,gr(n,t,1))),n.lanes|=1),e)}var vS=Jn.ReactCurrentOwner,Et=!1;function St(e,t,n,r){t.child=e===null?g0(t,null,n,r):Ko(t,e.child,n,r)}function Jh(e,t,n,r,o){n=n.render;var i=t.ref;return jo(t,o),r=Bf(e,t,n,r,i,o),n=Vf(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Qn(e,t,o)):(ze&&n&&_f(t),t.flags|=1,St(e,t,r,o),t.child)}function em(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Zf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,D0(e,t,i,r,o)):(e=Ll(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:hs,n(s,r)&&e.ref===t.ref)return Qn(e,t,o)}return t.flags|=1,e=xr(i,r),e.ref=t.ref,e.return=t,t.child=e}function D0(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(hs(i,r)&&e.ref===t.ref)if(Et=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Et=!0);else return t.lanes=e.lanes,Qn(e,t,o)}return Cd(e,t,n,r,o)}function j0(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(Fo,Dt),Dt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ae(Fo,Dt),Dt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ae(Fo,Dt),Dt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ae(Fo,Dt),Dt|=r;return St(e,t,o,n),t.child}function B0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cd(e,t,n,r,o){var i=Tt(n)?Gr:xt.current;return i=Wo(t,i),jo(t,o),n=Bf(e,t,n,r,i,o),r=Vf(),e!==null&&!Et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Qn(e,t,o)):(ze&&r&&_f(t),t.flags|=1,St(e,t,n,o),t.child)}function tm(e,t,n,r,o){if(Tt(n)){var i=!0;ia(t)}else i=!1;if(jo(t,o),t.stateNode===null)Il(e,t),h0(t,n,r),Sd(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=rn(u):(u=Tt(n)?Gr:xt.current,u=Wo(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Gh(t,s,r,u),ir=!1;var f=t.memoizedState;s.state=f,ca(t,r,s,o),a=t.memoizedState,l!==r||f!==a||_t.current||ir?(typeof c=="function"&&(bd(t,n,c,r),a=t.memoizedState),(l=ir||Wh(t,n,l,r,f,a,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,f0(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:hn(t.type,l),s.props=u,d=t.pendingProps,f=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=rn(a):(a=Tt(n)?Gr:xt.current,a=Wo(t,a));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==d||f!==a)&&Gh(t,s,r,a),ir=!1,f=t.memoizedState,s.state=f,ca(t,r,s,o);var y=t.memoizedState;l!==d||f!==y||_t.current||ir?(typeof h=="function"&&(bd(t,n,h,r),y=t.memoizedState),(u=ir||Wh(t,n,u,r,f,y,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return kd(e,t,n,r,i,o)}function kd(e,t,n,r,o,i){B0(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&jh(t,n,!1),Qn(e,t,i);r=t.stateNode,vS.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ko(t,e.child,null,i),t.child=Ko(t,null,l,i)):St(e,t,l,i),t.memoizedState=r.state,o&&jh(t,n,!0),t.child}function V0(e){var t=e.stateNode;t.pendingContext?Dh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Dh(e,t.context,!1),Nf(e,t.containerInfo)}function nm(e,t,n,r,o){return Go(),Mf(o),t.flags|=256,St(e,t,n,r),t.child}var Rd={dehydrated:null,treeContext:null,retryLane:0};function $d(e){return{baseLanes:e,cachePool:null,transitions:null}}function H0(e,t,n){var r=t.pendingProps,o=je.current,i=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ae(je,o&1),e===null)return yd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Ba(s,r,0,null),e=Ur(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=$d(n),t.memoizedState=Rd,e):Wf(t,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return yS(e,t,s,r,l,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=xr(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=xr(l,i):(i=Ur(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?$d(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Rd,r}return i=e.child,e=i.sibling,r=xr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Wf(e,t){return t=Ba({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function il(e,t,n,r){return r!==null&&Mf(r),Ko(t,e.child,null,n),e=Wf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yS(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=vc(Error(z(422))),il(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ba({mode:"visible",children:r.children},o,0,null),i=Ur(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ko(t,e.child,null,s),t.child.memoizedState=$d(s),t.memoizedState=Rd,i);if(!(t.mode&1))return il(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(z(419)),r=vc(i,r,void 0),il(e,t,s,r)}if(l=(s&e.childLanes)!==0,Et||l){if(r=at,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Xn(e,o),wn(r,e,o,-1))}return Qf(),r=vc(Error(z(421))),il(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=MS.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Vt=mr(o.nextSibling),Ht=t,ze=!0,yn=null,e!==null&&(Qt[Zt++]=Wn,Qt[Zt++]=Gn,Qt[Zt++]=Kr,Wn=e.id,Gn=e.overflow,Kr=t),t=Wf(t,r.children),t.flags|=4096,t)}function rm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),xd(e.return,t,n)}function yc(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function U0(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(St(e,t,r.children,n),r=je.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rm(e,n,t);else if(e.tag===19)rm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ae(je,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&da(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),yc(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&da(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}yc(t,!0,n,null,i);break;case"together":yc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Il(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(z(153));if(t.child!==null){for(e=t.child,n=xr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xS(e,t,n){switch(t.tag){case 3:V0(t),Go();break;case 5:v0(t);break;case 1:Tt(t.type)&&ia(t);break;case 4:Nf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ae(aa,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ae(je,je.current&1),t.flags|=128,null):n&t.child.childLanes?H0(e,t,n):(Ae(je,je.current&1),e=Qn(e,t,n),e!==null?e.sibling:null);Ae(je,je.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return U0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ae(je,je.current),r)break;return null;case 22:case 23:return t.lanes=0,j0(e,t,n)}return Qn(e,t,n)}var W0,Ed,G0,K0;W0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ed=function(){};G0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Br(An.current);var i=null;switch(n){case"input":o=Yc(e,o),r=Yc(e,r),i=[];break;case"select":o=Ve({},o,{value:void 0}),r=Ve({},r,{value:void 0}),i=[];break;case"textarea":o=Zc(e,o),r=Zc(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ra)}ed(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ls.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ls.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Fe("scroll",e),i||l===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};K0=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ci(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function gt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function bS(e,t,n){var r=t.pendingProps;switch(Tf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(t),null;case 1:return Tt(t.type)&&oa(),gt(t),null;case 3:return r=t.stateNode,qo(),Le(_t),Le(xt),Df(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(rl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yn!==null&&(Fd(yn),yn=null))),Ed(e,t),gt(t),null;case 5:zf(t);var o=Br(xs.current);if(n=t.type,e!==null&&t.stateNode!=null)G0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(z(166));return gt(t),null}if(e=Br(An.current),rl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Mn]=t,r[vs]=i,e=(t.mode&1)!==0,n){case"dialog":Fe("cancel",r),Fe("close",r);break;case"iframe":case"object":case"embed":Fe("load",r);break;case"video":case"audio":for(o=0;o<Bi.length;o++)Fe(Bi[o],r);break;case"source":Fe("error",r);break;case"img":case"image":case"link":Fe("error",r),Fe("load",r);break;case"details":Fe("toggle",r);break;case"input":fh(r,i),Fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Fe("invalid",r);break;case"textarea":hh(r,i),Fe("invalid",r)}ed(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var l=i[s];s==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&nl(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&nl(r.textContent,l,e),o=["children",""+l]):ls.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&Fe("scroll",r)}switch(n){case"input":qs(r),ph(r,i,!0);break;case"textarea":qs(r),mh(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ra)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=bv(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Mn]=t,e[vs]=r,W0(e,t,!1,!1),t.stateNode=e;e:{switch(s=td(n,r),n){case"dialog":Fe("cancel",e),Fe("close",e),o=r;break;case"iframe":case"object":case"embed":Fe("load",e),o=r;break;case"video":case"audio":for(o=0;o<Bi.length;o++)Fe(Bi[o],e);o=r;break;case"source":Fe("error",e),o=r;break;case"img":case"image":case"link":Fe("error",e),Fe("load",e),o=r;break;case"details":Fe("toggle",e),o=r;break;case"input":fh(e,r),o=Yc(e,r),Fe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ve({},r,{value:void 0}),Fe("invalid",e);break;case"textarea":hh(e,r),o=Zc(e,r),Fe("invalid",e);break;default:o=r}ed(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?Cv(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Sv(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&as(e,a):typeof a=="number"&&as(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ls.hasOwnProperty(i)?a!=null&&i==="onScroll"&&Fe("scroll",e):a!=null&&mf(e,i,a,s))}switch(n){case"input":qs(e),ph(e,r,!1);break;case"textarea":qs(e),mh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Sr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Lo(e,!!r.multiple,i,!1):r.defaultValue!=null&&Lo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ra)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return gt(t),null;case 6:if(e&&t.stateNode!=null)K0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(z(166));if(n=Br(xs.current),Br(An.current),rl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Mn]=t,(i=r.nodeValue!==n)&&(e=Ht,e!==null))switch(e.tag){case 3:nl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&nl(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Mn]=t,t.stateNode=r}return gt(t),null;case 13:if(Le(je),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ze&&Vt!==null&&t.mode&1&&!(t.flags&128))c0(),Go(),t.flags|=98560,i=!1;else if(i=rl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(z(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(z(317));i[Mn]=t}else Go(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gt(t),i=!1}else yn!==null&&(Fd(yn),yn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||je.current&1?it===0&&(it=3):Qf())),t.updateQueue!==null&&(t.flags|=4),gt(t),null);case 4:return qo(),Ed(e,t),e===null&&ms(t.stateNode.containerInfo),gt(t),null;case 10:return Af(t.type._context),gt(t),null;case 17:return Tt(t.type)&&oa(),gt(t),null;case 19:if(Le(je),i=t.memoizedState,i===null)return gt(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)Ci(i,!1);else{if(it!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=da(e),s!==null){for(t.flags|=128,Ci(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ae(je,je.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ye()>Xo&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304)}else{if(!r)if(e=da(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ci(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ze)return gt(t),null}else 2*Ye()-i.renderingStartTime>Xo&&n!==1073741824&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ye(),t.sibling=null,n=je.current,Ae(je,r?n&1|2:n&1),t):(gt(t),null);case 22:case 23:return Xf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Dt&1073741824&&(gt(t),t.subtreeFlags&6&&(t.flags|=8192)):gt(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function SS(e,t){switch(Tf(t),t.tag){case 1:return Tt(t.type)&&oa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qo(),Le(_t),Le(xt),Df(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zf(t),null;case 13:if(Le(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Go()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(je),null;case 4:return qo(),null;case 10:return Af(t.type._context),null;case 22:case 23:return Xf(),null;case 24:return null;default:return null}}var sl=!1,yt=!1,wS=typeof WeakSet=="function"?WeakSet:Set,Y=null;function Ao(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ge(e,t,r)}else n.current=null}function Pd(e,t,n){try{n()}catch(r){Ge(e,t,r)}}var om=!1;function CS(e,t){if(dd=ea,e=Qv(),Pf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(l=s+o),d!==i||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===o&&(l=s),f===i&&++c===r&&(a=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(fd={focusedElem:e,selectionRange:n},ea=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,k=y.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:hn(t.type,m),k);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(x){Ge(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return y=om,om=!1,y}function Zi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Pd(t,n,i)}o=o.next}while(o!==r)}}function Da(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _d(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function q0(e){var t=e.alternate;t!==null&&(e.alternate=null,q0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mn],delete t[vs],delete t[md],delete t[iS],delete t[sS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Y0(e){return e.tag===5||e.tag===3||e.tag===4}function im(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Y0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Td(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ra));else if(r!==4&&(e=e.child,e!==null))for(Td(e,t,n),e=e.sibling;e!==null;)Td(e,t,n),e=e.sibling}function Md(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Md(e,t,n),e=e.sibling;e!==null;)Md(e,t,n),e=e.sibling}var dt=null,gn=!1;function tr(e,t,n){for(n=n.child;n!==null;)X0(e,t,n),n=n.sibling}function X0(e,t,n){if(In&&typeof In.onCommitFiberUnmount=="function")try{In.onCommitFiberUnmount(Ma,n)}catch{}switch(n.tag){case 5:yt||Ao(n,t);case 6:var r=dt,o=gn;dt=null,tr(e,t,n),dt=r,gn=o,dt!==null&&(gn?(e=dt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):dt.removeChild(n.stateNode));break;case 18:dt!==null&&(gn?(e=dt,n=n.stateNode,e.nodeType===8?dc(e.parentNode,n):e.nodeType===1&&dc(e,n),fs(e)):dc(dt,n.stateNode));break;case 4:r=dt,o=gn,dt=n.stateNode.containerInfo,gn=!0,tr(e,t,n),dt=r,gn=o;break;case 0:case 11:case 14:case 15:if(!yt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Pd(n,t,s),o=o.next}while(o!==r)}tr(e,t,n);break;case 1:if(!yt&&(Ao(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ge(n,t,l)}tr(e,t,n);break;case 21:tr(e,t,n);break;case 22:n.mode&1?(yt=(r=yt)||n.memoizedState!==null,tr(e,t,n),yt=r):tr(e,t,n);break;default:tr(e,t,n)}}function sm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wS),t.forEach(function(r){var o=OS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:dt=l.stateNode,gn=!1;break e;case 3:dt=l.stateNode.containerInfo,gn=!0;break e;case 4:dt=l.stateNode.containerInfo,gn=!0;break e}l=l.return}if(dt===null)throw Error(z(160));X0(i,s,o),dt=null,gn=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){Ge(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Q0(t,e),t=t.sibling}function Q0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pn(t,e),$n(e),r&4){try{Zi(3,e,e.return),Da(3,e)}catch(m){Ge(e,e.return,m)}try{Zi(5,e,e.return)}catch(m){Ge(e,e.return,m)}}break;case 1:pn(t,e),$n(e),r&512&&n!==null&&Ao(n,n.return);break;case 5:if(pn(t,e),$n(e),r&512&&n!==null&&Ao(n,n.return),e.flags&32){var o=e.stateNode;try{as(o,"")}catch(m){Ge(e,e.return,m)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&yv(o,i),td(l,s);var u=td(l,i);for(s=0;s<a.length;s+=2){var c=a[s],d=a[s+1];c==="style"?Cv(o,d):c==="dangerouslySetInnerHTML"?Sv(o,d):c==="children"?as(o,d):mf(o,c,d,u)}switch(l){case"input":Xc(o,i);break;case"textarea":xv(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?Lo(o,!!i.multiple,h,!1):f!==!!i.multiple&&(i.defaultValue!=null?Lo(o,!!i.multiple,i.defaultValue,!0):Lo(o,!!i.multiple,i.multiple?[]:"",!1))}o[vs]=i}catch(m){Ge(e,e.return,m)}}break;case 6:if(pn(t,e),$n(e),r&4){if(e.stateNode===null)throw Error(z(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(m){Ge(e,e.return,m)}}break;case 3:if(pn(t,e),$n(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{fs(t.containerInfo)}catch(m){Ge(e,e.return,m)}break;case 4:pn(t,e),$n(e);break;case 13:pn(t,e),$n(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(qf=Ye())),r&4&&sm(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(yt=(u=yt)||c,pn(t,e),yt=u):pn(t,e),$n(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(Y=e,c=e.child;c!==null;){for(d=Y=c;Y!==null;){switch(f=Y,h=f.child,f.tag){case 0:case 11:case 14:case 15:Zi(4,f,f.return);break;case 1:Ao(f,f.return);var y=f.stateNode;if(typeof y.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(m){Ge(r,n,m)}}break;case 5:Ao(f,f.return);break;case 22:if(f.memoizedState!==null){am(d);continue}}h!==null?(h.return=f,Y=h):am(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=d.stateNode,a=d.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=wv("display",s))}catch(m){Ge(e,e.return,m)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(m){Ge(e,e.return,m)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:pn(t,e),$n(e),r&4&&sm(e);break;case 21:break;default:pn(t,e),$n(e)}}function $n(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Y0(n)){var r=n;break e}n=n.return}throw Error(z(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(as(o,""),r.flags&=-33);var i=im(e);Md(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,l=im(e);Td(e,l,s);break;default:throw Error(z(161))}}catch(a){Ge(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kS(e,t,n){Y=e,Z0(e)}function Z0(e,t,n){for(var r=(e.mode&1)!==0;Y!==null;){var o=Y,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||sl;if(!s){var l=o.alternate,a=l!==null&&l.memoizedState!==null||yt;l=sl;var u=yt;if(sl=s,(yt=a)&&!u)for(Y=o;Y!==null;)s=Y,a=s.child,s.tag===22&&s.memoizedState!==null?um(o):a!==null?(a.return=s,Y=a):um(o);for(;i!==null;)Y=i,Z0(i),i=i.sibling;Y=o,sl=l,yt=u}lm(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Y=i):lm(e)}}function lm(e){for(;Y!==null;){var t=Y;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:yt||Da(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!yt)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:hn(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Uh(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Uh(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&fs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(z(163))}yt||t.flags&512&&_d(t)}catch(f){Ge(t,t.return,f)}}if(t===e){Y=null;break}if(n=t.sibling,n!==null){n.return=t.return,Y=n;break}Y=t.return}}function am(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Y=n;break}Y=t.return}}function um(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Da(4,t)}catch(a){Ge(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Ge(t,o,a)}}var i=t.return;try{_d(t)}catch(a){Ge(t,i,a)}break;case 5:var s=t.return;try{_d(t)}catch(a){Ge(t,s,a)}}}catch(a){Ge(t,t.return,a)}if(t===e){Y=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Y=l;break}Y=t.return}}var RS=Math.ceil,ha=Jn.ReactCurrentDispatcher,Gf=Jn.ReactCurrentOwner,tn=Jn.ReactCurrentBatchConfig,Re=0,at=null,et=null,pt=0,Dt=0,Fo=Er(0),it=0,Cs=null,Yr=0,ja=0,Kf=0,Ji=null,$t=null,qf=0,Xo=1/0,Hn=null,ma=!1,Od=null,vr=null,ll=!1,ur=null,ga=0,es=0,Id=null,Al=-1,Fl=0;function Ct(){return Re&6?Ye():Al!==-1?Al:Al=Ye()}function yr(e){return e.mode&1?Re&2&&pt!==0?pt&-pt:aS.transition!==null?(Fl===0&&(Fl=Fv()),Fl):(e=Te,e!==0||(e=window.event,e=e===void 0?16:Vv(e.type)),e):1}function wn(e,t,n,r){if(50<es)throw es=0,Id=null,Error(z(185));Os(e,n,r),(!(Re&2)||e!==at)&&(e===at&&(!(Re&2)&&(ja|=n),it===4&&lr(e,pt)),Mt(e,r),n===1&&Re===0&&!(t.mode&1)&&(Xo=Ye()+500,La&&Pr()))}function Mt(e,t){var n=e.callbackNode;ab(e,t);var r=Jl(e,e===at?pt:0);if(r===0)n!==null&&yh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&yh(n),t===1)e.tag===0?lS(cm.bind(null,e)):l0(cm.bind(null,e)),rS(function(){!(Re&6)&&Pr()}),n=null;else{switch(Lv(r)){case 1:n=bf;break;case 4:n=Iv;break;case 16:n=Zl;break;case 536870912:n=Av;break;default:n=Zl}n=sy(n,J0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function J0(e,t){if(Al=-1,Fl=0,Re&6)throw Error(z(327));var n=e.callbackNode;if(Bo()&&e.callbackNode!==n)return null;var r=Jl(e,e===at?pt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=va(e,r);else{t=r;var o=Re;Re|=2;var i=ty();(at!==e||pt!==t)&&(Hn=null,Xo=Ye()+500,Hr(e,t));do try{PS();break}catch(l){ey(e,l)}while(1);If(),ha.current=i,Re=o,et!==null?t=0:(at=null,pt=0,t=it)}if(t!==0){if(t===2&&(o=sd(e),o!==0&&(r=o,t=Ad(e,o))),t===1)throw n=Cs,Hr(e,0),lr(e,r),Mt(e,Ye()),n;if(t===6)lr(e,r);else{if(o=e.current.alternate,!(r&30)&&!$S(o)&&(t=va(e,r),t===2&&(i=sd(e),i!==0&&(r=i,t=Ad(e,i))),t===1))throw n=Cs,Hr(e,0),lr(e,r),Mt(e,Ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(z(345));case 2:Fr(e,$t,Hn);break;case 3:if(lr(e,r),(r&130023424)===r&&(t=qf+500-Ye(),10<t)){if(Jl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Ct(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=hd(Fr.bind(null,e,$t,Hn),t);break}Fr(e,$t,Hn);break;case 4:if(lr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Sn(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*RS(r/1960))-r,10<r){e.timeoutHandle=hd(Fr.bind(null,e,$t,Hn),r);break}Fr(e,$t,Hn);break;case 5:Fr(e,$t,Hn);break;default:throw Error(z(329))}}}return Mt(e,Ye()),e.callbackNode===n?J0.bind(null,e):null}function Ad(e,t){var n=Ji;return e.current.memoizedState.isDehydrated&&(Hr(e,t).flags|=256),e=va(e,t),e!==2&&(t=$t,$t=n,t!==null&&Fd(t)),e}function Fd(e){$t===null?$t=e:$t.push.apply($t,e)}function $S(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!kn(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function lr(e,t){for(t&=~Kf,t&=~ja,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Sn(t),r=1<<n;e[n]=-1,t&=~r}}function cm(e){if(Re&6)throw Error(z(327));Bo();var t=Jl(e,0);if(!(t&1))return Mt(e,Ye()),null;var n=va(e,t);if(e.tag!==0&&n===2){var r=sd(e);r!==0&&(t=r,n=Ad(e,r))}if(n===1)throw n=Cs,Hr(e,0),lr(e,t),Mt(e,Ye()),n;if(n===6)throw Error(z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fr(e,$t,Hn),Mt(e,Ye()),null}function Yf(e,t){var n=Re;Re|=1;try{return e(t)}finally{Re=n,Re===0&&(Xo=Ye()+500,La&&Pr())}}function Xr(e){ur!==null&&ur.tag===0&&!(Re&6)&&Bo();var t=Re;Re|=1;var n=tn.transition,r=Te;try{if(tn.transition=null,Te=1,e)return e()}finally{Te=r,tn.transition=n,Re=t,!(Re&6)&&Pr()}}function Xf(){Dt=Fo.current,Le(Fo)}function Hr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,nS(n)),et!==null)for(n=et.return;n!==null;){var r=n;switch(Tf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&oa();break;case 3:qo(),Le(_t),Le(xt),Df();break;case 5:zf(r);break;case 4:qo();break;case 13:Le(je);break;case 19:Le(je);break;case 10:Af(r.type._context);break;case 22:case 23:Xf()}n=n.return}if(at=e,et=e=xr(e.current,null),pt=Dt=t,it=0,Cs=null,Kf=ja=Yr=0,$t=Ji=null,jr!==null){for(t=0;t<jr.length;t++)if(n=jr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}jr=null}return e}function ey(e,t){do{var n=et;try{if(If(),Ml.current=pa,fa){for(var r=Be.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}fa=!1}if(qr=0,lt=ot=Be=null,Qi=!1,bs=0,Gf.current=null,n===null||n.return===null){it=1,Cs=t,et=null;break}e:{var i=e,s=n.return,l=n,a=t;if(t=pt,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Qh(s);if(h!==null){h.flags&=-257,Zh(h,s,l,i,t),h.mode&1&&Xh(i,u,t),t=h,a=u;var y=t.updateQueue;if(y===null){var m=new Set;m.add(a),t.updateQueue=m}else y.add(a);break e}else{if(!(t&1)){Xh(i,u,t),Qf();break e}a=Error(z(426))}}else if(ze&&l.mode&1){var k=Qh(s);if(k!==null){!(k.flags&65536)&&(k.flags|=256),Zh(k,s,l,i,t),Mf(Yo(a,l));break e}}i=a=Yo(a,l),it!==4&&(it=2),Ji===null?Ji=[i]:Ji.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=N0(i,a,t);Hh(i,g);break e;case 1:l=a;var p=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(vr===null||!vr.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var x=z0(i,l,t);Hh(i,x);break e}}i=i.return}while(i!==null)}ry(n)}catch(C){t=C,et===n&&n!==null&&(et=n=n.return);continue}break}while(1)}function ty(){var e=ha.current;return ha.current=pa,e===null?pa:e}function Qf(){(it===0||it===3||it===2)&&(it=4),at===null||!(Yr&268435455)&&!(ja&268435455)||lr(at,pt)}function va(e,t){var n=Re;Re|=2;var r=ty();(at!==e||pt!==t)&&(Hn=null,Hr(e,t));do try{ES();break}catch(o){ey(e,o)}while(1);if(If(),Re=n,ha.current=r,et!==null)throw Error(z(261));return at=null,pt=0,it}function ES(){for(;et!==null;)ny(et)}function PS(){for(;et!==null&&!Jx();)ny(et)}function ny(e){var t=iy(e.alternate,e,Dt);e.memoizedProps=e.pendingProps,t===null?ry(e):et=t,Gf.current=null}function ry(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=SS(n,t),n!==null){n.flags&=32767,et=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{it=6,et=null;return}}else if(n=bS(n,t,Dt),n!==null){et=n;return}if(t=t.sibling,t!==null){et=t;return}et=t=e}while(t!==null);it===0&&(it=5)}function Fr(e,t,n){var r=Te,o=tn.transition;try{tn.transition=null,Te=1,_S(e,t,n,r)}finally{tn.transition=o,Te=r}return null}function _S(e,t,n,r){do Bo();while(ur!==null);if(Re&6)throw Error(z(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(z(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(ub(e,i),e===at&&(et=at=null,pt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ll||(ll=!0,sy(Zl,function(){return Bo(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=tn.transition,tn.transition=null;var s=Te;Te=1;var l=Re;Re|=4,Gf.current=null,CS(e,n),Q0(n,e),Yb(fd),ea=!!dd,fd=dd=null,e.current=n,kS(n),eb(),Re=l,Te=s,tn.transition=i}else e.current=n;if(ll&&(ll=!1,ur=e,ga=o),i=e.pendingLanes,i===0&&(vr=null),rb(n.stateNode),Mt(e,Ye()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ma)throw ma=!1,e=Od,Od=null,e;return ga&1&&e.tag!==0&&Bo(),i=e.pendingLanes,i&1?e===Id?es++:(es=0,Id=e):es=0,Pr(),null}function Bo(){if(ur!==null){var e=Lv(ga),t=tn.transition,n=Te;try{if(tn.transition=null,Te=16>e?16:e,ur===null)var r=!1;else{if(e=ur,ur=null,ga=0,Re&6)throw Error(z(331));var o=Re;for(Re|=4,Y=e.current;Y!==null;){var i=Y,s=i.child;if(Y.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(Y=u;Y!==null;){var c=Y;switch(c.tag){case 0:case 11:case 15:Zi(8,c,i)}var d=c.child;if(d!==null)d.return=c,Y=d;else for(;Y!==null;){c=Y;var f=c.sibling,h=c.return;if(q0(c),c===u){Y=null;break}if(f!==null){f.return=h,Y=f;break}Y=h}}}var y=i.alternate;if(y!==null){var m=y.child;if(m!==null){y.child=null;do{var k=m.sibling;m.sibling=null,m=k}while(m!==null)}}Y=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,Y=s;else e:for(;Y!==null;){if(i=Y,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Zi(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,Y=g;break e}Y=i.return}}var p=e.current;for(Y=p;Y!==null;){s=Y;var v=s.child;if(s.subtreeFlags&2064&&v!==null)v.return=s,Y=v;else e:for(s=p;Y!==null;){if(l=Y,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Da(9,l)}}catch(C){Ge(l,l.return,C)}if(l===s){Y=null;break e}var x=l.sibling;if(x!==null){x.return=l.return,Y=x;break e}Y=l.return}}if(Re=o,Pr(),In&&typeof In.onPostCommitFiberRoot=="function")try{In.onPostCommitFiberRoot(Ma,e)}catch{}r=!0}return r}finally{Te=n,tn.transition=t}}return!1}function dm(e,t,n){t=Yo(n,t),t=N0(e,t,1),e=gr(e,t,1),t=Ct(),e!==null&&(Os(e,1,t),Mt(e,t))}function Ge(e,t,n){if(e.tag===3)dm(e,e,n);else for(;t!==null;){if(t.tag===3){dm(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(vr===null||!vr.has(r))){e=Yo(n,e),e=z0(t,e,1),t=gr(t,e,1),e=Ct(),t!==null&&(Os(t,1,e),Mt(t,e));break}}t=t.return}}function TS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ct(),e.pingedLanes|=e.suspendedLanes&n,at===e&&(pt&n)===n&&(it===4||it===3&&(pt&130023424)===pt&&500>Ye()-qf?Hr(e,0):Kf|=n),Mt(e,t)}function oy(e,t){t===0&&(e.mode&1?(t=Qs,Qs<<=1,!(Qs&130023424)&&(Qs=4194304)):t=1);var n=Ct();e=Xn(e,t),e!==null&&(Os(e,t,n),Mt(e,n))}function MS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),oy(e,n)}function OS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),oy(e,n)}var iy;iy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_t.current)Et=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Et=!1,xS(e,t,n);Et=!!(e.flags&131072)}else Et=!1,ze&&t.flags&1048576&&a0(t,la,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Il(e,t),e=t.pendingProps;var o=Wo(t,xt.current);jo(t,n),o=Bf(null,t,r,e,o,n);var i=Vf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tt(r)?(i=!0,ia(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Lf(t),o.updater=Na,t.stateNode=o,o._reactInternals=t,Sd(t,r,e,n),t=kd(null,t,r,!0,i,n)):(t.tag=0,ze&&i&&_f(t),St(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Il(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=AS(r),e=hn(r,e),o){case 0:t=Cd(null,t,r,e,n);break e;case 1:t=tm(null,t,r,e,n);break e;case 11:t=Jh(null,t,r,e,n);break e;case 14:t=em(null,t,r,hn(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:hn(r,o),Cd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:hn(r,o),tm(e,t,r,o,n);case 3:e:{if(V0(t),e===null)throw Error(z(387));r=t.pendingProps,i=t.memoizedState,o=i.element,f0(e,t),ca(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Yo(Error(z(423)),t),t=nm(e,t,r,n,o);break e}else if(r!==o){o=Yo(Error(z(424)),t),t=nm(e,t,r,n,o);break e}else for(Vt=mr(t.stateNode.containerInfo.firstChild),Ht=t,ze=!0,yn=null,n=g0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Go(),r===o){t=Qn(e,t,n);break e}St(e,t,r,n)}t=t.child}return t;case 5:return v0(t),e===null&&yd(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,pd(r,o)?s=null:i!==null&&pd(r,i)&&(t.flags|=32),B0(e,t),St(e,t,s,n),t.child;case 6:return e===null&&yd(t),null;case 13:return H0(e,t,n);case 4:return Nf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ko(t,null,r,n):St(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:hn(r,o),Jh(e,t,r,o,n);case 7:return St(e,t,t.pendingProps,n),t.child;case 8:return St(e,t,t.pendingProps.children,n),t.child;case 12:return St(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Ae(aa,r._currentValue),r._currentValue=s,i!==null)if(kn(i.value,s)){if(i.children===o.children&&!_t.current){t=Qn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Kn(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),xd(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(z(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),xd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}St(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jo(t,n),o=rn(o),r=r(o),t.flags|=1,St(e,t,r,n),t.child;case 14:return r=t.type,o=hn(r,t.pendingProps),o=hn(r.type,o),em(e,t,r,o,n);case 15:return D0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:hn(r,o),Il(e,t),t.tag=1,Tt(r)?(e=!0,ia(t)):e=!1,jo(t,n),h0(t,r,o),Sd(t,r,o,n),kd(null,t,r,!0,e,n);case 19:return U0(e,t,n);case 22:return j0(e,t,n)}throw Error(z(156,t.tag))};function sy(e,t){return Ov(e,t)}function IS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function en(e,t,n,r){return new IS(e,t,n,r)}function Zf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function AS(e){if(typeof e=="function")return Zf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vf)return 11;if(e===yf)return 14}return 2}function xr(e,t){var n=e.alternate;return n===null?(n=en(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ll(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Zf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ro:return Ur(n.children,o,i,t);case gf:s=8,o|=8;break;case Wc:return e=en(12,n,t,o|2),e.elementType=Wc,e.lanes=i,e;case Gc:return e=en(13,n,t,o),e.elementType=Gc,e.lanes=i,e;case Kc:return e=en(19,n,t,o),e.elementType=Kc,e.lanes=i,e;case mv:return Ba(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pv:s=10;break e;case hv:s=9;break e;case vf:s=11;break e;case yf:s=14;break e;case or:s=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=en(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ur(e,t,n,r){return e=en(7,e,r,t),e.lanes=n,e}function Ba(e,t,n,r){return e=en(22,e,r,t),e.elementType=mv,e.lanes=n,e.stateNode={isHidden:!1},e}function xc(e,t,n){return e=en(6,e,null,t),e.lanes=n,e}function bc(e,t,n){return t=en(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function FS(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ec(0),this.expirationTimes=ec(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ec(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Jf(e,t,n,r,o,i,s,l,a){return e=new FS(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=en(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lf(i),e}function LS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ko,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ly(e){if(!e)return wr;e=e._reactInternals;e:{if(no(e)!==e||e.tag!==1)throw Error(z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(z(171))}if(e.tag===1){var n=e.type;if(Tt(n))return s0(e,n,t)}return t}function ay(e,t,n,r,o,i,s,l,a){return e=Jf(n,r,!0,e,o,i,s,l,a),e.context=ly(null),n=e.current,r=Ct(),o=yr(n),i=Kn(r,o),i.callback=t??null,gr(n,i,o),e.current.lanes=o,Os(e,o,r),Mt(e,r),e}function Va(e,t,n,r){var o=t.current,i=Ct(),s=yr(o);return n=ly(n),t.context===null?t.context=n:t.pendingContext=n,t=Kn(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=gr(o,t,s),e!==null&&(wn(e,o,s,i),Tl(e,o,s)),s}function ya(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function fm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ep(e,t){fm(e,t),(e=e.alternate)&&fm(e,t)}function NS(){return null}var uy=typeof reportError=="function"?reportError:function(e){console.error(e)};function tp(e){this._internalRoot=e}Ha.prototype.render=tp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(z(409));Va(e,t,null,null)};Ha.prototype.unmount=tp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xr(function(){Va(null,e,null,null)}),t[Yn]=null}};function Ha(e){this._internalRoot=e}Ha.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dv();e={blockedOn:null,target:e,priority:t};for(var n=0;n<sr.length&&t!==0&&t<sr[n].priority;n++);sr.splice(n,0,e),n===0&&Bv(e)}};function np(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ua(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pm(){}function zS(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=ya(s);i.call(u)}}var s=ay(t,r,e,0,null,!1,!1,"",pm);return e._reactRootContainer=s,e[Yn]=s.current,ms(e.nodeType===8?e.parentNode:e),Xr(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=ya(a);l.call(u)}}var a=Jf(e,0,!1,null,null,!1,!1,"",pm);return e._reactRootContainer=a,e[Yn]=a.current,ms(e.nodeType===8?e.parentNode:e),Xr(function(){Va(t,a,n,r)}),a}function Wa(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var l=o;o=function(){var a=ya(s);l.call(a)}}Va(t,s,e,o)}else s=zS(n,t,e,o,r);return ya(s)}Nv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ji(t.pendingLanes);n!==0&&(Sf(t,n|1),Mt(t,Ye()),!(Re&6)&&(Xo=Ye()+500,Pr()))}break;case 13:Xr(function(){var r=Xn(e,1);if(r!==null){var o=Ct();wn(r,e,1,o)}}),ep(e,1)}};wf=function(e){if(e.tag===13){var t=Xn(e,134217728);if(t!==null){var n=Ct();wn(t,e,134217728,n)}ep(e,134217728)}};zv=function(e){if(e.tag===13){var t=yr(e),n=Xn(e,t);if(n!==null){var r=Ct();wn(n,e,t,r)}ep(e,t)}};Dv=function(){return Te};jv=function(e,t){var n=Te;try{return Te=e,t()}finally{Te=n}};rd=function(e,t,n){switch(t){case"input":if(Xc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Fa(r);if(!o)throw Error(z(90));vv(r),Xc(r,o)}}}break;case"textarea":xv(e,n);break;case"select":t=n.value,t!=null&&Lo(e,!!n.multiple,t,!1)}};$v=Yf;Ev=Xr;var DS={usingClientEntryPoint:!1,Events:[As,_o,Fa,kv,Rv,Yf]},ki={findFiberByHostInstance:Dr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},jS={bundleType:ki.bundleType,version:ki.version,rendererPackageName:ki.rendererPackageName,rendererConfig:ki.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Jn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Tv(e),e===null?null:e.stateNode},findFiberByHostInstance:ki.findFiberByHostInstance||NS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var al=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!al.isDisabled&&al.supportsFiber)try{Ma=al.inject(jS),In=al}catch{}}Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=DS;Kt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!np(t))throw Error(z(200));return LS(e,t,null,n)};Kt.createRoot=function(e,t){if(!np(e))throw Error(z(299));var n=!1,r="",o=uy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Jf(e,1,!1,null,null,n,!1,r,o),e[Yn]=t.current,ms(e.nodeType===8?e.parentNode:e),new tp(t)};Kt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(z(188)):(e=Object.keys(e).join(","),Error(z(268,e)));return e=Tv(t),e=e===null?null:e.stateNode,e};Kt.flushSync=function(e){return Xr(e)};Kt.hydrate=function(e,t,n){if(!Ua(t))throw Error(z(200));return Wa(null,e,t,!0,n)};Kt.hydrateRoot=function(e,t,n){if(!np(e))throw Error(z(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=uy;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=ay(t,null,e,1,n??null,o,!1,i,s),e[Yn]=t.current,ms(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ha(t)};Kt.render=function(e,t,n){if(!Ua(t))throw Error(z(200));return Wa(null,e,t,!1,n)};Kt.unmountComponentAtNode=function(e){if(!Ua(e))throw Error(z(40));return e._reactRootContainer?(Xr(function(){Wa(null,null,e,!1,function(){e._reactRootContainer=null,e[Yn]=null})}),!0):!1};Kt.unstable_batchedUpdates=Yf;Kt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ua(n))throw Error(z(200));if(e==null||e._reactInternals===void 0)throw Error(z(38));return Wa(e,t,n,!1,r)};Kt.version="18.2.0-next-9e3b772b8-20220608";function cy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cy)}catch(e){console.error(e)}}cy(),av.exports=Kt;var Ga=av.exports;const ul=af(Ga);var hm=Ga;Hc.createRoot=hm.createRoot,Hc.hydrateRoot=hm.hydrateRoot;function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}function zr(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function dy(e){if(!zr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=dy(e[n])}),t}function Ot(e,t,n={clone:!0}){const r=n.clone?S({},e):e;return zr(e)&&zr(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(zr(t[o])&&o in e&&zr(e[o])?r[o]=Ot(e[o],t[o],n):n.clone?r[o]=zr(t[o])?dy(t[o]):t[o]:r[o]=t[o])}),r}function Cr(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function K(e){if(typeof e!="string")throw new Error(Cr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ld(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function rp(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function BS(e,t){return()=>null}function Nl(e,t){return w.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function nt(e){return e&&e.ownerDocument||document}function kr(e){return nt(e).defaultView||window}function VS(e,t){return()=>null}function xa(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const HS=typeof window<"u"?w.useLayoutEffect:w.useEffect,sn=HS;let mm=0;function US(e){const[t,n]=w.useState(e),r=e||t;return w.useEffect(()=>{t==null&&(mm+=1,n(`mui-${mm}`))},[t]),r}const gm=ql["useId"];function Ka(e){if(gm!==void 0){const t=gm();return e??t}return US(e)}function WS(e,t,n,r,o){return null}function Qo({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=w.useRef(e!==void 0),[i,s]=w.useState(t),l=o?e:i,a=w.useCallback(u=>{o||s(u)},[]);return[l,a]}function xn(e){const t=w.useRef(e);return sn(()=>{t.current=e}),w.useCallback((...n)=>(0,t.current)(...n),[])}function Qe(...e){return w.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{xa(n,t)})},e)}let qa=!0,Nd=!1,vm;const GS={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function KS(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&GS[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function qS(e){e.metaKey||e.altKey||e.ctrlKey||(qa=!0)}function Sc(){qa=!1}function YS(){this.visibilityState==="hidden"&&Nd&&(qa=!0)}function XS(e){e.addEventListener("keydown",qS,!0),e.addEventListener("mousedown",Sc,!0),e.addEventListener("pointerdown",Sc,!0),e.addEventListener("touchstart",Sc,!0),e.addEventListener("visibilitychange",YS,!0)}function QS(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return qa||KS(t)}function Ya(){const e=w.useCallback(o=>{o!=null&&XS(o.ownerDocument)},[]),t=w.useRef(!1);function n(){return t.current?(Nd=!0,window.clearTimeout(vm),vm=window.setTimeout(()=>{Nd=!1},100),t.current=!1,!0):!1}function r(o){return QS(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function fy(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const ZS={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},JS=ZS;function op(e,t){const n=S({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=S({},i),Object.keys(o).forEach(s=>{n[r][s]=op(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function de(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const l=t(s);l!==""&&i.push(l),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const ym=e=>e,ew=()=>{let e=ym;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ym}}},tw=ew(),ip=tw,nw={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function ue(e,t,n="Mui"){const r=nw[t];return r?`${n}-${r}`:`${ip.generate(e)}-${t}`}function ae(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ue(e,o,n)}),r}function py(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var rw=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ow=py(function(e){return rw.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function iw(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function sw(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var lw=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(sw(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=iw(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),vt="-ms-",ba="-moz-",$e="-webkit-",hy="comm",sp="rule",lp="decl",aw="@import",my="@keyframes",uw="@layer",cw=Math.abs,Xa=String.fromCharCode,dw=Object.assign;function fw(e,t){return ft(e,0)^45?(((t<<2^ft(e,0))<<2^ft(e,1))<<2^ft(e,2))<<2^ft(e,3):0}function gy(e){return e.trim()}function pw(e,t){return(e=t.exec(e))?e[0]:e}function Ee(e,t,n){return e.replace(t,n)}function zd(e,t){return e.indexOf(t)}function ft(e,t){return e.charCodeAt(t)|0}function ks(e,t,n){return e.slice(t,n)}function _n(e){return e.length}function ap(e){return e.length}function cl(e,t){return t.push(e),e}function hw(e,t){return e.map(t).join("")}var Qa=1,Zo=1,vy=0,Ft=0,Je=0,ai="";function Za(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Qa,column:Zo,length:s,return:""}}function Ri(e,t){return dw(Za("",null,null,"",null,null,0),e,{length:-e.length},t)}function mw(){return Je}function gw(){return Je=Ft>0?ft(ai,--Ft):0,Zo--,Je===10&&(Zo=1,Qa--),Je}function Ut(){return Je=Ft<vy?ft(ai,Ft++):0,Zo++,Je===10&&(Zo=1,Qa++),Je}function Fn(){return ft(ai,Ft)}function zl(){return Ft}function Ls(e,t){return ks(ai,e,t)}function Rs(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yy(e){return Qa=Zo=1,vy=_n(ai=e),Ft=0,[]}function xy(e){return ai="",e}function Dl(e){return gy(Ls(Ft-1,Dd(e===91?e+2:e===40?e+1:e)))}function vw(e){for(;(Je=Fn())&&Je<33;)Ut();return Rs(e)>2||Rs(Je)>3?"":" "}function yw(e,t){for(;--t&&Ut()&&!(Je<48||Je>102||Je>57&&Je<65||Je>70&&Je<97););return Ls(e,zl()+(t<6&&Fn()==32&&Ut()==32))}function Dd(e){for(;Ut();)switch(Je){case e:return Ft;case 34:case 39:e!==34&&e!==39&&Dd(Je);break;case 40:e===41&&Dd(e);break;case 92:Ut();break}return Ft}function xw(e,t){for(;Ut()&&e+Je!==47+10;)if(e+Je===42+42&&Fn()===47)break;return"/*"+Ls(t,Ft-1)+"*"+Xa(e===47?e:Ut())}function bw(e){for(;!Rs(Fn());)Ut();return Ls(e,Ft)}function Sw(e){return xy(jl("",null,null,null,[""],e=yy(e),0,[0],e))}function jl(e,t,n,r,o,i,s,l,a){for(var u=0,c=0,d=s,f=0,h=0,y=0,m=1,k=1,g=1,p=0,v="",x=o,C=i,R=r,$=v;k;)switch(y=p,p=Ut()){case 40:if(y!=108&&ft($,d-1)==58){zd($+=Ee(Dl(p),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:$+=Dl(p);break;case 9:case 10:case 13:case 32:$+=vw(y);break;case 92:$+=yw(zl()-1,7);continue;case 47:switch(Fn()){case 42:case 47:cl(ww(xw(Ut(),zl()),t,n),a);break;default:$+="/"}break;case 123*m:l[u++]=_n($)*g;case 125*m:case 59:case 0:switch(p){case 0:case 125:k=0;case 59+c:g==-1&&($=Ee($,/\f/g,"")),h>0&&_n($)-d&&cl(h>32?bm($+";",r,n,d-1):bm(Ee($," ","")+";",r,n,d-2),a);break;case 59:$+=";";default:if(cl(R=xm($,t,n,u,c,o,l,v,x=[],C=[],d),i),p===123)if(c===0)jl($,t,R,R,x,i,d,l,C);else switch(f===99&&ft($,3)===110?100:f){case 100:case 108:case 109:case 115:jl(e,R,R,r&&cl(xm(e,R,R,0,0,o,l,v,o,x=[],d),C),o,C,d,l,r?x:C);break;default:jl($,R,R,R,[""],C,0,l,C)}}u=c=h=0,m=g=1,v=$="",d=s;break;case 58:d=1+_n($),h=y;default:if(m<1){if(p==123)--m;else if(p==125&&m++==0&&gw()==125)continue}switch($+=Xa(p),p*m){case 38:g=c>0?1:($+="\f",-1);break;case 44:l[u++]=(_n($)-1)*g,g=1;break;case 64:Fn()===45&&($+=Dl(Ut())),f=Fn(),c=d=_n(v=$+=bw(zl())),p++;break;case 45:y===45&&_n($)==2&&(m=0)}}return i}function xm(e,t,n,r,o,i,s,l,a,u,c){for(var d=o-1,f=o===0?i:[""],h=ap(f),y=0,m=0,k=0;y<r;++y)for(var g=0,p=ks(e,d+1,d=cw(m=s[y])),v=e;g<h;++g)(v=gy(m>0?f[g]+" "+p:Ee(p,/&\f/g,f[g])))&&(a[k++]=v);return Za(e,t,n,o===0?sp:l,a,u,c)}function ww(e,t,n){return Za(e,t,n,hy,Xa(mw()),ks(e,2,-2),0)}function bm(e,t,n,r){return Za(e,t,n,lp,ks(e,0,r),ks(e,r+1,-1),r)}function Vo(e,t){for(var n="",r=ap(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Cw(e,t,n,r){switch(e.type){case uw:if(e.children.length)break;case aw:case lp:return e.return=e.return||e.value;case hy:return"";case my:return e.return=e.value+"{"+Vo(e.children,r)+"}";case sp:e.value=e.props.join(",")}return _n(n=Vo(e.children,r))?e.return=e.value+"{"+n+"}":""}function kw(e){var t=ap(e);return function(n,r,o,i){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,i)||"";return s}}function Rw(e){return function(t){t.root||(t=t.return)&&e(t)}}var $w=function(t,n,r){for(var o=0,i=0;o=i,i=Fn(),o===38&&i===12&&(n[r]=1),!Rs(i);)Ut();return Ls(t,Ft)},Ew=function(t,n){var r=-1,o=44;do switch(Rs(o)){case 0:o===38&&Fn()===12&&(n[r]=1),t[r]+=$w(Ft-1,n,r);break;case 2:t[r]+=Dl(o);break;case 4:if(o===44){t[++r]=Fn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Xa(o)}while(o=Ut());return t},Pw=function(t,n){return xy(Ew(yy(t),n))},Sm=new WeakMap,_w=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Sm.get(r))&&!o){Sm.set(t,!0);for(var i=[],s=Pw(n,i),l=r.props,a=0,u=0;a<s.length;a++)for(var c=0;c<l.length;c++,u++)t.props[u]=i[a]?s[a].replace(/&\f/g,l[c]):l[c]+" "+s[a]}}},Tw=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function by(e,t){switch(fw(e,t)){case 5103:return $e+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+ba+e+vt+e+e;case 6828:case 4268:return $e+e+vt+e+e;case 6165:return $e+e+vt+"flex-"+e+e;case 5187:return $e+e+Ee(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+vt+"flex-$1$2")+e;case 5443:return $e+e+vt+"flex-item-"+Ee(e,/flex-|-self/,"")+e;case 4675:return $e+e+vt+"flex-line-pack"+Ee(e,/align-content|flex-|-self/,"")+e;case 5548:return $e+e+vt+Ee(e,"shrink","negative")+e;case 5292:return $e+e+vt+Ee(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+Ee(e,"-grow","")+$e+e+vt+Ee(e,"grow","positive")+e;case 4554:return $e+Ee(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return Ee(Ee(Ee(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return Ee(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return Ee(Ee(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+vt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4095:case 3583:case 4068:case 2532:return Ee(e,/(.+)-inline(.+)/,$e+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_n(e)-1-t>6)switch(ft(e,t+1)){case 109:if(ft(e,t+4)!==45)break;case 102:return Ee(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+ba+(ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zd(e,"stretch")?by(Ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ft(e,t+1)!==115)break;case 6444:switch(ft(e,_n(e)-3-(~zd(e,"!important")&&10))){case 107:return Ee(e,":",":"+$e)+e;case 101:return Ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$e+(ft(e,14)===45?"inline-":"")+"box$3$1"+$e+"$2$3$1"+vt+"$2box$3")+e}break;case 5936:switch(ft(e,t+11)){case 114:return $e+e+vt+Ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+vt+Ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+vt+Ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $e+e+vt+e+e}return e}var Mw=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case lp:t.return=by(t.value,t.length);break;case my:return Vo([Ri(t,{value:Ee(t.value,"@","@"+$e)})],o);case sp:if(t.length)return hw(t.props,function(i){switch(pw(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vo([Ri(t,{props:[Ee(i,/:(read-\w+)/,":"+ba+"$1")]})],o);case"::placeholder":return Vo([Ri(t,{props:[Ee(i,/:(plac\w+)/,":"+$e+"input-$1")]}),Ri(t,{props:[Ee(i,/:(plac\w+)/,":"+ba+"$1")]}),Ri(t,{props:[Ee(i,/:(plac\w+)/,vt+"input-$1")]})],o)}return""})}},Ow=[Mw],Iw=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var k=m.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||Ow,i={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var k=m.getAttribute("data-emotion").split(" "),g=1;g<k.length;g++)i[k[g]]=!0;l.push(m)});var a,u=[_w,Tw];{var c,d=[Cw,Rw(function(m){c.insert(m)})],f=kw(u.concat(o,d)),h=function(k){return Vo(Sw(k),f)};a=function(k,g,p,v){c=p,h(k?k+"{"+g.styles+"}":g.styles),v&&(y.inserted[g.name]=!0)}}var y={key:n,sheet:new lw({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:a};return y.sheet.hydrate(l),y},Sy={exports:{}},Me={};/** @license React v16.13.1
41
- * react-is.production.min.js
42
- *
43
- * Copyright (c) Facebook, Inc. and its affiliates.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE file in the root directory of this source tree.
47
- */var ut=typeof Symbol=="function"&&Symbol.for,up=ut?Symbol.for("react.element"):60103,cp=ut?Symbol.for("react.portal"):60106,Ja=ut?Symbol.for("react.fragment"):60107,eu=ut?Symbol.for("react.strict_mode"):60108,tu=ut?Symbol.for("react.profiler"):60114,nu=ut?Symbol.for("react.provider"):60109,ru=ut?Symbol.for("react.context"):60110,dp=ut?Symbol.for("react.async_mode"):60111,ou=ut?Symbol.for("react.concurrent_mode"):60111,iu=ut?Symbol.for("react.forward_ref"):60112,su=ut?Symbol.for("react.suspense"):60113,Aw=ut?Symbol.for("react.suspense_list"):60120,lu=ut?Symbol.for("react.memo"):60115,au=ut?Symbol.for("react.lazy"):60116,Fw=ut?Symbol.for("react.block"):60121,Lw=ut?Symbol.for("react.fundamental"):60117,Nw=ut?Symbol.for("react.responder"):60118,zw=ut?Symbol.for("react.scope"):60119;function Yt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case up:switch(e=e.type,e){case dp:case ou:case Ja:case tu:case eu:case su:return e;default:switch(e=e&&e.$$typeof,e){case ru:case iu:case au:case lu:case nu:return e;default:return t}}case cp:return t}}}function wy(e){return Yt(e)===ou}Me.AsyncMode=dp;Me.ConcurrentMode=ou;Me.ContextConsumer=ru;Me.ContextProvider=nu;Me.Element=up;Me.ForwardRef=iu;Me.Fragment=Ja;Me.Lazy=au;Me.Memo=lu;Me.Portal=cp;Me.Profiler=tu;Me.StrictMode=eu;Me.Suspense=su;Me.isAsyncMode=function(e){return wy(e)||Yt(e)===dp};Me.isConcurrentMode=wy;Me.isContextConsumer=function(e){return Yt(e)===ru};Me.isContextProvider=function(e){return Yt(e)===nu};Me.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===up};Me.isForwardRef=function(e){return Yt(e)===iu};Me.isFragment=function(e){return Yt(e)===Ja};Me.isLazy=function(e){return Yt(e)===au};Me.isMemo=function(e){return Yt(e)===lu};Me.isPortal=function(e){return Yt(e)===cp};Me.isProfiler=function(e){return Yt(e)===tu};Me.isStrictMode=function(e){return Yt(e)===eu};Me.isSuspense=function(e){return Yt(e)===su};Me.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ja||e===ou||e===tu||e===eu||e===su||e===Aw||typeof e=="object"&&e!==null&&(e.$$typeof===au||e.$$typeof===lu||e.$$typeof===nu||e.$$typeof===ru||e.$$typeof===iu||e.$$typeof===Lw||e.$$typeof===Nw||e.$$typeof===zw||e.$$typeof===Fw)};Me.typeOf=Yt;Sy.exports=Me;var Dw=Sy.exports,Cy=Dw,jw={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Bw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ky={};ky[Cy.ForwardRef]=jw;ky[Cy.Memo]=Bw;var Vw=!0;function Hw(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var Ry=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Vw===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},$y=function(t,n,r){Ry(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Uw(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ww={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Gw=/[A-Z]|^ms/g,Kw=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ey=function(t){return t.charCodeAt(1)===45},wm=function(t){return t!=null&&typeof t!="boolean"},wc=py(function(e){return Ey(e)?e:e.replace(Gw,"-$&").toLowerCase()}),Cm=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Kw,function(r,o,i){return Tn={name:o,styles:i,next:Tn},o})}return Ww[t]!==1&&!Ey(t)&&typeof n=="number"&&n!==0?n+"px":n};function $s(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Tn={name:n.name,styles:n.styles,next:Tn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Tn={name:r.name,styles:r.styles,next:Tn},r=r.next;var o=n.styles+";";return o}return qw(e,t,n)}case"function":{if(e!==void 0){var i=Tn,s=n(e);return Tn=i,$s(e,t,s)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function qw(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=$s(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":wm(s)&&(r+=wc(i)+":"+Cm(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var l=0;l<s.length;l++)wm(s[l])&&(r+=wc(i)+":"+Cm(i,s[l])+";");else{var a=$s(e,t,s);switch(i){case"animation":case"animationName":{r+=wc(i)+":"+a+";";break}default:r+=i+"{"+a+"}"}}}return r}var km=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Tn,fp=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";Tn=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=$s(r,n,s)):i+=s[0];for(var l=1;l<t.length;l++)i+=$s(r,n,t[l]),o&&(i+=s[l]);km.lastIndex=0;for(var a="",u;(u=km.exec(i))!==null;)a+="-"+u[1];var c=Uw(i)+a;return{name:c,styles:i,next:Tn}},Yw=function(t){return t()},Py=ql["useInsertionEffect"]?ql["useInsertionEffect"]:!1,Xw=Py||Yw,Rm=Py||w.useLayoutEffect,_y=w.createContext(typeof HTMLElement<"u"?Iw({key:"css"}):null);_y.Provider;var Ty=function(t){return w.forwardRef(function(n,r){var o=w.useContext(_y);return t(n,o,r)})},uu=w.createContext({}),Qw=Ty(function(e,t){var n=e.styles,r=fp([n],void 0,w.useContext(uu)),o=w.useRef();return Rm(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,a=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),a!==null&&(l=!0,a.setAttribute("data-emotion",i),s.hydrate([a])),o.current=[s,l],function(){s.flush()}},[t]),Rm(function(){var i=o.current,s=i[0],l=i[1];if(l){i[1]=!1;return}if(r.next!==void 0&&$y(t,r.next,!0),s.tags.length){var a=s.tags[s.tags.length-1].nextElementSibling;s.before=a,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function pp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fp(t)}var Ns=function(){var t=pp.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Zw=ow,Jw=function(t){return t!=="theme"},$m=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Zw:Jw},Em=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},eC=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ry(n,r,o),Xw(function(){return $y(n,r,o)}),null},tC=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var l=Em(t,n,r),a=l||$m(o),u=!a("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,h=1;h<f;h++)d.push(c[h],c[0][h])}var y=Ty(function(m,k,g){var p=u&&m.as||o,v="",x=[],C=m;if(m.theme==null){C={};for(var R in m)C[R]=m[R];C.theme=w.useContext(uu)}typeof m.className=="string"?v=Hw(k.registered,x,m.className):m.className!=null&&(v=m.className+" ");var $=fp(d.concat(x),k.registered,C);v+=k.key+"-"+$.name,s!==void 0&&(v+=" "+s);var E=u&&l===void 0?$m(p):a,_={};for(var P in m)u&&P==="as"||E(P)&&(_[P]=m[P]);return _.className=v,_.ref=g,w.createElement(w.Fragment,null,w.createElement(eC,{cache:k,serialized:$,isStringTag:typeof p=="string"}),w.createElement(p,_))});return y.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=d,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+s}}),y.withComponent=function(m,k){return e(m,S({},n,k,{shouldForwardProp:Em(y,k,!0)})).apply(void 0,d)},y}},nC=["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"],jd=tC.bind();nC.forEach(function(e){jd[e]=jd(e)});function rC(e){return e==null||Object.keys(e).length===0}function oC(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(rC(o)?n:o):t;return b.jsx(Qw,{styles:r})}/**
48
- * @mui/styled-engine v5.12.3
49
- *
50
- * @license MIT
51
- * This source code is licensed under the MIT license found in the
52
- * LICENSE file in the root directory of this source tree.
53
- */function My(e,t){return jd(e,t)}const iC=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function q(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const sC=["values","unit","step"],lC=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>S({},n,{[r.key]:r.val}),{})};function aC(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=q(e,sC),i=lC(t),s=Object.keys(i);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function a(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,h){const y=s.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:h)-r/100}${n})`}function c(f){return s.indexOf(f)+1<s.length?u(f,s[s.indexOf(f)+1]):l(f)}function d(f){const h=s.indexOf(f);return h===0?l(s[1]):h===s.length-1?a(s[h]):u(f,s[s.indexOf(f)+1]).replace("@media","@media not all and")}return S({keys:s,values:i,up:l,down:a,between:u,only:c,not:d,unit:n},o)}const uC={borderRadius:4},cC=uC;function ts(e,t){return t?Ot(e,t,{clone:!1}):e}const hp={xs:0,sm:600,md:900,lg:1200,xl:1536},Pm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hp[e]}px)`};function Rn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Pm;return t.reduce((s,l,a)=>(s[i.up(i.keys[a])]=n(t[a]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Pm;return Object.keys(t).reduce((s,l)=>{if(Object.keys(i.values||hp).indexOf(l)!==-1){const a=i.up(l);s[a]=n(t[l],l)}else{const a=l;s[a]=t[a]}return s},{})}return n(t)}function Oy(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Iy(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function dC(e,...t){const n=Oy(e),r=[n,...t].reduce((o,i)=>Ot(o,i),{});return Iy(Object.keys(n),r)}function fC(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Cc({values:e,breakpoints:t,base:n}){const r=n||fC(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,l,a)=>(Array.isArray(e)?(s[l]=e[a]!=null?e[a]:e[i],i=a):typeof e=="object"?(s[l]=e[l]!=null?e[l]:e[i],i=l):s[l]=e,s),{})}function cu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Sa(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=cu(e,n)||r,t&&(o=t(o,r,e)),o}function Pe(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const l=s[t],a=s.theme,u=cu(a,r)||{};return Rn(s,l,d=>{let f=Sa(u,o,d);return d===f&&typeof d=="string"&&(f=Sa(u,o,`${t}${d==="default"?"":K(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function pC(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const hC={m:"margin",p:"padding"},mC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_m={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gC=pC(e=>{if(e.length>2)if(_m[e])e=_m[e];else return[e];const[t,n]=e.split(""),r=hC[t],o=mC[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),mp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...mp,...gp];function zs(e,t,n,r){var o;const i=(o=cu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function vp(e){return zs(e,"spacing",8)}function Qr(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function vC(e,t){return n=>e.reduce((r,o)=>(r[o]=Qr(t,n),r),{})}function yC(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=gC(n),i=vC(o,r),s=e[n];return Rn(e,s,i)}function Ay(e,t){const n=vp(e.theme);return Object.keys(e).map(r=>yC(e,t,r,n)).reduce(ts,{})}function Ue(e){return Ay(e,mp)}Ue.propTypes={};Ue.filterProps=mp;function We(e){return Ay(e,gp)}We.propTypes={};We.filterProps=gp;function xC(e=8){if(e.mui)return e;const t=vp({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function du(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?ts(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function On(e){return typeof e!="number"?e:`${e}px solid`}const bC=Pe({prop:"border",themeKey:"borders",transform:On}),SC=Pe({prop:"borderTop",themeKey:"borders",transform:On}),wC=Pe({prop:"borderRight",themeKey:"borders",transform:On}),CC=Pe({prop:"borderBottom",themeKey:"borders",transform:On}),kC=Pe({prop:"borderLeft",themeKey:"borders",transform:On}),RC=Pe({prop:"borderColor",themeKey:"palette"}),$C=Pe({prop:"borderTopColor",themeKey:"palette"}),EC=Pe({prop:"borderRightColor",themeKey:"palette"}),PC=Pe({prop:"borderBottomColor",themeKey:"palette"}),_C=Pe({prop:"borderLeftColor",themeKey:"palette"}),fu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=zs(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Qr(t,r)});return Rn(e,e.borderRadius,n)}return null};fu.propTypes={};fu.filterProps=["borderRadius"];du(bC,SC,wC,CC,kC,RC,$C,EC,PC,_C,fu);const pu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=zs(e.theme,"spacing",8),n=r=>({gap:Qr(t,r)});return Rn(e,e.gap,n)}return null};pu.propTypes={};pu.filterProps=["gap"];const hu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=zs(e.theme,"spacing",8),n=r=>({columnGap:Qr(t,r)});return Rn(e,e.columnGap,n)}return null};hu.propTypes={};hu.filterProps=["columnGap"];const mu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=zs(e.theme,"spacing",8),n=r=>({rowGap:Qr(t,r)});return Rn(e,e.rowGap,n)}return null};mu.propTypes={};mu.filterProps=["rowGap"];const TC=Pe({prop:"gridColumn"}),MC=Pe({prop:"gridRow"}),OC=Pe({prop:"gridAutoFlow"}),IC=Pe({prop:"gridAutoColumns"}),AC=Pe({prop:"gridAutoRows"}),FC=Pe({prop:"gridTemplateColumns"}),LC=Pe({prop:"gridTemplateRows"}),NC=Pe({prop:"gridTemplateAreas"}),zC=Pe({prop:"gridArea"});du(pu,hu,mu,TC,MC,OC,IC,AC,FC,LC,NC,zC);function Ho(e,t){return t==="grey"?t:e}const DC=Pe({prop:"color",themeKey:"palette",transform:Ho}),jC=Pe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ho}),BC=Pe({prop:"backgroundColor",themeKey:"palette",transform:Ho});du(DC,jC,BC);function Bt(e){return e<=1&&e!==0?`${e*100}%`:e}const VC=Pe({prop:"width",transform:Bt}),yp=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,i;return{maxWidth:((r=e.theme)==null||(o=r.breakpoints)==null||(i=o.values)==null?void 0:i[n])||hp[n]||Bt(n)}};return Rn(e,e.maxWidth,t)}return null};yp.filterProps=["maxWidth"];const HC=Pe({prop:"minWidth",transform:Bt}),UC=Pe({prop:"height",transform:Bt}),WC=Pe({prop:"maxHeight",transform:Bt}),GC=Pe({prop:"minHeight",transform:Bt});Pe({prop:"size",cssProperty:"width",transform:Bt});Pe({prop:"size",cssProperty:"height",transform:Bt});const KC=Pe({prop:"boxSizing"});du(VC,yp,HC,UC,WC,GC,KC);const qC={border:{themeKey:"borders",transform:On},borderTop:{themeKey:"borders",transform:On},borderRight:{themeKey:"borders",transform:On},borderBottom:{themeKey:"borders",transform:On},borderLeft:{themeKey:"borders",transform:On},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:fu},color:{themeKey:"palette",transform:Ho},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ho},backgroundColor:{themeKey:"palette",transform:Ho},p:{style:We},pt:{style:We},pr:{style:We},pb:{style:We},pl:{style:We},px:{style:We},py:{style:We},padding:{style:We},paddingTop:{style:We},paddingRight:{style:We},paddingBottom:{style:We},paddingLeft:{style:We},paddingX:{style:We},paddingY:{style:We},paddingInline:{style:We},paddingInlineStart:{style:We},paddingInlineEnd:{style:We},paddingBlock:{style:We},paddingBlockStart:{style:We},paddingBlockEnd:{style:We},m:{style:Ue},mt:{style:Ue},mr:{style:Ue},mb:{style:Ue},ml:{style:Ue},mx:{style:Ue},my:{style:Ue},margin:{style:Ue},marginTop:{style:Ue},marginRight:{style:Ue},marginBottom:{style:Ue},marginLeft:{style:Ue},marginX:{style:Ue},marginY:{style:Ue},marginInline:{style:Ue},marginInlineStart:{style:Ue},marginInlineEnd:{style:Ue},marginBlock:{style:Ue},marginBlockStart:{style:Ue},marginBlockEnd:{style:Ue},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:pu},rowGap:{style:mu},columnGap:{style:hu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bt},maxWidth:{style:yp},minWidth:{transform:Bt},height:{transform:Bt},maxHeight:{transform:Bt},minHeight:{transform:Bt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},gu=qC;function YC(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function XC(e,t){return typeof e=="function"?e(t):e}function QC(){function e(n,r,o,i){const s={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:u,transform:c,style:d}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=cu(o,u)||{};return d?d(s):Rn(s,r,y=>{let m=Sa(f,c,y);return y===m&&typeof y=="string"&&(m=Sa(f,c,`${n}${y==="default"?"":K(y)}`,y)),a===!1?m:{[a]:m}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:gu;function l(a){let u=a;if(typeof a=="function")u=a(i);else if(typeof a!="object")return a;if(!u)return null;const c=Oy(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(h=>{const y=XC(u[h],i);if(y!=null)if(typeof y=="object")if(s[h])f=ts(f,e(h,y,i,s));else{const m=Rn({theme:i},y,k=>({[h]:k}));YC(m,y)?f[h]=t({sx:y,theme:i}):f=ts(f,m)}else f=ts(f,e(h,y,i,s))}),Iy(d,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const Fy=QC();Fy.filterProps=["sx"];const vu=Fy,ZC=["breakpoints","palette","spacing","shape"];function yu(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=q(e,ZC),l=aC(n),a=xC(o);let u=Ot({breakpoints:l,direction:"ltr",components:{},palette:S({mode:"light"},r),spacing:a,shape:S({},cC,i)},s);return u=t.reduce((c,d)=>Ot(c,d),u),u.unstable_sxConfig=S({},gu,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return vu({sx:d,theme:this})},u}function JC(e){return Object.keys(e).length===0}function xu(e=null){const t=w.useContext(uu);return!t||JC(t)?e:t}const ek=yu();function bu(e=ek){return xu(e)}function tk({styles:e,themeId:t,defaultTheme:n={}}){const r=bu(n),o=typeof e=="function"?e(t&&r[t]||r):e;return b.jsx(oC,{styles:o})}const nk=["sx"],rk=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:gu;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function xp(e){const{sx:t}=e,n=q(e,nk),{systemProps:r,otherProps:o}=rk(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const l=t(...s);return zr(l)?S({},r,l):r}:i=S({},r,t),S({},o,{sx:i})}function Ly(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ly(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ny(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ly(e))&&(r&&(r+=" "),r+=t);return r}const ok=["className","component"];function ik(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=My("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(vu);return w.forwardRef(function(a,u){const c=bu(n),d=xp(a),{className:f,component:h="div"}=d,y=q(d,ok);return b.jsx(i,S({as:h,ref:u,className:Ny(f,o?o(r):r),theme:t&&c[t]||c},y))})}const sk=["variant"];function Tm(e){return e.length===0}function zy(e){const{variant:t}=e,n=q(e,sk);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=Tm(r)?e[o]:K(e[o]):r+=`${Tm(r)?o:K(o)}${K(e[o].toString())}`}),r}const lk=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ak(e){return Object.keys(e).length===0}function uk(e){return typeof e=="string"&&e.charCodeAt(0)>96}const ck=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,dk=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=zy(o.props);r[i]=o.style}),r},fk=(e,t,n,r)=>{var o,i;const{ownerState:s={}}=e,l=[],a=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return a&&a.forEach(u=>{let c=!0;Object.keys(u.props).forEach(d=>{s[d]!==u.props[d]&&e[d]!==u.props[d]&&(c=!1)}),c&&l.push(t[zy(u.props)])}),l};function ns(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pk=yu();function $i({defaultTheme:e,theme:t,themeId:n}){return ak(t)?e:t[n]||t}function Dy(e={}){const{themeId:t,defaultTheme:n=pk,rootShouldForwardProp:r=ns,slotShouldForwardProp:o=ns}=e,i=s=>vu(S({},s,{theme:$i(S({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,l={})=>{iC(s,x=>x.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:a,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f}=l,h=q(l,lk),y=c!==void 0?c:u&&u!=="Root"||!1,m=d||!1;let k,g=ns;u==="Root"?g=r:u?g=o:uk(s)&&(g=void 0);const p=My(s,S({shouldForwardProp:g,label:k},h)),v=(x,...C)=>{const R=C?C.map(P=>typeof P=="function"&&P.__emotion_real!==P?I=>P(S({},I,{theme:$i(S({},I,{defaultTheme:n,themeId:t}))})):P):[];let $=x;a&&f&&R.push(P=>{const I=$i(S({},P,{defaultTheme:n,themeId:t})),j=ck(a,I);if(j){const D={};return Object.entries(j).forEach(([A,T])=>{D[A]=typeof T=="function"?T(S({},P,{theme:I})):T}),f(P,D)}return null}),a&&!y&&R.push(P=>{const I=$i(S({},P,{defaultTheme:n,themeId:t}));return fk(P,dk(a,I),I,a)}),m||R.push(i);const E=R.length-C.length;if(Array.isArray(x)&&E>0){const P=new Array(E).fill("");$=[...x,...P],$.raw=[...x.raw,...P]}else typeof x=="function"&&x.__emotion_real!==x&&($=P=>x(S({},P,{theme:$i(S({},P,{defaultTheme:n,themeId:t}))})));const _=p($,...R);return s.muiName&&(_.muiName=s.muiName),_};return p.withConfig&&(v.withConfig=p.withConfig),v}}const hk=Dy(),jy=hk;function By(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:op(t.components[n].defaultProps,r)}function Vy({props:e,name:t,defaultTheme:n,themeId:r}){let o=bu(n);return r&&(o=o[r]||o),By({theme:o,name:t,props:e})}function bp(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function mk(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Zr(e){if(e.type)return e;if(e.charAt(0)==="#")return Zr(mk(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Cr(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Cr(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Su(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function gk(e){e=Zr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let l="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),Su({type:l,values:a})}function Mm(e){e=Zr(e);let t=e.type==="hsl"||e.type==="hsla"?Zr(gk(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vk(e,t){const n=Mm(e),r=Mm(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Xe(e,t){return e=Zr(e),t=bp(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Su(e)}function Sp(e,t){if(e=Zr(e),t=bp(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Su(e)}function wp(e,t){if(e=Zr(e),t=bp(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Su(e)}const yk=w.createContext(null),Hy=yk;function Uy(){return w.useContext(Hy)}const xk=typeof Symbol=="function"&&Symbol.for,bk=xk?Symbol.for("mui.nested"):"__THEME_NESTED__";function Sk(e,t){return typeof t=="function"?t(e):S({},e,t)}function wk(e){const{children:t,theme:n}=e,r=Uy(),o=w.useMemo(()=>{const i=r===null?n:Sk(r,n);return i!=null&&(i[bk]=r!==null),i},[n,r]);return b.jsx(Hy.Provider,{value:o,children:t})}const Om={};function Im(e,t,n,r=!1){return w.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?S({},t,{[e]:i}):i;return r?()=>s:s}return e?S({},t,{[e]:n}):S({},t,n)},[e,t,n,r])}function Ck(e){const{children:t,theme:n,themeId:r}=e,o=xu(Om),i=Uy()||Om,s=Im(r,o,n),l=Im(r,i,n,!0);return b.jsx(wk,{theme:l,children:b.jsx(uu.Provider,{value:s,children:t})})}const kk=["component","direction","spacing","divider","children","className","useFlexGap"],Rk=yu(),$k=jy("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Ek(e){return Vy({props:e,name:"MuiStack",defaultTheme:Rk})}function Pk(e,t){const n=w.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(w.cloneElement(t,{key:`separator-${i}`})),r),[])}const _k=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Tk=({ownerState:e,theme:t})=>{let n=S({display:"flex",flexDirection:"column"},Rn({theme:t},Cc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=vp(t),o=Object.keys(t.breakpoints.values).reduce((a,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(a[u]=!0),a),{}),i=Cc({values:e.direction,base:o}),s=Cc({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((a,u,c)=>{if(!i[a]){const f=u>0?i[c[u-1]]:"column";i[a]=f}}),n=Ot(n,Rn({theme:t},s,(a,u)=>e.useFlexGap?{gap:Qr(r,a)}:{"& > :not(style) + :not(style)":{margin:0,[`margin${_k(u?i[u]:e.direction)}`]:Qr(r,a)}}))}return n=dC(t.breakpoints,n),n};function Mk(e={}){const{createStyledComponent:t=$k,useThemeProps:n=Ek,componentName:r="MuiStack"}=e,o=()=>de({root:["root"]},a=>ue(r,a),{}),i=t(Tk);return w.forwardRef(function(a,u){const c=n(a),d=xp(c),{component:f="div",direction:h="column",spacing:y=0,divider:m,children:k,className:g,useFlexGap:p=!1}=d,v=q(d,kk),x={direction:h,spacing:y,useFlexGap:p},C=o();return b.jsx(i,S({as:f,ownerState:x,ref:u,className:Ny(C.root,g)},v,{children:m?Pk(k,m):k}))})}function Ok(e,t,n,r,o){const[i,s]=w.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return sn(()=>{let l=!0;if(!n)return;const a=n(e),u=()=>{l&&s(a.matches)};return u(),a.addListener(u),()=>{l=!1,a.removeListener(u)}},[e,n]),i}const Wy=ql["useSyncExternalStore"];function Ik(e,t,n,r,o){const i=w.useCallback(()=>t,[t]),s=w.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return i},[i,e,r,o,n]),[l,a]=w.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[i,n,e]);return Wy(a,l,s)}function Ak(e,t={}){const n=xu(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:l=!1}=By({name:"MuiUseMediaQuery",props:t,theme:n});let a=typeof e=="function"?e(n):e;return a=a.replace(/^@media( ?)/m,""),(Wy!==void 0?Ik:Ok)(a,o,i,s,l)}const Jr="$$material";function Fk(e,t){return S({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Lk={black:"#000",white:"#fff"},Es=Lk,Nk={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"},zk=Nk,Dk={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},go=Dk,jk={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},vo=jk,Bk={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ei=Bk,Vk={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},yo=Vk,Hk={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},xo=Hk,Uk={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},bo=Uk,Wk=["mode","contrastThreshold","tonalOffset"],Am={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:Es.white,default:Es.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}},kc={text:{primary:Es.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:Es.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Fm(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=wp(e.main,o):t==="dark"&&(e.dark=Sp(e.main,i)))}function Gk(e="light"){return e==="dark"?{main:yo[200],light:yo[50],dark:yo[400]}:{main:yo[700],light:yo[400],dark:yo[800]}}function Kk(e="light"){return e==="dark"?{main:go[200],light:go[50],dark:go[400]}:{main:go[500],light:go[300],dark:go[700]}}function qk(e="light"){return e==="dark"?{main:vo[500],light:vo[300],dark:vo[700]}:{main:vo[700],light:vo[400],dark:vo[800]}}function Yk(e="light"){return e==="dark"?{main:xo[400],light:xo[300],dark:xo[700]}:{main:xo[700],light:xo[500],dark:xo[900]}}function Xk(e="light"){return e==="dark"?{main:bo[400],light:bo[300],dark:bo[700]}:{main:bo[800],light:bo[500],dark:bo[900]}}function Qk(e="light"){return e==="dark"?{main:Ei[400],light:Ei[300],dark:Ei[700]}:{main:"#ed6c02",light:Ei[500],dark:Ei[900]}}function Zk(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=q(e,Wk),i=e.primary||Gk(t),s=e.secondary||Kk(t),l=e.error||qk(t),a=e.info||Yk(t),u=e.success||Xk(t),c=e.warning||Qk(t);function d(m){return vk(m,kc.text.primary)>=n?kc.text.primary:Am.text.primary}const f=({color:m,name:k,mainShade:g=500,lightShade:p=300,darkShade:v=700})=>{if(m=S({},m),!m.main&&m[g]&&(m.main=m[g]),!m.hasOwnProperty("main"))throw new Error(Cr(11,k?` (${k})`:"",g));if(typeof m.main!="string")throw new Error(Cr(12,k?` (${k})`:"",JSON.stringify(m.main)));return Fm(m,"light",p,r),Fm(m,"dark",v,r),m.contrastText||(m.contrastText=d(m.main)),m},h={dark:kc,light:Am};return Ot(S({common:S({},Es),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:a,name:"info"}),success:f({color:u,name:"success"}),grey:zk,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),o)}const Jk=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function eR(e){return Math.round(e*1e5)/1e5}const Lm={textTransform:"uppercase"},Nm='"Roboto", "Helvetica", "Arial", sans-serif';function tR(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Nm,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=q(n,Jk),h=o/14,y=d||(g=>`${g/u*h}rem`),m=(g,p,v,x,C)=>S({fontFamily:r,fontWeight:g,fontSize:y(p),lineHeight:v},r===Nm?{letterSpacing:`${eR(x/p)}em`}:{},C,c),k={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(l,14,1.75,.4,Lm),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,Lm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ot(S({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:a},k),f,{clone:!1})}const nR=.2,rR=.14,oR=.12;function Ne(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${nR})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${rR})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${oR})`].join(",")}const iR=["none",Ne(0,2,1,-1,0,1,1,0,0,1,3,0),Ne(0,3,1,-2,0,2,2,0,0,1,5,0),Ne(0,3,3,-2,0,3,4,0,0,1,8,0),Ne(0,2,4,-1,0,4,5,0,0,1,10,0),Ne(0,3,5,-1,0,5,8,0,0,1,14,0),Ne(0,3,5,-1,0,6,10,0,0,1,18,0),Ne(0,4,5,-2,0,7,10,1,0,2,16,1),Ne(0,5,5,-3,0,8,10,1,0,3,14,2),Ne(0,5,6,-3,0,9,12,1,0,3,16,2),Ne(0,6,6,-3,0,10,14,1,0,4,18,3),Ne(0,6,7,-4,0,11,15,1,0,4,20,3),Ne(0,7,8,-4,0,12,17,2,0,5,22,4),Ne(0,7,8,-4,0,13,19,2,0,5,24,4),Ne(0,7,9,-4,0,14,21,2,0,5,26,4),Ne(0,8,9,-5,0,15,22,2,0,6,28,5),Ne(0,8,10,-5,0,16,24,2,0,6,30,5),Ne(0,8,11,-5,0,17,26,2,0,6,32,5),Ne(0,9,11,-5,0,18,28,2,0,7,34,6),Ne(0,9,12,-6,0,19,29,2,0,7,36,6),Ne(0,10,13,-6,0,20,31,3,0,8,38,7),Ne(0,10,13,-6,0,21,33,3,0,8,40,7),Ne(0,10,14,-6,0,22,35,3,0,8,42,7),Ne(0,11,14,-7,0,23,36,3,0,9,44,8),Ne(0,11,15,-7,0,24,38,3,0,9,46,8)],sR=iR,lR=["duration","easing","delay"],aR={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)"},uR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zm(e){return`${Math.round(e)}ms`}function cR(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function dR(e){const t=S({},aR,e.easing),n=S({},uR,e.duration);return S({getAutoHeightDuration:cR,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:a=0}=i;return q(i,lR),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:zm(s)} ${l} ${typeof a=="string"?a:zm(a)}`).join(",")}},e,{easing:t,duration:n})}const fR={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},pR=fR,hR=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Cp(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=q(e,hR);if(e.vars)throw new Error(Cr(18));const l=Zk(r),a=yu(e);let u=Ot(a,{mixins:Fk(a.breakpoints,n),palette:l,shadows:sR.slice(),typography:tR(l,i),transitions:dR(o),zIndex:S({},pR)});return u=Ot(u,s),u=t.reduce((c,d)=>Ot(c,d),u),u.unstable_sxConfig=S({},gu,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return vu({sx:d,theme:this})},u}const mR=Cp(),wu=mR;function ui(){const e=bu(wu);return e[Jr]||e}function pe({props:e,name:t}){return Vy({props:e,name:t,defaultTheme:wu,themeId:Jr})}const cn=e=>ns(e)&&e!=="classes",kp=ns,gR=Dy({themeId:Jr,defaultTheme:wu,rootShouldForwardProp:cn}),H=gR,vR=["theme"];function yR(e){let{theme:t}=e,n=q(e,vR);const r=t[Jr];return b.jsx(Ck,S({},n,{themeId:r?Jr:void 0,theme:r||t}))}const xR=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Dm=xR,zn=Object.create(null);zn.open="0";zn.close="1";zn.ping="2";zn.pong="3";zn.message="4";zn.upgrade="5";zn.noop="6";const Bl=Object.create(null);Object.keys(zn).forEach(e=>{Bl[zn[e]]=e});const bR={type:"error",data:"parser error"},SR=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",wR=typeof ArrayBuffer=="function",CR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Gy=({type:e,data:t},n,r)=>SR&&t instanceof Blob?n?r(t):jm(t,r):wR&&(t instanceof ArrayBuffer||CR(t))?n?r(t):jm(new Blob([t]),r):r(zn[e]+(t||"")),jm=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)},Bm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Bm.length;e++)Vi[Bm.charCodeAt(e)]=e;const kR=e=>{let t=e.length*.75,n=e.length,r,o=0,i,s,l,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)i=Vi[e.charCodeAt(r)],s=Vi[e.charCodeAt(r+1)],l=Vi[e.charCodeAt(r+2)],a=Vi[e.charCodeAt(r+3)],c[o++]=i<<2|s>>4,c[o++]=(s&15)<<4|l>>2,c[o++]=(l&3)<<6|a&63;return u},RR=typeof ArrayBuffer=="function",Ky=(e,t)=>{if(typeof e!="string")return{type:"message",data:qy(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:$R(e.substring(1),t)}:Bl[n]?e.length>1?{type:Bl[n],data:e.substring(1)}:{type:Bl[n]}:bR},$R=(e,t)=>{if(RR){const n=kR(e);return qy(n,t)}else return{base64:!0,data:e}},qy=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},Yy=String.fromCharCode(30),ER=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{Gy(i,!1,l=>{r[s]=l,++o===n&&t(r.join(Yy))})})},PR=(e,t)=>{const n=e.split(Yy),r=[];for(let o=0;o<n.length;o++){const i=Ky(n[o],t);if(r.push(i),i.type==="error")break}return r},Xy=4;function tt(e){if(e)return _R(e)}function _R(e){for(var t in tt.prototype)e[t]=tt.prototype[t];return e}tt.prototype.on=tt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};tt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};tt.prototype.off=tt.prototype.removeListener=tt.prototype.removeAllListeners=tt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};tt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};tt.prototype.emitReserved=tt.prototype.emit;tt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};tt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Jt=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function Qy(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const TR=Jt.setTimeout,MR=Jt.clearTimeout;function Cu(e,t){t.useNativeTimers?(e.setTimeoutFn=TR.bind(Jt),e.clearTimeoutFn=MR.bind(Jt)):(e.setTimeoutFn=Jt.setTimeout.bind(Jt),e.clearTimeoutFn=Jt.clearTimeout.bind(Jt))}const OR=1.33;function IR(e){return typeof e=="string"?AR(e):Math.ceil((e.byteLength||e.size)*OR)}function AR(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}class FR extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Zy extends tt{constructor(t){super(),this.writable=!1,Cu(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new FR(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Ky(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}}const Jy="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Bd=64,LR={};let Vm=0,dl=0,Hm;function Um(e){let t="";do t=Jy[e%Bd]+t,e=Math.floor(e/Bd);while(e>0);return t}function e1(){const e=Um(+new Date);return e!==Hm?(Vm=0,Hm=e):e+"."+Um(Vm++)}for(;dl<Bd;dl++)LR[Jy[dl]]=dl;function t1(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function NR(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}let n1=!1;try{n1=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const zR=n1;function r1(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||zR))return new XMLHttpRequest}catch{}if(!t)try{return new Jt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function DR(){}const jR=function(){return new r1({xdomain:!1}).responseType!=null}();class BR extends Zy{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port,this.xs=t.secure!==r}const n=t&&t.forceBase64;this.supportsBinary=jR&&!n}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};PR(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,ER(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=e1()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const o=t1(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new Ln(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Ln extends tt{constructor(t,n){super(),Cu(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=Qy(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new r1(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=Ln.requestsCount++,Ln.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=DR,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Ln.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Ln.requestsCount=0;Ln.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Wm);else if(typeof addEventListener=="function"){const e="onpagehide"in Jt?"pagehide":"unload";addEventListener(e,Wm,!1)}}function Wm(){for(let e in Ln.requests)Ln.requests.hasOwnProperty(e)&&Ln.requests[e].abort()}const o1=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),fl=Jt.WebSocket||Jt.MozWebSocket,Gm=!0,VR="arraybuffer",Km=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class HR extends Zy{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=Km?{}:Qy(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=Gm&&!Km?n?new fl(t,n):new fl(t):new fl(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||VR,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;Gy(r,this.supportsBinary,i=>{const s={};try{Gm&&this.ws.send(i)}catch{}o&&o1(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=e1()),this.supportsBinary||(t.b64=1);const o=t1(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}check(){return!!fl}}const UR={websocket:HR,polling:BR},WR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,GR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Vd(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=WR.exec(e||""),i={},s=14;for(;s--;)i[GR[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=KR(i,i.path),i.queryKey=qR(i,i.query),i}function KR(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function qR(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let i1=class wo extends tt{constructor(t,n={}){super(),this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Vd(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Vd(n.host).host),Cu(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=NR(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Xy,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new UR[t](r)}open(){let t;if(this.opts.rememberUpgrade&&wo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;wo.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;wo.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function l(){s("transport closed")}function a(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",l),this.off("close",a),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",l),this.once("close",a),this.once("upgrading",u),n.open()}onOpen(){if(this.readyState="open",wo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t<n;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=IR(o)),r>0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){wo.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;r<o;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}};i1.protocol=Xy;function YR(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Vd(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}const XR=typeof ArrayBuffer=="function",QR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,s1=Object.prototype.toString,ZR=typeof Blob=="function"||typeof Blob<"u"&&s1.call(Blob)==="[object BlobConstructor]",JR=typeof File=="function"||typeof File<"u"&&s1.call(File)==="[object FileConstructor]";function Rp(e){return XR&&(e instanceof ArrayBuffer||QR(e))||ZR&&e instanceof Blob||JR&&e instanceof File}function Vl(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Vl(e[n]))return!0;return!1}if(Rp(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Vl(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Vl(e[n]))return!0;return!1}function e$(e){const t=[],n=e.data,r=e;return r.data=Hd(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Hd(e,t){if(!e)return e;if(Rp(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Hd(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Hd(e[r],t));return n}return e}function t$(e,t){return e.data=Ud(e.data,t),delete e.attachments,e}function Ud(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Ud(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Ud(e[n],t));return e}const n$=5;var Se;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Se||(Se={}));class r${constructor(t){this.replacer=t}encode(t){return(t.type===Se.EVENT||t.type===Se.ACK)&&Vl(t)?this.encodeAsBinary({type:t.type===Se.EVENT?Se.BINARY_EVENT:Se.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Se.BINARY_EVENT||t.type===Se.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=e$(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}class $p extends tt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Se.BINARY_EVENT;r||n.type===Se.BINARY_ACK?(n.type=r?Se.EVENT:Se.ACK,this.reconstructor=new o$(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Rp(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Se[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Se.BINARY_EVENT||r.type===Se.BINARY_ACK){const i=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(i,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const i=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(i,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const i=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(i,n+1))}if(t.charAt(++n)){const i=this.tryParse(t.substr(n));if($p.isPayloadValid(r.type,i))r.data=i;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Se.CONNECT:return typeof n=="object";case Se.DISCONNECT:return n===void 0;case Se.CONNECT_ERROR:return typeof n=="string"||typeof n=="object";case Se.EVENT:case Se.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="string"||typeof n[0]=="number");case Se.ACK:case Se.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class o${constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=t$(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const i$=Object.freeze(Object.defineProperty({__proto__:null,Decoder:$p,Encoder:r$,get PacketType(){return Se},protocol:n$},Symbol.toStringTag,{value:"Module"}));function vn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const s$=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l1 extends tt{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[vn(t,"open",this.onopen.bind(this)),vn(t,"packet",this.onpacket.bind(this)),vn(t,"error",this.onerror.bind(this)),vn(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(s$.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:Se.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const s=this.ids++,l=n.pop();this._registerAckCallback(s,l),r.id=s}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);n.call(this,new Error("operation has timed out"))},o);this.acks[t]=(...s)=>{this.io.clearTimeoutFn(i),n.apply(this,[null,...s])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((o,i)=>{n.push((s,l)=>r?s?i(s):o(l):o(s)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Se.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Se.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Se.EVENT:case Se.BINARY_EVENT:this.onevent(t);break;case Se.ACK:case Se.BINARY_ACK:this.onack(t);break;case Se.DISCONNECT:this.ondisconnect();break;case Se.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Se.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Se.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function ci(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ci.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};ci.prototype.reset=function(){this.attempts=0};ci.prototype.setMin=function(e){this.ms=e};ci.prototype.setMax=function(e){this.max=e};ci.prototype.setJitter=function(e){this.jitter=e};class Wd extends tt{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Cu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new ci({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||i$;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new i1(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=vn(n,"open",function(){r.onopen(),t&&t()}),i=vn(n,"error",s=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",s),t?t(s):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&o();const l=this.setTimeoutFn(()=>{o(),n.close(),n.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&l.unref(),this.subs.push(function(){clearTimeout(l)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(vn(t,"ping",this.onping.bind(this)),vn(t,"data",this.ondata.bind(this)),vn(t,"error",this.onerror.bind(this)),vn(t,"close",this.onclose.bind(this)),vn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){o1(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new l1(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Pi={};function Hl(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=YR(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Pi[o]&&i in Pi[o].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let a;return l?a=new Wd(r,t):(Pi[o]||(Pi[o]=new Wd(r,t)),a=Pi[o]),n.query&&!t.query&&(t.query=n.queryKey),a.socket(n.path,t)}Object.assign(Hl,{Manager:Wd,Socket:l1,io:Hl,connect:Hl});var l$=!0,Rc="Invariant failed";function a1(e,t){if(!e){if(l$)throw new Error(Rc);var n=typeof t=="function"?t():t,r=n?"".concat(Rc,": ").concat(n):Rc;throw new Error(r)}}function u1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=u1(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Q(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=u1(e))&&(r&&(r+=" "),r+=t);return r}function br(e){return typeof e=="string"}function Hi(e,t,n){return e===void 0||br(e)?t:S({},t,{ownerState:S({},t.ownerState,n)})}function a$(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const u$={disableDefaultClasses:!1},c$=w.createContext(u$);function c1(e){const{disableDefaultClasses:t}=w.useContext(c$);return n=>t?"":e(n)}function d$(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Gd(e,t){return typeof e=="function"?e(t):e}function d1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=d1(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function qm(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=d1(e))&&(r&&(r+=" "),r+=t);return r}function Ym(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function f$(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=qm(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),y=S({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=S({},n,o,r);return h.length>0&&(m.className=h),Object.keys(y).length>0&&(m.style=y),{props:m,internalRef:void 0}}const s=d$(S({},o,r)),l=Ym(r),a=Ym(o),u=t(s),c=qm(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=S({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=S({},u,n,a,l);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const p$=["elementType","externalSlotProps","ownerState"];function mn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=q(e,p$),s=Gd(r,o),{props:l,internalRef:a}=f$(S({},i,{externalSlotProps:s})),u=Qe(a,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Hi(n,S({},l,{ref:u}),o)}const h$=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function m$(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function g$(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function v$(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||g$(e))}function y$(e){const t=[],n=[];return Array.from(e.querySelectorAll(h$)).forEach((r,o)=>{const i=m$(r);i===-1||!v$(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function x$(){return!0}function b$(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=y$,isEnabled:s=x$,open:l}=e,a=w.useRef(!1),u=w.useRef(null),c=w.useRef(null),d=w.useRef(null),f=w.useRef(null),h=w.useRef(!1),y=w.useRef(null),m=Qe(t.ref,y),k=w.useRef(null);w.useEffect(()=>{!l||!y.current||(h.current=!n)},[n,l]),w.useEffect(()=>{if(!l||!y.current)return;const v=nt(y.current);return y.current.contains(v.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),h.current&&y.current.focus()),()=>{o||(d.current&&d.current.focus&&(a.current=!0,d.current.focus()),d.current=null)}},[l]),w.useEffect(()=>{if(!l||!y.current)return;const v=nt(y.current),x=$=>{const{current:E}=y;if(E!==null){if(!v.hasFocus()||r||!s()||a.current){a.current=!1;return}if(!E.contains(v.activeElement)){if($&&f.current!==$.target||v.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!h.current)return;let I=[];if((v.activeElement===u.current||v.activeElement===c.current)&&(I=i(y.current)),I.length>0){var _,P;const j=!!((_=k.current)!=null&&_.shiftKey&&((P=k.current)==null?void 0:P.key)==="Tab"),D=I[0],A=I[I.length-1];typeof D!="string"&&typeof A!="string"&&(j?A.focus():D.focus())}else E.focus()}}},C=$=>{k.current=$,!(r||!s()||$.key!=="Tab")&&v.activeElement===y.current&&$.shiftKey&&(a.current=!0,c.current&&c.current.focus())};v.addEventListener("focusin",x),v.addEventListener("keydown",C,!0);const R=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&x(null)},50);return()=>{clearInterval(R),v.removeEventListener("focusin",x),v.removeEventListener("keydown",C,!0)}},[n,r,o,s,l,i]);const g=v=>{d.current===null&&(d.current=v.relatedTarget),h.current=!0,f.current=v.target;const x=t.props.onFocus;x&&x(v)},p=v=>{d.current===null&&(d.current=v.relatedTarget),h.current=!0};return b.jsxs(w.Fragment,{children:[b.jsx("div",{tabIndex:l?0:-1,onFocus:p,ref:u,"data-testid":"sentinelStart"}),w.cloneElement(t,{ref:m,onFocus:g}),b.jsx("div",{tabIndex:l?0:-1,onFocus:p,ref:c,"data-testid":"sentinelEnd"})]})}var It="top",ln="bottom",an="right",At="left",Ep="auto",Ds=[It,ln,an,At],Jo="start",Ps="end",S$="clippingParents",f1="viewport",_i="popper",w$="reference",Xm=Ds.reduce(function(e,t){return e.concat([t+"-"+Jo,t+"-"+Ps])},[]),p1=[].concat(Ds,[Ep]).reduce(function(e,t){return e.concat([t,t+"-"+Jo,t+"-"+Ps])},[]),C$="beforeRead",k$="read",R$="afterRead",$$="beforeMain",E$="main",P$="afterMain",_$="beforeWrite",T$="write",M$="afterWrite",O$=[C$,k$,R$,$$,E$,P$,_$,T$,M$];function Dn(e){return e?(e.nodeName||"").toLowerCase():null}function Gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function eo(e){var t=Gt(e).Element;return e instanceof t||e instanceof Element}function nn(e){var t=Gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Pp(e){if(typeof ShadowRoot>"u")return!1;var t=Gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function I$(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!nn(i)||!Dn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function A$(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(a,u){return a[u]="",a},{});!nn(o)||!Dn(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const F$={name:"applyStyles",enabled:!0,phase:"write",fn:I$,effect:A$,requires:["computeStyles"]};function Nn(e){return e.split("-")[0]}var Wr=Math.max,wa=Math.min,ei=Math.round;function Kd(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function h1(){return!/^((?!chrome|android).)*safari/i.test(Kd())}function ti(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&nn(e)&&(o=e.offsetWidth>0&&ei(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ei(r.height)/e.offsetHeight||1);var s=eo(e)?Gt(e):window,l=s.visualViewport,a=!h1()&&n,u=(r.left+(a&&l?l.offsetLeft:0))/o,c=(r.top+(a&&l?l.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function _p(e){var t=ti(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function m1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pp(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Zn(e){return Gt(e).getComputedStyle(e)}function L$(e){return["table","td","th"].indexOf(Dn(e))>=0}function _r(e){return((eo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ku(e){return Dn(e)==="html"?e:e.assignedSlot||e.parentNode||(Pp(e)?e.host:null)||_r(e)}function Qm(e){return!nn(e)||Zn(e).position==="fixed"?null:e.offsetParent}function N$(e){var t=/firefox/i.test(Kd()),n=/Trident/i.test(Kd());if(n&&nn(e)){var r=Zn(e);if(r.position==="fixed")return null}var o=ku(e);for(Pp(o)&&(o=o.host);nn(o)&&["html","body"].indexOf(Dn(o))<0;){var i=Zn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function js(e){for(var t=Gt(e),n=Qm(e);n&&L$(n)&&Zn(n).position==="static";)n=Qm(n);return n&&(Dn(n)==="html"||Dn(n)==="body"&&Zn(n).position==="static")?t:n||N$(e)||t}function Tp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function rs(e,t,n){return Wr(e,wa(t,n))}function z$(e,t,n){var r=rs(e,t,n);return r>n?n:r}function g1(){return{top:0,right:0,bottom:0,left:0}}function v1(e){return Object.assign({},g1(),e)}function y1(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var D$=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,v1(typeof t!="number"?t:y1(t,Ds))};function j$(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Nn(n.placement),a=Tp(l),u=[At,an].indexOf(l)>=0,c=u?"height":"width";if(!(!i||!s)){var d=D$(o.padding,n),f=_p(i),h=a==="y"?It:At,y=a==="y"?ln:an,m=n.rects.reference[c]+n.rects.reference[a]-s[a]-n.rects.popper[c],k=s[a]-n.rects.reference[a],g=js(i),p=g?a==="y"?g.clientHeight||0:g.clientWidth||0:0,v=m/2-k/2,x=d[h],C=p-f[c]-d[y],R=p/2-f[c]/2+v,$=rs(x,R,C),E=a;n.modifiersData[r]=(t={},t[E]=$,t.centerOffset=$-R,t)}}function B$(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||m1(t.elements.popper,o)&&(t.elements.arrow=o))}const V$={name:"arrow",enabled:!0,phase:"main",fn:j$,effect:B$,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ni(e){return e.split("-")[1]}var H$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function U$(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ei(n*o)/o||0,y:ei(r*o)/o||0}}function Zm(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,a=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,h=f===void 0?0:f,y=s.y,m=y===void 0?0:y,k=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=k.x,m=k.y;var g=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),v=At,x=It,C=window;if(u){var R=js(n),$="clientHeight",E="clientWidth";if(R===Gt(n)&&(R=_r(n),Zn(R).position!=="static"&&l==="absolute"&&($="scrollHeight",E="scrollWidth")),R=R,o===It||(o===At||o===an)&&i===Ps){x=ln;var _=d&&R===C&&C.visualViewport?C.visualViewport.height:R[$];m-=_-r.height,m*=a?1:-1}if(o===At||(o===It||o===ln)&&i===Ps){v=an;var P=d&&R===C&&C.visualViewport?C.visualViewport.width:R[E];h-=P-r.width,h*=a?1:-1}}var I=Object.assign({position:l},u&&H$),j=c===!0?U$({x:h,y:m},Gt(n)):{x:h,y:m};if(h=j.x,m=j.y,a){var D;return Object.assign({},I,(D={},D[x]=p?"0":"",D[v]=g?"0":"",D.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",D))}return Object.assign({},I,(t={},t[x]=p?m+"px":"",t[v]=g?h+"px":"",t.transform="",t))}function W$(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,a=l===void 0?!0:l,u={placement:Nn(t.placement),variation:ni(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Zm(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Zm(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const G$={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:W$,data:{}};var pl={passive:!0};function K$(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,a=Gt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,pl)}),l&&a.addEventListener("resize",n.update,pl),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,pl)}),l&&a.removeEventListener("resize",n.update,pl)}}const q$={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:K$,data:{}};var Y$={left:"right",right:"left",bottom:"top",top:"bottom"};function Ul(e){return e.replace(/left|right|bottom|top/g,function(t){return Y$[t]})}var X$={start:"end",end:"start"};function Jm(e){return e.replace(/start|end/g,function(t){return X$[t]})}function Mp(e){var t=Gt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Op(e){return ti(_r(e)).left+Mp(e).scrollLeft}function Q$(e,t){var n=Gt(e),r=_r(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;var u=h1();(u||!u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l+Op(e),y:a}}function Z$(e){var t,n=_r(e),r=Mp(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Wr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Wr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Op(e),a=-r.scrollTop;return Zn(o||n).direction==="rtl"&&(l+=Wr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:a}}function Ip(e){var t=Zn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function x1(e){return["html","body","#document"].indexOf(Dn(e))>=0?e.ownerDocument.body:nn(e)&&Ip(e)?e:x1(ku(e))}function os(e,t){var n;t===void 0&&(t=[]);var r=x1(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Gt(r),s=o?[i].concat(i.visualViewport||[],Ip(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(os(ku(s)))}function qd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function J$(e,t){var n=ti(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function eg(e,t,n){return t===f1?qd(Q$(e,n)):eo(t)?J$(t,n):qd(Z$(_r(e)))}function eE(e){var t=os(ku(e)),n=["absolute","fixed"].indexOf(Zn(e).position)>=0,r=n&&nn(e)?js(e):e;return eo(r)?t.filter(function(o){return eo(o)&&m1(o,r)&&Dn(o)!=="body"}):[]}function tE(e,t,n,r){var o=t==="clippingParents"?eE(e):[].concat(t),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(a,u){var c=eg(e,u,r);return a.top=Wr(c.top,a.top),a.right=wa(c.right,a.right),a.bottom=wa(c.bottom,a.bottom),a.left=Wr(c.left,a.left),a},eg(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function b1(e){var t=e.reference,n=e.element,r=e.placement,o=r?Nn(r):null,i=r?ni(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(o){case It:a={x:s,y:t.y-n.height};break;case ln:a={x:s,y:t.y+t.height};break;case an:a={x:t.x+t.width,y:l};break;case At:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var u=o?Tp(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Jo:a[u]=a[u]-(t[c]/2-n[c]/2);break;case Ps:a[u]=a[u]+(t[c]/2-n[c]/2);break}}return a}function _s(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,a=l===void 0?S$:l,u=n.rootBoundary,c=u===void 0?f1:u,d=n.elementContext,f=d===void 0?_i:d,h=n.altBoundary,y=h===void 0?!1:h,m=n.padding,k=m===void 0?0:m,g=v1(typeof k!="number"?k:y1(k,Ds)),p=f===_i?w$:_i,v=e.rects.popper,x=e.elements[y?p:f],C=tE(eo(x)?x:x.contextElement||_r(e.elements.popper),a,c,s),R=ti(e.elements.reference),$=b1({reference:R,element:v,strategy:"absolute",placement:o}),E=qd(Object.assign({},v,$)),_=f===_i?E:R,P={top:C.top-_.top+g.top,bottom:_.bottom-C.bottom+g.bottom,left:C.left-_.left+g.left,right:_.right-C.right+g.right},I=e.modifiersData.offset;if(f===_i&&I){var j=I[o];Object.keys(P).forEach(function(D){var A=[an,ln].indexOf(D)>=0?1:-1,T=[It,ln].indexOf(D)>=0?"y":"x";P[D]+=j[T]*A})}return P}function nE(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?p1:a,c=ni(r),d=c?l?Xm:Xm.filter(function(y){return ni(y)===c}):Ds,f=d.filter(function(y){return u.indexOf(y)>=0});f.length===0&&(f=d);var h=f.reduce(function(y,m){return y[m]=_s(e,{placement:m,boundary:o,rootBoundary:i,padding:s})[Nn(m)],y},{});return Object.keys(h).sort(function(y,m){return h[y]-h[m]})}function rE(e){if(Nn(e)===Ep)return[];var t=Ul(e);return[Jm(e),t,Jm(t)]}function oE(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,a=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,y=h===void 0?!0:h,m=n.allowedAutoPlacements,k=t.options.placement,g=Nn(k),p=g===k,v=a||(p||!y?[Ul(k)]:rE(k)),x=[k].concat(v).reduce(function(te,Z){return te.concat(Nn(Z)===Ep?nE(t,{placement:Z,boundary:c,rootBoundary:d,padding:u,flipVariations:y,allowedAutoPlacements:m}):Z)},[]),C=t.rects.reference,R=t.rects.popper,$=new Map,E=!0,_=x[0],P=0;P<x.length;P++){var I=x[P],j=Nn(I),D=ni(I)===Jo,A=[It,ln].indexOf(j)>=0,T=A?"width":"height",O=_s(t,{placement:I,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),N=A?D?an:At:D?ln:It;C[T]>R[T]&&(N=Ul(N));var M=Ul(N),L=[];if(i&&L.push(O[j]<=0),l&&L.push(O[N]<=0,O[M]<=0),L.every(function(te){return te})){_=I,E=!1;break}$.set(I,L)}if(E)for(var F=y?3:1,X=function(Z){var se=x.find(function(Ce){var be=$.get(Ce);if(be)return be.slice(0,Z).every(function(ce){return ce})});if(se)return _=se,"break"},G=F;G>0;G--){var oe=X(G);if(oe==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const iE={name:"flip",enabled:!0,phase:"main",fn:oE,requiresIfExists:["offset"],data:{_skip:!1}};function tg(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ng(e){return[It,an,ln,At].some(function(t){return e[t]>=0})}function sE(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=_s(t,{elementContext:"reference"}),l=_s(t,{altBoundary:!0}),a=tg(s,r),u=tg(l,o,i),c=ng(a),d=ng(u);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const lE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sE};function aE(e,t,n){var r=Nn(e),o=[At,It].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[At,an].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function uE(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=p1.reduce(function(c,d){return c[d]=aE(d,t.rects,i),c},{}),l=s[t.placement],a=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const cE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uE};function dE(e){var t=e.state,n=e.name;t.modifiersData[n]=b1({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const fE={name:"popperOffsets",enabled:!0,phase:"read",fn:dE,data:{}};function pE(e){return e==="x"?"y":"x"}function hE(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,a=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,y=n.tetherOffset,m=y===void 0?0:y,k=_s(t,{boundary:a,rootBoundary:u,padding:d,altBoundary:c}),g=Nn(t.placement),p=ni(t.placement),v=!p,x=Tp(g),C=pE(x),R=t.modifiersData.popperOffsets,$=t.rects.reference,E=t.rects.popper,_=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,P=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(R){if(i){var D,A=x==="y"?It:At,T=x==="y"?ln:an,O=x==="y"?"height":"width",N=R[x],M=N+k[A],L=N-k[T],F=h?-E[O]/2:0,X=p===Jo?$[O]:E[O],G=p===Jo?-E[O]:-$[O],oe=t.elements.arrow,te=h&&oe?_p(oe):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:g1(),se=Z[A],Ce=Z[T],be=rs(0,$[O],te[O]),ce=v?$[O]/2-F-be-se-P.mainAxis:X-be-se-P.mainAxis,_e=v?-$[O]/2+F+be+Ce+P.mainAxis:G+be+Ce+P.mainAxis,J=t.elements.arrow&&js(t.elements.arrow),we=J?x==="y"?J.clientTop||0:J.clientLeft||0:0,Ie=(D=I==null?void 0:I[x])!=null?D:0,ve=N+ce-Ie-we,fe=N+_e-Ie,rt=rs(h?wa(M,ve):M,N,h?Wr(L,fe):L);R[x]=rt,j[x]=rt-N}if(l){var ge,Ke=x==="x"?It:At,bt=x==="x"?ln:an,me=R[C],ke=C==="y"?"height":"width",st=me+k[Ke],He=me-k[bt],B=[It,At].indexOf(g)!==-1,U=(ge=I==null?void 0:I[C])!=null?ge:0,ne=B?st:me-$[ke]-E[ke]-U+P.altAxis,ie=B?me+$[ke]+E[ke]-U-P.altAxis:He,re=h&&B?z$(ne,me,ie):rs(h?ne:st,me,h?ie:He);R[C]=re,j[C]=re-me}t.modifiersData[r]=j}}const mE={name:"preventOverflow",enabled:!0,phase:"main",fn:hE,requiresIfExists:["offset"]};function gE(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function vE(e){return e===Gt(e)||!nn(e)?Mp(e):gE(e)}function yE(e){var t=e.getBoundingClientRect(),n=ei(t.width)/e.offsetWidth||1,r=ei(t.height)/e.offsetHeight||1;return n!==1||r!==1}function xE(e,t,n){n===void 0&&(n=!1);var r=nn(t),o=nn(t)&&yE(t),i=_r(t),s=ti(e,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Dn(t)!=="body"||Ip(i))&&(l=vE(t)),nn(t)?(a=ti(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=Op(i))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function bE(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&o(a)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function SE(e){var t=bE(e);return O$.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function wE(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function CE(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var rg={placement:"bottom",modifiers:[],strategy:"absolute"};function og(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function kE(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?rg:o;return function(l,a,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},rg,i),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},d=[],f=!1,h={state:c,setOptions:function(g){var p=typeof g=="function"?g(c.options):g;m(),c.options=Object.assign({},i,c.options,p),c.scrollParents={reference:eo(l)?os(l):l.contextElement?os(l.contextElement):[],popper:os(a)};var v=SE(CE([].concat(r,c.options.modifiers)));return c.orderedModifiers=v.filter(function(x){return x.enabled}),y(),h.update()},forceUpdate:function(){if(!f){var g=c.elements,p=g.reference,v=g.popper;if(og(p,v)){c.rects={reference:xE(p,js(v),c.options.strategy==="fixed"),popper:_p(v)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(P){return c.modifiersData[P.name]=Object.assign({},P.data)});for(var x=0;x<c.orderedModifiers.length;x++){if(c.reset===!0){c.reset=!1,x=-1;continue}var C=c.orderedModifiers[x],R=C.fn,$=C.options,E=$===void 0?{}:$,_=C.name;typeof R=="function"&&(c=R({state:c,options:E,name:_,instance:h})||c)}}}},update:wE(function(){return new Promise(function(k){h.forceUpdate(),k(c)})}),destroy:function(){m(),f=!0}};if(!og(l,a))return h;h.setOptions(u).then(function(k){!f&&u.onFirstUpdate&&u.onFirstUpdate(k)});function y(){c.orderedModifiers.forEach(function(k){var g=k.name,p=k.options,v=p===void 0?{}:p,x=k.effect;if(typeof x=="function"){var C=x({state:c,name:g,instance:h,options:v}),R=function(){};d.push(C||R)}})}function m(){d.forEach(function(k){return k()}),d=[]}return h}}var RE=[q$,fE,G$,F$,cE,iE,mE,V$,lE],$E=kE({defaultModifiers:RE});function EE(e){return typeof e=="function"?e():e}const PE=w.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,l]=w.useState(null),a=Qe(w.isValidElement(r)?r.ref:null,n);if(sn(()=>{i||l(EE(o)||document.body)},[o,i]),sn(()=>{if(s&&!i)return xa(n,s),()=>{xa(n,null)}},[n,s,i]),i){if(w.isValidElement(r)){const u={ref:a};return w.cloneElement(r,u)}return b.jsx(w.Fragment,{children:r})}return b.jsx(w.Fragment,{children:s&&Ga.createPortal(r,s)})}),S1=PE;function _E(e){return ue("MuiPopper",e)}ae("MuiPopper",["root"]);const TE=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],ME=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function OE(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Yd(e){return typeof e=="function"?e():e}function IE(e){return e.nodeType!==void 0}const AE=()=>de({root:["root"]},c1(_E)),FE={},LE=w.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:l,modifiers:a,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:h={},slots:y={},TransitionProps:m}=t,k=q(t,TE),g=w.useRef(null),p=Qe(g,n),v=w.useRef(null),x=Qe(v,f),C=w.useRef(x);sn(()=>{C.current=x},[x]),w.useImperativeHandle(f,()=>v.current,[]);const R=OE(c,s),[$,E]=w.useState(R),[_,P]=w.useState(Yd(o));w.useEffect(()=>{v.current&&v.current.forceUpdate()}),w.useEffect(()=>{o&&P(Yd(o))},[o]),sn(()=>{if(!_||!u)return;const T=M=>{E(M.placement)};let O=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:M})=>{T(M)}}];a!=null&&(O=O.concat(a)),d&&d.modifiers!=null&&(O=O.concat(d.modifiers));const N=$E(_,g.current,S({placement:R},d,{modifiers:O}));return C.current(N),()=>{N.destroy(),C.current(null)}},[_,l,a,u,d,R]);const I={placement:$};m!==null&&(I.TransitionProps=m);const j=AE(),D=(r=y.root)!=null?r:"div",A=mn({elementType:D,externalSlotProps:h.root,externalForwardedProps:k,additionalProps:{role:"tooltip",ref:p},ownerState:t,className:j.root});return b.jsx(D,S({},A,{children:typeof i=="function"?i(I):i}))}),NE=w.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:l=!1,keepMounted:a=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:f=FE,popperRef:h,style:y,transition:m=!1,slotProps:k={},slots:g={}}=t,p=q(t,ME),[v,x]=w.useState(!0),C=()=>{x(!1)},R=()=>{x(!0)};if(!a&&!c&&(!m||v))return null;let $;if(i)$=i;else if(r){const P=Yd(r);$=P&&IE(P)?nt(P).body:nt(null).body}const E=!c&&a&&(!m||v)?"none":void 0,_=m?{in:c,onEnter:C,onExited:R}:void 0;return b.jsx(S1,{disablePortal:l,container:$,children:b.jsx(LE,S({anchorEl:r,direction:s,disablePortal:l,modifiers:u,ref:n,open:m?!v:c,placement:d,popperOptions:f,popperRef:h,slotProps:k,slots:g},p,{style:S({position:"fixed",top:0,left:0,display:E},y),TransitionProps:_,children:o}))})}),zE=NE;function DE(e){const t=nt(e);return t.body===e?kr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function is(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ig(e){return parseInt(kr(e).getComputedStyle(e).paddingRight,10)||0}function jE(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function sg(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const l=i.indexOf(s)===-1,a=!jE(s);l&&a&&is(s,o)})}function $c(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function BE(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(DE(r)){const s=fy(nt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ig(r)+s}px`;const l=nt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${ig(a)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=nt(r).body;else{const s=r.parentElement,l=kr(r);i=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:l})=>{i?s.style.setProperty(l,i):s.style.removeProperty(l)})}}function VE(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class HE{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&is(t.modalRef,!1);const o=VE(n);sg(n,t.mount,t.modalRef,o,!0);const i=$c(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=$c(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=BE(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=$c(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&is(t.modalRef,n),sg(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&is(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function UE(e){return ue("MuiModal",e)}ae("MuiModal",["root","hidden","backdrop"]);const WE=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],GE=e=>{const{open:t,exited:n}=e;return de({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},c1(UE))};function KE(e){return typeof e=="function"?e():e}function qE(e){return e?e.props.hasOwnProperty("in"):!1}const YE=new HE,XE=w.forwardRef(function(t,n){var r,o;const{children:i,closeAfterTransition:s=!1,container:l,disableAutoFocus:a=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:c=!1,disablePortal:d=!1,disableRestoreFocus:f=!1,disableScrollLock:h=!1,hideBackdrop:y=!1,keepMounted:m=!1,manager:k=YE,onBackdropClick:g,onClose:p,onKeyDown:v,open:x,onTransitionEnter:C,onTransitionExited:R,slotProps:$={},slots:E={}}=t,_=q(t,WE),P=k,[I,j]=w.useState(!x),D=w.useRef({}),A=w.useRef(null),T=w.useRef(null),O=Qe(T,n),N=qE(i),M=(r=t["aria-hidden"])!=null?r:!0,L=()=>nt(A.current),F=()=>(D.current.modalRef=T.current,D.current.mountNode=A.current,D.current),X=()=>{P.mount(F(),{disableScrollLock:h}),T.current&&(T.current.scrollTop=0)},G=xn(()=>{const ge=KE(l)||L().body;P.add(F(),ge),T.current&&X()}),oe=w.useCallback(()=>P.isTopModal(F()),[P]),te=xn(ge=>{A.current=ge,!(!ge||!T.current)&&(x&&oe()?X():is(T.current,M))}),Z=w.useCallback(()=>{P.remove(F(),M)},[P,M]);w.useEffect(()=>()=>{Z()},[Z]),w.useEffect(()=>{x?G():(!N||!s)&&Z()},[x,Z,N,s,G]);const se=S({},t,{closeAfterTransition:s,disableAutoFocus:a,disableEnforceFocus:u,disableEscapeKeyDown:c,disablePortal:d,disableRestoreFocus:f,disableScrollLock:h,exited:I,hideBackdrop:y,keepMounted:m}),Ce=GE(se),be=()=>{j(!1),C&&C()},ce=()=>{j(!0),R&&R(),s&&Z()},_e=ge=>{ge.target===ge.currentTarget&&(g&&g(ge),p&&p(ge,"backdropClick"))},J=ge=>{v&&v(ge),!(ge.key!=="Escape"||!oe())&&(c||(ge.stopPropagation(),p&&p(ge,"escapeKeyDown")))},we={};i.props.tabIndex===void 0&&(we.tabIndex="-1"),N&&(we.onEnter=Ld(be,i.props.onEnter),we.onExited=Ld(ce,i.props.onExited));const Ie=(o=E.root)!=null?o:"div",ve=mn({elementType:Ie,externalSlotProps:$.root,externalForwardedProps:_,additionalProps:{ref:O,role:"presentation",onKeyDown:J},className:Ce.root,ownerState:se}),fe=E.backdrop,rt=mn({elementType:fe,externalSlotProps:$.backdrop,additionalProps:{"aria-hidden":!0,onClick:_e,open:x},className:Ce.backdrop,ownerState:se});return!m&&!x&&(!N||I)?null:b.jsx(S1,{ref:te,container:l,disablePortal:d,children:b.jsxs(Ie,S({},ve,{children:[!y&&fe?b.jsx(fe,S({},rt)):null,b.jsx(b$,{disableEnforceFocus:u,disableAutoFocus:a,disableRestoreFocus:f,isEnabled:oe,open:x,children:w.cloneElement(i,we)})]}))})}),QE=XE,ZE=2;function w1(e,t){return e-t}function Ti(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function lg(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const l=Math.abs(t-i);return o===null||l<o.distance||l===o.distance?{distance:l,index:s}:o},null))!=null?n:{};return r}function hl(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Ca(e,t,n){return(e-t)*100/(n-t)}function JE(e,t,n){return(n-t)*e+t}function eP(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function tP(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(eP(t)))}function ag({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(w1)}function ml({sliderRef:e,activeIndex:t,setActive:n}){var r,o;const i=nt(e.current);if(!((r=e.current)!=null&&r.contains(i.activeElement))||Number(i==null||(o=i.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var s;(s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}function gl(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?a$(e,t):!1}const nP={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},rP=e=>e;let vl;function Ec(){return vl===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?vl=CSS.supports("touch-action","none"):vl=!0),vl}function oP(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:l=100,min:a=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:h,scale:y=rP,step:m=1,tabIndex:k,value:g}=e,p=w.useRef(),[v,x]=w.useState(-1),[C,R]=w.useState(-1),[$,E]=w.useState(!1),_=w.useRef(0),[P,I]=Qo({controlled:g,default:n??a,name:"Slider"}),j=c&&((B,U,ne)=>{const ie=B.nativeEvent||B,re=new ie.constructor(ie.type,ie);Object.defineProperty(re,"target",{writable:!0,value:{value:U,name:u}}),c(re,U,ne)}),D=Array.isArray(P);let A=D?P.slice().sort(w1):[P];A=A.map(B=>Ti(B,a,l));const T=s===!0&&m!==null?[...Array(Math.floor((l-a)/m)+1)].map((B,U)=>({value:a+m*U})):s||[],O=T.map(B=>B.value),{isFocusVisibleRef:N,onBlur:M,onFocus:L,ref:F}=Ya(),[X,G]=w.useState(-1),oe=w.useRef(),te=Qe(F,oe),Z=Qe(h,te),se=B=>U=>{var ne;const ie=Number(U.currentTarget.getAttribute("data-index"));L(U),N.current===!0&&G(ie),R(ie),B==null||(ne=B.onFocus)==null||ne.call(B,U)},Ce=B=>U=>{var ne;M(U),N.current===!1&&G(-1),R(-1),B==null||(ne=B.onBlur)==null||ne.call(B,U)};sn(()=>{if(r&&oe.current.contains(document.activeElement)){var B;(B=document.activeElement)==null||B.blur()}},[r]),r&&v!==-1&&x(-1),r&&X!==-1&&G(-1);const be=B=>U=>{var ne;(ne=B.onChange)==null||ne.call(B,U);const ie=Number(U.currentTarget.getAttribute("data-index")),re=A[ie],W=O.indexOf(re);let V=U.target.valueAsNumber;if(T&&m==null&&(V=V<re?O[W-1]:O[W+1]),V=Ti(V,a,l),T&&m==null){const le=O.indexOf(A[ie]);V=V<A[ie]?O[le-1]:O[le+1]}if(D){o&&(V=Ti(V,A[ie-1]||-1/0,A[ie+1]||1/0));const le=V;V=ag({values:A,newValue:V,index:ie});let ee=ie;o||(ee=V.indexOf(le)),ml({sliderRef:oe,activeIndex:ee})}I(V),G(ie),j&&!gl(V,P)&&j(U,V,ie),d&&d(U,V)},ce=w.useRef();let _e=f;i&&f==="horizontal"&&(_e+="-reverse");const J=({finger:B,move:U=!1})=>{const{current:ne}=oe,{width:ie,height:re,bottom:W,left:V}=ne.getBoundingClientRect();let le;_e.indexOf("vertical")===0?le=(W-B.y)/re:le=(B.x-V)/ie,_e.indexOf("-reverse")!==-1&&(le=1-le);let ee;if(ee=JE(le,a,l),m)ee=tP(ee,m,a);else{const Lt=lg(O,ee);ee=O[Lt]}ee=Ti(ee,a,l);let qe=0;if(D){U?qe=ce.current:qe=lg(A,ee),o&&(ee=Ti(ee,A[qe-1]||-1/0,A[qe+1]||1/0));const Lt=ee;ee=ag({values:A,newValue:ee,index:qe}),o&&U||(qe=ee.indexOf(Lt),ce.current=qe)}return{newValue:ee,activeIndex:qe}},we=xn(B=>{const U=hl(B,p);if(!U)return;if(_.current+=1,B.type==="mousemove"&&B.buttons===0){Ie(B);return}const{newValue:ne,activeIndex:ie}=J({finger:U,move:!0});ml({sliderRef:oe,activeIndex:ie,setActive:x}),I(ne),!$&&_.current>ZE&&E(!0),j&&!gl(ne,P)&&j(B,ne,ie)}),Ie=xn(B=>{const U=hl(B,p);if(E(!1),!U)return;const{newValue:ne}=J({finger:U,move:!0});x(-1),B.type==="touchend"&&R(-1),d&&d(B,ne),p.current=void 0,fe()}),ve=xn(B=>{if(r)return;Ec()||B.preventDefault();const U=B.changedTouches[0];U!=null&&(p.current=U.identifier);const ne=hl(B,p);if(ne!==!1){const{newValue:re,activeIndex:W}=J({finger:ne});ml({sliderRef:oe,activeIndex:W,setActive:x}),I(re),j&&!gl(re,P)&&j(B,re,W)}_.current=0;const ie=nt(oe.current);ie.addEventListener("touchmove",we),ie.addEventListener("touchend",Ie)}),fe=w.useCallback(()=>{const B=nt(oe.current);B.removeEventListener("mousemove",we),B.removeEventListener("mouseup",Ie),B.removeEventListener("touchmove",we),B.removeEventListener("touchend",Ie)},[Ie,we]);w.useEffect(()=>{const{current:B}=oe;return B.addEventListener("touchstart",ve,{passive:Ec()}),()=>{B.removeEventListener("touchstart",ve,{passive:Ec()}),fe()}},[fe,ve]),w.useEffect(()=>{r&&fe()},[r,fe]);const rt=B=>U=>{var ne;if((ne=B.onMouseDown)==null||ne.call(B,U),r||U.defaultPrevented||U.button!==0)return;U.preventDefault();const ie=hl(U,p);if(ie!==!1){const{newValue:W,activeIndex:V}=J({finger:ie});ml({sliderRef:oe,activeIndex:V,setActive:x}),I(W),j&&!gl(W,P)&&j(U,W,V)}_.current=0;const re=nt(oe.current);re.addEventListener("mousemove",we),re.addEventListener("mouseup",Ie)},ge=Ca(D?A[0]:a,a,l),Ke=Ca(A[A.length-1],a,l)-ge,bt=(B={})=>{const U={onMouseDown:rt(B||{})},ne=S({},B,U);return S({ref:Z},ne)},me=B=>U=>{var ne;(ne=B.onMouseOver)==null||ne.call(B,U);const ie=Number(U.currentTarget.getAttribute("data-index"));R(ie)},ke=B=>U=>{var ne;(ne=B.onMouseLeave)==null||ne.call(B,U),R(-1)};return{active:v,axis:_e,axisProps:nP,dragging:$,focusedThumbIndex:X,getHiddenInputProps:(B={})=>{var U;const ne={onChange:be(B||{}),onFocus:se(B||{}),onBlur:Ce(B||{})},ie=S({},B,ne);return S({tabIndex:k,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(l),"aria-valuemin":y(a),name:u,type:"range",min:e.min,max:e.max,step:(U=e.step)!=null?U:void 0,disabled:r},ie,{style:S({},JS,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:bt,getThumbProps:(B={})=>{const U={onMouseOver:me(B||{}),onMouseLeave:ke(B||{})};return S({},B,U)},marks:T,open:C,range:D,rootRef:Z,trackLeap:Ke,trackOffset:ge,values:A}}const iP=["onChange","maxRows","minRows","style","value"];function yl(e){return parseInt(e,10)||0}const sP={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function ug(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const lP=w.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:l}=t,a=q(t,iP),{current:u}=w.useRef(l!=null),c=w.useRef(null),d=Qe(n,c),f=w.useRef(null),h=w.useRef(0),[y,m]=w.useState({outerHeightStyle:0}),k=w.useCallback(()=>{const C=c.current,$=kr(C).getComputedStyle(C);if($.width==="0px")return{outerHeightStyle:0};const E=f.current;E.style.width=$.width,E.value=C.value||t.placeholder||"x",E.value.slice(-1)===`
54
- `&&(E.value+=" ");const _=$.boxSizing,P=yl($.paddingBottom)+yl($.paddingTop),I=yl($.borderBottomWidth)+yl($.borderTopWidth),j=E.scrollHeight;E.value="x";const D=E.scrollHeight;let A=j;i&&(A=Math.max(Number(i)*D,A)),o&&(A=Math.min(Number(o)*D,A)),A=Math.max(A,D);const T=A+(_==="border-box"?P+I:0),O=Math.abs(A-j)<=1;return{outerHeightStyle:T,overflow:O}},[o,i,t.placeholder]),g=(C,R)=>{const{outerHeightStyle:$,overflow:E}=R;return h.current<20&&($>0&&Math.abs((C.outerHeightStyle||0)-$)>1||C.overflow!==E)?(h.current+=1,{overflow:E,outerHeightStyle:$}):C},p=w.useCallback(()=>{const C=k();ug(C)||m(R=>g(R,C))},[k]),v=()=>{const C=k();ug(C)||Ga.flushSync(()=>{m(R=>g(R,C))})};w.useEffect(()=>{const C=rp(()=>{h.current=0,c.current&&v()});let R;const $=c.current,E=kr($);return E.addEventListener("resize",C),typeof ResizeObserver<"u"&&(R=new ResizeObserver(C),R.observe($)),()=>{C.clear(),E.removeEventListener("resize",C),R&&R.disconnect()}}),sn(()=>{p()}),w.useEffect(()=>{h.current=0},[l]);const x=C=>{h.current=0,u||p(),r&&r(C)};return b.jsxs(w.Fragment,{children:[b.jsx("textarea",S({value:l,onChange:x,ref:d,rows:i,style:S({height:y.outerHeightStyle,overflow:y.overflow?"hidden":void 0},s)},a)),b.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:S({},sP.shadow,s,{padding:0})})]})}),Xd=lP;function Qd(e,t){return Qd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Qd(e,t)}function C1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qd(e,t)}const cg={disabled:!1},ka=wt.createContext(null);var aP=function(t){return t.scrollTop},Ui="unmounted",Lr="exited",Nr="entering",Co="entered",Zd="exiting",er=function(e){C1(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,a;return i.appearStatus=null,r.in?l?(a=Lr,i.appearStatus=Nr):a=Co:r.unmountOnExit||r.mountOnEnter?a=Ui:a=Lr,i.state={status:a},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Ui?{status:Lr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Nr&&s!==Co&&(i=Nr):(s===Nr||s===Co)&&(i=Zd)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,l;return i=s=l=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Nr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ul.findDOMNode(this);s&&aP(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Lr&&this.setState({status:Ui})},n.performEnter=function(o){var i=this,s=this.props.enter,l=this.context?this.context.isMounting:o,a=this.props.nodeRef?[l]:[ul.findDOMNode(this),l],u=a[0],c=a[1],d=this.getTimeouts(),f=l?d.appear:d.enter;if(!o&&!s||cg.disabled){this.safeSetState({status:Co},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Nr},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:Co},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:ul.findDOMNode(this);if(!i||cg.disabled){this.safeSetState({status:Lr},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Zd},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Lr},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:ul.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=a[0],c=a[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ui)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=q(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return wt.createElement(ka.Provider,{value:null},typeof s=="function"?s(o,l):wt.cloneElement(wt.Children.only(s),l))},t}(wt.Component);er.contextType=ka;er.propTypes={};function So(){}er.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:So,onEntering:So,onEntered:So,onExit:So,onExiting:So,onExited:So};er.UNMOUNTED=Ui;er.EXITED=Lr;er.ENTERING=Nr;er.ENTERED=Co;er.EXITING=Zd;const k1=er;function uP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ap(e,t){var n=function(i){return t&&w.isValidElement(i)?t(i):i},r=Object.create(null);return e&&w.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function cP(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,l={};for(var a in t){if(r[a])for(s=0;s<r[a].length;s++){var u=r[a][s];l[r[a][s]]=n(u)}l[a]=n(a)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function Vr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function dP(e,t){return Ap(e.children,function(n){return w.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Vr(n,"appear",e),enter:Vr(n,"enter",e),exit:Vr(n,"exit",e)})})}function fP(e,t,n){var r=Ap(e.children),o=cP(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(w.isValidElement(s)){var l=i in t,a=i in r,u=t[i],c=w.isValidElement(u)&&!u.props.in;a&&(!l||c)?o[i]=w.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Vr(s,"exit",e),enter:Vr(s,"enter",e)}):!a&&l&&!c?o[i]=w.cloneElement(s,{in:!1}):a&&l&&w.isValidElement(u)&&(o[i]=w.cloneElement(s,{onExited:n.bind(null,s),in:u.props.in,exit:Vr(s,"exit",e),enter:Vr(s,"enter",e)}))}}),o}var pP=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},hP={component:"div",childFactory:function(t){return t}},Fp=function(e){C1(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(uP(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,l=i.handleExited,a=i.firstRender;return{children:a?dP(o,l):fP(o,s,l),firstRender:!1}},n.handleExited=function(o,i){var s=Ap(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var a=S({},l.children);return delete a[o.key],{children:a}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,l=q(o,["component","childFactory"]),a=this.state.contextValue,u=pP(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,i===null?wt.createElement(ka.Provider,{value:a},u):wt.createElement(ka.Provider,{value:a},wt.createElement(i,l,u))},t}(wt.Component);Fp.propTypes={};Fp.defaultProps=hP;const mP=Fp;function gP(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:l,onExited:a,timeout:u}=e,[c,d]=w.useState(!1),f=Q(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},y=Q(n.child,c&&n.childLeaving,r&&n.childPulsate);return!l&&!c&&d(!0),w.useEffect(()=>{if(!l&&a!=null){const m=setTimeout(a,u);return()=>{clearTimeout(m)}}},[a,l,u]),b.jsx("span",{className:f,style:h,children:b.jsx("span",{className:y})})}const vP=ae("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xt=vP,yP=["center","classes","className"];let Ru=e=>e,dg,fg,pg,hg;const Jd=550,xP=80,bP=Ns(dg||(dg=Ru`
55
- 0% {
56
- transform: scale(0);
57
- opacity: 0.1;
58
- }
59
-
60
- 100% {
61
- transform: scale(1);
62
- opacity: 0.3;
63
- }
64
- `)),SP=Ns(fg||(fg=Ru`
65
- 0% {
66
- opacity: 1;
67
- }
68
-
69
- 100% {
70
- opacity: 0;
71
- }
72
- `)),wP=Ns(pg||(pg=Ru`
73
- 0% {
74
- transform: scale(1);
75
- }
76
-
77
- 50% {
78
- transform: scale(0.92);
79
- }
80
-
81
- 100% {
82
- transform: scale(1);
83
- }
84
- `)),CP=H("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),kP=H(gP,{name:"MuiTouchRipple",slot:"Ripple"})(hg||(hg=Ru`
85
- opacity: 0;
86
- position: absolute;
87
-
88
- &.${0} {
89
- opacity: 0.3;
90
- transform: scale(1);
91
- animation-name: ${0};
92
- animation-duration: ${0}ms;
93
- animation-timing-function: ${0};
94
- }
95
-
96
- &.${0} {
97
- animation-duration: ${0}ms;
98
- }
99
-
100
- & .${0} {
101
- opacity: 1;
102
- display: block;
103
- width: 100%;
104
- height: 100%;
105
- border-radius: 50%;
106
- background-color: currentColor;
107
- }
108
-
109
- & .${0} {
110
- opacity: 0;
111
- animation-name: ${0};
112
- animation-duration: ${0}ms;
113
- animation-timing-function: ${0};
114
- }
115
-
116
- & .${0} {
117
- position: absolute;
118
- /* @noflip */
119
- left: 0px;
120
- top: 0;
121
- animation-name: ${0};
122
- animation-duration: 2500ms;
123
- animation-timing-function: ${0};
124
- animation-iteration-count: infinite;
125
- animation-delay: 200ms;
126
- }
127
- `),Xt.rippleVisible,bP,Jd,({theme:e})=>e.transitions.easing.easeInOut,Xt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Xt.child,Xt.childLeaving,SP,Jd,({theme:e})=>e.transitions.easing.easeInOut,Xt.childPulsate,wP,({theme:e})=>e.transitions.easing.easeInOut),RP=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,l=q(r,yP),[a,u]=w.useState([]),c=w.useRef(0),d=w.useRef(null);w.useEffect(()=>{d.current&&(d.current(),d.current=null)},[a]);const f=w.useRef(!1),h=w.useRef(null),y=w.useRef(null),m=w.useRef(null);w.useEffect(()=>()=>{clearTimeout(h.current)},[]);const k=w.useCallback(x=>{const{pulsate:C,rippleX:R,rippleY:$,rippleSize:E,cb:_}=x;u(P=>[...P,b.jsx(kP,{classes:{ripple:Q(i.ripple,Xt.ripple),rippleVisible:Q(i.rippleVisible,Xt.rippleVisible),ripplePulsate:Q(i.ripplePulsate,Xt.ripplePulsate),child:Q(i.child,Xt.child),childLeaving:Q(i.childLeaving,Xt.childLeaving),childPulsate:Q(i.childPulsate,Xt.childPulsate)},timeout:Jd,pulsate:C,rippleX:R,rippleY:$,rippleSize:E},c.current)]),c.current+=1,d.current=_},[i]),g=w.useCallback((x={},C={},R=()=>{})=>{const{pulsate:$=!1,center:E=o||C.pulsate,fakeElement:_=!1}=C;if((x==null?void 0:x.type)==="mousedown"&&f.current){f.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(f.current=!0);const P=_?null:m.current,I=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let j,D,A;if(E||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)j=Math.round(I.width/2),D=Math.round(I.height/2);else{const{clientX:T,clientY:O}=x.touches&&x.touches.length>0?x.touches[0]:x;j=Math.round(T-I.left),D=Math.round(O-I.top)}if(E)A=Math.sqrt((2*I.width**2+I.height**2)/3),A%2===0&&(A+=1);else{const T=Math.max(Math.abs((P?P.clientWidth:0)-j),j)*2+2,O=Math.max(Math.abs((P?P.clientHeight:0)-D),D)*2+2;A=Math.sqrt(T**2+O**2)}x!=null&&x.touches?y.current===null&&(y.current=()=>{k({pulsate:$,rippleX:j,rippleY:D,rippleSize:A,cb:R})},h.current=setTimeout(()=>{y.current&&(y.current(),y.current=null)},xP)):k({pulsate:$,rippleX:j,rippleY:D,rippleSize:A,cb:R})},[o,k]),p=w.useCallback(()=>{g({},{pulsate:!0})},[g]),v=w.useCallback((x,C)=>{if(clearTimeout(h.current),(x==null?void 0:x.type)==="touchend"&&y.current){y.current(),y.current=null,h.current=setTimeout(()=>{v(x,C)});return}y.current=null,u(R=>R.length>0?R.slice(1):R),d.current=C},[]);return w.useImperativeHandle(n,()=>({pulsate:p,start:g,stop:v}),[p,g,v]),b.jsx(CP,S({className:Q(Xt.root,i.root,s),ref:m},l,{children:b.jsx(mP,{component:null,exit:!0,children:a})}))}),$P=RP;function EP(e){return ue("MuiButtonBase",e)}const PP=ae("MuiButtonBase",["root","disabled","focusVisible"]),_P=PP,TP=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],MP=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=de({root:["root",t&&"disabled",n&&"focusVisible"]},EP,o);return n&&r&&(s.root+=` ${r}`),s},OP=H("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${_P.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),IP=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:l,component:a="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:h="a",onBlur:y,onClick:m,onContextMenu:k,onDragLeave:g,onFocus:p,onFocusVisible:v,onKeyDown:x,onKeyUp:C,onMouseDown:R,onMouseLeave:$,onMouseUp:E,onTouchEnd:_,onTouchMove:P,onTouchStart:I,tabIndex:j=0,TouchRippleProps:D,touchRippleRef:A,type:T}=r,O=q(r,TP),N=w.useRef(null),M=w.useRef(null),L=Qe(M,A),{isFocusVisibleRef:F,onFocus:X,onBlur:G,ref:oe}=Ya(),[te,Z]=w.useState(!1);u&&te&&Z(!1),w.useImperativeHandle(o,()=>({focusVisible:()=>{Z(!0),N.current.focus()}}),[]);const[se,Ce]=w.useState(!1);w.useEffect(()=>{Ce(!0)},[]);const be=se&&!c&&!u;w.useEffect(()=>{te&&f&&!c&&se&&M.current.pulsate()},[c,f,te,se]);function ce(W,V,le=d){return xn(ee=>(V&&V(ee),!le&&M.current&&M.current[W](ee),!0))}const _e=ce("start",R),J=ce("stop",k),we=ce("stop",g),Ie=ce("stop",E),ve=ce("stop",W=>{te&&W.preventDefault(),$&&$(W)}),fe=ce("start",I),rt=ce("stop",_),ge=ce("stop",P),Ke=ce("stop",W=>{G(W),F.current===!1&&Z(!1),y&&y(W)},!1),bt=xn(W=>{N.current||(N.current=W.currentTarget),X(W),F.current===!0&&(Z(!0),v&&v(W)),p&&p(W)}),me=()=>{const W=N.current;return a&&a!=="button"&&!(W.tagName==="A"&&W.href)},ke=w.useRef(!1),st=xn(W=>{f&&!ke.current&&te&&M.current&&W.key===" "&&(ke.current=!0,M.current.stop(W,()=>{M.current.start(W)})),W.target===W.currentTarget&&me()&&W.key===" "&&W.preventDefault(),x&&x(W),W.target===W.currentTarget&&me()&&W.key==="Enter"&&!u&&(W.preventDefault(),m&&m(W))}),He=xn(W=>{f&&W.key===" "&&M.current&&te&&!W.defaultPrevented&&(ke.current=!1,M.current.stop(W,()=>{M.current.pulsate(W)})),C&&C(W),m&&W.target===W.currentTarget&&me()&&W.key===" "&&!W.defaultPrevented&&m(W)});let B=a;B==="button"&&(O.href||O.to)&&(B=h);const U={};B==="button"?(U.type=T===void 0?"button":T,U.disabled=u):(!O.href&&!O.to&&(U.role="button"),u&&(U["aria-disabled"]=u));const ne=Qe(n,oe,N),ie=S({},r,{centerRipple:i,component:a,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:j,focusVisible:te}),re=MP(ie);return b.jsxs(OP,S({as:B,className:Q(re.root,l),ownerState:ie,onBlur:Ke,onClick:m,onContextMenu:J,onFocus:bt,onKeyDown:st,onKeyUp:He,onMouseDown:_e,onMouseLeave:ve,onMouseUp:Ie,onDragLeave:we,onTouchEnd:rt,onTouchMove:ge,onTouchStart:fe,ref:ne,tabIndex:u?-1:j,type:T},U,O,{children:[s,be?b.jsx($P,S({ref:L,center:i},D)):null]}))}),$u=IP;function AP(e){return ue("MuiButton",e)}const FP=ae("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),xl=FP,LP=w.createContext({}),NP=LP,zP=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],DP=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,l={root:["root",i,`${i}${K(t)}`,`size${K(o)}`,`${i}Size${K(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${K(o)}`],endIcon:["endIcon",`iconSize${K(o)}`]},a=de(l,AP,s);return S({},s,a)},R1=e=>S({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),jP=H($u,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${K(n.color)}`],t[`size${K(n.size)}`],t[`${n.variant}Size${K(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return S({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":S({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Xe(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xe(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${xl.focusVisible}`]:S({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${xl.disabled}`]:S({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Xe(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${xl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${xl.disabled}`]:{boxShadow:"none"}}),BP=H("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${K(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},R1(e))),VP=H("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${K(n.size)}`]]}})(({ownerState:e})=>S({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},R1(e))),HP=w.forwardRef(function(t,n){const r=w.useContext(NP),o=op(r,t),i=pe({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:a="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:f=!1,endIcon:h,focusVisibleClassName:y,fullWidth:m=!1,size:k="medium",startIcon:g,type:p,variant:v="text"}=i,x=q(i,zP),C=S({},i,{color:l,component:a,disabled:c,disableElevation:d,disableFocusRipple:f,fullWidth:m,size:k,type:p,variant:v}),R=DP(C),$=g&&b.jsx(BP,{className:R.startIcon,ownerState:C,children:g}),E=h&&b.jsx(VP,{className:R.endIcon,ownerState:C,children:h});return b.jsxs(jP,S({ownerState:C,className:Q(r.className,R.root,u),component:a,disabled:c,focusRipple:!f,focusVisibleClassName:Q(R.focusVisible,y),ref:n,type:p},x,{classes:R,children:[$,s,E]}))}),Ts=HP,UP=Cp(),WP=ik({themeId:Jr,defaultTheme:UP,defaultClassName:"MuiBox-root",generateClassName:ip.generate}),jt=WP,GP=w.createContext(void 0),Lp=GP;function Tr(){return w.useContext(Lp)}function KP(e){return ue("PrivateSwitchBase",e)}ae("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const qP=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],YP=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${K(o)}`],input:["input"]};return de(i,KP,t)},XP=H($u)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),QP=H("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ZP=w.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:l,disabled:a,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:f,inputProps:h,inputRef:y,name:m,onBlur:k,onChange:g,onFocus:p,readOnly:v,required:x=!1,tabIndex:C,type:R,value:$}=t,E=q(t,qP),[_,P]=Qo({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),I=Tr(),j=L=>{p&&p(L),I&&I.onFocus&&I.onFocus(L)},D=L=>{k&&k(L),I&&I.onBlur&&I.onBlur(L)},A=L=>{if(L.nativeEvent.defaultPrevented)return;const F=L.target.checked;P(F),g&&g(L,F)};let T=a;I&&typeof T>"u"&&(T=I.disabled);const O=R==="checkbox"||R==="radio",N=S({},t,{checked:_,disabled:T,disableFocusRipple:u,edge:c}),M=YP(N);return b.jsxs(XP,S({component:"span",className:Q(M.root,s),centerRipple:!0,focusRipple:!u,disabled:T,tabIndex:null,role:void 0,onFocus:j,onBlur:D,ownerState:N,ref:n},E,{children:[b.jsx(QP,S({autoFocus:r,checked:o,defaultChecked:l,className:M.input,disabled:T,id:O?f:void 0,name:m,onChange:A,readOnly:v,ref:y,required:x,ownerState:N,tabIndex:C,type:R},R==="checkbox"&&$===void 0?{}:{value:$},h)),_?i:d]}))}),JP=ZP;function e2(e){return ue("MuiSvgIcon",e)}ae("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const t2=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],n2=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${K(t)}`,`fontSize${K(n)}`]};return de(o,e2,r)},r2=H("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${K(n.color)}`],t[`fontSize${K(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,l,a,u,c,d,f,h,y,m,k,g,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,20))||"1.25rem",medium:((a=e.typography)==null||(u=a.pxToRem)==null?void 0:u.call(a,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(y=h[t.color])==null?void 0:y.main)!=null?f:{action:(m=(e.vars||e).palette)==null||(k=m.action)==null?void 0:k.active,disabled:(g=(e.vars||e).palette)==null||(p=g.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),$1=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:l="svg",fontSize:a="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,h=q(r,t2),y=S({},r,{color:s,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f}),m={};c||(m.viewBox=f);const k=n2(y);return b.jsxs(r2,S({as:l,className:Q(k.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},m,h,{ownerState:y,children:[o,d?b.jsx("title",{children:d}):null]}))});$1.muiName="SvgIcon";const mg=$1;function ro(e,t){function n(r,o){return b.jsx(mg,S({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=mg.muiName,w.memo(w.forwardRef(n))}const o2=ro(b.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),i2=ro(b.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"}),"CheckBox"),s2=ro(b.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"}),"IndeterminateCheckBox");function l2(e){return ue("MuiCheckbox",e)}const a2=ae("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),Pc=a2,u2=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],c2=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${K(r)}`]},i=de(o,l2,t);return S({},t,i)},d2=H(JP,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${K(n.color)}`]]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xe(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Pc.checked}, &.${Pc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Pc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),f2=b.jsx(i2,{}),p2=b.jsx(o2,{}),h2=b.jsx(s2,{}),m2=w.forwardRef(function(t,n){var r,o;const i=pe({props:t,name:"MuiCheckbox"}),{checkedIcon:s=f2,color:l="primary",icon:a=p2,indeterminate:u=!1,indeterminateIcon:c=h2,inputProps:d,size:f="medium",className:h}=i,y=q(i,u2),m=u?c:a,k=u?c:s,g=S({},i,{color:l,indeterminate:u,size:f}),p=c2(g);return b.jsx(d2,S({type:"checkbox",inputProps:S({"data-indeterminate":u},d),icon:w.cloneElement(m,{fontSize:(r=m.props.fontSize)!=null?r:f}),checkedIcon:w.cloneElement(k,{fontSize:(o=k.props.fontSize)!=null?o:f}),ownerState:g,ref:n,className:Q(p.root,h)},y,{classes:p}))}),ef=m2;function g2(e){return ue("MuiCircularProgress",e)}ae("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const v2=["className","color","disableShrink","size","style","thickness","value","variant"];let Eu=e=>e,gg,vg,yg,xg;const nr=44,y2=Ns(gg||(gg=Eu`
128
- 0% {
129
- transform: rotate(0deg);
130
- }
131
-
132
- 100% {
133
- transform: rotate(360deg);
134
- }
135
- `)),x2=Ns(vg||(vg=Eu`
136
- 0% {
137
- stroke-dasharray: 1px, 200px;
138
- stroke-dashoffset: 0;
139
- }
140
-
141
- 50% {
142
- stroke-dasharray: 100px, 200px;
143
- stroke-dashoffset: -15px;
144
- }
145
-
146
- 100% {
147
- stroke-dasharray: 100px, 200px;
148
- stroke-dashoffset: -125px;
149
- }
150
- `)),b2=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${K(r)}`],svg:["svg"],circle:["circle",`circle${K(n)}`,o&&"circleDisableShrink"]};return de(i,g2,t)},S2=H("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${K(n.color)}`]]}})(({ownerState:e,theme:t})=>S({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&pp(yg||(yg=Eu`
151
- animation: ${0} 1.4s linear infinite;
152
- `),y2)),w2=H("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),C2=H("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${K(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>S({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&pp(xg||(xg=Eu`
153
- animation: ${0} 1.4s ease-in-out infinite;
154
- `),x2)),k2=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:l=40,style:a,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=q(r,v2),h=S({},r,{color:i,disableShrink:s,size:l,thickness:u,value:c,variant:d}),y=b2(h),m={},k={},g={};if(d==="determinate"){const p=2*Math.PI*((nr-u)/2);m.strokeDasharray=p.toFixed(3),g["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*p).toFixed(3)}px`,k.transform="rotate(-90deg)"}return b.jsx(S2,S({className:Q(y.root,o),style:S({width:l,height:l},k,a),ownerState:h,ref:n,role:"progressbar"},g,f,{children:b.jsx(w2,{className:y.svg,ownerState:h,viewBox:`${nr/2} ${nr/2} ${nr} ${nr}`,children:b.jsx(C2,{className:y.circle,style:m,ownerState:h,cx:nr,cy:nr,r:(nr-u)/2,fill:"none",strokeWidth:u})})}))}),R2=k2;function bg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ra(e,t=!1){return e&&(bg(e.value)&&e.value!==""||t&&bg(e.defaultValue)&&e.defaultValue!=="")}function $2(e){return e.startAdornment}function E2(e){return ue("MuiFormControl",e)}ae("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const P2=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],_2=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${K(n)}`,r&&"fullWidth"]};return de(o,E2,t)},T2=H("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,t[`margin${K(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>S({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),M2=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:l="div",disabled:a=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:h="none",required:y=!1,size:m="medium",variant:k="outlined"}=r,g=q(r,P2),p=S({},r,{color:s,component:l,disabled:a,error:u,fullWidth:d,hiddenLabel:f,margin:h,required:y,size:m,variant:k}),v=_2(p),[x,C]=w.useState(()=>{let D=!1;return o&&w.Children.forEach(o,A=>{if(!Nl(A,["Input","Select"]))return;const T=Nl(A,["Select"])?A.props.input:A;T&&$2(T.props)&&(D=!0)}),D}),[R,$]=w.useState(()=>{let D=!1;return o&&w.Children.forEach(o,A=>{Nl(A,["Input","Select"])&&(Ra(A.props,!0)||Ra(A.props.inputProps,!0))&&(D=!0)}),D}),[E,_]=w.useState(!1);a&&E&&_(!1);const P=c!==void 0&&!a?c:E;let I;const j=w.useMemo(()=>({adornedStart:x,setAdornedStart:C,color:s,disabled:a,error:u,filled:R,focused:P,fullWidth:d,hiddenLabel:f,size:m,onBlur:()=>{_(!1)},onEmpty:()=>{$(!1)},onFilled:()=>{$(!0)},onFocus:()=>{_(!0)},registerEffect:I,required:y,variant:k}),[x,s,a,u,R,P,d,f,I,y,m,k]);return b.jsx(Lp.Provider,{value:j,children:b.jsx(T2,S({as:l,ownerState:p,className:Q(v.root,i),ref:n},g,{children:o}))})}),Wl=M2;function O2(e){return ue("MuiTypography",e)}ae("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const I2=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],A2=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,l={root:["root",i,e.align!=="inherit"&&`align${K(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return de(l,O2,s)},F2=H("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${K(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>S({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Sg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},L2={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},N2=e=>L2[e]||e,z2=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiTypography"}),o=N2(r.color),i=xp(S({},r,{color:o})),{align:s="inherit",className:l,component:a,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:h=Sg}=i,y=q(i,I2),m=S({},i,{align:s,color:o,className:l,component:a,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:h}),k=a||(d?"p":h[f]||Sg[f])||"span",g=A2(m);return b.jsx(F2,S({as:k,ref:n,ownerState:m,className:Q(g.root,l)},y))}),Pt=z2;function D2(e){return ue("MuiFormControlLabel",e)}const j2=ae("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Wi=j2;function oo({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const B2=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],V2=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${K(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return de(s,D2,t)},H2=H("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Wi.label}`]:t.label},t.root,t[`labelPlacement${K(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Wi.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Wi.label}`]:{[`&.${Wi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),U2=H("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Wi.error}`]:{color:(e.vars||e).palette.error.main}})),W2=w.forwardRef(function(t,n){var r,o;const i=pe({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:l={},control:a,disabled:u,disableTypography:c,label:d,labelPlacement:f="end",required:h,slotProps:y={}}=i,m=q(i,B2),k=Tr(),g=(r=u??a.props.disabled)!=null?r:k==null?void 0:k.disabled,p=h??a.props.required,v={disabled:g,required:p};["checked","name","onChange","value","inputRef"].forEach(_=>{typeof a.props[_]>"u"&&typeof i[_]<"u"&&(v[_]=i[_])});const x=oo({props:i,muiFormControl:k,states:["error"]}),C=S({},i,{disabled:g,labelPlacement:f,required:p,error:x.error}),R=V2(C),$=(o=y.typography)!=null?o:l.typography;let E=d;return E!=null&&E.type!==Pt&&!c&&(E=b.jsx(Pt,S({component:"span"},$,{className:Q(R.label,$==null?void 0:$.className),children:E}))),b.jsxs(H2,S({className:Q(R.root,s),ownerState:C,ref:n},m,{children:[w.cloneElement(a,v),E,p&&b.jsxs(U2,{ownerState:C,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}))}),E1=W2;function G2(e){return ue("MuiFormLabel",e)}const K2=ae("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ss=K2,q2=["children","className","color","component","disabled","error","filled","focused","required"],Y2=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:l}=e,a={root:["root",`color${K(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return de(a,G2,t)},X2=H("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>S({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${ss.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ss.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ss.error}`]:{color:(e.vars||e).palette.error.main}})),Q2=H("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ss.error}`]:{color:(e.vars||e).palette.error.main}})),Z2=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,l=q(r,q2),a=Tr(),u=oo({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),c=S({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=Y2(c);return b.jsxs(X2,S({as:s,ownerState:c,className:Q(d.root,i),ref:n},l,{children:[o,u.required&&b.jsxs(Q2,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),J2=Z2;function e_(e){return ue("MuiInputLabel",e)}ae("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const t_=["disableAnimation","margin","shrink","variant","className"],n_=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:l}=e,u=de({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",s],asterisk:[l&&"asterisk"]},e_,t);return S({},t,u)},r_=H(J2,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ss.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>S({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&S({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&S({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&S({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),o_=w.forwardRef(function(t,n){const r=pe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,l=q(r,t_),a=Tr();let u=i;typeof u>"u"&&a&&(u=a.filled||a.focused||a.adornedStart);const c=oo({props:r,muiFormControl:a,states:["size","variant","required"]}),d=S({},r,{disableAnimation:o,formControl:a,shrink:u,size:c.size,variant:c.variant,required:c.required}),f=n_(d);return b.jsx(r_,S({"data-shrink":u,ownerState:d,ref:n,className:Q(f.root,s)},l,{classes:f}))}),Gl=o_,i_=w.createContext({}),$a=i_;function s_(e){return ue("MuiListItemText",e)}const l_=ae("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ea=l_,a_=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],u_=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return de({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},s_,t)},c_=H("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ea.primary}`]:t.primary},{[`& .${Ea.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>S({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),d_=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:l=!1,primary:a,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,f=q(r,a_),{dense:h}=w.useContext($a);let y=a??o,m=c;const k=S({},r,{disableTypography:s,inset:l,primary:!!y,secondary:!!m,dense:h}),g=u_(k);return y!=null&&y.type!==Pt&&!s&&(y=b.jsx(Pt,S({variant:h?"body2":"body1",className:g.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:y}))),m!=null&&m.type!==Pt&&!s&&(m=b.jsx(Pt,S({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},d,{children:m}))),b.jsxs(c_,S({className:Q(g.root,i),ownerState:k,ref:n},f,{children:[y,m]}))}),f_=d_,p_=ae("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),wg=p_,h_=ae("MuiListItemIcon",["root","alignItemsFlexStart"]),Cg=h_;function m_(e){return ue("MuiMenuItem",e)}const g_=ae("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Mi=g_,v_=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],y_=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},x_=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,a=de({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},m_,s);return S({},s,a)},b_=H($u,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:y_})(({theme:e,ownerState:t})=>S({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Mi.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Mi.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Xe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Mi.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Xe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Mi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${wg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${wg.inset}`]:{marginLeft:52},[`& .${Ea.root}`]:{marginTop:0,marginBottom:0},[`& .${Ea.inset}`]:{paddingLeft:36},[`& .${Cg.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&S({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Cg.root} svg`]:{fontSize:"1.25rem"}}))),S_=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:l=!1,disableGutters:a=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f}=r,h=q(r,v_),y=w.useContext($a),m=w.useMemo(()=>({dense:s||y.dense||!1,disableGutters:a}),[y.dense,s,a]),k=w.useRef(null);sn(()=>{o&&k.current&&k.current.focus()},[o]);const g=S({},r,{dense:m.dense,divider:l,disableGutters:a}),p=x_(r),v=Qe(k,n);let x;return r.disabled||(x=d!==void 0?d:-1),b.jsx($a.Provider,{value:m,children:b.jsx(b_,S({ref:v,role:c,tabIndex:x,component:i,focusVisibleClassName:Q(p.focusVisible,u),className:Q(p.root,f)},h,{ownerState:g,classes:p}))})}),Oi=S_;var kg;const w_=["children","classes","className","label","notched"],C_=H("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),k_=H("legend")(({ownerState:e,theme:t})=>S({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&S({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function R_(e){const{className:t,label:n,notched:r}=e,o=q(e,w_),i=n!=null&&n!=="",s=S({},e,{notched:r,withLabel:i});return b.jsx(C_,S({"aria-hidden":!0,className:t,ownerState:s},o,{children:b.jsx(k_,{ownerState:s,children:i?b.jsx("span",{children:n}):kg||(kg=b.jsx("span",{className:"notranslate",children:"​"}))})}))}function $_(e){return b.jsx(tk,S({},e,{defaultTheme:wu,themeId:Jr}))}function E_(e){return ue("MuiInputBase",e)}const P_=ae("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ri=P_,__=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Pu=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${K(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},_u=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},T_=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:l,fullWidth:a,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:h,type:y}=e,m={root:["root",`color${K(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",s&&"focused",l&&"formControl",f==="small"&&"sizeSmall",c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return de(m,E_,t)},Tu=H("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Pu})(({theme:e,ownerState:t})=>S({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ri.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&S({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Mu=H("input",{name:"MuiInputBase",slot:"Input",overridesResolver:_u})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=S({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return S({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ri.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ri.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),M_=b.jsx($_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),O_=w.forwardRef(function(t,n){var r;const o=pe({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:l,className:a,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:h,endAdornment:y,fullWidth:m=!1,id:k,inputComponent:g="input",inputProps:p={},inputRef:v,maxRows:x,minRows:C,multiline:R=!1,name:$,onBlur:E,onChange:_,onClick:P,onFocus:I,onKeyDown:j,onKeyUp:D,placeholder:A,readOnly:T,renderSuffix:O,rows:N,slotProps:M={},slots:L={},startAdornment:F,type:X="text",value:G}=o,oe=q(o,__),te=p.value!=null?p.value:G,{current:Z}=w.useRef(te!=null),se=w.useRef(),Ce=w.useCallback(re=>{},[]),be=Qe(se,v,p.ref,Ce),[ce,_e]=w.useState(!1),J=Tr(),we=oo({props:o,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});we.focused=J?J.focused:ce,w.useEffect(()=>{!J&&f&&ce&&(_e(!1),E&&E())},[J,f,ce,E]);const Ie=J&&J.onFilled,ve=J&&J.onEmpty,fe=w.useCallback(re=>{Ra(re)?Ie&&Ie():ve&&ve()},[Ie,ve]);sn(()=>{Z&&fe({value:te})},[te,fe,Z]);const rt=re=>{if(we.disabled){re.stopPropagation();return}I&&I(re),p.onFocus&&p.onFocus(re),J&&J.onFocus?J.onFocus(re):_e(!0)},ge=re=>{E&&E(re),p.onBlur&&p.onBlur(re),J&&J.onBlur?J.onBlur(re):_e(!1)},Ke=(re,...W)=>{if(!Z){const V=re.target||se.current;if(V==null)throw new Error(Cr(1));fe({value:V.value})}p.onChange&&p.onChange(re,...W),_&&_(re,...W)};w.useEffect(()=>{fe(se.current)},[]);const bt=re=>{se.current&&re.currentTarget===re.target&&se.current.focus(),P&&!we.disabled&&P(re)};let me=g,ke=p;R&&me==="input"&&(N?ke=S({type:void 0,minRows:N,maxRows:N},ke):ke=S({type:void 0,maxRows:x,minRows:C},ke),me=Xd);const st=re=>{fe(re.animationName==="mui-auto-fill-cancel"?se.current:{value:"x"})};w.useEffect(()=>{J&&J.setAdornedStart(!!F)},[J,F]);const He=S({},o,{color:we.color||"primary",disabled:we.disabled,endAdornment:y,error:we.error,focused:we.focused,formControl:J,fullWidth:m,hiddenLabel:we.hiddenLabel,multiline:R,size:we.size,startAdornment:F,type:X}),B=T_(He),U=L.root||u.Root||Tu,ne=M.root||c.root||{},ie=L.input||u.Input||Mu;return ke=S({},ke,(r=M.input)!=null?r:c.input),b.jsxs(w.Fragment,{children:[!h&&M_,b.jsxs(U,S({},ne,!br(U)&&{ownerState:S({},He,ne.ownerState)},{ref:n,onClick:bt},oe,{className:Q(B.root,ne.className,a,T&&"MuiInputBase-readOnly"),children:[F,b.jsx(Lp.Provider,{value:null,children:b.jsx(ie,S({ownerState:He,"aria-invalid":we.error,"aria-describedby":i,autoComplete:s,autoFocus:l,defaultValue:d,disabled:we.disabled,id:k,onAnimationStart:st,name:$,placeholder:A,readOnly:T,required:we.required,rows:N,value:te,onKeyDown:j,onKeyUp:D,type:X},ke,!br(ie)&&{as:me,ownerState:S({},He,ke.ownerState)},{ref:be,className:Q(B.input,ke.className,T&&"MuiInputBase-readOnly"),onBlur:ge,onChange:Ke,onFocus:rt}))}),y,O?O(S({},we,{startAdornment:F})):null]}))]})}),Np=O_;function I_(e){return ue("MuiOutlinedInput",e)}const A_=S({},ri,ae("MuiOutlinedInput",["root","notchedOutline","input"])),rr=A_,F_=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],L_=e=>{const{classes:t}=e,r=de({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},I_,t);return S({},t,r)},N_=H(Tu,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Pu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return S({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${rr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${rr.focused} .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${rr.error} .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${rr.disabled} .${rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&S({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),z_=H(R_,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),D_=H(Mu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_u})(({theme:e,ownerState:t})=>S({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),P1=w.forwardRef(function(t,n){var r,o,i,s,l;const a=pe({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:h=!1,notched:y,slots:m={},type:k="text"}=a,g=q(a,F_),p=L_(a),v=Tr(),x=oo({props:a,muiFormControl:v,states:["required"]}),C=S({},a,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:h,size:x.size,type:k}),R=(r=(o=m.root)!=null?o:u.Root)!=null?r:N_,$=(i=(s=m.input)!=null?s:u.Input)!=null?i:D_;return b.jsx(Np,S({slots:{root:R,input:$},renderSuffix:E=>b.jsx(z_,{ownerState:C,className:p.notchedOutline,label:f!=null&&f!==""&&x.required?l||(l=b.jsxs(w.Fragment,{children:[f," ","*"]})):f,notched:typeof y<"u"?y:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:c,inputComponent:d,multiline:h,ref:n,type:k},g,{classes:S({},p,{notchedOutline:null})}))});P1.muiName="Input";const zp=P1;var Oe={};/**
155
- * @license React
156
- * react-is.production.min.js
157
- *
158
- * Copyright (c) Facebook, Inc. and its affiliates.
159
- *
160
- * This source code is licensed under the MIT license found in the
161
- * LICENSE file in the root directory of this source tree.
162
- */var Dp=Symbol.for("react.element"),jp=Symbol.for("react.portal"),Ou=Symbol.for("react.fragment"),Iu=Symbol.for("react.strict_mode"),Au=Symbol.for("react.profiler"),Fu=Symbol.for("react.provider"),Lu=Symbol.for("react.context"),j_=Symbol.for("react.server_context"),Nu=Symbol.for("react.forward_ref"),zu=Symbol.for("react.suspense"),Du=Symbol.for("react.suspense_list"),ju=Symbol.for("react.memo"),Bu=Symbol.for("react.lazy"),B_=Symbol.for("react.offscreen"),_1;_1=Symbol.for("react.module.reference");function dn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Dp:switch(e=e.type,e){case Ou:case Au:case Iu:case zu:case Du:return e;default:switch(e=e&&e.$$typeof,e){case j_:case Lu:case Nu:case Bu:case ju:case Fu:return e;default:return t}}case jp:return t}}}Oe.ContextConsumer=Lu;Oe.ContextProvider=Fu;Oe.Element=Dp;Oe.ForwardRef=Nu;Oe.Fragment=Ou;Oe.Lazy=Bu;Oe.Memo=ju;Oe.Portal=jp;Oe.Profiler=Au;Oe.StrictMode=Iu;Oe.Suspense=zu;Oe.SuspenseList=Du;Oe.isAsyncMode=function(){return!1};Oe.isConcurrentMode=function(){return!1};Oe.isContextConsumer=function(e){return dn(e)===Lu};Oe.isContextProvider=function(e){return dn(e)===Fu};Oe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dp};Oe.isForwardRef=function(e){return dn(e)===Nu};Oe.isFragment=function(e){return dn(e)===Ou};Oe.isLazy=function(e){return dn(e)===Bu};Oe.isMemo=function(e){return dn(e)===ju};Oe.isPortal=function(e){return dn(e)===jp};Oe.isProfiler=function(e){return dn(e)===Au};Oe.isStrictMode=function(e){return dn(e)===Iu};Oe.isSuspense=function(e){return dn(e)===zu};Oe.isSuspenseList=function(e){return dn(e)===Du};Oe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ou||e===Au||e===Iu||e===zu||e===Du||e===B_||typeof e=="object"&&e!==null&&(e.$$typeof===Bu||e.$$typeof===ju||e.$$typeof===Fu||e.$$typeof===Lu||e.$$typeof===Nu||e.$$typeof===_1||e.getModuleId!==void 0)};Oe.typeOf=dn;function V_(e){return ue("MuiList",e)}ae("MuiList",["root","padding","dense","subheader"]);const H_=["children","className","component","dense","disablePadding","subheader"],U_=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return de({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},V_,t)},W_=H("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>S({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),G_=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:l=!1,disablePadding:a=!1,subheader:u}=r,c=q(r,H_),d=w.useMemo(()=>({dense:l}),[l]),f=S({},r,{component:s,dense:l,disablePadding:a}),h=U_(f);return b.jsx($a.Provider,{value:d,children:b.jsxs(W_,S({as:s,className:Q(h.root,i),ref:n,ownerState:f},c,{children:[u,o]}))})}),K_=G_,q_=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function _c(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Rg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function T1(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Ii(e,t,n,r,o,i){let s=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const a=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!T1(l,i)||a)l=o(e,l,n);else return l.focus(),!0}return!1}const Y_=w.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:l,disabledItemsFocusable:a=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,f=q(t,q_),h=w.useRef(null),y=w.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});sn(()=>{o&&h.current.focus()},[o]),w.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(v,x)=>{const C=!h.current.style.width;if(v.clientHeight<h.current.clientHeight&&C){const R=`${fy(nt(v))}px`;h.current.style[x.direction==="rtl"?"paddingLeft":"paddingRight"]=R,h.current.style.width=`calc(100% + ${R})`}return h.current}}),[]);const m=v=>{const x=h.current,C=v.key,R=nt(x).activeElement;if(C==="ArrowDown")v.preventDefault(),Ii(x,R,u,a,_c);else if(C==="ArrowUp")v.preventDefault(),Ii(x,R,u,a,Rg);else if(C==="Home")v.preventDefault(),Ii(x,null,u,a,_c);else if(C==="End")v.preventDefault(),Ii(x,null,u,a,Rg);else if(C.length===1){const $=y.current,E=C.toLowerCase(),_=performance.now();$.keys.length>0&&(_-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&E!==$.keys[0]&&($.repeating=!1)),$.lastTime=_,$.keys.push(E);const P=R&&!$.repeating&&T1(R,$);$.previousKeyMatched&&(P||Ii(x,R,!1,a,_c,$))?v.preventDefault():$.previousKeyMatched=!1}c&&c(v)},k=Qe(h,n);let g=-1;w.Children.forEach(s,(v,x)=>{w.isValidElement(v)&&(v.props.disabled||(d==="selectedMenu"&&v.props.selected||g===-1)&&(g=x),g===x&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1)))});const p=w.Children.map(s,(v,x)=>{if(x===g){const C={};return i&&(C.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(C.tabIndex=0),w.cloneElement(v,C)}return v});return b.jsx(K_,S({role:"menu",ref:k,className:l,onKeyDown:m,tabIndex:o?0:-1},f,{children:p}))}),X_=Y_;function Q_(e){return ue("MuiPaper",e)}ae("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 Z_=["className","component","elevation","square","variant"],J_=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return de(i,Q_,o)},eT=H("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return S({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&S({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Xe("#fff",Dm(t.elevation))}, ${Xe("#fff",Dm(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),tT=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:l=!1,variant:a="elevation"}=r,u=q(r,Z_),c=S({},r,{component:i,elevation:s,square:l,variant:a}),d=J_(c);return b.jsx(eT,S({as:i,ownerState:c,className:Q(d.root,o),ref:n},u))}),Vu=tT,M1=e=>e.scrollTop;function Pa(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}const nT=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function tf(e){return`scale(${e}, ${e**2})`}const rT={entering:{opacity:1,transform:tf(1)},entered:{opacity:1,transform:"none"}},Tc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),O1=w.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:l,onEnter:a,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:h,style:y,timeout:m="auto",TransitionComponent:k=k1}=t,g=q(t,nT),p=w.useRef(),v=w.useRef(),x=ui(),C=w.useRef(null),R=Qe(C,i.ref,n),$=T=>O=>{if(T){const N=C.current;O===void 0?T(N):T(N,O)}},E=$(c),_=$((T,O)=>{M1(T);const{duration:N,delay:M,easing:L}=Pa({style:y,timeout:m,easing:s},{mode:"enter"});let F;m==="auto"?(F=x.transitions.getAutoHeightDuration(T.clientHeight),v.current=F):F=N,T.style.transition=[x.transitions.create("opacity",{duration:F,delay:M}),x.transitions.create("transform",{duration:Tc?F:F*.666,delay:M,easing:L})].join(","),a&&a(T,O)}),P=$(u),I=$(h),j=$(T=>{const{duration:O,delay:N,easing:M}=Pa({style:y,timeout:m,easing:s},{mode:"exit"});let L;m==="auto"?(L=x.transitions.getAutoHeightDuration(T.clientHeight),v.current=L):L=O,T.style.transition=[x.transitions.create("opacity",{duration:L,delay:N}),x.transitions.create("transform",{duration:Tc?L:L*.666,delay:Tc?N:N||L*.333,easing:M})].join(","),T.style.opacity=0,T.style.transform=tf(.75),d&&d(T)}),D=$(f),A=T=>{m==="auto"&&(p.current=setTimeout(T,v.current||0)),r&&r(C.current,T)};return w.useEffect(()=>()=>{clearTimeout(p.current)},[]),b.jsx(k,S({appear:o,in:l,nodeRef:C,onEnter:_,onEntered:P,onEntering:E,onExit:j,onExited:D,onExiting:I,addEndListener:A,timeout:m==="auto"?null:m},g,{children:(T,O)=>w.cloneElement(i,S({style:S({opacity:0,transform:tf(.75),visibility:T==="exited"&&!l?"hidden":void 0},rT[T],y,i.props.style),ref:R},O))}))});O1.muiSupportAuto=!0;const nf=O1,oT=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],iT={entering:{opacity:1},entered:{opacity:1}},sT=w.forwardRef(function(t,n){const r=ui(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:a,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:h,onExited:y,onExiting:m,style:k,timeout:g=o,TransitionComponent:p=k1}=t,v=q(t,oT),x=w.useRef(null),C=Qe(x,l.ref,n),R=A=>T=>{if(A){const O=x.current;T===void 0?A(O):A(O,T)}},$=R(f),E=R((A,T)=>{M1(A);const O=Pa({style:k,timeout:g,easing:a},{mode:"enter"});A.style.webkitTransition=r.transitions.create("opacity",O),A.style.transition=r.transitions.create("opacity",O),c&&c(A,T)}),_=R(d),P=R(m),I=R(A=>{const T=Pa({style:k,timeout:g,easing:a},{mode:"exit"});A.style.webkitTransition=r.transitions.create("opacity",T),A.style.transition=r.transitions.create("opacity",T),h&&h(A)}),j=R(y),D=A=>{i&&i(x.current,A)};return b.jsx(p,S({appear:s,in:u,nodeRef:x,onEnter:E,onEntered:_,onEntering:$,onExit:I,onExited:j,onExiting:P,addEndListener:D,timeout:g},v,{children:(A,T)=>w.cloneElement(l,S({style:S({opacity:0,visibility:A==="exited"&&!u?"hidden":void 0},iT[A],k,l.props.style),ref:C},T))}))}),I1=sT;function lT(e){return ue("MuiBackdrop",e)}ae("MuiBackdrop",["root","invisible"]);const aT=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],uT=e=>{const{classes:t,invisible:n}=e;return de({root:["root",n&&"invisible"]},lT,t)},cT=H("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>S({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),dT=w.forwardRef(function(t,n){var r,o,i;const s=pe({props:t,name:"MuiBackdrop"}),{children:l,className:a,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:h,slotProps:y={},slots:m={},TransitionComponent:k=I1,transitionDuration:g}=s,p=q(s,aT),v=S({},s,{component:u,invisible:f}),x=uT(v),C=(r=y.root)!=null?r:d.root;return b.jsx(k,S({in:h,timeout:g},p,{children:b.jsx(cT,S({"aria-hidden":!0},C,{as:(o=(i=m.root)!=null?i:c.Root)!=null?o:u,className:Q(x.root,a,C==null?void 0:C.className),ownerState:S({},v,C==null?void 0:C.ownerState),classes:x,ref:n,children:l}))}))}),A1=dT,fT=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],pT=H("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>S({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),hT=H(A1,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),mT=w.forwardRef(function(t,n){var r,o,i,s,l,a;const u=pe({name:"MuiModal",props:t}),{BackdropComponent:c=hT,BackdropProps:d,classes:f,className:h,closeAfterTransition:y=!1,children:m,container:k,component:g,components:p={},componentsProps:v={},disableAutoFocus:x=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:R=!1,disablePortal:$=!1,disableRestoreFocus:E=!1,disableScrollLock:_=!1,hideBackdrop:P=!1,keepMounted:I=!1,onBackdropClick:j,onClose:D,open:A,slotProps:T,slots:O,theme:N}=u,M=q(u,fT),[L,F]=w.useState(!0),X={container:k,closeAfterTransition:y,disableAutoFocus:x,disableEnforceFocus:C,disableEscapeKeyDown:R,disablePortal:$,disableRestoreFocus:E,disableScrollLock:_,hideBackdrop:P,keepMounted:I,onBackdropClick:j,onClose:D,open:A},G=S({},u,X,{exited:L}),oe=(r=(o=O==null?void 0:O.root)!=null?o:p.Root)!=null?r:pT,te=(i=(s=O==null?void 0:O.backdrop)!=null?s:p.Backdrop)!=null?i:c,Z=(l=T==null?void 0:T.root)!=null?l:v.root,se=(a=T==null?void 0:T.backdrop)!=null?a:v.backdrop;return b.jsx(QE,S({slots:{root:oe,backdrop:te},slotProps:{root:()=>S({},Gd(Z,G),!br(oe)&&{as:g,theme:N},{className:Q(h,Z==null?void 0:Z.className,f==null?void 0:f.root,!G.open&&G.exited&&(f==null?void 0:f.hidden))}),backdrop:()=>S({},d,Gd(se,G),{className:Q(se==null?void 0:se.className,f==null?void 0:f.backdrop)})},onTransitionEnter:()=>F(!1),onTransitionExited:()=>F(!0),ref:n},M,X,{children:m}))}),F1=mT;function gT(e){return ue("MuiPopover",e)}ae("MuiPopover",["root","paper"]);const vT=["onEntering"],yT=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function $g(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Eg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Pg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Mc(e){return typeof e=="function"?e():e}const xT=e=>{const{classes:t}=e;return de({root:["root"],paper:["paper"]},gT,t)},bT=H(F1,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ST=H(Vu,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),wT=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:a="anchorEl",children:u,className:c,container:d,elevation:f=8,marginThreshold:h=16,open:y,PaperProps:m={},transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:g=nf,transitionDuration:p="auto",TransitionProps:{onEntering:v}={}}=r,x=q(r.TransitionProps,vT),C=q(r,yT),R=w.useRef(),$=Qe(R,m.ref),E=S({},r,{anchorOrigin:s,anchorReference:a,elevation:f,marginThreshold:h,PaperProps:m,transformOrigin:k,TransitionComponent:g,transitionDuration:p,TransitionProps:x}),_=xT(E),P=w.useCallback(()=>{if(a==="anchorPosition")return l;const F=Mc(i),G=(F&&F.nodeType===1?F:nt(R.current).body).getBoundingClientRect();return{top:G.top+$g(G,s.vertical),left:G.left+Eg(G,s.horizontal)}},[i,s.horizontal,s.vertical,l,a]),I=w.useCallback(F=>({vertical:$g(F,k.vertical),horizontal:Eg(F,k.horizontal)}),[k.horizontal,k.vertical]),j=w.useCallback(F=>{const X={width:F.offsetWidth,height:F.offsetHeight},G=I(X);if(a==="none")return{top:null,left:null,transformOrigin:Pg(G)};const oe=P();let te=oe.top-G.vertical,Z=oe.left-G.horizontal;const se=te+X.height,Ce=Z+X.width,be=kr(Mc(i)),ce=be.innerHeight-h,_e=be.innerWidth-h;if(te<h){const J=te-h;te-=J,G.vertical+=J}else if(se>ce){const J=se-ce;te-=J,G.vertical+=J}if(Z<h){const J=Z-h;Z-=J,G.horizontal+=J}else if(Ce>_e){const J=Ce-_e;Z-=J,G.horizontal+=J}return{top:`${Math.round(te)}px`,left:`${Math.round(Z)}px`,transformOrigin:Pg(G)}},[i,a,P,I,h]),[D,A]=w.useState(y),T=w.useCallback(()=>{const F=R.current;if(!F)return;const X=j(F);X.top!==null&&(F.style.top=X.top),X.left!==null&&(F.style.left=X.left),F.style.transformOrigin=X.transformOrigin,A(!0)},[j]),O=(F,X)=>{v&&v(F,X),T()},N=()=>{A(!1)};w.useEffect(()=>{y&&T()}),w.useImperativeHandle(o,()=>y?{updatePosition:()=>{T()}}:null,[y,T]),w.useEffect(()=>{if(!y)return;const F=rp(()=>{T()}),X=kr(i);return X.addEventListener("resize",F),()=>{F.clear(),X.removeEventListener("resize",F)}},[i,y,T]);let M=p;p==="auto"&&!g.muiSupportAuto&&(M=void 0);const L=d||(i?nt(Mc(i)).body:void 0);return b.jsx(bT,S({BackdropProps:{invisible:!0},className:Q(_.root,c),container:L,open:y,ref:n,ownerState:E},C,{children:b.jsx(g,S({appear:!0,in:y,onEntering:O,onExited:N,timeout:M},x,{children:b.jsx(ST,S({elevation:f},m,{ref:$,className:Q(_.paper,m.className)},D?void 0:{style:S({},m.style,{opacity:0})},{ownerState:E,children:u}))}))}))}),CT=wT;function kT(e){return ue("MuiMenu",e)}ae("MuiMenu",["root","paper","list"]);const RT=["onEntering"],$T=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],ET={vertical:"top",horizontal:"right"},PT={vertical:"top",horizontal:"left"},_T=e=>{const{classes:t}=e;return de({root:["root"],paper:["paper"],list:["list"]},kT,t)},TT=H(CT,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),MT=H(Vu,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),OT=H(X_,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),IT=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:a,open:u,PaperProps:c={},PopoverClasses:d,transitionDuration:f="auto",TransitionProps:{onEntering:h}={},variant:y="selectedMenu"}=r,m=q(r.TransitionProps,RT),k=q(r,$T),g=ui(),p=g.direction==="rtl",v=S({},r,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:h,PaperProps:c,transitionDuration:f,TransitionProps:m,variant:y}),x=_T(v),C=o&&!s&&u,R=w.useRef(null),$=(P,I)=>{R.current&&R.current.adjustStyleForScrollbar(P,g),h&&h(P,I)},E=P=>{P.key==="Tab"&&(P.preventDefault(),a&&a(P,"tabKeyDown"))};let _=-1;return w.Children.map(i,(P,I)=>{w.isValidElement(P)&&(P.props.disabled||(y==="selectedMenu"&&P.props.selected||_===-1)&&(_=I))}),b.jsx(TT,S({onClose:a,anchorOrigin:{vertical:"bottom",horizontal:p?"right":"left"},transformOrigin:p?ET:PT,PaperProps:S({as:MT},c,{classes:S({},c.classes,{root:x.paper})}),className:x.root,open:u,ref:n,transitionDuration:f,TransitionProps:S({onEntering:$},m),ownerState:v},k,{classes:d,children:b.jsx(OT,S({onKeyDown:E,actions:R,autoFocus:o&&(_===-1||s),autoFocusItem:C,variant:y},l,{className:Q(x.list,l.className),children:i}))}))}),AT=IT;function FT(e){return ue("MuiNativeSelect",e)}const LT=ae("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Bp=LT,NT=["className","disabled","error","IconComponent","inputRef","variant"],zT=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${K(n)}`,i&&"iconOpen",r&&"disabled"]};return de(l,FT,t)},L1=({ownerState:e,theme:t})=>S({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":S({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Bp.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),DT=H("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:cn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Bp.multiple}`]:t.multiple}]}})(L1),N1=({ownerState:e,theme:t})=>S({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Bp.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),jT=H("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${K(n.variant)}`],n.open&&t.iconOpen]}})(N1),BT=w.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:l,variant:a="standard"}=t,u=q(t,NT),c=S({},t,{disabled:o,variant:a,error:i}),d=zT(c);return b.jsxs(w.Fragment,{children:[b.jsx(DT,S({ownerState:c,className:Q(d.select,r),disabled:o,ref:l||n},u)),t.multiple?null:b.jsx(jT,{as:s,ownerState:c,className:d.icon})]})}),VT=BT;function HT(e){return ue("MuiSelect",e)}const UT=ae("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ai=UT;var _g;const WT=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],GT=H("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Ai.select}`]:t.select},{[`&.${Ai.select}`]:t[n.variant]},{[`&.${Ai.error}`]:t.error},{[`&.${Ai.multiple}`]:t.multiple}]}})(L1,{[`&.${Ai.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),KT=H("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${K(n.variant)}`],n.open&&t.iconOpen]}})(N1),qT=H("input",{shouldForwardProp:e=>kp(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Tg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function YT(e){return e==null||typeof e=="string"&&!e.trim()}const XT=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${K(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return de(l,HT,t)},QT=w.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:l,className:a,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:f,error:h=!1,IconComponent:y,inputRef:m,labelId:k,MenuProps:g={},multiple:p,name:v,onBlur:x,onChange:C,onClose:R,onFocus:$,onOpen:E,open:_,readOnly:P,renderValue:I,SelectDisplayProps:j={},tabIndex:D,value:A,variant:T="standard"}=t,O=q(t,WT),[N,M]=Qo({controlled:A,default:c,name:"Select"}),[L,F]=Qo({controlled:_,default:u,name:"Select"}),X=w.useRef(null),G=w.useRef(null),[oe,te]=w.useState(null),{current:Z}=w.useRef(_!=null),[se,Ce]=w.useState(),be=Qe(n,m),ce=w.useCallback(V=>{G.current=V,V&&te(V)},[]),_e=oe==null?void 0:oe.parentNode;w.useImperativeHandle(be,()=>({focus:()=>{G.current.focus()},node:X.current,value:N}),[N]),w.useEffect(()=>{u&&L&&oe&&!Z&&(Ce(s?null:_e.clientWidth),G.current.focus())},[oe,s]),w.useEffect(()=>{i&&G.current.focus()},[i]),w.useEffect(()=>{if(!k)return;const V=nt(G.current).getElementById(k);if(V){const le=()=>{getSelection().isCollapsed&&G.current.focus()};return V.addEventListener("click",le),()=>{V.removeEventListener("click",le)}}},[k]);const J=(V,le)=>{V?E&&E(le):R&&R(le),Z||(Ce(s?null:_e.clientWidth),F(V))},we=V=>{V.button===0&&(V.preventDefault(),G.current.focus(),J(!0,V))},Ie=V=>{J(!1,V)},ve=w.Children.toArray(l),fe=V=>{const le=ve.find(ee=>ee.props.value===V.target.value);le!==void 0&&(M(le.props.value),C&&C(V,le))},rt=V=>le=>{let ee;if(le.currentTarget.hasAttribute("tabindex")){if(p){ee=Array.isArray(N)?N.slice():[];const qe=N.indexOf(V.props.value);qe===-1?ee.push(V.props.value):ee.splice(qe,1)}else ee=V.props.value;if(V.props.onClick&&V.props.onClick(le),N!==ee&&(M(ee),C)){const qe=le.nativeEvent||le,Lt=new qe.constructor(qe.type,qe);Object.defineProperty(Lt,"target",{writable:!0,value:{value:ee,name:v}}),C(Lt,V)}p||J(!1,le)}},ge=V=>{P||[" ","ArrowUp","ArrowDown","Enter"].indexOf(V.key)!==-1&&(V.preventDefault(),J(!0,V))},Ke=oe!==null&&L,bt=V=>{!Ke&&x&&(Object.defineProperty(V,"target",{writable:!0,value:{value:N,name:v}}),x(V))};delete O["aria-invalid"];let me,ke;const st=[];let He=!1;(Ra({value:N})||f)&&(I?me=I(N):He=!0);const B=ve.map(V=>{if(!w.isValidElement(V))return null;let le;if(p){if(!Array.isArray(N))throw new Error(Cr(2));le=N.some(ee=>Tg(ee,V.props.value)),le&&He&&st.push(V.props.children)}else le=Tg(N,V.props.value),le&&He&&(ke=V.props.children);return w.cloneElement(V,{"aria-selected":le?"true":"false",onClick:rt(V),onKeyUp:ee=>{ee.key===" "&&ee.preventDefault(),V.props.onKeyUp&&V.props.onKeyUp(ee)},role:"option",selected:le,value:void 0,"data-value":V.props.value})});He&&(p?st.length===0?me=null:me=st.reduce((V,le,ee)=>(V.push(le),ee<st.length-1&&V.push(", "),V),[]):me=ke);let U=se;!s&&Z&&oe&&(U=_e.clientWidth);let ne;typeof D<"u"?ne=D:ne=d?null:0;const ie=j.id||(v?`mui-component-select-${v}`:void 0),re=S({},t,{variant:T,value:N,open:Ke,error:h}),W=XT(re);return b.jsxs(w.Fragment,{children:[b.jsx(GT,S({ref:ce,tabIndex:ne,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":Ke?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[k,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:ge,onMouseDown:d||P?null:we,onBlur:bt,onFocus:$},j,{ownerState:re,className:Q(j.className,W.select,a),id:ie,children:YT(me)?_g||(_g=b.jsx("span",{className:"notranslate",children:"​"})):me})),b.jsx(qT,S({"aria-invalid":h,value:Array.isArray(N)?N.join(","):N,name:v,ref:X,"aria-hidden":!0,onChange:fe,tabIndex:-1,disabled:d,className:W.nativeInput,autoFocus:i,ownerState:re},O)),b.jsx(KT,{as:y,className:W.icon,ownerState:re}),b.jsx(AT,S({id:`menu-${v||""}`,anchorEl:_e,open:Ke,onClose:Ie,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:S({"aria-labelledby":k,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:S({},g.PaperProps,{style:S({minWidth:U},g.PaperProps!=null?g.PaperProps.style:null)}),children:B}))]})}),ZT=QT,JT=ro(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function eM(e){return ue("MuiInput",e)}const tM=S({},ri,ae("MuiInput",["root","underline","input"])),Fi=tM,nM=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],rM=e=>{const{classes:t,disableUnderline:n}=e,o=de({root:["root",!n&&"underline"],input:["input"]},eM,t);return S({},t,o)},oM=H(Tu,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),S({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Fi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fi.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Fi.disabled}, .${Fi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Fi.disabled}:before`]:{borderBottomStyle:"dotted"}})}),iM=H(Mu,{name:"MuiInput",slot:"Input",overridesResolver:_u})({}),z1=w.forwardRef(function(t,n){var r,o,i,s;const l=pe({props:t,name:"MuiInput"}),{disableUnderline:a,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:h=!1,slotProps:y,slots:m={},type:k="text"}=l,g=q(l,nM),p=rM(l),x={root:{ownerState:{disableUnderline:a}}},C=y??c?Ot(y??c,x):x,R=(r=(o=m.root)!=null?o:u.Root)!=null?r:oM,$=(i=(s=m.input)!=null?s:u.Input)!=null?i:iM;return b.jsx(Np,S({slots:{root:R,input:$},slotProps:C,fullWidth:d,inputComponent:f,multiline:h,ref:n,type:k},g,{classes:p}))});z1.muiName="Input";const D1=z1;function sM(e){return ue("MuiFilledInput",e)}const lM=S({},ri,ae("MuiFilledInput",["root","underline","input"])),Ir=lM,aM=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],uM=e=>{const{classes:t,disableUnderline:n}=e,o=de({root:["root",!n&&"underline"],input:["input"]},sM,t);return S({},t,o)},cM=H(Tu,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return S({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Ir.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ir.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ir.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ir.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ir.disabled}, .${Ir.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ir.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&S({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),dM=H(Mu,{name:"MuiFilledInput",slot:"Input",overridesResolver:_u})(({theme:e,ownerState:t})=>S({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),j1=w.forwardRef(function(t,n){var r,o,i,s;const l=pe({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:h,slots:y={},type:m="text"}=l,k=q(l,aM),g=S({},l,{fullWidth:c,inputComponent:d,multiline:f,type:m}),p=uM(l),v={root:{ownerState:g},input:{ownerState:g}},x=h??u?Ot(h??u,v):v,C=(r=(o=y.root)!=null?o:a.Root)!=null?r:cM,R=(i=(s=y.input)!=null?s:a.Input)!=null?i:dM;return b.jsx(Np,S({slots:{root:C,input:R},componentsProps:x,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:m},k,{classes:p}))});j1.muiName="Input";const B1=j1,fM=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],pM=e=>{const{classes:t}=e;return t},Vp={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>cn(e)&&e!=="variant",slot:"Root"},hM=H(D1,Vp)(""),mM=H(zp,Vp)(""),gM=H(B1,Vp)(""),V1=w.forwardRef(function(t,n){const r=pe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:l,defaultOpen:a=!1,displayEmpty:u=!1,IconComponent:c=JT,id:d,input:f,inputProps:h,label:y,labelId:m,MenuProps:k,multiple:g=!1,native:p=!1,onClose:v,onOpen:x,open:C,renderValue:R,SelectDisplayProps:$,variant:E="outlined"}=r,_=q(r,fM),P=p?VT:ZT,I=Tr(),j=oo({props:r,muiFormControl:I,states:["variant","error"]}),D=j.variant||E,A=S({},r,{variant:D,classes:s}),T=pM(A),O=f||{standard:b.jsx(hM,{ownerState:A}),outlined:b.jsx(mM,{label:y,ownerState:A}),filled:b.jsx(gM,{ownerState:A})}[D],N=Qe(n,O.ref);return b.jsx(w.Fragment,{children:w.cloneElement(O,S({inputComponent:P,inputProps:S({children:i,error:j.error,IconComponent:c,variant:D,type:void 0,multiple:g},p?{id:d}:{autoWidth:o,defaultOpen:a,displayEmpty:u,labelId:m,MenuProps:k,onClose:v,onOpen:x,open:C,renderValue:R,SelectDisplayProps:S({id:d},$)},h,{classes:h?Ot(T,h.classes):T},f?f.props.inputProps:{})},g&&p&&D==="outlined"?{notched:!0}:{},{ref:N,className:Q(O.props.className,l)},!f&&{variant:D},_))})});V1.muiName="Select";const Kl=V1,vM=e=>!e||!br(e),yM=vM;function xM(e){return ue("MuiSlider",e)}const bM=ae("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),bn=bM,SM=e=>{const{open:t}=e;return{offset:Q(t&&bn.valueLabelOpen),circle:bn.valueLabelCircle,label:bn.valueLabelLabel}};function wM(e){const{children:t,className:n,value:r}=e,o=SM(e);return t?w.cloneElement(t,{className:Q(t.props.className)},b.jsxs(w.Fragment,{children:[t.props.children,b.jsx("span",{className:Q(o.offset,n),"aria-hidden":!0,children:b.jsx("span",{className:o.circle,children:b.jsx("span",{className:o.label,children:r})})})]})):null}const CM=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Mg(e){return e}const kM=H("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${K(n.color)}`],n.size!=="medium"&&t[`size${K(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>S({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&S({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&S({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${bn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${bn.dragging}`]:{[`& .${bn.thumb}, & .${bn.track}`]:{transition:"none"}}})),RM=H("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>S({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),$M=H("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?wp(e.palette[t.color].main,.62):Sp(e.palette[t.color].main,.5);return S({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),EM=H("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${K(n.color)}`],n.size!=="medium"&&t[`thumbSize${K(n.size)}`]]}})(({theme:e,ownerState:t})=>S({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":S({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${bn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Xe(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${bn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Xe(e.palette[t.color].main,.16)}`},[`&.${bn.disabled}`]:{"&:hover":{boxShadow:"none"}}})),PM=H(wM,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>S({[`&.${bn.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:"-20%",top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),_M=H("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>kp(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>S({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),TM=H("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>kp(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>S({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),MM=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:l,size:a}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${K(l)}`,a&&`size${K(a)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",a&&`thumbSize${K(a)}`,l&&`thumbColor${K(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return de(u,xM,s)},OM=({children:e})=>e,IM=w.forwardRef(function(t,n){var r,o,i,s,l,a,u,c,d,f,h,y,m,k,g,p,v,x,C,R,$,E,_,P;const I=pe({props:t,name:"MuiSlider"}),D=ui().direction==="rtl",{"aria-label":A,"aria-valuetext":T,"aria-labelledby":O,component:N="span",components:M={},componentsProps:L={},color:F="primary",classes:X,className:G,disableSwap:oe=!1,disabled:te=!1,getAriaLabel:Z,getAriaValueText:se,marks:Ce=!1,max:be=100,min:ce=0,orientation:_e="horizontal",size:J="medium",step:we=1,scale:Ie=Mg,slotProps:ve,slots:fe,track:rt="normal",valueLabelDisplay:ge="off",valueLabelFormat:Ke=Mg}=I,bt=q(I,CM),me=S({},I,{isRtl:D,max:be,min:ce,classes:X,disabled:te,disableSwap:oe,orientation:_e,marks:Ce,color:F,size:J,step:we,scale:Ie,track:rt,valueLabelDisplay:ge,valueLabelFormat:Ke}),{axisProps:ke,getRootProps:st,getHiddenInputProps:He,getThumbProps:B,open:U,active:ne,axis:ie,focusedThumbIndex:re,range:W,dragging:V,marks:le,values:ee,trackOffset:qe,trackLeap:Lt}=oP(S({},me,{rootRef:n}));me.marked=le.length>0&&le.some(De=>De.label),me.dragging=V,me.focusedThumbIndex=re;const ct=MM(me),lo=(r=(o=fe==null?void 0:fe.root)!=null?o:M.Root)!=null?r:kM,di=(i=(s=fe==null?void 0:fe.rail)!=null?s:M.Rail)!=null?i:RM,Bs=(l=(a=fe==null?void 0:fe.track)!=null?a:M.Track)!=null?l:$M,Vs=(u=(c=fe==null?void 0:fe.thumb)!=null?c:M.Thumb)!=null?u:EM,Hs=(d=(f=fe==null?void 0:fe.valueLabel)!=null?f:M.ValueLabel)!=null?d:PM,ao=(h=(y=fe==null?void 0:fe.mark)!=null?y:M.Mark)!=null?h:_M,uo=(m=(k=fe==null?void 0:fe.markLabel)!=null?k:M.MarkLabel)!=null?m:TM,fi=(g=(p=fe==null?void 0:fe.input)!=null?p:M.Input)!=null?g:"input",co=(v=ve==null?void 0:ve.root)!=null?v:L.root,Us=(x=ve==null?void 0:ve.rail)!=null?x:L.rail,fo=(C=ve==null?void 0:ve.track)!=null?C:L.track,pi=(R=ve==null?void 0:ve.thumb)!=null?R:L.thumb,hi=($=ve==null?void 0:ve.valueLabel)!=null?$:L.valueLabel,Gu=(E=ve==null?void 0:ve.mark)!=null?E:L.mark,mi=(_=ve==null?void 0:ve.markLabel)!=null?_:L.markLabel,Ku=(P=ve==null?void 0:ve.input)!=null?P:L.input,Mr=mn({elementType:lo,getSlotProps:st,externalSlotProps:co,externalForwardedProps:bt,additionalProps:S({},yM(lo)&&{as:N}),ownerState:S({},me,co==null?void 0:co.ownerState),className:[ct.root,G]}),gi=mn({elementType:di,externalSlotProps:Us,ownerState:me,className:ct.rail}),Nt=mn({elementType:Bs,externalSlotProps:fo,additionalProps:{style:S({},ke[ie].offset(qe),ke[ie].leap(Lt))},ownerState:S({},me,fo==null?void 0:fo.ownerState),className:ct.track}),jn=mn({elementType:Vs,getSlotProps:B,externalSlotProps:pi,ownerState:S({},me,pi==null?void 0:pi.ownerState),className:ct.thumb}),qu=mn({elementType:Hs,externalSlotProps:hi,ownerState:S({},me,hi==null?void 0:hi.ownerState),className:ct.valueLabel}),Bn=mn({elementType:ao,externalSlotProps:Gu,ownerState:me,className:ct.mark}),Or=mn({elementType:uo,externalSlotProps:mi,ownerState:me,className:ct.markLabel}),Ws=mn({elementType:fi,getSlotProps:He,externalSlotProps:Ku,ownerState:me});return b.jsxs(lo,S({},Mr,{children:[b.jsx(di,S({},gi)),b.jsx(Bs,S({},Nt)),le.filter(De=>De.value>=ce&&De.value<=be).map((De,Ze)=>{const po=Ca(De.value,ce,be),ho=ke[ie].offset(po);let fn;return rt===!1?fn=ee.indexOf(De.value)!==-1:fn=rt==="normal"&&(W?De.value>=ee[0]&&De.value<=ee[ee.length-1]:De.value<=ee[0])||rt==="inverted"&&(W?De.value<=ee[0]||De.value>=ee[ee.length-1]:De.value>=ee[0]),b.jsxs(w.Fragment,{children:[b.jsx(ao,S({"data-index":Ze},Bn,!br(ao)&&{markActive:fn},{style:S({},ho,Bn.style),className:Q(Bn.className,fn&&ct.markActive)})),De.label!=null?b.jsx(uo,S({"aria-hidden":!0,"data-index":Ze},Or,!br(uo)&&{markLabelActive:fn},{style:S({},ho,Or.style),className:Q(ct.markLabel,Or.className,fn&&ct.markLabelActive),children:De.label})):null]},Ze)}),ee.map((De,Ze)=>{const po=Ca(De,ce,be),ho=ke[ie].offset(po),fn=ge==="off"?OM:Hs;return b.jsx(fn,S({},!br(fn)&&{valueLabelFormat:Ke,valueLabelDisplay:ge,value:typeof Ke=="function"?Ke(Ie(De),Ze):Ke,index:Ze,open:U===Ze||ne===Ze||ge==="on",disabled:te},qu,{children:b.jsx(Vs,S({"data-index":Ze},jn,{className:Q(ct.thumb,jn.className,ne===Ze&&ct.active,re===Ze&&ct.focusVisible),style:S({},ho,{pointerEvents:oe&&ne!==Ze?"none":void 0},jn.style),children:b.jsx(fi,S({"data-index":Ze,"aria-label":Z?Z(Ze):A,"aria-valuenow":Ie(De),"aria-labelledby":O,"aria-valuetext":se?se(Ie(De),Ze):T,value:ee[Ze]},Ws))}))}),Ze)})]}))}),AM=IM,FM=Mk({createStyledComponent:H("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>pe({props:e,name:"MuiStack"})}),LM=FM,NM=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],zM=H(zE,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DM=w.forwardRef(function(t,n){var r;const o=xu(),i=pe({props:t,name:"MuiPopper"}),{anchorEl:s,component:l,components:a,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:h,open:y,placement:m,popperOptions:k,popperRef:g,transition:p,slots:v,slotProps:x}=i,C=q(i,NM),R=(r=v==null?void 0:v.root)!=null?r:a==null?void 0:a.Root,$=S({anchorEl:s,container:c,disablePortal:d,keepMounted:f,modifiers:h,open:y,placement:m,popperOptions:k,popperRef:g,transition:p},C);return b.jsx(zM,S({as:l,direction:o==null?void 0:o.direction,slots:{root:R},slotProps:x??u},$,{ref:n}))}),H1=DM;function jM(e){return ue("MuiTooltip",e)}const BM=ae("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),cr=BM,VM=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function HM(e){return Math.round(e*1e5)/1e5}const UM=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${K(i.split("-")[0])}`],arrow:["arrow"]};return de(s,jM,t)},WM=H(H1,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>S({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${cr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${cr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${cr.arrow}`]:S({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${cr.arrow}`]:S({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),GM=H("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${K(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>S({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Xe(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${HM(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${cr.popper}[data-popper-placement*="left"] &`]:S({transformOrigin:"right center"},t.isRtl?S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):S({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${cr.popper}[data-popper-placement*="right"] &`]:S({transformOrigin:"left center"},t.isRtl?S({marginRight:"14px"},t.touch&&{marginRight:"24px"}):S({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${cr.popper}[data-popper-placement*="top"] &`]:S({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${cr.popper}[data-popper-placement*="bottom"] &`]:S({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),KM=H("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Xe(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let bl=!1,Oc=null,Li={x:0,y:0};function Sl(e,t){return n=>{t&&t(n),e(n)}}const qM=w.forwardRef(function(t,n){var r,o,i,s,l,a,u,c,d,f,h,y,m,k,g,p,v,x,C;const R=pe({props:t,name:"MuiTooltip"}),{arrow:$=!1,children:E,components:_={},componentsProps:P={},describeChild:I=!1,disableFocusListener:j=!1,disableHoverListener:D=!1,disableInteractive:A=!1,disableTouchListener:T=!1,enterDelay:O=100,enterNextDelay:N=0,enterTouchDelay:M=700,followCursor:L=!1,id:F,leaveDelay:X=0,leaveTouchDelay:G=1500,onClose:oe,onOpen:te,open:Z,placement:se="bottom",PopperComponent:Ce,PopperProps:be={},slotProps:ce={},slots:_e={},title:J,TransitionComponent:we=nf,TransitionProps:Ie}=R,ve=q(R,VM),fe=ui(),rt=fe.direction==="rtl",[ge,Ke]=w.useState(),[bt,me]=w.useState(null),ke=w.useRef(!1),st=A||L,He=w.useRef(),B=w.useRef(),U=w.useRef(),ne=w.useRef(),[ie,re]=Qo({controlled:Z,default:!1,name:"Tooltip",state:"open"});let W=ie;const V=Ka(F),le=w.useRef(),ee=w.useCallback(()=>{le.current!==void 0&&(document.body.style.WebkitUserSelect=le.current,le.current=void 0),clearTimeout(ne.current)},[]);w.useEffect(()=>()=>{clearTimeout(He.current),clearTimeout(B.current),clearTimeout(U.current),ee()},[ee]);const qe=ye=>{clearTimeout(Oc),bl=!0,re(!0),te&&!W&&te(ye)},Lt=xn(ye=>{clearTimeout(Oc),Oc=setTimeout(()=>{bl=!1},800+X),re(!1),oe&&W&&oe(ye),clearTimeout(He.current),He.current=setTimeout(()=>{ke.current=!1},fe.transitions.duration.shortest)}),ct=ye=>{ke.current&&ye.type!=="touchstart"||(ge&&ge.removeAttribute("title"),clearTimeout(B.current),clearTimeout(U.current),O||bl&&N?B.current=setTimeout(()=>{qe(ye)},bl?N:O):qe(ye))},lo=ye=>{clearTimeout(B.current),clearTimeout(U.current),U.current=setTimeout(()=>{Lt(ye)},X)},{isFocusVisibleRef:di,onBlur:Bs,onFocus:Vs,ref:Hs}=Ya(),[,ao]=w.useState(!1),uo=ye=>{Bs(ye),di.current===!1&&(ao(!1),lo(ye))},fi=ye=>{ge||Ke(ye.currentTarget),Vs(ye),di.current===!0&&(ao(!0),ct(ye))},co=ye=>{ke.current=!0;const zt=E.props;zt.onTouchStart&&zt.onTouchStart(ye)},Us=ct,fo=lo,pi=ye=>{co(ye),clearTimeout(U.current),clearTimeout(He.current),ee(),le.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ne.current=setTimeout(()=>{document.body.style.WebkitUserSelect=le.current,ct(ye)},M)},hi=ye=>{E.props.onTouchEnd&&E.props.onTouchEnd(ye),ee(),clearTimeout(U.current),U.current=setTimeout(()=>{Lt(ye)},G)};w.useEffect(()=>{if(!W)return;function ye(zt){(zt.key==="Escape"||zt.key==="Esc")&&Lt(zt)}return document.addEventListener("keydown",ye),()=>{document.removeEventListener("keydown",ye)}},[Lt,W]);const Gu=Qe(E.ref,Hs,Ke,n);!J&&J!==0&&(W=!1);const mi=w.useRef(),Ku=ye=>{const zt=E.props;zt.onMouseMove&&zt.onMouseMove(ye),Li={x:ye.clientX,y:ye.clientY},mi.current&&mi.current.update()},Mr={},gi=typeof J=="string";I?(Mr.title=!W&&gi&&!D?J:null,Mr["aria-describedby"]=W?V:null):(Mr["aria-label"]=gi?J:null,Mr["aria-labelledby"]=W&&!gi?V:null);const Nt=S({},Mr,ve,E.props,{className:Q(ve.className,E.props.className),onTouchStart:co,ref:Gu},L?{onMouseMove:Ku}:{}),jn={};T||(Nt.onTouchStart=pi,Nt.onTouchEnd=hi),D||(Nt.onMouseOver=Sl(Us,Nt.onMouseOver),Nt.onMouseLeave=Sl(fo,Nt.onMouseLeave),st||(jn.onMouseOver=Us,jn.onMouseLeave=fo)),j||(Nt.onFocus=Sl(fi,Nt.onFocus),Nt.onBlur=Sl(uo,Nt.onBlur),st||(jn.onFocus=fi,jn.onBlur=uo));const qu=w.useMemo(()=>{var ye;let zt=[{name:"arrow",enabled:!!bt,options:{element:bt,padding:4}}];return(ye=be.popperOptions)!=null&&ye.modifiers&&(zt=zt.concat(be.popperOptions.modifiers)),S({},be.popperOptions,{modifiers:zt})},[bt,be]),Bn=S({},R,{isRtl:rt,arrow:$,disableInteractive:st,placement:se,PopperComponentProp:Ce,touch:ke.current}),Or=UM(Bn),Ws=(r=(o=_e.popper)!=null?o:_.Popper)!=null?r:WM,De=(i=(s=(l=_e.transition)!=null?l:_.Transition)!=null?s:we)!=null?i:nf,Ze=(a=(u=_e.tooltip)!=null?u:_.Tooltip)!=null?a:GM,po=(c=(d=_e.arrow)!=null?d:_.Arrow)!=null?c:KM,ho=Hi(Ws,S({},be,(f=ce.popper)!=null?f:P.popper,{className:Q(Or.popper,be==null?void 0:be.className,(h=(y=ce.popper)!=null?y:P.popper)==null?void 0:h.className)}),Bn),fn=Hi(De,S({},Ie,(m=ce.transition)!=null?m:P.transition),Bn),px=Hi(Ze,S({},(k=ce.tooltip)!=null?k:P.tooltip,{className:Q(Or.tooltip,(g=(p=ce.tooltip)!=null?p:P.tooltip)==null?void 0:g.className)}),Bn),hx=Hi(po,S({},(v=ce.arrow)!=null?v:P.arrow,{className:Q(Or.arrow,(x=(C=ce.arrow)!=null?C:P.arrow)==null?void 0:x.className)}),Bn);return b.jsxs(w.Fragment,{children:[w.cloneElement(E,Nt),b.jsx(Ws,S({as:Ce??H1,placement:se,anchorEl:L?{getBoundingClientRect:()=>({top:Li.y,left:Li.x,right:Li.x,bottom:Li.y,width:0,height:0})}:ge,popperRef:mi,open:ge?W:!1,id:V,transition:!0},jn,ho,{popperOptions:qu,children:({TransitionProps:ye})=>b.jsx(De,S({timeout:fe.transitions.duration.shorter},ye,fn,{children:b.jsxs(Ze,S({},px,{children:[J,$?b.jsx(po,S({},hx,{ref:me})):null]}))}))}))]})}),Ic=qM;var Hp={},U1={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(U1);var io=U1.exports,Ac={};const YM={configure:e=>{ip.configure(e)}},XM=Object.freeze(Object.defineProperty({__proto__:null,capitalize:K,createChainedFunction:Ld,createSvgIcon:ro,debounce:rp,deprecatedPropType:BS,isMuiElement:Nl,ownerDocument:nt,ownerWindow:kr,requirePropFactory:VS,setRef:xa,unstable_ClassNameGenerator:YM,unstable_useEnhancedEffect:sn,unstable_useId:Ka,unsupportedProp:WS,useControlled:Qo,useEventCallback:xn,useForkRef:Qe,useIsFocusVisible:Ya},Symbol.toStringTag,{value:"Module"})),QM=gx(XM);var Og;function so(){return Og||(Og=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=QM}(Ac)),Ac}var ZM=io;Object.defineProperty(Hp,"__esModule",{value:!0});var W1=Hp.default=void 0,JM=ZM(so()),eO=b,tO=(0,JM.default)((0,eO.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.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"}),"Share");W1=Hp.default=tO;var Up={},nO=io;Object.defineProperty(Up,"__esModule",{value:!0});var G1=Up.default=void 0,rO=nO(so()),oO=b,iO=(0,rO.default)((0,oO.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.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");G1=Up.default=iO;/**
163
- * table-core
164
- *
165
- * Copyright (c) TanStack
166
- *
167
- * This source code is licensed under the MIT license found in the
168
- * LICENSE.md file in the root directory of this source tree.
169
- *
170
- * @license MIT
171
- */function dr(e,t){return typeof e=="function"?e(t):e}function un(e,t){return n=>{t.setState(r=>({...r,[e]:dr(n,r[e])}))}}function _a(e){return e instanceof Function}function sO(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function lO(e,t){const n=[],r=o=>{o.forEach(i=>{n.push(i);const s=t(i);s!=null&&s.length&&r(s)})};return r(e),n}function he(e,t,n){let r=[],o;return()=>{let i;n.key&&n.debug&&(i=Date.now());const s=e();if(!(s.length!==r.length||s.some((u,c)=>r[c]!==u)))return o;r=s;let a;if(n.key&&n.debug&&(a=Date.now()),o=t(...s),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){const u=Math.round((Date.now()-i)*100)/100,c=Math.round((Date.now()-a)*100)/100,d=c/16,f=(h,y)=>{for(h=String(h);h.length<y;)h=" "+h;return h};console.info(`%c⏱ ${f(c,5)} /${f(u,5)} ms`,`
172
- font-size: .6rem;
173
- font-weight: bold;
174
- color: hsl(${Math.max(0,Math.min(120-120*d,120))}deg 100% 31%);`,n==null?void 0:n.key)}return o}}function aO(e,t,n,r){var o,i;const l={...e._getDefaultColumnDef(),...t},a=l.accessorKey;let u=(o=(i=l.id)!=null?i:a?a.replace(".","_"):void 0)!=null?o:typeof l.header=="string"?l.header:void 0,c;if(l.accessorFn?c=l.accessorFn:a&&(a.includes(".")?c=f=>{let h=f;for(const m of a.split(".")){var y;h=(y=h)==null?void 0:y[m]}return h}:c=f=>f[l.accessorKey]),!u)throw new Error;let d={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:he(()=>[!0],()=>{var f;return[d,...(f=d.columns)==null?void 0:f.flatMap(h=>h.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var f;return(f=e.options.debugAll)!=null?f:e.options.debugColumns}}),getLeafColumns:he(()=>[e._getOrderColumnsFn()],f=>{var h;if((h=d.columns)!=null&&h.length){let y=d.columns.flatMap(m=>m.getLeafColumns());return f(y)}return[d]},{key:"column.getLeafColumns",debug:()=>{var f;return(f=e.options.debugAll)!=null?f:e.options.debugColumns}})};return d=e._features.reduce((f,h)=>Object.assign(f,h.createColumn==null?void 0:h.createColumn(d,e)),d),d}function Ig(e,t,n){var r;let i={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],l=a=>{a.subHeaders&&a.subHeaders.length&&a.subHeaders.map(l),s.push(a)};return l(i),s},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(s=>{Object.assign(i,s.createHeader==null?void 0:s.createHeader(i,e))}),i}const uO={createTable:e=>({getHeaderGroups:he(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,s;const l=(i=r==null?void 0:r.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?i:[],a=(s=o==null?void 0:o.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?s:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(o!=null&&o.includes(d.id)));return wl(t,[...l,...u,...a],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterHeaderGroups:he(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),wl(t,n,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftHeaderGroups:he(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(s=>n.find(l=>l.id===s)).filter(Boolean))!=null?o:[];return wl(t,i,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightHeaderGroups:he(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(s=>n.find(l=>l.id===s)).filter(Boolean))!=null?o:[];return wl(t,i,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFooterGroups:he(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFooterGroups:he(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFooterGroups:he(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFooterGroups:he(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFlatHeaders:he(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFlatHeaders:he(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFlatHeaders:he(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFlatHeaders:he(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterLeafHeaders:he(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftLeafHeaders:he(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightLeafHeaders:he(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeafHeaders:he(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,i,s,l,a,u;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(s=(l=n[0])==null?void 0:l.headers)!=null?s:[],...(a=(u=r[0])==null?void 0:u.headers)!=null?a:[]].map(c=>c.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})})};function wl(e,t,n,r){var o,i;let s=0;const l=function(f,h){h===void 0&&(h=1),s=Math.max(s,h),f.filter(y=>y.getIsVisible()).forEach(y=>{var m;(m=y.columns)!=null&&m.length&&l(y.columns,h+1)},0)};l(e);let a=[];const u=(f,h)=>{const y={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},m=[];f.forEach(k=>{const g=[...m].reverse()[0],p=k.column.depth===y.depth;let v,x=!1;if(p&&k.column.parent?v=k.column.parent:(v=k.column,x=!0),g&&(g==null?void 0:g.column)===v)g.subHeaders.push(k);else{const C=Ig(n,v,{id:[r,h,v.id,k==null?void 0:k.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?`${m.filter(R=>R.column===v).length}`:void 0,depth:h,index:m.length});C.subHeaders.push(k),m.push(C)}y.headers.push(k),k.headerGroup=y}),a.push(y),h>0&&u(m,h-1)},c=t.map((f,h)=>Ig(n,f,{depth:s,index:h}));u(c,s-1),a.reverse();const d=f=>f.filter(y=>y.column.getIsVisible()).map(y=>{let m=0,k=0,g=[0];y.subHeaders&&y.subHeaders.length?(g=[],d(y.subHeaders).forEach(v=>{let{colSpan:x,rowSpan:C}=v;m+=x,g.push(C)})):m=1;const p=Math.min(...g);return k=k+p,y.colSpan=m,y.rowSpan=k,{colSpan:m,rowSpan:k}});return d((o=(i=a[0])==null?void 0:i.headers)!=null?o:[]),a}const Cl={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Fc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),cO={getDefaultColumnDef:()=>Cl,getInitialState:e=>({columnSizing:{},columnSizingInfo:Fc(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:un("columnSizing",e),onColumnSizingInfoChange:un("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Cl.minSize,(r=i??e.columnDef.size)!=null?r:Cl.size),(o=e.columnDef.maxSize)!=null?o:Cl.maxSize)},getStart:n=>{const r=n?n==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=r.findIndex(i=>i.id===e.id);if(o>0){const i=r[o-1];return i.getStart(n)+i.getSize()}return 0},resetSize:()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},getCanResize:()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;n+=(i=o.column.getSize())!=null?i:0}};return r(e),n},getStart:()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},getResizeHandler:()=>{const n=t.getColumn(e.column.id),r=n==null?void 0:n.getCanResize();return o=>{if(!n||!r||(o.persist==null||o.persist(),Lc(o)&&o.touches&&o.touches.length>1))return;const i=e.getSize(),s=e?e.getLeafHeaders().map(m=>[m.column.id,m.column.getSize()]):[[n.id,n.getSize()]],l=Lc(o)?Math.round(o.touches[0].clientX):o.clientX,a={},u=(m,k)=>{typeof k=="number"&&(t.setColumnSizingInfo(g=>{var p,v;const x=k-((p=g==null?void 0:g.startOffset)!=null?p:0),C=Math.max(x/((v=g==null?void 0:g.startSize)!=null?v:0),-.999999);return g.columnSizingStart.forEach(R=>{let[$,E]=R;a[$]=Math.round(Math.max(E+E*C,0)*100)/100}),{...g,deltaOffset:x,deltaPercentage:C}}),(t.options.columnResizeMode==="onChange"||m==="end")&&t.setColumnSizing(g=>({...g,...a})))},c=m=>u("move",m),d=m=>{u("end",m),t.setColumnSizingInfo(k=>({...k,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f={moveHandler:m=>c(m.clientX),upHandler:m=>{document.removeEventListener("mousemove",f.moveHandler),document.removeEventListener("mouseup",f.upHandler),d(m.clientX)}},h={moveHandler:m=>(m.cancelable&&(m.preventDefault(),m.stopPropagation()),c(m.touches[0].clientX),!1),upHandler:m=>{var k;document.removeEventListener("touchmove",h.moveHandler),document.removeEventListener("touchend",h.upHandler),m.cancelable&&(m.preventDefault(),m.stopPropagation()),d((k=m.touches[0])==null?void 0:k.clientX)}},y=dO()?{passive:!1}:!1;Lc(o)?(document.addEventListener("touchmove",h.moveHandler,y),document.addEventListener("touchend",h.upHandler,y)):(document.addEventListener("mousemove",f.moveHandler,y),document.addEventListener("mouseup",f.upHandler,y)),t.setColumnSizingInfo(m=>({...m,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}}),createTable:e=>({setColumnSizing:t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},resetHeaderSizeInfo:t=>{var n;e.setColumnSizingInfo(t?Fc():(n=e.initialState.columnSizingInfo)!=null?n:Fc())},getTotalSize:()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},getLeftTotalSize:()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},getCenterTotalSize:()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},getRightTotalSize:()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}})};let kl=null;function dO(){if(typeof kl=="boolean")return kl;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return kl=e,kl}function Lc(e){return e.type==="touchstart"}const fO={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:un("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;return{_autoResetExpanded:()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},setExpanded:r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),toggleAllRowsExpanded:r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},resetExpanded:r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},getCanSomeRowsExpand:()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),getToggleAllRowsExpandedHandler:()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},getIsAllRowsExpanded:()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},getExpandedDepth:()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const s=i.split(".");r=Math.max(r,s.length)}),r},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())}},createRow:(e,t)=>({toggleExpanded:n=>{t.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let s={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(l=>{s[l]=!0}):s=r,n=(o=n)!=null?o:!i,!i&&n)return{...s,[e.id]:!0};if(i&&!n){const{[e.id]:l,...a}=s;return a}return r})},getIsExpanded:()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},getCanExpand:()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},getToggleExpandedHandler:()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}})},K1=(e,t,n)=>{var r,o,i;const s=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(o=r.toString())==null||(i=o.toLowerCase())==null)&&i.includes(s))};K1.autoRemove=e=>Cn(e);const q1=(e,t,n)=>{var r,o;return!!(!((r=e.getValue(t))==null||(o=r.toString())==null)&&o.includes(n))};q1.autoRemove=e=>Cn(e);const Y1=(e,t,n)=>{var r,o;return((r=e.getValue(t))==null||(o=r.toString())==null?void 0:o.toLowerCase())===(n==null?void 0:n.toLowerCase())};Y1.autoRemove=e=>Cn(e);const X1=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};X1.autoRemove=e=>Cn(e)||!(e!=null&&e.length);const Q1=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});Q1.autoRemove=e=>Cn(e)||!(e!=null&&e.length);const Z1=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});Z1.autoRemove=e=>Cn(e)||!(e!=null&&e.length);const J1=(e,t,n)=>e.getValue(t)===n;J1.autoRemove=e=>Cn(e);const ex=(e,t,n)=>e.getValue(t)==n;ex.autoRemove=e=>Cn(e);const Wp=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};Wp.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(r)?-1/0:r,s=n===null||Number.isNaN(o)?1/0:o;if(i>s){const l=i;i=s,s=l}return[i,s]};Wp.autoRemove=e=>Cn(e)||Cn(e[0])&&Cn(e[1]);const Vn={includesString:K1,includesStringSensitive:q1,equalsString:Y1,arrIncludes:X1,arrIncludesAll:Q1,arrIncludesSome:Z1,equals:J1,weakEquals:ex,inNumberRange:Wp};function Cn(e){return e==null||e===""}const pO={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:un("columnFilters",e),onGlobalFilterChange:un("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n,r;const o=(n=e.getCoreRowModel().flatRows[0])==null||(r=n._getAllCellsByColumnId()[t.id])==null?void 0:r.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Vn.includesString:typeof r=="number"?Vn.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Vn.equals:Array.isArray(r)?Vn.arrIncludes:Vn.weakEquals},getFilterFn:()=>{var n,r;return _a(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Vn[e.columnDef.filterFn]},getCanFilter:()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},getCanGlobalFilter:()=>{var n,r,o,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var n,r;return(n=t.getState().columnFilters)==null||(r=n.find(o=>o.id===e.id))==null?void 0:r.value},getFilterIndex:()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},setFilterValue:n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),i=r==null?void 0:r.find(c=>c.id===e.id),s=dr(n,i?i.value:void 0);if(Ag(o,s,e)){var l;return(l=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?l:[]}const a={id:e.id,value:s};if(i){var u;return(u=r==null?void 0:r.map(c=>c.id===e.id?a:c))!=null?u:[]}return r!=null&&r.length?[...r,a]:[a]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>Vn.includesString,getGlobalFilterFn:()=>{var t,n;const{globalFilterFn:r}=e.options;return _a(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Vn[r]},setColumnFilters:t=>{const n=e.getAllLeafColumns(),r=o=>{var i;return(i=dr(t,o))==null?void 0:i.filter(s=>{const l=n.find(a=>a.id===s.id);if(l){const a=l.getFilterFn();if(Ag(a,s.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},setGlobalFilter:t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})};function Ag(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const hO=(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),mO=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},gO=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},vO=(e,t,n)=>{let r,o;return n.forEach(i=>{const s=i.getValue(e);s!=null&&(r===void 0?s>=s&&(r=o=s):(r>s&&(r=s),o<s&&(o=s)))}),[r,o]},yO=(e,t)=>{let n=0,r=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},xO=(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!sO(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,s)=>i-s);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},bO=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),SO=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,wO=(e,t)=>t.length,Nc={sum:hO,min:mO,max:gO,extent:vO,mean:yO,median:xO,unique:bO,uniqueCount:SO,count:wO},CO={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:un("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},getCanGroup:()=>{var n,r,o,i;return(n=(r=(o=(i=e.columnDef.enableGrouping)!=null?i:!0)!=null?o:t.options.enableGrouping)!=null?r:!0)!=null?n:!!e.accessorFn},getIsGrouped:()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},getGroupedIndex:()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},getToggleGroupingHandler:()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return Nc.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Nc.extent},getAggregationFn:()=>{var n,r;if(!e)throw new Error;return _a(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:Nc[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:(e,t)=>({getIsGrouped:()=>!!e.groupingColumnId,getGroupingValue:n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},_groupingValuesCache:{}}),createCell:(e,t,n,r)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===n.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}})};function kO(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(i=>!t.includes(i.id));return n==="remove"?r:[...t.map(i=>e.find(s=>s.id===i)).filter(Boolean),...r]}const RO={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:un("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},_getOrderColumnsFn:he(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const s=[...t],l=[...o];for(;l.length&&s.length;){const a=s.shift(),u=l.findIndex(c=>c.id===a);u>-1&&i.push(l.splice(u,1)[0])}i=[...i,...l]}return kO(i,n,r)},{key:!1})})},rf=0,of=10,zc=()=>({pageIndex:rf,pageSize:of}),$O={getInitialState:e=>({...e,pagination:{...zc(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:un("pagination",e)}),createTable:e=>{let t=!1,n=!1;return{_autoResetPageIndex:()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},setPagination:r=>{const o=i=>dr(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},resetPagination:r=>{var o;e.setPagination(r?zc():(o=e.initialState.pagination)!=null?o:zc())},setPageIndex:r=>{e.setPagination(o=>{let i=dr(r,o.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,s)),{...o,pageIndex:i}})},resetPageIndex:r=>{var o,i,s;e.setPageIndex(r?rf:(o=(i=e.initialState)==null||(s=i.pagination)==null?void 0:s.pageIndex)!=null?o:rf)},resetPageSize:r=>{var o,i,s;e.setPageSize(r?of:(o=(i=e.initialState)==null||(s=i.pagination)==null?void 0:s.pageSize)!=null?o:of)},setPageSize:r=>{e.setPagination(o=>{const i=Math.max(1,dr(r,o.pageSize)),s=o.pageSize*o.pageIndex,l=Math.floor(s/i);return{...o,pageIndex:l,pageSize:i}})},setPageCount:r=>e.setPagination(o=>{var i;let s=dr(r,(i=e.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...o,pageCount:s}}),getPageOptions:he(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,s)=>s)),o},{key:!1,debug:()=>{var r;return(r=e.options.debugAll)!=null?r:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},previousPage:()=>e.setPageIndex(r=>r-1),nextPage:()=>e.setPageIndex(r=>r+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},Dc=()=>({left:[],right:[]}),EO={getInitialState:e=>({columnPinning:Dc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:un("columnPinning",e)}),createColumn:(e,t)=>({pin:n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,s;if(n==="right"){var l,a;return{left:((l=o==null?void 0:o.left)!=null?l:[]).filter(d=>!(r!=null&&r.includes(d))),right:[...((a=o==null?void 0:o.right)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d))),...r]}}if(n==="left"){var u,c;return{left:[...((u=o==null?void 0:o.left)!=null?u:[]).filter(d=>!(r!=null&&r.includes(d))),...r],right:((c=o==null?void 0:o.right)!=null?c:[]).filter(d=>!(r!=null&&r.includes(d)))}}return{left:((i=o==null?void 0:o.left)!=null?i:[]).filter(d=>!(r!=null&&r.includes(d))),right:((s=o==null?void 0:o.right)!=null?s:[]).filter(d=>!(r!=null&&r.includes(d)))}})},getCanPin:()=>e.getLeafColumns().some(r=>{var o,i;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=t.options.enablePinning)!=null?i:!0)}),getIsPinned:()=>{const n=e.getLeafColumns().map(l=>l.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(l=>r==null?void 0:r.includes(l)),s=n.some(l=>o==null?void 0:o.includes(l));return i?"left":s?"right":!1},getPinnedIndex:()=>{var n,r,o;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(o=r[i])==null?void 0:o.indexOf(e.id))!=null?n:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:he(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(s=>!i.includes(s.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),getLeftVisibleCells:he(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),{key:"row.getLeftVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),getRightVisibleCells:he(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),{key:"row.getRightVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var n,r;return e.setColumnPinning(t?Dc():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:Dc())},getIsSomeColumnsPinned:t=>{var n;const r=e.getState().columnPinning;if(!t){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},getLeftLeafColumns:he(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getRightLeafColumns:he(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getCenterLeafColumns:he(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(i=>!o.includes(i.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}})})},PO={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:un("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},toggleAllRowsSelected:t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},toggleAllPageRowsSelected:t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(i=>{sf(o,i.id,r,e)}),o}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:he(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?jc(e,n):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getFilteredSelectedRowModel:he(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?jc(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getGroupedSelectedRowModel:he(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?jc(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},getIsSomeRowsSelected:()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:n=>{const r=e.getIsSelected();t.setRowSelection(o=>{if(n=typeof n<"u"?n:!r,r===n)return o;const i={...o};return sf(i,e.id,n,t),i})},getIsSelected:()=>{const{rowSelection:n}=t.getState();return Gp(e,n)},getIsSomeSelected:()=>{const{rowSelection:n}=t.getState();return Fg(e,n)==="some"},getIsAllSubRowsSelected:()=>{const{rowSelection:n}=t.getState();return Fg(e,n)==="all"},getCanSelect:()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},getCanSelectSubRows:()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},getCanMultiSelect:()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},getToggleSelectedHandler:()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}})},sf=(e,t,n,r)=>{var o;const i=r.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),i.getCanSelect()&&(e[t]=!0)):delete e[t],(o=i.subRows)!=null&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach(s=>sf(e,s.id,n,r))};function jc(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(s,l){return s.map(a=>{var u;const c=Gp(a,n);if(c&&(r.push(a),o[a.id]=a),(u=a.subRows)!=null&&u.length&&(a={...a,subRows:i(a.subRows)}),c)return a}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function Gp(e,t){var n;return(n=t[e.id])!=null?n:!1}function Fg(e,t,n){if(e.subRows&&e.subRows.length){let r=!0,o=!1;return e.subRows.forEach(i=>{o&&!r||(Gp(i,t)?o=!0:r=!1)}),r?"all":o?"some":!1}return!1}const lf=/([0-9]+)/gm,_O=(e,t,n)=>tx(Rr(e.getValue(n)).toLowerCase(),Rr(t.getValue(n)).toLowerCase()),TO=(e,t,n)=>tx(Rr(e.getValue(n)),Rr(t.getValue(n))),MO=(e,t,n)=>Kp(Rr(e.getValue(n)).toLowerCase(),Rr(t.getValue(n)).toLowerCase()),OO=(e,t,n)=>Kp(Rr(e.getValue(n)),Rr(t.getValue(n))),IO=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},AO=(e,t,n)=>Kp(e.getValue(n),t.getValue(n));function Kp(e,t){return e===t?0:e>t?1:-1}function Rr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function tx(e,t){const n=e.split(lf).filter(Boolean),r=t.split(lf).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),s=parseInt(o,10),l=parseInt(i,10),a=[s,l].sort();if(isNaN(a[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(a[1]))return isNaN(s)?-1:1;if(s>l)return 1;if(l>s)return-1}return n.length-r.length}const Ni={alphanumeric:_O,alphanumericCaseSensitive:TO,text:MO,textCaseSensitive:OO,datetime:IO,basic:AO},FO={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:un("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const i=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return Ni.datetime;if(typeof i=="string"&&(r=!0,i.split(lf).length>1))return Ni.alphanumeric}return r?Ni.text:Ni.basic},getAutoSortDir:()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},getSortingFn:()=>{var n,r;if(!e)throw new Error;return _a(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Ni[e.columnDef.sortingFn]},toggleSorting:(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(s=>{const l=s==null?void 0:s.find(h=>h.id===e.id),a=s==null?void 0:s.findIndex(h=>h.id===e.id);let u=[],c,d=i?n:o==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&r?l?c="toggle":c="add":s!=null&&s.length&&a!==s.length-1?c="replace":l?c="toggle":c="replace",c==="toggle"&&(i||o||(c="remove")),c==="add"){var f;u=[...s,{id:e.id,desc:d}],u.splice(0,u.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=s.map(h=>h.id===e.id?{...h,desc:d}:h):c==="remove"?u=s.filter(h=>h.id!==e.id):u=[{id:e.id,desc:d}];return u})},getFirstSortDir:()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},getNextSortingOrder:n=>{var r,o;const i=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==i&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:s==="desc"?"asc":"desc":i},getCanSort:()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},getCanMultiSort:()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},getIsSorted:()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},getSortIndex:()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},clearSorting:()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},getToggleSortingHandler:()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}}),createTable:e=>({setSorting:t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),resetSorting:t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},LO={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:un("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},getIsVisible:()=>{var n,r;return(n=(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},getCanHide:()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},getToggleVisibilityHandler:()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:he(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),getVisibleCells:he(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})}),createTable:e=>{const t=(n,r)=>he(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),{key:n,debug:()=>{var o;return(o=e.options.debugAll)!=null?o:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),resetColumnVisibility:n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},toggleAllColumnsVisible:n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}}},Lg=[uO,LO,RO,EO,pO,FO,CO,fO,$O,PO,cO];function NO(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:Lg};const r=n._features.reduce((c,d)=>Object.assign(c,d.getDefaultOptions==null?void 0:d.getDefaultOptions(n)),{}),o=c=>n.options.mergeOptions?n.options.mergeOptions(r,c):{...r,...c};let s={...{},...(t=e.initialState)!=null?t:{}};n._features.forEach(c=>{var d;s=(d=c.getInitialState==null?void 0:c.getInitialState(s))!=null?d:s});const l=[];let a=!1;const u={_features:Lg,options:{...r,...e},initialState:s,_queue:c=>{l.push(c),a||(a=!0,Promise.resolve().then(()=>{for(;l.length;)l.shift()();a=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{n.setState(n.initialState)},setOptions:c=>{const d=dr(c,n.options);n.options=o(d)},getState:()=>n.options.state,setState:c=>{n.options.onStateChange==null||n.options.onStateChange(c)},_getRowId:(c,d,f)=>{var h;return(h=n.options.getRowId==null?void 0:n.options.getRowId(c,d,f))!=null?h:`${f?[f.id,d].join("."):d}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:c=>{const d=n.getRowModel().rowsById[c];if(!d)throw new Error;return d},_getDefaultColumnDef:he(()=>[n.options.defaultColumn],c=>{var d;return c=(d=c)!=null?d:{},{header:f=>{const h=f.header.column.columnDef;return h.accessorKey?h.accessorKey:h.accessorFn?h.id:null},cell:f=>{var h,y;return(h=(y=f.renderValue())==null||y.toString==null?void 0:y.toString())!=null?h:null},...n._features.reduce((f,h)=>Object.assign(f,h.getDefaultColumnDef==null?void 0:h.getDefaultColumnDef()),{}),...c}},{debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:he(()=>[n._getColumnDefs()],c=>{const d=function(f,h,y){return y===void 0&&(y=0),f.map(m=>{const k=aO(n,m,y,h),g=m;return k.columns=g.columns?d(g.columns,k,y+1):[],k})};return d(c)},{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getAllFlatColumns:he(()=>[n.getAllColumns()],c=>c.flatMap(d=>d.getFlatColumns()),{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),_getAllFlatColumnsById:he(()=>[n.getAllFlatColumns()],c=>c.reduce((d,f)=>(d[f.id]=f,d),{}),{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getAllLeafColumns:he(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(c,d)=>{let f=c.flatMap(h=>h.getLeafColumns());return d(f)},{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getColumn:c=>n._getAllFlatColumnsById()[c]};return Object.assign(n,u),n._features.forEach(c=>Object.assign(n,c.createTable==null?void 0:c.createTable(n))),n}function zO(e,t,n,r){const o=()=>{var s;return(s=i.getValue())!=null?s:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:he(()=>[e,n,t,i],(s,l,a,u)=>({table:s,column:l,row:a,cell:u,getValue:u.getValue,renderValue:u.renderValue}),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach(s=>{Object.assign(i,s.createCell==null?void 0:s.createCell(i,n,t,e))},{}),i}const DO=(e,t,n,r,o,i,s)=>{let l={id:t,index:r,original:n,depth:o,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:a=>{if(l._valuesCache.hasOwnProperty(a))return l._valuesCache[a];const u=e.getColumn(a);if(u!=null&&u.accessorFn)return l._valuesCache[a]=u.accessorFn(l.original,r),l._valuesCache[a]},getUniqueValues:a=>{if(l._uniqueValuesCache.hasOwnProperty(a))return l._uniqueValuesCache[a];const u=e.getColumn(a);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(l._uniqueValuesCache[a]=u.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[a]):(l._uniqueValuesCache[a]=[l.getValue(a)],l._uniqueValuesCache[a])},renderValue:a=>{var u;return(u=l.getValue(a))!=null?u:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>lO(l.subRows,a=>a.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId):void 0,getParentRows:()=>{let a=[],u=l;for(;;){const c=u.getParentRow();if(!c)break;a.push(c),u=c}return a.reverse()},getAllCells:he(()=>[e.getAllLeafColumns()],a=>a.map(u=>zO(e,l,u,u.id)),{key:!1,debug:()=>{var a;return(a=e.options.debugAll)!=null?a:e.options.debugRows}}),_getAllCellsByColumnId:he(()=>[l.getAllCells()],a=>a.reduce((u,c)=>(u[c.column.id]=c,u),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var a;return(a=e.options.debugAll)!=null?a:e.options.debugRows}})};for(let a=0;a<e._features.length;a++){const u=e._features[a];Object.assign(l,u==null||u.createRow==null?void 0:u.createRow(l,e))}return l};function jO(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function BO(){return e=>he(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,s){i===void 0&&(i=0);const l=[];for(let u=0;u<o.length;u++){const c=DO(e,e._getRowId(o[u],u,s),o[u],u,i,void 0,s==null?void 0:s.id);if(n.flatRows.push(c),n.rowsById[c.id]=c,l.push(c),e.options.getSubRows){var a;c.originalSubRows=e.options.getSubRows(o[u],u),(a=c.originalSubRows)!=null&&a.length&&(c.subRows=r(c.originalSubRows,i+1,c))}}return l};return n.rows=r(t),n},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}/**
175
- * react-table
176
- *
177
- * Copyright (c) TanStack
178
- *
179
- * This source code is licensed under the MIT license found in the
180
- * LICENSE.md file in the root directory of this source tree.
181
- *
182
- * @license MIT
183
- */function Ng(e,t){return e?VO(e)?w.createElement(e,t):e:null}function VO(e){return HO(e)||typeof e=="function"||UO(e)}function HO(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function UO(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function WO(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=w.useState(()=>({current:NO(t)})),[r,o]=w.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:s=>{o(s),e.onStateChange==null||e.onStateChange(s)}})),n.current}const zg=e=>{let t;const n=new Set,r=(a,u)=>{const c=typeof a=="function"?a(t):a;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},o=()=>t,l={setState:r,getState:o,subscribe:a=>(n.add(a),()=>n.delete(a)),destroy:()=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,l),l},GO=e=>e?zg(e):zg;var nx={exports:{}},rx={},ox={exports:{}},ix={};/**
184
- * @license React
185
- * use-sync-external-store-shim.production.min.js
186
- *
187
- * Copyright (c) Facebook, Inc. and its affiliates.
188
- *
189
- * This source code is licensed under the MIT license found in the
190
- * LICENSE file in the root directory of this source tree.
191
- */var oi=w;function KO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qO=typeof Object.is=="function"?Object.is:KO,YO=oi.useState,XO=oi.useEffect,QO=oi.useLayoutEffect,ZO=oi.useDebugValue;function JO(e,t){var n=t(),r=YO({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return QO(function(){o.value=n,o.getSnapshot=t,Bc(o)&&i({inst:o})},[e,n,t]),XO(function(){return Bc(o)&&i({inst:o}),e(function(){Bc(o)&&i({inst:o})})},[e]),ZO(n),n}function Bc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qO(e,n)}catch{return!0}}function eI(e,t){return t()}var tI=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?eI:JO;ix.useSyncExternalStore=oi.useSyncExternalStore!==void 0?oi.useSyncExternalStore:tI;ox.exports=ix;var nI=ox.exports;/**
192
- * @license React
193
- * use-sync-external-store-shim/with-selector.production.min.js
194
- *
195
- * Copyright (c) Facebook, Inc. and its affiliates.
196
- *
197
- * This source code is licensed under the MIT license found in the
198
- * LICENSE file in the root directory of this source tree.
199
- */var Hu=w,rI=nI;function oI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var iI=typeof Object.is=="function"?Object.is:oI,sI=rI.useSyncExternalStore,lI=Hu.useRef,aI=Hu.useEffect,uI=Hu.useMemo,cI=Hu.useDebugValue;rx.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=lI(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=uI(function(){function a(h){if(!u){if(u=!0,c=h,h=r(h),o!==void 0&&s.hasValue){var y=s.value;if(o(y,h))return d=y}return d=h}if(y=d,iI(c,h))return y;var m=r(h);return o!==void 0&&o(y,m)?y:(c=h,d=m)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return a(t())},f===null?void 0:function(){return a(f())}]},[t,n,r,o]);var l=sI(e,i[0],i[1]);return aI(function(){s.hasValue=!0,s.value=l},[l]),cI(l),l};nx.exports=rx;var dI=nx.exports;const fI=af(dI),{useSyncExternalStoreWithSelector:pI}=fI;function hI(e,t=e.getState,n){const r=pI(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return w.useDebugValue(r),r}const Dg=e=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?GO(e):e,n=(r,o)=>hI(t,r,o);return Object.assign(n,t),n},mI=e=>e?Dg(e):Dg;var gI=e=>(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),mI(e));const Uu=gI(e=>({table:null,setTable:t=>e(()=>({table:t})),config:null,setConfig:t=>e(()=>({config:t}))}));function vI(e){return ue("MuiDialog",e)}const yI=ae("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Vc=yI,xI=w.createContext({}),sx=xI,bI=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],SI=H(A1,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),wI=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${K(n)}`],paper:["paper",`paperScroll${K(n)}`,`paperWidth${K(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return de(s,vI,t)},CI=H(F1,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),kI=H("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${K(n.scroll)}`]]}})(({ownerState:e})=>S({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),RI=H(Vu,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${K(n.scroll)}`],t[`paperWidth${K(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>S({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${Vc.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Vc.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Vc.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),$I=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiDialog"}),o=ui(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,BackdropComponent:a,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:f=!1,fullScreen:h=!1,fullWidth:y=!1,maxWidth:m="sm",onBackdropClick:k,onClose:g,open:p,PaperComponent:v=Vu,PaperProps:x={},scroll:C="paper",TransitionComponent:R=I1,transitionDuration:$=i,TransitionProps:E}=r,_=q(r,bI),P=S({},r,{disableEscapeKeyDown:f,fullScreen:h,fullWidth:y,maxWidth:m,scroll:C}),I=wI(P),j=w.useRef(),D=N=>{j.current=N.target===N.currentTarget},A=N=>{j.current&&(j.current=null,k&&k(N),g&&g(N,"backdropClick"))},T=Ka(l),O=w.useMemo(()=>({titleId:T}),[T]);return b.jsx(CI,S({className:Q(I.root,d),closeAfterTransition:!0,components:{Backdrop:SI},componentsProps:{backdrop:S({transitionDuration:$,as:a},u)},disableEscapeKeyDown:f,onClose:g,open:p,ref:n,onClick:A,ownerState:P},_,{children:b.jsx(R,S({appear:!0,in:p,timeout:$,role:"presentation"},E,{children:b.jsx(kI,{className:Q(I.container),onMouseDown:D,ownerState:P,children:b.jsx(RI,S({as:v,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":T},x,{className:Q(I.paper,x.className),ownerState:P,children:b.jsx(sx.Provider,{value:O,children:c})}))})}))}))}),qp=$I;function EI(e){return ue("MuiDialogActions",e)}ae("MuiDialogActions",["root","spacing"]);const PI=["className","disableSpacing"],_I=e=>{const{classes:t,disableSpacing:n}=e;return de({root:["root",!n&&"spacing"]},EI,t)},TI=H("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>S({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),MI=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,s=q(r,PI),l=S({},r,{disableSpacing:i}),a=_I(l);return b.jsx(TI,S({className:Q(a.root,o),ownerState:l,ref:n},s))}),Yp=MI;function OI(e){return ue("MuiDialogContent",e)}ae("MuiDialogContent",["root","dividers"]);function II(e){return ue("MuiDialogTitle",e)}const AI=ae("MuiDialogTitle",["root"]),FI=AI,LI=["className","dividers"],NI=e=>{const{classes:t,dividers:n}=e;return de({root:["root",n&&"dividers"]},OI,t)},zI=H("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>S({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${FI.root} + &`]:{paddingTop:0}})),DI=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,s=q(r,LI),l=S({},r,{dividers:i}),a=NI(l);return b.jsx(zI,S({className:Q(a.root,o),ownerState:l,ref:n},s))}),Xp=DI,jI=["className","id"],BI=e=>{const{classes:t}=e;return de({root:["root"]},II,t)},VI=H(Pt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),HI=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,s=q(r,jI),l=r,a=BI(l),{titleId:u=i}=w.useContext(sx);return b.jsx(VI,S({component:"h2",className:Q(a.root,o),ownerState:l,ref:n,variant:"h6",id:i??u},s))}),Qp=HI;function UI(e){return ue("MuiIconButton",e)}const WI=ae("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),GI=WI,KI=["edge","children","className","color","disabled","disableFocusRipple","size"],qI=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${K(r)}`,o&&`edge${K(o)}`,`size${K(i)}`]};return de(s,UI,t)},YI=H($u,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${K(n.color)}`],n.edge&&t[`edge${K(n.edge)}`],t[`size${K(n.size)}`]]}})(({theme:e,ownerState:t})=>S({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Xe(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return S({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&S({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":S({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xe(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${GI.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),XI=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:l="default",disabled:a=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=q(r,KI),f=S({},r,{edge:o,color:l,disabled:a,disableFocusRipple:u,size:c}),h=qI(f);return b.jsx(YI,S({className:Q(h.root,s),centerRipple:!0,focusRipple:!u,disabled:a,ref:n,ownerState:f},d,{children:i}))}),Zp=XI;var Jp={},QI=io;Object.defineProperty(Jp,"__esModule",{value:!0});var lx=Jp.default=void 0,ZI=QI(so()),JI=b,eA=(0,ZI.default)((0,JI.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 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-2zm0 16H8V7h11v14z"}),"ContentCopy");lx=Jp.default=eA;var eh={},tA=io;Object.defineProperty(eh,"__esModule",{value:!0});var th=eh.default=void 0,nA=tA(so()),rA=b,oA=(0,nA.default)((0,rA.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");th=eh.default=oA;const iA=w.createContext(),ax=iA;function sA(e){return ue("MuiTable",e)}ae("MuiTable",["root","stickyHeader"]);const lA=["className","component","padding","size","stickyHeader"],aA=e=>{const{classes:t,stickyHeader:n}=e;return de({root:["root",n&&"stickyHeader"]},sA,t)},uA=H("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>S({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":S({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),jg="table",cA=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiTable"}),{className:o,component:i=jg,padding:s="normal",size:l="medium",stickyHeader:a=!1}=r,u=q(r,lA),c=S({},r,{component:i,padding:s,size:l,stickyHeader:a}),d=aA(c),f=w.useMemo(()=>({padding:s,size:l,stickyHeader:a}),[s,l,a]);return b.jsx(ax.Provider,{value:f,children:b.jsx(uA,S({as:i,role:i===jg?null:"table",ref:n,className:Q(d.root,o),ownerState:c},u))})}),dA=cA,fA=w.createContext(),Wu=fA;function pA(e){return ue("MuiTableBody",e)}ae("MuiTableBody",["root"]);const hA=["className","component"],mA=e=>{const{classes:t}=e;return de({root:["root"]},pA,t)},gA=H("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),vA={variant:"body"},Bg="tbody",yA=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiTableBody"}),{className:o,component:i=Bg}=r,s=q(r,hA),l=S({},r,{component:i}),a=mA(l);return b.jsx(Wu.Provider,{value:vA,children:b.jsx(gA,S({className:Q(a.root,o),as:i,ref:n,role:i===Bg?null:"rowgroup",ownerState:l},s))})}),xA=yA;function bA(e){return ue("MuiTableCell",e)}const SA=ae("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),wA=SA,CA=["align","className","component","padding","scope","size","sortDirection","variant"],kA=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,l={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${K(r)}`,o!=="normal"&&`padding${K(o)}`,`size${K(i)}`]};return de(l,bA,t)},RA=H("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${K(n.size)}`],n.padding!=="normal"&&t[`padding${K(n.padding)}`],n.align!=="inherit"&&t[`align${K(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>S({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
200
- ${e.palette.mode==="light"?wp(Xe(e.palette.divider,1),.88):Sp(Xe(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${wA.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),$A=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:l,scope:a,size:u,sortDirection:c,variant:d}=r,f=q(r,CA),h=w.useContext(ax),y=w.useContext(Wu),m=y&&y.variant==="head";let k;s?k=s:k=m?"th":"td";let g=a;k==="td"?g=void 0:!g&&m&&(g="col");const p=d||y&&y.variant,v=S({},r,{align:o,component:k,padding:l||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:p==="head"&&h&&h.stickyHeader,variant:p}),x=kA(v);let C=null;return c&&(C=c==="asc"?"ascending":"descending"),b.jsx(RA,S({as:k,ref:n,className:Q(x.root,i),"aria-sort":C,scope:g,ownerState:v},f))}),En=$A;function EA(e){return ue("MuiTableContainer",e)}ae("MuiTableContainer",["root"]);const PA=["className","component"],_A=e=>{const{classes:t}=e;return de({root:["root"]},EA,t)},TA=H("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),MA=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiTableContainer"}),{className:o,component:i="div"}=r,s=q(r,PA),l=S({},r,{component:i}),a=_A(l);return b.jsx(TA,S({ref:n,as:i,className:Q(a.root,o),ownerState:l},s))}),OA=MA;function IA(e){return ue("MuiTableHead",e)}ae("MuiTableHead",["root"]);const AA=["className","component"],FA=e=>{const{classes:t}=e;return de({root:["root"]},IA,t)},LA=H("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),NA={variant:"head"},Vg="thead",zA=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiTableHead"}),{className:o,component:i=Vg}=r,s=q(r,AA),l=S({},r,{component:i}),a=FA(l);return b.jsx(Wu.Provider,{value:NA,children:b.jsx(LA,S({as:i,className:Q(a.root,o),ref:n,role:i===Vg?null:"rowgroup",ownerState:l},s))})}),DA=zA;function jA(e){return ue("MuiTableRow",e)}const BA=ae("MuiTableRow",["root","selected","hover","head","footer"]),Hg=BA,VA=["className","component","hover","selected"],HA=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return de({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},jA,t)},UA=H("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Hg.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Hg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xe(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Xe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),Ug="tr",WA=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiTableRow"}),{className:o,component:i=Ug,hover:s=!1,selected:l=!1}=r,a=q(r,VA),u=w.useContext(Wu),c=S({},r,{component:i,hover:s,selected:l,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),d=HA(c);return b.jsx(UA,S({as:i,ref:n,className:Q(d.root,o),role:i===Ug?null:"row",ownerState:c},a))}),Wg=WA;function GA({gradingResults:e}){return e?b.jsxs(jt,{mt:2,children:[b.jsx(Pt,{variant:"subtitle1",children:"Assertions"}),b.jsx(OA,{children:b.jsxs(dA,{children:[b.jsx(DA,{children:b.jsxs(Wg,{children:[b.jsx(En,{style:{fontWeight:"bold"},children:"Pass"}),b.jsx(En,{style:{fontWeight:"bold"},children:"Score"}),b.jsx(En,{style:{fontWeight:"bold"},children:"Type"}),b.jsx(En,{style:{fontWeight:"bold"},children:"Value"}),b.jsx(En,{style:{fontWeight:"bold"},children:"Reason"})]})}),b.jsx(xA,{children:e.map((t,n)=>{var r,o;return b.jsxs(Wg,{children:[b.jsx(En,{children:t.pass?"✅":"❌"}),b.jsx(En,{children:t.score}),b.jsx(En,{children:((r=t.assertion)==null?void 0:r.type)||""}),b.jsx(En,{children:(o=t.assertion)!=null&&o.value?String(t.assertion.value):"-"}),b.jsx(En,{children:t.reason})]},n)})})]})})]}):null}function ux({open:e,onClose:t,prompt:n,output:r,gradingResults:o}){const[i,s]=w.useState(!1);w.useEffect(()=>{s(!1)},[n]);const l=async a=>{await navigator.clipboard.writeText(a),s(!0)};return b.jsxs(qp,{open:e,onClose:t,fullWidth:!0,maxWidth:"lg",children:[b.jsx(Qp,{children:"Details"}),b.jsxs(Xp,{children:[b.jsxs(jt,{mb:2,children:[b.jsx(Pt,{variant:"subtitle1",style:{marginBottom:"1rem"},children:"Prompt"}),b.jsx(Xd,{readOnly:!0,value:n,style:{width:"100%",padding:"0.75rem"},maxRows:20}),b.jsx(Zp,{onClick:()=>l(n),style:{position:"absolute",right:"10px",top:"10px"},children:i?b.jsx(th,{}):b.jsx(lx,{})})]}),r&&b.jsxs(jt,{my:2,children:[b.jsx(Pt,{variant:"subtitle1",style:{marginBottom:"1rem",marginTop:"1rem"},children:"Output"}),b.jsx(Xd,{readOnly:!0,maxRows:20,value:r,style:{width:"100%",padding:"0.75rem"}})]}),b.jsx(GA,{gradingResults:o})]}),b.jsx(Yp,{children:b.jsx(Ts,{onClick:t,children:"Close"})})]})}function KA(e){if(typeof e=="string"){const t=e.startsWith("[PASS]");let n=e;return(e.startsWith("[PASS]")||e.startsWith("[FAIL]"))&&(n=n.slice(6)),{text:n,pass:t,score:t?1:0}}return e}function Gg(e){return e===0||e===1?"":`(${e.toFixed(2)})`}function nh({text:e,maxLength:t}){const[n,r]=w.useState(!0);let o=typeof e=="string"?e:JSON.stringify(e);o=o.replace(/\n/g,"<br>");const i=()=>{r(!n)};return(()=>o.length<=t?b.jsx("span",{dangerouslySetInnerHTML:{__html:o}}):n?b.jsxs("span",{style:{cursor:"pointer"},onClick:i,children:[b.jsx("span",{dangerouslySetInnerHTML:{__html:o.substring(0,t)}})," ..."]}):b.jsx("span",{style:{cursor:"pointer"},onClick:i,children:b.jsx("span",{dangerouslySetInnerHTML:{__html:o}})}))()}function qA({output:e,maxTextLength:t,rowIndex:n,promptIndex:r,onRating:o}){var f,h,y;const[i,s]=w.useState(!1),l=()=>{s(!0)},a=()=>{s(!1)};let u=typeof e.text=="string"?e.text:JSON.stringify(e.text),c=[];!e.pass&&u.includes("---")&&(c=u.split("---"),u=c.slice(1).join("---"));const d=m=>{o(n,r,m)};return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"cell",children:[e.pass&&b.jsxs("div",{className:"status pass",children:["PASS ",b.jsx("span",{className:"score",children:Gg(e.score)})]}),!e.pass&&b.jsxs("div",{className:"status fail",children:["[FAIL",b.jsx("span",{className:"score",children:Gg(e.score)}),"] ",c[0]]})," ",b.jsx(nh,{text:u,maxLength:t})]}),b.jsx("div",{className:"cell-detail",children:(f=e.tokenUsage)!=null&&f.cached?b.jsxs("span",{children:[e.tokenUsage.cached," tokens (cached)"]}):b.jsxs(b.Fragment,{children:[((h=e.tokenUsage)==null?void 0:h.total)&&b.jsxs("span",{children:[e.tokenUsage.total," tokens"]})," |"," ",b.jsxs("span",{children:[e.latencyMs," ms"]})]})}),b.jsxs("div",{className:"cell-actions",children:[e.prompt&&b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"action",onClick:l,children:"🔎"}),b.jsx(ux,{open:i,onClose:a,prompt:e.prompt,gradingResults:(y=e.gradingResult)==null?void 0:y.componentResults,output:u})]}),b.jsx("span",{className:"action",onClick:()=>d(!0),children:"👍"}),b.jsx("span",{className:"action",onClick:()=>d(!1),children:"👎"})]})]})}function Kg({text:e,maxLength:t,smallText:n,expandedText:r}){const[o,i]=w.useState(!1),s=()=>{i(!0)},l=()=>{i(!1)};return b.jsxs("div",{children:[b.jsx(nh,{text:e,maxLength:t}),r&&b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"action",onClick:s,children:"🔎"}),b.jsx(ux,{open:o,onClose:l,prompt:r})]}),b.jsx("div",{className:"smalltext",children:n})]})}function YA({maxTextLength:e,columnVisibility:t,wordBreak:n,filterMode:r,failureFilter:o,onFailureFilterToggle:i}){const{table:s,setTable:l}=Uu();a1(s,"Table should be defined");const{head:a,body:u}=s,c=a.prompts.map((x,C)=>u.reduce((R,$)=>R+($.outputs[C].pass?1:0),0)),d=a.prompts.map((x,C)=>u.reduce((R,$)=>{var E,_;return R+(((_=(E=$.outputs[C].gradingResult)==null?void 0:E.componentResults)==null?void 0:_.length)||0)},0)),f=a.prompts.map((x,C)=>u.reduce((R,$)=>{var _;const E=(_=$.outputs[C].gradingResult)==null?void 0:_.componentResults;return R+(E?E.filter(P=>P.pass).length:0)},0)),h=(x,C,R)=>{const $=[...u],E={...$[x]},_=[...E.outputs];_[C].pass=R,_[C].score=R?1:0,E.outputs=_,$[x]=E,l({head:a,body:$})},y=c.reduce((x,C,R,$)=>C>$[x]?R:x,0),m=c[y],k=jO(),g=[k.group({id:"vars",header:()=>b.jsx("span",{children:"Variables"}),columns:a.vars.map((x,C)=>k.accessor(R=>R.vars[C],{id:`Variable ${C+1}`,header:()=>b.jsx(Kg,{smallText:`Variable ${C+1}`,text:x,maxLength:e}),cell:R=>b.jsx(nh,{text:R.getValue(),maxLength:e}),size:50}))}),k.group({id:"prompts",header:()=>b.jsx("span",{children:"Outputs"}),columns:a.prompts.map((x,C)=>k.accessor(R=>KA(R.outputs[C]),{id:`Prompt ${C+1}`,header:()=>{const R=(c[C]/u.length*100).toFixed(2),$=c[C]===m&&m!==0,E=`Prompt ${C+1}`,_=o[E]||!1;return b.jsxs(b.Fragment,{children:[b.jsx(Kg,{smallText:`Prompt ${C+1}`,text:typeof x=="string"?x:x.display,expandedText:typeof x=="string"?void 0:x.raw,maxLength:e}),r==="failures"&&b.jsx(E1,{sx:{"& .MuiFormControlLabel-label":{fontSize:"0.75rem"}},control:b.jsx(ef,{checked:_,onChange:P=>i(E,P.target.checked)}),label:"Show failures"}),b.jsxs("div",{className:`summary ${$?"highlight":""}`,children:["Passing: ",b.jsxs("strong",{children:[R,"%"]})," (",c[C],"/",u.length," cases",d[C]?b.jsxs("span",{children:[", ",f[C],"/",d[C]," asserts"]}):null,")"]})]})},cell:R=>b.jsx(qA,{output:R.getValue(),maxTextLength:e,rowIndex:R.row.index,promptIndex:C,onRating:h})}))})],p=w.useMemo(()=>r==="failures"?Object.values(o).every(x=>!x)?u:u.filter(x=>x.outputs.some((C,R)=>{const $=`Prompt ${R+1}`,E=!C.pass;return o[$]&&E})):r==="different"?u.filter(x=>!x.outputs.every(C=>C.text===x.outputs[0].text)):u,[u,o,r]),v=WO({data:p,columns:g,columnResizeMode:"onChange",getCoreRowModel:BO(),state:{columnVisibility:t}});return b.jsxs("table",{style:{wordBreak:n},children:[b.jsx("thead",{children:v.getHeaderGroups().map(x=>b.jsx("tr",{className:"header",children:x.headers.map(C=>b.jsxs("th",{key:C.id,colSpan:C.colSpan,style:{width:C.getSize()},children:[C.isPlaceholder?null:Ng(C.column.columnDef.header,C.getContext()),b.jsx("div",{onMouseDown:C.getResizeHandler(),onTouchStart:C.getResizeHandler(),className:`resizer ${C.column.getIsResizing()?"isResizing":""}`})]}))},x.id))}),b.jsx("tbody",{children:v.getRowModel().rows.map((x,C)=>{let R=!1;return b.jsx("tr",{children:x.getVisibleCells().map($=>{const E=$.column.id.startsWith("Variable"),_=!E&&!R;_&&(R=!0);const P=C===0&&!E;return b.jsx("td",{key:$.id,style:{width:$.column.getSize()},className:`${E?"variable":""} ${P?"first-prompt-row":""} ${_?"first-prompt-col":""}`,children:Ng($.column.columnDef.cell,$.getContext())})})},x.id)})})]})}const XA="modulepreload",QA=function(e){return"/"+e},qg={},ZA=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=QA(i),i in qg)return;qg[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const d=o[c];if(d.href===i&&(!s||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":XA,s||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),s)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};function JA(e){return ue("MuiDialogContentText",e)}ae("MuiDialogContentText",["root"]);const eF=["children","className"],tF=e=>{const{classes:t}=e,r=de({root:["root"]},JA,t);return S({},t,r)},nF=H(Pt,{shouldForwardProp:e=>cn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rF=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiDialogContentText"}),{className:o}=r,i=q(r,eF),s=tF(i);return b.jsx(nF,S({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:i,className:Q(s.root,o)},r,{classes:s}))}),oF=rF;function iF(e){return ue("MuiFormHelperText",e)}const sF=ae("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Yg=sF;var Xg;const lF=["children","className","component","disabled","error","filled","focused","margin","required","variant"],aF=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:s,focused:l,required:a}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${K(r)}`,n&&"contained",l&&"focused",s&&"filled",a&&"required"]};return de(u,iF,t)},uF=H("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${K(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>S({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Yg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Yg.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),cF=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p"}=r,l=q(r,lF),a=Tr(),u=oo({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),c=S({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=aF(c);return b.jsx(uF,S({as:s,ownerState:c,className:Q(d.root,i),ref:n},l,{children:o===" "?Xg||(Xg=b.jsx("span",{className:"notranslate",children:"​"})):o}))}),dF=cF;function fF(e){return ue("MuiTextField",e)}ae("MuiTextField",["root"]);const pF=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],hF={standard:D1,filled:B1,outlined:zp},mF=e=>{const{classes:t}=e;return de({root:["root"]},fF,t)},gF=H(Wl,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vF=w.forwardRef(function(t,n){const r=pe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:l,color:a="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:h=!1,helperText:y,id:m,InputLabelProps:k,inputProps:g,InputProps:p,inputRef:v,label:x,maxRows:C,minRows:R,multiline:$=!1,name:E,onBlur:_,onChange:P,onClick:I,onFocus:j,placeholder:D,required:A=!1,rows:T,select:O=!1,SelectProps:N,type:M,value:L,variant:F="outlined"}=r,X=q(r,pF),G=S({},r,{autoFocus:i,color:a,disabled:c,error:d,fullWidth:h,multiline:$,required:A,select:O,variant:F}),oe=mF(G),te={};F==="outlined"&&(k&&typeof k.shrink<"u"&&(te.notched=k.shrink),te.label=x),O&&((!N||!N.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const Z=Ka(m),se=y&&Z?`${Z}-helper-text`:void 0,Ce=x&&Z?`${Z}-label`:void 0,be=hF[F],ce=b.jsx(be,S({"aria-describedby":se,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:h,multiline:$,name:E,rows:T,maxRows:C,minRows:R,type:M,value:L,id:Z,inputRef:v,onBlur:_,onChange:P,onFocus:j,onClick:I,placeholder:D,inputProps:g},te,p));return b.jsxs(gF,S({className:Q(oe.root,l),disabled:c,error:d,fullWidth:h,ref:n,required:A,color:a,variant:F,ownerState:G},X,{children:[x!=null&&x!==""&&b.jsx(Gl,S({htmlFor:Z,id:Ce},k,{children:x})),O?b.jsx(Kl,S({"aria-describedby":se,id:Z,labelId:Ce,value:L,input:ce},N,{children:s})):ce,y&&b.jsx(dF,S({id:se},f,{children:y}))]}))}),yF=vF,xF=ro(b.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),bF=ro(b.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");function SF({open:e,onClose:t}){const{config:n}=Uu(),r=wt.useRef(null),[o,i]=wt.useState(!1),[s,l]=wt.useState("");wt.useEffect(()=>{e&&(async()=>{const{default:c}=await ZA(()=>import("./js-yaml-8bbf9398.js"),[]);l(c.dump(n))})()},[e,n]);const a=()=>{r.current&&(r.current.select(),document.execCommand("copy"),i(!0))},u=()=>{i(!1),t()};return b.jsxs(qp,{open:e,onClose:u,"aria-labelledby":"config-dialog-title",maxWidth:"md",fullWidth:!0,children:[b.jsx(Qp,{id:"config-dialog-title",children:b.jsxs(jt,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[b.jsx(Pt,{variant:"h6",children:"Config"}),b.jsx(Zp,{onClick:a,children:o?b.jsx(xF,{}):b.jsx(bF,{})})]})}),b.jsx(Xp,{children:b.jsx(Pt,{variant:"body1",component:"div",children:b.jsx("textarea",{ref:r,readOnly:!0,value:s,style:{width:"100%",minHeight:"400px",fontFamily:"monospace",border:"1px solid #ccc"}})})}),b.jsx(Yp,{children:b.jsx(Ts,{onClick:u,color:"primary",children:"Close"})})]})}var rh={},wF=io;Object.defineProperty(rh,"__esModule",{value:!0});var cx=rh.default=void 0,CF=wF(so()),kF=b,RF=(0,CF.default)((0,kF.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");cx=rh.default=RF;const $F=({open:e,onClose:t,shareUrl:n})=>{const r=w.useRef(null),[o,i]=w.useState(!1),s=()=>{r.current&&(r.current.select(),document.execCommand("copy"),i(!0))},l=()=>{t(),i(!1)};return b.jsxs(qp,{open:e,onClose:l,PaperProps:{style:{minWidth:"min(660px, 100%)"}},children:[b.jsx(Qp,{children:"Your eval is ready to share"}),b.jsxs(Xp,{children:[b.jsx(yF,{inputRef:r,value:n,fullWidth:!0,InputProps:{readOnly:!0,endAdornment:b.jsx(Zp,{onClick:s,children:o?b.jsx(th,{}):b.jsx(cx,{})})}}),b.jsx(oF,{sx:{fontSize:"0.75rem"},children:"Shared URLs are deleted after 1 week."})]}),b.jsx(Yp,{children:b.jsx(Ts,{onClick:l,color:"primary",children:"Close"})})]})},Qg=jy(LM)(({theme:e})=>({maxWidth:"100%",flexWrap:"wrap",[e.breakpoints.down("sm")]:{flexDirection:"column"}}));function EF(e){const n=e.slice(5,e.length-5).split("T"),r=n[1].replace(/-/g,":"),o=`${n[0]}T${r}`;return new Date(o).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"})}function PF({recentFiles:e,onRecentFileSelected:t}){const{table:n,config:r}=Uu(),[o,i]=w.useState(250),[s,l]=w.useState({}),[a,u]=w.useState([]),[c,d]=w.useState({}),f=(T,O)=>{d(N=>({...N,[T]:O}))},[h,y]=w.useState("all"),m=T=>{const O=T.target.value;y(O);const N={};j.prompts.forEach((M,L)=>{const F=`Prompt ${L+1}`;N[F]=O==="failures"}),d(N)},[k,g]=w.useState("break-word"),p=T=>{g(T.target.checked?"break-all":"break-word")},[v,x]=w.useState(!1),[C,R]=w.useState(""),[$,E]=w.useState(!1),_=async()=>{E(!0);try{const T=await fetch("https://api.promptfoo.dev/eval",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:{version:1,results:{table:n},config:r}})}),{id:O}=await T.json(),N=`https://app.promptfoo.dev/eval/${O}`;R(N),x(!0)}catch{alert("Sorry, something went wrong.")}finally{E(!1)}},[P,I]=w.useState(!1);a1(n,"Table data must be loaded before rendering ResultsView");const{head:j}=n,D=T=>{const{target:{value:O}}=T;u(typeof O=="string"?O.split(","):O);const N=[...j.vars.map((L,F)=>`Variable ${F+1}`),...j.prompts.map((L,F)=>`Prompt ${F+1}`)],M={};N.forEach(L=>{M[L]=(typeof O=="string"?O.split(","):O).includes(L)}),l(M)},A=[...j.vars.map((T,O)=>({value:`Variable ${O+1}`,label:`Variable ${O+1}`,group:"Variables"})),...j.prompts.map((T,O)=>({value:`Prompt ${O+1}`,label:`Prompt ${O+1}`,group:"Prompts"}))];return w.useEffect(()=>{u([...j.vars.map((T,O)=>`Variable ${O+1}`),...j.prompts.map((T,O)=>`Prompt ${O+1}`)])},[j]),b.jsxs("div",{children:[b.jsx(jt,{py:"md",children:b.jsxs(Qg,{direction:"row",spacing:4,alignItems:"center",children:[b.jsx(jt,{children:e&&e.length>0&&b.jsxs(Wl,{sx:{m:1,minWidth:200},size:"small",children:[b.jsx(Gl,{children:"View run"}),b.jsx(Kl,{className:"recent-files",label:"Previous runs",defaultValue:e[0],onChange:T=>t(T.target.value),children:e.map(T=>b.jsx(Oi,{value:T,children:EF(T)},T))},e.join(","))]})}),b.jsx(jt,{children:b.jsxs(Wl,{sx:{m:1,minWidth:200},size:"small",children:[b.jsx(Gl,{id:"visible-columns-label",children:"Show columns"}),b.jsx(Kl,{labelId:"visible-columns-label",id:"visible-columns",multiple:!0,value:a,onChange:D,input:b.jsx(zp,{label:"Visible columns"}),renderValue:T=>T.join(", "),children:A.map(T=>b.jsxs(Oi,{dense:!0,value:T.value,children:[b.jsx(ef,{checked:a.indexOf(T.value)>-1}),b.jsx(f_,{primary:T.label})]},T.value))})]})}),b.jsx(jt,{children:b.jsxs(Wl,{sx:{minWidth:180},size:"small",children:[b.jsx(Gl,{id:"failure-filter-mode-label",children:"Filter"}),b.jsxs(Kl,{labelId:"filter-mode-label",id:"filter-mode",value:h,onChange:m,label:"Filter",children:[b.jsx(Oi,{value:"all",children:"Show all results"}),b.jsx(Oi,{value:"failures",children:"Show failures only"}),b.jsx(Oi,{value:"different",children:"Show different only"})]})]})}),b.jsxs(jt,{children:[b.jsxs(Pt,{mt:2,children:["Max text length: ",o]}),b.jsx(AM,{min:25,max:1e3,value:o,onChange:(T,O)=>i(O)})]}),b.jsx(jt,{children:b.jsx(Ic,{title:"Forcing line breaks makes it easier to adjust column widths to your liking",children:b.jsx(E1,{control:b.jsx(ef,{checked:k==="break-all",onChange:p}),label:"Force line breaks"})})}),b.jsx(jt,{flexGrow:1}),b.jsx(jt,{display:"flex",justifyContent:"flex-end",children:b.jsxs(Qg,{direction:"row",spacing:2,children:[r&&b.jsx(Ic,{title:"View config",children:b.jsx(Ts,{color:"primary",onClick:()=>I(!0),startIcon:b.jsx(G1,{}),children:"Config"})}),(r==null?void 0:r.sharing)&&b.jsx(Ic,{title:"Generate a unique URL that others can access",children:b.jsx(Ts,{color:"primary",onClick:_,disabled:$,startIcon:$?b.jsx(R2,{size:16}):b.jsx(W1,{}),children:"Share"})})]})})]})}),b.jsx(YA,{maxTextLength:o,columnVisibility:s,wordBreak:k,filterMode:h,failureFilter:c,onFailureFilterToggle:f}),b.jsx(SF,{open:P,onClose:()=>I(!1)}),b.jsx($F,{open:v,onClose:()=>x(!1),shareUrl:C})]})}function _F(){return b.jsxs(jt,{className:"logo",children:[b.jsx("img",{src:"/logo.svg",alt:"Promptfoo logo"})," ",b.jsx("span",{children:"promptfoo"})]})}var oh={},TF=io;Object.defineProperty(oh,"__esModule",{value:!0});var dx=oh.default=void 0,MF=TF(so()),OF=b,IF=(0,MF.default)((0,OF.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-.1z"}),"DarkMode");dx=oh.default=IF;var ih={},AF=io;Object.defineProperty(ih,"__esModule",{value:!0});var fx=ih.default=void 0,FF=AF(so()),LF=b,NF=(0,FF.default)((0,LF.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-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"}),"LightMode");fx=ih.default=NF;function zF({darkMode:e,onToggleDarkMode:t}){return b.jsxs("nav",{children:[b.jsx(_F,{}),b.jsx("div",{className:"dark-mode-toggle",onClick:t,children:e?b.jsx(dx,{}):b.jsx(fx,{})})]})}function DF(){const{table:e,setTable:t,setConfig:n}=Uu(),[r,o]=w.useState(!1),i=w.useRef(!1),[s,l]=w.useState([]),a=Ak("(prefers-color-scheme: dark)"),[u,c]=w.useState(a),d=w.useMemo(()=>Cp({palette:{mode:u?"dark":"light"}}),[u]),f=()=>{c(!u),u?document.documentElement.removeAttribute("data-theme"):document.documentElement.setAttribute("data-theme","dark")};w.useEffect(()=>{a&&document.documentElement.setAttribute("data-theme","dark")},[a]);const h=async()=>{if(!window.location.href.includes("localhost"))return;const k=await(await fetch("http://localhost:15500/results")).json();l(k.data)},y=async m=>{const g=await(await fetch(`http://localhost:15500/results/${m}`)).json();t(g.data.results.table),n(g.data.config)};return w.useEffect(()=>{const m=async p=>{var C;if(i.current)return;i.current=!0;const x=await(await fetch(`https://api.promptfoo.dev/eval/${p}`)).json();t(((C=x.data.results)==null?void 0:C.table)||x.data.table),n(x.data.config),o(!0)},k=Hl("http://localhost:15500"),g=window.location.pathname.match(/\/eval\/([\w:-]+)/);if(g){const p=g[1];m(p)}else k.on("init",p=>{console.log("Initialized socket connection",p),o(!0),t(p.results.table),n(p.config),h()}),k.on("update",p=>{console.log("Received data update",p),t(p.results.table),n(p.config),h()});return()=>{k.disconnect()}},[t,n]),b.jsxs(yR,{theme:d,children:[b.jsx(zF,{darkMode:u,onToggleDarkMode:f}),r&&e?b.jsx(PF,{recentFiles:s,onRecentFileSelected:y}):b.jsx("div",{children:"Loading..."})]})}Hc.createRoot(document.getElementById("root")).render(b.jsx(wt.StrictMode,{children:b.jsx(DF,{})}));