1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
|
function PE(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 l=Object.getOwnPropertyDescriptor(r,o);l&&Object.defineProperty(e,o,l.get?l:{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 l of o)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function Ev(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function kE(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):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 SS={exports:{}},lp={},PS={exports:{}},Ye={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var pu=Symbol.for("react.element"),ME=Symbol.for("react.portal"),IE=Symbol.for("react.fragment"),$E=Symbol.for("react.strict_mode"),EE=Symbol.for("react.profiler"),TE=Symbol.for("react.provider"),RE=Symbol.for("react.context"),OE=Symbol.for("react.forward_ref"),_E=Symbol.for("react.suspense"),FE=Symbol.for("react.memo"),jE=Symbol.for("react.lazy"),Rx=Symbol.iterator;function DE(e){return e===null||typeof e!="object"?null:(e=Rx&&e[Rx]||e["@@iterator"],typeof e=="function"?e:null)}var kS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},MS=Object.assign,IS={};function ha(e,t,n){this.props=e,this.context=t,this.refs=IS,this.updater=n||kS}ha.prototype.isReactComponent={};ha.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")};ha.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $S(){}$S.prototype=ha.prototype;function Tv(e,t,n){this.props=e,this.context=t,this.refs=IS,this.updater=n||kS}var Rv=Tv.prototype=new $S;Rv.constructor=Tv;MS(Rv,ha.prototype);Rv.isPureReactComponent=!0;var Ox=Array.isArray,ES=Object.prototype.hasOwnProperty,Ov={current:null},TS={key:!0,ref:!0,__self:!0,__source:!0};function RS(e,t,n){var r,o={},l=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(l=""+t.key),t)ES.call(t,r)&&!TS.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+2];o.children=a}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:pu,type:e,key:l,ref:s,props:o,_owner:Ov.current}}function AE(e,t){return{$$typeof:pu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function _v(e){return typeof e=="object"&&e!==null&&e.$$typeof===pu}function LE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _x=/\/+/g;function Lh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?LE(""+e.key):t.toString(36)}function Cd(e,t,n,r,o){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case pu:case ME:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Lh(s,0):r,Ox(o)?(n="",e!=null&&(n=e.replace(_x,"$&/")+"/"),Cd(o,t,n,"",function(c){return c})):o!=null&&(_v(o)&&(o=AE(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(_x,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Ox(e))for(var i=0;i<e.length;i++){l=e[i];var a=r+Lh(l,i);s+=Cd(l,t,n,a,o)}else if(a=DE(e),typeof a=="function")for(e=a.call(e),i=0;!(l=e.next()).done;)l=l.value,a=r+Lh(l,i++),s+=Cd(l,t,n,a,o);else if(l==="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 Lu(e,t,n){if(e==null)return e;var r=[],o=0;return Cd(e,r,"","",function(l){return t.call(n,l,o++)}),r}function NE(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 Fn={current:null},wd={transition:null},HE={ReactCurrentDispatcher:Fn,ReactCurrentBatchConfig:wd,ReactCurrentOwner:Ov};Ye.Children={map:Lu,forEach:function(e,t,n){Lu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Lu(e,function(){t++}),t},toArray:function(e){return Lu(e,function(t){return t})||[]},only:function(e){if(!_v(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ye.Component=ha;Ye.Fragment=IE;Ye.Profiler=EE;Ye.PureComponent=Tv;Ye.StrictMode=$E;Ye.Suspense=_E;Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=HE;Ye.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=MS({},e.props),o=e.key,l=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,s=Ov.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(a in t)ES.call(t,a)&&!TS.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&i!==void 0?i[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){i=Array(a);for(var c=0;c<a;c++)i[c]=arguments[c+2];r.children=i}return{$$typeof:pu,type:e.type,key:o,ref:l,props:r,_owner:s}};Ye.createContext=function(e){return e={$$typeof:RE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:TE,_context:e},e.Consumer=e};Ye.createElement=RS;Ye.createFactory=function(e){var t=RS.bind(null,e);return t.type=e,t};Ye.createRef=function(){return{current:null}};Ye.forwardRef=function(e){return{$$typeof:OE,render:e}};Ye.isValidElement=_v;Ye.lazy=function(e){return{$$typeof:jE,_payload:{_status:-1,_result:e},_init:NE}};Ye.memo=function(e,t){return{$$typeof:FE,type:e,compare:t===void 0?null:t}};Ye.startTransition=function(e){var t=wd.transition;wd.transition={};try{e()}finally{wd.transition=t}};Ye.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Ye.useCallback=function(e,t){return Fn.current.useCallback(e,t)};Ye.useContext=function(e){return Fn.current.useContext(e)};Ye.useDebugValue=function(){};Ye.useDeferredValue=function(e){return Fn.current.useDeferredValue(e)};Ye.useEffect=function(e,t){return Fn.current.useEffect(e,t)};Ye.useId=function(){return Fn.current.useId()};Ye.useImperativeHandle=function(e,t,n){return Fn.current.useImperativeHandle(e,t,n)};Ye.useInsertionEffect=function(e,t){return Fn.current.useInsertionEffect(e,t)};Ye.useLayoutEffect=function(e,t){return Fn.current.useLayoutEffect(e,t)};Ye.useMemo=function(e,t){return Fn.current.useMemo(e,t)};Ye.useReducer=function(e,t,n){return Fn.current.useReducer(e,t,n)};Ye.useRef=function(e){return Fn.current.useRef(e)};Ye.useState=function(e){return Fn.current.useState(e)};Ye.useSyncExternalStore=function(e,t,n){return Fn.current.useSyncExternalStore(e,t,n)};Ye.useTransition=function(){return Fn.current.useTransition()};Ye.version="18.2.0";PS.exports=Ye;var f=PS.exports;const Yr=Ev(f),Wd=PE({__proto__:null,default:Yr},[f]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var zE=f,BE=Symbol.for("react.element"),VE=Symbol.for("react.fragment"),UE=Object.prototype.hasOwnProperty,WE=zE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,GE={key:!0,ref:!0,__self:!0,__source:!0};function OS(e,t,n){var r,o={},l=null,s=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)UE.call(t,r)&&!GE.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:BE,type:e,key:l,ref:s,props:o,_owner:WE.current}}lp.Fragment=VE;lp.jsx=OS;lp.jsxs=OS;SS.exports=lp;var p=SS.exports,Xg={},_S={exports:{}},fr={},FS={exports:{}},jS={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(E,F){var N=E.length;E.push(F);e:for(;0<N;){var V=N-1>>>1,H=E[V];if(0<o(H,F))E[V]=F,E[N]=H,N=V;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var F=E[0],N=E.pop();if(N!==F){E[0]=N;e:for(var V=0,H=E.length,Q=H>>>1;V<Q;){var q=2*(V+1)-1,Z=E[q],le=q+1,fe=E[le];if(0>o(Z,N))le<H&&0>o(fe,Z)?(E[V]=fe,E[le]=N,V=le):(E[V]=Z,E[q]=N,V=q);else if(le<H&&0>o(fe,N))E[V]=fe,E[le]=N,V=le;else break e}}return F}function o(E,F){var N=E.sortIndex-F.sortIndex;return N!==0?N:E.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,i=s.now();e.unstable_now=function(){return s.now()-i}}var a=[],c=[],u=1,d=null,h=3,g=!1,m=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(E){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=E)r(c),F.sortIndex=F.expirationTime,t(a,F);else break;F=n(c)}}function S(E){if(x=!1,C(E),!m)if(n(a)!==null)m=!0,j(I);else{var F=n(c);F!==null&&A(S,F.startTime-E)}}function I(E,F){m=!1,x&&(x=!1,b($),$=-1),g=!0;var N=h;try{for(C(F),d=n(a);d!==null&&(!(d.expirationTime>F)||E&&!R());){var V=d.callback;if(typeof V=="function"){d.callback=null,h=d.priorityLevel;var H=V(d.expirationTime<=F);F=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(a)&&r(a),C(F)}else r(a);d=n(a)}if(d!==null)var Q=!0;else{var q=n(c);q!==null&&A(S,q.startTime-F),Q=!1}return Q}finally{d=null,h=N,g=!1}}var P=!1,k=null,$=-1,D=5,O=-1;function R(){return!(e.unstable_now()-O<D)}function L(){if(k!==null){var E=e.unstable_now();O=E;var F=!0;try{F=k(!0,E)}finally{F?_():(P=!1,k=null)}}else P=!1}var _;if(typeof y=="function")_=function(){y(L)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,T=M.port2;M.port1.onmessage=L,_=function(){T.postMessage(null)}}else _=function(){w(L,0)};function j(E){k=E,P||(P=!0,_())}function A(E,F){$=w(function(){E(e.unstable_now())},F)}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(E){E.callback=null},e.unstable_continueExecution=function(){m||g||(m=!0,j(I))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(E){switch(h){case 1:case 2:case 3:var F=3;break;default:F=h}var N=h;h=F;try{return E()}finally{h=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,F){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var N=h;h=E;try{return F()}finally{h=N}},e.unstable_scheduleCallback=function(E,F,N){var V=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?V+N:V):N=V,E){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=N+H,E={id:u++,callback:F,priorityLevel:E,startTime:N,expirationTime:H,sortIndex:-1},N>V?(E.sortIndex=N,t(c,E),n(a)===null&&E===n(c)&&(x?(b($),$=-1):x=!0,A(S,N-V))):(E.sortIndex=H,t(a,E),m||g||(m=!0,j(I))),E},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(E){var F=h;return function(){var N=h;h=F;try{return E.apply(this,arguments)}finally{h=N}}}})(jS);FS.exports=jS;var KE=FS.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var DS=f,cr=KE;function he(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 AS=new Set,wc={};function Os(e,t){Di(e,t),Di(e+"Capture",t)}function Di(e,t){for(wc[e]=t,e=0;e<t.length;e++)AS.add(t[e])}var Bo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qg=Object.prototype.hasOwnProperty,qE=/^[: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]*$/,Fx={},jx={};function YE(e){return Qg.call(jx,e)?!0:Qg.call(Fx,e)?!1:qE.test(e)?jx[e]=!0:(Fx[e]=!0,!1)}function XE(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 QE(e,t,n,r){if(t===null||typeof t>"u"||XE(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 jn(e,t,n,r,o,l,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=l,this.removeEmptyString=s}var hn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){hn[e]=new jn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];hn[t]=new jn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){hn[e]=new jn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){hn[e]=new jn(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){hn[e]=new jn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){hn[e]=new jn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){hn[e]=new jn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){hn[e]=new jn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){hn[e]=new jn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fv=/[\-:]([a-z])/g;function jv(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(Fv,jv);hn[t]=new jn(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(Fv,jv);hn[t]=new jn(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(Fv,jv);hn[t]=new jn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){hn[e]=new jn(e,1,!1,e.toLowerCase(),null,!1,!1)});hn.xlinkHref=new jn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){hn[e]=new jn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Dv(e,t,n,r){var o=hn.hasOwnProperty(t)?hn[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(QE(t,n,o,r)&&(n=null),r||o===null?YE(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 Xo=DS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Nu=Symbol.for("react.element"),ui=Symbol.for("react.portal"),di=Symbol.for("react.fragment"),Av=Symbol.for("react.strict_mode"),Zg=Symbol.for("react.profiler"),LS=Symbol.for("react.provider"),NS=Symbol.for("react.context"),Lv=Symbol.for("react.forward_ref"),Jg=Symbol.for("react.suspense"),em=Symbol.for("react.suspense_list"),Nv=Symbol.for("react.memo"),ul=Symbol.for("react.lazy"),HS=Symbol.for("react.offscreen"),Dx=Symbol.iterator;function ka(e){return e===null||typeof e!="object"?null:(e=Dx&&e[Dx]||e["@@iterator"],typeof e=="function"?e:null)}var Ot=Object.assign,Nh;function qa(e){if(Nh===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Nh=t&&t[1]||""}return`
`+Nh+e}var Hh=!1;function zh(e,t){if(!e||Hh)return"";Hh=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
`),l=r.stack.split(`
`),s=o.length-1,i=l.length-1;1<=s&&0<=i&&o[s]!==l[i];)i--;for(;1<=s&&0<=i;s--,i--)if(o[s]!==l[i]){if(s!==1||i!==1)do if(s--,i--,0>i||o[s]!==l[i]){var a=`
`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=i);break}}}finally{Hh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qa(e):""}function ZE(e){switch(e.tag){case 5:return qa(e.type);case 16:return qa("Lazy");case 13:return qa("Suspense");case 19:return qa("SuspenseList");case 0:case 2:case 15:return e=zh(e.type,!1),e;case 11:return e=zh(e.type.render,!1),e;case 1:return e=zh(e.type,!0),e;default:return""}}function tm(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 di:return"Fragment";case ui:return"Portal";case Zg:return"Profiler";case Av:return"StrictMode";case Jg:return"Suspense";case em:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case NS:return(e.displayName||"Context")+".Consumer";case LS:return(e._context.displayName||"Context")+".Provider";case Lv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nv:return t=e.displayName||null,t!==null?t:tm(e.type)||"Memo";case ul:t=e._payload,e=e._init;try{return tm(e(t))}catch{}}return null}function JE(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 tm(t);case 8:return t===Av?"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 Dl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eT(e){var t=zS(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,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,l.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 Hu(e){e._valueTracker||(e._valueTracker=eT(e))}function BS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Gd(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 nm(e,t){var n=t.checked;return Ot({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ax(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Dl(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 VS(e,t){t=t.checked,t!=null&&Dv(e,"checked",t,!1)}function rm(e,t){VS(e,t);var n=Dl(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")?om(e,t.type,n):t.hasOwnProperty("defaultValue")&&om(e,t.type,Dl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Lx(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 om(e,t,n){(t!=="number"||Gd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ya=Array.isArray;function Pi(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=""+Dl(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 lm(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(he(91));return Ot({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Nx(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(he(92));if(Ya(n)){if(1<n.length)throw Error(he(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Dl(n)}}function US(e,t){var n=Dl(t.value),r=Dl(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 Hx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function WS(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 sm(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?WS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zu,GS=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(zu=zu||document.createElement("div"),zu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=zu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Sc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var oc={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},tT=["Webkit","ms","Moz","O"];Object.keys(oc).forEach(function(e){tT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),oc[t]=oc[e]})});function KS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||oc.hasOwnProperty(e)&&oc[e]?(""+t).trim():t+"px"}function qS(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=KS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var nT=Ot({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 im(e,t){if(t){if(nT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(he(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(he(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(he(61))}if(t.style!=null&&typeof t.style!="object")throw Error(he(62))}}function am(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 cm=null;function Hv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var um=null,ki=null,Mi=null;function zx(e){if(e=mu(e)){if(typeof um!="function")throw Error(he(280));var t=e.stateNode;t&&(t=up(t),um(e.stateNode,e.type,t))}}function YS(e){ki?Mi?Mi.push(e):Mi=[e]:ki=e}function XS(){if(ki){var e=ki,t=Mi;if(Mi=ki=null,zx(e),t)for(e=0;e<t.length;e++)zx(t[e])}}function QS(e,t){return e(t)}function ZS(){}var Bh=!1;function JS(e,t,n){if(Bh)return e(t,n);Bh=!0;try{return QS(e,t,n)}finally{Bh=!1,(ki!==null||Mi!==null)&&(ZS(),XS())}}function Pc(e,t){var n=e.stateNode;if(n===null)return null;var r=up(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(he(231,t,typeof n));return n}var dm=!1;if(Bo)try{var Ma={};Object.defineProperty(Ma,"passive",{get:function(){dm=!0}}),window.addEventListener("test",Ma,Ma),window.removeEventListener("test",Ma,Ma)}catch{dm=!1}function rT(e,t,n,r,o,l,s,i,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var lc=!1,Kd=null,qd=!1,fm=null,oT={onError:function(e){lc=!0,Kd=e}};function lT(e,t,n,r,o,l,s,i,a){lc=!1,Kd=null,rT.apply(oT,arguments)}function sT(e,t,n,r,o,l,s,i,a){if(lT.apply(this,arguments),lc){if(lc){var c=Kd;lc=!1,Kd=null}else throw Error(he(198));qd||(qd=!0,fm=c)}}function _s(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 eP(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 Bx(e){if(_s(e)!==e)throw Error(he(188))}function iT(e){var t=e.alternate;if(!t){if(t=_s(e),t===null)throw Error(he(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var l=o.alternate;if(l===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===n)return Bx(o),e;if(l===r)return Bx(o),t;l=l.sibling}throw Error(he(188))}if(n.return!==r.return)n=o,r=l;else{for(var s=!1,i=o.child;i;){if(i===n){s=!0,n=o,r=l;break}if(i===r){s=!0,r=o,n=l;break}i=i.sibling}if(!s){for(i=l.child;i;){if(i===n){s=!0,n=l,r=o;break}if(i===r){s=!0,r=l,n=o;break}i=i.sibling}if(!s)throw Error(he(189))}}if(n.alternate!==r)throw Error(he(190))}if(n.tag!==3)throw Error(he(188));return n.stateNode.current===n?e:t}function tP(e){return e=iT(e),e!==null?nP(e):null}function nP(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=nP(e);if(t!==null)return t;e=e.sibling}return null}var rP=cr.unstable_scheduleCallback,Vx=cr.unstable_cancelCallback,aT=cr.unstable_shouldYield,cT=cr.unstable_requestPaint,zt=cr.unstable_now,uT=cr.unstable_getCurrentPriorityLevel,zv=cr.unstable_ImmediatePriority,oP=cr.unstable_UserBlockingPriority,Yd=cr.unstable_NormalPriority,dT=cr.unstable_LowPriority,lP=cr.unstable_IdlePriority,sp=null,bo=null;function fT(e){if(bo&&typeof bo.onCommitFiberRoot=="function")try{bo.onCommitFiberRoot(sp,e,void 0,(e.current.flags&128)===128)}catch{}}var Jr=Math.clz32?Math.clz32:gT,pT=Math.log,hT=Math.LN2;function gT(e){return e>>>=0,e===0?32:31-(pT(e)/hT|0)|0}var Bu=64,Vu=4194304;function Xa(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 Xd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var i=s&~o;i!==0?r=Xa(i):(l&=s,l!==0&&(r=Xa(l)))}else s=n&~o,s!==0?r=Xa(s):l!==0&&(r=Xa(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&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-Jr(t),o=1<<n,r|=e[n],t&=~o;return r}function mT(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 vT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Jr(l),i=1<<s,a=o[s];a===-1?(!(i&n)||i&r)&&(o[s]=mT(i,t)):a<=t&&(e.expiredLanes|=i),l&=~i}}function pm(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function sP(){var e=Bu;return Bu<<=1,!(Bu&4194240)&&(Bu=64),e}function Vh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function hu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Jr(t),e[t]=n}function yT(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-Jr(n),l=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~l}}function Bv(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Jr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ut=0;function iP(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var aP,Vv,cP,uP,dP,hm=!1,Uu=[],kl=null,Ml=null,Il=null,kc=new Map,Mc=new Map,hl=[],xT="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 Ux(e,t){switch(e){case"focusin":case"focusout":kl=null;break;case"dragenter":case"dragleave":Ml=null;break;case"mouseover":case"mouseout":Il=null;break;case"pointerover":case"pointerout":kc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mc.delete(t.pointerId)}}function Ia(e,t,n,r,o,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[o]},t!==null&&(t=mu(t),t!==null&&Vv(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function bT(e,t,n,r,o){switch(t){case"focusin":return kl=Ia(kl,e,t,n,r,o),!0;case"dragenter":return Ml=Ia(Ml,e,t,n,r,o),!0;case"mouseover":return Il=Ia(Il,e,t,n,r,o),!0;case"pointerover":var l=o.pointerId;return kc.set(l,Ia(kc.get(l)||null,e,t,n,r,o)),!0;case"gotpointercapture":return l=o.pointerId,Mc.set(l,Ia(Mc.get(l)||null,e,t,n,r,o)),!0}return!1}function fP(e){var t=es(e.target);if(t!==null){var n=_s(t);if(n!==null){if(t=n.tag,t===13){if(t=eP(n),t!==null){e.blockedOn=t,dP(e.priority,function(){cP(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 Sd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=gm(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);cm=r,n.target.dispatchEvent(r),cm=null}else return t=mu(n),t!==null&&Vv(t),e.blockedOn=n,!1;t.shift()}return!0}function Wx(e,t,n){Sd(e)&&n.delete(t)}function CT(){hm=!1,kl!==null&&Sd(kl)&&(kl=null),Ml!==null&&Sd(Ml)&&(Ml=null),Il!==null&&Sd(Il)&&(Il=null),kc.forEach(Wx),Mc.forEach(Wx)}function $a(e,t){e.blockedOn===t&&(e.blockedOn=null,hm||(hm=!0,cr.unstable_scheduleCallback(cr.unstable_NormalPriority,CT)))}function Ic(e){function t(o){return $a(o,e)}if(0<Uu.length){$a(Uu[0],e);for(var n=1;n<Uu.length;n++){var r=Uu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(kl!==null&&$a(kl,e),Ml!==null&&$a(Ml,e),Il!==null&&$a(Il,e),kc.forEach(t),Mc.forEach(t),n=0;n<hl.length;n++)r=hl[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<hl.length&&(n=hl[0],n.blockedOn===null);)fP(n),n.blockedOn===null&&hl.shift()}var Ii=Xo.ReactCurrentBatchConfig,Qd=!0;function wT(e,t,n,r){var o=ut,l=Ii.transition;Ii.transition=null;try{ut=1,Uv(e,t,n,r)}finally{ut=o,Ii.transition=l}}function ST(e,t,n,r){var o=ut,l=Ii.transition;Ii.transition=null;try{ut=4,Uv(e,t,n,r)}finally{ut=o,Ii.transition=l}}function Uv(e,t,n,r){if(Qd){var o=gm(e,t,n,r);if(o===null)Jh(e,t,r,Zd,n),Ux(e,r);else if(bT(o,e,t,n,r))r.stopPropagation();else if(Ux(e,r),t&4&&-1<xT.indexOf(e)){for(;o!==null;){var l=mu(o);if(l!==null&&aP(l),l=gm(e,t,n,r),l===null&&Jh(e,t,r,Zd,n),l===o)break;o=l}o!==null&&r.stopPropagation()}else Jh(e,t,r,null,n)}}var Zd=null;function gm(e,t,n,r){if(Zd=null,e=Hv(r),e=es(e),e!==null)if(t=_s(e),t===null)e=null;else if(n=t.tag,n===13){if(e=eP(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 Zd=e,null}function pP(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(uT()){case zv:return 1;case oP:return 4;case Yd:case dT:return 16;case lP:return 536870912;default:return 16}default:return 16}}var yl=null,Wv=null,Pd=null;function hP(){if(Pd)return Pd;var e,t=Wv,n=t.length,r,o="value"in yl?yl.value:yl.textContent,l=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[l-r];r++);return Pd=o.slice(e,1<r?1-r:void 0)}function kd(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 Wu(){return!0}function Gx(){return!1}function pr(e){function t(n,r,o,l,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=l,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(l):l[i]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Wu:Gx,this.isPropagationStopped=Gx,this}return Ot(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=Wu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Wu)},persist:function(){},isPersistent:Wu}),t}var ga={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gv=pr(ga),gu=Ot({},ga,{view:0,detail:0}),PT=pr(gu),Uh,Wh,Ea,ip=Ot({},gu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kv,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!==Ea&&(Ea&&e.type==="mousemove"?(Uh=e.screenX-Ea.screenX,Wh=e.screenY-Ea.screenY):Wh=Uh=0,Ea=e),Uh)},movementY:function(e){return"movementY"in e?e.movementY:Wh}}),Kx=pr(ip),kT=Ot({},ip,{dataTransfer:0}),MT=pr(kT),IT=Ot({},gu,{relatedTarget:0}),Gh=pr(IT),$T=Ot({},ga,{animationName:0,elapsedTime:0,pseudoElement:0}),ET=pr($T),TT=Ot({},ga,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),RT=pr(TT),OT=Ot({},ga,{data:0}),qx=pr(OT),_T={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FT={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"},jT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function DT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jT[e])?!!t[e]:!1}function Kv(){return DT}var AT=Ot({},gu,{key:function(e){if(e.key){var t=_T[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=kd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?FT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kv,charCode:function(e){return e.type==="keypress"?kd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?kd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),LT=pr(AT),NT=Ot({},ip,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yx=pr(NT),HT=Ot({},gu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kv}),zT=pr(HT),BT=Ot({},ga,{propertyName:0,elapsedTime:0,pseudoElement:0}),VT=pr(BT),UT=Ot({},ip,{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}),WT=pr(UT),GT=[9,13,27,32],qv=Bo&&"CompositionEvent"in window,sc=null;Bo&&"documentMode"in document&&(sc=document.documentMode);var KT=Bo&&"TextEvent"in window&&!sc,gP=Bo&&(!qv||sc&&8<sc&&11>=sc),Xx=" ",Qx=!1;function mP(e,t){switch(e){case"keyup":return GT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vP(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fi=!1;function qT(e,t){switch(e){case"compositionend":return vP(t);case"keypress":return t.which!==32?null:(Qx=!0,Xx);case"textInput":return e=t.data,e===Xx&&Qx?null:e;default:return null}}function YT(e,t){if(fi)return e==="compositionend"||!qv&&mP(e,t)?(e=hP(),Pd=Wv=yl=null,fi=!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 gP&&t.locale!=="ko"?null:t.data;default:return null}}var XT={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 Zx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!XT[e.type]:t==="textarea"}function yP(e,t,n,r){YS(r),t=Jd(t,"onChange"),0<t.length&&(n=new Gv("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ic=null,$c=null;function QT(e){EP(e,0)}function ap(e){var t=gi(e);if(BS(t))return e}function ZT(e,t){if(e==="change")return t}var xP=!1;if(Bo){var Kh;if(Bo){var qh="oninput"in document;if(!qh){var Jx=document.createElement("div");Jx.setAttribute("oninput","return;"),qh=typeof Jx.oninput=="function"}Kh=qh}else Kh=!1;xP=Kh&&(!document.documentMode||9<document.documentMode)}function eb(){ic&&(ic.detachEvent("onpropertychange",bP),$c=ic=null)}function bP(e){if(e.propertyName==="value"&&ap($c)){var t=[];yP(t,$c,e,Hv(e)),JS(QT,t)}}function JT(e,t,n){e==="focusin"?(eb(),ic=t,$c=n,ic.attachEvent("onpropertychange",bP)):e==="focusout"&&eb()}function eR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ap($c)}function tR(e,t){if(e==="click")return ap(t)}function nR(e,t){if(e==="input"||e==="change")return ap(t)}function rR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var no=typeof Object.is=="function"?Object.is:rR;function Ec(e,t){if(no(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(!Qg.call(t,o)||!no(e[o],t[o]))return!1}return!0}function tb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nb(e,t){var n=tb(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=tb(n)}}function CP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?CP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wP(){for(var e=window,t=Gd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gd(e.document)}return t}function Yv(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 oR(e){var t=wP(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&CP(n.ownerDocument.documentElement,n)){if(r!==null&&Yv(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,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=nb(n,l);var s=nb(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(),l>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 lR=Bo&&"documentMode"in document&&11>=document.documentMode,pi=null,mm=null,ac=null,vm=!1;function rb(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vm||pi==null||pi!==Gd(r)||(r=pi,"selectionStart"in r&&Yv(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}),ac&&Ec(ac,r)||(ac=r,r=Jd(mm,"onSelect"),0<r.length&&(t=new Gv("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pi)))}function Gu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hi={animationend:Gu("Animation","AnimationEnd"),animationiteration:Gu("Animation","AnimationIteration"),animationstart:Gu("Animation","AnimationStart"),transitionend:Gu("Transition","TransitionEnd")},Yh={},SP={};Bo&&(SP=document.createElement("div").style,"AnimationEvent"in window||(delete hi.animationend.animation,delete hi.animationiteration.animation,delete hi.animationstart.animation),"TransitionEvent"in window||delete hi.transitionend.transition);function cp(e){if(Yh[e])return Yh[e];if(!hi[e])return e;var t=hi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in SP)return Yh[e]=t[n];return e}var PP=cp("animationend"),kP=cp("animationiteration"),MP=cp("animationstart"),IP=cp("transitionend"),$P=new Map,ob="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 Hl(e,t){$P.set(e,t),Os(t,[e])}for(var Xh=0;Xh<ob.length;Xh++){var Qh=ob[Xh],sR=Qh.toLowerCase(),iR=Qh[0].toUpperCase()+Qh.slice(1);Hl(sR,"on"+iR)}Hl(PP,"onAnimationEnd");Hl(kP,"onAnimationIteration");Hl(MP,"onAnimationStart");Hl("dblclick","onDoubleClick");Hl("focusin","onFocus");Hl("focusout","onBlur");Hl(IP,"onTransitionEnd");Di("onMouseEnter",["mouseout","mouseover"]);Di("onMouseLeave",["mouseout","mouseover"]);Di("onPointerEnter",["pointerout","pointerover"]);Di("onPointerLeave",["pointerout","pointerover"]);Os("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Os("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Os("onBeforeInput",["compositionend","keypress","textInput","paste"]);Os("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Os("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Os("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qa="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(" "),aR=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qa));function lb(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,sT(r,t,void 0,e),e.currentTarget=null}function EP(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 l=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],a=i.instance,c=i.currentTarget;if(i=i.listener,a!==l&&o.isPropagationStopped())break e;lb(o,i,c),l=a}else for(s=0;s<r.length;s++){if(i=r[s],a=i.instance,c=i.currentTarget,i=i.listener,a!==l&&o.isPropagationStopped())break e;lb(o,i,c),l=a}}}if(qd)throw e=fm,qd=!1,fm=null,e}function xt(e,t){var n=t[wm];n===void 0&&(n=t[wm]=new Set);var r=e+"__bubble";n.has(r)||(TP(t,e,2,!1),n.add(r))}function Zh(e,t,n){var r=0;t&&(r|=4),TP(n,e,r,t)}var Ku="_reactListening"+Math.random().toString(36).slice(2);function Tc(e){if(!e[Ku]){e[Ku]=!0,AS.forEach(function(n){n!=="selectionchange"&&(aR.has(n)||Zh(n,!1,e),Zh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ku]||(t[Ku]=!0,Zh("selectionchange",!1,t))}}function TP(e,t,n,r){switch(pP(t)){case 1:var o=wT;break;case 4:o=ST;break;default:o=Uv}n=o.bind(null,t,n,e),o=void 0,!dm||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 Jh(e,t,n,r,o){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.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(;i!==null;){if(s=es(i),s===null)return;if(a=s.tag,a===5||a===6){r=l=s;continue e}i=i.parentNode}}r=r.return}JS(function(){var c=l,u=Hv(n),d=[];e:{var h=$P.get(e);if(h!==void 0){var g=Gv,m=e;switch(e){case"keypress":if(kd(n)===0)break e;case"keydown":case"keyup":g=LT;break;case"focusin":m="focus",g=Gh;break;case"focusout":m="blur",g=Gh;break;case"beforeblur":case"afterblur":g=Gh;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":g=Kx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=MT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=zT;break;case PP:case kP:case MP:g=ET;break;case IP:g=VT;break;case"scroll":g=PT;break;case"wheel":g=WT;break;case"copy":case"cut":case"paste":g=RT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Yx}var x=(t&4)!==0,w=!x&&e==="scroll",b=x?h!==null?h+"Capture":null:h;x=[];for(var y=c,C;y!==null;){C=y;var S=C.stateNode;if(C.tag===5&&S!==null&&(C=S,b!==null&&(S=Pc(y,b),S!=null&&x.push(Rc(y,S,C)))),w)break;y=y.return}0<x.length&&(h=new g(h,m,null,n,u),d.push({event:h,listeners:x}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&n!==cm&&(m=n.relatedTarget||n.fromElement)&&(es(m)||m[Vo]))break e;if((g||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,g?(m=n.relatedTarget||n.toElement,g=c,m=m?es(m):null,m!==null&&(w=_s(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(g=null,m=c),g!==m)){if(x=Kx,S="onMouseLeave",b="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(x=Yx,S="onPointerLeave",b="onPointerEnter",y="pointer"),w=g==null?h:gi(g),C=m==null?h:gi(m),h=new x(S,y+"leave",g,n,u),h.target=w,h.relatedTarget=C,S=null,es(u)===c&&(x=new x(b,y+"enter",m,n,u),x.target=C,x.relatedTarget=w,S=x),w=S,g&&m)t:{for(x=g,b=m,y=0,C=x;C;C=Ws(C))y++;for(C=0,S=b;S;S=Ws(S))C++;for(;0<y-C;)x=Ws(x),y--;for(;0<C-y;)b=Ws(b),C--;for(;y--;){if(x===b||b!==null&&x===b.alternate)break t;x=Ws(x),b=Ws(b)}x=null}else x=null;g!==null&&sb(d,h,g,x,!1),m!==null&&w!==null&&sb(d,w,m,x,!0)}}e:{if(h=c?gi(c):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var I=ZT;else if(Zx(h))if(xP)I=nR;else{I=eR;var P=JT}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(I=tR);if(I&&(I=I(e,c))){yP(d,I,n,u);break e}P&&P(e,h,c),e==="focusout"&&(P=h._wrapperState)&&P.controlled&&h.type==="number"&&om(h,"number",h.value)}switch(P=c?gi(c):window,e){case"focusin":(Zx(P)||P.contentEditable==="true")&&(pi=P,mm=c,ac=null);break;case"focusout":ac=mm=pi=null;break;case"mousedown":vm=!0;break;case"contextmenu":case"mouseup":case"dragend":vm=!1,rb(d,n,u);break;case"selectionchange":if(lR)break;case"keydown":case"keyup":rb(d,n,u)}var k;if(qv)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else fi?mP(e,n)&&($="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(gP&&n.locale!=="ko"&&(fi||$!=="onCompositionStart"?$==="onCompositionEnd"&&fi&&(k=hP()):(yl=u,Wv="value"in yl?yl.value:yl.textContent,fi=!0)),P=Jd(c,$),0<P.length&&($=new qx($,e,null,n,u),d.push({event:$,listeners:P}),k?$.data=k:(k=vP(n),k!==null&&($.data=k)))),(k=KT?qT(e,n):YT(e,n))&&(c=Jd(c,"onBeforeInput"),0<c.length&&(u=new qx("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=k))}EP(d,t)})}function Rc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jd(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,l=o.stateNode;o.tag===5&&l!==null&&(o=l,l=Pc(e,n),l!=null&&r.unshift(Rc(e,l,o)),l=Pc(e,t),l!=null&&r.push(Rc(e,l,o))),e=e.return}return r}function Ws(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sb(e,t,n,r,o){for(var l=t._reactName,s=[];n!==null&&n!==r;){var i=n,a=i.alternate,c=i.stateNode;if(a!==null&&a===r)break;i.tag===5&&c!==null&&(i=c,o?(a=Pc(n,l),a!=null&&s.unshift(Rc(n,a,i))):o||(a=Pc(n,l),a!=null&&s.push(Rc(n,a,i)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var cR=/\r\n?/g,uR=/\u0000|\uFFFD/g;function ib(e){return(typeof e=="string"?e:""+e).replace(cR,`
`).replace(uR,"")}function qu(e,t,n){if(t=ib(t),ib(e)!==t&&n)throw Error(he(425))}function ef(){}var ym=null,xm=null;function bm(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 Cm=typeof setTimeout=="function"?setTimeout:void 0,dR=typeof clearTimeout=="function"?clearTimeout:void 0,ab=typeof Promise=="function"?Promise:void 0,fR=typeof queueMicrotask=="function"?queueMicrotask:typeof ab<"u"?function(e){return ab.resolve(null).then(e).catch(pR)}:Cm;function pR(e){setTimeout(function(){throw e})}function eg(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),Ic(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ic(t)}function $l(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 cb(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 ma=Math.random().toString(36).slice(2),yo="__reactFiber$"+ma,Oc="__reactProps$"+ma,Vo="__reactContainer$"+ma,wm="__reactEvents$"+ma,hR="__reactListeners$"+ma,gR="__reactHandles$"+ma;function es(e){var t=e[yo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Vo]||n[yo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cb(e);e!==null;){if(n=e[yo])return n;e=cb(e)}return t}e=n,n=e.parentNode}return null}function mu(e){return e=e[yo]||e[Vo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function gi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(he(33))}function up(e){return e[Oc]||null}var Sm=[],mi=-1;function zl(e){return{current:e}}function Ct(e){0>mi||(e.current=Sm[mi],Sm[mi]=null,mi--)}function mt(e,t){mi++,Sm[mi]=e.current,e.current=t}var Al={},kn=zl(Al),Vn=zl(!1),vs=Al;function Ai(e,t){var n=e.type.contextTypes;if(!n)return Al;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Un(e){return e=e.childContextTypes,e!=null}function tf(){Ct(Vn),Ct(kn)}function ub(e,t,n){if(kn.current!==Al)throw Error(he(168));mt(kn,t),mt(Vn,n)}function RP(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(he(108,JE(e)||"Unknown",o));return Ot({},n,r)}function nf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Al,vs=kn.current,mt(kn,e),mt(Vn,Vn.current),!0}function db(e,t,n){var r=e.stateNode;if(!r)throw Error(he(169));n?(e=RP(e,t,vs),r.__reactInternalMemoizedMergedChildContext=e,Ct(Vn),Ct(kn),mt(kn,e)):Ct(Vn),mt(Vn,n)}var Fo=null,dp=!1,tg=!1;function OP(e){Fo===null?Fo=[e]:Fo.push(e)}function mR(e){dp=!0,OP(e)}function Bl(){if(!tg&&Fo!==null){tg=!0;var e=0,t=ut;try{var n=Fo;for(ut=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Fo=null,dp=!1}catch(o){throw Fo!==null&&(Fo=Fo.slice(e+1)),rP(zv,Bl),o}finally{ut=t,tg=!1}}return null}var vi=[],yi=0,rf=null,of=0,Pr=[],kr=0,ys=null,jo=1,Do="";function Kl(e,t){vi[yi++]=of,vi[yi++]=rf,rf=e,of=t}function _P(e,t,n){Pr[kr++]=jo,Pr[kr++]=Do,Pr[kr++]=ys,ys=e;var r=jo;e=Do;var o=32-Jr(r)-1;r&=~(1<<o),n+=1;var l=32-Jr(t)+o;if(30<l){var s=o-o%5;l=(r&(1<<s)-1).toString(32),r>>=s,o-=s,jo=1<<32-Jr(t)+o|n<<o|r,Do=l+e}else jo=1<<l|n<<o|r,Do=e}function Xv(e){e.return!==null&&(Kl(e,1),_P(e,1,0))}function Qv(e){for(;e===rf;)rf=vi[--yi],vi[yi]=null,of=vi[--yi],vi[yi]=null;for(;e===ys;)ys=Pr[--kr],Pr[kr]=null,Do=Pr[--kr],Pr[kr]=null,jo=Pr[--kr],Pr[kr]=null}var ir=null,sr=null,Mt=!1,Gr=null;function FP(e,t){var n=Tr(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 fb(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,ir=e,sr=$l(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ir=e,sr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ys!==null?{id:jo,overflow:Do}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Tr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ir=e,sr=null,!0):!1;default:return!1}}function Pm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function km(e){if(Mt){var t=sr;if(t){var n=t;if(!fb(e,t)){if(Pm(e))throw Error(he(418));t=$l(n.nextSibling);var r=ir;t&&fb(e,t)?FP(r,n):(e.flags=e.flags&-4097|2,Mt=!1,ir=e)}}else{if(Pm(e))throw Error(he(418));e.flags=e.flags&-4097|2,Mt=!1,ir=e}}}function pb(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ir=e}function Yu(e){if(e!==ir)return!1;if(!Mt)return pb(e),Mt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!bm(e.type,e.memoizedProps)),t&&(t=sr)){if(Pm(e))throw jP(),Error(he(418));for(;t;)FP(e,t),t=$l(t.nextSibling)}if(pb(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(he(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){sr=$l(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}sr=null}}else sr=ir?$l(e.stateNode.nextSibling):null;return!0}function jP(){for(var e=sr;e;)e=$l(e.nextSibling)}function Li(){sr=ir=null,Mt=!1}function Zv(e){Gr===null?Gr=[e]:Gr.push(e)}var vR=Xo.ReactCurrentBatchConfig;function Vr(e,t){if(e&&e.defaultProps){t=Ot({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var lf=zl(null),sf=null,xi=null,Jv=null;function e0(){Jv=xi=sf=null}function t0(e){var t=lf.current;Ct(lf),e._currentValue=t}function Mm(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 $i(e,t){sf=e,Jv=xi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(zn=!0),e.firstContext=null)}function Fr(e){var t=e._currentValue;if(Jv!==e)if(e={context:e,memoizedValue:t,next:null},xi===null){if(sf===null)throw Error(he(308));xi=e,sf.dependencies={lanes:0,firstContext:e}}else xi=xi.next=e;return t}var ts=null;function n0(e){ts===null?ts=[e]:ts.push(e)}function DP(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,n0(t)):(n.next=o.next,o.next=n),t.interleaved=n,Uo(e,r)}function Uo(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 dl=!1;function r0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function AP(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 Ho(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function El(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ze&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Uo(e,n)}return o=r.interleaved,o===null?(t.next=t,n0(r)):(t.next=o.next,o.next=t),r.interleaved=t,Uo(e,n)}function Md(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,Bv(e,n)}}function hb(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=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};l===null?o=l=s:l=l.next=s,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:l,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 af(e,t,n,r){var o=e.updateQueue;dl=!1;var l=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var a=i,c=a.next;a.next=null,s===null?l=c:s.next=c,s=a;var u=e.alternate;u!==null&&(u=u.updateQueue,i=u.lastBaseUpdate,i!==s&&(i===null?u.firstBaseUpdate=c:i.next=c,u.lastBaseUpdate=a))}if(l!==null){var d=o.baseState;s=0,u=c=a=null,i=l;do{var h=i.lane,g=i.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:g,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var m=e,x=i;switch(h=t,g=n,x.tag){case 1:if(m=x.payload,typeof m=="function"){d=m.call(g,d,h);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=x.payload,h=typeof m=="function"?m.call(g,d,h):m,h==null)break e;d=Ot({},d,h);break e;case 2:dl=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[i]:h.push(i))}else g={eventTime:g,lane:h,tag:i.tag,payload:i.payload,callback:i.callback,next:null},u===null?(c=u=g,a=d):u=u.next=g,s|=h;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;h=i,i=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(u===null&&(a=d),o.baseState=a,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);bs|=s,e.lanes=s,e.memoizedState=d}}function gb(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(he(191,o));o.call(r)}}}var LP=new DS.Component().refs;function Im(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ot({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fp={isMounted:function(e){return(e=e._reactInternals)?_s(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=On(),o=Rl(e),l=Ho(r,o);l.payload=t,n!=null&&(l.callback=n),t=El(e,l,o),t!==null&&(eo(t,e,o,r),Md(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=On(),o=Rl(e),l=Ho(r,o);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=El(e,l,o),t!==null&&(eo(t,e,o,r),Md(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=On(),r=Rl(e),o=Ho(n,r);o.tag=2,t!=null&&(o.callback=t),t=El(e,o,r),t!==null&&(eo(t,e,r,n),Md(t,e,r))}};function mb(e,t,n,r,o,l,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,s):t.prototype&&t.prototype.isPureReactComponent?!Ec(n,r)||!Ec(o,l):!0}function NP(e,t,n){var r=!1,o=Al,l=t.contextType;return typeof l=="object"&&l!==null?l=Fr(l):(o=Un(t)?vs:kn.current,r=t.contextTypes,l=(r=r!=null)?Ai(e,o):Al),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=fp,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=l),t}function vb(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&&fp.enqueueReplaceState(t,t.state,null)}function $m(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=LP,r0(e);var l=t.contextType;typeof l=="object"&&l!==null?o.context=Fr(l):(l=Un(t)?vs:kn.current,o.context=Ai(e,l)),o.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Im(e,t,l,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&&fp.enqueueReplaceState(o,o.state,null),af(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Ta(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(he(309));var r=n.stateNode}if(!r)throw Error(he(147,e));var o=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(s){var i=o.refs;i===LP&&(i=o.refs={}),s===null?delete i[l]:i[l]=s},t._stringRef=l,t)}if(typeof e!="string")throw Error(he(284));if(!n._owner)throw Error(he(290,e))}return e}function Xu(e,t){throw e=Object.prototype.toString.call(t),Error(he(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yb(e){var t=e._init;return t(e._payload)}function HP(e){function t(b,y){if(e){var C=b.deletions;C===null?(b.deletions=[y],b.flags|=16):C.push(y)}}function n(b,y){if(!e)return null;for(;y!==null;)t(b,y),y=y.sibling;return null}function r(b,y){for(b=new Map;y!==null;)y.key!==null?b.set(y.key,y):b.set(y.index,y),y=y.sibling;return b}function o(b,y){return b=Ol(b,y),b.index=0,b.sibling=null,b}function l(b,y,C){return b.index=C,e?(C=b.alternate,C!==null?(C=C.index,C<y?(b.flags|=2,y):C):(b.flags|=2,y)):(b.flags|=1048576,y)}function s(b){return e&&b.alternate===null&&(b.flags|=2),b}function i(b,y,C,S){return y===null||y.tag!==6?(y=ag(C,b.mode,S),y.return=b,y):(y=o(y,C),y.return=b,y)}function a(b,y,C,S){var I=C.type;return I===di?u(b,y,C.props.children,S,C.key):y!==null&&(y.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ul&&yb(I)===y.type)?(S=o(y,C.props),S.ref=Ta(b,y,C),S.return=b,S):(S=Od(C.type,C.key,C.props,null,b.mode,S),S.ref=Ta(b,y,C),S.return=b,S)}function c(b,y,C,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==C.containerInfo||y.stateNode.implementation!==C.implementation?(y=cg(C,b.mode,S),y.return=b,y):(y=o(y,C.children||[]),y.return=b,y)}function u(b,y,C,S,I){return y===null||y.tag!==7?(y=as(C,b.mode,S,I),y.return=b,y):(y=o(y,C),y.return=b,y)}function d(b,y,C){if(typeof y=="string"&&y!==""||typeof y=="number")return y=ag(""+y,b.mode,C),y.return=b,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Nu:return C=Od(y.type,y.key,y.props,null,b.mode,C),C.ref=Ta(b,null,y),C.return=b,C;case ui:return y=cg(y,b.mode,C),y.return=b,y;case ul:var S=y._init;return d(b,S(y._payload),C)}if(Ya(y)||ka(y))return y=as(y,b.mode,C,null),y.return=b,y;Xu(b,y)}return null}function h(b,y,C,S){var I=y!==null?y.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return I!==null?null:i(b,y,""+C,S);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Nu:return C.key===I?a(b,y,C,S):null;case ui:return C.key===I?c(b,y,C,S):null;case ul:return I=C._init,h(b,y,I(C._payload),S)}if(Ya(C)||ka(C))return I!==null?null:u(b,y,C,S,null);Xu(b,C)}return null}function g(b,y,C,S,I){if(typeof S=="string"&&S!==""||typeof S=="number")return b=b.get(C)||null,i(y,b,""+S,I);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Nu:return b=b.get(S.key===null?C:S.key)||null,a(y,b,S,I);case ui:return b=b.get(S.key===null?C:S.key)||null,c(y,b,S,I);case ul:var P=S._init;return g(b,y,C,P(S._payload),I)}if(Ya(S)||ka(S))return b=b.get(C)||null,u(y,b,S,I,null);Xu(y,S)}return null}function m(b,y,C,S){for(var I=null,P=null,k=y,$=y=0,D=null;k!==null&&$<C.length;$++){k.index>$?(D=k,k=null):D=k.sibling;var O=h(b,k,C[$],S);if(O===null){k===null&&(k=D);break}e&&k&&O.alternate===null&&t(b,k),y=l(O,y,$),P===null?I=O:P.sibling=O,P=O,k=D}if($===C.length)return n(b,k),Mt&&Kl(b,$),I;if(k===null){for(;$<C.length;$++)k=d(b,C[$],S),k!==null&&(y=l(k,y,$),P===null?I=k:P.sibling=k,P=k);return Mt&&Kl(b,$),I}for(k=r(b,k);$<C.length;$++)D=g(k,b,$,C[$],S),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?$:D.key),y=l(D,y,$),P===null?I=D:P.sibling=D,P=D);return e&&k.forEach(function(R){return t(b,R)}),Mt&&Kl(b,$),I}function x(b,y,C,S){var I=ka(C);if(typeof I!="function")throw Error(he(150));if(C=I.call(C),C==null)throw Error(he(151));for(var P=I=null,k=y,$=y=0,D=null,O=C.next();k!==null&&!O.done;$++,O=C.next()){k.index>$?(D=k,k=null):D=k.sibling;var R=h(b,k,O.value,S);if(R===null){k===null&&(k=D);break}e&&k&&R.alternate===null&&t(b,k),y=l(R,y,$),P===null?I=R:P.sibling=R,P=R,k=D}if(O.done)return n(b,k),Mt&&Kl(b,$),I;if(k===null){for(;!O.done;$++,O=C.next())O=d(b,O.value,S),O!==null&&(y=l(O,y,$),P===null?I=O:P.sibling=O,P=O);return Mt&&Kl(b,$),I}for(k=r(b,k);!O.done;$++,O=C.next())O=g(k,b,$,O.value,S),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?$:O.key),y=l(O,y,$),P===null?I=O:P.sibling=O,P=O);return e&&k.forEach(function(L){return t(b,L)}),Mt&&Kl(b,$),I}function w(b,y,C,S){if(typeof C=="object"&&C!==null&&C.type===di&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Nu:e:{for(var I=C.key,P=y;P!==null;){if(P.key===I){if(I=C.type,I===di){if(P.tag===7){n(b,P.sibling),y=o(P,C.props.children),y.return=b,b=y;break e}}else if(P.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ul&&yb(I)===P.type){n(b,P.sibling),y=o(P,C.props),y.ref=Ta(b,P,C),y.return=b,b=y;break e}n(b,P);break}else t(b,P);P=P.sibling}C.type===di?(y=as(C.props.children,b.mode,S,C.key),y.return=b,b=y):(S=Od(C.type,C.key,C.props,null,b.mode,S),S.ref=Ta(b,y,C),S.return=b,b=S)}return s(b);case ui:e:{for(P=C.key;y!==null;){if(y.key===P)if(y.tag===4&&y.stateNode.containerInfo===C.containerInfo&&y.stateNode.implementation===C.implementation){n(b,y.sibling),y=o(y,C.children||[]),y.return=b,b=y;break e}else{n(b,y);break}else t(b,y);y=y.sibling}y=cg(C,b.mode,S),y.return=b,b=y}return s(b);case ul:return P=C._init,w(b,y,P(C._payload),S)}if(Ya(C))return m(b,y,C,S);if(ka(C))return x(b,y,C,S);Xu(b,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,y!==null&&y.tag===6?(n(b,y.sibling),y=o(y,C),y.return=b,b=y):(n(b,y),y=ag(C,b.mode,S),y.return=b,b=y),s(b)):n(b,y)}return w}var Ni=HP(!0),zP=HP(!1),vu={},Co=zl(vu),_c=zl(vu),Fc=zl(vu);function ns(e){if(e===vu)throw Error(he(174));return e}function o0(e,t){switch(mt(Fc,t),mt(_c,e),mt(Co,vu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=sm(t,e)}Ct(Co),mt(Co,t)}function Hi(){Ct(Co),Ct(_c),Ct(Fc)}function BP(e){ns(Fc.current);var t=ns(Co.current),n=sm(t,e.type);t!==n&&(mt(_c,e),mt(Co,n))}function l0(e){_c.current===e&&(Ct(Co),Ct(_c))}var $t=zl(0);function cf(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 ng=[];function s0(){for(var e=0;e<ng.length;e++)ng[e]._workInProgressVersionPrimary=null;ng.length=0}var Id=Xo.ReactCurrentDispatcher,rg=Xo.ReactCurrentBatchConfig,xs=0,Et=null,qt=null,tn=null,uf=!1,cc=!1,jc=0,yR=0;function bn(){throw Error(he(321))}function i0(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!no(e[n],t[n]))return!1;return!0}function a0(e,t,n,r,o,l){if(xs=l,Et=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Id.current=e===null||e.memoizedState===null?wR:SR,e=n(r,o),cc){l=0;do{if(cc=!1,jc=0,25<=l)throw Error(he(301));l+=1,tn=qt=null,t.updateQueue=null,Id.current=PR,e=n(r,o)}while(cc)}if(Id.current=df,t=qt!==null&&qt.next!==null,xs=0,tn=qt=Et=null,uf=!1,t)throw Error(he(300));return e}function c0(){var e=jc!==0;return jc=0,e}function po(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tn===null?Et.memoizedState=tn=e:tn=tn.next=e,tn}function jr(){if(qt===null){var e=Et.alternate;e=e!==null?e.memoizedState:null}else e=qt.next;var t=tn===null?Et.memoizedState:tn.next;if(t!==null)tn=t,qt=e;else{if(e===null)throw Error(he(310));qt=e,e={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},tn===null?Et.memoizedState=tn=e:tn=tn.next=e}return tn}function Dc(e,t){return typeof t=="function"?t(e):t}function og(e){var t=jr(),n=t.queue;if(n===null)throw Error(he(311));n.lastRenderedReducer=e;var r=qt,o=r.baseQueue,l=n.pending;if(l!==null){if(o!==null){var s=o.next;o.next=l.next,l.next=s}r.baseQueue=o=l,n.pending=null}if(o!==null){l=o.next,r=r.baseState;var i=s=null,a=null,c=l;do{var u=c.lane;if((xs&u)===u)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(i=a=d,s=r):a=a.next=d,Et.lanes|=u,bs|=u}c=c.next}while(c!==null&&c!==l);a===null?s=r:a.next=i,no(r,t.memoizedState)||(zn=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do l=o.lane,Et.lanes|=l,bs|=l,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function lg(e){var t=jr(),n=t.queue;if(n===null)throw Error(he(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,l=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do l=e(l,s.action),s=s.next;while(s!==o);no(l,t.memoizedState)||(zn=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function VP(){}function UP(e,t){var n=Et,r=jr(),o=t(),l=!no(r.memoizedState,o);if(l&&(r.memoizedState=o,zn=!0),r=r.queue,u0(KP.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||tn!==null&&tn.memoizedState.tag&1){if(n.flags|=2048,Ac(9,GP.bind(null,n,r,o,t),void 0,null),nn===null)throw Error(he(349));xs&30||WP(n,t,o)}return o}function WP(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Et.updateQueue,t===null?(t={lastEffect:null,stores:null},Et.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function GP(e,t,n,r){t.value=n,t.getSnapshot=r,qP(t)&&YP(e)}function KP(e,t,n){return n(function(){qP(t)&&YP(e)})}function qP(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!no(e,n)}catch{return!0}}function YP(e){var t=Uo(e,1);t!==null&&eo(t,e,1,-1)}function xb(e){var t=po();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Dc,lastRenderedState:e},t.queue=e,e=e.dispatch=CR.bind(null,Et,e),[t.memoizedState,e]}function Ac(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Et.updateQueue,t===null?(t={lastEffect:null,stores:null},Et.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 XP(){return jr().memoizedState}function $d(e,t,n,r){var o=po();Et.flags|=e,o.memoizedState=Ac(1|t,n,void 0,r===void 0?null:r)}function pp(e,t,n,r){var o=jr();r=r===void 0?null:r;var l=void 0;if(qt!==null){var s=qt.memoizedState;if(l=s.destroy,r!==null&&i0(r,s.deps)){o.memoizedState=Ac(t,n,l,r);return}}Et.flags|=e,o.memoizedState=Ac(1|t,n,l,r)}function bb(e,t){return $d(8390656,8,e,t)}function u0(e,t){return pp(2048,8,e,t)}function QP(e,t){return pp(4,2,e,t)}function ZP(e,t){return pp(4,4,e,t)}function JP(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 ek(e,t,n){return n=n!=null?n.concat([e]):null,pp(4,4,JP.bind(null,t,e),n)}function d0(){}function tk(e,t){var n=jr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&i0(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function nk(e,t){var n=jr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&i0(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function rk(e,t,n){return xs&21?(no(n,t)||(n=sP(),Et.lanes|=n,bs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,zn=!0),e.memoizedState=n)}function xR(e,t){var n=ut;ut=n!==0&&4>n?n:4,e(!0);var r=rg.transition;rg.transition={};try{e(!1),t()}finally{ut=n,rg.transition=r}}function ok(){return jr().memoizedState}function bR(e,t,n){var r=Rl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lk(e))sk(t,n);else if(n=DP(e,t,n,r),n!==null){var o=On();eo(n,e,r,o),ik(n,t,r)}}function CR(e,t,n){var r=Rl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lk(e))sk(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,i=l(s,n);if(o.hasEagerState=!0,o.eagerState=i,no(i,s)){var a=t.interleaved;a===null?(o.next=o,n0(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=DP(e,t,o,r),n!==null&&(o=On(),eo(n,e,r,o),ik(n,t,r))}}function lk(e){var t=e.alternate;return e===Et||t!==null&&t===Et}function sk(e,t){cc=uf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ik(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bv(e,n)}}var df={readContext:Fr,useCallback:bn,useContext:bn,useEffect:bn,useImperativeHandle:bn,useInsertionEffect:bn,useLayoutEffect:bn,useMemo:bn,useReducer:bn,useRef:bn,useState:bn,useDebugValue:bn,useDeferredValue:bn,useTransition:bn,useMutableSource:bn,useSyncExternalStore:bn,useId:bn,unstable_isNewReconciler:!1},wR={readContext:Fr,useCallback:function(e,t){return po().memoizedState=[e,t===void 0?null:t],e},useContext:Fr,useEffect:bb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$d(4194308,4,JP.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $d(4194308,4,e,t)},useInsertionEffect:function(e,t){return $d(4,2,e,t)},useMemo:function(e,t){var n=po();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=po();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=bR.bind(null,Et,e),[r.memoizedState,e]},useRef:function(e){var t=po();return e={current:e},t.memoizedState=e},useState:xb,useDebugValue:d0,useDeferredValue:function(e){return po().memoizedState=e},useTransition:function(){var e=xb(!1),t=e[0];return e=xR.bind(null,e[1]),po().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Et,o=po();if(Mt){if(n===void 0)throw Error(he(407));n=n()}else{if(n=t(),nn===null)throw Error(he(349));xs&30||WP(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,bb(KP.bind(null,r,l,e),[e]),r.flags|=2048,Ac(9,GP.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=po(),t=nn.identifierPrefix;if(Mt){var n=Do,r=jo;n=(r&~(1<<32-Jr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=jc++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=yR++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},SR={readContext:Fr,useCallback:tk,useContext:Fr,useEffect:u0,useImperativeHandle:ek,useInsertionEffect:QP,useLayoutEffect:ZP,useMemo:nk,useReducer:og,useRef:XP,useState:function(){return og(Dc)},useDebugValue:d0,useDeferredValue:function(e){var t=jr();return rk(t,qt.memoizedState,e)},useTransition:function(){var e=og(Dc)[0],t=jr().memoizedState;return[e,t]},useMutableSource:VP,useSyncExternalStore:UP,useId:ok,unstable_isNewReconciler:!1},PR={readContext:Fr,useCallback:tk,useContext:Fr,useEffect:u0,useImperativeHandle:ek,useInsertionEffect:QP,useLayoutEffect:ZP,useMemo:nk,useReducer:lg,useRef:XP,useState:function(){return lg(Dc)},useDebugValue:d0,useDeferredValue:function(e){var t=jr();return qt===null?t.memoizedState=e:rk(t,qt.memoizedState,e)},useTransition:function(){var e=lg(Dc)[0],t=jr().memoizedState;return[e,t]},useMutableSource:VP,useSyncExternalStore:UP,useId:ok,unstable_isNewReconciler:!1};function zi(e,t){try{var n="",r=t;do n+=ZE(r),r=r.return;while(r);var o=n}catch(l){o=`
Error generating stack: `+l.message+`
`+l.stack}return{value:e,source:t,stack:o,digest:null}}function sg(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Em(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var kR=typeof WeakMap=="function"?WeakMap:Map;function ak(e,t,n){n=Ho(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pf||(pf=!0,Nm=r),Em(e,t)},n}function ck(e,t,n){n=Ho(-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(){Em(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Em(e,t),typeof r!="function"&&(Tl===null?Tl=new Set([this]):Tl.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Cb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new kR;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=NR.bind(null,e,t,n),t.then(e,e))}function wb(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 Sb(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=Ho(-1,1),t.tag=2,El(n,t,1))),n.lanes|=1),e)}var MR=Xo.ReactCurrentOwner,zn=!1;function En(e,t,n,r){t.child=e===null?zP(t,null,n,r):Ni(t,e.child,n,r)}function Pb(e,t,n,r,o){n=n.render;var l=t.ref;return $i(t,o),r=a0(e,t,n,r,l,o),n=c0(),e!==null&&!zn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wo(e,t,o)):(Mt&&n&&Xv(t),t.flags|=1,En(e,t,r,o),t.child)}function kb(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!x0(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,uk(e,t,l,r,o)):(e=Od(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&o)){var s=l.memoizedProps;if(n=n.compare,n=n!==null?n:Ec,n(s,r)&&e.ref===t.ref)return Wo(e,t,o)}return t.flags|=1,e=Ol(l,r),e.ref=t.ref,e.return=t,t.child=e}function uk(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(Ec(l,r)&&e.ref===t.ref)if(zn=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(zn=!0);else return t.lanes=e.lanes,Wo(e,t,o)}return Tm(e,t,n,r,o)}function dk(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},mt(Ci,Jn),Jn|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,mt(Ci,Jn),Jn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,mt(Ci,Jn),Jn|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,mt(Ci,Jn),Jn|=r;return En(e,t,o,n),t.child}function fk(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Tm(e,t,n,r,o){var l=Un(n)?vs:kn.current;return l=Ai(t,l),$i(t,o),n=a0(e,t,n,r,l,o),r=c0(),e!==null&&!zn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wo(e,t,o)):(Mt&&r&&Xv(t),t.flags|=1,En(e,t,n,o),t.child)}function Mb(e,t,n,r,o){if(Un(n)){var l=!0;nf(t)}else l=!1;if($i(t,o),t.stateNode===null)Ed(e,t),NP(t,n,r),$m(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var a=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=Fr(c):(c=Un(n)?vs:kn.current,c=Ai(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||a!==c)&&vb(t,s,r,c),dl=!1;var h=t.memoizedState;s.state=h,af(t,r,s,o),a=t.memoizedState,i!==r||h!==a||Vn.current||dl?(typeof u=="function"&&(Im(t,n,u,r),a=t.memoizedState),(i=dl||mb(t,n,i,r,h,a,c))?(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=c,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,AP(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:Vr(t.type,i),s.props=c,d=t.pendingProps,h=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Fr(a):(a=Un(n)?vs:kn.current,a=Ai(t,a));var g=n.getDerivedStateFromProps;(u=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==d||h!==a)&&vb(t,s,r,a),dl=!1,h=t.memoizedState,s.state=h,af(t,r,s,o);var m=t.memoizedState;i!==d||h!==m||Vn.current||dl?(typeof g=="function"&&(Im(t,n,g,r),m=t.memoizedState),(c=dl||mb(t,n,c,r,h,m,a)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,m,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,m,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),s.props=r,s.state=m,s.context=a,r=c):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Rm(e,t,n,r,l,o)}function Rm(e,t,n,r,o,l){fk(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&db(t,n,!1),Wo(e,t,l);r=t.stateNode,MR.current=t;var i=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ni(t,e.child,null,l),t.child=Ni(t,null,i,l)):En(e,t,i,l),t.memoizedState=r.state,o&&db(t,n,!0),t.child}function pk(e){var t=e.stateNode;t.pendingContext?ub(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ub(e,t.context,!1),o0(e,t.containerInfo)}function Ib(e,t,n,r,o){return Li(),Zv(o),t.flags|=256,En(e,t,n,r),t.child}var Om={dehydrated:null,treeContext:null,retryLane:0};function _m(e){return{baseLanes:e,cachePool:null,transitions:null}}function hk(e,t,n){var r=t.pendingProps,o=$t.current,l=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),mt($t,o&1),e===null)return km(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,l?(r=t.mode,l=t.child,s={mode:"hidden",children:s},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=s):l=mp(s,r,0,null),e=as(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=_m(n),t.memoizedState=Om,e):f0(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return IR(e,t,s,r,i,o,n);if(l){l=r.fallback,s=t.mode,o=e.child,i=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=Ol(o,a),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?l=Ol(i,l):(l=as(l,s,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,s=e.child.memoizedState,s=s===null?_m(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Om,r}return l=e.child,e=l.sibling,r=Ol(l,{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 f0(e,t){return t=mp({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qu(e,t,n,r){return r!==null&&Zv(r),Ni(t,e.child,null,n),e=f0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function IR(e,t,n,r,o,l,s){if(n)return t.flags&256?(t.flags&=-257,r=sg(Error(he(422))),Qu(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=mp({mode:"visible",children:r.children},o,0,null),l=as(l,o,s,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Ni(t,e.child,null,s),t.child.memoizedState=_m(s),t.memoizedState=Om,l);if(!(t.mode&1))return Qu(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,l=Error(he(419)),r=sg(l,r,void 0),Qu(e,t,s,r)}if(i=(s&e.childLanes)!==0,zn||i){if(r=nn,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!==l.retryLane&&(l.retryLane=o,Uo(e,o),eo(r,e,o,-1))}return y0(),r=sg(Error(he(421))),Qu(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=HR.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,sr=$l(o.nextSibling),ir=t,Mt=!0,Gr=null,e!==null&&(Pr[kr++]=jo,Pr[kr++]=Do,Pr[kr++]=ys,jo=e.id,Do=e.overflow,ys=t),t=f0(t,r.children),t.flags|=4096,t)}function $b(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Mm(e.return,t,n)}function ig(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o)}function gk(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(En(e,t,r.children,n),r=$t.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&&$b(e,n,t);else if(e.tag===19)$b(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(mt($t,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&&cf(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ig(t,!1,o,n,l);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&cf(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ig(t,!0,n,null,l);break;case"together":ig(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ed(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),bs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(he(153));if(t.child!==null){for(e=t.child,n=Ol(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ol(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $R(e,t,n){switch(t.tag){case 3:pk(t),Li();break;case 5:BP(t);break;case 1:Un(t.type)&&nf(t);break;case 4:o0(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;mt(lf,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(mt($t,$t.current&1),t.flags|=128,null):n&t.child.childLanes?hk(e,t,n):(mt($t,$t.current&1),e=Wo(e,t,n),e!==null?e.sibling:null);mt($t,$t.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return gk(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),mt($t,$t.current),r)break;return null;case 22:case 23:return t.lanes=0,dk(e,t,n)}return Wo(e,t,n)}var mk,Fm,vk,yk;mk=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}};Fm=function(){};vk=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ns(Co.current);var l=null;switch(n){case"input":o=nm(e,o),r=nm(e,r),l=[];break;case"select":o=Ot({},o,{value:void 0}),r=Ot({},r,{value:void 0}),l=[];break;case"textarea":o=lm(e,o),r=lm(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ef)}im(n,r);var s;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var i=o[c];for(s in i)i.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(wc.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var a=r[c];if(i=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&a!==i&&(a!=null||i!=null))if(c==="style")if(i){for(s in i)!i.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&i[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(l||(l=[]),l.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,i=i?i.__html:void 0,a!=null&&i!==a&&(l=l||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(wc.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&xt("scroll",e),l||i===a||(l=[])):(l=l||[]).push(c,a))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}};yk=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ra(e,t){if(!Mt)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 Cn(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 ER(e,t,n){var r=t.pendingProps;switch(Qv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Cn(t),null;case 1:return Un(t.type)&&tf(),Cn(t),null;case 3:return r=t.stateNode,Hi(),Ct(Vn),Ct(kn),s0(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Yu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gr!==null&&(Bm(Gr),Gr=null))),Fm(e,t),Cn(t),null;case 5:l0(t);var o=ns(Fc.current);if(n=t.type,e!==null&&t.stateNode!=null)vk(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(he(166));return Cn(t),null}if(e=ns(Co.current),Yu(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[yo]=t,r[Oc]=l,e=(t.mode&1)!==0,n){case"dialog":xt("cancel",r),xt("close",r);break;case"iframe":case"object":case"embed":xt("load",r);break;case"video":case"audio":for(o=0;o<Qa.length;o++)xt(Qa[o],r);break;case"source":xt("error",r);break;case"img":case"image":case"link":xt("error",r),xt("load",r);break;case"details":xt("toggle",r);break;case"input":Ax(r,l),xt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},xt("invalid",r);break;case"textarea":Nx(r,l),xt("invalid",r)}im(n,l),o=null;for(var s in l)if(l.hasOwnProperty(s)){var i=l[s];s==="children"?typeof i=="string"?r.textContent!==i&&(l.suppressHydrationWarning!==!0&&qu(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(l.suppressHydrationWarning!==!0&&qu(r.textContent,i,e),o=["children",""+i]):wc.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&xt("scroll",r)}switch(n){case"input":Hu(r),Lx(r,l,!0);break;case"textarea":Hu(r),Hx(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=ef)}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=WS(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[yo]=t,e[Oc]=r,mk(e,t,!1,!1),t.stateNode=e;e:{switch(s=am(n,r),n){case"dialog":xt("cancel",e),xt("close",e),o=r;break;case"iframe":case"object":case"embed":xt("load",e),o=r;break;case"video":case"audio":for(o=0;o<Qa.length;o++)xt(Qa[o],e);o=r;break;case"source":xt("error",e),o=r;break;case"img":case"image":case"link":xt("error",e),xt("load",e),o=r;break;case"details":xt("toggle",e),o=r;break;case"input":Ax(e,r),o=nm(e,r),xt("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ot({},r,{value:void 0}),xt("invalid",e);break;case"textarea":Nx(e,r),o=lm(e,r),xt("invalid",e);break;default:o=r}im(n,o),i=o;for(l in i)if(i.hasOwnProperty(l)){var a=i[l];l==="style"?qS(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&GS(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Sc(e,a):typeof a=="number"&&Sc(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(wc.hasOwnProperty(l)?a!=null&&l==="onScroll"&&xt("scroll",e):a!=null&&Dv(e,l,a,s))}switch(n){case"input":Hu(e),Lx(e,r,!1);break;case"textarea":Hu(e),Hx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Dl(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Pi(e,!!r.multiple,l,!1):r.defaultValue!=null&&Pi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ef)}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 Cn(t),null;case 6:if(e&&t.stateNode!=null)yk(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(he(166));if(n=ns(Fc.current),ns(Co.current),Yu(t)){if(r=t.stateNode,n=t.memoizedProps,r[yo]=t,(l=r.nodeValue!==n)&&(e=ir,e!==null))switch(e.tag){case 3:qu(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qu(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[yo]=t,t.stateNode=r}return Cn(t),null;case 13:if(Ct($t),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Mt&&sr!==null&&t.mode&1&&!(t.flags&128))jP(),Li(),t.flags|=98560,l=!1;else if(l=Yu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(he(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(he(317));l[yo]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Cn(t),l=!1}else Gr!==null&&(Bm(Gr),Gr=null),l=!0;if(!l)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||$t.current&1?Yt===0&&(Yt=3):y0())),t.updateQueue!==null&&(t.flags|=4),Cn(t),null);case 4:return Hi(),Fm(e,t),e===null&&Tc(t.stateNode.containerInfo),Cn(t),null;case 10:return t0(t.type._context),Cn(t),null;case 17:return Un(t.type)&&tf(),Cn(t),null;case 19:if(Ct($t),l=t.memoizedState,l===null)return Cn(t),null;if(r=(t.flags&128)!==0,s=l.rendering,s===null)if(r)Ra(l,!1);else{if(Yt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=cf(e),s!==null){for(t.flags|=128,Ra(l,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,s=l.alternate,s===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return mt($t,$t.current&1|2),t.child}e=e.sibling}l.tail!==null&&zt()>Bi&&(t.flags|=128,r=!0,Ra(l,!1),t.lanes=4194304)}else{if(!r)if(e=cf(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ra(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!Mt)return Cn(t),null}else 2*zt()-l.renderingStartTime>Bi&&n!==1073741824&&(t.flags|=128,r=!0,Ra(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=zt(),t.sibling=null,n=$t.current,mt($t,r?n&1|2:n&1),t):(Cn(t),null);case 22:case 23:return v0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Jn&1073741824&&(Cn(t),t.subtreeFlags&6&&(t.flags|=8192)):Cn(t),null;case 24:return null;case 25:return null}throw Error(he(156,t.tag))}function TR(e,t){switch(Qv(t),t.tag){case 1:return Un(t.type)&&tf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hi(),Ct(Vn),Ct(kn),s0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return l0(t),null;case 13:if(Ct($t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ct($t),null;case 4:return Hi(),null;case 10:return t0(t.type._context),null;case 22:case 23:return v0(),null;case 24:return null;default:return null}}var Zu=!1,Pn=!1,RR=typeof WeakSet=="function"?WeakSet:Set,$e=null;function bi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Nt(e,t,r)}else n.current=null}function jm(e,t,n){try{n()}catch(r){Nt(e,t,r)}}var Eb=!1;function OR(e,t){if(ym=Qd,e=wP(),Yv(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,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var s=0,i=-1,a=-1,c=0,u=0,d=e,h=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(i=s+o),d!==l||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(g=d.firstChild)!==null;)h=d,d=g;for(;;){if(d===e)break t;if(h===n&&++c===o&&(i=s),h===l&&++u===r&&(a=s),(g=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=g}n=i===-1||a===-1?null:{start:i,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(xm={focusedElem:e,selectionRange:n},Qd=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){t=$e;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var x=m.memoizedProps,w=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?x:Vr(t.type,x),w);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(he(163))}}catch(S){Nt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}return m=Eb,Eb=!1,m}function uc(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 l=o.destroy;o.destroy=void 0,l!==void 0&&jm(t,n,l)}o=o.next}while(o!==r)}}function hp(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 Dm(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 xk(e){var t=e.alternate;t!==null&&(e.alternate=null,xk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yo],delete t[Oc],delete t[wm],delete t[hR],delete t[gR])),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 bk(e){return e.tag===5||e.tag===3||e.tag===4}function Tb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bk(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 Am(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=ef));else if(r!==4&&(e=e.child,e!==null))for(Am(e,t,n),e=e.sibling;e!==null;)Am(e,t,n),e=e.sibling}function Lm(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(Lm(e,t,n),e=e.sibling;e!==null;)Lm(e,t,n),e=e.sibling}var an=null,Wr=!1;function rl(e,t,n){for(n=n.child;n!==null;)Ck(e,t,n),n=n.sibling}function Ck(e,t,n){if(bo&&typeof bo.onCommitFiberUnmount=="function")try{bo.onCommitFiberUnmount(sp,n)}catch{}switch(n.tag){case 5:Pn||bi(n,t);case 6:var r=an,o=Wr;an=null,rl(e,t,n),an=r,Wr=o,an!==null&&(Wr?(e=an,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):an.removeChild(n.stateNode));break;case 18:an!==null&&(Wr?(e=an,n=n.stateNode,e.nodeType===8?eg(e.parentNode,n):e.nodeType===1&&eg(e,n),Ic(e)):eg(an,n.stateNode));break;case 4:r=an,o=Wr,an=n.stateNode.containerInfo,Wr=!0,rl(e,t,n),an=r,Wr=o;break;case 0:case 11:case 14:case 15:if(!Pn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&jm(n,t,s),o=o.next}while(o!==r)}rl(e,t,n);break;case 1:if(!Pn&&(bi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Nt(n,t,i)}rl(e,t,n);break;case 21:rl(e,t,n);break;case 22:n.mode&1?(Pn=(r=Pn)||n.memoizedState!==null,rl(e,t,n),Pn=r):rl(e,t,n);break;default:rl(e,t,n)}}function Rb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new RR),t.forEach(function(r){var o=zR.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Br(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var l=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:an=i.stateNode,Wr=!1;break e;case 3:an=i.stateNode.containerInfo,Wr=!0;break e;case 4:an=i.stateNode.containerInfo,Wr=!0;break e}i=i.return}if(an===null)throw Error(he(160));Ck(l,s,o),an=null,Wr=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(c){Nt(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)wk(t,e),t=t.sibling}function wk(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Br(t,e),fo(e),r&4){try{uc(3,e,e.return),hp(3,e)}catch(x){Nt(e,e.return,x)}try{uc(5,e,e.return)}catch(x){Nt(e,e.return,x)}}break;case 1:Br(t,e),fo(e),r&512&&n!==null&&bi(n,n.return);break;case 5:if(Br(t,e),fo(e),r&512&&n!==null&&bi(n,n.return),e.flags&32){var o=e.stateNode;try{Sc(o,"")}catch(x){Nt(e,e.return,x)}}if(r&4&&(o=e.stateNode,o!=null)){var l=e.memoizedProps,s=n!==null?n.memoizedProps:l,i=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{i==="input"&&l.type==="radio"&&l.name!=null&&VS(o,l),am(i,s);var c=am(i,l);for(s=0;s<a.length;s+=2){var u=a[s],d=a[s+1];u==="style"?qS(o,d):u==="dangerouslySetInnerHTML"?GS(o,d):u==="children"?Sc(o,d):Dv(o,u,d,c)}switch(i){case"input":rm(o,l);break;case"textarea":US(o,l);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var g=l.value;g!=null?Pi(o,!!l.multiple,g,!1):h!==!!l.multiple&&(l.defaultValue!=null?Pi(o,!!l.multiple,l.defaultValue,!0):Pi(o,!!l.multiple,l.multiple?[]:"",!1))}o[Oc]=l}catch(x){Nt(e,e.return,x)}}break;case 6:if(Br(t,e),fo(e),r&4){if(e.stateNode===null)throw Error(he(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(x){Nt(e,e.return,x)}}break;case 3:if(Br(t,e),fo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ic(t.containerInfo)}catch(x){Nt(e,e.return,x)}break;case 4:Br(t,e),fo(e);break;case 13:Br(t,e),fo(e),o=e.child,o.flags&8192&&(l=o.memoizedState!==null,o.stateNode.isHidden=l,!l||o.alternate!==null&&o.alternate.memoizedState!==null||(g0=zt())),r&4&&Rb(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Pn=(c=Pn)||u,Br(t,e),Pn=c):Br(t,e),fo(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for($e=e,u=e.child;u!==null;){for(d=$e=u;$e!==null;){switch(h=$e,g=h.child,h.tag){case 0:case 11:case 14:case 15:uc(4,h,h.return);break;case 1:bi(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(x){Nt(r,n,x)}}break;case 5:bi(h,h.return);break;case 22:if(h.memoizedState!==null){_b(d);continue}}g!==null?(g.return=h,$e=g):_b(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,c?(l=o.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(i=d.stateNode,a=d.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,i.style.display=KS("display",s))}catch(x){Nt(e,e.return,x)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(x){Nt(e,e.return,x)}}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;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Br(t,e),fo(e),r&4&&Rb(e);break;case 21:break;default:Br(t,e),fo(e)}}function fo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(bk(n)){var r=n;break e}n=n.return}throw Error(he(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Sc(o,""),r.flags&=-33);var l=Tb(e);Lm(e,l,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=Tb(e);Am(e,i,s);break;default:throw Error(he(161))}}catch(a){Nt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _R(e,t,n){$e=e,Sk(e)}function Sk(e,t,n){for(var r=(e.mode&1)!==0;$e!==null;){var o=$e,l=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Zu;if(!s){var i=o.alternate,a=i!==null&&i.memoizedState!==null||Pn;i=Zu;var c=Pn;if(Zu=s,(Pn=a)&&!c)for($e=o;$e!==null;)s=$e,a=s.child,s.tag===22&&s.memoizedState!==null?Fb(o):a!==null?(a.return=s,$e=a):Fb(o);for(;l!==null;)$e=l,Sk(l),l=l.sibling;$e=o,Zu=i,Pn=c}Ob(e)}else o.subtreeFlags&8772&&l!==null?(l.return=o,$e=l):Ob(e)}}function Ob(e){for(;$e!==null;){var t=$e;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Pn||hp(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Pn)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Vr(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&gb(t,l,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}gb(t,s,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;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 c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Ic(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(he(163))}Pn||t.flags&512&&Dm(t)}catch(h){Nt(t,t.return,h)}}if(t===e){$e=null;break}if(n=t.sibling,n!==null){n.return=t.return,$e=n;break}$e=t.return}}function _b(e){for(;$e!==null;){var t=$e;if(t===e){$e=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$e=n;break}$e=t.return}}function Fb(e){for(;$e!==null;){var t=$e;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{hp(4,t)}catch(a){Nt(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Nt(t,o,a)}}var l=t.return;try{Dm(t)}catch(a){Nt(t,l,a)}break;case 5:var s=t.return;try{Dm(t)}catch(a){Nt(t,s,a)}}}catch(a){Nt(t,t.return,a)}if(t===e){$e=null;break}var i=t.sibling;if(i!==null){i.return=t.return,$e=i;break}$e=t.return}}var FR=Math.ceil,ff=Xo.ReactCurrentDispatcher,p0=Xo.ReactCurrentOwner,Or=Xo.ReactCurrentBatchConfig,Ze=0,nn=null,Wt=null,pn=0,Jn=0,Ci=zl(0),Yt=0,Lc=null,bs=0,gp=0,h0=0,dc=null,Ln=null,g0=0,Bi=1/0,_o=null,pf=!1,Nm=null,Tl=null,Ju=!1,xl=null,hf=0,fc=0,Hm=null,Td=-1,Rd=0;function On(){return Ze&6?zt():Td!==-1?Td:Td=zt()}function Rl(e){return e.mode&1?Ze&2&&pn!==0?pn&-pn:vR.transition!==null?(Rd===0&&(Rd=sP()),Rd):(e=ut,e!==0||(e=window.event,e=e===void 0?16:pP(e.type)),e):1}function eo(e,t,n,r){if(50<fc)throw fc=0,Hm=null,Error(he(185));hu(e,n,r),(!(Ze&2)||e!==nn)&&(e===nn&&(!(Ze&2)&&(gp|=n),Yt===4&&gl(e,pn)),Wn(e,r),n===1&&Ze===0&&!(t.mode&1)&&(Bi=zt()+500,dp&&Bl()))}function Wn(e,t){var n=e.callbackNode;vT(e,t);var r=Xd(e,e===nn?pn:0);if(r===0)n!==null&&Vx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Vx(n),t===1)e.tag===0?mR(jb.bind(null,e)):OP(jb.bind(null,e)),fR(function(){!(Ze&6)&&Bl()}),n=null;else{switch(iP(r)){case 1:n=zv;break;case 4:n=oP;break;case 16:n=Yd;break;case 536870912:n=lP;break;default:n=Yd}n=Rk(n,Pk.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Pk(e,t){if(Td=-1,Rd=0,Ze&6)throw Error(he(327));var n=e.callbackNode;if(Ei()&&e.callbackNode!==n)return null;var r=Xd(e,e===nn?pn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=gf(e,r);else{t=r;var o=Ze;Ze|=2;var l=Mk();(nn!==e||pn!==t)&&(_o=null,Bi=zt()+500,is(e,t));do try{AR();break}catch(i){kk(e,i)}while(!0);e0(),ff.current=l,Ze=o,Wt!==null?t=0:(nn=null,pn=0,t=Yt)}if(t!==0){if(t===2&&(o=pm(e),o!==0&&(r=o,t=zm(e,o))),t===1)throw n=Lc,is(e,0),gl(e,r),Wn(e,zt()),n;if(t===6)gl(e,r);else{if(o=e.current.alternate,!(r&30)&&!jR(o)&&(t=gf(e,r),t===2&&(l=pm(e),l!==0&&(r=l,t=zm(e,l))),t===1))throw n=Lc,is(e,0),gl(e,r),Wn(e,zt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(he(345));case 2:ql(e,Ln,_o);break;case 3:if(gl(e,r),(r&130023424)===r&&(t=g0+500-zt(),10<t)){if(Xd(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){On(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Cm(ql.bind(null,e,Ln,_o),t);break}ql(e,Ln,_o);break;case 4:if(gl(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Jr(r);l=1<<s,s=t[s],s>o&&(o=s),r&=~l}if(r=o,r=zt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*FR(r/1960))-r,10<r){e.timeoutHandle=Cm(ql.bind(null,e,Ln,_o),r);break}ql(e,Ln,_o);break;case 5:ql(e,Ln,_o);break;default:throw Error(he(329))}}}return Wn(e,zt()),e.callbackNode===n?Pk.bind(null,e):null}function zm(e,t){var n=dc;return e.current.memoizedState.isDehydrated&&(is(e,t).flags|=256),e=gf(e,t),e!==2&&(t=Ln,Ln=n,t!==null&&Bm(t)),e}function Bm(e){Ln===null?Ln=e:Ln.push.apply(Ln,e)}function jR(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],l=o.getSnapshot;o=o.value;try{if(!no(l(),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 gl(e,t){for(t&=~h0,t&=~gp,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Jr(t),r=1<<n;e[n]=-1,t&=~r}}function jb(e){if(Ze&6)throw Error(he(327));Ei();var t=Xd(e,0);if(!(t&1))return Wn(e,zt()),null;var n=gf(e,t);if(e.tag!==0&&n===2){var r=pm(e);r!==0&&(t=r,n=zm(e,r))}if(n===1)throw n=Lc,is(e,0),gl(e,t),Wn(e,zt()),n;if(n===6)throw Error(he(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ql(e,Ln,_o),Wn(e,zt()),null}function m0(e,t){var n=Ze;Ze|=1;try{return e(t)}finally{Ze=n,Ze===0&&(Bi=zt()+500,dp&&Bl())}}function Cs(e){xl!==null&&xl.tag===0&&!(Ze&6)&&Ei();var t=Ze;Ze|=1;var n=Or.transition,r=ut;try{if(Or.transition=null,ut=1,e)return e()}finally{ut=r,Or.transition=n,Ze=t,!(Ze&6)&&Bl()}}function v0(){Jn=Ci.current,Ct(Ci)}function is(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,dR(n)),Wt!==null)for(n=Wt.return;n!==null;){var r=n;switch(Qv(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&tf();break;case 3:Hi(),Ct(Vn),Ct(kn),s0();break;case 5:l0(r);break;case 4:Hi();break;case 13:Ct($t);break;case 19:Ct($t);break;case 10:t0(r.type._context);break;case 22:case 23:v0()}n=n.return}if(nn=e,Wt=e=Ol(e.current,null),pn=Jn=t,Yt=0,Lc=null,h0=gp=bs=0,Ln=dc=null,ts!==null){for(t=0;t<ts.length;t++)if(n=ts[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,l=n.pending;if(l!==null){var s=l.next;l.next=o,r.next=s}n.pending=r}ts=null}return e}function kk(e,t){do{var n=Wt;try{if(e0(),Id.current=df,uf){for(var r=Et.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}uf=!1}if(xs=0,tn=qt=Et=null,cc=!1,jc=0,p0.current=null,n===null||n.return===null){Yt=1,Lc=t,Wt=null;break}e:{var l=e,s=n.return,i=n,a=t;if(t=pn,i.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,u=i,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var g=wb(s);if(g!==null){g.flags&=-257,Sb(g,s,i,l,t),g.mode&1&&Cb(l,c,t),t=g,a=c;var m=t.updateQueue;if(m===null){var x=new Set;x.add(a),t.updateQueue=x}else m.add(a);break e}else{if(!(t&1)){Cb(l,c,t),y0();break e}a=Error(he(426))}}else if(Mt&&i.mode&1){var w=wb(s);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Sb(w,s,i,l,t),Zv(zi(a,i));break e}}l=a=zi(a,i),Yt!==4&&(Yt=2),dc===null?dc=[l]:dc.push(l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var b=ak(l,a,t);hb(l,b);break e;case 1:i=a;var y=l.type,C=l.stateNode;if(!(l.flags&128)&&(typeof y.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Tl===null||!Tl.has(C)))){l.flags|=65536,t&=-t,l.lanes|=t;var S=ck(l,i,t);hb(l,S);break e}}l=l.return}while(l!==null)}$k(n)}catch(I){t=I,Wt===n&&n!==null&&(Wt=n=n.return);continue}break}while(!0)}function Mk(){var e=ff.current;return ff.current=df,e===null?df:e}function y0(){(Yt===0||Yt===3||Yt===2)&&(Yt=4),nn===null||!(bs&268435455)&&!(gp&268435455)||gl(nn,pn)}function gf(e,t){var n=Ze;Ze|=2;var r=Mk();(nn!==e||pn!==t)&&(_o=null,is(e,t));do try{DR();break}catch(o){kk(e,o)}while(!0);if(e0(),Ze=n,ff.current=r,Wt!==null)throw Error(he(261));return nn=null,pn=0,Yt}function DR(){for(;Wt!==null;)Ik(Wt)}function AR(){for(;Wt!==null&&!aT();)Ik(Wt)}function Ik(e){var t=Tk(e.alternate,e,Jn);e.memoizedProps=e.pendingProps,t===null?$k(e):Wt=t,p0.current=null}function $k(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=TR(n,t),n!==null){n.flags&=32767,Wt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Yt=6,Wt=null;return}}else if(n=ER(n,t,Jn),n!==null){Wt=n;return}if(t=t.sibling,t!==null){Wt=t;return}Wt=t=e}while(t!==null);Yt===0&&(Yt=5)}function ql(e,t,n){var r=ut,o=Or.transition;try{Or.transition=null,ut=1,LR(e,t,n,r)}finally{Or.transition=o,ut=r}return null}function LR(e,t,n,r){do Ei();while(xl!==null);if(Ze&6)throw Error(he(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(he(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(yT(e,l),e===nn&&(Wt=nn=null,pn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ju||(Ju=!0,Rk(Yd,function(){return Ei(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Or.transition,Or.transition=null;var s=ut;ut=1;var i=Ze;Ze|=4,p0.current=null,OR(e,n),wk(n,e),oR(xm),Qd=!!ym,xm=ym=null,e.current=n,_R(n),cT(),Ze=i,ut=s,Or.transition=l}else e.current=n;if(Ju&&(Ju=!1,xl=e,hf=o),l=e.pendingLanes,l===0&&(Tl=null),fT(n.stateNode),Wn(e,zt()),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(pf)throw pf=!1,e=Nm,Nm=null,e;return hf&1&&e.tag!==0&&Ei(),l=e.pendingLanes,l&1?e===Hm?fc++:(fc=0,Hm=e):fc=0,Bl(),null}function Ei(){if(xl!==null){var e=iP(hf),t=Or.transition,n=ut;try{if(Or.transition=null,ut=16>e?16:e,xl===null)var r=!1;else{if(e=xl,xl=null,hf=0,Ze&6)throw Error(he(331));var o=Ze;for(Ze|=4,$e=e.current;$e!==null;){var l=$e,s=l.child;if($e.flags&16){var i=l.deletions;if(i!==null){for(var a=0;a<i.length;a++){var c=i[a];for($e=c;$e!==null;){var u=$e;switch(u.tag){case 0:case 11:case 15:uc(8,u,l)}var d=u.child;if(d!==null)d.return=u,$e=d;else for(;$e!==null;){u=$e;var h=u.sibling,g=u.return;if(xk(u),u===c){$e=null;break}if(h!==null){h.return=g,$e=h;break}$e=g}}}var m=l.alternate;if(m!==null){var x=m.child;if(x!==null){m.child=null;do{var w=x.sibling;x.sibling=null,x=w}while(x!==null)}}$e=l}}if(l.subtreeFlags&2064&&s!==null)s.return=l,$e=s;else e:for(;$e!==null;){if(l=$e,l.flags&2048)switch(l.tag){case 0:case 11:case 15:uc(9,l,l.return)}var b=l.sibling;if(b!==null){b.return=l.return,$e=b;break e}$e=l.return}}var y=e.current;for($e=y;$e!==null;){s=$e;var C=s.child;if(s.subtreeFlags&2064&&C!==null)C.return=s,$e=C;else e:for(s=y;$e!==null;){if(i=$e,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:hp(9,i)}}catch(I){Nt(i,i.return,I)}if(i===s){$e=null;break e}var S=i.sibling;if(S!==null){S.return=i.return,$e=S;break e}$e=i.return}}if(Ze=o,Bl(),bo&&typeof bo.onPostCommitFiberRoot=="function")try{bo.onPostCommitFiberRoot(sp,e)}catch{}r=!0}return r}finally{ut=n,Or.transition=t}}return!1}function Db(e,t,n){t=zi(n,t),t=ak(e,t,1),e=El(e,t,1),t=On(),e!==null&&(hu(e,1,t),Wn(e,t))}function Nt(e,t,n){if(e.tag===3)Db(e,e,n);else for(;t!==null;){if(t.tag===3){Db(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Tl===null||!Tl.has(r))){e=zi(n,e),e=ck(t,e,1),t=El(t,e,1),e=On(),t!==null&&(hu(t,1,e),Wn(t,e));break}}t=t.return}}function NR(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=On(),e.pingedLanes|=e.suspendedLanes&n,nn===e&&(pn&n)===n&&(Yt===4||Yt===3&&(pn&130023424)===pn&&500>zt()-g0?is(e,0):h0|=n),Wn(e,t)}function Ek(e,t){t===0&&(e.mode&1?(t=Vu,Vu<<=1,!(Vu&130023424)&&(Vu=4194304)):t=1);var n=On();e=Uo(e,t),e!==null&&(hu(e,t,n),Wn(e,n))}function HR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ek(e,n)}function zR(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(he(314))}r!==null&&r.delete(t),Ek(e,n)}var Tk;Tk=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Vn.current)zn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return zn=!1,$R(e,t,n);zn=!!(e.flags&131072)}else zn=!1,Mt&&t.flags&1048576&&_P(t,of,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ed(e,t),e=t.pendingProps;var o=Ai(t,kn.current);$i(t,n),o=a0(null,t,r,e,o,n);var l=c0();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,Un(r)?(l=!0,nf(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,r0(t),o.updater=fp,t.stateNode=o,o._reactInternals=t,$m(t,r,e,n),t=Rm(null,t,r,!0,l,n)):(t.tag=0,Mt&&l&&Xv(t),En(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ed(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=VR(r),e=Vr(r,e),o){case 0:t=Tm(null,t,r,e,n);break e;case 1:t=Mb(null,t,r,e,n);break e;case 11:t=Pb(null,t,r,e,n);break e;case 14:t=kb(null,t,r,Vr(r.type,e),n);break e}throw Error(he(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Vr(r,o),Tm(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Vr(r,o),Mb(e,t,r,o,n);case 3:e:{if(pk(t),e===null)throw Error(he(387));r=t.pendingProps,l=t.memoizedState,o=l.element,AP(e,t),af(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=zi(Error(he(423)),t),t=Ib(e,t,r,n,o);break e}else if(r!==o){o=zi(Error(he(424)),t),t=Ib(e,t,r,n,o);break e}else for(sr=$l(t.stateNode.containerInfo.firstChild),ir=t,Mt=!0,Gr=null,n=zP(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Li(),r===o){t=Wo(e,t,n);break e}En(e,t,r,n)}t=t.child}return t;case 5:return BP(t),e===null&&km(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,s=o.children,bm(r,o)?s=null:l!==null&&bm(r,l)&&(t.flags|=32),fk(e,t),En(e,t,s,n),t.child;case 6:return e===null&&km(t),null;case 13:return hk(e,t,n);case 4:return o0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ni(t,null,r,n):En(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Vr(r,o),Pb(e,t,r,o,n);case 7:return En(e,t,t.pendingProps,n),t.child;case 8:return En(e,t,t.pendingProps.children,n),t.child;case 12:return En(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,s=o.value,mt(lf,r._currentValue),r._currentValue=s,l!==null)if(no(l.value,s)){if(l.children===o.children&&!Vn.current){t=Wo(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var i=l.dependencies;if(i!==null){s=l.child;for(var a=i.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=Ho(-1,n&-n),a.tag=2;var c=l.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?a.next=a:(a.next=u.next,u.next=a),c.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Mm(l.return,n,t),i.lanes|=n;break}a=a.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(he(341));s.lanes|=n,i=s.alternate,i!==null&&(i.lanes|=n),Mm(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}En(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$i(t,n),o=Fr(o),r=r(o),t.flags|=1,En(e,t,r,n),t.child;case 14:return r=t.type,o=Vr(r,t.pendingProps),o=Vr(r.type,o),kb(e,t,r,o,n);case 15:return uk(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Vr(r,o),Ed(e,t),t.tag=1,Un(r)?(e=!0,nf(t)):e=!1,$i(t,n),NP(t,r,o),$m(t,r,o,n),Rm(null,t,r,!0,e,n);case 19:return gk(e,t,n);case 22:return dk(e,t,n)}throw Error(he(156,t.tag))};function Rk(e,t){return rP(e,t)}function BR(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 Tr(e,t,n,r){return new BR(e,t,n,r)}function x0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function VR(e){if(typeof e=="function")return x0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Lv)return 11;if(e===Nv)return 14}return 2}function Ol(e,t){var n=e.alternate;return n===null?(n=Tr(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 Od(e,t,n,r,o,l){var s=2;if(r=e,typeof e=="function")x0(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case di:return as(n.children,o,l,t);case Av:s=8,o|=8;break;case Zg:return e=Tr(12,n,t,o|2),e.elementType=Zg,e.lanes=l,e;case Jg:return e=Tr(13,n,t,o),e.elementType=Jg,e.lanes=l,e;case em:return e=Tr(19,n,t,o),e.elementType=em,e.lanes=l,e;case HS:return mp(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case LS:s=10;break e;case NS:s=9;break e;case Lv:s=11;break e;case Nv:s=14;break e;case ul:s=16,r=null;break e}throw Error(he(130,e==null?e:typeof e,""))}return t=Tr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function as(e,t,n,r){return e=Tr(7,e,r,t),e.lanes=n,e}function mp(e,t,n,r){return e=Tr(22,e,r,t),e.elementType=HS,e.lanes=n,e.stateNode={isHidden:!1},e}function ag(e,t,n){return e=Tr(6,e,null,t),e.lanes=n,e}function cg(e,t,n){return t=Tr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function UR(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=Vh(0),this.expirationTimes=Vh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vh(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function b0(e,t,n,r,o,l,s,i,a){return e=new UR(e,t,n,i,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Tr(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},r0(l),e}function WR(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ui,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ok(e){if(!e)return Al;e=e._reactInternals;e:{if(_s(e)!==e||e.tag!==1)throw Error(he(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Un(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(he(171))}if(e.tag===1){var n=e.type;if(Un(n))return RP(e,n,t)}return t}function _k(e,t,n,r,o,l,s,i,a){return e=b0(n,r,!0,e,o,l,s,i,a),e.context=Ok(null),n=e.current,r=On(),o=Rl(n),l=Ho(r,o),l.callback=t??null,El(n,l,o),e.current.lanes=o,hu(e,o,r),Wn(e,r),e}function vp(e,t,n,r){var o=t.current,l=On(),s=Rl(o);return n=Ok(n),t.context===null?t.context=n:t.pendingContext=n,t=Ho(l,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=El(o,t,s),e!==null&&(eo(e,o,s,l),Md(e,o,s)),s}function mf(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 Ab(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function C0(e,t){Ab(e,t),(e=e.alternate)&&Ab(e,t)}function GR(){return null}var Fk=typeof reportError=="function"?reportError:function(e){console.error(e)};function w0(e){this._internalRoot=e}yp.prototype.render=w0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(he(409));vp(e,t,null,null)};yp.prototype.unmount=w0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cs(function(){vp(null,e,null,null)}),t[Vo]=null}};function yp(e){this._internalRoot=e}yp.prototype.unstable_scheduleHydration=function(e){if(e){var t=uP();e={blockedOn:null,target:e,priority:t};for(var n=0;n<hl.length&&t!==0&&t<hl[n].priority;n++);hl.splice(n,0,e),n===0&&fP(e)}};function S0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function xp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Lb(){}function KR(e,t,n,r,o){if(o){if(typeof r=="function"){var l=r;r=function(){var c=mf(s);l.call(c)}}var s=_k(t,r,e,0,null,!1,!1,"",Lb);return e._reactRootContainer=s,e[Vo]=s.current,Tc(e.nodeType===8?e.parentNode:e),Cs(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var c=mf(a);i.call(c)}}var a=b0(e,0,!1,null,null,!1,!1,"",Lb);return e._reactRootContainer=a,e[Vo]=a.current,Tc(e.nodeType===8?e.parentNode:e),Cs(function(){vp(t,a,n,r)}),a}function bp(e,t,n,r,o){var l=n._reactRootContainer;if(l){var s=l;if(typeof o=="function"){var i=o;o=function(){var a=mf(s);i.call(a)}}vp(t,s,e,o)}else s=KR(n,t,e,o,r);return mf(s)}aP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Xa(t.pendingLanes);n!==0&&(Bv(t,n|1),Wn(t,zt()),!(Ze&6)&&(Bi=zt()+500,Bl()))}break;case 13:Cs(function(){var r=Uo(e,1);if(r!==null){var o=On();eo(r,e,1,o)}}),C0(e,1)}};Vv=function(e){if(e.tag===13){var t=Uo(e,134217728);if(t!==null){var n=On();eo(t,e,134217728,n)}C0(e,134217728)}};cP=function(e){if(e.tag===13){var t=Rl(e),n=Uo(e,t);if(n!==null){var r=On();eo(n,e,t,r)}C0(e,t)}};uP=function(){return ut};dP=function(e,t){var n=ut;try{return ut=e,t()}finally{ut=n}};um=function(e,t,n){switch(t){case"input":if(rm(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=up(r);if(!o)throw Error(he(90));BS(r),rm(r,o)}}}break;case"textarea":US(e,n);break;case"select":t=n.value,t!=null&&Pi(e,!!n.multiple,t,!1)}};QS=m0;ZS=Cs;var qR={usingClientEntryPoint:!1,Events:[mu,gi,up,YS,XS,m0]},Oa={findFiberByHostInstance:es,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},YR={bundleType:Oa.bundleType,version:Oa.version,rendererPackageName:Oa.rendererPackageName,rendererConfig:Oa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xo.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=tP(e),e===null?null:e.stateNode},findFiberByHostInstance:Oa.findFiberByHostInstance||GR,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 ed=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ed.isDisabled&&ed.supportsFiber)try{sp=ed.inject(YR),bo=ed}catch{}}fr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qR;fr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S0(t))throw Error(he(200));return WR(e,t,null,n)};fr.createRoot=function(e,t){if(!S0(e))throw Error(he(299));var n=!1,r="",o=Fk;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=b0(e,1,!1,null,null,n,!1,r,o),e[Vo]=t.current,Tc(e.nodeType===8?e.parentNode:e),new w0(t)};fr.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(he(188)):(e=Object.keys(e).join(","),Error(he(268,e)));return e=tP(t),e=e===null?null:e.stateNode,e};fr.flushSync=function(e){return Cs(e)};fr.hydrate=function(e,t,n){if(!xp(t))throw Error(he(200));return bp(null,e,t,!0,n)};fr.hydrateRoot=function(e,t,n){if(!S0(e))throw Error(he(405));var r=n!=null&&n.hydratedSources||null,o=!1,l="",s=Fk;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=_k(t,null,e,1,n??null,o,!1,l,s),e[Vo]=t.current,Tc(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 yp(t)};fr.render=function(e,t,n){if(!xp(t))throw Error(he(200));return bp(null,e,t,!1,n)};fr.unmountComponentAtNode=function(e){if(!xp(e))throw Error(he(40));return e._reactRootContainer?(Cs(function(){bp(null,null,e,!1,function(){e._reactRootContainer=null,e[Vo]=null})}),!0):!1};fr.unstable_batchedUpdates=m0;fr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!xp(n))throw Error(he(200));if(e==null||e._reactInternals===void 0)throw Error(he(38));return bp(e,t,n,!1,r)};fr.version="18.2.0-next-9e3b772b8-20220608";function jk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(jk)}catch(e){console.error(e)}}jk(),_S.exports=fr;var Fs=_S.exports;const td=Ev(Fs);var Nb=Fs;Xg.createRoot=Nb.createRoot,Xg.hydrateRoot=Nb.hydrateRoot;/**
* @remix-run/router v1.15.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Nc(){return Nc=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},Nc.apply(this,arguments)}var bl;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(bl||(bl={}));const Hb="popstate";function XR(e){e===void 0&&(e={});function t(r,o){let{pathname:l,search:s,hash:i}=r.location;return Vm("",{pathname:l,search:s,hash:i},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Ak(o)}return ZR(t,n,null,e)}function Gt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Dk(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function QR(){return Math.random().toString(36).substr(2,8)}function zb(e,t){return{usr:e.state,key:e.key,idx:t}}function Vm(e,t,n,r){return n===void 0&&(n=null),Nc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?va(t):t,{state:n,key:t&&t.key||r||QR()})}function Ak(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function va(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ZR(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:l=!1}=r,s=o.history,i=bl.Pop,a=null,c=u();c==null&&(c=0,s.replaceState(Nc({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){i=bl.Pop;let w=u(),b=w==null?null:w-c;c=w,a&&a({action:i,location:x.location,delta:b})}function h(w,b){i=bl.Push;let y=Vm(x.location,w,b);n&&n(y,w),c=u()+1;let C=zb(y,c),S=x.createHref(y);try{s.pushState(C,"",S)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(S)}l&&a&&a({action:i,location:x.location,delta:1})}function g(w,b){i=bl.Replace;let y=Vm(x.location,w,b);n&&n(y,w),c=u();let C=zb(y,c),S=x.createHref(y);s.replaceState(C,"",S),l&&a&&a({action:i,location:x.location,delta:0})}function m(w){let b=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof w=="string"?w:Ak(w);return y=y.replace(/ $/,"%20"),Gt(b,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,b)}let x={get action(){return i},get location(){return e(o,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(Hb,d),a=w,()=>{o.removeEventListener(Hb,d),a=null}},createHref(w){return t(o,w)},createURL:m,encodeLocation(w){let b=m(w);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:g,go(w){return s.go(w)}};return x}var Bb;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Bb||(Bb={}));function JR(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?va(t):t,o=Hk(r.pathname||"/",n);if(o==null)return null;let l=Lk(e);eO(l);let s=null;for(let i=0;s==null&&i<l.length;++i){let a=fO(o);s=cO(l[i],a)}return s}function Lk(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(l,s,i)=>{let a={relativePath:i===void 0?l.path||"":i,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};a.relativePath.startsWith("/")&&(Gt(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let c=cs([r,a.relativePath]),u=n.concat(a);l.children&&l.children.length>0&&(Gt(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Lk(l.children,t,u,c)),!(l.path==null&&!l.index)&&t.push({path:c,score:iO(c,l.index),routesMeta:u})};return e.forEach((l,s)=>{var i;if(l.path===""||!((i=l.path)!=null&&i.includes("?")))o(l,s);else for(let a of Nk(l.path))o(l,s,a)}),t}function Nk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return o?[l,""]:[l];let s=Nk(r.join("/")),i=[];return i.push(...s.map(a=>a===""?l:[l,a].join("/"))),o&&i.push(...s),i.map(a=>e.startsWith("/")&&a===""?"/":a)}function eO(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:aO(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const tO=/^:[\w-]+$/,nO=3,rO=2,oO=1,lO=10,sO=-2,Vb=e=>e==="*";function iO(e,t){let n=e.split("/"),r=n.length;return n.some(Vb)&&(r+=sO),t&&(r+=rO),n.filter(o=>!Vb(o)).reduce((o,l)=>o+(tO.test(l)?nO:l===""?oO:lO),r)}function aO(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function cO(e,t){let{routesMeta:n}=e,r={},o="/",l=[];for(let s=0;s<n.length;++s){let i=n[s],a=s===n.length-1,c=o==="/"?t:t.slice(o.length)||"/",u=uO({path:i.relativePath,caseSensitive:i.caseSensitive,end:a},c);if(!u)return null;Object.assign(r,u.params);let d=i.route;l.push({params:r,pathname:cs([o,u.pathname]),pathnameBase:mO(cs([o,u.pathnameBase])),route:d}),u.pathnameBase!=="/"&&(o=cs([o,u.pathnameBase]))}return l}function uO(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=dO(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let l=o[0],s=l.replace(/(.)\/+$/,"$1"),i=o.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:h,isOptional:g}=u;if(h==="*"){let x=i[d]||"";s=l.slice(0,l.length-x.length).replace(/(.)\/+$/,"$1")}const m=i[d];return g&&!m?c[h]=void 0:c[h]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:l,pathnameBase:s,pattern:e}}function dO(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Dk(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,i,a)=>(r.push({paramName:i,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function fO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Dk(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Hk(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function pO(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?va(e):e;return{pathname:n?n.startsWith("/")?n:hO(n,t):t,search:vO(r),hash:yO(o)}}function hO(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ug(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function gO(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function zk(e,t){let n=gO(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Bk(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=va(e):(o=Nc({},e),Gt(!o.pathname||!o.pathname.includes("?"),ug("?","pathname","search",o)),Gt(!o.pathname||!o.pathname.includes("#"),ug("#","pathname","hash",o)),Gt(!o.search||!o.search.includes("#"),ug("#","search","hash",o)));let l=e===""||o.pathname==="",s=l?"/":o.pathname,i;if(s==null)i=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;o.pathname=h.join("/")}i=d>=0?t[d]:"/"}let a=pO(o,i),c=s&&s!=="/"&&s.endsWith("/"),u=(l||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(c||u)&&(a.pathname+="/"),a}const cs=e=>e.join("/").replace(/\/\/+/g,"/"),mO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,yO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function xO(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Vk=["post","put","patch","delete"];new Set(Vk);const bO=["get",...Vk];new Set(bO);/**
* React Router v6.22.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Hc(){return Hc=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},Hc.apply(this,arguments)}const P0=f.createContext(null),CO=f.createContext(null),yu=f.createContext(null),Cp=f.createContext(null),js=f.createContext({outlet:null,matches:[],isDataRoute:!1}),Uk=f.createContext(null);function xu(){return f.useContext(Cp)!=null}function k0(){return xu()||Gt(!1),f.useContext(Cp).location}function Wk(e){f.useContext(yu).static||f.useLayoutEffect(e)}function Gk(){let{isDataRoute:e}=f.useContext(js);return e?FO():wO()}function wO(){xu()||Gt(!1);let e=f.useContext(P0),{basename:t,future:n,navigator:r}=f.useContext(yu),{matches:o}=f.useContext(js),{pathname:l}=k0(),s=JSON.stringify(zk(o,n.v7_relativeSplatPath)),i=f.useRef(!1);return Wk(()=>{i.current=!0}),f.useCallback(function(c,u){if(u===void 0&&(u={}),!i.current)return;if(typeof c=="number"){r.go(c);return}let d=Bk(c,JSON.parse(s),l,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:cs([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,l,e])}function SO(e,t){return PO(e,t)}function PO(e,t,n,r){xu()||Gt(!1);let{navigator:o}=f.useContext(yu),{matches:l}=f.useContext(js),s=l[l.length-1],i=s?s.params:{};s&&s.pathname;let a=s?s.pathnameBase:"/";s&&s.route;let c=k0(),u;if(t){var d;let w=typeof t=="string"?va(t):t;a==="/"||(d=w.pathname)!=null&&d.startsWith(a)||Gt(!1),u=w}else u=c;let h=u.pathname||"/",g=h;if(a!=="/"){let w=a.replace(/^\//,"").split("/");g="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let m=JR(e,{pathname:g}),x=EO(m&&m.map(w=>Object.assign({},w,{params:Object.assign({},i,w.params),pathname:cs([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:cs([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),l,n,r);return t&&x?f.createElement(Cp.Provider,{value:{location:Hc({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:bl.Pop}},x):x}function kO(){let e=_O(),t=xO(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:o},n):null,null)}const MO=f.createElement(kO,null);class IO extends f.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?f.createElement(js.Provider,{value:this.props.routeContext},f.createElement(Uk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $O(e){let{routeContext:t,match:n,children:r}=e,o=f.useContext(P0);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),f.createElement(js.Provider,{value:t},r)}function EO(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if((l=n)!=null&&l.errors)e=n.matches;else return null}let s=e,i=(o=n)==null?void 0:o.errors;if(i!=null){let u=s.findIndex(d=>d.route.id&&(i==null?void 0:i[d.route.id]));u>=0||Gt(!1),s=s.slice(0,Math.min(s.length,u+1))}let a=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<s.length;u++){let d=s[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:h,errors:g}=n,m=d.route.loader&&h[d.route.id]===void 0&&(!g||g[d.route.id]===void 0);if(d.route.lazy||m){a=!0,c>=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,h)=>{let g,m=!1,x=null,w=null;n&&(g=i&&d.route.id?i[d.route.id]:void 0,x=d.route.errorElement||MO,a&&(c<0&&h===0?(jO("route-fallback",!1),m=!0,w=null):c===h&&(m=!0,w=d.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,h+1)),y=()=>{let C;return g?C=x:m?C=w:d.route.Component?C=f.createElement(d.route.Component,null):d.route.element?C=d.route.element:C=u,f.createElement($O,{match:d,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:C})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?f.createElement(IO,{location:n.location,revalidation:n.revalidation,component:x,error:g,children:y(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):y()},null)}var Kk=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Kk||{}),vf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(vf||{});function TO(e){let t=f.useContext(P0);return t||Gt(!1),t}function RO(e){let t=f.useContext(CO);return t||Gt(!1),t}function OO(e){let t=f.useContext(js);return t||Gt(!1),t}function qk(e){let t=OO(),n=t.matches[t.matches.length-1];return n.route.id||Gt(!1),n.route.id}function _O(){var e;let t=f.useContext(Uk),n=RO(vf.UseRouteError),r=qk(vf.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function FO(){let{router:e}=TO(Kk.UseNavigateStable),t=qk(vf.UseNavigateStable),n=f.useRef(!1);return Wk(()=>{n.current=!0}),f.useCallback(function(o,l){l===void 0&&(l={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Hc({fromRouteId:t},l)))},[e,t])}const Ub={};function jO(e,t,n){!t&&!Ub[e]&&(Ub[e]=!0)}function DO(e){let{to:t,replace:n,state:r,relative:o}=e;xu()||Gt(!1);let{future:l,static:s}=f.useContext(yu),{matches:i}=f.useContext(js),{pathname:a}=k0(),c=Gk(),u=Bk(t,zk(i,l.v7_relativeSplatPath),a,o==="path"),d=JSON.stringify(u);return f.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:o}),[c,d,o,n,r]),null}function Yl(e){Gt(!1)}function AO(e){let{basename:t="/",children:n=null,location:r,navigationType:o=bl.Pop,navigator:l,static:s=!1,future:i}=e;xu()&&Gt(!1);let a=t.replace(/^\/*/,"/"),c=f.useMemo(()=>({basename:a,navigator:l,static:s,future:Hc({v7_relativeSplatPath:!1},i)}),[a,i,l,s]);typeof r=="string"&&(r=va(r));let{pathname:u="/",search:d="",hash:h="",state:g=null,key:m="default"}=r,x=f.useMemo(()=>{let w=Hk(u,a);return w==null?null:{location:{pathname:w,search:d,hash:h,state:g,key:m},navigationType:o}},[a,u,d,h,g,m,o]);return x==null?null:f.createElement(yu.Provider,{value:c},f.createElement(Cp.Provider,{children:n,value:x}))}function LO(e){let{children:t,location:n}=e;return SO(Um(t),n)}new Promise(()=>{});function Um(e,t){t===void 0&&(t=[]);let n=[];return f.Children.forEach(e,(r,o)=>{if(!f.isValidElement(r))return;let l=[...t,o];if(r.type===f.Fragment){n.push.apply(n,Um(r.props.children,l));return}r.type!==Yl&&Gt(!1),!r.props.index||!r.props.children||Gt(!1);let s={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Um(r.props.children,l)),n.push(s)}),n}/**
* React Router DOM v6.22.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/const NO="6";try{window.__reactRouterVersion=NO}catch{}const HO="startTransition",Wb=Wd[HO];function zO(e){let{basename:t,children:n,future:r,window:o}=e,l=f.useRef();l.current==null&&(l.current=XR({window:o,v5Compat:!0}));let s=l.current,[i,a]=f.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=f.useCallback(d=>{c&&Wb?Wb(()=>a(d)):a(d)},[a,c]);return f.useLayoutEffect(()=>s.listen(u),[s,u]),f.createElement(AO,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:s,future:r})}var Gb;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Gb||(Gb={}));var Kb;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Kb||(Kb={}));function Vi(e){return p.jsx("div",{className:"content_container",children:e.children})}const BO={black:"#000",white:"#fff"},zc=BO,VO={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"},Gs=VO,UO={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"},Ks=UO,WO={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"},qs=WO,GO={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"},Ys=GO,KO={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"},Xs=KO,qO={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"},_a=qO,YO={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"},XO=YO;function Ll(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."}const bu="$$material";function v(){return v=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},v.apply(this,arguments)}function W(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,l;for(l=0;l<r.length;l++)o=r[l],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Yk(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var QO=/^((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)-.*))$/,ZO=Yk(function(e){return QO.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function JO(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 e_(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 t_=function(){function e(n){var r=this;this._insertTag=function(o){var l;r.tags.length===0?r.insertionPoint?l=r.insertionPoint.nextSibling:r.prepend?l=r.container.firstChild:l=r.before:l=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,l),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(e_(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var l=JO(o);try{l.insertRule(r,l.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}(),wn="-ms-",yf="-moz-",lt="-webkit-",Xk="comm",M0="rule",I0="decl",n_="@import",Qk="@keyframes",r_="@layer",o_=Math.abs,wp=String.fromCharCode,l_=Object.assign;function s_(e,t){return un(e,0)^45?(((t<<2^un(e,0))<<2^un(e,1))<<2^un(e,2))<<2^un(e,3):0}function Zk(e){return e.trim()}function i_(e,t){return(e=t.exec(e))?e[0]:e}function st(e,t,n){return e.replace(t,n)}function Wm(e,t){return e.indexOf(t)}function un(e,t){return e.charCodeAt(t)|0}function Bc(e,t,n){return e.slice(t,n)}function go(e){return e.length}function $0(e){return e.length}function nd(e,t){return t.push(e),e}function a_(e,t){return e.map(t).join("")}var Sp=1,Ui=1,Jk=0,Yn=0,Ut=0,ya="";function Pp(e,t,n,r,o,l,s){return{value:e,root:t,parent:n,type:r,props:o,children:l,line:Sp,column:Ui,length:s,return:""}}function Fa(e,t){return l_(Pp("",null,null,"",null,null,0),e,{length:-e.length},t)}function c_(){return Ut}function u_(){return Ut=Yn>0?un(ya,--Yn):0,Ui--,Ut===10&&(Ui=1,Sp--),Ut}function ar(){return Ut=Yn<Jk?un(ya,Yn++):0,Ui++,Ut===10&&(Ui=1,Sp++),Ut}function wo(){return un(ya,Yn)}function _d(){return Yn}function Cu(e,t){return Bc(ya,e,t)}function Vc(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 e2(e){return Sp=Ui=1,Jk=go(ya=e),Yn=0,[]}function t2(e){return ya="",e}function Fd(e){return Zk(Cu(Yn-1,Gm(e===91?e+2:e===40?e+1:e)))}function d_(e){for(;(Ut=wo())&&Ut<33;)ar();return Vc(e)>2||Vc(Ut)>3?"":" "}function f_(e,t){for(;--t&&ar()&&!(Ut<48||Ut>102||Ut>57&&Ut<65||Ut>70&&Ut<97););return Cu(e,_d()+(t<6&&wo()==32&&ar()==32))}function Gm(e){for(;ar();)switch(Ut){case e:return Yn;case 34:case 39:e!==34&&e!==39&&Gm(Ut);break;case 40:e===41&&Gm(e);break;case 92:ar();break}return Yn}function p_(e,t){for(;ar()&&e+Ut!==57;)if(e+Ut===84&&wo()===47)break;return"/*"+Cu(t,Yn-1)+"*"+wp(e===47?e:ar())}function h_(e){for(;!Vc(wo());)ar();return Cu(e,Yn)}function g_(e){return t2(jd("",null,null,null,[""],e=e2(e),0,[0],e))}function jd(e,t,n,r,o,l,s,i,a){for(var c=0,u=0,d=s,h=0,g=0,m=0,x=1,w=1,b=1,y=0,C="",S=o,I=l,P=r,k=C;w;)switch(m=y,y=ar()){case 40:if(m!=108&&un(k,d-1)==58){Wm(k+=st(Fd(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:k+=Fd(y);break;case 9:case 10:case 13:case 32:k+=d_(m);break;case 92:k+=f_(_d()-1,7);continue;case 47:switch(wo()){case 42:case 47:nd(m_(p_(ar(),_d()),t,n),a);break;default:k+="/"}break;case 123*x:i[c++]=go(k)*b;case 125*x:case 59:case 0:switch(y){case 0:case 125:w=0;case 59+u:b==-1&&(k=st(k,/\f/g,"")),g>0&&go(k)-d&&nd(g>32?Yb(k+";",r,n,d-1):Yb(st(k," ","")+";",r,n,d-2),a);break;case 59:k+=";";default:if(nd(P=qb(k,t,n,c,u,o,i,C,S=[],I=[],d),l),y===123)if(u===0)jd(k,t,P,P,S,l,d,i,I);else switch(h===99&&un(k,3)===110?100:h){case 100:case 108:case 109:case 115:jd(e,P,P,r&&nd(qb(e,P,P,0,0,o,i,C,o,S=[],d),I),o,I,d,i,r?S:I);break;default:jd(k,P,P,P,[""],I,0,i,I)}}c=u=g=0,x=b=1,C=k="",d=s;break;case 58:d=1+go(k),g=m;default:if(x<1){if(y==123)--x;else if(y==125&&x++==0&&u_()==125)continue}switch(k+=wp(y),y*x){case 38:b=u>0?1:(k+="\f",-1);break;case 44:i[c++]=(go(k)-1)*b,b=1;break;case 64:wo()===45&&(k+=Fd(ar())),h=wo(),u=d=go(C=k+=h_(_d())),y++;break;case 45:m===45&&go(k)==2&&(x=0)}}return l}function qb(e,t,n,r,o,l,s,i,a,c,u){for(var d=o-1,h=o===0?l:[""],g=$0(h),m=0,x=0,w=0;m<r;++m)for(var b=0,y=Bc(e,d+1,d=o_(x=s[m])),C=e;b<g;++b)(C=Zk(x>0?h[b]+" "+y:st(y,/&\f/g,h[b])))&&(a[w++]=C);return Pp(e,t,n,o===0?M0:i,a,c,u)}function m_(e,t,n){return Pp(e,t,n,Xk,wp(c_()),Bc(e,2,-2),0)}function Yb(e,t,n,r){return Pp(e,t,n,I0,Bc(e,0,r),Bc(e,r+1,-1),r)}function Ti(e,t){for(var n="",r=$0(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function v_(e,t,n,r){switch(e.type){case r_:if(e.children.length)break;case n_:case I0:return e.return=e.return||e.value;case Xk:return"";case Qk:return e.return=e.value+"{"+Ti(e.children,r)+"}";case M0:e.value=e.props.join(",")}return go(n=Ti(e.children,r))?e.return=e.value+"{"+n+"}":""}function y_(e){var t=$0(e);return function(n,r,o,l){for(var s="",i=0;i<t;i++)s+=e[i](n,r,o,l)||"";return s}}function x_(e){return function(t){t.root||(t=t.return)&&e(t)}}var b_=function(t,n,r){for(var o=0,l=0;o=l,l=wo(),o===38&&l===12&&(n[r]=1),!Vc(l);)ar();return Cu(t,Yn)},C_=function(t,n){var r=-1,o=44;do switch(Vc(o)){case 0:o===38&&wo()===12&&(n[r]=1),t[r]+=b_(Yn-1,n,r);break;case 2:t[r]+=Fd(o);break;case 4:if(o===44){t[++r]=wo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=wp(o)}while(o=ar());return t},w_=function(t,n){return t2(C_(e2(t),n))},Xb=new WeakMap,S_=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&&!Xb.get(r))&&!o){Xb.set(t,!0);for(var l=[],s=w_(n,l),i=r.props,a=0,c=0;a<s.length;a++)for(var u=0;u<i.length;u++,c++)t.props[c]=l[a]?s[a].replace(/&\f/g,i[u]):i[u]+" "+s[a]}}},P_=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function n2(e,t){switch(s_(e,t)){case 5103:return lt+"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 lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lt+e+yf+e+wn+e+e;case 6828:case 4268:return lt+e+wn+e+e;case 6165:return lt+e+wn+"flex-"+e+e;case 5187:return lt+e+st(e,/(\w+).+(:[^]+)/,lt+"box-$1$2"+wn+"flex-$1$2")+e;case 5443:return lt+e+wn+"flex-item-"+st(e,/flex-|-self/,"")+e;case 4675:return lt+e+wn+"flex-line-pack"+st(e,/align-content|flex-|-self/,"")+e;case 5548:return lt+e+wn+st(e,"shrink","negative")+e;case 5292:return lt+e+wn+st(e,"basis","preferred-size")+e;case 6060:return lt+"box-"+st(e,"-grow","")+lt+e+wn+st(e,"grow","positive")+e;case 4554:return lt+st(e,/([^-])(transform)/g,"$1"+lt+"$2")+e;case 6187:return st(st(st(e,/(zoom-|grab)/,lt+"$1"),/(image-set)/,lt+"$1"),e,"")+e;case 5495:case 3959:return st(e,/(image-set\([^]*)/,lt+"$1$`$1");case 4968:return st(st(e,/(.+:)(flex-)?(.*)/,lt+"box-pack:$3"+wn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+lt+e+e;case 4095:case 3583:case 4068:case 2532:return st(e,/(.+)-inline(.+)/,lt+"$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(go(e)-1-t>6)switch(un(e,t+1)){case 109:if(un(e,t+4)!==45)break;case 102:return st(e,/(.+:)(.+)-([^]+)/,"$1"+lt+"$2-$3$1"+yf+(un(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wm(e,"stretch")?n2(st(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(un(e,t+1)!==115)break;case 6444:switch(un(e,go(e)-3-(~Wm(e,"!important")&&10))){case 107:return st(e,":",":"+lt)+e;case 101:return st(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lt+(un(e,14)===45?"inline-":"")+"box$3$1"+lt+"$2$3$1"+wn+"$2box$3")+e}break;case 5936:switch(un(e,t+11)){case 114:return lt+e+wn+st(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lt+e+wn+st(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lt+e+wn+st(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lt+e+wn+e+e}return e}var k_=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case I0:t.return=n2(t.value,t.length);break;case Qk:return Ti([Fa(t,{value:st(t.value,"@","@"+lt)})],o);case M0:if(t.length)return a_(t.props,function(l){switch(i_(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ti([Fa(t,{props:[st(l,/:(read-\w+)/,":"+yf+"$1")]})],o);case"::placeholder":return Ti([Fa(t,{props:[st(l,/:(plac\w+)/,":"+lt+"input-$1")]}),Fa(t,{props:[st(l,/:(plac\w+)/,":"+yf+"$1")]}),Fa(t,{props:[st(l,/:(plac\w+)/,wn+"input-$1")]})],o)}return""})}},M_=[k_],I_=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(x){var w=x.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||M_,l={},s,i=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var w=x.getAttribute("data-emotion").split(" "),b=1;b<w.length;b++)l[w[b]]=!0;i.push(x)});var a,c=[S_,P_];{var u,d=[v_,x_(function(x){u.insert(x)})],h=y_(c.concat(o,d)),g=function(w){return Ti(g_(w),h)};a=function(w,b,y,C){u=y,g(w?w+"{"+b.styles+"}":b.styles),C&&(m.inserted[b.name]=!0)}}var m={key:n,sheet:new t_({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:l,registered:{},insert:a};return m.sheet.hydrate(i),m},r2={exports:{}},dt={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var rn=typeof Symbol=="function"&&Symbol.for,E0=rn?Symbol.for("react.element"):60103,T0=rn?Symbol.for("react.portal"):60106,kp=rn?Symbol.for("react.fragment"):60107,Mp=rn?Symbol.for("react.strict_mode"):60108,Ip=rn?Symbol.for("react.profiler"):60114,$p=rn?Symbol.for("react.provider"):60109,Ep=rn?Symbol.for("react.context"):60110,R0=rn?Symbol.for("react.async_mode"):60111,Tp=rn?Symbol.for("react.concurrent_mode"):60111,Rp=rn?Symbol.for("react.forward_ref"):60112,Op=rn?Symbol.for("react.suspense"):60113,$_=rn?Symbol.for("react.suspense_list"):60120,_p=rn?Symbol.for("react.memo"):60115,Fp=rn?Symbol.for("react.lazy"):60116,E_=rn?Symbol.for("react.block"):60121,T_=rn?Symbol.for("react.fundamental"):60117,R_=rn?Symbol.for("react.responder"):60118,O_=rn?Symbol.for("react.scope"):60119;function hr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case E0:switch(e=e.type,e){case R0:case Tp:case kp:case Ip:case Mp:case Op:return e;default:switch(e=e&&e.$$typeof,e){case Ep:case Rp:case Fp:case _p:case $p:return e;default:return t}}case T0:return t}}}function o2(e){return hr(e)===Tp}dt.AsyncMode=R0;dt.ConcurrentMode=Tp;dt.ContextConsumer=Ep;dt.ContextProvider=$p;dt.Element=E0;dt.ForwardRef=Rp;dt.Fragment=kp;dt.Lazy=Fp;dt.Memo=_p;dt.Portal=T0;dt.Profiler=Ip;dt.StrictMode=Mp;dt.Suspense=Op;dt.isAsyncMode=function(e){return o2(e)||hr(e)===R0};dt.isConcurrentMode=o2;dt.isContextConsumer=function(e){return hr(e)===Ep};dt.isContextProvider=function(e){return hr(e)===$p};dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===E0};dt.isForwardRef=function(e){return hr(e)===Rp};dt.isFragment=function(e){return hr(e)===kp};dt.isLazy=function(e){return hr(e)===Fp};dt.isMemo=function(e){return hr(e)===_p};dt.isPortal=function(e){return hr(e)===T0};dt.isProfiler=function(e){return hr(e)===Ip};dt.isStrictMode=function(e){return hr(e)===Mp};dt.isSuspense=function(e){return hr(e)===Op};dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===kp||e===Tp||e===Ip||e===Mp||e===Op||e===$_||typeof e=="object"&&e!==null&&(e.$$typeof===Fp||e.$$typeof===_p||e.$$typeof===$p||e.$$typeof===Ep||e.$$typeof===Rp||e.$$typeof===T_||e.$$typeof===R_||e.$$typeof===O_||e.$$typeof===E_)};dt.typeOf=hr;r2.exports=dt;var __=r2.exports,l2=__,F_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},j_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s2={};s2[l2.ForwardRef]=F_;s2[l2.Memo]=j_;var D_=!0;function A_(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var i2=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||D_===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},a2=function(t,n,r){i2(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var l=n;do t.insert(n===l?"."+o:"",l,t.sheet,!0),l=l.next;while(l!==void 0)}};function L_(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 N_={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},H_=/[A-Z]|^ms/g,z_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c2=function(t){return t.charCodeAt(1)===45},Qb=function(t){return t!=null&&typeof t!="boolean"},dg=Yk(function(e){return c2(e)?e:e.replace(H_,"-$&").toLowerCase()}),Zb=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(z_,function(r,o,l){return mo={name:o,styles:l,next:mo},o})}return N_[t]!==1&&!c2(t)&&typeof n=="number"&&n!==0?n+"px":n};function Uc(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 mo={name:n.name,styles:n.styles,next:mo},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)mo={name:r.name,styles:r.styles,next:mo},r=r.next;var o=n.styles+";";return o}return B_(e,t,n)}case"function":{if(e!==void 0){var l=mo,s=n(e);return mo=l,Uc(e,t,s)}break}}if(t==null)return n;var i=t[n];return i!==void 0?i:n}function B_(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Uc(e,t,n[o])+";";else for(var l in n){var s=n[l];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=l+"{"+t[s]+"}":Qb(s)&&(r+=dg(l)+":"+Zb(l,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var i=0;i<s.length;i++)Qb(s[i])&&(r+=dg(l)+":"+Zb(l,s[i])+";");else{var a=Uc(e,t,s);switch(l){case"animation":case"animationName":{r+=dg(l)+":"+a+";";break}default:r+=l+"{"+a+"}"}}}return r}var Jb=/label:\s*([^\s;\n{]+)\s*(;|$)/g,mo,O0=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,l="";mo=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,l+=Uc(r,n,s)):l+=s[0];for(var i=1;i<t.length;i++)l+=Uc(r,n,t[i]),o&&(l+=s[i]);Jb.lastIndex=0;for(var a="",c;(c=Jb.exec(l))!==null;)a+="-"+c[1];var u=L_(l)+a;return{name:u,styles:l,next:mo}},V_=function(t){return t()},u2=Wd.useInsertionEffect?Wd.useInsertionEffect:!1,U_=u2||V_,e1=u2||f.useLayoutEffect,d2=f.createContext(typeof HTMLElement<"u"?I_({key:"css"}):null);d2.Provider;var f2=function(t){return f.forwardRef(function(n,r){var o=f.useContext(d2);return t(n,o,r)})},_0=f.createContext({}),W_=f2(function(e,t){var n=e.styles,r=O0([n],void 0,f.useContext(_0)),o=f.useRef();return e1(function(){var l=t.key+"-global",s=new t.sheet.constructor({key:l,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+l+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),a!==null&&(i=!0,a.setAttribute("data-emotion",l),s.hydrate([a])),o.current=[s,i],function(){s.flush()}},[t]),e1(function(){var l=o.current,s=l[0],i=l[1];if(i){l[1]=!1;return}if(r.next!==void 0&&a2(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 Wc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O0(t)}var Ds=function(){var t=Wc.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_"}}},G_=ZO,K_=function(t){return t!=="theme"},t1=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?G_:K_},n1=function(t,n,r){var o;if(n){var l=n.shouldForwardProp;o=t.__emotion_forwardProp&&l?function(s){return t.__emotion_forwardProp(s)&&l(s)}:l}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},q_=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return i2(n,r,o),U_(function(){return a2(n,r,o)}),null},Y_=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,l,s;n!==void 0&&(l=n.label,s=n.target);var i=n1(t,n,r),a=i||t1(o),c=!a("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&d.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var h=u.length,g=1;g<h;g++)d.push(u[g],u[0][g])}var m=f2(function(x,w,b){var y=c&&x.as||o,C="",S=[],I=x;if(x.theme==null){I={};for(var P in x)I[P]=x[P];I.theme=f.useContext(_0)}typeof x.className=="string"?C=A_(w.registered,S,x.className):x.className!=null&&(C=x.className+" ");var k=O0(d.concat(S),w.registered,I);C+=w.key+"-"+k.name,s!==void 0&&(C+=" "+s);var $=c&&i===void 0?t1(y):a,D={};for(var O in x)c&&O==="as"||$(O)&&(D[O]=x[O]);return D.className=C,D.ref=b,f.createElement(f.Fragment,null,f.createElement(q_,{cache:w,serialized:k,isStringTag:typeof y=="string"}),f.createElement(y,D))});return m.displayName=l!==void 0?l:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=o,m.__emotion_styles=d,m.__emotion_forwardProp=i,Object.defineProperty(m,"toString",{value:function(){return"."+s}}),m.withComponent=function(x,w){return e(x,v({},n,w,{shouldForwardProp:n1(m,w,!0)})).apply(void 0,d)},m}},X_=["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"],Km=Y_.bind();X_.forEach(function(e){Km[e]=Km(e)});var p2={exports:{}},Q_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Z_=Q_,J_=Z_;function h2(){}function g2(){}g2.resetWarningCache=h2;var eF=function(){function e(r,o,l,s,i,a){if(a!==J_){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:g2,resetWarningCache:h2};return n.PropTypes=n,n};p2.exports=eF();var tF=p2.exports;const B=Ev(tF);function nF(e){return e==null||Object.keys(e).length===0}function rF(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(nF(o)?n:o):t;return p.jsx(W_,{styles:r})}function m2(e,t){return Km(e,t)}const oF=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function lF(e,t){return()=>null}function ml(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function v2(e){if(!ml(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=v2(e[n])}),t}function Gn(e,t,n={clone:!0}){const r=n.clone?v({},e):e;return ml(e)&&ml(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(ml(t[o])&&o in e&&ml(e[o])?r[o]=Gn(e[o],t[o],n):n.clone?r[o]=ml(t[o])?v2(t[o]):t[o]:r[o]=t[o])}),r}var pt={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var F0=Symbol.for("react.element"),j0=Symbol.for("react.portal"),jp=Symbol.for("react.fragment"),Dp=Symbol.for("react.strict_mode"),Ap=Symbol.for("react.profiler"),Lp=Symbol.for("react.provider"),Np=Symbol.for("react.context"),sF=Symbol.for("react.server_context"),Hp=Symbol.for("react.forward_ref"),zp=Symbol.for("react.suspense"),Bp=Symbol.for("react.suspense_list"),Vp=Symbol.for("react.memo"),Up=Symbol.for("react.lazy"),iF=Symbol.for("react.offscreen"),y2;y2=Symbol.for("react.module.reference");function Nr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case F0:switch(e=e.type,e){case jp:case Ap:case Dp:case zp:case Bp:return e;default:switch(e=e&&e.$$typeof,e){case sF:case Np:case Hp:case Up:case Vp:case Lp:return e;default:return t}}case j0:return t}}}pt.ContextConsumer=Np;pt.ContextProvider=Lp;pt.Element=F0;pt.ForwardRef=Hp;pt.Fragment=jp;pt.Lazy=Up;pt.Memo=Vp;pt.Portal=j0;pt.Profiler=Ap;pt.StrictMode=Dp;pt.Suspense=zp;pt.SuspenseList=Bp;pt.isAsyncMode=function(){return!1};pt.isConcurrentMode=function(){return!1};pt.isContextConsumer=function(e){return Nr(e)===Np};pt.isContextProvider=function(e){return Nr(e)===Lp};pt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===F0};pt.isForwardRef=function(e){return Nr(e)===Hp};pt.isFragment=function(e){return Nr(e)===jp};pt.isLazy=function(e){return Nr(e)===Up};pt.isMemo=function(e){return Nr(e)===Vp};pt.isPortal=function(e){return Nr(e)===j0};pt.isProfiler=function(e){return Nr(e)===Ap};pt.isStrictMode=function(e){return Nr(e)===Dp};pt.isSuspense=function(e){return Nr(e)===zp};pt.isSuspenseList=function(e){return Nr(e)===Bp};pt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===jp||e===Ap||e===Dp||e===zp||e===Bp||e===iF||typeof e=="object"&&e!==null&&(e.$$typeof===Up||e.$$typeof===Vp||e.$$typeof===Lp||e.$$typeof===Np||e.$$typeof===Hp||e.$$typeof===y2||e.getModuleId!==void 0)};pt.typeOf=Nr;function te(e){if(typeof e!="string")throw new Error(Ll(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qm(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function xa(e,t=166){let n;function r(...o){const l=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(l,t)}return r.clear=()=>{clearTimeout(n)},r}function aF(e,t){return()=>null}function Dd(e,t){var n,r;return f.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Tt(e){return e&&e.ownerDocument||document}function Dr(e){return Tt(e).defaultView||window}function cF(e,t){return()=>null}function Gc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const tt=typeof window<"u"?f.useLayoutEffect:f.useEffect;let r1=0;function uF(e){const[t,n]=f.useState(e),r=e||t;return f.useEffect(()=>{t==null&&(r1+=1,n(`mui-${r1}`))},[t]),r}const o1=Wd.useId;function ct(e){if(o1!==void 0){const t=o1();return e??t}return uF(e)}function dF(e,t,n,r,o){return null}function _l({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=f.useRef(e!==void 0),[l,s]=f.useState(t),i=o?e:l,a=f.useCallback(c=>{o||s(c)},[]);return[i,a]}function wt(e){const t=f.useRef(e);return tt(()=>{t.current=e}),f.useRef((...n)=>(0,t.current)(...n)).current}function nt(...e){return f.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Gc(n,t)})},e)}const l1={};function fF(e,t){const n=f.useRef(l1);return n.current===l1&&(n.current=e(t)),n}const pF=[];function hF(e){f.useEffect(e,pF)}let D0=class x2{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new x2}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,n()},t)}};function wi(){const e=fF(D0.create).current;return hF(e.disposeEffect),e}let Wp=!0,Ym=!1;const gF=new D0,mF={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 vF(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&mF[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function yF(e){e.metaKey||e.altKey||e.ctrlKey||(Wp=!0)}function fg(){Wp=!1}function xF(){this.visibilityState==="hidden"&&Ym&&(Wp=!0)}function bF(e){e.addEventListener("keydown",yF,!0),e.addEventListener("mousedown",fg,!0),e.addEventListener("pointerdown",fg,!0),e.addEventListener("touchstart",fg,!0),e.addEventListener("visibilitychange",xF,!0)}function CF(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Wp||vF(t)}function A0(){const e=f.useCallback(o=>{o!=null&&bF(o.ownerDocument)},[]),t=f.useRef(!1);function n(){return t.current?(Ym=!0,gF.start(100,()=>{Ym=!1}),t.current=!1,!0):!1}function r(o){return CF(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function b2(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const L0=e=>{const t=f.useRef({});return f.useEffect(()=>{t.current=e}),t.current};function N0(e,t){const n=v({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=v({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},l=t[r];n[r]={},!l||!Object.keys(l)?n[r]=o:!o||!Object.keys(o)?n[r]=l:(n[r]=v({},l),Object.keys(o).forEach(s=>{n[r][s]=N0(o[s],l[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function ae(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((l,s)=>{if(s){const i=t(s);i!==""&&l.push(i),n&&n[s]&&l.push(n[s])}return l},[]).join(" ")}),r}const s1=e=>e,wF=()=>{let e=s1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=s1}}},SF=wF(),Gp=SF,C2={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ie(e,t,n="Mui"){const r=C2[t];return r?`${n}-${r}`:`${Gp.generate(e)}-${t}`}function Me(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ie(e,o,n)}),r}function PF(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const kF=["values","unit","step"],MF=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)=>v({},n,{[r.key]:r.val}),{})};function IF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=W(e,kF),l=MF(t),s=Object.keys(l);function i(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function a(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,g){const m=s.indexOf(g);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(m!==-1&&typeof t[s[m]]=="number"?t[s[m]]:g)-r/100}${n})`}function u(h){return s.indexOf(h)+1<s.length?c(h,s[s.indexOf(h)+1]):i(h)}function d(h){const g=s.indexOf(h);return g===0?i(s[1]):g===s.length-1?a(s[g]):c(h,s[s.indexOf(h)+1]).replace("@media","@media not all and")}return v({keys:s,values:l,up:i,down:a,between:c,only:u,not:d,unit:n},o)}const $F={borderRadius:4},EF=$F;function pc(e,t){return t?Gn(e,t,{clone:!1}):e}const H0={xs:0,sm:600,md:900,lg:1200,xl:1536},i1={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${H0[e]}px)`};function ro(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const l=r.breakpoints||i1;return t.reduce((s,i,a)=>(s[l.up(l.keys[a])]=n(t[a]),s),{})}if(typeof t=="object"){const l=r.breakpoints||i1;return Object.keys(t).reduce((s,i)=>{if(Object.keys(l.values||H0).indexOf(i)!==-1){const a=l.up(i);s[a]=n(t[i],i)}else{const a=i;s[a]=t[a]}return s},{})}return n(t)}function w2(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const l=e.up(o);return r[l]={},r},{}))||{}}function S2(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function TF(e,...t){const n=w2(e),r=[n,...t].reduce((o,l)=>Gn(o,l),{});return S2(Object.keys(n),r)}function RF(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,l)=>{l<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function pg({values:e,breakpoints:t,base:n}){const r=n||RF(e,t),o=Object.keys(r);if(o.length===0)return e;let l;return o.reduce((s,i,a)=>(Array.isArray(e)?(s[i]=e[a]!=null?e[a]:e[l],l=a):typeof e=="object"?(s[i]=e[i]!=null?e[i]:e[l],l=i):s[i]=e,s),{})}function Kp(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,l)=>o&&o[l]?o[l]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function xf(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Kp(e,n)||r,t&&(o=t(o,r,e)),o}function Vt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,l=s=>{if(s[t]==null)return null;const i=s[t],a=s.theme,c=Kp(a,r)||{};return ro(s,i,d=>{let h=xf(c,o,d);return d===h&&typeof d=="string"&&(h=xf(c,o,`${t}${d==="default"?"":te(d)}`,d)),n===!1?h:{[n]:h}})};return l.propTypes={},l.filterProps=[t],l}function OF(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const _F={m:"margin",p:"padding"},FF={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},a1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jF=OF(e=>{if(e.length>2)if(a1[e])e=a1[e];else return[e];const[t,n]=e.split(""),r=_F[t],o=FF[n]||"";return Array.isArray(o)?o.map(l=>r+l):[r+o]}),z0=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],B0=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...z0,...B0];function wu(e,t,n,r){var o;const l=(o=Kp(e,t,!1))!=null?o:n;return typeof l=="number"?s=>typeof s=="string"?s:l*s:Array.isArray(l)?s=>typeof s=="string"?s:l[s]:typeof l=="function"?l:()=>{}}function V0(e){return wu(e,"spacing",8)}function ws(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 DF(e,t){return n=>e.reduce((r,o)=>(r[o]=ws(t,n),r),{})}function AF(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=jF(n),l=DF(o,r),s=e[n];return ro(e,s,l)}function P2(e,t){const n=V0(e.theme);return Object.keys(e).map(r=>AF(e,t,r,n)).reduce(pc,{})}function Dt(e){return P2(e,z0)}Dt.propTypes={};Dt.filterProps=z0;function At(e){return P2(e,B0)}At.propTypes={};At.filterProps=B0;function LF(e=8){if(e.mui)return e;const t=V0({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(l=>{const s=t(l);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function qp(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(l=>{r[l]=o}),r),{}),n=r=>Object.keys(r).reduce((o,l)=>t[l]?pc(o,t[l](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Mr(e){return typeof e!="number"?e:`${e}px solid`}function Hr(e,t){return Vt({prop:e,themeKey:"borders",transform:t})}const NF=Hr("border",Mr),HF=Hr("borderTop",Mr),zF=Hr("borderRight",Mr),BF=Hr("borderBottom",Mr),VF=Hr("borderLeft",Mr),UF=Hr("borderColor"),WF=Hr("borderTopColor"),GF=Hr("borderRightColor"),KF=Hr("borderBottomColor"),qF=Hr("borderLeftColor"),YF=Hr("outline",Mr),XF=Hr("outlineColor"),Yp=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=wu(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:ws(t,r)});return ro(e,e.borderRadius,n)}return null};Yp.propTypes={};Yp.filterProps=["borderRadius"];qp(NF,HF,zF,BF,VF,UF,WF,GF,KF,qF,Yp,YF,XF);const Xp=e=>{if(e.gap!==void 0&&e.gap!==null){const t=wu(e.theme,"spacing",8),n=r=>({gap:ws(t,r)});return ro(e,e.gap,n)}return null};Xp.propTypes={};Xp.filterProps=["gap"];const Qp=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=wu(e.theme,"spacing",8),n=r=>({columnGap:ws(t,r)});return ro(e,e.columnGap,n)}return null};Qp.propTypes={};Qp.filterProps=["columnGap"];const Zp=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=wu(e.theme,"spacing",8),n=r=>({rowGap:ws(t,r)});return ro(e,e.rowGap,n)}return null};Zp.propTypes={};Zp.filterProps=["rowGap"];const QF=Vt({prop:"gridColumn"}),ZF=Vt({prop:"gridRow"}),JF=Vt({prop:"gridAutoFlow"}),ej=Vt({prop:"gridAutoColumns"}),tj=Vt({prop:"gridAutoRows"}),nj=Vt({prop:"gridTemplateColumns"}),rj=Vt({prop:"gridTemplateRows"}),oj=Vt({prop:"gridTemplateAreas"}),lj=Vt({prop:"gridArea"});qp(Xp,Qp,Zp,QF,ZF,JF,ej,tj,nj,rj,oj,lj);function Ri(e,t){return t==="grey"?t:e}const sj=Vt({prop:"color",themeKey:"palette",transform:Ri}),ij=Vt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ri}),aj=Vt({prop:"backgroundColor",themeKey:"palette",transform:Ri});qp(sj,ij,aj);function or(e){return e<=1&&e!==0?`${e*100}%`:e}const cj=Vt({prop:"width",transform:or}),U0=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const l=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||H0[n];return l?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${l}${e.theme.breakpoints.unit}`}:{maxWidth:l}:{maxWidth:or(n)}};return ro(e,e.maxWidth,t)}return null};U0.filterProps=["maxWidth"];const uj=Vt({prop:"minWidth",transform:or}),dj=Vt({prop:"height",transform:or}),fj=Vt({prop:"maxHeight",transform:or}),pj=Vt({prop:"minHeight",transform:or});Vt({prop:"size",cssProperty:"width",transform:or});Vt({prop:"size",cssProperty:"height",transform:or});const hj=Vt({prop:"boxSizing"});qp(cj,U0,uj,dj,fj,pj,hj);const gj={border:{themeKey:"borders",transform:Mr},borderTop:{themeKey:"borders",transform:Mr},borderRight:{themeKey:"borders",transform:Mr},borderBottom:{themeKey:"borders",transform:Mr},borderLeft:{themeKey:"borders",transform:Mr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Mr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Yp},color:{themeKey:"palette",transform:Ri},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ri},backgroundColor:{themeKey:"palette",transform:Ri},p:{style:At},pt:{style:At},pr:{style:At},pb:{style:At},pl:{style:At},px:{style:At},py:{style:At},padding:{style:At},paddingTop:{style:At},paddingRight:{style:At},paddingBottom:{style:At},paddingLeft:{style:At},paddingX:{style:At},paddingY:{style:At},paddingInline:{style:At},paddingInlineStart:{style:At},paddingInlineEnd:{style:At},paddingBlock:{style:At},paddingBlockStart:{style:At},paddingBlockEnd:{style:At},m:{style:Dt},mt:{style:Dt},mr:{style:Dt},mb:{style:Dt},ml:{style:Dt},mx:{style:Dt},my:{style:Dt},margin:{style:Dt},marginTop:{style:Dt},marginRight:{style:Dt},marginBottom:{style:Dt},marginLeft:{style:Dt},marginX:{style:Dt},marginY:{style:Dt},marginInline:{style:Dt},marginInlineStart:{style:Dt},marginInlineEnd:{style:Dt},marginBlock:{style:Dt},marginBlockStart:{style:Dt},marginBlockEnd:{style:Dt},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:Xp},rowGap:{style:Zp},columnGap:{style:Qp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:or},maxWidth:{style:U0},minWidth:{transform:or},height:{transform:or},maxHeight:{transform:or},minHeight:{transform:or},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Jp=gj;function mj(...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 vj(e,t){return typeof e=="function"?e(t):e}function yj(){function e(n,r,o,l){const s={[n]:r,theme:o},i=l[n];if(!i)return{[n]:r};const{cssProperty:a=n,themeKey:c,transform:u,style:d}=i;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=Kp(o,c)||{};return d?d(s):ro(s,r,m=>{let x=xf(h,u,m);return m===x&&typeof m=="string"&&(x=xf(h,u,`${n}${m==="default"?"":te(m)}`,m)),a===!1?x:{[a]:x}})}function t(n){var r;const{sx:o,theme:l={}}=n||{};if(!o)return null;const s=(r=l.unstable_sxConfig)!=null?r:Jp;function i(a){let c=a;if(typeof a=="function")c=a(l);else if(typeof a!="object")return a;if(!c)return null;const u=w2(l.breakpoints),d=Object.keys(u);let h=u;return Object.keys(c).forEach(g=>{const m=vj(c[g],l);if(m!=null)if(typeof m=="object")if(s[g])h=pc(h,e(g,m,l,s));else{const x=ro({theme:l},m,w=>({[g]:w}));mj(x,m)?h[g]=t({sx:m,theme:l}):h=pc(h,x)}else h=pc(h,e(g,m,l,s))}),S2(d,h)}return Array.isArray(o)?o.map(i):i(o)}return t}const k2=yj();k2.filterProps=["sx"];const eh=k2;function xj(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const bj=["breakpoints","palette","spacing","shape"];function Su(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:l={}}=e,s=W(e,bj),i=IF(n),a=LF(o);let c=Gn({breakpoints:i,direction:"ltr",components:{},palette:v({mode:"light"},r),spacing:a,shape:v({},EF,l)},s);return c.applyStyles=xj,c=t.reduce((u,d)=>Gn(u,d),c),c.unstable_sxConfig=v({},Jp,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return eh({sx:d,theme:this})},c}function Cj(e){return Object.keys(e).length===0}function M2(e=null){const t=f.useContext(_0);return!t||Cj(t)?e:t}const wj=Su();function th(e=wj){return M2(e)}function Sj({styles:e,themeId:t,defaultTheme:n={}}){const r=th(n),o=typeof e=="function"?e(t&&r[t]||r):e;return p.jsx(rF,{styles:o})}const Pj=["sx"],kj=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Jp;return Object.keys(e).forEach(l=>{o[l]?r.systemProps[l]=e[l]:r.otherProps[l]=e[l]}),r};function W0(e){const{sx:t}=e,n=W(e,Pj),{systemProps:r,otherProps:o}=kj(n);let l;return Array.isArray(t)?l=[r,...t]:typeof t=="function"?l=(...s)=>{const i=t(...s);return ml(i)?v({},r,i):r}:l=v({},r,t),v({},o,{sx:l})}function I2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=I2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ee(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=I2(e))&&(r&&(r+=" "),r+=t);return r}const Mj=["className","component"];function $2(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,l=m2("div",{shouldForwardProp:i=>i!=="theme"&&i!=="sx"&&i!=="as"})(eh);return f.forwardRef(function(a,c){const u=th(n),d=W0(a),{className:h,component:g="div"}=d,m=W(d,Mj);return p.jsx(l,v({as:g,ref:c,className:ee(h,o?o(r):r),theme:t&&u[t]||u},m))})}const Ij=Me("MuiBox",["root"]),$j=Ij,Ej=$2({defaultClassName:$j.root,generateClassName:Gp.generate}),Tj=Ej,Rj=["ownerState"],Oj=["variants"],_j=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Fj(e){return Object.keys(e).length===0}function jj(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Dj=Su(),Aj=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function rd({defaultTheme:e,theme:t,themeId:n}){return Fj(t)?e:t[n]||t}function Lj(e){return e?(t,n)=>n[e]:null}function Ad(e,t){let{ownerState:n}=t,r=W(t,Rj);const o=typeof e=="function"?e(v({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(l=>Ad(l,v({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:l=[]}=o;let i=W(o,Oj);return l.forEach(a=>{let c=!0;typeof a.props=="function"?c=a.props(v({ownerState:n},r)):Object.keys(a.props).forEach(u=>{(n==null?void 0:n[u])!==a.props[u]&&r[u]!==a.props[u]&&(c=!1)}),c&&(Array.isArray(i)||(i=[i]),i.push(typeof a.style=="function"?a.style(v({ownerState:n},r)):a.style))}),i}return o}function E2(e={}){const{themeId:t,defaultTheme:n=Dj,rootShouldForwardProp:r=hc,slotShouldForwardProp:o=hc}=e,l=s=>eh(v({},s,{theme:rd(v({},s,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(s,i={})=>{oF(s,I=>I.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:h=Lj(Aj(c))}=i,g=W(i,_j),m=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,x=d||!1;let w,b=hc;c==="Root"||c==="root"?b=r:c?b=o:jj(s)&&(b=void 0);const y=m2(s,v({shouldForwardProp:b,label:w},g)),C=I=>typeof I=="function"&&I.__emotion_real!==I||ml(I)?P=>Ad(I,v({},P,{theme:rd({theme:P.theme,defaultTheme:n,themeId:t})})):I,S=(I,...P)=>{let k=C(I);const $=P?P.map(C):[];a&&h&&$.push(R=>{const L=rd(v({},R,{defaultTheme:n,themeId:t}));if(!L.components||!L.components[a]||!L.components[a].styleOverrides)return null;const _=L.components[a].styleOverrides,M={};return Object.entries(_).forEach(([T,j])=>{M[T]=Ad(j,v({},R,{theme:L}))}),h(R,M)}),a&&!m&&$.push(R=>{var L;const _=rd(v({},R,{defaultTheme:n,themeId:t})),M=_==null||(L=_.components)==null||(L=L[a])==null?void 0:L.variants;return Ad({variants:M},v({},R,{theme:_}))}),x||$.push(l);const D=$.length-P.length;if(Array.isArray(I)&&D>0){const R=new Array(D).fill("");k=[...I,...R],k.raw=[...I.raw,...R]}const O=y(k,...$);return s.muiName&&(O.muiName=s.muiName),O};return y.withConfig&&(S.withConfig=y.withConfig),S}}const Zt=E2();function Nj(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:N0(t.components[n].defaultProps,r)}function G0({props:e,name:t,defaultTheme:n,themeId:r}){let o=th(n);return r&&(o=o[r]||o),Nj({theme:o,name:t,props:e})}function K0(e,t=0,n=1){return PF(e,t,n)}function Hj(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 Ss(e){if(e.type)return e;if(e.charAt(0)==="#")return Ss(Hj(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Ll(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(Ll(10,o))}else r=r.split(",");return r=r.map(l=>parseFloat(l)),{type:n,values:r,colorSpace:o}}function nh(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,l)=>l<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 zj(e){e=Ss(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,l=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-l*Math.max(Math.min(u-3,9-u,1),-1);let i="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(i+="a",a.push(t[3])),nh({type:i,values:a})}function c1(e){e=Ss(e);let t=e.type==="hsl"||e.type==="hsla"?Ss(zj(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 Bj(e,t){const n=c1(e),r=c1(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function je(e,t){return e=Ss(e),t=K0(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,nh(e)}function Wi(e,t){if(e=Ss(e),t=K0(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 nh(e)}function Gi(e,t){if(e=Ss(e),t=K0(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 nh(e)}const Vj=["className","component","disableGutters","fixed","maxWidth","classes"],Uj=Su(),Wj=Zt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${te(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Gj=e=>G0({props:e,name:"MuiContainer",defaultTheme:Uj}),Kj=(e,t)=>{const n=a=>Ie(t,a),{classes:r,fixed:o,disableGutters:l,maxWidth:s}=e,i={root:["root",s&&`maxWidth${te(String(s))}`,o&&"fixed",l&&"disableGutters"]};return ae(i,n,r)};function qj(e={}){const{createStyledComponent:t=Wj,useThemeProps:n=Gj,componentName:r="MuiContainer"}=e,o=t(({theme:s,ownerState:i})=>v({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!i.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:i})=>i.fixed&&Object.keys(s.breakpoints.values).reduce((a,c)=>{const u=c,d=s.breakpoints.values[u];return d!==0&&(a[s.breakpoints.up(u)]={maxWidth:`${d}${s.breakpoints.unit}`}),a},{}),({theme:s,ownerState:i})=>v({},i.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},i.maxWidth&&i.maxWidth!=="xs"&&{[s.breakpoints.up(i.maxWidth)]:{maxWidth:`${s.breakpoints.values[i.maxWidth]}${s.breakpoints.unit}`}}));return f.forwardRef(function(i,a){const c=n(i),{className:u,component:d="div",disableGutters:h=!1,fixed:g=!1,maxWidth:m="lg"}=c,x=W(c,Vj),w=v({},c,{component:d,disableGutters:h,fixed:g,maxWidth:m}),b=Kj(w,r);return p.jsx(o,v({as:d,ownerState:w,className:ee(b.root,u),ref:a},x))})}const Yj=["component","direction","spacing","divider","children","className","useFlexGap"],Xj=Su(),Qj=Zt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Zj(e){return G0({props:e,name:"MuiStack",defaultTheme:Xj})}function Jj(e,t){const n=f.Children.toArray(e).filter(Boolean);return n.reduce((r,o,l)=>(r.push(o),l<n.length-1&&r.push(f.cloneElement(t,{key:`separator-${l}`})),r),[])}const eD=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],tD=({ownerState:e,theme:t})=>{let n=v({display:"flex",flexDirection:"column"},ro({theme:t},pg({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=V0(t),o=Object.keys(t.breakpoints.values).reduce((a,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(a[c]=!0),a),{}),l=pg({values:e.direction,base:o}),s=pg({values:e.spacing,base:o});typeof l=="object"&&Object.keys(l).forEach((a,c,u)=>{if(!l[a]){const h=c>0?l[u[c-1]]:"column";l[a]=h}}),n=Gn(n,ro({theme:t},s,(a,c)=>e.useFlexGap?{gap:ws(r,a)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${eD(c?l[c]:e.direction)}`]:ws(r,a)}}))}return n=TF(t.breakpoints,n),n};function nD(e={}){const{createStyledComponent:t=Qj,useThemeProps:n=Zj,componentName:r="MuiStack"}=e,o=()=>ae({root:["root"]},a=>Ie(r,a),{}),l=t(tD);return f.forwardRef(function(a,c){const u=n(a),d=W0(u),{component:h="div",direction:g="column",spacing:m=0,divider:x,children:w,className:b,useFlexGap:y=!1}=d,C=W(d,Yj),S={direction:g,spacing:m,useFlexGap:y},I=o();return p.jsx(l,v({as:h,ownerState:S,ref:c,className:ee(I.root,b)},C,{children:x?Jj(w,x):w}))})}function rD(e,t){return v({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const oD=["mode","contrastThreshold","tonalOffset"],u1={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:zc.white,default:zc.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}},hg={text:{primary:zc.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:zc.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 d1(e,t,n,r){const o=r.light||r,l=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Gi(e.main,o):t==="dark"&&(e.dark=Wi(e.main,l)))}function lD(e="light"){return e==="dark"?{main:qs[200],light:qs[50],dark:qs[400]}:{main:qs[700],light:qs[400],dark:qs[800]}}function sD(e="light"){return e==="dark"?{main:Ks[200],light:Ks[50],dark:Ks[400]}:{main:Ks[500],light:Ks[300],dark:Ks[700]}}function iD(e="light"){return e==="dark"?{main:Gs[500],light:Gs[300],dark:Gs[700]}:{main:Gs[700],light:Gs[400],dark:Gs[800]}}function aD(e="light"){return e==="dark"?{main:Ys[400],light:Ys[300],dark:Ys[700]}:{main:Ys[700],light:Ys[500],dark:Ys[900]}}function cD(e="light"){return e==="dark"?{main:Xs[400],light:Xs[300],dark:Xs[700]}:{main:Xs[800],light:Xs[500],dark:Xs[900]}}function uD(e="light"){return e==="dark"?{main:_a[400],light:_a[300],dark:_a[700]}:{main:"#ed6c02",light:_a[500],dark:_a[900]}}function dD(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=W(e,oD),l=e.primary||lD(t),s=e.secondary||sD(t),i=e.error||iD(t),a=e.info||aD(t),c=e.success||cD(t),u=e.warning||uD(t);function d(x){return Bj(x,hg.text.primary)>=n?hg.text.primary:u1.text.primary}const h=({color:x,name:w,mainShade:b=500,lightShade:y=300,darkShade:C=700})=>{if(x=v({},x),!x.main&&x[b]&&(x.main=x[b]),!x.hasOwnProperty("main"))throw new Error(Ll(11,w?` (${w})`:"",b));if(typeof x.main!="string")throw new Error(Ll(12,w?` (${w})`:"",JSON.stringify(x.main)));return d1(x,"light",y,r),d1(x,"dark",C,r),x.contrastText||(x.contrastText=d(x.main)),x},g={dark:hg,light:u1};return Gn(v({common:v({},zc),mode:t,primary:h({color:l,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:i,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:a,name:"info"}),success:h({color:c,name:"success"}),grey:XO,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:r},g[t]),o)}const fD=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function pD(e){return Math.round(e*1e5)/1e5}const f1={textTransform:"uppercase"},p1='"Roboto", "Helvetica", "Arial", sans-serif';function hD(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=p1,fontSize:o=14,fontWeightLight:l=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,h=W(n,fD),g=o/14,m=d||(b=>`${b/c*g}rem`),x=(b,y,C,S,I)=>v({fontFamily:r,fontWeight:b,fontSize:m(y),lineHeight:C},r===p1?{letterSpacing:`${pD(S/y)}em`}:{},I,u),w={h1:x(l,96,1.167,-1.5),h2:x(l,60,1.2,-.5),h3:x(s,48,1.167,0),h4:x(s,34,1.235,.25),h5:x(s,24,1.334,0),h6:x(i,20,1.6,.15),subtitle1:x(s,16,1.75,.15),subtitle2:x(i,14,1.57,.1),body1:x(s,16,1.5,.15),body2:x(s,14,1.43,.15),button:x(i,14,1.75,.4,f1),caption:x(s,12,1.66,.4),overline:x(s,12,2.66,1,f1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gn(v({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:l,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a},w),h,{clone:!1})}const gD=.2,mD=.14,vD=.12;function Pt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${gD})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${mD})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${vD})`].join(",")}const yD=["none",Pt(0,2,1,-1,0,1,1,0,0,1,3,0),Pt(0,3,1,-2,0,2,2,0,0,1,5,0),Pt(0,3,3,-2,0,3,4,0,0,1,8,0),Pt(0,2,4,-1,0,4,5,0,0,1,10,0),Pt(0,3,5,-1,0,5,8,0,0,1,14,0),Pt(0,3,5,-1,0,6,10,0,0,1,18,0),Pt(0,4,5,-2,0,7,10,1,0,2,16,1),Pt(0,5,5,-3,0,8,10,1,0,3,14,2),Pt(0,5,6,-3,0,9,12,1,0,3,16,2),Pt(0,6,6,-3,0,10,14,1,0,4,18,3),Pt(0,6,7,-4,0,11,15,1,0,4,20,3),Pt(0,7,8,-4,0,12,17,2,0,5,22,4),Pt(0,7,8,-4,0,13,19,2,0,5,24,4),Pt(0,7,9,-4,0,14,21,2,0,5,26,4),Pt(0,8,9,-5,0,15,22,2,0,6,28,5),Pt(0,8,10,-5,0,16,24,2,0,6,30,5),Pt(0,8,11,-5,0,17,26,2,0,6,32,5),Pt(0,9,11,-5,0,18,28,2,0,7,34,6),Pt(0,9,12,-6,0,19,29,2,0,7,36,6),Pt(0,10,13,-6,0,20,31,3,0,8,38,7),Pt(0,10,13,-6,0,21,33,3,0,8,40,7),Pt(0,10,14,-6,0,22,35,3,0,8,42,7),Pt(0,11,14,-7,0,23,36,3,0,9,44,8),Pt(0,11,15,-7,0,24,38,3,0,9,46,8)],xD=["duration","easing","delay"],bD={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)"},CD={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function h1(e){return`${Math.round(e)}ms`}function wD(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function SD(e){const t=v({},bD,e.easing),n=v({},CD,e.duration);return v({getAutoHeightDuration:wD,create:(o=["all"],l={})=>{const{duration:s=n.standard,easing:i=t.easeInOut,delay:a=0}=l;return W(l,xD),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof s=="string"?s:h1(s)} ${i} ${typeof a=="string"?a:h1(a)}`).join(",")}},e,{easing:t,duration:n})}const PD={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},kD=PD,MD=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function T2(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:l={}}=e,s=W(e,MD);if(e.vars)throw new Error(Ll(18));const i=dD(r),a=Su(e);let c=Gn(a,{mixins:rD(a.breakpoints,n),palette:i,shadows:yD.slice(),typography:hD(i,l),transitions:SD(o),zIndex:v({},kD)});return c=Gn(c,s),c=t.reduce((u,d)=>Gn(u,d),c),c.unstable_sxConfig=v({},Jp,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return eh({sx:d,theme:this})},c}function ID(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function $D(e){return parseFloat(e)}const ED=T2(),rh=ED;function on(){const e=th(rh);return e[bu]||e}function Re({props:e,name:t}){return G0({props:e,name:t,defaultTheme:rh,themeId:bu})}const gn=e=>hc(e)&&e!=="classes",TD=hc,X=E2({themeId:bu,defaultTheme:rh,rootShouldForwardProp:gn}),RD=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},g1=RD;function OD(e){return Ie("MuiSvgIcon",e)}Me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _D=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],FD=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${te(t)}`,`fontSize${te(n)}`]};return ae(o,OD,r)},jD=X("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${te(n.color)}`],t[`fontSize${te(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,l,s,i,a,c,u,d,h,g,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((l=e.typography)==null||(s=l.pxToRem)==null?void 0:s.call(l,20))||"1.25rem",medium:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(d=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?d:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),Xm=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSvgIcon"}),{children:o,className:l,color:s="inherit",component:i="svg",fontSize:a="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:h="0 0 24 24"}=r,g=W(r,_D),m=f.isValidElement(o)&&o.type==="svg",x=v({},r,{color:s,component:i,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:m}),w={};u||(w.viewBox=h);const b=FD(x);return p.jsxs(jD,v({as:i,className:ee(b.root,l),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},w,g,m&&o.props,{ownerState:x,children:[m?o.props.children:o,d?p.jsx("title",{children:d}):null]}))});Xm.muiName="SvgIcon";function He(e,t){function n(r,o){return p.jsx(Xm,v({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Xm.muiName,f.memo(f.forwardRef(n))}const DD={configure:e=>{Gp.configure(e)}},AD=Object.freeze(Object.defineProperty({__proto__:null,capitalize:te,createChainedFunction:qm,createSvgIcon:He,debounce:xa,deprecatedPropType:aF,isMuiElement:Dd,ownerDocument:Tt,ownerWindow:Dr,requirePropFactory:cF,setRef:Gc,unstable_ClassNameGenerator:DD,unstable_useEnhancedEffect:tt,unstable_useId:ct,unsupportedProp:dF,useControlled:_l,useEventCallback:wt,useForkRef:nt,useIsFocusVisible:A0},Symbol.toStringTag,{value:"Module"}));function Qm(e,t){return Qm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Qm(e,t)}function R2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qm(e,t)}const m1={disabled:!1},bf=Yr.createContext(null);var LD=function(t){return t.scrollTop},Za="unmounted",Xl="exited",Ql="entering",li="entered",Zm="exiting",Qo=function(e){R2(t,e);function t(r,o){var l;l=e.call(this,r,o)||this;var s=o,i=s&&!s.isMounting?r.enter:r.appear,a;return l.appearStatus=null,r.in?i?(a=Xl,l.appearStatus=Ql):a=li:r.unmountOnExit||r.mountOnEnter?a=Za:a=Xl,l.state={status:a},l.nextCallback=null,l}t.getDerivedStateFromProps=function(o,l){var s=o.in;return s&&l.status===Za?{status:Xl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var l=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Ql&&s!==li&&(l=Ql):(s===Ql||s===li)&&(l=Zm)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,l,s,i;return l=s=i=o,o!=null&&typeof o!="number"&&(l=o.exit,s=o.enter,i=o.appear!==void 0?o.appear:s),{exit:l,enter:s,appear:i}},n.updateStatus=function(o,l){if(o===void 0&&(o=!1),l!==null)if(this.cancelNextCallback(),l===Ql){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:td.findDOMNode(this);s&&LD(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xl&&this.setState({status:Za})},n.performEnter=function(o){var l=this,s=this.props.enter,i=this.context?this.context.isMounting:o,a=this.props.nodeRef?[i]:[td.findDOMNode(this),i],c=a[0],u=a[1],d=this.getTimeouts(),h=i?d.appear:d.enter;if(!o&&!s||m1.disabled){this.safeSetState({status:li},function(){l.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Ql},function(){l.props.onEntering(c,u),l.onTransitionEnd(h,function(){l.safeSetState({status:li},function(){l.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,l=this.props.exit,s=this.getTimeouts(),i=this.props.nodeRef?void 0:td.findDOMNode(this);if(!l||m1.disabled){this.safeSetState({status:Xl},function(){o.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Zm},function(){o.props.onExiting(i),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Xl},function(){o.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,l){l=this.setNextCallback(l),this.setState(o,l)},n.setNextCallback=function(o){var l=this,s=!0;return this.nextCallback=function(i){s&&(s=!1,l.nextCallback=null,o(i))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,l){this.setNextCallback(l);var s=this.props.nodeRef?this.props.nodeRef.current:td.findDOMNode(this),i=o==null&&!this.props.addEndListener;if(!s||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=a[0],u=a[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Za)return null;var l=this.props,s=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var i=W(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Yr.createElement(bf.Provider,{value:null},typeof s=="function"?s(o,i):Yr.cloneElement(Yr.Children.only(s),i))},t}(Yr.Component);Qo.contextType=bf;Qo.propTypes={};function Qs(){}Qo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qs,onEntering:Qs,onEntered:Qs,onExit:Qs,onExiting:Qs,onExited:Qs};Qo.UNMOUNTED=Za;Qo.EXITED=Xl;Qo.ENTERING=Ql;Qo.ENTERED=li;Qo.EXITING=Zm;const q0=Qo;function ND(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y0(e,t){var n=function(l){return t&&f.isValidElement(l)?t(l):l},r=Object.create(null);return e&&f.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function HD(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var l in e)l in t?o.length&&(r[l]=o,o=[]):o.push(l);var s,i={};for(var a in t){if(r[a])for(s=0;s<r[a].length;s++){var c=r[a][s];i[r[a][s]]=n(c)}i[a]=n(a)}for(s=0;s<o.length;s++)i[o[s]]=n(o[s]);return i}function rs(e,t,n){return n[t]!=null?n[t]:e.props[t]}function zD(e,t){return Y0(e.children,function(n){return f.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:rs(n,"appear",e),enter:rs(n,"enter",e),exit:rs(n,"exit",e)})})}function BD(e,t,n){var r=Y0(e.children),o=HD(t,r);return Object.keys(o).forEach(function(l){var s=o[l];if(f.isValidElement(s)){var i=l in t,a=l in r,c=t[l],u=f.isValidElement(c)&&!c.props.in;a&&(!i||u)?o[l]=f.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:rs(s,"exit",e),enter:rs(s,"enter",e)}):!a&&i&&!u?o[l]=f.cloneElement(s,{in:!1}):a&&i&&f.isValidElement(c)&&(o[l]=f.cloneElement(s,{onExited:n.bind(null,s),in:c.props.in,exit:rs(s,"exit",e),enter:rs(s,"enter",e)}))}}),o}var VD=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},UD={component:"div",childFactory:function(t){return t}},X0=function(e){R2(t,e);function t(r,o){var l;l=e.call(this,r,o)||this;var s=l.handleExited.bind(ND(l));return l.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},l}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,l){var s=l.children,i=l.handleExited,a=l.firstRender;return{children:a?zD(o,i):BD(o,s,i),firstRender:!1}},n.handleExited=function(o,l){var s=Y0(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(l),this.mounted&&this.setState(function(i){var a=v({},i.children);return delete a[o.key],{children:a}}))},n.render=function(){var o=this.props,l=o.component,s=o.childFactory,i=W(o,["component","childFactory"]),a=this.state.contextValue,c=VD(this.state.children).map(s);return delete i.appear,delete i.enter,delete i.exit,l===null?Yr.createElement(bf.Provider,{value:a},c):Yr.createElement(bf.Provider,{value:a},Yr.createElement(l,i,c))},t}(Yr.Component);X0.propTypes={};X0.defaultProps=UD;const WD=X0,Q0=e=>e.scrollTop;function Ki(e,t){var n,r;const{timeout:o,easing:l,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 l=="object"?l[t.mode]:l,delay:s.transitionDelay}}function GD(e){return Ie("MuiPaper",e)}Me("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 KD=["className","component","elevation","square","variant"],qD=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,l={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ae(l,GD,o)},YD=X("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 v({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"&&v({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${je("#fff",g1(t.elevation))}, ${je("#fff",g1(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),XD=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiPaper"}),{className:o,component:l="div",elevation:s=1,square:i=!1,variant:a="elevation"}=r,c=W(r,KD),u=v({},r,{component:l,elevation:s,square:i,variant:a}),d=qD(u);return p.jsx(YD,v({as:l,ownerState:u,className:ee(d.root,o),ref:n},c))}),_n=XD;function Kc(e){return typeof e=="string"}function Ja(e,t,n){return e===void 0||Kc(e)?t:v({},t,{ownerState:v({},t.ownerState,n)})}const QD={disableDefaultClasses:!1},ZD=f.createContext(QD);function JD(e){const{disableDefaultClasses:t}=f.useContext(ZD);return n=>t?"":e(n)}function O2(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 eA(e,t,n){return typeof e=="function"?e(t,n):e}function v1(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 tA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:l}=e;if(!t){const g=ee(n==null?void 0:n.className,l,o==null?void 0:o.className,r==null?void 0:r.className),m=v({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),x=v({},n,o,r);return g.length>0&&(x.className=g),Object.keys(m).length>0&&(x.style=m),{props:x,internalRef:void 0}}const s=O2(v({},o,r)),i=v1(r),a=v1(o),c=t(s),u=ee(c==null?void 0:c.className,n==null?void 0:n.className,l,o==null?void 0:o.className,r==null?void 0:r.className),d=v({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=v({},c,n,a,i);return u.length>0&&(h.className=u),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:c.ref}}const nA=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Qt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:l=!1}=e,s=W(e,nA),i=l?{}:eA(r,o),{props:a,internalRef:c}=tA(v({},s,{externalSlotProps:i})),u=nt(c,i==null?void 0:i.ref,(t=e.additionalProps)==null?void 0:t.ref);return Ja(n,v({},a,{ref:u}),o)}function rA(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:l,rippleSize:s,in:i,onExited:a,timeout:c}=e,[u,d]=f.useState(!1),h=ee(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+l,left:-(s/2)+o},m=ee(n.child,u&&n.childLeaving,r&&n.childPulsate);return!i&&!u&&d(!0),f.useEffect(()=>{if(!i&&a!=null){const x=setTimeout(a,c);return()=>{clearTimeout(x)}}},[a,i,c]),p.jsx("span",{className:h,style:g,children:p.jsx("span",{className:m})})}const wr=Me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),oA=["center","classes","className"];let oh=e=>e,y1,x1,b1,C1;const Jm=550,lA=80,sA=Ds(y1||(y1=oh`
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`)),iA=Ds(x1||(x1=oh`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`)),aA=Ds(b1||(b1=oh`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`)),cA=X("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),uA=X(rA,{name:"MuiTouchRipple",slot:"Ripple"})(C1||(C1=oh`
opacity: 0;
position: absolute;
&.${0} {
opacity: 0.3;
transform: scale(1);
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
&.${0} {
animation-duration: ${0}ms;
}
& .${0} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${0} {
opacity: 0;
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
& .${0} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${0};
animation-duration: 2500ms;
animation-timing-function: ${0};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`),wr.rippleVisible,sA,Jm,({theme:e})=>e.transitions.easing.easeInOut,wr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,wr.child,wr.childLeaving,iA,Jm,({theme:e})=>e.transitions.easing.easeInOut,wr.childPulsate,aA,({theme:e})=>e.transitions.easing.easeInOut),dA=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:l={},className:s}=r,i=W(r,oA),[a,c]=f.useState([]),u=f.useRef(0),d=f.useRef(null);f.useEffect(()=>{d.current&&(d.current(),d.current=null)},[a]);const h=f.useRef(!1),g=wi(),m=f.useRef(null),x=f.useRef(null),w=f.useCallback(S=>{const{pulsate:I,rippleX:P,rippleY:k,rippleSize:$,cb:D}=S;c(O=>[...O,p.jsx(uA,{classes:{ripple:ee(l.ripple,wr.ripple),rippleVisible:ee(l.rippleVisible,wr.rippleVisible),ripplePulsate:ee(l.ripplePulsate,wr.ripplePulsate),child:ee(l.child,wr.child),childLeaving:ee(l.childLeaving,wr.childLeaving),childPulsate:ee(l.childPulsate,wr.childPulsate)},timeout:Jm,pulsate:I,rippleX:P,rippleY:k,rippleSize:$},u.current)]),u.current+=1,d.current=D},[l]),b=f.useCallback((S={},I={},P=()=>{})=>{const{pulsate:k=!1,center:$=o||I.pulsate,fakeElement:D=!1}=I;if((S==null?void 0:S.type)==="mousedown"&&h.current){h.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(h.current=!0);const O=D?null:x.current,R=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let L,_,M;if($||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)L=Math.round(R.width/2),_=Math.round(R.height/2);else{const{clientX:T,clientY:j}=S.touches&&S.touches.length>0?S.touches[0]:S;L=Math.round(T-R.left),_=Math.round(j-R.top)}if($)M=Math.sqrt((2*R.width**2+R.height**2)/3),M%2===0&&(M+=1);else{const T=Math.max(Math.abs((O?O.clientWidth:0)-L),L)*2+2,j=Math.max(Math.abs((O?O.clientHeight:0)-_),_)*2+2;M=Math.sqrt(T**2+j**2)}S!=null&&S.touches?m.current===null&&(m.current=()=>{w({pulsate:k,rippleX:L,rippleY:_,rippleSize:M,cb:P})},g.start(lA,()=>{m.current&&(m.current(),m.current=null)})):w({pulsate:k,rippleX:L,rippleY:_,rippleSize:M,cb:P})},[o,w,g]),y=f.useCallback(()=>{b({},{pulsate:!0})},[b]),C=f.useCallback((S,I)=>{if(g.clear(),(S==null?void 0:S.type)==="touchend"&&m.current){m.current(),m.current=null,g.start(0,()=>{C(S,I)});return}m.current=null,c(P=>P.length>0?P.slice(1):P),d.current=I},[g]);return f.useImperativeHandle(n,()=>({pulsate:y,start:b,stop:C}),[y,b,C]),p.jsx(cA,v({className:ee(wr.root,l.root,s),ref:x},i,{children:p.jsx(WD,{component:null,exit:!0,children:a})}))}),fA=dA;function pA(e){return Ie("MuiButtonBase",e)}const hA=Me("MuiButtonBase",["root","disabled","focusVisible"]),gA=["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"],mA=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=ae({root:["root",t&&"disabled",n&&"focusVisible"]},pA,o);return n&&r&&(s.root+=` ${r}`),s},vA=X("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"},[`&.${hA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),yA=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:l=!1,children:s,className:i,component:a="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:h=!1,LinkComponent:g="a",onBlur:m,onClick:x,onContextMenu:w,onDragLeave:b,onFocus:y,onFocusVisible:C,onKeyDown:S,onKeyUp:I,onMouseDown:P,onMouseLeave:k,onMouseUp:$,onTouchEnd:D,onTouchMove:O,onTouchStart:R,tabIndex:L=0,TouchRippleProps:_,touchRippleRef:M,type:T}=r,j=W(r,gA),A=f.useRef(null),E=f.useRef(null),F=nt(E,M),{isFocusVisibleRef:N,onFocus:V,onBlur:H,ref:Q}=A0(),[q,Z]=f.useState(!1);c&&q&&Z(!1),f.useImperativeHandle(o,()=>({focusVisible:()=>{Z(!0),A.current.focus()}}),[]);const[le,fe]=f.useState(!1);f.useEffect(()=>{fe(!0)},[]);const me=le&&!u&&!c;f.useEffect(()=>{q&&h&&!u&&le&&E.current.pulsate()},[u,h,q,le]);function Y(ge,We,Kt=d){return wt(Xe=>(We&&We(Xe),!Kt&&E.current&&E.current[ge](Xe),!0))}const oe=Y("start",P),J=Y("stop",w),U=Y("stop",b),ue=Y("stop",$),pe=Y("stop",ge=>{q&&ge.preventDefault(),k&&k(ge)}),de=Y("start",R),G=Y("stop",D),se=Y("stop",O),ie=Y("stop",ge=>{H(ge),N.current===!1&&Z(!1),m&&m(ge)},!1),ke=wt(ge=>{A.current||(A.current=ge.currentTarget),V(ge),N.current===!0&&(Z(!0),C&&C(ge)),y&&y(ge)}),we=()=>{const ge=A.current;return a&&a!=="button"&&!(ge.tagName==="A"&&ge.href)},Se=f.useRef(!1),ve=wt(ge=>{h&&!Se.current&&q&&E.current&&ge.key===" "&&(Se.current=!0,E.current.stop(ge,()=>{E.current.start(ge)})),ge.target===ge.currentTarget&&we()&&ge.key===" "&&ge.preventDefault(),S&&S(ge),ge.target===ge.currentTarget&&we()&&ge.key==="Enter"&&!c&&(ge.preventDefault(),x&&x(ge))}),re=wt(ge=>{h&&ge.key===" "&&E.current&&q&&!ge.defaultPrevented&&(Se.current=!1,E.current.stop(ge,()=>{E.current.pulsate(ge)})),I&&I(ge),x&&ge.target===ge.currentTarget&&we()&&ge.key===" "&&!ge.defaultPrevented&&x(ge)});let ce=a;ce==="button"&&(j.href||j.to)&&(ce=g);const ye={};ce==="button"?(ye.type=T===void 0?"button":T,ye.disabled=c):(!j.href&&!j.to&&(ye.role="button"),c&&(ye["aria-disabled"]=c));const _e=nt(n,Q,A),Le=v({},r,{centerRipple:l,component:a,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:h,tabIndex:L,focusVisible:q}),Oe=mA(Le);return p.jsxs(vA,v({as:ce,className:ee(Oe.root,i),ownerState:Le,onBlur:ie,onClick:x,onContextMenu:J,onFocus:ke,onKeyDown:ve,onKeyUp:re,onMouseDown:oe,onMouseLeave:pe,onMouseUp:ue,onDragLeave:U,onTouchEnd:G,onTouchMove:se,onTouchStart:de,ref:_e,tabIndex:c?-1:L,type:T},ye,j,{children:[s,me?p.jsx(fA,v({ref:F,center:l},_)):null]}))}),Ps=yA;function xA(e){return Ie("MuiAlert",e)}const bA=Me("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),w1=bA;function CA(e){return Ie("MuiIconButton",e)}const wA=Me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),SA=["edge","children","className","color","disabled","disableFocusRipple","size"],PA=e=>{const{classes:t,disabled:n,color:r,edge:o,size:l}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${te(r)}`,o&&`edge${te(o)}`,`size${te(l)}`]};return ae(s,CA,t)},kA=X(Ps,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${te(n.color)}`],n.edge&&t[`edge${te(n.edge)}`],t[`size${te(n.size)}`]]}})(({theme:e,ownerState:t})=>v({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})`:je(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 v({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&v({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":v({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(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)},{[`&.${wA.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),MA=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiIconButton"}),{edge:o=!1,children:l,className:s,color:i="default",disabled:a=!1,disableFocusRipple:c=!1,size:u="medium"}=r,d=W(r,SA),h=v({},r,{edge:o,color:i,disabled:a,disableFocusRipple:c,size:u}),g=PA(h);return p.jsx(kA,v({className:ee(g.root,s),centerRipple:!0,focusRipple:!c,disabled:a,ref:n,ownerState:h},d,{children:l}))}),dn=MA,IA=He(p.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),$A=He(p.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),EA=He(p.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),TA=He(p.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),_2=He(p.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),RA=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],OA=e=>{const{variant:t,color:n,severity:r,classes:o}=e,l={root:["root",`${t}${te(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ae(l,xA,o)},_A=X(_n,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${te(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Wi:Gi,r=e.palette.mode==="light"?Gi:Wi,o=t.color||t.severity;return v({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${w1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${w1.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&v({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),FA=X("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),jA=X("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),S1=X("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),P1={success:p.jsx(IA,{fontSize:"inherit"}),warning:p.jsx($A,{fontSize:"inherit"}),error:p.jsx(EA,{fontSize:"inherit"}),info:p.jsx(TA,{fontSize:"inherit"})},DA=f.forwardRef(function(t,n){var r,o,l,s,i,a;const c=Re({props:t,name:"MuiAlert"}),{action:u,children:d,className:h,closeText:g="Close",color:m,components:x={},componentsProps:w={},icon:b,iconMapping:y=P1,onClose:C,role:S="alert",severity:I="success",slotProps:P={},slots:k={},variant:$="standard"}=c,D=W(c,RA),O=v({},c,{color:m,severity:I,variant:$}),R=OA(O),L=(r=(o=k.closeButton)!=null?o:x.CloseButton)!=null?r:dn,_=(l=(s=k.closeIcon)!=null?s:x.CloseIcon)!=null?l:_2,M=(i=P.closeButton)!=null?i:w.closeButton,T=(a=P.closeIcon)!=null?a:w.closeIcon;return p.jsxs(_A,v({role:S,elevation:0,ownerState:O,className:ee(R.root,h),ref:n},D,{children:[b!==!1?p.jsx(FA,{ownerState:O,className:R.icon,children:b||y[I]||P1[I]}):null,p.jsx(jA,{ownerState:O,className:R.message,children:d}),u!=null?p.jsx(S1,{ownerState:O,className:R.action,children:u}):null,u==null&&C?p.jsx(S1,{ownerState:O,className:R.action,children:p.jsx(L,v({size:"small","aria-label":g,title:g,color:"inherit",onClick:C},M,{children:p.jsx(_,v({fontSize:"small"},T))}))}):null]}))}),Z0=DA;function AA(e){return Ie("MuiTypography",e)}Me("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const LA=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],NA=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:l,classes:s}=e,i={root:["root",l,e.align!=="inherit"&&`align${te(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ae(i,AA,s)},HA=X("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${te(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>v({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&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})),k1={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},zA={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},BA=e=>zA[e]||e,VA=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTypography"}),o=BA(r.color),l=W0(v({},r,{color:o})),{align:s="inherit",className:i,component:a,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:h="body1",variantMapping:g=k1}=l,m=W(l,LA),x=v({},l,{align:s,color:o,className:i,component:a,gutterBottom:c,noWrap:u,paragraph:d,variant:h,variantMapping:g}),w=a||(d?"p":g[h]||k1[h])||"span",b=NA(x);return p.jsx(HA,v({as:w,ref:n,ownerState:x,className:ee(b.root,i)},m))}),It=VA;function UA(e){return Ie("MuiAlertTitle",e)}Me("MuiAlertTitle",["root"]);const WA=["className"],GA=e=>{const{classes:t}=e;return ae({root:["root"]},UA,t)},KA=X(It,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),qA=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiAlertTitle"}),{className:o}=r,l=W(r,WA),s=r,i=GA(s);return p.jsx(KA,v({gutterBottom:!0,component:"div",ownerState:s,ref:n,className:ee(i.root,o)},l))}),F2=qA;function YA(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,l=L0({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:i,max:a=r}=s?l:e,c=i&&Number(i)>a?`${a}+`:i;return{badgeContent:i,invisible:s,max:a,displayValue:c}}const j2="base";function XA(e){return`${j2}--${e}`}function QA(e,t){return`${j2}-${e}-${t}`}function D2(e,t){const n=C2[t];return n?XA(n):QA(e,t)}function ZA(e,t){const n={};return t.forEach(r=>{n[r]=D2(e,r)}),n}function M1(e){return e.substring(2).toLowerCase()}function JA(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function A2(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:l="onTouchEnd"}=e,s=f.useRef(!1),i=f.useRef(null),a=f.useRef(!1),c=f.useRef(!1);f.useEffect(()=>(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const u=nt(t.ref,i),d=wt(m=>{const x=c.current;c.current=!1;const w=Tt(i.current);if(!a.current||!i.current||"clientX"in m&&JA(m,w))return;if(s.current){s.current=!1;return}let b;m.composedPath?b=m.composedPath().indexOf(i.current)>-1:b=!w.documentElement.contains(m.target)||i.current.contains(m.target),!b&&(n||!x)&&o(m)}),h=m=>x=>{c.current=!0;const w=t.props[m];w&&w(x)},g={ref:u};return l!==!1&&(g[l]=h(l)),f.useEffect(()=>{if(l!==!1){const m=M1(l),x=Tt(i.current),w=()=>{s.current=!0};return x.addEventListener(m,d),x.addEventListener("touchmove",w),()=>{x.removeEventListener(m,d),x.removeEventListener("touchmove",w)}}},[d,l]),r!==!1&&(g[r]=h(r)),f.useEffect(()=>{if(r!==!1){const m=M1(r),x=Tt(i.current);return x.addEventListener(m,d),()=>{x.removeEventListener(m,d)}}},[d,r]),p.jsx(f.Fragment,{children:f.cloneElement(t,g)})}const eL=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function tL(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 nL(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 rL(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||nL(e))}function oL(e){const t=[],n=[];return Array.from(e.querySelectorAll(eL)).forEach((r,o)=>{const l=tL(r);l===-1||!rL(r)||(l===0?t.push(r):n.push({documentOrder:o,tabIndex:l,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 lL(){return!0}function L2(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:l=oL,isEnabled:s=lL,open:i}=e,a=f.useRef(!1),c=f.useRef(null),u=f.useRef(null),d=f.useRef(null),h=f.useRef(null),g=f.useRef(!1),m=f.useRef(null),x=nt(t.ref,m),w=f.useRef(null);f.useEffect(()=>{!i||!m.current||(g.current=!n)},[n,i]),f.useEffect(()=>{if(!i||!m.current)return;const C=Tt(m.current);return m.current.contains(C.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),g.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(a.current=!0,d.current.focus()),d.current=null)}},[i]),f.useEffect(()=>{if(!i||!m.current)return;const C=Tt(m.current),S=k=>{w.current=k,!(r||!s()||k.key!=="Tab")&&C.activeElement===m.current&&k.shiftKey&&(a.current=!0,u.current&&u.current.focus())},I=()=>{const k=m.current;if(k===null)return;if(!C.hasFocus()||!s()||a.current){a.current=!1;return}if(k.contains(C.activeElement)||r&&C.activeElement!==c.current&&C.activeElement!==u.current)return;if(C.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let $=[];if((C.activeElement===c.current||C.activeElement===u.current)&&($=l(m.current)),$.length>0){var D,O;const R=!!((D=w.current)!=null&&D.shiftKey&&((O=w.current)==null?void 0:O.key)==="Tab"),L=$[0],_=$[$.length-1];typeof L!="string"&&typeof _!="string"&&(R?_.focus():L.focus())}else k.focus()};C.addEventListener("focusin",I),C.addEventListener("keydown",S,!0);const P=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(P),C.removeEventListener("focusin",I),C.removeEventListener("keydown",S,!0)}},[n,r,o,s,i,l]);const b=C=>{d.current===null&&(d.current=C.relatedTarget),g.current=!0,h.current=C.target;const S=t.props.onFocus;S&&S(C)},y=C=>{d.current===null&&(d.current=C.relatedTarget),g.current=!0};return p.jsxs(f.Fragment,{children:[p.jsx("div",{tabIndex:i?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),f.cloneElement(t,{ref:x,onFocus:b}),p.jsx("div",{tabIndex:i?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}function sL(e){return typeof e=="function"?e():e}const N2=f.forwardRef(function(t,n){const{children:r,container:o,disablePortal:l=!1}=t,[s,i]=f.useState(null),a=nt(f.isValidElement(r)?r.ref:null,n);if(tt(()=>{l||i(sL(o)||document.body)},[o,l]),tt(()=>{if(s&&!l)return Gc(n,s),()=>{Gc(n,null)}},[n,s,l]),l){if(f.isValidElement(r)){const c={ref:a};return f.cloneElement(r,c)}return p.jsx(f.Fragment,{children:r})}return p.jsx(f.Fragment,{children:s&&Fs.createPortal(r,s)})});function iL(e){const t=Tt(e);return t.body===e?Dr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function gc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function I1(e){return parseInt(Dr(e).getComputedStyle(e).paddingRight,10)||0}function aL(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 $1(e,t,n,r,o){const l=[t,n,...r];[].forEach.call(e.children,s=>{const i=l.indexOf(s)===-1,a=!aL(s);i&&a&&gc(s,o)})}function gg(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function cL(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(iL(r)){const s=b2(Tt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${I1(r)+s}px`;const i=Tt(r).querySelectorAll(".mui-fixed");[].forEach.call(i,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${I1(a)+s}px`})}let l;if(r.parentNode instanceof DocumentFragment)l=Tt(r).body;else{const s=r.parentElement,i=Dr(r);l=(s==null?void 0:s.nodeName)==="HTML"&&i.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden"}return()=>{n.forEach(({value:l,el:s,property:i})=>{l?s.style.setProperty(i,l):s.style.removeProperty(i)})}}function uL(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class dL{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&&gc(t.modalRef,!1);const o=uL(n);$1(n,t.mount,t.modalRef,o,!0);const l=gg(this.containers,s=>s.container===n);return l!==-1?(this.containers[l].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=gg(this.containers,l=>l.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=cL(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=gg(this.containers,s=>s.modals.indexOf(t)!==-1),l=this.containers[o];if(l.modals.splice(l.modals.indexOf(t),1),this.modals.splice(r,1),l.modals.length===0)l.restore&&l.restore(),t.modalRef&&gc(t.modalRef,n),$1(l.container,t.mount,t.modalRef,l.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=l.modals[l.modals.length-1];s.modalRef&&gc(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function fL(e){return typeof e=="function"?e():e}function pL(e){return e?e.props.hasOwnProperty("in"):!1}const hL=new dL;function gL(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=hL,closeAfterTransition:l=!1,onTransitionEnter:s,onTransitionExited:i,children:a,onClose:c,open:u,rootRef:d}=e,h=f.useRef({}),g=f.useRef(null),m=f.useRef(null),x=nt(m,d),[w,b]=f.useState(!u),y=pL(a);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const S=()=>Tt(g.current),I=()=>(h.current.modalRef=m.current,h.current.mount=g.current,h.current),P=()=>{o.mount(I(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},k=wt(()=>{const j=fL(t)||S().body;o.add(I(),j),m.current&&P()}),$=f.useCallback(()=>o.isTopModal(I()),[o]),D=wt(j=>{g.current=j,j&&(u&&$()?P():m.current&&gc(m.current,C))}),O=f.useCallback(()=>{o.remove(I(),C)},[C,o]);f.useEffect(()=>()=>{O()},[O]),f.useEffect(()=>{u?k():(!y||!l)&&O()},[u,O,y,l,k]);const R=j=>A=>{var E;(E=j.onKeyDown)==null||E.call(j,A),!(A.key!=="Escape"||A.which===229||!$())&&(n||(A.stopPropagation(),c&&c(A,"escapeKeyDown")))},L=j=>A=>{var E;(E=j.onClick)==null||E.call(j,A),A.target===A.currentTarget&&c&&c(A,"backdropClick")};return{getRootProps:(j={})=>{const A=O2(e);delete A.onTransitionEnter,delete A.onTransitionExited;const E=v({},A,j);return v({role:"presentation"},E,{onKeyDown:R(E),ref:x})},getBackdropProps:(j={})=>{const A=j;return v({"aria-hidden":!0},A,{onClick:L(A),open:u})},getTransitionProps:()=>{const j=()=>{b(!1),s&&s()},A=()=>{b(!0),i&&i(),l&&O()};return{onEnter:qm(j,a==null?void 0:a.props.onEnter),onExited:qm(A,a==null?void 0:a.props.onExited)}},rootRef:x,portalRef:D,isTopModal:$,exited:w,hasTransition:y}}function H2(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,l]=f.useState(!1);return tt(()=>{n||l(!0)},[n]),f.useEffect(()=>{n&&l(!0)},[n]),p.jsx(f.Fragment,{children:o?t:r})}var Kn="top",Ar="bottom",Lr="right",qn="left",J0="auto",Pu=[Kn,Ar,Lr,qn],qi="start",qc="end",mL="clippingParents",z2="viewport",ja="popper",vL="reference",E1=Pu.reduce(function(e,t){return e.concat([t+"-"+qi,t+"-"+qc])},[]),B2=[].concat(Pu,[J0]).reduce(function(e,t){return e.concat([t,t+"-"+qi,t+"-"+qc])},[]),yL="beforeRead",xL="read",bL="afterRead",CL="beforeMain",wL="main",SL="afterMain",PL="beforeWrite",kL="write",ML="afterWrite",IL=[yL,xL,bL,CL,wL,SL,PL,kL,ML];function Io(e){return e?(e.nodeName||"").toLowerCase():null}function ur(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ks(e){var t=ur(e).Element;return e instanceof t||e instanceof Element}function _r(e){var t=ur(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ey(e){if(typeof ShadowRoot>"u")return!1;var t=ur(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $L(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},l=t.elements[n];!_r(l)||!Io(l)||(Object.assign(l.style,r),Object.keys(o).forEach(function(s){var i=o[s];i===!1?l.removeAttribute(s):l.setAttribute(s,i===!0?"":i)}))})}function EL(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],l=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=s.reduce(function(a,c){return a[c]="",a},{});!_r(o)||!Io(o)||(Object.assign(o.style,i),Object.keys(l).forEach(function(a){o.removeAttribute(a)}))})}}const TL={name:"applyStyles",enabled:!0,phase:"write",fn:$L,effect:EL,requires:["computeStyles"]};function So(e){return e.split("-")[0]}var us=Math.max,Cf=Math.min,Yi=Math.round;function ev(){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 V2(){return!/^((?!chrome|android).)*safari/i.test(ev())}function Xi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,l=1;t&&_r(e)&&(o=e.offsetWidth>0&&Yi(r.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Yi(r.height)/e.offsetHeight||1);var s=ks(e)?ur(e):window,i=s.visualViewport,a=!V2()&&n,c=(r.left+(a&&i?i.offsetLeft:0))/o,u=(r.top+(a&&i?i.offsetTop:0))/l,d=r.width/o,h=r.height/l;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function ty(e){var t=Xi(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 U2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ey(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Go(e){return ur(e).getComputedStyle(e)}function RL(e){return["table","td","th"].indexOf(Io(e))>=0}function Vl(e){return((ks(e)?e.ownerDocument:e.document)||window.document).documentElement}function lh(e){return Io(e)==="html"?e:e.assignedSlot||e.parentNode||(ey(e)?e.host:null)||Vl(e)}function T1(e){return!_r(e)||Go(e).position==="fixed"?null:e.offsetParent}function OL(e){var t=/firefox/i.test(ev()),n=/Trident/i.test(ev());if(n&&_r(e)){var r=Go(e);if(r.position==="fixed")return null}var o=lh(e);for(ey(o)&&(o=o.host);_r(o)&&["html","body"].indexOf(Io(o))<0;){var l=Go(o);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return o;o=o.parentNode}return null}function ku(e){for(var t=ur(e),n=T1(e);n&&RL(n)&&Go(n).position==="static";)n=T1(n);return n&&(Io(n)==="html"||Io(n)==="body"&&Go(n).position==="static")?t:n||OL(e)||t}function ny(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mc(e,t,n){return us(e,Cf(t,n))}function _L(e,t,n){var r=mc(e,t,n);return r>n?n:r}function W2(){return{top:0,right:0,bottom:0,left:0}}function G2(e){return Object.assign({},W2(),e)}function K2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var FL=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,G2(typeof t!="number"?t:K2(t,Pu))};function jL(e){var t,n=e.state,r=e.name,o=e.options,l=n.elements.arrow,s=n.modifiersData.popperOffsets,i=So(n.placement),a=ny(i),c=[qn,Lr].indexOf(i)>=0,u=c?"height":"width";if(!(!l||!s)){var d=FL(o.padding,n),h=ty(l),g=a==="y"?Kn:qn,m=a==="y"?Ar:Lr,x=n.rects.reference[u]+n.rects.reference[a]-s[a]-n.rects.popper[u],w=s[a]-n.rects.reference[a],b=ku(l),y=b?a==="y"?b.clientHeight||0:b.clientWidth||0:0,C=x/2-w/2,S=d[g],I=y-h[u]-d[m],P=y/2-h[u]/2+C,k=mc(S,P,I),$=a;n.modifiersData[r]=(t={},t[$]=k,t.centerOffset=k-P,t)}}function DL(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)||U2(t.elements.popper,o)&&(t.elements.arrow=o))}const AL={name:"arrow",enabled:!0,phase:"main",fn:jL,effect:DL,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qi(e){return e.split("-")[1]}var LL={top:"auto",right:"auto",bottom:"auto",left:"auto"};function NL(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Yi(n*o)/o||0,y:Yi(r*o)/o||0}}function R1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,l=e.variation,s=e.offsets,i=e.position,a=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=s.x,g=h===void 0?0:h,m=s.y,x=m===void 0?0:m,w=typeof u=="function"?u({x:g,y:x}):{x:g,y:x};g=w.x,x=w.y;var b=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),C=qn,S=Kn,I=window;if(c){var P=ku(n),k="clientHeight",$="clientWidth";if(P===ur(n)&&(P=Vl(n),Go(P).position!=="static"&&i==="absolute"&&(k="scrollHeight",$="scrollWidth")),P=P,o===Kn||(o===qn||o===Lr)&&l===qc){S=Ar;var D=d&&P===I&&I.visualViewport?I.visualViewport.height:P[k];x-=D-r.height,x*=a?1:-1}if(o===qn||(o===Kn||o===Ar)&&l===qc){C=Lr;var O=d&&P===I&&I.visualViewport?I.visualViewport.width:P[$];g-=O-r.width,g*=a?1:-1}}var R=Object.assign({position:i},c&&LL),L=u===!0?NL({x:g,y:x},ur(n)):{x:g,y:x};if(g=L.x,x=L.y,a){var _;return Object.assign({},R,(_={},_[S]=y?"0":"",_[C]=b?"0":"",_.transform=(I.devicePixelRatio||1)<=1?"translate("+g+"px, "+x+"px)":"translate3d("+g+"px, "+x+"px, 0)",_))}return Object.assign({},R,(t={},t[S]=y?x+"px":"",t[C]=b?g+"px":"",t.transform="",t))}function HL(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,l=n.adaptive,s=l===void 0?!0:l,i=n.roundOffsets,a=i===void 0?!0:i,c={placement:So(t.placement),variation:Qi(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,R1(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,R1(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const zL={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:HL,data:{}};var od={passive:!0};function BL(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,l=o===void 0?!0:o,s=r.resize,i=s===void 0?!0:s,a=ur(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(u){u.addEventListener("scroll",n.update,od)}),i&&a.addEventListener("resize",n.update,od),function(){l&&c.forEach(function(u){u.removeEventListener("scroll",n.update,od)}),i&&a.removeEventListener("resize",n.update,od)}}const VL={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:BL,data:{}};var UL={left:"right",right:"left",bottom:"top",top:"bottom"};function Ld(e){return e.replace(/left|right|bottom|top/g,function(t){return UL[t]})}var WL={start:"end",end:"start"};function O1(e){return e.replace(/start|end/g,function(t){return WL[t]})}function ry(e){var t=ur(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function oy(e){return Xi(Vl(e)).left+ry(e).scrollLeft}function GL(e,t){var n=ur(e),r=Vl(e),o=n.visualViewport,l=r.clientWidth,s=r.clientHeight,i=0,a=0;if(o){l=o.width,s=o.height;var c=V2();(c||!c&&t==="fixed")&&(i=o.offsetLeft,a=o.offsetTop)}return{width:l,height:s,x:i+oy(e),y:a}}function KL(e){var t,n=Vl(e),r=ry(e),o=(t=e.ownerDocument)==null?void 0:t.body,l=us(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=us(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+oy(e),a=-r.scrollTop;return Go(o||n).direction==="rtl"&&(i+=us(n.clientWidth,o?o.clientWidth:0)-l),{width:l,height:s,x:i,y:a}}function ly(e){var t=Go(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function q2(e){return["html","body","#document"].indexOf(Io(e))>=0?e.ownerDocument.body:_r(e)&&ly(e)?e:q2(lh(e))}function vc(e,t){var n;t===void 0&&(t=[]);var r=q2(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),l=ur(r),s=o?[l].concat(l.visualViewport||[],ly(r)?r:[]):r,i=t.concat(s);return o?i:i.concat(vc(lh(s)))}function tv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qL(e,t){var n=Xi(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 _1(e,t,n){return t===z2?tv(GL(e,n)):ks(t)?qL(t,n):tv(KL(Vl(e)))}function YL(e){var t=vc(lh(e)),n=["absolute","fixed"].indexOf(Go(e).position)>=0,r=n&&_r(e)?ku(e):e;return ks(r)?t.filter(function(o){return ks(o)&&U2(o,r)&&Io(o)!=="body"}):[]}function XL(e,t,n,r){var o=t==="clippingParents"?YL(e):[].concat(t),l=[].concat(o,[n]),s=l[0],i=l.reduce(function(a,c){var u=_1(e,c,r);return a.top=us(u.top,a.top),a.right=Cf(u.right,a.right),a.bottom=Cf(u.bottom,a.bottom),a.left=us(u.left,a.left),a},_1(e,s,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Y2(e){var t=e.reference,n=e.element,r=e.placement,o=r?So(r):null,l=r?Qi(r):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,a;switch(o){case Kn:a={x:s,y:t.y-n.height};break;case Ar:a={x:s,y:t.y+t.height};break;case Lr:a={x:t.x+t.width,y:i};break;case qn:a={x:t.x-n.width,y:i};break;default:a={x:t.x,y:t.y}}var c=o?ny(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(l){case qi:a[c]=a[c]-(t[u]/2-n[u]/2);break;case qc:a[c]=a[c]+(t[u]/2-n[u]/2);break}}return a}function Yc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,l=n.strategy,s=l===void 0?e.strategy:l,i=n.boundary,a=i===void 0?mL:i,c=n.rootBoundary,u=c===void 0?z2:c,d=n.elementContext,h=d===void 0?ja:d,g=n.altBoundary,m=g===void 0?!1:g,x=n.padding,w=x===void 0?0:x,b=G2(typeof w!="number"?w:K2(w,Pu)),y=h===ja?vL:ja,C=e.rects.popper,S=e.elements[m?y:h],I=XL(ks(S)?S:S.contextElement||Vl(e.elements.popper),a,u,s),P=Xi(e.elements.reference),k=Y2({reference:P,element:C,strategy:"absolute",placement:o}),$=tv(Object.assign({},C,k)),D=h===ja?$:P,O={top:I.top-D.top+b.top,bottom:D.bottom-I.bottom+b.bottom,left:I.left-D.left+b.left,right:D.right-I.right+b.right},R=e.modifiersData.offset;if(h===ja&&R){var L=R[o];Object.keys(O).forEach(function(_){var M=[Lr,Ar].indexOf(_)>=0?1:-1,T=[Kn,Ar].indexOf(_)>=0?"y":"x";O[_]+=L[T]*M})}return O}function QL(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,l=n.rootBoundary,s=n.padding,i=n.flipVariations,a=n.allowedAutoPlacements,c=a===void 0?B2:a,u=Qi(r),d=u?i?E1:E1.filter(function(m){return Qi(m)===u}):Pu,h=d.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=d);var g=h.reduce(function(m,x){return m[x]=Yc(e,{placement:x,boundary:o,rootBoundary:l,padding:s})[So(x)],m},{});return Object.keys(g).sort(function(m,x){return g[m]-g[x]})}function ZL(e){if(So(e)===J0)return[];var t=Ld(e);return[O1(e),t,O1(t)]}function JL(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,l=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!0:s,a=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,m=g===void 0?!0:g,x=n.allowedAutoPlacements,w=t.options.placement,b=So(w),y=b===w,C=a||(y||!m?[Ld(w)]:ZL(w)),S=[w].concat(C).reduce(function(q,Z){return q.concat(So(Z)===J0?QL(t,{placement:Z,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:x}):Z)},[]),I=t.rects.reference,P=t.rects.popper,k=new Map,$=!0,D=S[0],O=0;O<S.length;O++){var R=S[O],L=So(R),_=Qi(R)===qi,M=[Kn,Ar].indexOf(L)>=0,T=M?"width":"height",j=Yc(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),A=M?_?Lr:qn:_?Ar:Kn;I[T]>P[T]&&(A=Ld(A));var E=Ld(A),F=[];if(l&&F.push(j[L]<=0),i&&F.push(j[A]<=0,j[E]<=0),F.every(function(q){return q})){D=R,$=!1;break}k.set(R,F)}if($)for(var N=m?3:1,V=function(Z){var le=S.find(function(fe){var me=k.get(fe);if(me)return me.slice(0,Z).every(function(Y){return Y})});if(le)return D=le,"break"},H=N;H>0;H--){var Q=V(H);if(Q==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const e5={name:"flip",enabled:!0,phase:"main",fn:JL,requiresIfExists:["offset"],data:{_skip:!1}};function F1(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 j1(e){return[Kn,Lr,Ar,qn].some(function(t){return e[t]>=0})}function t5(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,s=Yc(t,{elementContext:"reference"}),i=Yc(t,{altBoundary:!0}),a=F1(s,r),c=F1(i,o,l),u=j1(a),d=j1(c);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const n5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:t5};function r5(e,t,n){var r=So(e),o=[qn,Kn].indexOf(r)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=l[0],i=l[1];return s=s||0,i=(i||0)*o,[qn,Lr].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function o5(e){var t=e.state,n=e.options,r=e.name,o=n.offset,l=o===void 0?[0,0]:o,s=B2.reduce(function(u,d){return u[d]=r5(d,t.rects,l),u},{}),i=s[t.placement],a=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const l5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:o5};function s5(e){var t=e.state,n=e.name;t.modifiersData[n]=Y2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const i5={name:"popperOffsets",enabled:!0,phase:"read",fn:s5,data:{}};function a5(e){return e==="x"?"y":"x"}function c5(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,l=o===void 0?!0:o,s=n.altAxis,i=s===void 0?!1:s,a=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,g=h===void 0?!0:h,m=n.tetherOffset,x=m===void 0?0:m,w=Yc(t,{boundary:a,rootBoundary:c,padding:d,altBoundary:u}),b=So(t.placement),y=Qi(t.placement),C=!y,S=ny(b),I=a5(S),P=t.modifiersData.popperOffsets,k=t.rects.reference,$=t.rects.popper,D=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,O=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(P){if(l){var _,M=S==="y"?Kn:qn,T=S==="y"?Ar:Lr,j=S==="y"?"height":"width",A=P[S],E=A+w[M],F=A-w[T],N=g?-$[j]/2:0,V=y===qi?k[j]:$[j],H=y===qi?-$[j]:-k[j],Q=t.elements.arrow,q=g&&Q?ty(Q):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:W2(),le=Z[M],fe=Z[T],me=mc(0,k[j],q[j]),Y=C?k[j]/2-N-me-le-O.mainAxis:V-me-le-O.mainAxis,oe=C?-k[j]/2+N+me+fe+O.mainAxis:H+me+fe+O.mainAxis,J=t.elements.arrow&&ku(t.elements.arrow),U=J?S==="y"?J.clientTop||0:J.clientLeft||0:0,ue=(_=R==null?void 0:R[S])!=null?_:0,pe=A+Y-ue-U,de=A+oe-ue,G=mc(g?Cf(E,pe):E,A,g?us(F,de):F);P[S]=G,L[S]=G-A}if(i){var se,ie=S==="x"?Kn:qn,ke=S==="x"?Ar:Lr,we=P[I],Se=I==="y"?"height":"width",ve=we+w[ie],re=we-w[ke],ce=[Kn,qn].indexOf(b)!==-1,ye=(se=R==null?void 0:R[I])!=null?se:0,_e=ce?ve:we-k[Se]-$[Se]-ye+O.altAxis,Le=ce?we+k[Se]+$[Se]-ye-O.altAxis:re,Oe=g&&ce?_L(_e,we,Le):mc(g?_e:ve,we,g?Le:re);P[I]=Oe,L[I]=Oe-we}t.modifiersData[r]=L}}const u5={name:"preventOverflow",enabled:!0,phase:"main",fn:c5,requiresIfExists:["offset"]};function d5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function f5(e){return e===ur(e)||!_r(e)?ry(e):d5(e)}function p5(e){var t=e.getBoundingClientRect(),n=Yi(t.width)/e.offsetWidth||1,r=Yi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function h5(e,t,n){n===void 0&&(n=!1);var r=_r(t),o=_r(t)&&p5(t),l=Vl(t),s=Xi(e,o,n),i={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Io(t)!=="body"||ly(l))&&(i=f5(t)),_r(t)?(a=Xi(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):l&&(a.x=oy(l))),{x:s.left+i.scrollLeft-a.x,y:s.top+i.scrollTop-a.y,width:s.width,height:s.height}}function g5(e){var t=new Map,n=new Set,r=[];e.forEach(function(l){t.set(l.name,l)});function o(l){n.add(l.name);var s=[].concat(l.requires||[],l.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var a=t.get(i);a&&o(a)}}),r.push(l)}return e.forEach(function(l){n.has(l.name)||o(l)}),r}function m5(e){var t=g5(e);return IL.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function v5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function y5(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 D1={placement:"bottom",modifiers:[],strategy:"absolute"};function A1(){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 x5(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,l=o===void 0?D1:o;return function(i,a,c){c===void 0&&(c=l);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},D1,l),modifiersData:{},elements:{reference:i,popper:a},attributes:{},styles:{}},d=[],h=!1,g={state:u,setOptions:function(b){var y=typeof b=="function"?b(u.options):b;x(),u.options=Object.assign({},l,u.options,y),u.scrollParents={reference:ks(i)?vc(i):i.contextElement?vc(i.contextElement):[],popper:vc(a)};var C=m5(y5([].concat(r,u.options.modifiers)));return u.orderedModifiers=C.filter(function(S){return S.enabled}),m(),g.update()},forceUpdate:function(){if(!h){var b=u.elements,y=b.reference,C=b.popper;if(A1(y,C)){u.rects={reference:h5(y,ku(C),u.options.strategy==="fixed"),popper:ty(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var I=u.orderedModifiers[S],P=I.fn,k=I.options,$=k===void 0?{}:k,D=I.name;typeof P=="function"&&(u=P({state:u,options:$,name:D,instance:g})||u)}}}},update:v5(function(){return new Promise(function(w){g.forceUpdate(),w(u)})}),destroy:function(){x(),h=!0}};if(!A1(i,a))return g;g.setOptions(c).then(function(w){!h&&c.onFirstUpdate&&c.onFirstUpdate(w)});function m(){u.orderedModifiers.forEach(function(w){var b=w.name,y=w.options,C=y===void 0?{}:y,S=w.effect;if(typeof S=="function"){var I=S({state:u,name:b,instance:g,options:C}),P=function(){};d.push(I||P)}})}function x(){d.forEach(function(w){return w()}),d=[]}return g}}var b5=[VL,i5,zL,TL,l5,e5,u5,AL,n5],C5=x5({defaultModifiers:b5});const X2="Popper";function w5(e){return D2(X2,e)}ZA(X2,["root"]);const S5=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],P5=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function k5(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 nv(e){return typeof e=="function"?e():e}function M5(e){return e.nodeType!==void 0}const I5=()=>ae({root:["root"]},JD(w5)),$5={},E5=f.forwardRef(function(t,n){var r;const{anchorEl:o,children:l,direction:s,disablePortal:i,modifiers:a,open:c,placement:u,popperOptions:d,popperRef:h,slotProps:g={},slots:m={},TransitionProps:x}=t,w=W(t,S5),b=f.useRef(null),y=nt(b,n),C=f.useRef(null),S=nt(C,h),I=f.useRef(S);tt(()=>{I.current=S},[S]),f.useImperativeHandle(h,()=>C.current,[]);const P=k5(u,s),[k,$]=f.useState(P),[D,O]=f.useState(nv(o));f.useEffect(()=>{C.current&&C.current.forceUpdate()}),f.useEffect(()=>{o&&O(nv(o))},[o]),tt(()=>{if(!D||!c)return;const T=E=>{$(E.placement)};let j=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:E})=>{T(E)}}];a!=null&&(j=j.concat(a)),d&&d.modifiers!=null&&(j=j.concat(d.modifiers));const A=C5(D,b.current,v({placement:P},d,{modifiers:j}));return I.current(A),()=>{A.destroy(),I.current(null)}},[D,i,a,c,d,P]);const R={placement:k};x!==null&&(R.TransitionProps=x);const L=I5(),_=(r=m.root)!=null?r:"div",M=Qt({elementType:_,externalSlotProps:g.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:L.root});return p.jsx(_,v({},M,{children:typeof l=="function"?l(R):l}))}),Q2=f.forwardRef(function(t,n){const{anchorEl:r,children:o,container:l,direction:s="ltr",disablePortal:i=!1,keepMounted:a=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:h=$5,popperRef:g,style:m,transition:x=!1,slotProps:w={},slots:b={}}=t,y=W(t,P5),[C,S]=f.useState(!0),I=()=>{S(!1)},P=()=>{S(!0)};if(!a&&!u&&(!x||C))return null;let k;if(l)k=l;else if(r){const O=nv(r);k=O&&M5(O)?Tt(O).body:Tt(null).body}const $=!u&&a&&(!x||C)?"none":void 0,D=x?{in:u,onEnter:I,onExited:P}:void 0;return p.jsx(N2,{disablePortal:i,container:k,children:p.jsx(E5,v({anchorEl:r,direction:s,disablePortal:i,modifiers:c,ref:n,open:x?!C:u,placement:d,popperOptions:h,popperRef:g,slotProps:w,slots:b},y,{style:v({position:"fixed",top:0,left:0,display:$},m),TransitionProps:D,children:o}))})}),T5=["onChange","maxRows","minRows","style","value"];function ld(e){return parseInt(e,10)||0}const R5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function L1(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const O5=f.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:l=1,style:s,value:i}=t,a=W(t,T5),{current:c}=f.useRef(i!=null),u=f.useRef(null),d=nt(n,u),h=f.useRef(null),g=f.useRef(0),[m,x]=f.useState({outerHeightStyle:0}),w=f.useCallback(()=>{const S=u.current,P=Dr(S).getComputedStyle(S);if(P.width==="0px")return{outerHeightStyle:0};const k=h.current;k.style.width=P.width,k.value=S.value||t.placeholder||"x",k.value.slice(-1)===`
`&&(k.value+=" ");const $=P.boxSizing,D=ld(P.paddingBottom)+ld(P.paddingTop),O=ld(P.borderBottomWidth)+ld(P.borderTopWidth),R=k.scrollHeight;k.value="x";const L=k.scrollHeight;let _=R;l&&(_=Math.max(Number(l)*L,_)),o&&(_=Math.min(Number(o)*L,_)),_=Math.max(_,L);const M=_+($==="border-box"?D+O:0),T=Math.abs(_-R)<=1;return{outerHeightStyle:M,overflow:T}},[o,l,t.placeholder]),b=(S,I)=>{const{outerHeightStyle:P,overflow:k}=I;return g.current<20&&(P>0&&Math.abs((S.outerHeightStyle||0)-P)>1||S.overflow!==k)?(g.current+=1,{overflow:k,outerHeightStyle:P}):S},y=f.useCallback(()=>{const S=w();L1(S)||x(I=>b(I,S))},[w]);tt(()=>{const S=()=>{const R=w();L1(R)||Fs.flushSync(()=>{x(L=>b(L,R))})},I=()=>{g.current=0,S()};let P;const k=xa(I),$=u.current,D=Dr($);D.addEventListener("resize",k);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(I),O.observe($)),()=>{k.clear(),cancelAnimationFrame(P),D.removeEventListener("resize",k),O&&O.disconnect()}},[w]),tt(()=>{y()}),f.useEffect(()=>{g.current=0},[i]);const C=S=>{g.current=0,c||y(),r&&r(S)};return p.jsxs(f.Fragment,{children:[p.jsx("textarea",v({value:i,onChange:C,ref:d,rows:l,style:v({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},s)},a)),p.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:v({},R5.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function N1(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Z2(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:l,trim:s=!1}=e;return(i,{inputValue:a,getOptionLabel:c})=>{let u=s?a.trim():a;n&&(u=u.toLowerCase()),t&&(u=N1(u));const d=u?i.filter(h=>{let g=(l||c)(h);return n&&(g=g.toLowerCase()),t&&(g=N1(g)),o==="start"?g.indexOf(u)===0:g.indexOf(u)>-1}):i;return typeof r=="number"?d.slice(0,r):d}}function mg(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const _5=Z2(),H1=5,F5=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function j5(e){const{unstable_isActiveElementInListbox:t=F5,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:l=!1,blurOnSelect:s=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:a=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:h=!1,disabled:g,disabledItemsFocusable:m=!1,disableListWrap:x=!1,filterOptions:w=_5,filterSelectedOptions:b=!1,freeSolo:y=!1,getOptionDisabled:C,getOptionKey:S,getOptionLabel:I=ne=>{var K;return(K=ne.label)!=null?K:ne},groupBy:P,handleHomeEndKeys:k=!e.freeSolo,id:$,includeInputInList:D=!1,inputValue:O,isOptionEqualToValue:R=(ne,K)=>ne===K,multiple:L=!1,onChange:_,onClose:M,onHighlightChange:T,onInputChange:j,onOpen:A,open:E,openOnFocus:F=!1,options:N,readOnly:V=!1,selectOnFocus:H=!e.freeSolo,value:Q}=e,q=ct($);let Z=I;Z=ne=>{const K=I(ne);return typeof K!="string"?String(K):K};const le=f.useRef(!1),fe=f.useRef(!0),me=f.useRef(null),Y=f.useRef(null),[oe,J]=f.useState(null),[U,ue]=f.useState(-1),pe=o?0:-1,de=f.useRef(pe),[G,se]=_l({controlled:Q,default:u,name:c}),[ie,ke]=_l({controlled:O,default:"",name:c,state:"inputValue"}),[we,Se]=f.useState(!1),ve=f.useCallback((ne,K)=>{if(!(L?G.length<K.length:K!==null)&&!i)return;let Fe;if(L)Fe="";else if(K==null)Fe="";else{const ot=Z(K);Fe=typeof ot=="string"?ot:""}ie!==Fe&&(ke(Fe),j&&j(ne,Fe,"reset"))},[Z,ie,L,j,ke,i,G]),[re,ce]=_l({controlled:E,default:!1,name:c,state:"open"}),[ye,_e]=f.useState(!0),Le=!L&&G!=null&&ie===Z(G),Oe=re&&!V,ge=Oe?w(N.filter(ne=>!(b&&(L?G:[G]).some(K=>K!==null&&R(ne,K)))),{inputValue:Le&&ye?"":ie,getOptionLabel:Z}):[],We=L0({filteredOptions:ge,value:G,inputValue:ie});f.useEffect(()=>{const ne=G!==We.value;we&&!ne||y&&!ne||ve(null,G)},[G,ve,we,We.value,y]);const Kt=re&&ge.length>0&&!V,Xe=wt(ne=>{ne===-1?me.current.focus():oe.querySelector(`[data-tag-index="${ne}"]`).focus()});f.useEffect(()=>{L&&U>G.length-1&&(ue(-1),Xe(-1))},[G,L,U,Xe]);function be(ne,K){if(!Y.current||ne<0||ne>=ge.length)return-1;let xe=ne;for(;;){const Fe=Y.current.querySelector(`[data-option-index="${xe}"]`),ot=m?!1:!Fe||Fe.disabled||Fe.getAttribute("aria-disabled")==="true";if(Fe&&Fe.hasAttribute("tabindex")&&!ot)return xe;if(K==="next"?xe=(xe+1)%ge.length:xe=(xe-1+ge.length)%ge.length,xe===ne)return-1}}const De=wt(({event:ne,index:K,reason:xe="auto"})=>{if(de.current=K,K===-1?me.current.removeAttribute("aria-activedescendant"):me.current.setAttribute("aria-activedescendant",`${q}-option-${K}`),T&&T(ne,K===-1?null:ge[K],xe),!Y.current)return;const Fe=Y.current.querySelector(`[role="option"].${n}-focused`);Fe&&(Fe.classList.remove(`${n}-focused`),Fe.classList.remove(`${n}-focusVisible`));let ot=Y.current;if(Y.current.getAttribute("role")!=="listbox"&&(ot=Y.current.parentElement.querySelector('[role="listbox"]')),!ot)return;if(K===-1){ot.scrollTop=0;return}const jt=Y.current.querySelector(`[data-option-index="${K}"]`);if(jt&&(jt.classList.add(`${n}-focused`),xe==="keyboard"&&jt.classList.add(`${n}-focusVisible`),ot.scrollHeight>ot.clientHeight&&xe!=="mouse"&&xe!=="touch")){const Ht=jt,Ae=ot.clientHeight+ot.scrollTop,xn=Ht.offsetTop+Ht.offsetHeight;xn>Ae?ot.scrollTop=xn-ot.clientHeight:Ht.offsetTop-Ht.offsetHeight*(P?1.3:0)<ot.scrollTop&&(ot.scrollTop=Ht.offsetTop-Ht.offsetHeight*(P?1.3:0))}}),Be=wt(({event:ne,diff:K,direction:xe="next",reason:Fe="auto"})=>{if(!Oe)return;const jt=be((()=>{const Ht=ge.length-1;if(K==="reset")return pe;if(K==="start")return 0;if(K==="end")return Ht;const Ae=de.current+K;return Ae<0?Ae===-1&&D?-1:x&&de.current!==-1||Math.abs(K)>1?0:Ht:Ae>Ht?Ae===Ht+1&&D?-1:x||Math.abs(K)>1?Ht:0:Ae})(),xe);if(De({index:jt,reason:Fe,event:ne}),r&&K!=="reset")if(jt===-1)me.current.value=ie;else{const Ht=Z(ge[jt]);me.current.value=Ht,Ht.toLowerCase().indexOf(ie.toLowerCase())===0&&ie.length>0&&me.current.setSelectionRange(ie.length,Ht.length)}}),_t=()=>{const ne=(K,xe)=>{const Fe=K?Z(K):"",ot=xe?Z(xe):"";return Fe===ot};if(de.current!==-1&&We.filteredOptions&&We.filteredOptions.length!==ge.length&&We.inputValue===ie&&(L?G.length===We.value.length&&We.value.every((K,xe)=>Z(G[xe])===Z(K)):ne(We.value,G))){const K=We.filteredOptions[de.current];if(K&&ge.some(Fe=>Z(Fe)===Z(K)))return!0}return!1},mn=f.useCallback(()=>{if(!Oe||_t())return;const ne=L?G[0]:G;if(ge.length===0||ne==null){Be({diff:"reset"});return}if(Y.current){if(ne!=null){const K=ge[de.current];if(L&&K&&mg(G,Fe=>R(K,Fe))!==-1)return;const xe=mg(ge,Fe=>R(Fe,ne));xe===-1?Be({diff:"reset"}):De({index:xe});return}if(de.current>=ge.length-1){De({index:ge.length-1});return}De({index:de.current})}},[ge.length,L?!1:G,b,Be,De,Oe,ie,L]),gr=wt(ne=>{Gc(Y,ne),ne&&mn()});f.useEffect(()=>{mn()},[mn]);const vn=ne=>{re||(ce(!0),_e(!0),A&&A(ne))},mr=(ne,K)=>{re&&(ce(!1),M&&M(ne,K))},In=(ne,K,xe,Fe)=>{if(L){if(G.length===K.length&&G.every((ot,jt)=>ot===K[jt]))return}else if(G===K)return;_&&_(ne,K,xe,Fe),se(K)},vr=f.useRef(!1),Zn=(ne,K,xe="selectOption",Fe="options")=>{let ot=xe,jt=K;if(L){jt=Array.isArray(G)?G.slice():[];const Ht=mg(jt,Ae=>R(K,Ae));Ht===-1?jt.push(K):Fe!=="freeSolo"&&(jt.splice(Ht,1),ot="removeOption")}ve(ne,jt),In(ne,jt,ot,{option:K}),!h&&(!ne||!ne.ctrlKey&&!ne.metaKey)&&mr(ne,ot),(s===!0||s==="touch"&&vr.current||s==="mouse"&&!vr.current)&&me.current.blur()};function vt(ne,K){if(ne===-1)return-1;let xe=ne;for(;;){if(K==="next"&&xe===G.length||K==="previous"&&xe===-1)return-1;const Fe=oe.querySelector(`[data-tag-index="${xe}"]`);if(!Fe||!Fe.hasAttribute("tabindex")||Fe.disabled||Fe.getAttribute("aria-disabled")==="true")xe+=K==="next"?1:-1;else return xe}}const ft=(ne,K)=>{if(!L)return;ie===""&&mr(ne,"toggleInput");let xe=U;U===-1?ie===""&&K==="previous"&&(xe=G.length-1):(xe+=K==="next"?1:-1,xe<0&&(xe=0),xe===G.length&&(xe=-1)),xe=vt(xe,K),ue(xe),Xe(xe)},io=ne=>{le.current=!0,ke(""),j&&j(ne,"","clear"),In(ne,L?[]:null,"clear")},tl=ne=>K=>{if(ne.onKeyDown&&ne.onKeyDown(K),!K.defaultMuiPrevented&&(U!==-1&&["ArrowLeft","ArrowRight"].indexOf(K.key)===-1&&(ue(-1),Xe(-1)),K.which!==229))switch(K.key){case"Home":Oe&&k&&(K.preventDefault(),Be({diff:"start",direction:"next",reason:"keyboard",event:K}));break;case"End":Oe&&k&&(K.preventDefault(),Be({diff:"end",direction:"previous",reason:"keyboard",event:K}));break;case"PageUp":K.preventDefault(),Be({diff:-H1,direction:"previous",reason:"keyboard",event:K}),vn(K);break;case"PageDown":K.preventDefault(),Be({diff:H1,direction:"next",reason:"keyboard",event:K}),vn(K);break;case"ArrowDown":K.preventDefault(),Be({diff:1,direction:"next",reason:"keyboard",event:K}),vn(K);break;case"ArrowUp":K.preventDefault(),Be({diff:-1,direction:"previous",reason:"keyboard",event:K}),vn(K);break;case"ArrowLeft":ft(K,"previous");break;case"ArrowRight":ft(K,"next");break;case"Enter":if(de.current!==-1&&Oe){const xe=ge[de.current],Fe=C?C(xe):!1;if(K.preventDefault(),Fe)return;Zn(K,xe,"selectOption"),r&&me.current.setSelectionRange(me.current.value.length,me.current.value.length)}else y&&ie!==""&&Le===!1&&(L&&K.preventDefault(),Zn(K,ie,"createOption","freeSolo"));break;case"Escape":Oe?(K.preventDefault(),K.stopPropagation(),mr(K,"escape")):a&&(ie!==""||L&&G.length>0)&&(K.preventDefault(),K.stopPropagation(),io(K));break;case"Backspace":if(L&&!V&&ie===""&&G.length>0){const xe=U===-1?G.length-1:U,Fe=G.slice();Fe.splice(xe,1),In(K,Fe,"removeOption",{option:G[xe]})}break;case"Delete":if(L&&!V&&ie===""&&G.length>0&&U!==-1){const xe=U,Fe=G.slice();Fe.splice(xe,1),In(K,Fe,"removeOption",{option:G[xe]})}break}},Us=ne=>{Se(!0),F&&!le.current&&vn(ne)},ao=ne=>{if(t(Y)){me.current.focus();return}Se(!1),fe.current=!0,le.current=!1,l&&de.current!==-1&&Oe?Zn(ne,ge[de.current],"blur"):l&&y&&ie!==""?Zn(ne,ie,"blur","freeSolo"):i&&ve(ne,G),mr(ne,"blur")},Ft=ne=>{const K=ne.target.value;ie!==K&&(ke(K),_e(!1),j&&j(ne,K,"input")),K===""?!d&&!L&&In(ne,null,"clear"):vn(ne)},yt=ne=>{const K=Number(ne.currentTarget.getAttribute("data-option-index"));de.current!==K&&De({event:ne,index:K,reason:"mouse"})},yn=ne=>{De({event:ne,index:Number(ne.currentTarget.getAttribute("data-option-index")),reason:"touch"}),vr.current=!0},co=ne=>{const K=Number(ne.currentTarget.getAttribute("data-option-index"));Zn(ne,ge[K],"selectOption"),vr.current=!1},uo=ne=>K=>{const xe=G.slice();xe.splice(ne,1),In(K,xe,"removeOption",{option:G[ne]})},en=ne=>{re?mr(ne,"toggleInput"):vn(ne)},zr=ne=>{ne.currentTarget.contains(ne.target)&&ne.target.getAttribute("id")!==q&&ne.preventDefault()},nl=ne=>{ne.currentTarget.contains(ne.target)&&(me.current.focus(),H&&fe.current&&me.current.selectionEnd-me.current.selectionStart===0&&me.current.select(),fe.current=!1)},$n=ne=>{!g&&(ie===""||!re)&&en(ne)};let Dn=y&&ie.length>0;Dn=Dn||(L?G.length>0:G!==null);let To=ge;return P&&(To=ge.reduce((ne,K,xe)=>{const Fe=P(K);return ne.length>0&&ne[ne.length-1].group===Fe?ne[ne.length-1].options.push(K):ne.push({key:xe,index:xe,group:Fe,options:[K]}),ne},[])),g&&we&&ao(),{getRootProps:(ne={})=>v({"aria-owns":Kt?`${q}-listbox`:null},ne,{onKeyDown:tl(ne),onMouseDown:zr,onClick:nl}),getInputLabelProps:()=>({id:`${q}-label`,htmlFor:q}),getInputProps:()=>({id:q,value:ie,onBlur:ao,onFocus:Us,onChange:Ft,onMouseDown:$n,"aria-activedescendant":Oe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Kt?`${q}-listbox`:void 0,"aria-expanded":Kt,autoComplete:"off",ref:me,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:io}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:en}),getTagProps:({index:ne})=>v({key:ne,"data-tag-index":ne,tabIndex:-1},!V&&{onDelete:uo(ne)}),getListboxProps:()=>({role:"listbox",id:`${q}-listbox`,"aria-labelledby":`${q}-label`,ref:gr,onMouseDown:ne=>{ne.preventDefault()}}),getOptionProps:({index:ne,option:K})=>{var xe;const Fe=(L?G:[G]).some(jt=>jt!=null&&R(K,jt)),ot=C?C(K):!1;return{key:(xe=S==null?void 0:S(K))!=null?xe:Z(K),tabIndex:-1,role:"option",id:`${q}-option-${ne}`,onMouseMove:yt,onClick:co,onTouchStart:yn,"data-option-index":ne,"aria-disabled":ot,"aria-selected":Fe}},id:q,inputValue:ie,value:G,dirty:Dn,expanded:Oe&&oe,popupOpen:Oe,focused:we||U!==-1,anchorEl:oe,setAnchorEl:J,focusedTag:U,groupedOptions:To}}const D5=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],A5=X(Q2,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),L5=f.forwardRef(function(t,n){var r;const o=M2(),l=Re({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,components:a,componentsProps:c,container:u,disablePortal:d,keepMounted:h,modifiers:g,open:m,placement:x,popperOptions:w,popperRef:b,transition:y,slots:C,slotProps:S}=l,I=W(l,D5),P=(r=C==null?void 0:C.root)!=null?r:a==null?void 0:a.Root,k=v({anchorEl:s,container:u,disablePortal:d,keepMounted:h,modifiers:g,open:m,placement:x,popperOptions:w,popperRef:b,transition:y},I);return p.jsx(A5,v({as:i,direction:o==null?void 0:o.direction,slots:{root:P},slotProps:S??c},k,{ref:n}))}),As=L5;function N5(e){return Ie("MuiListSubheader",e)}Me("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const H5=["className","color","component","disableGutters","disableSticky","inset"],z5=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:l}=e,s={root:["root",n!=="default"&&`color${te(n)}`,!r&&"gutters",o&&"inset",!l&&"sticky"]};return ae(s,N5,t)},B5=X("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${te(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>v({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),J2=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListSubheader"}),{className:o,color:l="default",component:s="li",disableGutters:i=!1,disableSticky:a=!1,inset:c=!1}=r,u=W(r,H5),d=v({},r,{color:l,component:s,disableGutters:i,disableSticky:a,inset:c}),h=z5(d);return p.jsx(B5,v({as:s,className:ee(h.root,o),ref:n,ownerState:d},u))});J2.muiSkipListHighlight=!0;const V5=J2,U5=He(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function W5(e){return Ie("MuiChip",e)}const G5=Me("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),et=G5,K5=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],q5=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:l,onDelete:s,clickable:i,variant:a}=e,c={root:["root",a,n&&"disabled",`size${te(r)}`,`color${te(o)}`,i&&"clickable",i&&`clickableColor${te(o)}`,s&&"deletable",s&&`deletableColor${te(o)}`,`${a}${te(o)}`],label:["label",`label${te(r)}`],avatar:["avatar",`avatar${te(r)}`,`avatarColor${te(o)}`],icon:["icon",`icon${te(r)}`,`iconColor${te(l)}`],deleteIcon:["deleteIcon",`deleteIcon${te(r)}`,`deleteIconColor${te(o)}`,`deleteIcon${te(a)}Color${te(o)}`]};return ae(c,W5,t)},Y5=X("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:l,onDelete:s,size:i,variant:a}=n;return[{[`& .${et.avatar}`]:t.avatar},{[`& .${et.avatar}`]:t[`avatar${te(i)}`]},{[`& .${et.avatar}`]:t[`avatarColor${te(r)}`]},{[`& .${et.icon}`]:t.icon},{[`& .${et.icon}`]:t[`icon${te(i)}`]},{[`& .${et.icon}`]:t[`iconColor${te(o)}`]},{[`& .${et.deleteIcon}`]:t.deleteIcon},{[`& .${et.deleteIcon}`]:t[`deleteIcon${te(i)}`]},{[`& .${et.deleteIcon}`]:t[`deleteIconColor${te(r)}`]},{[`& .${et.deleteIcon}`]:t[`deleteIcon${te(a)}Color${te(r)}`]},t.root,t[`size${te(i)}`],t[`color${te(r)}`],l&&t.clickable,l&&r!=="default"&&t[`clickableColor${te(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${te(r)}`],t[a],t[`${a}${te(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return v({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${et.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${et.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${et.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${et.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${et.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${et.icon}`]:v({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&v({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${et.deleteIcon}`]:v({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:je(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:je(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:je(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>v({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${et.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>v({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${et.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${et.avatar}`]:{marginLeft:4},[`& .${et.avatarSmall}`]:{marginLeft:2},[`& .${et.icon}`]:{marginLeft:4},[`& .${et.iconSmall}`]:{marginLeft:2},[`& .${et.deleteIcon}`]:{marginRight:5},[`& .${et.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:je(e.palette[t.color].main,.7)}`,[`&.${et.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${et.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:je(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${et.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:je(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),X5=X("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${te(r)}`]]}})(({ownerState:e})=>v({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function z1(e){return e.key==="Backspace"||e.key==="Delete"}const Q5=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiChip"}),{avatar:o,className:l,clickable:s,color:i="default",component:a,deleteIcon:c,disabled:u=!1,icon:d,label:h,onClick:g,onDelete:m,onKeyDown:x,onKeyUp:w,size:b="medium",variant:y="filled",tabIndex:C,skipFocusWhenDisabled:S=!1}=r,I=W(r,K5),P=f.useRef(null),k=nt(P,n),$=F=>{F.stopPropagation(),m&&m(F)},D=F=>{F.currentTarget===F.target&&z1(F)&&F.preventDefault(),x&&x(F)},O=F=>{F.currentTarget===F.target&&(m&&z1(F)?m(F):F.key==="Escape"&&P.current&&P.current.blur()),w&&w(F)},R=s!==!1&&g?!0:s,L=R||m?Ps:a||"div",_=v({},r,{component:L,disabled:u,size:b,color:i,iconColor:f.isValidElement(d)&&d.props.color||i,onDelete:!!m,clickable:R,variant:y}),M=q5(_),T=L===Ps?v({component:a||"div",focusVisibleClassName:M.focusVisible},m&&{disableRipple:!0}):{};let j=null;m&&(j=c&&f.isValidElement(c)?f.cloneElement(c,{className:ee(c.props.className,M.deleteIcon),onClick:$}):p.jsx(U5,{className:ee(M.deleteIcon),onClick:$}));let A=null;o&&f.isValidElement(o)&&(A=f.cloneElement(o,{className:ee(M.avatar,o.props.className)}));let E=null;return d&&f.isValidElement(d)&&(E=f.cloneElement(d,{className:ee(M.icon,d.props.className)})),p.jsxs(Y5,v({as:L,className:ee(M.root,l),disabled:R&&u?!0:void 0,onClick:g,onKeyDown:D,onKeyUp:O,ref:k,tabIndex:S&&u?-1:C,ownerState:_},T,I,{children:[A||E,p.jsx(X5,{className:ee(M.label),ownerState:_,children:h}),j]}))}),eM=Q5;function Ls({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 Z5=f.createContext(void 0),sh=Z5;function Zo(){return f.useContext(sh)}function J5(e){return p.jsx(Sj,v({},e,{defaultTheme:rh,themeId:bu}))}function B1(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function wf(e,t=!1){return e&&(B1(e.value)&&e.value!==""||t&&B1(e.defaultValue)&&e.defaultValue!=="")}function eN(e){return e.startAdornment}function tN(e){return Ie("MuiInputBase",e)}const nN=Me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),tr=nN,rN=["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"],ih=(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${te(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ah=(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]},oN=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:l,focused:s,formControl:i,fullWidth:a,hiddenLabel:c,multiline:u,readOnly:d,size:h,startAdornment:g,type:m}=e,x={root:["root",`color${te(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",s&&"focused",i&&"formControl",h&&h!=="medium"&&`size${te(h)}`,u&&"multiline",g&&"adornedStart",l&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",u&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",g&&"inputAdornedStart",l&&"inputAdornedEnd",d&&"readOnly"]};return ae(x,tN,t)},ch=X("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ih})(({theme:e,ownerState:t})=>v({},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",[`&.${tr.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&v({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),uh=X("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ah})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=v({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"},l=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return v({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] + .${tr.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus:-ms-input-placeholder":l,"&:focus::-ms-input-placeholder":l},[`&.${tr.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"})}),lN=p.jsx(J5,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),sN=f.forwardRef(function(t,n){var r;const o=Re({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:s,autoFocus:i,className:a,components:c={},componentsProps:u={},defaultValue:d,disabled:h,disableInjectingGlobalStyles:g,endAdornment:m,fullWidth:x=!1,id:w,inputComponent:b="input",inputProps:y={},inputRef:C,maxRows:S,minRows:I,multiline:P=!1,name:k,onBlur:$,onChange:D,onClick:O,onFocus:R,onKeyDown:L,onKeyUp:_,placeholder:M,readOnly:T,renderSuffix:j,rows:A,slotProps:E={},slots:F={},startAdornment:N,type:V="text",value:H}=o,Q=W(o,rN),q=y.value!=null?y.value:H,{current:Z}=f.useRef(q!=null),le=f.useRef(),fe=f.useCallback(Oe=>{},[]),me=nt(le,C,y.ref,fe),[Y,oe]=f.useState(!1),J=Zo(),U=Ls({props:o,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=J?J.focused:Y,f.useEffect(()=>{!J&&h&&Y&&(oe(!1),$&&$())},[J,h,Y,$]);const ue=J&&J.onFilled,pe=J&&J.onEmpty,de=f.useCallback(Oe=>{wf(Oe)?ue&&ue():pe&&pe()},[ue,pe]);tt(()=>{Z&&de({value:q})},[q,de,Z]);const G=Oe=>{if(U.disabled){Oe.stopPropagation();return}R&&R(Oe),y.onFocus&&y.onFocus(Oe),J&&J.onFocus?J.onFocus(Oe):oe(!0)},se=Oe=>{$&&$(Oe),y.onBlur&&y.onBlur(Oe),J&&J.onBlur?J.onBlur(Oe):oe(!1)},ie=(Oe,...ge)=>{if(!Z){const We=Oe.target||le.current;if(We==null)throw new Error(Ll(1));de({value:We.value})}y.onChange&&y.onChange(Oe,...ge),D&&D(Oe,...ge)};f.useEffect(()=>{de(le.current)},[]);const ke=Oe=>{le.current&&Oe.currentTarget===Oe.target&&le.current.focus(),O&&O(Oe)};let we=b,Se=y;P&&we==="input"&&(A?Se=v({type:void 0,minRows:A,maxRows:A},Se):Se=v({type:void 0,maxRows:S,minRows:I},Se),we=O5);const ve=Oe=>{de(Oe.animationName==="mui-auto-fill-cancel"?le.current:{value:"x"})};f.useEffect(()=>{J&&J.setAdornedStart(!!N)},[J,N]);const re=v({},o,{color:U.color||"primary",disabled:U.disabled,endAdornment:m,error:U.error,focused:U.focused,formControl:J,fullWidth:x,hiddenLabel:U.hiddenLabel,multiline:P,size:U.size,startAdornment:N,type:V}),ce=oN(re),ye=F.root||c.Root||ch,_e=E.root||u.root||{},Le=F.input||c.Input||uh;return Se=v({},Se,(r=E.input)!=null?r:u.input),p.jsxs(f.Fragment,{children:[!g&&lN,p.jsxs(ye,v({},_e,!Kc(ye)&&{ownerState:v({},re,_e.ownerState)},{ref:n,onClick:ke},Q,{className:ee(ce.root,_e.className,a,T&&"MuiInputBase-readOnly"),children:[N,p.jsx(sh.Provider,{value:null,children:p.jsx(Le,v({ownerState:re,"aria-invalid":U.error,"aria-describedby":l,autoComplete:s,autoFocus:i,defaultValue:d,disabled:U.disabled,id:w,onAnimationStart:ve,name:k,placeholder:M,readOnly:T,required:U.required,rows:A,value:q,onKeyDown:L,onKeyUp:_,type:V},Se,!Kc(Le)&&{as:we,ownerState:v({},re,Se.ownerState)},{ref:me,className:ee(ce.input,Se.className,T&&"MuiInputBase-readOnly"),onBlur:se,onChange:ie,onFocus:G}))}),m,j?j(v({},U,{startAdornment:N})):null]}))]})}),ba=sN;function iN(e){return Ie("MuiInput",e)}const aN=v({},tr,Me("MuiInput",["root","underline","input"])),vl=aN;function cN(e){return Ie("MuiOutlinedInput",e)}const uN=v({},tr,Me("MuiOutlinedInput",["root","notchedOutline","input"])),ho=uN;function dN(e){return Ie("MuiFilledInput",e)}const fN=v({},tr,Me("MuiFilledInput",["root","underline","input"])),nr=fN,tM=He(p.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function pN(e){return Ie("MuiAutocomplete",e)}const hN=Me("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),Ge=hN;var V1,U1;const gN=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],mN=["ref"],vN=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:l,hasClearIcon:s,hasPopupIcon:i,inputFocused:a,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",o&&"focused",l&&"fullWidth",s&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",a&&"inputFocused"],tag:["tag",`tagSize${te(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ae(d,pN,t)},yN=X("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:l,inputFocused:s,size:i}=n;return[{[`& .${Ge.tag}`]:t.tag},{[`& .${Ge.tag}`]:t[`tagSize${te(i)}`]},{[`& .${Ge.inputRoot}`]:t.inputRoot},{[`& .${Ge.input}`]:t.input},{[`& .${Ge.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,l&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>v({[`&.${Ge.focused} .${Ge.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ge.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Ge.tag}`]:v({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Ge.inputRoot}`]:{flexWrap:"wrap",[`.${Ge.hasPopupIcon}&, .${Ge.hasClearIcon}&`]:{paddingRight:30},[`.${Ge.hasPopupIcon}.${Ge.hasClearIcon}&`]:{paddingRight:56},[`& .${Ge.input}`]:{width:0,minWidth:30}},[`& .${vl.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${vl.root}.${tr.sizeSmall}`]:{[`& .${vl.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ho.root}`]:{padding:9,[`.${Ge.hasPopupIcon}&, .${Ge.hasClearIcon}&`]:{paddingRight:39},[`.${Ge.hasPopupIcon}.${Ge.hasClearIcon}&`]:{paddingRight:65},[`& .${Ge.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ge.endAdornment}`]:{right:9}},[`& .${ho.root}.${tr.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ge.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${nr.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ge.hasPopupIcon}&, .${Ge.hasClearIcon}&`]:{paddingRight:39},[`.${Ge.hasPopupIcon}.${Ge.hasClearIcon}&`]:{paddingRight:65},[`& .${nr.input}`]:{padding:"7px 4px"},[`& .${Ge.endAdornment}`]:{right:9}},[`& .${nr.root}.${tr.sizeSmall}`]:{paddingBottom:1,[`& .${nr.input}`]:{padding:"2.5px 4px"}},[`& .${tr.hiddenLabel}`]:{paddingTop:8},[`& .${nr.root}.${tr.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ge.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${nr.root}.${tr.hiddenLabel}.${tr.sizeSmall}`]:{[`& .${Ge.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ge.input}`]:v({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),xN=X("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),bN=X(dn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),CN=X(dn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>v({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>v({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),wN=X(As,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ge.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>v({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),SN=X(_n,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>v({},e.typography.body1,{overflow:"auto"})),PN=X("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),kN=X("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),MN=X("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ge.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Ge.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Ge.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ge.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ge.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),IN=X(V5,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),$N=X("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Ge.option}`]:{paddingLeft:24}}),EN=f.forwardRef(function(t,n){var r,o,l,s;const i=Re({props:t,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:d=!1,ChipProps:h,className:g,clearIcon:m=V1||(V1=p.jsx(_2,{fontSize:"small"})),clearOnBlur:x=!i.freeSolo,clearOnEscape:w=!1,clearText:b="Clear",closeText:y="Close",componentsProps:C={},defaultValue:S=i.multiple?[]:null,disableClearable:I=!1,disableCloseOnSelect:P=!1,disabled:k=!1,disabledItemsFocusable:$=!1,disableListWrap:D=!1,disablePortal:O=!1,filterSelectedOptions:R=!1,forcePopupIcon:L="auto",freeSolo:_=!1,fullWidth:M=!1,getLimitTagsText:T=K=>`+${K}`,getOptionLabel:j,groupBy:A,handleHomeEndKeys:E=!i.freeSolo,includeInputInList:F=!1,limitTags:N=-1,ListboxComponent:V="ul",ListboxProps:H,loading:Q=!1,loadingText:q="Loading…",multiple:Z=!1,noOptionsText:le="No options",openOnFocus:fe=!1,openText:me="Open",PaperComponent:Y=_n,PopperComponent:oe=As,popupIcon:J=U1||(U1=p.jsx(tM,{})),readOnly:U=!1,renderGroup:ue,renderInput:pe,renderOption:de,renderTags:G,selectOnFocus:se=!i.freeSolo,size:ie="medium",slotProps:ke={}}=i,we=W(i,gN),{getRootProps:Se,getInputProps:ve,getInputLabelProps:re,getPopupIndicatorProps:ce,getClearProps:ye,getTagProps:_e,getListboxProps:Le,getOptionProps:Oe,value:ge,dirty:We,expanded:Kt,id:Xe,popupOpen:be,focused:De,focusedTag:Be,anchorEl:_t,setAnchorEl:mn,inputValue:gr,groupedOptions:vn}=j5(v({},i,{componentName:"Autocomplete"})),mr=!I&&!k&&We&&!U,In=(!_||L===!0)&&L!==!1,{onMouseDown:vr}=ve(),{ref:Zn}=H??{},vt=Le(),{ref:ft}=vt,io=W(vt,mN),tl=nt(ft,Zn),ao=j||(K=>{var xe;return(xe=K.label)!=null?xe:K}),Ft=v({},i,{disablePortal:O,expanded:Kt,focused:De,fullWidth:M,getOptionLabel:ao,hasClearIcon:mr,hasPopupIcon:In,inputFocused:Be===-1,popupOpen:be,size:ie}),yt=vN(Ft);let yn;if(Z&&ge.length>0){const K=xe=>v({className:yt.tag,disabled:k},_e(xe));G?yn=G(ge,K,Ft):yn=ge.map((xe,Fe)=>p.jsx(eM,v({label:ao(xe),size:ie},K({index:Fe}),h)))}if(N>-1&&Array.isArray(yn)){const K=yn.length-N;!De&&K>0&&(yn=yn.splice(0,N),yn.push(p.jsx("span",{className:yt.tag,children:T(K)},yn.length)))}const uo=ue||(K=>p.jsxs("li",{children:[p.jsx(IN,{className:yt.groupLabel,ownerState:Ft,component:"div",children:K.group}),p.jsx($N,{className:yt.groupUl,ownerState:Ft,children:K.children})]},K.key)),zr=de||((K,xe)=>f.createElement("li",v({},K,{key:K.key}),ao(xe))),nl=(K,xe)=>{const Fe=Oe({option:K,index:xe});return zr(v({},Fe,{className:yt.option}),K,{selected:Fe["aria-selected"],index:xe,inputValue:gr},Ft)},$n=(r=ke.clearIndicator)!=null?r:C.clearIndicator,Dn=(o=ke.paper)!=null?o:C.paper,To=(l=ke.popper)!=null?l:C.popper,ne=(s=ke.popupIndicator)!=null?s:C.popupIndicator;return p.jsxs(f.Fragment,{children:[p.jsx(yN,v({ref:n,className:ee(yt.root,g),ownerState:Ft},Se(we),{children:pe({id:Xe,disabled:k,fullWidth:!0,size:ie==="small"?"small":void 0,InputLabelProps:re(),InputProps:v({ref:mn,className:yt.inputRoot,startAdornment:yn,onClick:K=>{K.target===K.currentTarget&&vr(K)}},(mr||In)&&{endAdornment:p.jsxs(xN,{className:yt.endAdornment,ownerState:Ft,children:[mr?p.jsx(bN,v({},ye(),{"aria-label":b,title:b,ownerState:Ft},$n,{className:ee(yt.clearIndicator,$n==null?void 0:$n.className),children:m})):null,In?p.jsx(CN,v({},ce(),{disabled:k,"aria-label":be?y:me,title:be?y:me,ownerState:Ft},ne,{className:ee(yt.popupIndicator,ne==null?void 0:ne.className),children:J})):null]})}),inputProps:v({className:yt.input,disabled:k,readOnly:U},ve())})})),_t?p.jsx(wN,v({as:oe,disablePortal:O,style:{width:_t?_t.clientWidth:null},ownerState:Ft,role:"presentation",anchorEl:_t,open:be},To,{className:ee(yt.popper,To==null?void 0:To.className),children:p.jsxs(SN,v({ownerState:Ft,as:Y},Dn,{className:ee(yt.paper,Dn==null?void 0:Dn.className),children:[Q&&vn.length===0?p.jsx(PN,{className:yt.loading,ownerState:Ft,children:q}):null,vn.length===0&&!_&&!Q?p.jsx(kN,{className:yt.noOptions,ownerState:Ft,role:"presentation",onMouseDown:K=>{K.preventDefault()},children:le}):null,vn.length>0?p.jsx(MN,v({as:V,className:yt.listbox,ownerState:Ft},io,H,{ref:tl,children:vn.map((K,xe)=>A?uo({key:K.key,group:K.group,children:K.options.map((Fe,ot)=>nl(Fe,K.index+ot))}):nl(K,xe))})):null]}))})):null]})}),nM=EN,TN=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],RN={entering:{opacity:1},entered:{opacity:1}},ON=f.forwardRef(function(t,n){const r=on(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:s=!0,children:i,easing:a,in:c,onEnter:u,onEntered:d,onEntering:h,onExit:g,onExited:m,onExiting:x,style:w,timeout:b=o,TransitionComponent:y=q0}=t,C=W(t,TN),S=f.useRef(null),I=nt(S,i.ref,n),P=M=>T=>{if(M){const j=S.current;T===void 0?M(j):M(j,T)}},k=P(h),$=P((M,T)=>{Q0(M);const j=Ki({style:w,timeout:b,easing:a},{mode:"enter"});M.style.webkitTransition=r.transitions.create("opacity",j),M.style.transition=r.transitions.create("opacity",j),u&&u(M,T)}),D=P(d),O=P(x),R=P(M=>{const T=Ki({style:w,timeout:b,easing:a},{mode:"exit"});M.style.webkitTransition=r.transitions.create("opacity",T),M.style.transition=r.transitions.create("opacity",T),g&&g(M)}),L=P(m),_=M=>{l&&l(S.current,M)};return p.jsx(y,v({appear:s,in:c,nodeRef:S,onEnter:$,onEntered:D,onEntering:k,onExit:R,onExited:L,onExiting:O,addEndListener:_,timeout:b},C,{children:(M,T)=>f.cloneElement(i,v({style:v({opacity:0,visibility:M==="exited"&&!c?"hidden":void 0},RN[M],w,i.props.style),ref:I},T))}))}),rM=ON;function _N(e){return Ie("MuiBackdrop",e)}Me("MuiBackdrop",["root","invisible"]);const FN=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],jN=e=>{const{classes:t,invisible:n}=e;return ae({root:["root",n&&"invisible"]},_N,t)},DN=X("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>v({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"})),AN=f.forwardRef(function(t,n){var r,o,l;const s=Re({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:c="div",components:u={},componentsProps:d={},invisible:h=!1,open:g,slotProps:m={},slots:x={},TransitionComponent:w=rM,transitionDuration:b}=s,y=W(s,FN),C=v({},s,{component:c,invisible:h}),S=jN(C),I=(r=m.root)!=null?r:d.root;return p.jsx(w,v({in:g,timeout:b},y,{children:p.jsx(DN,v({"aria-hidden":!0},I,{as:(o=(l=x.root)!=null?l:u.Root)!=null?o:c,className:ee(S.root,a,I==null?void 0:I.className),ownerState:v({},C,I==null?void 0:I.ownerState),classes:S,ref:n,children:i}))}))}),oM=AN;function LN(e){return Re}function NN(e){return Ie("MuiBadge",e)}const HN=Me("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),ol=HN,zN=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],vg=10,yg=4,BN=LN(),VN=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:l,classes:s={}}=e,i={root:["root"],badge:["badge",l,r&&"invisible",`anchorOrigin${te(n.vertical)}${te(n.horizontal)}`,`anchorOrigin${te(n.vertical)}${te(n.horizontal)}${te(o)}`,`overlap${te(o)}`,t!=="default"&&`color${te(t)}`]};return ae(i,NN,s)},UN=X("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),WN=X("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${te(n.anchorOrigin.vertical)}${te(n.anchorOrigin.horizontal)}${te(n.overlap)}`],n.color!=="default"&&t[`color${te(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:vg*2,lineHeight:1,padding:"0 6px",height:vg*2,borderRadius:vg,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:yg,height:yg*2,minWidth:yg*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ol.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),GN=f.forwardRef(function(t,n){var r,o,l,s,i,a;const c=BN({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:d,component:h,components:g={},componentsProps:m={},children:x,overlap:w="rectangular",color:b="default",invisible:y=!1,max:C=99,badgeContent:S,slots:I,slotProps:P,showZero:k=!1,variant:$="standard"}=c,D=W(c,zN),{badgeContent:O,invisible:R,max:L,displayValue:_}=YA({max:C,invisible:y,badgeContent:S,showZero:k}),M=L0({anchorOrigin:u,color:b,overlap:w,variant:$,badgeContent:S}),T=R||O==null&&$!=="dot",{color:j=b,overlap:A=w,anchorOrigin:E=u,variant:F=$}=T?M:c,N=F!=="dot"?_:void 0,V=v({},c,{badgeContent:O,invisible:T,max:L,displayValue:N,showZero:k,anchorOrigin:E,color:j,overlap:A,variant:F}),H=VN(V),Q=(r=(o=I==null?void 0:I.root)!=null?o:g.Root)!=null?r:UN,q=(l=(s=I==null?void 0:I.badge)!=null?s:g.Badge)!=null?l:WN,Z=(i=P==null?void 0:P.root)!=null?i:m.root,le=(a=P==null?void 0:P.badge)!=null?a:m.badge,fe=Qt({elementType:Q,externalSlotProps:Z,externalForwardedProps:D,additionalProps:{ref:n,as:h},ownerState:V,className:ee(Z==null?void 0:Z.className,H.root,d)}),me=Qt({elementType:q,externalSlotProps:le,ownerState:V,className:ee(H.badge,le==null?void 0:le.className)});return p.jsxs(Q,v({},fe,{children:[x,p.jsx(q,v({},me,{children:N}))]}))}),lM=GN,KN=Me("MuiBox",["root"]),qN=KN,YN=T2(),XN=$2({themeId:bu,defaultTheme:YN,defaultClassName:qN.root,generateClassName:Gp.generate}),lr=XN;function QN(e){return Ie("MuiButton",e)}const ZN=Me("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"]),sd=ZN,JN=f.createContext({}),e4=JN,t4=f.createContext(void 0),n4=t4,r4=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],o4=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:l,classes:s}=e,i={root:["root",l,`${l}${te(t)}`,`size${te(o)}`,`${l}Size${te(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${te(o)}`],endIcon:["endIcon",`iconSize${te(o)}`]},a=ae(i,QN,s);return v({},s,a)},sM=e=>v({},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}}),l4=X(Ps,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${te(n.color)}`],t[`size${te(n.size)}`],t[`${n.variant}Size${te(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],l=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return v({},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":v({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:je(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})`:je(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})`:je(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:l,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":v({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${sd.focusVisible}`]:v({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${sd.disabled}`]:v({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 ${je(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"},[`&.${sd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${sd.disabled}`]:{boxShadow:"none"}}),s4=X("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${te(n.size)}`]]}})(({ownerState:e})=>v({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},sM(e))),i4=X("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${te(n.size)}`]]}})(({ownerState:e})=>v({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},sM(e))),a4=f.forwardRef(function(t,n){const r=f.useContext(e4),o=f.useContext(n4),l=N0(r,t),s=Re({props:l,name:"MuiButton"}),{children:i,color:a="primary",component:c="button",className:u,disabled:d=!1,disableElevation:h=!1,disableFocusRipple:g=!1,endIcon:m,focusVisibleClassName:x,fullWidth:w=!1,size:b="medium",startIcon:y,type:C,variant:S="text"}=s,I=W(s,r4),P=v({},s,{color:a,component:c,disabled:d,disableElevation:h,disableFocusRipple:g,fullWidth:w,size:b,type:C,variant:S}),k=o4(P),$=y&&p.jsx(s4,{className:k.startIcon,ownerState:P,children:y}),D=m&&p.jsx(i4,{className:k.endIcon,ownerState:P,children:m}),O=o||"";return p.jsxs(l4,v({ownerState:P,className:ee(r.className,k.root,u,O),component:c,disabled:d,focusRipple:!g,focusVisibleClassName:ee(k.focusVisible,x),ref:n,type:C},I,{classes:k,children:[$,i,D]}))}),Rt=a4;function c4(e){return Ie("PrivateSwitchBase",e)}Me("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const u4=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],d4=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,l={root:["root",n&&"checked",r&&"disabled",o&&`edge${te(o)}`],input:["input"]};return ae(l,c4,t)},f4=X(Ps)(({ownerState:e})=>v({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),p4=X("input",{shouldForwardProp:gn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),h4=f.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:l,className:s,defaultChecked:i,disabled:a,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:h,inputProps:g,inputRef:m,name:x,onBlur:w,onChange:b,onFocus:y,readOnly:C,required:S=!1,tabIndex:I,type:P,value:k}=t,$=W(t,u4),[D,O]=_l({controlled:o,default:!!i,name:"SwitchBase",state:"checked"}),R=Zo(),L=F=>{y&&y(F),R&&R.onFocus&&R.onFocus(F)},_=F=>{w&&w(F),R&&R.onBlur&&R.onBlur(F)},M=F=>{if(F.nativeEvent.defaultPrevented)return;const N=F.target.checked;O(N),b&&b(F,N)};let T=a;R&&typeof T>"u"&&(T=R.disabled);const j=P==="checkbox"||P==="radio",A=v({},t,{checked:D,disabled:T,disableFocusRipple:c,edge:u}),E=d4(A);return p.jsxs(f4,v({component:"span",className:ee(E.root,s),centerRipple:!0,focusRipple:!c,disabled:T,tabIndex:null,role:void 0,onFocus:L,onBlur:_,ownerState:A,ref:n},$,{children:[p.jsx(p4,v({autoFocus:r,checked:o,defaultChecked:i,className:E.input,disabled:T,id:j?h:void 0,name:x,onChange:M,readOnly:C,ref:m,required:S,ownerState:A,tabIndex:I,type:P},P==="checkbox"&&k===void 0?{}:{value:k},g)),D?l:d]}))}),iM=h4,g4=He(p.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),m4=He(p.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),v4=He(p.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function y4(e){return Ie("MuiCheckbox",e)}const x4=Me("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),xg=x4,b4=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],C4=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,l={root:["root",n&&"indeterminate",`color${te(r)}`,`size${te(o)}`]},s=ae(l,y4,t);return v({},t,s)},w4=X(iM,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${te(n.size)}`],n.color!=="default"&&t[`color${te(n.color)}`]]}})(({theme:e,ownerState:t})=>v({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${xg.checked}, &.${xg.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${xg.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),S4=p.jsx(m4,{}),P4=p.jsx(g4,{}),k4=p.jsx(v4,{}),M4=f.forwardRef(function(t,n){var r,o;const l=Re({props:t,name:"MuiCheckbox"}),{checkedIcon:s=S4,color:i="primary",icon:a=P4,indeterminate:c=!1,indeterminateIcon:u=k4,inputProps:d,size:h="medium",className:g}=l,m=W(l,b4),x=c?u:a,w=c?u:s,b=v({},l,{color:i,indeterminate:c,size:h}),y=C4(b);return p.jsx(w4,v({type:"checkbox",inputProps:v({"data-indeterminate":c},d),icon:f.cloneElement(x,{fontSize:(r=x.props.fontSize)!=null?r:h}),checkedIcon:f.cloneElement(w,{fontSize:(o=w.props.fontSize)!=null?o:h}),ownerState:b,ref:n,className:ee(y.root,g)},m,{classes:y}))}),I4=M4;function $4(e){return Ie("MuiCircularProgress",e)}Me("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const E4=["className","color","disableShrink","size","style","thickness","value","variant"];let dh=e=>e,W1,G1,K1,q1;const ll=44,T4=Ds(W1||(W1=dh`
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`)),R4=Ds(G1||(G1=dh`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -125px;
}
`)),O4=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,l={root:["root",n,`color${te(r)}`],svg:["svg"],circle:["circle",`circle${te(n)}`,o&&"circleDisableShrink"]};return ae(l,$4,t)},_4=X("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${te(n.color)}`]]}})(({ownerState:e,theme:t})=>v({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"&&Wc(K1||(K1=dh`
animation: ${0} 1.4s linear infinite;
`),T4)),F4=X("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),j4=X("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${te(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>v({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&&Wc(q1||(q1=dh`
animation: ${0} 1.4s ease-in-out infinite;
`),R4)),D4=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiCircularProgress"}),{className:o,color:l="primary",disableShrink:s=!1,size:i=40,style:a,thickness:c=3.6,value:u=0,variant:d="indeterminate"}=r,h=W(r,E4),g=v({},r,{color:l,disableShrink:s,size:i,thickness:c,value:u,variant:d}),m=O4(g),x={},w={},b={};if(d==="determinate"){const y=2*Math.PI*((ll-c)/2);x.strokeDasharray=y.toFixed(3),b["aria-valuenow"]=Math.round(u),x.strokeDashoffset=`${((100-u)/100*y).toFixed(3)}px`,w.transform="rotate(-90deg)"}return p.jsx(_4,v({className:ee(m.root,o),style:v({width:i,height:i},w,a),ownerState:g,ref:n,role:"progressbar"},b,h,{children:p.jsx(F4,{className:m.svg,ownerState:g,viewBox:`${ll/2} ${ll/2} ${ll} ${ll}`,children:p.jsx(j4,{className:m.circle,style:x,ownerState:g,cx:ll,cy:ll,r:(ll-c)/2,fill:"none",strokeWidth:c})})}))}),A4=D4,L4=qj({createStyledComponent:X("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${te(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Re({props:e,name:"MuiContainer"})}),N4=L4;function H4(e){return Ie("MuiModal",e)}Me("MuiModal",["root","hidden","backdrop"]);const z4=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],B4=e=>{const{open:t,exited:n,classes:r}=e;return ae({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},H4,r)},V4=X("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})=>v({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),U4=X(oM,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),W4=f.forwardRef(function(t,n){var r,o,l,s,i,a;const c=Re({name:"MuiModal",props:t}),{BackdropComponent:u=U4,BackdropProps:d,className:h,closeAfterTransition:g=!1,children:m,container:x,component:w,components:b={},componentsProps:y={},disableAutoFocus:C=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:I=!1,disablePortal:P=!1,disableRestoreFocus:k=!1,disableScrollLock:$=!1,hideBackdrop:D=!1,keepMounted:O=!1,onBackdropClick:R,open:L,slotProps:_,slots:M}=c,T=W(c,z4),j=v({},c,{closeAfterTransition:g,disableAutoFocus:C,disableEnforceFocus:S,disableEscapeKeyDown:I,disablePortal:P,disableRestoreFocus:k,disableScrollLock:$,hideBackdrop:D,keepMounted:O}),{getRootProps:A,getBackdropProps:E,getTransitionProps:F,portalRef:N,isTopModal:V,exited:H,hasTransition:Q}=gL(v({},j,{rootRef:n})),q=v({},j,{exited:H}),Z=B4(q),le={};if(m.props.tabIndex===void 0&&(le.tabIndex="-1"),Q){const{onEnter:ue,onExited:pe}=F();le.onEnter=ue,le.onExited=pe}const fe=(r=(o=M==null?void 0:M.root)!=null?o:b.Root)!=null?r:V4,me=(l=(s=M==null?void 0:M.backdrop)!=null?s:b.Backdrop)!=null?l:u,Y=(i=_==null?void 0:_.root)!=null?i:y.root,oe=(a=_==null?void 0:_.backdrop)!=null?a:y.backdrop,J=Qt({elementType:fe,externalSlotProps:Y,externalForwardedProps:T,getSlotProps:A,additionalProps:{ref:n,as:w},ownerState:q,className:ee(h,Y==null?void 0:Y.className,Z==null?void 0:Z.root,!q.open&&q.exited&&(Z==null?void 0:Z.hidden))}),U=Qt({elementType:me,externalSlotProps:oe,additionalProps:d,getSlotProps:ue=>E(v({},ue,{onClick:pe=>{R&&R(pe),ue!=null&&ue.onClick&&ue.onClick(pe)}})),className:ee(oe==null?void 0:oe.className,d==null?void 0:d.className,Z==null?void 0:Z.backdrop),ownerState:q});return!O&&!L&&(!Q||H)?null:p.jsx(N2,{ref:N,container:x,disablePortal:P,children:p.jsxs(fe,v({},J,{children:[!D&&u?p.jsx(me,v({},U)):null,p.jsx(L2,{disableEnforceFocus:S,disableAutoFocus:C,disableRestoreFocus:k,isEnabled:V,open:L,children:f.cloneElement(m,le)})]}))})}),sy=W4;function G4(e){return Ie("MuiDialog",e)}const K4=Me("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),bg=K4,q4=f.createContext({}),aM=q4,Y4=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],X4=X(oM,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Q4=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:l}=e,s={root:["root"],container:["container",`scroll${te(n)}`],paper:["paper",`paperScroll${te(n)}`,`paperWidth${te(String(r))}`,o&&"paperFullWidth",l&&"paperFullScreen"]};return ae(s,G4,t)},Z4=X(sy,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),J4=X("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${te(n.scroll)}`]]}})(({ownerState:e})=>v({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"}})),e3=X(_n,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${te(n.scroll)}`],t[`paperWidth${te(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>v({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):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${bg.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}`,[`&.${bg.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,[`&.${bg.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),t3=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialog"}),o=on(),l={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":i,BackdropComponent:a,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:h=!1,fullScreen:g=!1,fullWidth:m=!1,maxWidth:x="sm",onBackdropClick:w,onClose:b,open:y,PaperComponent:C=_n,PaperProps:S={},scroll:I="paper",TransitionComponent:P=rM,transitionDuration:k=l,TransitionProps:$}=r,D=W(r,Y4),O=v({},r,{disableEscapeKeyDown:h,fullScreen:g,fullWidth:m,maxWidth:x,scroll:I}),R=Q4(O),L=f.useRef(),_=A=>{L.current=A.target===A.currentTarget},M=A=>{L.current&&(L.current=null,w&&w(A),b&&b(A,"backdropClick"))},T=ct(i),j=f.useMemo(()=>({titleId:T}),[T]);return p.jsx(Z4,v({className:ee(R.root,d),closeAfterTransition:!0,components:{Backdrop:X4},componentsProps:{backdrop:v({transitionDuration:k,as:a},c)},disableEscapeKeyDown:h,onClose:b,open:y,ref:n,onClick:M,ownerState:O},D,{children:p.jsx(P,v({appear:!0,in:y,timeout:k,role:"presentation"},$,{children:p.jsx(J4,{className:ee(R.container),onMouseDown:_,ownerState:O,children:p.jsx(e3,v({as:C,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":T},S,{className:ee(R.paper,S.className),ownerState:O,children:p.jsx(aM.Provider,{value:j,children:u})}))})}))}))}),Mu=t3;function n3(e){return Ie("MuiDialogActions",e)}Me("MuiDialogActions",["root","spacing"]);const r3=["className","disableSpacing"],o3=e=>{const{classes:t,disableSpacing:n}=e;return ae({root:["root",!n&&"spacing"]},n3,t)},l3=X("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>v({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),s3=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:l=!1}=r,s=W(r,r3),i=v({},r,{disableSpacing:l}),a=o3(i);return p.jsx(l3,v({className:ee(a.root,o),ownerState:i,ref:n},s))}),Iu=s3;function i3(e){return Ie("MuiDialogContent",e)}Me("MuiDialogContent",["root","dividers"]);function a3(e){return Ie("MuiDialogTitle",e)}const c3=Me("MuiDialogTitle",["root"]),u3=c3,d3=["className","dividers"],f3=e=>{const{classes:t,dividers:n}=e;return ae({root:["root",n&&"dividers"]},i3,t)},p3=X("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>v({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}`}:{[`.${u3.root} + &`]:{paddingTop:0}})),h3=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContent"}),{className:o,dividers:l=!1}=r,s=W(r,d3),i=v({},r,{dividers:l}),a=f3(i);return p.jsx(p3,v({className:ee(a.root,o),ownerState:i,ref:n},s))}),fh=h3;function g3(e){return Ie("MuiDialogContentText",e)}Me("MuiDialogContentText",["root"]);const m3=["children","className"],v3=e=>{const{classes:t}=e,r=ae({root:["root"]},g3,t);return v({},t,r)},y3=X(It,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),x3=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContentText"}),{className:o}=r,l=W(r,m3),s=v3(l);return p.jsx(y3,v({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:l,className:ee(s.root,o)},r,{classes:s}))}),b3=x3,C3=["className","id"],w3=e=>{const{classes:t}=e;return ae({root:["root"]},a3,t)},S3=X(It,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),P3=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogTitle"}),{className:o,id:l}=r,s=W(r,C3),i=r,a=w3(i),{titleId:c=l}=f.useContext(aM);return p.jsx(S3,v({component:"h2",className:ee(a.root,o),ownerState:i,ref:n,variant:"h6",id:l??c},s))}),$u=P3;function k3(e){return Ie("MuiDivider",e)}const M3=Me("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Y1=M3,I3=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],$3=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:l,orientation:s,textAlign:i,variant:a}=e;return ae({root:["root",t&&"absolute",a,l&&"light",s==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",i==="right"&&s!=="vertical"&&"textAlignRight",i==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},k3,r)},E3=X("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>v({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:je(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>v({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>v({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>v({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>v({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),T3=X("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>v({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),cM=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDivider"}),{absolute:o=!1,children:l,className:s,component:i=l?"div":"hr",flexItem:a=!1,light:c=!1,orientation:u="horizontal",role:d=i!=="hr"?"separator":void 0,textAlign:h="center",variant:g="fullWidth"}=r,m=W(r,I3),x=v({},r,{absolute:o,component:i,flexItem:a,light:c,orientation:u,role:d,textAlign:h,variant:g}),w=$3(x);return p.jsx(E3,v({as:i,className:ee(w.root,s),role:d,ref:n,ownerState:x},m,{children:l?p.jsx(T3,{className:w.wrapper,ownerState:x,children:l}):null}))});cM.muiSkipListHighlight=!0;const R3=cM,O3=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _3(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),l=Dr(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=l.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let i=0,a=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");i=parseInt(c[4],10),a=parseInt(c[5],10)}return e==="left"?o?`translateX(${o.right+i-r.left}px)`:`translateX(${l.innerWidth+i-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-i}px)`:`translateX(-${r.left+r.width-i}px)`:e==="up"?o?`translateY(${o.bottom+a-r.top}px)`:`translateY(${l.innerHeight+a-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-a}px)`:`translateY(-${r.top+r.height-a}px)`}function F3(e){return typeof e=="function"?e():e}function id(e,t,n){const r=F3(n),o=_3(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const j3=f.forwardRef(function(t,n){const r=on(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},l={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:a,container:c,direction:u="down",easing:d=o,in:h,onEnter:g,onEntered:m,onEntering:x,onExit:w,onExited:b,onExiting:y,style:C,timeout:S=l,TransitionComponent:I=q0}=t,P=W(t,O3),k=f.useRef(null),$=nt(a.ref,k,n),D=E=>F=>{E&&(F===void 0?E(k.current):E(k.current,F))},O=D((E,F)=>{id(u,E,c),Q0(E),g&&g(E,F)}),R=D((E,F)=>{const N=Ki({timeout:S,style:C,easing:d},{mode:"enter"});E.style.webkitTransition=r.transitions.create("-webkit-transform",v({},N)),E.style.transition=r.transitions.create("transform",v({},N)),E.style.webkitTransform="none",E.style.transform="none",x&&x(E,F)}),L=D(m),_=D(y),M=D(E=>{const F=Ki({timeout:S,style:C,easing:d},{mode:"exit"});E.style.webkitTransition=r.transitions.create("-webkit-transform",F),E.style.transition=r.transitions.create("transform",F),id(u,E,c),w&&w(E)}),T=D(E=>{E.style.webkitTransition="",E.style.transition="",b&&b(E)}),j=E=>{s&&s(k.current,E)},A=f.useCallback(()=>{k.current&&id(u,k.current,c)},[u,c]);return f.useEffect(()=>{if(h||u==="down"||u==="right")return;const E=xa(()=>{k.current&&id(u,k.current,c)}),F=Dr(k.current);return F.addEventListener("resize",E),()=>{E.clear(),F.removeEventListener("resize",E)}},[u,h,c]),f.useEffect(()=>{h||A()},[h,A]),p.jsx(I,v({nodeRef:k,onEnter:O,onEntered:L,onEntering:R,onExit:M,onExited:T,onExiting:_,addEndListener:j,appear:i,in:h,timeout:S},P,{children:(E,F)=>f.cloneElement(a,v({ref:$,style:v({visibility:E==="exited"&&!h?"hidden":void 0},C,a.props.style)},F))}))}),D3=j3;function A3(e){return Ie("MuiDrawer",e)}Me("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const L3=["BackdropProps"],N3=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],uM=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},H3=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${te(n)}`,r!=="temporary"&&`paperAnchorDocked${te(n)}`]};return ae(o,A3,t)},z3=X(sy,{name:"MuiDrawer",slot:"Root",overridesResolver:uM})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),X1=X("div",{shouldForwardProp:gn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:uM})({flex:"0 0 auto"}),B3=X(_n,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${te(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${te(n.anchor)}`]]}})(({theme:e,ownerState:t})=>v({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),dM={left:"right",right:"left",top:"down",bottom:"up"};function V3(e){return["left","right"].indexOf(e)!==-1}function U3(e,t){return e.direction==="rtl"&&V3(t)?dM[t]:t}const W3=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDrawer"}),o=on(),l={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:i,children:a,className:c,elevation:u=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:h}={},onClose:g,open:m=!1,PaperProps:x={},SlideProps:w,TransitionComponent:b=D3,transitionDuration:y=l,variant:C="temporary"}=r,S=W(r.ModalProps,L3),I=W(r,N3),P=f.useRef(!1);f.useEffect(()=>{P.current=!0},[]);const k=U3(o,s),D=v({},r,{anchor:s,elevation:u,open:m,variant:C},I),O=H3(D),R=p.jsx(B3,v({elevation:C==="temporary"?u:0,square:!0},x,{className:ee(O.paper,x.className),ownerState:D,children:a}));if(C==="permanent")return p.jsx(X1,v({className:ee(O.root,O.docked,c),ownerState:D,ref:n},I,{children:R}));const L=p.jsx(b,v({in:m,direction:dM[k],timeout:y,appear:P.current},w,{children:R}));return C==="persistent"?p.jsx(X1,v({className:ee(O.root,O.docked,c),ownerState:D,ref:n},I,{children:L})):p.jsx(z3,v({BackdropProps:v({},i,h,{transitionDuration:y}),className:ee(O.root,O.modal,c),open:m,ownerState:D,onClose:g,hideBackdrop:d,ref:n},I,S,{children:L}))}),G3=W3,K3=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],q3=e=>{const{classes:t,disableUnderline:n}=e,o=ae({root:["root",!n&&"underline"],input:["input"]},dN,t);return v({},t,o)},Y3=X(ch,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ih(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)",l=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)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return v({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l,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:l}},[`&.${nr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l},[`&.${nr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!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"},[`&.${nr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${nr.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(.${nr.disabled}, .${nr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${nr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&v({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),X3=X(uh,{name:"MuiFilledInput",slot:"Input",overridesResolver:ah})(({theme:e,ownerState:t})=>v({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.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),fM=f.forwardRef(function(t,n){var r,o,l,s;const i=Re({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:h=!1,slotProps:g,slots:m={},type:x="text"}=i,w=W(i,K3),b=v({},i,{fullWidth:u,inputComponent:d,multiline:h,type:x}),y=q3(i),C={root:{ownerState:b},input:{ownerState:b}},S=g??c?Gn(C,g??c):C,I=(r=(o=m.root)!=null?o:a.Root)!=null?r:Y3,P=(l=(s=m.input)!=null?s:a.Input)!=null?l:X3;return p.jsx(ba,v({slots:{root:I,input:P},componentsProps:S,fullWidth:u,inputComponent:d,multiline:h,ref:n,type:x},w,{classes:y}))});fM.muiName="Input";const pM=fM;function Q3(e){return Ie("MuiFormControl",e)}Me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Z3=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],J3=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${te(n)}`,r&&"fullWidth"]};return ae(o,Q3,t)},eH=X("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>v({},t.root,t[`margin${te(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>v({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%"})),tH=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormControl"}),{children:o,className:l,color:s="primary",component:i="div",disabled:a=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:h=!1,margin:g="none",required:m=!1,size:x="medium",variant:w="outlined"}=r,b=W(r,Z3),y=v({},r,{color:s,component:i,disabled:a,error:c,fullWidth:d,hiddenLabel:h,margin:g,required:m,size:x,variant:w}),C=J3(y),[S,I]=f.useState(()=>{let _=!1;return o&&f.Children.forEach(o,M=>{if(!Dd(M,["Input","Select"]))return;const T=Dd(M,["Select"])?M.props.input:M;T&&eN(T.props)&&(_=!0)}),_}),[P,k]=f.useState(()=>{let _=!1;return o&&f.Children.forEach(o,M=>{Dd(M,["Input","Select"])&&(wf(M.props,!0)||wf(M.props.inputProps,!0))&&(_=!0)}),_}),[$,D]=f.useState(!1);a&&$&&D(!1);const O=u!==void 0&&!a?u:$;let R;const L=f.useMemo(()=>({adornedStart:S,setAdornedStart:I,color:s,disabled:a,error:c,filled:P,focused:O,fullWidth:d,hiddenLabel:h,size:x,onBlur:()=>{D(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{D(!0)},registerEffect:R,required:m,variant:w}),[S,s,a,c,P,O,d,h,R,m,x,w]);return p.jsx(sh.Provider,{value:L,children:p.jsx(eH,v({as:i,ownerState:y,className:ee(C.root,l),ref:n},b,{children:o}))})}),Zi=tH,nH=nD({createStyledComponent:X("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Re({props:e,name:"MuiStack"})}),rH=nH;function oH(e){return Ie("MuiFormControlLabel",e)}const lH=Me("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ec=lH,sH=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],iH=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:l}=e,s={root:["root",n&&"disabled",`labelPlacement${te(r)}`,o&&"error",l&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return ae(s,oH,t)},aH=X("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ec.label}`]:t.label},t.root,t[`labelPlacement${te(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>v({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ec.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},{[`& .${ec.label}`]:{[`&.${ec.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),cH=X("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ec.error}`]:{color:(e.vars||e).palette.error.main}})),uH=f.forwardRef(function(t,n){var r,o;const l=Re({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:i={},control:a,disabled:c,disableTypography:u,label:d,labelPlacement:h="end",required:g,slotProps:m={}}=l,x=W(l,sH),w=Zo(),b=(r=c??a.props.disabled)!=null?r:w==null?void 0:w.disabled,y=g??a.props.required,C={disabled:b,required:y};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof a.props[D]>"u"&&typeof l[D]<"u"&&(C[D]=l[D])});const S=Ls({props:l,muiFormControl:w,states:["error"]}),I=v({},l,{disabled:b,labelPlacement:h,required:y,error:S.error}),P=iH(I),k=(o=m.typography)!=null?o:i.typography;let $=d;return $!=null&&$.type!==It&&!u&&($=p.jsx(It,v({component:"span"},k,{className:ee(P.label,k==null?void 0:k.className),children:$}))),p.jsxs(aH,v({className:ee(P.root,s),ownerState:I,ref:n},x,{children:[f.cloneElement(a,C),y?p.jsxs(rH,{display:"block",children:[$,p.jsxs(cH,{ownerState:I,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):$]}))}),hM=uH;function dH(e){return Ie("MuiFormHelperText",e)}const fH=Me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Q1=fH;var Z1;const pH=["children","className","component","disabled","error","filled","focused","margin","required","variant"],hH=e=>{const{classes:t,contained:n,size:r,disabled:o,error:l,filled:s,focused:i,required:a}=e,c={root:["root",o&&"disabled",l&&"error",r&&`size${te(r)}`,n&&"contained",i&&"focused",s&&"filled",a&&"required"]};return ae(c,dH,t)},gH=X("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${te(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>v({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Q1.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Q1.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),mH=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormHelperText"}),{children:o,className:l,component:s="p"}=r,i=W(r,pH),a=Zo(),c=Ls({props:r,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),u=v({},r,{component:s,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=hH(u);return p.jsx(gH,v({as:s,ownerState:u,className:ee(d.root,l),ref:n},i,{children:o===" "?Z1||(Z1=p.jsx("span",{className:"notranslate",children:""})):o}))}),vH=mH;function yH(e){return Ie("MuiFormLabel",e)}const xH=Me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),yc=xH,bH=["children","className","color","component","disabled","error","filled","focused","required"],CH=e=>{const{classes:t,color:n,focused:r,disabled:o,error:l,filled:s,required:i}=e,a={root:["root",`color${te(n)}`,o&&"disabled",l&&"error",s&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",l&&"error"]};return ae(a,yH,t)},wH=X("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>v({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>v({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${yc.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${yc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yc.error}`]:{color:(e.vars||e).palette.error.main}})),SH=X("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${yc.error}`]:{color:(e.vars||e).palette.error.main}})),PH=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiFormLabel"}),{children:o,className:l,component:s="label"}=r,i=W(r,bH),a=Zo(),c=Ls({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),u=v({},r,{color:c.color||"primary",component:s,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=CH(u);return p.jsxs(wH,v({as:s,ownerState:u,className:ee(d.root,l),ref:n},i,{children:[o,c.required&&p.jsxs(SH,{ownerState:u,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),kH=PH,MH=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function rv(e){return`scale(${e}, ${e**2})`}const IH={entering:{opacity:1,transform:rv(1)},entered:{opacity:1,transform:"none"}},Cg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),gM=f.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:l,easing:s,in:i,onEnter:a,onEntered:c,onEntering:u,onExit:d,onExited:h,onExiting:g,style:m,timeout:x="auto",TransitionComponent:w=q0}=t,b=W(t,MH),y=wi(),C=f.useRef(),S=on(),I=f.useRef(null),P=nt(I,l.ref,n),k=T=>j=>{if(T){const A=I.current;j===void 0?T(A):T(A,j)}},$=k(u),D=k((T,j)=>{Q0(T);const{duration:A,delay:E,easing:F}=Ki({style:m,timeout:x,easing:s},{mode:"enter"});let N;x==="auto"?(N=S.transitions.getAutoHeightDuration(T.clientHeight),C.current=N):N=A,T.style.transition=[S.transitions.create("opacity",{duration:N,delay:E}),S.transitions.create("transform",{duration:Cg?N:N*.666,delay:E,easing:F})].join(","),a&&a(T,j)}),O=k(c),R=k(g),L=k(T=>{const{duration:j,delay:A,easing:E}=Ki({style:m,timeout:x,easing:s},{mode:"exit"});let F;x==="auto"?(F=S.transitions.getAutoHeightDuration(T.clientHeight),C.current=F):F=j,T.style.transition=[S.transitions.create("opacity",{duration:F,delay:A}),S.transitions.create("transform",{duration:Cg?F:F*.666,delay:Cg?A:A||F*.333,easing:E})].join(","),T.style.opacity=0,T.style.transform=rv(.75),d&&d(T)}),_=k(h),M=T=>{x==="auto"&&y.start(C.current||0,T),r&&r(I.current,T)};return p.jsx(w,v({appear:o,in:i,nodeRef:I,onEnter:D,onEntered:O,onEntering:$,onExit:L,onExited:_,onExiting:R,addEndListener:M,timeout:x==="auto"?null:x},b,{children:(T,j)=>f.cloneElement(l,v({style:v({opacity:0,transform:rv(.75),visibility:T==="exited"&&!i?"hidden":void 0},IH[T],m,l.props.style),ref:P},j))}))});gM.muiSupportAuto=!0;const Sf=gM,$H=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],EH=e=>{const{classes:t,disableUnderline:n}=e,o=ae({root:["root",!n&&"underline"],input:["input"]},iN,t);return v({},t,o)},TH=X(ch,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ih(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})`),v({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"},[`&.${vl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vl.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(.${vl.disabled}, .${vl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${vl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),RH=X(uh,{name:"MuiInput",slot:"Input",overridesResolver:ah})({}),mM=f.forwardRef(function(t,n){var r,o,l,s;const i=Re({props:t,name:"MuiInput"}),{disableUnderline:a,components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:h="input",multiline:g=!1,slotProps:m,slots:x={},type:w="text"}=i,b=W(i,$H),y=EH(i),S={root:{ownerState:{disableUnderline:a}}},I=m??u?Gn(m??u,S):S,P=(r=(o=x.root)!=null?o:c.Root)!=null?r:TH,k=(l=(s=x.input)!=null?s:c.Input)!=null?l:RH;return p.jsx(ba,v({slots:{root:P,input:k},slotProps:I,fullWidth:d,inputComponent:h,multiline:g,ref:n,type:w},b,{classes:y}))});mM.muiName="Input";const vM=mM;function OH(e){return Ie("MuiInputAdornment",e)}const _H=Me("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),J1=_H;var eC;const FH=["children","className","component","disablePointerEvents","disableTypography","position","variant"],jH=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${te(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},DH=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:l,variant:s}=e,i={root:["root",n&&"disablePointerEvents",o&&`position${te(o)}`,s,r&&"hiddenLabel",l&&`size${te(l)}`]};return ae(i,OH,t)},AH=X("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:jH})(({theme:e,ownerState:t})=>v({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${J1.positionStart}&:not(.${J1.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),LH=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiInputAdornment"}),{children:o,className:l,component:s="div",disablePointerEvents:i=!1,disableTypography:a=!1,position:c,variant:u}=r,d=W(r,FH),h=Zo()||{};let g=u;u&&h.variant,h&&!g&&(g=h.variant);const m=v({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:i,position:c,variant:g}),x=DH(m);return p.jsx(sh.Provider,{value:null,children:p.jsx(AH,v({as:s,ownerState:m,className:ee(x.root,l),ref:n},d,{children:typeof o=="string"&&!a?p.jsx(It,{color:"text.secondary",children:o}):p.jsxs(f.Fragment,{children:[c==="start"?eC||(eC=p.jsx("span",{className:"notranslate",children:""})):null,o]})}))})}),NH=LH;function HH(e){return Ie("MuiInputLabel",e)}Me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const zH=["disableAnimation","margin","shrink","variant","className"],BH=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:l,variant:s,required:i}=e,a={root:["root",n&&"formControl",!l&&"animated",o&&"shrink",r&&r!=="normal"&&`size${te(r)}`,s],asterisk:[i&&"asterisk"]},c=ae(a,HH,t);return v({},t,c)},VH=X(kH,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${yc.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>v({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"&&v({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&&v({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"&&v({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)"}))),UH=f.forwardRef(function(t,n){const r=Re({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:l,className:s}=r,i=W(r,zH),a=Zo();let c=l;typeof c>"u"&&a&&(c=a.filled||a.focused||a.adornedStart);const u=Ls({props:r,muiFormControl:a,states:["size","variant","required","focused"]}),d=v({},r,{disableAnimation:o,formControl:a,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),h=BH(d);return p.jsx(VH,v({"data-shrink":c,ownerState:d,ref:n,className:ee(h.root,s)},i,{classes:h}))}),Ji=UH,WH=f.createContext({}),Ms=WH;function GH(e){return Ie("MuiList",e)}Me("MuiList",["root","padding","dense","subheader"]);const KH=["children","className","component","dense","disablePadding","subheader"],qH=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ae({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},GH,t)},YH=X("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})=>v({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),XH=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiList"}),{children:o,className:l,component:s="ul",dense:i=!1,disablePadding:a=!1,subheader:c}=r,u=W(r,KH),d=f.useMemo(()=>({dense:i}),[i]),h=v({},r,{component:s,dense:i,disablePadding:a}),g=qH(h);return p.jsx(Ms.Provider,{value:d,children:p.jsxs(YH,v({as:s,className:ee(g.root,l),ref:n,ownerState:h},u,{children:[c,o]}))})}),yM=XH;function QH(e){return Ie("MuiListItemButton",e)}const ZH=Me("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Da=ZH,JH=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],ez=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},tz=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:l,divider:s,selected:i}=e,c=ae({root:["root",r&&"dense",!l&&"gutters",s&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",i&&"selected"]},QH,n);return v({},n,c)},nz=X(Ps,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:ez})(({theme:e,ownerState:t})=>v({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Da.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Da.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Da.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(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})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Da.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Da.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),rz=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:l=!1,component:s="div",children:i,dense:a=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:d,selected:h=!1,className:g}=r,m=W(r,JH),x=f.useContext(Ms),w=f.useMemo(()=>({dense:a||x.dense||!1,alignItems:o,disableGutters:c}),[o,x.dense,a,c]),b=f.useRef(null);tt(()=>{l&&b.current&&b.current.focus()},[l]);const y=v({},r,{alignItems:o,dense:w.dense,disableGutters:c,divider:u,selected:h}),C=tz(y),S=nt(b,n);return p.jsx(Ms.Provider,{value:w,children:p.jsx(nz,v({ref:S,href:m.href||m.to,component:(m.href||m.to)&&s==="div"?"button":s,focusVisibleClassName:ee(C.focusVisible,d),ownerState:y,className:ee(C.root,g)},m,{classes:C,children:i}))})}),Zs=rz;function oz(e){return Ie("MuiListItemIcon",e)}const lz=Me("MuiListItemIcon",["root","alignItemsFlexStart"]),tC=lz,sz=["className"],iz=e=>{const{alignItems:t,classes:n}=e;return ae({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},oz,n)},az=X("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>v({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),cz=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemIcon"}),{className:o}=r,l=W(r,sz),s=f.useContext(Ms),i=v({},r,{alignItems:s.alignItems}),a=iz(i);return p.jsx(az,v({className:ee(a.root,o),ownerState:i,ref:n},l))}),Ir=cz;function uz(e){return Ie("MuiListItemText",e)}const dz=Me("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Pf=dz,fz=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],pz=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:l}=e;return ae({root:["root",n&&"inset",l&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},uz,t)},hz=X("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pf.primary}`]:t.primary},{[`& .${Pf.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>v({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),gz=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemText"}),{children:o,className:l,disableTypography:s=!1,inset:i=!1,primary:a,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=r,h=W(r,fz),{dense:g}=f.useContext(Ms);let m=a??o,x=u;const w=v({},r,{disableTypography:s,inset:i,primary:!!m,secondary:!!x,dense:g}),b=pz(w);return m!=null&&m.type!==It&&!s&&(m=p.jsx(It,v({variant:g?"body2":"body1",className:b.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:m}))),x!=null&&x.type!==It&&!s&&(x=p.jsx(It,v({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},d,{children:x}))),p.jsxs(hz,v({className:ee(b.root,l),ownerState:w,ref:n},h,{children:[m,x]}))}),$r=gz,mz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function wg(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function nC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function xM(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 Aa(e,t,n,r,o,l){let s=!1,i=o(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(s)return!1;s=!0}const a=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!xM(i,l)||a)i=o(e,i,n);else return i.focus(),!0}return!1}const vz=f.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:l=!1,children:s,className:i,disabledItemsFocusable:a=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=t,h=W(t,mz),g=f.useRef(null),m=f.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});tt(()=>{o&&g.current.focus()},[o]),f.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,S)=>{const I=!g.current.style.width;if(C.clientHeight<g.current.clientHeight&&I){const P=`${b2(Tt(C))}px`;g.current.style[S.direction==="rtl"?"paddingLeft":"paddingRight"]=P,g.current.style.width=`calc(100% + ${P})`}return g.current}}),[]);const x=C=>{const S=g.current,I=C.key,P=Tt(S).activeElement;if(I==="ArrowDown")C.preventDefault(),Aa(S,P,c,a,wg);else if(I==="ArrowUp")C.preventDefault(),Aa(S,P,c,a,nC);else if(I==="Home")C.preventDefault(),Aa(S,null,c,a,wg);else if(I==="End")C.preventDefault(),Aa(S,null,c,a,nC);else if(I.length===1){const k=m.current,$=I.toLowerCase(),D=performance.now();k.keys.length>0&&(D-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&$!==k.keys[0]&&(k.repeating=!1)),k.lastTime=D,k.keys.push($);const O=P&&!k.repeating&&xM(P,k);k.previousKeyMatched&&(O||Aa(S,P,!1,a,wg,k))?C.preventDefault():k.previousKeyMatched=!1}u&&u(C)},w=nt(g,n);let b=-1;f.Children.forEach(s,(C,S)=>{if(!f.isValidElement(C)){b===S&&(b+=1,b>=s.length&&(b=-1));return}C.props.disabled||(d==="selectedMenu"&&C.props.selected||b===-1)&&(b=S),b===S&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(b+=1,b>=s.length&&(b=-1))});const y=f.Children.map(s,(C,S)=>{if(S===b){const I={};return l&&(I.autoFocus=!0),C.props.tabIndex===void 0&&d==="selectedMenu"&&(I.tabIndex=0),f.cloneElement(C,I)}return C});return p.jsx(yM,v({role:"menu",ref:w,className:i,onKeyDown:x,tabIndex:o?0:-1},h,{children:y}))}),iy=vz;function yz(e){return Ie("MuiPopover",e)}Me("MuiPopover",["root","paper"]);const xz=["onEntering"],bz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Cz=["slotProps"];function rC(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function oC(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function lC(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Sg(e){return typeof e=="function"?e():e}const wz=e=>{const{classes:t}=e;return ae({root:["root"],paper:["paper"]},yz,t)},Sz=X(sy,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bM=X(_n,{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}),Pz=f.forwardRef(function(t,n){var r,o,l;const s=Re({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:h,className:g,container:m,elevation:x=8,marginThreshold:w=16,open:b,PaperProps:y={},slots:C,slotProps:S,transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:P=Sf,transitionDuration:k="auto",TransitionProps:{onEntering:$}={},disableScrollLock:D=!1}=s,O=W(s.TransitionProps,xz),R=W(s,bz),L=(r=S==null?void 0:S.paper)!=null?r:y,_=f.useRef(),M=nt(_,L.ref),T=v({},s,{anchorOrigin:c,anchorReference:d,elevation:x,marginThreshold:w,externalPaperSlotProps:L,transformOrigin:I,TransitionComponent:P,transitionDuration:k,TransitionProps:O}),j=wz(T),A=f.useCallback(()=>{if(d==="anchorPosition")return u;const ue=Sg(a),de=(ue&&ue.nodeType===1?ue:Tt(_.current).body).getBoundingClientRect();return{top:de.top+rC(de,c.vertical),left:de.left+oC(de,c.horizontal)}},[a,c.horizontal,c.vertical,u,d]),E=f.useCallback(ue=>({vertical:rC(ue,I.vertical),horizontal:oC(ue,I.horizontal)}),[I.horizontal,I.vertical]),F=f.useCallback(ue=>{const pe={width:ue.offsetWidth,height:ue.offsetHeight},de=E(pe);if(d==="none")return{top:null,left:null,transformOrigin:lC(de)};const G=A();let se=G.top-de.vertical,ie=G.left-de.horizontal;const ke=se+pe.height,we=ie+pe.width,Se=Dr(Sg(a)),ve=Se.innerHeight-w,re=Se.innerWidth-w;if(w!==null&&se<w){const ce=se-w;se-=ce,de.vertical+=ce}else if(w!==null&&ke>ve){const ce=ke-ve;se-=ce,de.vertical+=ce}if(w!==null&&ie<w){const ce=ie-w;ie-=ce,de.horizontal+=ce}else if(we>re){const ce=we-re;ie-=ce,de.horizontal+=ce}return{top:`${Math.round(se)}px`,left:`${Math.round(ie)}px`,transformOrigin:lC(de)}},[a,d,A,E,w]),[N,V]=f.useState(b),H=f.useCallback(()=>{const ue=_.current;if(!ue)return;const pe=F(ue);pe.top!==null&&(ue.style.top=pe.top),pe.left!==null&&(ue.style.left=pe.left),ue.style.transformOrigin=pe.transformOrigin,V(!0)},[F]);f.useEffect(()=>(D&&window.addEventListener("scroll",H),()=>window.removeEventListener("scroll",H)),[a,D,H]);const Q=(ue,pe)=>{$&&$(ue,pe),H()},q=()=>{V(!1)};f.useEffect(()=>{b&&H()}),f.useImperativeHandle(i,()=>b?{updatePosition:()=>{H()}}:null,[b,H]),f.useEffect(()=>{if(!b)return;const ue=xa(()=>{H()}),pe=Dr(a);return pe.addEventListener("resize",ue),()=>{ue.clear(),pe.removeEventListener("resize",ue)}},[a,b,H]);let Z=k;k==="auto"&&!P.muiSupportAuto&&(Z=void 0);const le=m||(a?Tt(Sg(a)).body:void 0),fe=(o=C==null?void 0:C.root)!=null?o:Sz,me=(l=C==null?void 0:C.paper)!=null?l:bM,Y=Qt({elementType:me,externalSlotProps:v({},L,{style:N?L.style:v({},L.style,{opacity:0})}),additionalProps:{elevation:x,ref:M},ownerState:T,className:ee(j.paper,L==null?void 0:L.className)}),oe=Qt({elementType:fe,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:R,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:le,open:b},ownerState:T,className:ee(j.root,g)}),{slotProps:J}=oe,U=W(oe,Cz);return p.jsx(fe,v({},U,!Kc(fe)&&{slotProps:J,disableScrollLock:D},{children:p.jsx(P,v({appear:!0,in:b,onEntering:Q,onExited:q,timeout:Z},O,{children:p.jsx(me,v({},Y,{children:h}))}))}))}),kz=Pz;function Mz(e){return Ie("MuiMenu",e)}Me("MuiMenu",["root","paper","list"]);const Iz=["onEntering"],$z=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ez={vertical:"top",horizontal:"right"},Tz={vertical:"top",horizontal:"left"},Rz=e=>{const{classes:t}=e;return ae({root:["root"],paper:["paper"],list:["list"]},Mz,t)},Oz=X(kz,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_z=X(bM,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Fz=X(iy,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),jz=f.forwardRef(function(t,n){var r,o;const l=Re({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:i,className:a,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:h,PaperProps:g={},PopoverClasses:m,transitionDuration:x="auto",TransitionProps:{onEntering:w}={},variant:b="selectedMenu",slots:y={},slotProps:C={}}=l,S=W(l.TransitionProps,Iz),I=W(l,$z),P=on(),k=P.direction==="rtl",$=v({},l,{autoFocus:s,disableAutoFocusItem:c,MenuListProps:u,onEntering:w,PaperProps:g,transitionDuration:x,TransitionProps:S,variant:b}),D=Rz($),O=s&&!c&&h,R=f.useRef(null),L=(F,N)=>{R.current&&R.current.adjustStyleForScrollbar(F,P),w&&w(F,N)},_=F=>{F.key==="Tab"&&(F.preventDefault(),d&&d(F,"tabKeyDown"))};let M=-1;f.Children.map(i,(F,N)=>{f.isValidElement(F)&&(F.props.disabled||(b==="selectedMenu"&&F.props.selected||M===-1)&&(M=N))});const T=(r=y.paper)!=null?r:_z,j=(o=C.paper)!=null?o:g,A=Qt({elementType:y.root,externalSlotProps:C.root,ownerState:$,className:[D.root,a]}),E=Qt({elementType:T,externalSlotProps:j,ownerState:$,className:D.paper});return p.jsx(Oz,v({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?Ez:Tz,slots:{paper:T,root:y.root},slotProps:{root:A,paper:E},open:h,ref:n,transitionDuration:x,TransitionProps:v({onEntering:L},S),ownerState:$},I,{classes:m,children:p.jsx(Fz,v({onKeyDown:_,actions:R,autoFocus:s&&(M===-1||c),autoFocusItem:O,variant:b},u,{className:ee(D.list,u.className),children:i}))}))}),Dz=jz;function Az(e){return Ie("MuiMenuItem",e)}const Lz=Me("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),La=Lz,Nz=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Hz=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},zz=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:l,classes:s}=e,a=ae({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",l&&"selected"]},Az,s);return v({},s,a)},Bz=X(Ps,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Hz})(({theme:e,ownerState:t})=>v({},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"}},[`&.${La.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${La.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${La.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:je(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})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${La.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${La.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Y1.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Y1.inset}`]:{marginLeft:52},[`& .${Pf.root}`]:{marginTop:0,marginBottom:0},[`& .${Pf.inset}`]:{paddingLeft:36},[`& .${tC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&v({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${tC.root} svg`]:{fontSize:"1.25rem"}}))),Vz=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:l="li",dense:s=!1,divider:i=!1,disableGutters:a=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:h}=r,g=W(r,Nz),m=f.useContext(Ms),x=f.useMemo(()=>({dense:s||m.dense||!1,disableGutters:a}),[m.dense,s,a]),w=f.useRef(null);tt(()=>{o&&w.current&&w.current.focus()},[o]);const b=v({},r,{dense:x.dense,divider:i,disableGutters:a}),y=zz(r),C=nt(w,n);let S;return r.disabled||(S=d!==void 0?d:-1),p.jsx(Ms.Provider,{value:x,children:p.jsx(Bz,v({ref:C,role:u,tabIndex:S,component:l,focusVisibleClassName:ee(y.focusVisible,c),className:ee(y.root,h)},g,{ownerState:b,classes:y}))})}),Bt=Vz;function Uz(e){return Ie("MuiNativeSelect",e)}const Wz=Me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ay=Wz,Gz=["className","disabled","error","IconComponent","inputRef","variant"],Kz=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:l,error:s}=e,i={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${te(n)}`,l&&"iconOpen",r&&"disabled"]};return ae(i,Uz,t)},CM=({ownerState:e,theme:t})=>v({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":v({},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"},[`&.${ay.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}}),qz=X("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:gn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${ay.multiple}`]:t.multiple}]}})(CM),wM=({ownerState:e,theme:t})=>v({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ay.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Yz=X("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${te(n.variant)}`],n.open&&t.iconOpen]}})(wM),Xz=f.forwardRef(function(t,n){const{className:r,disabled:o,error:l,IconComponent:s,inputRef:i,variant:a="standard"}=t,c=W(t,Gz),u=v({},t,{disabled:o,variant:a,error:l}),d=Kz(u);return p.jsxs(f.Fragment,{children:[p.jsx(qz,v({ownerState:u,className:ee(d.select,r),disabled:o,ref:i||n},c)),t.multiple?null:p.jsx(Yz,{as:s,ownerState:u,className:d.icon})]})}),Qz=Xz;var sC;const Zz=["children","classes","className","label","notched"],Jz=X("fieldset",{shouldForwardProp:gn})({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%"}),eB=X("legend",{shouldForwardProp:gn})(({ownerState:e,theme:t})=>v({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&&v({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 tB(e){const{className:t,label:n,notched:r}=e,o=W(e,Zz),l=n!=null&&n!=="",s=v({},e,{notched:r,withLabel:l});return p.jsx(Jz,v({"aria-hidden":!0,className:t,ownerState:s},o,{children:p.jsx(eB,{ownerState:s,children:l?p.jsx("span",{children:n}):sC||(sC=p.jsx("span",{className:"notranslate",children:""}))})}))}const nB=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],rB=e=>{const{classes:t}=e,r=ae({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},cN,t);return v({},t,r)},oB=X(ch,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ih})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return v({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ho.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ho.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ho.focused} .${ho.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ho.error} .${ho.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ho.disabled} .${ho.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&v({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),lB=X(tB,{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}}),sB=X(uh,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ah})(({theme:e,ownerState:t})=>v({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})),SM=f.forwardRef(function(t,n){var r,o,l,s,i;const a=Re({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:h,multiline:g=!1,notched:m,slots:x={},type:w="text"}=a,b=W(a,nB),y=rB(a),C=Zo(),S=Ls({props:a,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=v({},a,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:C,fullWidth:u,hiddenLabel:S.hiddenLabel,multiline:g,size:S.size,type:w}),P=(r=(o=x.root)!=null?o:c.Root)!=null?r:oB,k=(l=(s=x.input)!=null?s:c.Input)!=null?l:sB;return p.jsx(ba,v({slots:{root:P,input:k},renderSuffix:$=>p.jsx(lB,{ownerState:I,className:y.notchedOutline,label:h!=null&&h!==""&&S.required?i||(i=p.jsxs(f.Fragment,{children:[h," ","*"]})):h,notched:typeof m<"u"?m:!!($.startAdornment||$.filled||$.focused)}),fullWidth:u,inputComponent:d,multiline:g,ref:n,type:w},b,{classes:v({},y,{notchedOutline:null})}))});SM.muiName="Input";const PM=SM,iB=He(p.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),aB=He(p.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function cB(e){return Ie("MuiSelect",e)}const Na=Me("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var iC;const uB=["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"],dB=X("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Na.select}`]:t.select},{[`&.${Na.select}`]:t[n.variant]},{[`&.${Na.error}`]:t.error},{[`&.${Na.multiple}`]:t.multiple}]}})(CM,{[`&.${Na.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),fB=X("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${te(n.variant)}`],n.open&&t.iconOpen]}})(wM),pB=X("input",{shouldForwardProp:e=>TD(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 aC(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function hB(e){return e==null||typeof e=="string"&&!e.trim()}const gB=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:l,error:s}=e,i={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${te(n)}`,l&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ae(i,cB,t)},mB=f.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":l,autoFocus:s,autoWidth:i,children:a,className:c,defaultOpen:u,defaultValue:d,disabled:h,displayEmpty:g,error:m=!1,IconComponent:x,inputRef:w,labelId:b,MenuProps:y={},multiple:C,name:S,onBlur:I,onChange:P,onClose:k,onFocus:$,onOpen:D,open:O,readOnly:R,renderValue:L,SelectDisplayProps:_={},tabIndex:M,value:T,variant:j="standard"}=t,A=W(t,uB),[E,F]=_l({controlled:T,default:d,name:"Select"}),[N,V]=_l({controlled:O,default:u,name:"Select"}),H=f.useRef(null),Q=f.useRef(null),[q,Z]=f.useState(null),{current:le}=f.useRef(O!=null),[fe,me]=f.useState(),Y=nt(n,w),oe=f.useCallback(be=>{Q.current=be,be&&Z(be)},[]),J=q==null?void 0:q.parentNode;f.useImperativeHandle(Y,()=>({focus:()=>{Q.current.focus()},node:H.current,value:E}),[E]),f.useEffect(()=>{u&&N&&q&&!le&&(me(i?null:J.clientWidth),Q.current.focus())},[q,i]),f.useEffect(()=>{s&&Q.current.focus()},[s]),f.useEffect(()=>{if(!b)return;const be=Tt(Q.current).getElementById(b);if(be){const De=()=>{getSelection().isCollapsed&&Q.current.focus()};return be.addEventListener("click",De),()=>{be.removeEventListener("click",De)}}},[b]);const U=(be,De)=>{be?D&&D(De):k&&k(De),le||(me(i?null:J.clientWidth),V(be))},ue=be=>{be.button===0&&(be.preventDefault(),Q.current.focus(),U(!0,be))},pe=be=>{U(!1,be)},de=f.Children.toArray(a),G=be=>{const De=de.find(Be=>Be.props.value===be.target.value);De!==void 0&&(F(De.props.value),P&&P(be,De))},se=be=>De=>{let Be;if(De.currentTarget.hasAttribute("tabindex")){if(C){Be=Array.isArray(E)?E.slice():[];const _t=E.indexOf(be.props.value);_t===-1?Be.push(be.props.value):Be.splice(_t,1)}else Be=be.props.value;if(be.props.onClick&&be.props.onClick(De),E!==Be&&(F(Be),P)){const _t=De.nativeEvent||De,mn=new _t.constructor(_t.type,_t);Object.defineProperty(mn,"target",{writable:!0,value:{value:Be,name:S}}),P(mn,be)}C||U(!1,De)}},ie=be=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(be.key)!==-1&&(be.preventDefault(),U(!0,be))},ke=q!==null&&N,we=be=>{!ke&&I&&(Object.defineProperty(be,"target",{writable:!0,value:{value:E,name:S}}),I(be))};delete A["aria-invalid"];let Se,ve;const re=[];let ce=!1;(wf({value:E})||g)&&(L?Se=L(E):ce=!0);const ye=de.map(be=>{if(!f.isValidElement(be))return null;let De;if(C){if(!Array.isArray(E))throw new Error(Ll(2));De=E.some(Be=>aC(Be,be.props.value)),De&&ce&&re.push(be.props.children)}else De=aC(E,be.props.value),De&&ce&&(ve=be.props.children);return f.cloneElement(be,{"aria-selected":De?"true":"false",onClick:se(be),onKeyUp:Be=>{Be.key===" "&&Be.preventDefault(),be.props.onKeyUp&&be.props.onKeyUp(Be)},role:"option",selected:De,value:void 0,"data-value":be.props.value})});ce&&(C?re.length===0?Se=null:Se=re.reduce((be,De,Be)=>(be.push(De),Be<re.length-1&&be.push(", "),be),[]):Se=ve);let _e=fe;!i&&le&&q&&(_e=J.clientWidth);let Le;typeof M<"u"?Le=M:Le=h?null:0;const Oe=_.id||(S?`mui-component-select-${S}`:void 0),ge=v({},t,{variant:j,value:E,open:ke,error:m}),We=gB(ge),Kt=v({},y.PaperProps,(r=y.slotProps)==null?void 0:r.paper),Xe=ct();return p.jsxs(f.Fragment,{children:[p.jsx(dB,v({ref:oe,tabIndex:Le,role:"combobox","aria-controls":Xe,"aria-disabled":h?"true":void 0,"aria-expanded":ke?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[b,Oe].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ie,onMouseDown:h||R?null:ue,onBlur:we,onFocus:$},_,{ownerState:ge,className:ee(_.className,We.select,c),id:Oe,children:hB(Se)?iC||(iC=p.jsx("span",{className:"notranslate",children:""})):Se})),p.jsx(pB,v({"aria-invalid":m,value:Array.isArray(E)?E.join(","):E,name:S,ref:H,"aria-hidden":!0,onChange:G,tabIndex:-1,disabled:h,className:We.nativeInput,autoFocus:s,ownerState:ge},A)),p.jsx(fB,{as:x,className:We.icon,ownerState:ge}),p.jsx(Dz,v({id:`menu-${S||""}`,anchorEl:J,open:ke,onClose:pe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:v({"aria-labelledby":b,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:Xe},y.MenuListProps),slotProps:v({},y.slotProps,{paper:v({},Kt,{style:v({minWidth:_e},Kt!=null?Kt.style:null)})}),children:ye}))]})}),vB=mB,yB=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],xB=["root"],bB=e=>{const{classes:t}=e;return t},cy={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>gn(e)&&e!=="variant",slot:"Root"},CB=X(vM,cy)(""),wB=X(PM,cy)(""),SB=X(pM,cy)(""),kM=f.forwardRef(function(t,n){const r=Re({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:l,classes:s={},className:i,defaultOpen:a=!1,displayEmpty:c=!1,IconComponent:u=tM,id:d,input:h,inputProps:g,label:m,labelId:x,MenuProps:w,multiple:b=!1,native:y=!1,onClose:C,onOpen:S,open:I,renderValue:P,SelectDisplayProps:k,variant:$="outlined"}=r,D=W(r,yB),O=y?Qz:vB,R=Zo(),L=Ls({props:r,muiFormControl:R,states:["variant","error"]}),_=L.variant||$,M=v({},r,{variant:_,classes:s}),T=bB(M),j=W(T,xB),A=h||{standard:p.jsx(CB,{ownerState:M}),outlined:p.jsx(wB,{label:m,ownerState:M}),filled:p.jsx(SB,{ownerState:M})}[_],E=nt(n,A.ref);return p.jsx(f.Fragment,{children:f.cloneElement(A,v({inputComponent:O,inputProps:v({children:l,error:L.error,IconComponent:u,variant:_,type:void 0,multiple:b},y?{id:d}:{autoWidth:o,defaultOpen:a,displayEmpty:c,labelId:x,MenuProps:w,onClose:C,onOpen:S,open:I,renderValue:P,SelectDisplayProps:v({id:d},k)},g,{classes:g?Gn(j,g.classes):j},h?h.props.inputProps:{})},(b&&y||c)&&_==="outlined"?{notched:!0}:{},{ref:E,className:ee(A.props.className,i,T.root)},!h&&{variant:_},D))})});kM.muiName="Select";const Is=kM;function PB(e){return Ie("MuiSkeleton",e)}Me("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const kB=["animation","className","component","height","style","variant","width"];let kf=e=>e,cC,uC,dC,fC;const MB=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:l,height:s}=e;return ae({root:["root",n,r,o&&"withChildren",o&&!l&&"fitContent",o&&!s&&"heightAuto"]},PB,t)},IB=Ds(cC||(cC=kf`
0% {
opacity: 1;
}
50% {
opacity: 0.4;
}
100% {
opacity: 1;
}
`)),$B=Ds(uC||(uC=kf`
0% {
transform: translateX(-100%);
}
50% {
/* +0.5s of delay between each loop */
transform: translateX(100%);
}
100% {
transform: translateX(100%);
}
`)),EB=X("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=ID(e.shape.borderRadius)||"px",r=$D(e.shape.borderRadius);return v({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:je(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Wc(dC||(dC=kf`
animation: ${0} 2s ease-in-out 0.5s infinite;
`),IB),({ownerState:e,theme:t})=>e.animation==="wave"&&Wc(fC||(fC=kf`
position: relative;
overflow: hidden;
/* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
-webkit-mask-image: -webkit-radial-gradient(white, black);
&::after {
animation: ${0} 2s linear 0.5s infinite;
background: linear-gradient(
90deg,
transparent,
${0},
transparent
);
content: '';
position: absolute;
transform: translateX(-100%); /* Avoid flash during server-side hydration */
bottom: 0;
left: 0;
right: 0;
top: 0;
}
`),$B,(t.vars||t).palette.action.hover)),TB=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:l,component:s="span",height:i,style:a,variant:c="text",width:u}=r,d=W(r,kB),h=v({},r,{animation:o,component:s,variant:c,hasChildren:!!d.children}),g=MB(h);return p.jsx(EB,v({as:s,ref:n,className:ee(g.root,l),ownerState:h},d,{style:v({width:u,height:i},a)}))}),RB=TB;function OB(e){return Ie("MuiTooltip",e)}const _B=Me("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Cl=_B,FB=["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 jB(e){return Math.round(e*1e5)/1e5}const DB=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:l}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${te(l.split("-")[0])}`],arrow:["arrow"]};return ae(s,OB,t)},AB=X(As,{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})=>v({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Cl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Cl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Cl.arrow}`]:v({},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"] .${Cl.arrow}`]:v({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),LB=X("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${te(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>v({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:je(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:`${jB(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Cl.popper}[data-popper-placement*="left"] &`]:v({transformOrigin:"right center"},t.isRtl?v({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):v({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Cl.popper}[data-popper-placement*="right"] &`]:v({transformOrigin:"left center"},t.isRtl?v({marginRight:"14px"},t.touch&&{marginRight:"24px"}):v({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Cl.popper}[data-popper-placement*="top"] &`]:v({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Cl.popper}[data-popper-placement*="bottom"] &`]:v({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),NB=X("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:je(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ad=!1;const pC=new D0;let Ha={x:0,y:0};function cd(e,t){return n=>{t&&t(n),e(n)}}const HB=f.forwardRef(function(t,n){var r,o,l,s,i,a,c,u,d,h,g,m,x,w,b,y,C,S,I;const P=Re({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:$,components:D={},componentsProps:O={},describeChild:R=!1,disableFocusListener:L=!1,disableHoverListener:_=!1,disableInteractive:M=!1,disableTouchListener:T=!1,enterDelay:j=100,enterNextDelay:A=0,enterTouchDelay:E=700,followCursor:F=!1,id:N,leaveDelay:V=0,leaveTouchDelay:H=1500,onClose:Q,onOpen:q,open:Z,placement:le="bottom",PopperComponent:fe,PopperProps:me={},slotProps:Y={},slots:oe={},title:J,TransitionComponent:U=Sf,TransitionProps:ue}=P,pe=W(P,FB),de=f.isValidElement($)?$:p.jsx("span",{children:$}),G=on(),se=G.direction==="rtl",[ie,ke]=f.useState(),[we,Se]=f.useState(null),ve=f.useRef(!1),re=M||F,ce=wi(),ye=wi(),_e=wi(),Le=wi(),[Oe,ge]=_l({controlled:Z,default:!1,name:"Tooltip",state:"open"});let We=Oe;const Kt=ct(N),Xe=f.useRef(),be=wt(()=>{Xe.current!==void 0&&(document.body.style.WebkitUserSelect=Xe.current,Xe.current=void 0),Le.clear()});f.useEffect(()=>be,[be]);const De=Ae=>{pC.clear(),ad=!0,ge(!0),q&&!We&&q(Ae)},Be=wt(Ae=>{pC.start(800+V,()=>{ad=!1}),ge(!1),Q&&We&&Q(Ae),ce.start(G.transitions.duration.shortest,()=>{ve.current=!1})}),_t=Ae=>{ve.current&&Ae.type!=="touchstart"||(ie&&ie.removeAttribute("title"),ye.clear(),_e.clear(),j||ad&&A?ye.start(ad?A:j,()=>{De(Ae)}):De(Ae))},mn=Ae=>{ye.clear(),_e.start(V,()=>{Be(Ae)})},{isFocusVisibleRef:gr,onBlur:vn,onFocus:mr,ref:In}=A0(),[,vr]=f.useState(!1),Zn=Ae=>{vn(Ae),gr.current===!1&&(vr(!1),mn(Ae))},vt=Ae=>{ie||ke(Ae.currentTarget),mr(Ae),gr.current===!0&&(vr(!0),_t(Ae))},ft=Ae=>{ve.current=!0;const xn=de.props;xn.onTouchStart&&xn.onTouchStart(Ae)},io=_t,tl=mn,Us=Ae=>{ft(Ae),_e.clear(),ce.clear(),be(),Xe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Le.start(E,()=>{document.body.style.WebkitUserSelect=Xe.current,_t(Ae)})},ao=Ae=>{de.props.onTouchEnd&&de.props.onTouchEnd(Ae),be(),_e.start(H,()=>{Be(Ae)})};f.useEffect(()=>{if(!We)return;function Ae(xn){(xn.key==="Escape"||xn.key==="Esc")&&Be(xn)}return document.addEventListener("keydown",Ae),()=>{document.removeEventListener("keydown",Ae)}},[Be,We]);const Ft=nt(de.ref,In,ke,n);!J&&J!==0&&(We=!1);const yt=f.useRef(),yn=Ae=>{const xn=de.props;xn.onMouseMove&&xn.onMouseMove(Ae),Ha={x:Ae.clientX,y:Ae.clientY},yt.current&&yt.current.update()},co={},uo=typeof J=="string";R?(co.title=!We&&uo&&!_?J:null,co["aria-describedby"]=We?Kt:null):(co["aria-label"]=uo?J:null,co["aria-labelledby"]=We&&!uo?Kt:null);const en=v({},co,pe,de.props,{className:ee(pe.className,de.props.className),onTouchStart:ft,ref:Ft},F?{onMouseMove:yn}:{}),zr={};T||(en.onTouchStart=Us,en.onTouchEnd=ao),_||(en.onMouseOver=cd(io,en.onMouseOver),en.onMouseLeave=cd(tl,en.onMouseLeave),re||(zr.onMouseOver=io,zr.onMouseLeave=tl)),L||(en.onFocus=cd(vt,en.onFocus),en.onBlur=cd(Zn,en.onBlur),re||(zr.onFocus=vt,zr.onBlur=Zn));const nl=f.useMemo(()=>{var Ae;let xn=[{name:"arrow",enabled:!!we,options:{element:we,padding:4}}];return(Ae=me.popperOptions)!=null&&Ae.modifiers&&(xn=xn.concat(me.popperOptions.modifiers)),v({},me.popperOptions,{modifiers:xn})},[we,me]),$n=v({},P,{isRtl:se,arrow:k,disableInteractive:re,placement:le,PopperComponentProp:fe,touch:ve.current}),Dn=DB($n),To=(r=(o=oe.popper)!=null?o:D.Popper)!=null?r:AB,ne=(l=(s=(i=oe.transition)!=null?i:D.Transition)!=null?s:U)!=null?l:Sf,K=(a=(c=oe.tooltip)!=null?c:D.Tooltip)!=null?a:LB,xe=(u=(d=oe.arrow)!=null?d:D.Arrow)!=null?u:NB,Fe=Ja(To,v({},me,(h=Y.popper)!=null?h:O.popper,{className:ee(Dn.popper,me==null?void 0:me.className,(g=(m=Y.popper)!=null?m:O.popper)==null?void 0:g.className)}),$n),ot=Ja(ne,v({},ue,(x=Y.transition)!=null?x:O.transition),$n),jt=Ja(K,v({},(w=Y.tooltip)!=null?w:O.tooltip,{className:ee(Dn.tooltip,(b=(y=Y.tooltip)!=null?y:O.tooltip)==null?void 0:b.className)}),$n),Ht=Ja(xe,v({},(C=Y.arrow)!=null?C:O.arrow,{className:ee(Dn.arrow,(S=(I=Y.arrow)!=null?I:O.arrow)==null?void 0:S.className)}),$n);return p.jsxs(f.Fragment,{children:[f.cloneElement(de,en),p.jsx(To,v({as:fe??As,placement:le,anchorEl:F?{getBoundingClientRect:()=>({top:Ha.y,left:Ha.x,right:Ha.x,bottom:Ha.y,width:0,height:0})}:ie,popperRef:yt,open:ie?We:!1,id:Kt,transition:!0},zr,Fe,{popperOptions:nl,children:({TransitionProps:Ae})=>p.jsx(ne,v({timeout:G.transitions.duration.shorter},Ae,ot,{children:p.jsxs(K,v({},jt,{children:[J,k?p.jsx(xe,v({},Ht,{ref:Se})):null]}))}))}))]})}),MM=HB;function zB(e){return Ie("MuiSwitch",e)}const BB=Me("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Sn=BB,VB=["className","color","edge","size","sx"],UB=e=>{const{classes:t,edge:n,size:r,color:o,checked:l,disabled:s}=e,i={root:["root",n&&`edge${te(n)}`,`size${te(r)}`],switchBase:["switchBase",`color${te(o)}`,l&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},a=ae(i,zB,t);return v({},t,a)},WB=X("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${te(n.edge)}`],t[`size${te(n.size)}`]]}})(({ownerState:e})=>v({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Sn.thumb}`]:{width:16,height:16},[`& .${Sn.switchBase}`]:{padding:4,[`&.${Sn.checked}`]:{transform:"translateX(16px)"}}})),GB=X(iM,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Sn.input}`]:t.input},n.color!=="default"&&t[`color${te(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Sn.checked}`]:{transform:"translateX(20px)"},[`&.${Sn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Sn.checked} + .${Sn.track}`]:{opacity:.5},[`&.${Sn.disabled} + .${Sn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Sn.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>v({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Sn.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:je(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Sn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Gi(e.palette[t.color].main,.62):Wi(e.palette[t.color].main,.55)}`}},[`&.${Sn.checked} + .${Sn.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),KB=X("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),qB=X("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),YB=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiSwitch"}),{className:o,color:l="primary",edge:s=!1,size:i="medium",sx:a}=r,c=W(r,VB),u=v({},r,{color:l,edge:s,size:i}),d=UB(u),h=p.jsx(qB,{className:d.thumb,ownerState:u});return p.jsxs(WB,{className:ee(d.root,o),sx:a,ownerState:u,children:[p.jsx(GB,v({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:u},c,{classes:v({},d,{root:d.switchBase})})),p.jsx(KB,{className:d.track,ownerState:u})]})}),IM=YB,XB=f.createContext(),$M=XB;function QB(e){return Ie("MuiTable",e)}Me("MuiTable",["root","stickyHeader"]);const ZB=["className","component","padding","size","stickyHeader"],JB=e=>{const{classes:t,stickyHeader:n}=e;return ae({root:["root",n&&"stickyHeader"]},QB,t)},e6=X("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>v({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":v({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),hC="table",t6=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTable"}),{className:o,component:l=hC,padding:s="normal",size:i="medium",stickyHeader:a=!1}=r,c=W(r,ZB),u=v({},r,{component:l,padding:s,size:i,stickyHeader:a}),d=JB(u),h=f.useMemo(()=>({padding:s,size:i,stickyHeader:a}),[s,i,a]);return p.jsx($M.Provider,{value:h,children:p.jsx(e6,v({as:l,role:l===hC?null:"table",ref:n,className:ee(d.root,o),ownerState:u},c))})}),ea=t6,n6=f.createContext(),ph=n6;function r6(e){return Ie("MuiTableBody",e)}Me("MuiTableBody",["root"]);const o6=["className","component"],l6=e=>{const{classes:t}=e;return ae({root:["root"]},r6,t)},s6=X("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),i6={variant:"body"},gC="tbody",a6=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableBody"}),{className:o,component:l=gC}=r,s=W(r,o6),i=v({},r,{component:l}),a=l6(i);return p.jsx(ph.Provider,{value:i6,children:p.jsx(s6,v({className:ee(a.root,o),as:l,ref:n,role:l===gC?null:"rowgroup",ownerState:i},s))})}),ta=a6;function c6(e){return Ie("MuiTableCell",e)}const u6=Me("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),d6=u6,f6=["align","className","component","padding","scope","size","sortDirection","variant"],p6=e=>{const{classes:t,variant:n,align:r,padding:o,size:l,stickyHeader:s}=e,i={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${te(r)}`,o!=="normal"&&`padding${te(o)}`,`size${te(l)}`]};return ae(i,c6,t)},h6=X("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${te(n.size)}`],n.padding!=="normal"&&t[`padding${te(n.padding)}`],n.align!=="inherit"&&t[`align${te(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>v({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
${e.palette.mode==="light"?Gi(je(e.palette.divider,1),.88):Wi(je(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",[`&.${d6.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})),g6=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableCell"}),{align:o="inherit",className:l,component:s,padding:i,scope:a,size:c,sortDirection:u,variant:d}=r,h=W(r,f6),g=f.useContext($M),m=f.useContext(ph),x=m&&m.variant==="head";let w;s?w=s:w=x?"th":"td";let b=a;w==="td"?b=void 0:!b&&x&&(b="col");const y=d||m&&m.variant,C=v({},r,{align:o,component:w,padding:i||(g&&g.padding?g.padding:"normal"),size:c||(g&&g.size?g.size:"medium"),sortDirection:u,stickyHeader:y==="head"&&g&&g.stickyHeader,variant:y}),S=p6(C);let I=null;return u&&(I=u==="asc"?"ascending":"descending"),p.jsx(h6,v({as:w,ref:n,className:ee(S.root,l),"aria-sort":I,scope:b,ownerState:C},h))}),Ne=g6;function m6(e){return Ie("MuiTableContainer",e)}Me("MuiTableContainer",["root"]);const v6=["className","component"],y6=e=>{const{classes:t}=e;return ae({root:["root"]},m6,t)},x6=X("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),b6=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableContainer"}),{className:o,component:l="div"}=r,s=W(r,v6),i=v({},r,{component:l}),a=y6(i);return p.jsx(x6,v({ref:n,as:l,className:ee(a.root,o),ownerState:i},s))}),na=b6;function C6(e){return Ie("MuiTableHead",e)}Me("MuiTableHead",["root"]);const w6=["className","component"],S6=e=>{const{classes:t}=e;return ae({root:["root"]},C6,t)},P6=X("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),k6={variant:"head"},mC="thead",M6=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableHead"}),{className:o,component:l=mC}=r,s=W(r,w6),i=v({},r,{component:l}),a=S6(i);return p.jsx(ph.Provider,{value:k6,children:p.jsx(P6,v({as:l,className:ee(a.root,o),ref:n,role:l===mC?null:"rowgroup",ownerState:i},s))})}),ov=M6;function I6(e){return Ie("MuiToolbar",e)}Me("MuiToolbar",["root","gutters","regular","dense"]);const $6=["className","component","disableGutters","variant"],E6=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ae({root:["root",!n&&"gutters",r]},I6,t)},T6=X("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>v({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),R6=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiToolbar"}),{className:o,component:l="div",disableGutters:s=!1,variant:i="regular"}=r,a=W(r,$6),c=v({},r,{component:l,disableGutters:s,variant:i}),u=E6(c);return p.jsx(T6,v({as:l,className:ee(u.root,o),ref:n,ownerState:c},a))}),O6=R6,_6=He(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),F6=He(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),j6=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],D6=f.forwardRef(function(t,n){var r,o,l,s,i,a,c,u;const{backIconButtonProps:d,count:h,disabled:g=!1,getItemAriaLabel:m,nextIconButtonProps:x,onPageChange:w,page:b,rowsPerPage:y,showFirstButton:C,showLastButton:S,slots:I={},slotProps:P={}}=t,k=W(t,j6),$=on(),D=Y=>{w(Y,0)},O=Y=>{w(Y,b-1)},R=Y=>{w(Y,b+1)},L=Y=>{w(Y,Math.max(0,Math.ceil(h/y)-1))},_=(r=I.firstButton)!=null?r:dn,M=(o=I.lastButton)!=null?o:dn,T=(l=I.nextButton)!=null?l:dn,j=(s=I.previousButton)!=null?s:dn,A=(i=I.firstButtonIcon)!=null?i:iB,E=(a=I.lastButtonIcon)!=null?a:aB,F=(c=I.nextButtonIcon)!=null?c:F6,N=(u=I.previousButtonIcon)!=null?u:_6,V=$.direction==="rtl"?M:_,H=$.direction==="rtl"?T:j,Q=$.direction==="rtl"?j:T,q=$.direction==="rtl"?_:M,Z=$.direction==="rtl"?P.lastButton:P.firstButton,le=$.direction==="rtl"?P.nextButton:P.previousButton,fe=$.direction==="rtl"?P.previousButton:P.nextButton,me=$.direction==="rtl"?P.firstButton:P.lastButton;return p.jsxs("div",v({ref:n},k,{children:[C&&p.jsx(V,v({onClick:D,disabled:g||b===0,"aria-label":m("first",b),title:m("first",b)},Z,{children:$.direction==="rtl"?p.jsx(E,v({},P.lastButtonIcon)):p.jsx(A,v({},P.firstButtonIcon))})),p.jsx(H,v({onClick:O,disabled:g||b===0,color:"inherit","aria-label":m("previous",b),title:m("previous",b)},le??d,{children:$.direction==="rtl"?p.jsx(F,v({},P.nextButtonIcon)):p.jsx(N,v({},P.previousButtonIcon))})),p.jsx(Q,v({onClick:R,disabled:g||(h!==-1?b>=Math.ceil(h/y)-1:!1),color:"inherit","aria-label":m("next",b),title:m("next",b)},fe??x,{children:$.direction==="rtl"?p.jsx(N,v({},P.previousButtonIcon)):p.jsx(F,v({},P.nextButtonIcon))})),S&&p.jsx(q,v({onClick:L,disabled:g||b>=Math.ceil(h/y)-1,"aria-label":m("last",b),title:m("last",b)},me,{children:$.direction==="rtl"?p.jsx(A,v({},P.firstButtonIcon)):p.jsx(E,v({},P.lastButtonIcon))}))]}))}),A6=D6;function L6(e){return Ie("MuiTablePagination",e)}const N6=Me("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),ds=N6;var vC;const H6=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],z6=X(Ne,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),B6=X(O6,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>v({[`& .${ds.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${ds.actions}`]:{flexShrink:0,marginLeft:20}})),V6=X("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),U6=X("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>v({},e.typography.body2,{flexShrink:0})),W6=X(Is,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>v({[`& .${ds.selectIcon}`]:t.selectIcon,[`& .${ds.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${ds.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),G6=X(Bt,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),K6=X("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>v({},e.typography.body2,{flexShrink:0}));function q6({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function Y6(e){return`Go to ${e} page`}const X6=e=>{const{classes:t}=e;return ae({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},L6,t)},Q6=f.forwardRef(function(t,n){var r;const o=Re({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=A6,backIconButtonProps:s,className:i,colSpan:a,component:c=Ne,count:u,disabled:d=!1,getItemAriaLabel:h=Y6,labelDisplayedRows:g=q6,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:x,onPageChange:w,onRowsPerPageChange:b,page:y,rowsPerPage:C,rowsPerPageOptions:S=[10,25,50,100],SelectProps:I={},showFirstButton:P=!1,showLastButton:k=!1,slotProps:$={},slots:D={}}=o,O=W(o,H6),R=o,L=X6(R),_=(r=$==null?void 0:$.select)!=null?r:I,M=_.native?"option":G6;let T;(c===Ne||c==="td")&&(T=a||1e3);const j=ct(_.id),A=ct(_.labelId),E=()=>u===-1?(y+1)*C:C===-1?u:Math.min(u,(y+1)*C);return p.jsx(z6,v({colSpan:T,ref:n,as:c,ownerState:R,className:ee(L.root,i)},O,{children:p.jsxs(B6,{className:L.toolbar,children:[p.jsx(V6,{className:L.spacer}),S.length>1&&p.jsx(U6,{className:L.selectLabel,id:A,children:m}),S.length>1&&p.jsx(W6,v({variant:"standard"},!_.variant&&{input:vC||(vC=p.jsx(ba,{}))},{value:C,onChange:b,id:j,labelId:A},_,{classes:v({},_.classes,{root:ee(L.input,L.selectRoot,(_.classes||{}).root),select:ee(L.select,(_.classes||{}).select),icon:ee(L.selectIcon,(_.classes||{}).icon)}),disabled:d,children:S.map(F=>f.createElement(M,v({},!Kc(M)&&{ownerState:R},{className:L.menuItem,key:F.label?F.label:F,value:F.value?F.value:F}),F.label?F.label:F))})),p.jsx(K6,{className:L.displayedRows,children:g({from:u===0?0:y*C+1,to:E(),count:u===-1?-1:u,page:y})}),p.jsx(l,{className:L.actions,backIconButtonProps:s,count:u,nextIconButtonProps:x,onPageChange:w,page:y,rowsPerPage:C,showFirstButton:P,showLastButton:k,slotProps:$.actions,slots:D.actions,getItemAriaLabel:h,disabled:d})]})}))}),Z6=Q6;function J6(e){return Ie("MuiTableRow",e)}const eV=Me("MuiTableRow",["root","selected","hover","head","footer"]),yC=eV,tV=["className","component","hover","selected"],nV=e=>{const{classes:t,selected:n,hover:r,head:o,footer:l}=e;return ae({root:["root",n&&"selected",r&&"hover",o&&"head",l&&"footer"]},J6,t)},rV=X("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,[`&.${yC.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${yC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(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}))`:je(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),xC="tr",oV=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTableRow"}),{className:o,component:l=xC,hover:s=!1,selected:i=!1}=r,a=W(r,tV),c=f.useContext(ph),u=v({},r,{component:l,hover:s,selected:i,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),d=nV(u);return p.jsx(rV,v({as:l,ref:n,className:ee(d.root,o),role:l===xC?null:"row",ownerState:u},a))}),Xr=oV;function lV(e){return Ie("MuiTextField",e)}Me("MuiTextField",["root"]);const sV=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],iV={standard:vM,filled:pM,outlined:PM},aV=e=>{const{classes:t}=e;return ae({root:["root"]},lV,t)},cV=X(Zi,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uV=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:l=!1,children:s,className:i,color:a="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:m,id:x,InputLabelProps:w,inputProps:b,InputProps:y,inputRef:C,label:S,maxRows:I,minRows:P,multiline:k=!1,name:$,onBlur:D,onChange:O,onFocus:R,placeholder:L,required:_=!1,rows:M,select:T=!1,SelectProps:j,type:A,value:E,variant:F="outlined"}=r,N=W(r,sV),V=v({},r,{autoFocus:l,color:a,disabled:u,error:d,fullWidth:g,multiline:k,required:_,select:T,variant:F}),H=aV(V),Q={};F==="outlined"&&(w&&typeof w.shrink<"u"&&(Q.notched=w.shrink),Q.label=S),T&&((!j||!j.native)&&(Q.id=void 0),Q["aria-describedby"]=void 0);const q=ct(x),Z=m&&q?`${q}-helper-text`:void 0,le=S&&q?`${q}-label`:void 0,fe=iV[F],me=p.jsx(fe,v({"aria-describedby":Z,autoComplete:o,autoFocus:l,defaultValue:c,fullWidth:g,multiline:k,name:$,rows:M,maxRows:I,minRows:P,type:A,value:E,id:q,inputRef:C,onBlur:D,onChange:O,onFocus:R,placeholder:L,inputProps:b},Q,y));return p.jsxs(cV,v({className:ee(H.root,i),disabled:u,error:d,fullWidth:g,ref:n,required:_,color:a,variant:F,ownerState:V},N,{children:[S!=null&&S!==""&&p.jsx(Ji,v({htmlFor:q,id:le},w,{children:S})),T?p.jsx(Is,v({"aria-describedby":Z,id:q,labelId:le,value:E,input:me},j,{children:s})):me,m&&p.jsx(vH,v({id:Z},h,{children:m}))]}))}),Fl=uV;function Qe(e){return function(){return e}}const EM=Math.cos,Mf=Math.sin,oo=Math.sqrt,bC=1e-12,If=Math.PI,fs=2*If,lv=Math.PI,sv=2*lv,Zl=1e-6,dV=sv-Zl;function TM(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function fV(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return TM;const n=10**t;return function(r){this._+=r[0];for(let o=1,l=r.length;o<l;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class pV{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?TM:fV(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,l,s){this._append`C${+t},${+n},${+r},${+o},${this._x1=+l},${this._y1=+s}`}arcTo(t,n,r,o,l){if(t=+t,n=+n,r=+r,o=+o,l=+l,l<0)throw new Error(`negative radius: ${l}`);let s=this._x1,i=this._y1,a=r-t,c=o-n,u=s-t,d=i-n,h=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Zl)if(!(Math.abs(d*a-c*u)>Zl)||!l)this._append`L${this._x1=t},${this._y1=n}`;else{let g=r-s,m=o-i,x=a*a+c*c,w=g*g+m*m,b=Math.sqrt(x),y=Math.sqrt(h),C=l*Math.tan((lv-Math.acos((x+h-w)/(2*b*y)))/2),S=C/y,I=C/b;Math.abs(S-1)>Zl&&this._append`L${t+S*u},${n+S*d}`,this._append`A${l},${l},0,0,${+(d*g>u*m)},${this._x1=t+I*a},${this._y1=n+I*c}`}}arc(t,n,r,o,l,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let i=r*Math.cos(o),a=r*Math.sin(o),c=t+i,u=n+a,d=1^s,h=s?o-l:l-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Zl||Math.abs(this._y1-u)>Zl)&&this._append`L${c},${u}`,r&&(h<0&&(h=h%sv+sv),h>dV?this._append`A${r},${r},0,1,${d},${t-i},${n-a}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:h>Zl&&this._append`A${r},${r},0,${+(h>=lv)},${d},${this._x1=t+r*Math.cos(l)},${this._y1=n+r*Math.sin(l)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function uy(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new pV(t)}function hh(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function RM(e){this._context=e}RM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function dy(e){return new RM(e)}function OM(e){return e[0]}function _M(e){return e[1]}function FM(e,t){var n=Qe(!0),r=null,o=dy,l=null,s=uy(i);e=typeof e=="function"?e:e===void 0?OM:Qe(e),t=typeof t=="function"?t:t===void 0?_M:Qe(t);function i(a){var c,u=(a=hh(a)).length,d,h=!1,g;for(r==null&&(l=o(g=s())),c=0;c<=u;++c)!(c<u&&n(d=a[c],c,a))===h&&((h=!h)?l.lineStart():l.lineEnd()),h&&l.point(+e(d,c,a),+t(d,c,a));if(g)return l=null,g+""||null}return i.x=function(a){return arguments.length?(e=typeof a=="function"?a:Qe(+a),i):e},i.y=function(a){return arguments.length?(t=typeof a=="function"?a:Qe(+a),i):t},i.defined=function(a){return arguments.length?(n=typeof a=="function"?a:Qe(!!a),i):n},i.curve=function(a){return arguments.length?(o=a,r!=null&&(l=o(r)),i):o},i.context=function(a){return arguments.length?(a==null?r=l=null:l=o(r=a),i):r},i}function hV(e,t,n){var r=null,o=Qe(!0),l=null,s=dy,i=null,a=uy(c);e=typeof e=="function"?e:e===void 0?OM:Qe(+e),t=typeof t=="function"?t:Qe(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?_M:Qe(+n);function c(d){var h,g,m,x=(d=hh(d)).length,w,b=!1,y,C=new Array(x),S=new Array(x);for(l==null&&(i=s(y=a())),h=0;h<=x;++h){if(!(h<x&&o(w=d[h],h,d))===b)if(b=!b)g=h,i.areaStart(),i.lineStart();else{for(i.lineEnd(),i.lineStart(),m=h-1;m>=g;--m)i.point(C[m],S[m]);i.lineEnd(),i.areaEnd()}b&&(C[h]=+e(w,h,d),S[h]=+t(w,h,d),i.point(r?+r(w,h,d):C[h],n?+n(w,h,d):S[h]))}if(y)return i=null,y+""||null}function u(){return FM().defined(o).curve(s).context(l)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Qe(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Qe(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Qe(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:Qe(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Qe(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Qe(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(o=typeof d=="function"?d:Qe(!!d),c):o},c.curve=function(d){return arguments.length?(s=d,l!=null&&(i=s(l)),c):s},c.context=function(d){return arguments.length?(d==null?l=i=null:i=s(l=d),c):l},c}function gV(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function mV(e){return e}function vV(){var e=mV,t=gV,n=null,r=Qe(0),o=Qe(fs),l=Qe(0);function s(i){var a,c=(i=hh(i)).length,u,d,h=0,g=new Array(c),m=new Array(c),x=+r.apply(this,arguments),w=Math.min(fs,Math.max(-fs,o.apply(this,arguments)-x)),b,y=Math.min(Math.abs(w)/c,l.apply(this,arguments)),C=y*(w<0?-1:1),S;for(a=0;a<c;++a)(S=m[g[a]=a]=+e(i[a],a,i))>0&&(h+=S);for(t!=null?g.sort(function(I,P){return t(m[I],m[P])}):n!=null&&g.sort(function(I,P){return n(i[I],i[P])}),a=0,d=h?(w-c*C)/h:0;a<c;++a,x=b)u=g[a],S=m[u],b=x+(S>0?S*d:0)+C,m[u]={data:i[u],index:a,value:S,startAngle:x,endAngle:b,padAngle:y};return m}return s.value=function(i){return arguments.length?(e=typeof i=="function"?i:Qe(+i),s):e},s.sortValues=function(i){return arguments.length?(t=i,n=null,s):t},s.sort=function(i){return arguments.length?(n=i,t=null,s):n},s.startAngle=function(i){return arguments.length?(r=typeof i=="function"?i:Qe(+i),s):r},s.endAngle=function(i){return arguments.length?(o=typeof i=="function"?i:Qe(+i),s):o},s.padAngle=function(i){return arguments.length?(l=typeof i=="function"?i:Qe(+i),s):l},s}const jM={draw(e,t){const n=oo(t/If);e.moveTo(n,0),e.arc(0,0,n,0,fs)}},yV={draw(e,t){const n=oo(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},DM=oo(1/3),xV=DM*2,bV={draw(e,t){const n=oo(t/xV),r=n*DM;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},CV={draw(e,t){const n=oo(t),r=-n/2;e.rect(r,r,n,n)}},wV=.8908130915292852,AM=Mf(If/10)/Mf(7*If/10),SV=Mf(fs/10)*AM,PV=-EM(fs/10)*AM,kV={draw(e,t){const n=oo(t*wV),r=SV*n,o=PV*n;e.moveTo(0,-n),e.lineTo(r,o);for(let l=1;l<5;++l){const s=fs*l/5,i=EM(s),a=Mf(s);e.lineTo(a*n,-i*n),e.lineTo(i*r-a*o,a*r+i*o)}e.closePath()}},Pg=oo(3),MV={draw(e,t){const n=-oo(t/(Pg*3));e.moveTo(0,n*2),e.lineTo(-Pg*n,-n),e.lineTo(Pg*n,-n),e.closePath()}},yr=-.5,xr=oo(3)/2,iv=1/oo(12),IV=(iv/2+1)*3,$V={draw(e,t){const n=oo(t/IV),r=n/2,o=n*iv,l=r,s=n*iv+n,i=-l,a=s;e.moveTo(r,o),e.lineTo(l,s),e.lineTo(i,a),e.lineTo(yr*r-xr*o,xr*r+yr*o),e.lineTo(yr*l-xr*s,xr*l+yr*s),e.lineTo(yr*i-xr*a,xr*i+yr*a),e.lineTo(yr*r+xr*o,yr*o-xr*r),e.lineTo(yr*l+xr*s,yr*s-xr*l),e.lineTo(yr*i+xr*a,yr*a-xr*i),e.closePath()}},EV=[jM,yV,bV,CV,kV,MV,$V];function TV(e,t){let n=null,r=uy(o);e=typeof e=="function"?e:Qe(e||jM),t=typeof t=="function"?t:Qe(t===void 0?64:+t);function o(){let l;if(n||(n=l=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),l)return n=null,l+""||null}return o.type=function(l){return arguments.length?(e=typeof l=="function"?l:Qe(l),o):e},o.size=function(l){return arguments.length?(t=typeof l=="function"?l:Qe(+l),o):t},o.context=function(l){return arguments.length?(n=l??null,o):n},o}function CC(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function fy(e,t){this._context=e,this._k=(1-t)/6}fy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:CC(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:CC(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(r){return new fy(r,t)}return n.tension=function(r){return e(+r)},n})(0);function RV(e,t,n){var r=e._x1,o=e._y1,l=e._x2,s=e._y2;if(e._l01_a>bC){var i=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,a=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*i-e._x0*e._l12_2a+e._x2*e._l01_2a)/a,o=(o*i-e._y0*e._l12_2a+e._y2*e._l01_2a)/a}if(e._l23_a>bC){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);l=(l*c+e._x1*e._l23_2a-t*e._l12_2a)/u,s=(s*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,o,l,s,e._x2,e._y2)}function LM(e,t){this._context=e,this._alpha=t}LM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:RV(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const OV=function e(t){function n(r){return t?new LM(r,t):new fy(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function wC(e){return e<0?-1:1}function SC(e,t,n){var r=e._x1-e._x0,o=t-e._x1,l=(e._y1-e._y0)/(r||o<0&&-0),s=(n-e._y1)/(o||r<0&&-0),i=(l*o+s*r)/(r+o);return(wC(l)+wC(s))*Math.min(Math.abs(l),Math.abs(s),.5*Math.abs(i))||0}function PC(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function kg(e,t,n){var r=e._x0,o=e._y0,l=e._x1,s=e._y1,i=(l-r)/3;e._context.bezierCurveTo(r+i,o+i*t,l-i,s-i*n,l,s)}function $f(e){this._context=e}$f.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:kg(this,this._t0,PC(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,kg(this,PC(this,n=SC(this,e,t)),n);break;default:kg(this,this._t0,n=SC(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function NM(e){this._context=new HM(e)}(NM.prototype=Object.create($f.prototype)).point=function(e,t){$f.prototype.point.call(this,t,e)};function HM(e){this._context=e}HM.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,l){this._context.bezierCurveTo(t,e,r,n,l,o)}};function kC(e){return new $f(e)}function _V(e){return new NM(e)}function zM(e){this._context=e}zM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=MC(e),o=MC(t),l=0,s=1;s<n;++l,++s)this._context.bezierCurveTo(r[0][l],o[0][l],r[1][l],o[1][l],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function MC(e){var t,n=e.length-1,r,o=new Array(n),l=new Array(n),s=new Array(n);for(o[0]=0,l[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,l[t]=4,s[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,l[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/l[t-1],l[t]-=r,s[t]-=r*s[t-1];for(o[n-1]=s[n-1]/l[n-1],t=n-2;t>=0;--t)o[t]=(s[t]-o[t+1])/l[t];for(l[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)l[t]=2*e[t+1]-o[t+1];return[o,l]}function FV(e){return new zM(e)}function gh(e,t){this._context=e,this._t=t}gh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function jV(e){return new gh(e,.5)}function DV(e){return new gh(e,0)}function AV(e){return new gh(e,1)}function ra(e,t){if((s=e.length)>1)for(var n=1,r,o,l=e[t[0]],s,i=l.length;n<s;++n)for(o=l,l=e[t[n]],r=0;r<i;++r)l[r][1]+=l[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function oa(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function LV(e,t){return e[t]}function NV(e){const t=[];return t.key=e,t}function BM(){var e=Qe([]),t=oa,n=ra,r=LV;function o(l){var s=Array.from(e.apply(this,arguments),NV),i,a=s.length,c=-1,u;for(const d of l)for(i=0,++c;i<a;++i)(s[i][c]=[0,+r(d,s[i].key,c,l)]).data=d;for(i=0,u=hh(t(s));i<a;++i)s[u[i]].index=i;return n(s,u),s}return o.keys=function(l){return arguments.length?(e=typeof l=="function"?l:Qe(Array.from(l)),o):e},o.value=function(l){return arguments.length?(r=typeof l=="function"?l:Qe(+l),o):r},o.order=function(l){return arguments.length?(t=l==null?oa:typeof l=="function"?l:Qe(Array.from(l)),o):t},o.offset=function(l){return arguments.length?(n=l??ra,o):n},o}function HV(e,t){if((r=e.length)>0){for(var n,r,o=0,l=e[0].length,s;o<l;++o){for(s=n=0;n<r;++n)s+=e[n][o][1]||0;if(s)for(n=0;n<r;++n)e[n][o][1]/=s}ra(e,t)}}function zV(e,t){if((a=e.length)>0)for(var n,r=0,o,l,s,i,a,c=e[t[0]].length;r<c;++r)for(s=i=0,n=0;n<a;++n)(l=(o=e[t[n]][r])[1]-o[0])>0?(o[0]=s,o[1]=s+=l):l<0?(o[1]=i,o[0]=i+=l):(o[0]=0,o[1]=l)}function BV(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,l=r.length;n<l;++n){for(var s=0,i=0;s<o;++s)i+=e[s][n][1]||0;r[n][1]+=r[n][0]=-i/2}ra(e,t)}}function VV(e,t){if(!(!((s=e.length)>0)||!((l=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,l,s;r<l;++r){for(var i=0,a=0,c=0;i<s;++i){for(var u=e[t[i]],d=u[r][1]||0,h=u[r-1][1]||0,g=(d-h)/2,m=0;m<i;++m){var x=e[t[m]],w=x[r][1]||0,b=x[r-1][1]||0;g+=w-b}a+=d,c+=g*d}o[r-1][1]+=o[r-1][0]=n,a&&(n-=c/a)}o[r-1][1]+=o[r-1][0]=n,ra(e,t)}}function VM(e){var t=e.map(UV);return oa(e).sort(function(n,r){return t[n]-t[r]})}function UV(e){for(var t=-1,n=0,r=e.length,o,l=-1/0;++t<r;)(o=+e[t][1])>l&&(l=o,n=t);return n}function UM(e){var t=e.map(WM);return oa(e).sort(function(n,r){return t[n]-t[r]})}function WM(e){for(var t=0,n=-1,r=e.length,o;++n<r;)(o=+e[n][1])&&(t+=o);return t}function WV(e){return UM(e).reverse()}function GV(e){var t=e.length,n,r,o=e.map(WM),l=VM(e),s=0,i=0,a=[],c=[];for(n=0;n<t;++n)r=l[n],s<i?(s+=o[r],a.push(r)):(i+=o[r],c.push(r));return c.reverse().concat(a)}function KV(e){return oa(e).reverse()}const Mg={appearance:VM,ascending:UM,descending:WV,insideOut:GV,none:oa,reverse:KV},Ig={expand:HV,diverging:zV,none:ra,silhouette:BV,wiggle:VV},GM=e=>{const{series:t,seriesOrder:n,defaultStrategy:r}=e,o=[],l={};return n.forEach(s=>{const{stack:i,stackOrder:a,stackOffset:c}=t[s];if(i===void 0)o.push({ids:[s],stackingOrder:Mg.none,stackingOffset:Ig.none});else if(l[i]===void 0){var u,d;l[i]=o.length,o.push({ids:[s],stackingOrder:Mg[(u=a??(r==null?void 0:r.stackOrder))!=null?u:"none"],stackingOffset:Ig[(d=c??(r==null?void 0:r.stackOffset))!=null?d:"diverging"]})}else o[l[i]].ids.push(s),a!==void 0&&(o[l[i]].stackingOrder=Mg[a]),c!==void 0&&(o[l[i]].stackingOffset=Ig[c])}),o};function py(e,t){const n={};return Object.keys(e).forEach(r=>{var o;n[r]=v({},e[r],{valueFormatter:(o=e[r].valueFormatter)!=null?o:t})}),n}const qV=(e,t)=>{var n;const{seriesOrder:r,series:o}=e,l=GM(e),s=(n=t)!=null?n:[];r.forEach(a=>{const c=o[a].data;if(c!==void 0)c.forEach((u,d)=>{s.length<=d?s.push({[a]:u}):s[d][a]=u});else if(t===void 0)throw new Error([`MUI-X-Charts: bar series with id='${a}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(`
`))});const i={};return l.forEach(a=>{const{ids:c,stackingOffset:u,stackingOrder:d}=a,h=BM().keys(c.map(g=>{const m=o[g].dataKey;return o[g].data===void 0&&m!==void 0?m:g})).value((g,m)=>{var x;return(x=g[m])!=null?x:0}).order(d).offset(u)(s);c.forEach((g,m)=>{const x=o[g].dataKey;i[g]=v({layout:"vertical"},o[g],{data:x?t.map(w=>{const b=w[x];return typeof b!="number"?0:b}):o[g].data,stackedData:h[m].map(([w,b])=>[w,b])})})}),{seriesOrder:r,stackingGroups:l,series:py(i,a=>a==null?void 0:a.toLocaleString())}},YV=qV,XV=({series:e,seriesOrder:t})=>({series:py(e,n=>`(${n.x}, ${n.y})`),seriesOrder:t}),QV=XV,ZV=(e,t)=>{var n;const{seriesOrder:r,series:o}=e,l=GM(v({},e,{defaultStrategy:{stackOffset:"none"}})),s=(n=t)!=null?n:[];r.forEach(a=>{const c=o[a].data;c!==void 0&&c.forEach((u,d)=>{s.length<=d?s.push({[a]:u}):s[d][a]=u})});const i={};return l.forEach(a=>{const{ids:c,stackingOrder:u,stackingOffset:d}=a,h=BM().keys(c.map(g=>{const m=o[g].dataKey;return o[g].data===void 0&&m!==void 0?m:g})).value((g,m)=>{var x;return(x=g[m])!=null?x:0}).order(u).offset(d)(s);c.forEach((g,m)=>{const x=o[g].dataKey;i[g]=v({},o[g],{data:x?t.map(w=>{const b=w[x];return typeof b!="number"?null:b}):o[g].data,stackedData:h[m].map(([w,b])=>[w,b])})})}),{seriesOrder:r,stackingGroups:l,series:py(i,a=>a==null?void 0:a.toLocaleString())}},JV=ZV,e9=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,n)=>n-t;case"asc":return(t,n)=>t-n;default:return null}},t9=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{var l,s,i,a;const c=vV().startAngle(2*Math.PI*((l=n[o].startAngle)!=null?l:0)/360).endAngle(2*Math.PI*((s=n[o].endAngle)!=null?s:360)/360).padAngle(2*Math.PI*((i=n[o].paddingAngle)!=null?i:0)/360).sortValues(e9((a=n[o].sortingValues)!=null?a:"none"))(n[o].data.map(u=>u.value));r[o]=v({valueFormatter:u=>u.value.toLocaleString()},n[o],{data:n[o].data.map((u,d)=>{var h;return v({},u,{id:(h=u.id)!=null?h:`auto-generated-pie-id-${o}-${d}`},c[d])}).map(u=>{var d,h,g;return v({},u,{formattedValue:(d=(h=(g=n[o]).valueFormatter)==null?void 0:h.call(g,u))!=null?d:u.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},n9=t9,r9=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];function o9(e,t,n=r9){return e.type==="pie"?v({},e,{data:e.data.map((r,o)=>v({color:n[o%n.length]},r))}):v({color:n[t%n.length]},e)}const l9=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],s9=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],i9=e=>e==="dark"?s9:l9,Jo=f.createContext({}),$g={bar:YV,scatter:QV,line:JV,pie:n9},a9=(e,t,n)=>{const r={};e.forEach((l,s)=>{var i;const{id:a=`auto-generated-id-${s}`,type:c}=l;if(r[c]===void 0&&(r[c]={series:{},seriesOrder:[]}),((i=r[c])==null?void 0:i.series[a])!==void 0)throw new Error(`MUI-X-Charts: series' id "${a}" is not unique`);r[c].series[a]=v({id:a},o9(l,s,t)),r[c].seriesOrder.push(a)});const o={};return Object.keys($g).forEach(l=>{if(r[l]!==void 0){var s,i;o[l]=(s=(i=$g[l])==null?void 0:i.call($g,r[l],n))!=null?s:r[l]}}),o};function c9(e){const{series:t,dataset:n,colors:r=i9,children:o}=e,l=on(),s=f.useMemo(()=>a9(t,typeof r=="function"?r(l.palette.mode):r,n),[t,r,l.palette.mode,n]);return p.jsx(Jo.Provider,{value:s,children:o})}function Nd(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function u9(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function hy(e){let t,n,r;e.length!==2?(t=Nd,n=(i,a)=>Nd(e(i),a),r=(i,a)=>e(i)-a):(t=e===Nd||e===u9?e:d9,n=e,r=e);function o(i,a,c=0,u=i.length){if(c<u){if(t(a,a)!==0)return u;do{const d=c+u>>>1;n(i[d],a)<0?c=d+1:u=d}while(c<u)}return c}function l(i,a,c=0,u=i.length){if(c<u){if(t(a,a)!==0)return u;do{const d=c+u>>>1;n(i[d],a)<=0?c=d+1:u=d}while(c<u)}return c}function s(i,a,c=0,u=i.length){const d=o(i,a,c,u-1);return d>c&&r(i[d-1],a)>-r(i[d],a)?d-1:d}return{left:o,center:s,right:l}}function d9(){return 0}function f9(e){return e===null?NaN:+e}const p9=hy(Nd),h9=p9.right;hy(f9).center;class IC extends Map{constructor(t,n=v9){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get($C(this,t))}has(t){return super.has($C(this,t))}set(t,n){return super.set(g9(this,t),n)}delete(t){return super.delete(m9(this,t))}}function $C({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function g9({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function m9({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function v9(e){return e!==null&&typeof e=="object"?e.valueOf():e}const y9=Math.sqrt(50),x9=Math.sqrt(10),b9=Math.sqrt(2);function Ef(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),l=r/Math.pow(10,o),s=l>=y9?10:l>=x9?5:l>=b9?2:1;let i,a,c;return o<0?(c=Math.pow(10,-o)/s,i=Math.round(e*c),a=Math.round(t*c),i/c<e&&++i,a/c>t&&--a,c=-c):(c=Math.pow(10,o)*s,i=Math.round(e/c),a=Math.round(t/c),i*c<e&&++i,a*c>t&&--a),a<i&&.5<=n&&n<2?Ef(e,t,n*2):[i,a,c]}function av(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,l,s]=r?Ef(t,e,n):Ef(e,t,n);if(!(l>=o))return[];const i=l-o+1,a=new Array(i);if(r)if(s<0)for(let c=0;c<i;++c)a[c]=(l-c)/-s;else for(let c=0;c<i;++c)a[c]=(l-c)*s;else if(s<0)for(let c=0;c<i;++c)a[c]=(o+c)/-s;else for(let c=0;c<i;++c)a[c]=(o+c)*s;return a}function cv(e,t,n){return t=+t,e=+e,n=+n,Ef(e,t,n)[2]}function uv(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?cv(t,e,n):cv(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function C9(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,l=new Array(o);++r<o;)l[r]=e+r*n;return l}function Ns(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const EC=Symbol("implicit");function KM(){var e=new IC,t=[],n=[],r=EC;function o(l){let s=e.get(l);if(s===void 0){if(r!==EC)return r;e.set(l,s=t.push(l)-1)}return n[s%n.length]}return o.domain=function(l){if(!arguments.length)return t.slice();t=[],e=new IC;for(const s of l)e.has(s)||e.set(s,t.push(s)-1);return o},o.range=function(l){return arguments.length?(n=Array.from(l),o):n.slice()},o.unknown=function(l){return arguments.length?(r=l,o):r},o.copy=function(){return KM(t,n).unknown(r)},Ns.apply(o,arguments),o}function Tf(){var e=KM().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,l,s,i=!1,a=0,c=0,u=.5;delete e.unknown;function d(){var h=t().length,g=o<r,m=g?o:r,x=g?r:o;l=(x-m)/Math.max(1,h-a+c*2),i&&(l=Math.floor(l)),m+=(x-m-l*(h-a))*u,s=l*(1-a),i&&(m=Math.round(m),s=Math.round(s));var w=C9(h).map(function(b){return m+l*b});return n(g?w.reverse():w)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,o]=h,r=+r,o=+o,d()):[r,o]},e.rangeRound=function(h){return[r,o]=h,r=+r,o=+o,i=!0,d()},e.bandwidth=function(){return s},e.step=function(){return l},e.round=function(h){return arguments.length?(i=!!h,d()):i},e.padding=function(h){return arguments.length?(a=Math.min(1,c=+h),d()):a},e.paddingInner=function(h){return arguments.length?(a=Math.min(1,h),d()):a},e.paddingOuter=function(h){return arguments.length?(c=+h,d()):c},e.align=function(h){return arguments.length?(u=Math.max(0,Math.min(1,h)),d()):u},e.copy=function(){return Tf(t(),[r,o]).round(i).paddingInner(a).paddingOuter(c).align(u)},Ns.apply(d(),arguments)}function qM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return qM(t())},e}function TC(){return qM(Tf.apply(null,arguments).paddingInner(1))}function gy(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function YM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Eu(){}var Xc=.7,Rf=1/Xc,Oi="\\s*([+-]?\\d+)\\s*",Qc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Po="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",w9=/^#([0-9a-f]{3,8})$/,S9=new RegExp(`^rgb\\(${Oi},${Oi},${Oi}\\)$`),P9=new RegExp(`^rgb\\(${Po},${Po},${Po}\\)$`),k9=new RegExp(`^rgba\\(${Oi},${Oi},${Oi},${Qc}\\)$`),M9=new RegExp(`^rgba\\(${Po},${Po},${Po},${Qc}\\)$`),I9=new RegExp(`^hsl\\(${Qc},${Po},${Po}\\)$`),$9=new RegExp(`^hsla\\(${Qc},${Po},${Po},${Qc}\\)$`),RC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};gy(Eu,Nl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:OC,formatHex:OC,formatHex8:E9,formatHsl:T9,formatRgb:_C,toString:_C});function OC(){return this.rgb().formatHex()}function E9(){return this.rgb().formatHex8()}function T9(){return XM(this).formatHsl()}function _C(){return this.rgb().formatRgb()}function Nl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=w9.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?FC(t):n===3?new Bn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ud(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ud(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=S9.exec(e))?new Bn(t[1],t[2],t[3],1):(t=P9.exec(e))?new Bn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=k9.exec(e))?ud(t[1],t[2],t[3],t[4]):(t=M9.exec(e))?ud(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=I9.exec(e))?AC(t[1],t[2]/100,t[3]/100,1):(t=$9.exec(e))?AC(t[1],t[2]/100,t[3]/100,t[4]):RC.hasOwnProperty(e)?FC(RC[e]):e==="transparent"?new Bn(NaN,NaN,NaN,0):null}function FC(e){return new Bn(e>>16&255,e>>8&255,e&255,1)}function ud(e,t,n,r){return r<=0&&(e=t=n=NaN),new Bn(e,t,n,r)}function R9(e){return e instanceof Eu||(e=Nl(e)),e?(e=e.rgb(),new Bn(e.r,e.g,e.b,e.opacity)):new Bn}function dv(e,t,n,r){return arguments.length===1?R9(e):new Bn(e,t,n,r??1)}function Bn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}gy(Bn,dv,YM(Eu,{brighter(e){return e=e==null?Rf:Math.pow(Rf,e),new Bn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Xc:Math.pow(Xc,e),new Bn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Bn(ps(this.r),ps(this.g),ps(this.b),Of(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jC,formatHex:jC,formatHex8:O9,formatRgb:DC,toString:DC}));function jC(){return`#${os(this.r)}${os(this.g)}${os(this.b)}`}function O9(){return`#${os(this.r)}${os(this.g)}${os(this.b)}${os((isNaN(this.opacity)?1:this.opacity)*255)}`}function DC(){const e=Of(this.opacity);return`${e===1?"rgb(":"rgba("}${ps(this.r)}, ${ps(this.g)}, ${ps(this.b)}${e===1?")":`, ${e})`}`}function Of(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ps(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function os(e){return e=ps(e),(e<16?"0":"")+e.toString(16)}function AC(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qr(e,t,n,r)}function XM(e){if(e instanceof qr)return new qr(e.h,e.s,e.l,e.opacity);if(e instanceof Eu||(e=Nl(e)),!e)return new qr;if(e instanceof qr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),l=Math.max(t,n,r),s=NaN,i=l-o,a=(l+o)/2;return i?(t===l?s=(n-r)/i+(n<r)*6:n===l?s=(r-t)/i+2:s=(t-n)/i+4,i/=a<.5?l+o:2-l-o,s*=60):i=a>0&&a<1?0:s,new qr(s,i,a,e.opacity)}function _9(e,t,n,r){return arguments.length===1?XM(e):new qr(e,t,n,r??1)}function qr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}gy(qr,_9,YM(Eu,{brighter(e){return e=e==null?Rf:Math.pow(Rf,e),new qr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Xc:Math.pow(Xc,e),new qr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Bn(Eg(e>=240?e-240:e+120,o,r),Eg(e,o,r),Eg(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new qr(LC(this.h),dd(this.s),dd(this.l),Of(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Of(this.opacity);return`${e===1?"hsl(":"hsla("}${LC(this.h)}, ${dd(this.s)*100}%, ${dd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function LC(e){return e=(e||0)%360,e<0?e+360:e}function dd(e){return Math.max(0,Math.min(1,e||0))}function Eg(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const my=e=>()=>e;function F9(e,t){return function(n){return e+n*t}}function j9(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function D9(e){return(e=+e)==1?QM:function(t,n){return n-t?j9(t,n,e):my(isNaN(t)?n:t)}}function QM(e,t){var n=t-e;return n?F9(e,n):my(isNaN(e)?t:e)}const NC=function e(t){var n=D9(t);function r(o,l){var s=n((o=dv(o)).r,(l=dv(l)).r),i=n(o.g,l.g),a=n(o.b,l.b),c=QM(o.opacity,l.opacity);return function(u){return o.r=s(u),o.g=i(u),o.b=a(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function A9(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(l){for(o=0;o<n;++o)r[o]=e[o]*(1-l)+t[o]*l;return r}}function L9(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function N9(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),l=new Array(n),s;for(s=0;s<r;++s)o[s]=vy(e[s],t[s]);for(;s<n;++s)l[s]=t[s];return function(i){for(s=0;s<r;++s)l[s]=o[s](i);return l}}function H9(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function _f(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function z9(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=vy(e[o],t[o]):r[o]=t[o];return function(l){for(o in n)r[o]=n[o](l);return r}}var fv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Tg=new RegExp(fv.source,"g");function B9(e){return function(){return e}}function V9(e){return function(t){return e(t)+""}}function U9(e,t){var n=fv.lastIndex=Tg.lastIndex=0,r,o,l,s=-1,i=[],a=[];for(e=e+"",t=t+"";(r=fv.exec(e))&&(o=Tg.exec(t));)(l=o.index)>n&&(l=t.slice(n,l),i[s]?i[s]+=l:i[++s]=l),(r=r[0])===(o=o[0])?i[s]?i[s]+=o:i[++s]=o:(i[++s]=null,a.push({i:s,x:_f(r,o)})),n=Tg.lastIndex;return n<t.length&&(l=t.slice(n),i[s]?i[s]+=l:i[++s]=l),i.length<2?a[0]?V9(a[0].x):B9(t):(t=a.length,function(c){for(var u=0,d;u<t;++u)i[(d=a[u]).i]=d.x(c);return i.join("")})}function vy(e,t){var n=typeof t,r;return t==null||n==="boolean"?my(t):(n==="number"?_f:n==="string"?(r=Nl(t))?(t=r,NC):U9:t instanceof Nl?NC:t instanceof Date?H9:L9(t)?A9:Array.isArray(t)?N9:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?z9:_f)(e,t)}function W9(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function G9(e){return function(){return e}}function K9(e){return+e}var HC=[0,1];function xo(e){return e}function pv(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:G9(isNaN(t)?NaN:.5)}function q9(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Y9(e,t,n){var r=e[0],o=e[1],l=t[0],s=t[1];return o<r?(r=pv(o,r),l=n(s,l)):(r=pv(r,o),l=n(l,s)),function(i){return l(r(i))}}function X9(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),l=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)o[s]=pv(e[s],e[s+1]),l[s]=n(t[s],t[s+1]);return function(i){var a=h9(e,i,1,r)-1;return l[a](o[a](i))}}function mh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function yy(){var e=HC,t=HC,n=vy,r,o,l,s=xo,i,a,c;function u(){var h=Math.min(e.length,t.length);return s!==xo&&(s=q9(e[0],e[h-1])),i=h>2?X9:Y9,a=c=null,d}function d(h){return h==null||isNaN(h=+h)?l:(a||(a=i(e.map(r),t,n)))(r(s(h)))}return d.invert=function(h){return s(o((c||(c=i(t,e.map(r),_f)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,K9),u()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=W9,u()},d.clamp=function(h){return arguments.length?(s=h?!0:xo,u()):s!==xo},d.interpolate=function(h){return arguments.length?(n=h,u()):n},d.unknown=function(h){return arguments.length?(l=h,d):l},function(h,g){return r=h,o=g,u()}}function ZM(){return yy()(xo,xo)}function Q9(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ff(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function la(e){return e=Ff(Math.abs(e)),e?e[1]:NaN}function Z9(e,t){return function(n,r){for(var o=n.length,l=[],s=0,i=e[0],a=0;o>0&&i>0&&(a+i+1>r&&(i=Math.max(1,r-a)),l.push(n.substring(o-=i,o+i)),!((a+=i+1)>r));)i=e[s=(s+1)%e.length];return l.reverse().join(t)}}function J9(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var e8=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Zc(e){if(!(t=e8.exec(e)))throw new Error("invalid format: "+e);var t;return new xy({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Zc.prototype=xy.prototype;function xy(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}xy.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function t8(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var JM;function n8(e,t){var n=Ff(e,t);if(!n)return e+"";var r=n[0],o=n[1],l=o-(JM=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=r.length;return l===s?r:l>s?r+new Array(l-s+1).join("0"):l>0?r.slice(0,l)+"."+r.slice(l):"0."+new Array(1-l).join("0")+Ff(e,Math.max(0,t+l-1))[0]}function zC(e,t){var n=Ff(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const BC={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Q9,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>zC(e*100,t),r:zC,s:n8,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function VC(e){return e}var UC=Array.prototype.map,WC=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function r8(e){var t=e.grouping===void 0||e.thousands===void 0?VC:Z9(UC.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",l=e.numerals===void 0?VC:J9(UC.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",i=e.minus===void 0?"−":e.minus+"",a=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Zc(d);var h=d.fill,g=d.align,m=d.sign,x=d.symbol,w=d.zero,b=d.width,y=d.comma,C=d.precision,S=d.trim,I=d.type;I==="n"?(y=!0,I="g"):BC[I]||(C===void 0&&(C=12),S=!0,I="g"),(w||h==="0"&&g==="=")&&(w=!0,h="0",g="=");var P=x==="$"?n:x==="#"&&/[boxX]/.test(I)?"0"+I.toLowerCase():"",k=x==="$"?r:/[%p]/.test(I)?s:"",$=BC[I],D=/[defgprs%]/.test(I);C=C===void 0?6:/[gprs]/.test(I)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function O(R){var L=P,_=k,M,T,j;if(I==="c")_=$(R)+_,R="";else{R=+R;var A=R<0||1/R<0;if(R=isNaN(R)?a:$(Math.abs(R),C),S&&(R=t8(R)),A&&+R==0&&m!=="+"&&(A=!1),L=(A?m==="("?m:i:m==="-"||m==="("?"":m)+L,_=(I==="s"?WC[8+JM/3]:"")+_+(A&&m==="("?")":""),D){for(M=-1,T=R.length;++M<T;)if(j=R.charCodeAt(M),48>j||j>57){_=(j===46?o+R.slice(M+1):R.slice(M))+_,R=R.slice(0,M);break}}}y&&!w&&(R=t(R,1/0));var E=L.length+R.length+_.length,F=E<b?new Array(b-E+1).join(h):"";switch(y&&w&&(R=t(F+R,F.length?b-_.length:1/0),F=""),g){case"<":R=L+R+_+F;break;case"=":R=L+F+R+_;break;case"^":R=F.slice(0,E=F.length>>1)+L+R+_+F.slice(E);break;default:R=F+L+R+_;break}return l(R)}return O.toString=function(){return d+""},O}function u(d,h){var g=c((d=Zc(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(la(h)/3)))*3,x=Math.pow(10,-m),w=WC[8+m/3];return function(b){return g(x*b)+w}}return{format:c,formatPrefix:u}}var fd,by,eI;o8({thousands:",",grouping:[3],currency:["$",""]});function o8(e){return fd=r8(e),by=fd.format,eI=fd.formatPrefix,fd}function l8(e){return Math.max(0,-la(Math.abs(e)))}function s8(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(la(t)/3)))*3-la(Math.abs(e)))}function i8(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,la(t)-la(e))+1}function a8(e,t,n,r){var o=uv(e,t,n),l;switch(r=Zc(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(l=s8(o,s))&&(r.precision=l),eI(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(l=i8(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=l-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(l=l8(o))&&(r.precision=l-(r.type==="%")*2);break}}return by(r)}function tI(e){var t=e.domain;return e.ticks=function(n){var r=t();return av(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return a8(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,l=r.length-1,s=r[o],i=r[l],a,c,u=10;for(i<s&&(c=s,s=i,i=c,c=o,o=l,l=c);u-- >0;){if(c=cv(s,i,n),c===a)return r[o]=s,r[l]=i,t(r);if(c>0)s=Math.floor(s/c)*c,i=Math.ceil(i/c)*c;else if(c<0)s=Math.ceil(s*c)/c,i=Math.floor(i*c)/c;else break;a=c}return e},e}function nI(){var e=ZM();return e.copy=function(){return mh(e,nI())},Ns.apply(e,arguments),tI(e)}function rI(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],l=e[r],s;return l<o&&(s=n,n=r,r=s,s=o,o=l,l=s),e[n]=t.floor(o),e[r]=t.ceil(l),e}function GC(e){return Math.log(e)}function KC(e){return Math.exp(e)}function c8(e){return-Math.log(-e)}function u8(e){return-Math.exp(-e)}function d8(e){return isFinite(e)?+("1e"+e):e<0?0:e}function f8(e){return e===10?d8:e===Math.E?Math.exp:t=>Math.pow(e,t)}function p8(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function qC(e){return(t,n)=>-e(-t,n)}function h8(e){const t=e(GC,KC),n=t.domain;let r=10,o,l;function s(){return o=p8(r),l=f8(r),n()[0]<0?(o=qC(o),l=qC(l),e(c8,u8)):e(GC,KC),t}return t.base=function(i){return arguments.length?(r=+i,s()):r},t.domain=function(i){return arguments.length?(n(i),s()):n()},t.ticks=i=>{const a=n();let c=a[0],u=a[a.length-1];const d=u<c;d&&([c,u]=[u,c]);let h=o(c),g=o(u),m,x;const w=i==null?10:+i;let b=[];if(!(r%1)&&g-h<w){if(h=Math.floor(h),g=Math.ceil(g),c>0){for(;h<=g;++h)for(m=1;m<r;++m)if(x=h<0?m/l(-h):m*l(h),!(x<c)){if(x>u)break;b.push(x)}}else for(;h<=g;++h)for(m=r-1;m>=1;--m)if(x=h>0?m/l(-h):m*l(h),!(x<c)){if(x>u)break;b.push(x)}b.length*2<w&&(b=av(c,u,w))}else b=av(h,g,Math.min(g-h,w)).map(l);return d?b.reverse():b},t.tickFormat=(i,a)=>{if(i==null&&(i=10),a==null&&(a=r===10?"s":","),typeof a!="function"&&(!(r%1)&&(a=Zc(a)).precision==null&&(a.trim=!0),a=by(a)),i===1/0)return a;const c=Math.max(1,r*i/t.ticks().length);return u=>{let d=u/l(Math.round(o(u)));return d*r<r-.5&&(d*=r),d<=c?a(u):""}},t.nice=()=>n(rI(n(),{floor:i=>l(Math.floor(o(i))),ceil:i=>l(Math.ceil(o(i)))})),t}function oI(){const e=h8(yy()).domain([1,10]);return e.copy=()=>mh(e,oI()).base(e.base()),Ns.apply(e,arguments),e}function YC(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function g8(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function m8(e){return e<0?-e*e:e*e}function v8(e){var t=e(xo,xo),n=1;function r(){return n===1?e(xo,xo):n===.5?e(g8,m8):e(YC(n),YC(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},tI(t)}function Cy(){var e=v8(yy());return e.copy=function(){return mh(e,Cy()).exponent(e.exponent())},Ns.apply(e,arguments),e}function y8(){return Cy.apply(null,arguments).exponent(.5)}const Rg=new Date,Og=new Date;function Jt(e,t,n,r){function o(l){return e(l=arguments.length===0?new Date:new Date(+l)),l}return o.floor=l=>(e(l=new Date(+l)),l),o.ceil=l=>(e(l=new Date(l-1)),t(l,1),e(l),l),o.round=l=>{const s=o(l),i=o.ceil(l);return l-s<i-l?s:i},o.offset=(l,s)=>(t(l=new Date(+l),s==null?1:Math.floor(s)),l),o.range=(l,s,i)=>{const a=[];if(l=o.ceil(l),i=i==null?1:Math.floor(i),!(l<s)||!(i>0))return a;let c;do a.push(c=new Date(+l)),t(l,i),e(l);while(c<l&&l<s);return a},o.filter=l=>Jt(s=>{if(s>=s)for(;e(s),!l(s);)s.setTime(s-1)},(s,i)=>{if(s>=s)if(i<0)for(;++i<=0;)for(;t(s,-1),!l(s););else for(;--i>=0;)for(;t(s,1),!l(s););}),n&&(o.count=(l,s)=>(Rg.setTime(+l),Og.setTime(+s),e(Rg),e(Og),Math.floor(n(Rg,Og))),o.every=l=>(l=Math.floor(l),!isFinite(l)||!(l>0)?null:l>1?o.filter(r?s=>r(s)%l===0:s=>o.count(0,s)%l===0):o)),o}const jf=Jt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);jf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Jt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):jf);jf.range;const Ao=1e3,Rr=Ao*60,Lo=Rr*60,Ko=Lo*24,wy=Ko*7,XC=Ko*30,_g=Ko*365,ls=Jt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ao)},(e,t)=>(t-e)/Ao,e=>e.getUTCSeconds());ls.range;const Sy=Jt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ao)},(e,t)=>{e.setTime(+e+t*Rr)},(e,t)=>(t-e)/Rr,e=>e.getMinutes());Sy.range;const Py=Jt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Rr)},(e,t)=>(t-e)/Rr,e=>e.getUTCMinutes());Py.range;const ky=Jt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ao-e.getMinutes()*Rr)},(e,t)=>{e.setTime(+e+t*Lo)},(e,t)=>(t-e)/Lo,e=>e.getHours());ky.range;const My=Jt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Lo)},(e,t)=>(t-e)/Lo,e=>e.getUTCHours());My.range;const Tu=Jt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Rr)/Ko,e=>e.getDate()-1);Tu.range;const vh=Jt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ko,e=>e.getUTCDate()-1);vh.range;const lI=Jt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ko,e=>Math.floor(e/Ko));lI.range;function Hs(e){return Jt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Rr)/wy)}const yh=Hs(0),Df=Hs(1),x8=Hs(2),b8=Hs(3),sa=Hs(4),C8=Hs(5),w8=Hs(6);yh.range;Df.range;x8.range;b8.range;sa.range;C8.range;w8.range;function zs(e){return Jt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/wy)}const xh=zs(0),Af=zs(1),S8=zs(2),P8=zs(3),ia=zs(4),k8=zs(5),M8=zs(6);xh.range;Af.range;S8.range;P8.range;ia.range;k8.range;M8.range;const Iy=Jt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Iy.range;const $y=Jt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());$y.range;const qo=Jt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());qo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Jt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});qo.range;const Yo=Jt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Yo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Jt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Yo.range;function sI(e,t,n,r,o,l){const s=[[ls,1,Ao],[ls,5,5*Ao],[ls,15,15*Ao],[ls,30,30*Ao],[l,1,Rr],[l,5,5*Rr],[l,15,15*Rr],[l,30,30*Rr],[o,1,Lo],[o,3,3*Lo],[o,6,6*Lo],[o,12,12*Lo],[r,1,Ko],[r,2,2*Ko],[n,1,wy],[t,1,XC],[t,3,3*XC],[e,1,_g]];function i(c,u,d){const h=u<c;h&&([c,u]=[u,c]);const g=d&&typeof d.range=="function"?d:a(c,u,d),m=g?g.range(c,+u+1):[];return h?m.reverse():m}function a(c,u,d){const h=Math.abs(u-c)/d,g=hy(([,,w])=>w).right(s,h);if(g===s.length)return e.every(uv(c/_g,u/_g,d));if(g===0)return jf.every(Math.max(uv(c,u,d),1));const[m,x]=s[h/s[g-1][2]<s[g][2]/h?g-1:g];return m.every(x)}return[i,a]}const[I8,$8]=sI(Yo,$y,xh,lI,My,Py),[E8,T8]=sI(qo,Iy,yh,Tu,ky,Sy);function Fg(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function jg(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function za(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function R8(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,l=e.days,s=e.shortDays,i=e.months,a=e.shortMonths,c=Ba(o),u=Va(o),d=Ba(l),h=Va(l),g=Ba(s),m=Va(s),x=Ba(i),w=Va(i),b=Ba(a),y=Va(a),C={a:A,A:E,b:F,B:N,c:null,d:nw,e:nw,f:eU,g:uU,G:fU,H:Q8,I:Z8,j:J8,L:iI,m:tU,M:nU,p:V,q:H,Q:lw,s:sw,S:rU,u:oU,U:lU,V:sU,w:iU,W:aU,x:null,X:null,y:cU,Y:dU,Z:pU,"%":ow},S={a:Q,A:q,b:Z,B:le,c:null,d:rw,e:rw,f:vU,g:IU,G:EU,H:hU,I:gU,j:mU,L:cI,m:yU,M:xU,p:fe,q:me,Q:lw,s:sw,S:bU,u:CU,U:wU,V:SU,w:PU,W:kU,x:null,X:null,y:MU,Y:$U,Z:TU,"%":ow},I={a:O,A:R,b:L,B:_,c:M,d:ew,e:ew,f:K8,g:JC,G:ZC,H:tw,I:tw,j:V8,L:G8,m:B8,M:U8,p:D,q:z8,Q:Y8,s:X8,S:W8,u:D8,U:A8,V:L8,w:j8,W:N8,x:T,X:j,y:JC,Y:ZC,Z:H8,"%":q8};C.x=P(n,C),C.X=P(r,C),C.c=P(t,C),S.x=P(n,S),S.X=P(r,S),S.c=P(t,S);function P(Y,oe){return function(J){var U=[],ue=-1,pe=0,de=Y.length,G,se,ie;for(J instanceof Date||(J=new Date(+J));++ue<de;)Y.charCodeAt(ue)===37&&(U.push(Y.slice(pe,ue)),(se=QC[G=Y.charAt(++ue)])!=null?G=Y.charAt(++ue):se=G==="e"?" ":"0",(ie=oe[G])&&(G=ie(J,se)),U.push(G),pe=ue+1);return U.push(Y.slice(pe,ue)),U.join("")}}function k(Y,oe){return function(J){var U=za(1900,void 0,1),ue=$(U,Y,J+="",0),pe,de;if(ue!=J.length)return null;if("Q"in U)return new Date(U.Q);if("s"in U)return new Date(U.s*1e3+("L"in U?U.L:0));if(oe&&!("Z"in U)&&(U.Z=0),"p"in U&&(U.H=U.H%12+U.p*12),U.m===void 0&&(U.m="q"in U?U.q:0),"V"in U){if(U.V<1||U.V>53)return null;"w"in U||(U.w=1),"Z"in U?(pe=jg(za(U.y,0,1)),de=pe.getUTCDay(),pe=de>4||de===0?Af.ceil(pe):Af(pe),pe=vh.offset(pe,(U.V-1)*7),U.y=pe.getUTCFullYear(),U.m=pe.getUTCMonth(),U.d=pe.getUTCDate()+(U.w+6)%7):(pe=Fg(za(U.y,0,1)),de=pe.getDay(),pe=de>4||de===0?Df.ceil(pe):Df(pe),pe=Tu.offset(pe,(U.V-1)*7),U.y=pe.getFullYear(),U.m=pe.getMonth(),U.d=pe.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),de="Z"in U?jg(za(U.y,0,1)).getUTCDay():Fg(za(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(de+5)%7:U.w+U.U*7-(de+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,jg(U)):Fg(U)}}function $(Y,oe,J,U){for(var ue=0,pe=oe.length,de=J.length,G,se;ue<pe;){if(U>=de)return-1;if(G=oe.charCodeAt(ue++),G===37){if(G=oe.charAt(ue++),se=I[G in QC?oe.charAt(ue++):G],!se||(U=se(Y,J,U))<0)return-1}else if(G!=J.charCodeAt(U++))return-1}return U}function D(Y,oe,J){var U=c.exec(oe.slice(J));return U?(Y.p=u.get(U[0].toLowerCase()),J+U[0].length):-1}function O(Y,oe,J){var U=g.exec(oe.slice(J));return U?(Y.w=m.get(U[0].toLowerCase()),J+U[0].length):-1}function R(Y,oe,J){var U=d.exec(oe.slice(J));return U?(Y.w=h.get(U[0].toLowerCase()),J+U[0].length):-1}function L(Y,oe,J){var U=b.exec(oe.slice(J));return U?(Y.m=y.get(U[0].toLowerCase()),J+U[0].length):-1}function _(Y,oe,J){var U=x.exec(oe.slice(J));return U?(Y.m=w.get(U[0].toLowerCase()),J+U[0].length):-1}function M(Y,oe,J){return $(Y,t,oe,J)}function T(Y,oe,J){return $(Y,n,oe,J)}function j(Y,oe,J){return $(Y,r,oe,J)}function A(Y){return s[Y.getDay()]}function E(Y){return l[Y.getDay()]}function F(Y){return a[Y.getMonth()]}function N(Y){return i[Y.getMonth()]}function V(Y){return o[+(Y.getHours()>=12)]}function H(Y){return 1+~~(Y.getMonth()/3)}function Q(Y){return s[Y.getUTCDay()]}function q(Y){return l[Y.getUTCDay()]}function Z(Y){return a[Y.getUTCMonth()]}function le(Y){return i[Y.getUTCMonth()]}function fe(Y){return o[+(Y.getUTCHours()>=12)]}function me(Y){return 1+~~(Y.getUTCMonth()/3)}return{format:function(Y){var oe=P(Y+="",C);return oe.toString=function(){return Y},oe},parse:function(Y){var oe=k(Y+="",!1);return oe.toString=function(){return Y},oe},utcFormat:function(Y){var oe=P(Y+="",S);return oe.toString=function(){return Y},oe},utcParse:function(Y){var oe=k(Y+="",!0);return oe.toString=function(){return Y},oe}}}var QC={"-":"",_:" ",0:"0"},ln=/^\s*\d+/,O8=/^%/,_8=/[\\^$*+?|[\]().{}]/g;function rt(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",l=o.length;return r+(l<n?new Array(n-l+1).join(t)+o:o)}function F8(e){return e.replace(_8,"\\$&")}function Ba(e){return new RegExp("^(?:"+e.map(F8).join("|")+")","i")}function Va(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function j8(e,t,n){var r=ln.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function D8(e,t,n){var r=ln.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function A8(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function L8(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function N8(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ZC(e,t,n){var r=ln.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function JC(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function H8(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function z8(e,t,n){var r=ln.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function B8(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ew(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function V8(e,t,n){var r=ln.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function tw(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function U8(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function W8(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function G8(e,t,n){var r=ln.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function K8(e,t,n){var r=ln.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function q8(e,t,n){var r=O8.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Y8(e,t,n){var r=ln.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function X8(e,t,n){var r=ln.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function nw(e,t){return rt(e.getDate(),t,2)}function Q8(e,t){return rt(e.getHours(),t,2)}function Z8(e,t){return rt(e.getHours()%12||12,t,2)}function J8(e,t){return rt(1+Tu.count(qo(e),e),t,3)}function iI(e,t){return rt(e.getMilliseconds(),t,3)}function eU(e,t){return iI(e,t)+"000"}function tU(e,t){return rt(e.getMonth()+1,t,2)}function nU(e,t){return rt(e.getMinutes(),t,2)}function rU(e,t){return rt(e.getSeconds(),t,2)}function oU(e){var t=e.getDay();return t===0?7:t}function lU(e,t){return rt(yh.count(qo(e)-1,e),t,2)}function aI(e){var t=e.getDay();return t>=4||t===0?sa(e):sa.ceil(e)}function sU(e,t){return e=aI(e),rt(sa.count(qo(e),e)+(qo(e).getDay()===4),t,2)}function iU(e){return e.getDay()}function aU(e,t){return rt(Df.count(qo(e)-1,e),t,2)}function cU(e,t){return rt(e.getFullYear()%100,t,2)}function uU(e,t){return e=aI(e),rt(e.getFullYear()%100,t,2)}function dU(e,t){return rt(e.getFullYear()%1e4,t,4)}function fU(e,t){var n=e.getDay();return e=n>=4||n===0?sa(e):sa.ceil(e),rt(e.getFullYear()%1e4,t,4)}function pU(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rt(t/60|0,"0",2)+rt(t%60,"0",2)}function rw(e,t){return rt(e.getUTCDate(),t,2)}function hU(e,t){return rt(e.getUTCHours(),t,2)}function gU(e,t){return rt(e.getUTCHours()%12||12,t,2)}function mU(e,t){return rt(1+vh.count(Yo(e),e),t,3)}function cI(e,t){return rt(e.getUTCMilliseconds(),t,3)}function vU(e,t){return cI(e,t)+"000"}function yU(e,t){return rt(e.getUTCMonth()+1,t,2)}function xU(e,t){return rt(e.getUTCMinutes(),t,2)}function bU(e,t){return rt(e.getUTCSeconds(),t,2)}function CU(e){var t=e.getUTCDay();return t===0?7:t}function wU(e,t){return rt(xh.count(Yo(e)-1,e),t,2)}function uI(e){var t=e.getUTCDay();return t>=4||t===0?ia(e):ia.ceil(e)}function SU(e,t){return e=uI(e),rt(ia.count(Yo(e),e)+(Yo(e).getUTCDay()===4),t,2)}function PU(e){return e.getUTCDay()}function kU(e,t){return rt(Af.count(Yo(e)-1,e),t,2)}function MU(e,t){return rt(e.getUTCFullYear()%100,t,2)}function IU(e,t){return e=uI(e),rt(e.getUTCFullYear()%100,t,2)}function $U(e,t){return rt(e.getUTCFullYear()%1e4,t,4)}function EU(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ia(e):ia.ceil(e),rt(e.getUTCFullYear()%1e4,t,4)}function TU(){return"+0000"}function ow(){return"%"}function lw(e){return+e}function sw(e){return Math.floor(+e/1e3)}var Js,dI,fI;RU({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function RU(e){return Js=R8(e),dI=Js.format,Js.parse,fI=Js.utcFormat,Js.utcParse,Js}function OU(e){return new Date(e)}function _U(e){return e instanceof Date?+e:+new Date(+e)}function Ey(e,t,n,r,o,l,s,i,a,c){var u=ZM(),d=u.invert,h=u.domain,g=c(".%L"),m=c(":%S"),x=c("%I:%M"),w=c("%I %p"),b=c("%a %d"),y=c("%b %d"),C=c("%B"),S=c("%Y");function I(P){return(a(P)<P?g:i(P)<P?m:s(P)<P?x:l(P)<P?w:r(P)<P?o(P)<P?b:y:n(P)<P?C:S)(P)}return u.invert=function(P){return new Date(d(P))},u.domain=function(P){return arguments.length?h(Array.from(P,_U)):h().map(OU)},u.ticks=function(P){var k=h();return e(k[0],k[k.length-1],P??10)},u.tickFormat=function(P,k){return k==null?I:c(k)},u.nice=function(P){var k=h();return(!P||typeof P.range!="function")&&(P=t(k[0],k[k.length-1],P??10)),P?h(rI(k,P)):u},u.copy=function(){return mh(u,Ey(e,t,n,r,o,l,s,i,a,c))},u}function FU(){return Ns.apply(Ey(E8,T8,qo,Iy,yh,Tu,ky,Sy,ls,dI).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function jU(){return Ns.apply(Ey(I8,$8,Yo,$y,xh,vh,My,Py,ls,fI).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const pI=e=>{var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),l=Math.max(...(n=r.data)!=null?n:[]);return[o,l]},hI=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,l)=>{const[s,i]=t[l].stackedData.reduce((a,c)=>[Math.min(...c,...a[0]===null?[]:[a[0]]),Math.max(...c,...a[1]===null?[]:[a[1]])],t[l].stackedData[0]);return[o[0]===null?s:Math.min(s,o[0]),o[1]===null?i:Math.max(i,o[1])]},[null,null])},DU=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?hI(e):pI(e),AU=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?pI(e):hI(e),Lf=(e,t)=>e[0]===null||e[1]===null?t:t[0]===null||t[1]===null?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])],LU=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].xAxisKey===n.id||t[o].xAxisKey===void 0&&r).reduce((o,l)=>{const s=t[l].data.reduce((i,{x:a})=>Lf(i,[a,a]),[null,null]);return Lf(o,s)},[null,null])},NU=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||t[o].yAxisKey===void 0&&r).reduce((o,l)=>{const s=t[l].data.reduce((i,{y:a})=>Lf(i,[a,a]),[null,null]);return Lf(o,s)},[null,null])},HU=e=>{var t,n;const{axis:r}=e,o=Math.min(...(t=r.data)!=null?t:[]),l=Math.max(...(n=r.data)!=null?n:[]);return[o,l]};function zU(e,t){return t.length===0?[null,null]:t.reduce((n,r)=>{const[o,l]=e(r);return n[0]===null?[Math.min(o,l),Math.max(o,l)]:[Math.min(o,l,n[0]),Math.max(o,l,n[1])]},e(t[0]))}const BU=e=>{const{series:t,axis:n,isDefaultAxis:r}=e;return Object.keys(t).filter(o=>t[o].yAxisKey===n.id||r&&t[o].yAxisKey===void 0).reduce((o,l)=>{const{area:s,stackedData:i}=t[l],u=zU(s!==void 0?g=>g:g=>[g[1],g[1]],i);if(o[0]===null)return u;if(u[0]===null)return o;const[d,h]=u;return[Math.min(d,o[0]),Math.max(h,o[1])]},[null,null])};function iw(e){return e.scaleType==="band"}function aw(e){return e.scaleType==="point"}function cw(e,t,n){switch(e){case"log":return oI(t,n);case"pow":return Cy(t,n);case"sqrt":return y8(t,n);case"time":return FU(t,n);case"utc":return jU(t,n);default:return nI(t,n)}}const Jc="DEFAULT_X_AXIS_KEY",uw="DEFAULT_Y_AXIS_KEY",VU={top:50,bottom:50,left:50,right:50},UU=(e,t,n)=>{const r=v({},VU,n);return f.useMemo(()=>({left:r.left,top:r.top,right:r.right,bottom:r.bottom,width:Math.max(0,e-r.left-r.right),height:Math.max(0,t-r.top-r.bottom)}),[e,t,r.top,r.bottom,r.left,r.right])},Bs=f.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400}),Ty=f.createContext({current:null});function WU(e){const{width:t,height:n,margin:r,svgRef:o,children:l}=e,s=UU(t,n,r);return p.jsx(Ty.Provider,{value:o,children:p.jsx(Bs.Provider,{value:s,children:l})})}function eu(e){return e.bandwidth!==void 0}function dw(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:l}=e,s=n===void 0?999:Math.floor(Math.abs(l[1]-l[0])/n),i=t===void 0?2:Math.ceil(Math.abs(l[1]-l[0])/t),a=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(s,Math.max(i,a))}function gI(e){const{scale:t,tickNumber:n,valueFormatter:r,tickInterval:o}=e;return f.useMemo(()=>{if(eu(t)){const s=t.domain();return t.bandwidth()>0?[...s.map(a=>{var c;return{value:a,formattedValue:(c=r==null?void 0:r(a))!=null?c:`${a}`,offset:t(a)-(t.step()-t.bandwidth())/2,labelOffset:t.step()/2}}),{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:(typeof o=="function"&&s.filter(o)||typeof o=="object"&&o||s).map(a=>{var c;return{value:a,formattedValue:(c=r==null?void 0:r(a))!=null?c:`${a}`,offset:t(a),labelOffset:0}})}return(typeof o=="object"?o:t.ticks(n)).map(s=>{var i;return{value:s,formattedValue:(i=r==null?void 0:r(s))!=null?i:t.tickFormat(n)(s),offset:t(s),labelOffset:0}})},[n,t,r,o])}const fw=.2,GU=.1,KU={bar:DU,scatter:LU,line:HU},qU={bar:AU,scatter:NU,line:BU},dr=f.createContext({xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]});function YU(e){const{xAxis:t,yAxis:n,dataset:r,children:o}=e,l=f.useContext(Jo),s=f.useContext(Bs),i=f.useMemo(()=>t==null?void 0:t.map(u=>{const d=u.dataKey;if(d===void 0||u.data!==void 0)return u;if(r===void 0)throw Error("MUI-X-Charts: x-axis uses `dataKey` but no `dataset` is provided.");return v({},u,{data:r.map(h=>h[d])})}),[t,r]),a=f.useMemo(()=>n==null?void 0:n.map(u=>{const d=u.dataKey;if(d===void 0||u.data!==void 0)return u;if(r===void 0)throw Error("MUI-X-Charts: y-axis uses `dataKey` but no `dataset` is provided.");return v({},u,{data:r.map(h=>h[d])})}),[n,r]),c=f.useMemo(()=>{var u,d;const h=(y,C,S,I,P)=>{var k,$;const D=I[C],O=(k=($=l[C])==null?void 0:$.series)!=null?k:{},[R,L]=D({series:O,axis:S,isDefaultAxis:P}),[_,M]=y;return _===null||M===null?[R,L]:R===null||L===null?[_,M]:[Math.min(R,_),Math.max(L,M)]},g=(y,C,S)=>Object.keys(C).reduce((P,k)=>h(P,k,y,C,S),[null,null]),m=[...(u=i==null?void 0:i.map((y,C)=>v({id:`deaultized-x-axis-${C}`},y)))!=null?u:[],...i===void 0||i.findIndex(({id:y})=>y===Jc)===-1?[{id:Jc,scaleType:"linear"}]:[]],x={};m.forEach((y,C)=>{var S,I,P,k,$;const D=C===0,[O,R]=g(y,KU,D),L=y.reverse?[s.left+s.width,s.left]:[s.left,s.left+s.width];if(iw(y)){var _,M;const V=(_=y.categoryGapRatio)!=null?_:fw,H=(M=y.barGapRatio)!=null?M:GU;x[y.id]=v({categoryGapRatio:V,barGapRatio:H},y,{scale:Tf(y.data,L).paddingInner(V).paddingOuter(V/2),tickNumber:y.data.length})}if(aw(y)&&(x[y.id]=v({},y,{scale:TC(y.data,L),tickNumber:y.data.length})),y.scaleType==="band"||y.scaleType==="point")return;const T=(S=y.scaleType)!=null?S:"linear",j=[(I=y.min)!=null?I:O,(P=y.max)!=null?P:R],A=dw(v({},y,{range:L,domain:j})),E=cw(T,j,L).nice(A),F=E.domain(),N=[(k=y.min)!=null?k:F[0],($=y.max)!=null?$:F[1]];x[y.id]=v({},y,{scaleType:T,scale:E.domain(N),tickNumber:A})});const w=[...(d=a==null?void 0:a.map((y,C)=>v({id:`deaultized-y-axis-${C}`},y)))!=null?d:[],...a===void 0||a.findIndex(({id:y})=>y===uw)===-1?[{id:uw,scaleType:"linear"}]:[]],b={};return w.forEach((y,C)=>{var S,I,P,k,$;const D=C===0,[O,R]=g(y,qU,D),L=y.reverse?[s.top,s.top+s.height]:[s.top+s.height,s.top];if(iw(y)){var _;const N=(_=y.categoryGapRatio)!=null?_:fw;b[y.id]=v({categoryGapRatio:N,barGapRatio:0},y,{scale:Tf(y.data,[L[1],L[0]]).paddingInner(N).paddingOuter(N/2),tickNumber:y.data.length})}if(aw(y)&&(b[y.id]=v({},y,{scale:TC(y.data,[L[1],L[0]]),tickNumber:y.data.length})),y.scaleType==="band"||y.scaleType==="point")return;const M=(S=y.scaleType)!=null?S:"linear",T=[(I=y.min)!=null?I:O,(P=y.max)!=null?P:R],j=dw(v({},y,{range:L,domain:T})),A=cw(M,T,L).nice(j),E=A.domain(),F=[(k=y.min)!=null?k:E[0],($=y.max)!=null?$:E[1]];b[y.id]=v({},y,{scaleType:M,scale:A.domain(F),tickNumber:j})}),{xAxis:x,yAxis:b,xAxisIds:m.map(({id:y})=>y),yAxisIds:w.map(({id:y})=>y)}},[s.height,s.left,s.top,s.width,l,i,a]);return p.jsx(dr.Provider,{value:c,children:o})}const el=f.createContext({item:null,axis:{x:null,y:null},dispatch:()=>null}),XU=(e,t)=>{switch(t.type){case"enterItem":return v({},e,{item:t.data});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:v({},e,{item:null});case"updateAxis":return v({},e,{axis:t.data});default:return e}};function QU(e){const{children:t}=e,[n,r]=f.useReducer(XU,{item:null,axis:{x:null,y:null}}),o=f.useMemo(()=>v({},n,{dispatch:r}),[n]);return p.jsx(el.Provider,{value:o,children:t})}const Ry={highlighted:"none",faded:"none"},mI=f.createContext({item:null,scope:Ry,dispatch:()=>null}),ZU=(e,t)=>{switch(t.type){case"enterItem":return v({},e,{item:t.item,scope:v({},Ry,t.scope)});case"leaveItem":return e.item===null||Object.keys(t.item).some(n=>t.item[n]!==e.item[n])?e:v({},e,{item:null});default:return e}};function JU(e){const{children:t}=e,[n,r]=f.useReducer(ZU,{item:null,scope:Ry}),o=f.useMemo(()=>v({},n,{dispatch:r}),[n]);return p.jsx(mI.Provider,{value:o,children:t})}const Oy=e=>{const{dispatch:t}=f.useContext(el),{dispatch:n}=f.useContext(mI);return o=>({onMouseEnter:()=>{t({type:"enterItem",data:o}),n({type:"enterItem",item:o,scope:e})},onMouseLeave:()=>{t({type:"leaveItem",data:o}),n({type:"leaveItem",item:o})}})},_y=(e,t,n)=>{if(!(n!=null&&n.highlighted)||n.highlighted==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return r?n.highlighted==="series"?r:e.dataIndex!==void 0&&e.dataIndex===t.dataIndex:!1},Fy=(e,t,n)=>{if(!(n!=null&&n.faded)||n.faded==="none"||e===null)return!1;const r=e.type===t.type&&e.seriesId===t.seriesId;return n.faded==="series"?r&&e.dataIndex!==t.dataIndex:n.faded==="global"?r?e.dataIndex!==void 0&&e.dataIndex!==t.dataIndex:!0:!1},e7=["id","classes","color","highlightScope","slots","slotProps"];function t7(e){return Ie("MuiAreaElement",e)}Me("MuiAreaElement",["root","highlighted","faded"]);const n7=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,l={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return ae(l,t7,t)},vI=X("path",{name:"MuiAreaElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({stroke:"none",fill:e.isHighlighted?Nl(e.color).brighter(1).formatHex():Nl(e.color).brighter(.5).formatHex(),transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:e.isFaded?.3:1}));vI.propTypes={as:B.elementType,ownerState:B.shape({classes:B.object,color:B.string.isRequired,id:B.string.isRequired,isFaded:B.bool.isRequired,isHighlighted:B.bool.isRequired}).isRequired,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object])};function r7(e){var t;const{id:n,classes:r,color:o,highlightScope:l,slots:s,slotProps:i}=e,a=W(e,e7),c=Oy(l),{item:u}=f.useContext(el),d=_y(u,{type:"line",seriesId:n},l),h=!d&&Fy(u,{type:"line",seriesId:n},l),g={id:n,classes:r,color:o,isFaded:h,isHighlighted:d},m=n7(g),x=(t=s==null?void 0:s.area)!=null?t:vI,w=Qt({elementType:x,externalSlotProps:i==null?void 0:i.area,additionalProps:v({},a,c({type:"line",seriesId:n}),{className:m.root}),ownerState:g});return p.jsx(x,v({},w))}function aa(e){return eu(e)?t=>e(t)+e.bandwidth()/2:t=>e(t)}function yI(e){switch(e){case"catmullRom":return OV.alpha(.5);case"linear":return dy;case"monotoneX":return kC;case"monotoneY":return _V;case"natural":return FV;case"step":return jV;case"stepBefore":return DV;case"stepAfter":return AV;default:return kC}}const o7=["slots","slotProps"];function l7(e){const{slots:t,slotProps:n}=e,r=W(e,o7),o=f.useContext(Jo).line,l=f.useContext(dr);if(o===void 0)return null;const{series:s,stackingGroups:i}=o,{xAxis:a,yAxis:c,xAxisIds:u,yAxisIds:d}=l,h=u[0],g=d[0];return p.jsx("g",v({},r,{children:i.flatMap(({ids:m})=>m.flatMap(x=>{var w;const{xAxisKey:b=h,yAxisKey:y=g,stackedData:C,data:S,connectNulls:I}=s[x],P=aa(a[b].scale),k=c[y].scale,$=a[b].data,D=hV().x(_=>P(_.x)).defined((_,M)=>I||S[M]!=null).y0(_=>_.y&&k(_.y[0])).y1(_=>_.y&&k(_.y[1])),O=yI(s[x].curve),R=(w=$==null?void 0:$.map((_,M)=>({x:_,y:C[M]})))!=null?w:[],L=I?R.filter((_,M)=>S[M]!=null):R;return!!s[x].area&&p.jsx(r7,{id:x,d:D.curve(O)(L)||void 0,color:s[x].color,highlightScope:s[x].highlightScope,slots:t,slotProps:n},x)}))}))}const s7=["id","classes","color","highlightScope","slots","slotProps"];function i7(e){return Ie("MuiLineElement",e)}Me("MuiLineElement",["root","highlighted","faded"]);const a7=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,l={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return ae(l,i7,t)},xI=X("path",{name:"MuiLineElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:e.isHighlighted?Nl(e.color).brighter(.5).formatHex():e.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:e.isFaded?.3:1}));xI.propTypes={as:B.elementType,ownerState:B.shape({classes:B.object,color:B.string.isRequired,id:B.string.isRequired,isFaded:B.bool.isRequired,isHighlighted:B.bool.isRequired}).isRequired,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object])};function c7(e){var t;const{id:n,classes:r,color:o,highlightScope:l,slots:s,slotProps:i}=e,a=W(e,s7),c=Oy(l),{item:u}=f.useContext(el),d=_y(u,{type:"line",seriesId:n},l),h=!d&&Fy(u,{type:"line",seriesId:n},l),g={id:n,classes:r,color:o,isFaded:h,isHighlighted:d},m=a7(g),x=(t=s==null?void 0:s.line)!=null?t:xI,w=Qt({elementType:x,externalSlotProps:i==null?void 0:i.line,additionalProps:v({},a,c({type:"line",seriesId:n}),{className:m.root}),ownerState:g});return p.jsx(x,v({},w))}const u7=["slots","slotProps"];function d7(e){const{slots:t,slotProps:n}=e,r=W(e,u7),o=f.useContext(Jo).line,l=f.useContext(dr);if(o===void 0)return null;const{series:s,stackingGroups:i}=o,{xAxis:a,yAxis:c,xAxisIds:u,yAxisIds:d}=l,h=u[0],g=d[0];return p.jsx("g",v({},r,{children:i.flatMap(({ids:m})=>m.flatMap(x=>{var w;const{xAxisKey:b=h,yAxisKey:y=g,stackedData:C,data:S,connectNulls:I}=s[x],P=aa(a[b].scale),k=c[y].scale,$=a[b].data,D=FM().x(_=>P(_.x)).defined((_,M)=>I||S[M]!=null).y(_=>k(_.y[1])),O=yI(s[x].curve),R=(w=$==null?void 0:$.map((_,M)=>({x:_,y:C[M]})))!=null?w:[],L=I?R.filter((_,M)=>S[M]!=null):R;return p.jsx(c7,{id:x,d:D.curve(O)(L)||void 0,color:s[x].color,highlightScope:s[x].highlightScope,slots:t,slotProps:n},x)}))}))}var f7=Object.defineProperty,p7=(e,t)=>{for(var n in t)f7(e,n,{get:t[n],enumerable:!0})},$s={};p7($s,{assign:()=>y7,colors:()=>jl,createStringInterpolator:()=>zy,skipAnimation:()=>MI,to:()=>kI,willAdvance:()=>By});var jy=Ou(),Je=e=>Ru(e,jy),Dy=Ou();Je.write=e=>Ru(e,Dy);var bh=Ou();Je.onStart=e=>Ru(e,bh);var Ay=Ou();Je.onFrame=e=>Ru(e,Ay);var Ly=Ou();Je.onFinish=e=>Ru(e,Ly);var _i=[];Je.setTimeout=(e,t)=>{const n=Je.now()+t,r=()=>{const l=_i.findIndex(s=>s.cancel==r);~l&&_i.splice(l,1),Sl-=~l?1:0},o={time:n,handler:e,cancel:r};return _i.splice(bI(n),0,o),Sl+=1,CI(),o};var bI=e=>~(~_i.findIndex(t=>t.time>e)||~_i.length);Je.cancel=e=>{bh.delete(e),Ay.delete(e),Ly.delete(e),jy.delete(e),Dy.delete(e)};Je.sync=e=>{hv=!0,Je.batchedUpdates(e),hv=!1};Je.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,Je.onStart(n)}return r.handler=e,r.cancel=()=>{bh.delete(n),t=null},r};var Ny=typeof window<"u"?window.requestAnimationFrame:()=>{};Je.use=e=>Ny=e;Je.now=typeof performance<"u"?()=>performance.now():Date.now;Je.batchedUpdates=e=>e();Je.catch=console.error;Je.frameLoop="always";Je.advance=()=>{Je.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):SI()};var wl=-1,Sl=0,hv=!1;function Ru(e,t){hv?(t.delete(e),e(0)):(t.add(e),CI())}function CI(){wl<0&&(wl=0,Je.frameLoop!=="demand"&&Ny(wI))}function h7(){wl=-1}function wI(){~wl&&(Ny(wI),Je.batchedUpdates(SI))}function SI(){const e=wl;wl=Je.now();const t=bI(wl);if(t&&(PI(_i.splice(0,t),n=>n.handler()),Sl-=t),!Sl){h7();return}bh.flush(),jy.flush(e?Math.min(64,wl-e):16.667),Ay.flush(),Dy.flush(),Ly.flush()}function Ou(){let e=new Set,t=e;return{add(n){Sl+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Sl-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Sl-=t.size,PI(t,r=>r(n)&&e.add(r)),Sl+=e.size,t=e)}}}function PI(e,t){e.forEach(n=>{try{t(n)}catch(r){Je.catch(r)}})}function g7(){}var m7=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ht={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function v7(e,t){if(ht.arr(e)){if(!ht.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Nn=(e,t)=>e.forEach(t);function Nf(e,t,n){if(ht.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var tc=e=>ht.und(e)?[]:ht.arr(e)?e:[e],Hy=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),zy,kI,jl=null,MI=!1,By=g7,y7=e=>{e.to&&(kI=e.to),e.now&&(Je.now=e.now),e.colors!==void 0&&(jl=e.colors),e.skipAnimation!=null&&(MI=e.skipAnimation),e.createStringInterpolator&&(zy=e.createStringInterpolator),e.requestAnimationFrame&&Je.use(e.requestAnimationFrame),e.batchedUpdates&&(Je.batchedUpdates=e.batchedUpdates),e.willAdvance&&(By=e.willAdvance),e.frameLoop&&(Je.frameLoop=e.frameLoop)},xc=new Set,Er=[],Dg=[],Hf=0,Vy={get idle(){return!xc.size&&!Er.length},start(e){Hf>e.priority?(xc.add(e),Je.onStart(x7)):(II(e),Je(gv))},advance:gv,sort(e){if(Hf)Je.onFrame(()=>Vy.sort(e));else{const t=Er.indexOf(e);~t&&(Er.splice(t,1),$I(e))}},clear(){Er=[],xc.clear()}};function x7(){xc.forEach(II),xc.clear(),Je(gv)}function II(e){Er.includes(e)||$I(e)}function $I(e){Er.splice(b7(Er,t=>t.priority>e.priority),0,e)}function gv(e){const t=Dg;for(let n=0;n<Er.length;n++){const r=Er[n];Hf=r.priority,r.idle||(By(r),r.advance(e),r.idle||t.push(r))}return Hf=0,Dg=Er,Dg.length=0,Er=t,Er.length>0}function b7(e,t){const n=e.findIndex(t);return n<0?e.length:n}var C7={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Qr="[-+]?\\d*\\.?\\d+",zf=Qr+"%";function Ch(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var w7=new RegExp("rgb"+Ch(Qr,Qr,Qr)),S7=new RegExp("rgba"+Ch(Qr,Qr,Qr,Qr)),P7=new RegExp("hsl"+Ch(Qr,zf,zf)),k7=new RegExp("hsla"+Ch(Qr,zf,zf,Qr)),M7=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,I7=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,$7=/^#([0-9a-fA-F]{6})$/,E7=/^#([0-9a-fA-F]{8})$/;function T7(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=$7.exec(e))?parseInt(t[1]+"ff",16)>>>0:jl&&jl[e]!==void 0?jl[e]:(t=w7.exec(e))?(ei(t[1])<<24|ei(t[2])<<16|ei(t[3])<<8|255)>>>0:(t=S7.exec(e))?(ei(t[1])<<24|ei(t[2])<<16|ei(t[3])<<8|gw(t[4]))>>>0:(t=M7.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=E7.exec(e))?parseInt(t[1],16)>>>0:(t=I7.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=P7.exec(e))?(pw(hw(t[1]),pd(t[2]),pd(t[3]))|255)>>>0:(t=k7.exec(e))?(pw(hw(t[1]),pd(t[2]),pd(t[3]))|gw(t[4]))>>>0:null}function Ag(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function pw(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,l=Ag(o,r,e+1/3),s=Ag(o,r,e),i=Ag(o,r,e-1/3);return Math.round(l*255)<<24|Math.round(s*255)<<16|Math.round(i*255)<<8}function ei(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function hw(e){return(parseFloat(e)%360+360)%360/360}function gw(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function pd(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function mw(e){let t=T7(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,l=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${l})`}var tu=(e,t,n)=>{if(ht.fun(e))return e;if(ht.arr(e))return tu({range:e,output:t,extrapolate:n});if(ht.str(e.output[0]))return zy(e);const r=e,o=r.output,l=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",i=r.extrapolateRight||r.extrapolate||"extend",a=r.easing||(c=>c);return c=>{const u=O7(c,l);return R7(c,l[u],l[u+1],o[u],o[u+1],a,s,i,r.map)}};function R7(e,t,n,r,o,l,s,i,a){let c=a?a(e):e;if(c<t){if(s==="identity")return c;s==="clamp"&&(c=t)}if(c>n){if(i==="identity")return c;i==="clamp"&&(c=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=l(c),r===-1/0?c=-c:o===1/0?c=c+r:c=c*(o-r)+r,c)}function O7(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var nu=Symbol.for("FluidValue.get"),ru=Symbol.for("FluidValue.observers"),ca=e=>!!(e&&e[nu]),ua=e=>e&&e[nu]?e[nu]():e;function _7(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Bf(e,t){const n=e[ru];n&&n.forEach(r=>{_7(r,t)})}var EI=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");F7(this,e)}},F7=(e,t)=>TI(e,nu,t);function Uy(e,t){if(e[nu]){let n=e[ru];n||TI(e,ru,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Vf(e,t){const n=e[ru];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ru]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var TI=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Hd=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,j7=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,vw=new RegExp(`(${Hd.source})(%|[a-z]+)`,"i"),D7=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,wh=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,RI=e=>{const[t,n]=A7(e);if(!t||Hy())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&wh.test(n))return RI(n);if(n)return n}return e},A7=e=>{const t=wh.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Lg,L7=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,OI=e=>{Lg||(Lg=jl?new RegExp(`(${Object.keys(jl).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(l=>ua(l).replace(wh,RI).replace(j7,mw).replace(Lg,mw)),n=t.map(l=>l.match(Hd).map(Number)),o=n[0].map((l,s)=>n.map(i=>{if(!(s in i))throw Error('The arity of each "output" value must be equal');return i[s]})).map(l=>tu({...e,output:l}));return l=>{var a;const s=!vw.test(t[0])&&((a=t.find(c=>vw.test(c)))==null?void 0:a.replace(Hd,""));let i=0;return t[0].replace(Hd,()=>`${o[i++](l)}${s||""}`).replace(D7,L7)}},_I="react-spring: ",FI=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${_I}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},N7=FI(console.warn);function H7(){N7(`${_I}The "interpolate" function is deprecated in v9 (use "to" instead)`)}FI(console.warn);function jI(e){return ht.str(e)&&(e[0]=="#"||/\d/.test(e)||!Hy()&&wh.test(e)||e in(jl||{}))}var Wy=Hy()?f.useEffect:f.useLayoutEffect,z7=()=>{const e=f.useRef(!1);return Wy(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function B7(){const e=f.useState()[1],t=z7();return()=>{t.current&&e(Math.random())}}function V7(e,t){const[n]=f.useState(()=>({inputs:t,result:e()})),r=f.useRef(),o=r.current;let l=o;return l?t&&l.inputs&&U7(t,l.inputs)||(l={inputs:t,result:e()}):l=n,f.useEffect(()=>{r.current=l,o==n&&(n.inputs=n.result=void 0)},[l]),l.result}function U7(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var W7=e=>f.useEffect(e,G7),G7=[],ou=Symbol.for("Animated:node"),K7=e=>!!e&&e[ou]===e,Gy=e=>e&&e[ou],DI=(e,t)=>m7(e,ou,t),Ky=e=>e&&e[ou]&&e[ou].getPayload(),AI=class{constructor(){DI(this,this)}getPayload(){return this.payload||[]}},Sh=class extends AI{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ht.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Sh(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ht.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,ht.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},qy=class extends Sh{constructor(e){super(0),this._string=null,this._toString=tu({output:[e,e]})}static create(e){return new qy(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(ht.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=tu({output:[this.getValue(),e]})),this._value=0,super.reset()}},Uf={dependencies:null},Ph=class extends AI{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Nf(this.source,(n,r)=>{K7(n)?t[r]=n.getValue(e):ca(n)?t[r]=ua(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Nn(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Nf(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Uf.dependencies&&ca(e)&&Uf.dependencies.add(e);const t=Ky(e);t&&Nn(t,n=>this.add(n))}},LI=class extends Ph{constructor(e){super(e)}static create(e){return new LI(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(q7)),!0)}};function q7(e){return(jI(e)?qy:Sh).create(e)}function Y7(e){const t=Gy(e);return t?t.constructor:ht.arr(e)?LI:jI(e)?qy:Sh}var yw=(e,t)=>{const n=!ht.fun(e)||e.prototype&&e.prototype.isReactComponent;return f.forwardRef((r,o)=>{const l=f.useRef(null),s=n&&f.useCallback(m=>{l.current=Z7(o,m)},[o]),[i,a]=Q7(r,t),c=B7(),u=()=>{const m=l.current;if(n&&!m)return;(m?t.applyAnimatedValues(m,i.getValue(!0)):!1)===!1&&c()},d=new X7(u,a),h=f.useRef();Wy(()=>(h.current=d,Nn(a,m=>Uy(m,d)),()=>{h.current&&(Nn(h.current.deps,m=>Vf(m,h.current)),Je.cancel(h.current.update))})),f.useEffect(u,[]),W7(()=>()=>{const m=h.current;Nn(m.deps,x=>Vf(x,m))});const g=t.getComponentProps(i.getValue());return f.createElement(e,{...g,ref:s})})},X7=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Je.write(this.update)}};function Q7(e,t){const n=new Set;return Uf.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Ph(e),Uf.dependencies=null,[e,n]}function Z7(e,t){return e&&(ht.fun(e)?e(t):e.current=t),t}var xw=Symbol.for("AnimatedComponent"),J7=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new Ph(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},l=s=>{const i=bw(s)||"Anonymous";return ht.str(s)?s=l[s]||(l[s]=yw(s,o)):s=s[xw]||(s[xw]=yw(s,o)),s.displayName=`Animated(${i})`,s};return Nf(e,(s,i)=>{ht.arr(e)&&(i=bw(s)),l[i]=l(s)}),{animated:l}},bw=e=>ht.str(e)?e:e&&ht.str(e.displayName)?e.displayName:ht.fun(e)&&e.name||null,Cw=e=>e instanceof NI,eW=1,NI=class extends EI{constructor(){super(...arguments),this.id=eW++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Gy(this);return e&&e.getValue()}to(...e){return $s.to(this,e)}interpolate(...e){return H7(),$s.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Bf(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Vy.sort(this),Bf(this,{type:"priority",parent:this,priority:e})}},Yy=({children:e,...t})=>{const n=f.useContext(Wf),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=V7(()=>({pause:r,immediate:o}),[r,o]);const{Provider:l}=Wf;return f.createElement(l,{value:t},e)},Wf=tW(Yy,{});Yy.Provider=Wf.Provider;Yy.Consumer=Wf.Consumer;function tW(e,t){return Object.assign(e,f.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var nW=class extends NI{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=tu(...t);const n=this._get(),r=Y7(n);DI(this,r.create(n))}advance(e){const t=this._get(),n=this.get();v7(t,n)||(Gy(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ww(this._active)&&Ng(this)}_get(){const e=ht.arr(this.source)?this.source.map(ua):tc(ua(this.source));return this.calc(...e)}_start(){this.idle&&!ww(this._active)&&(this.idle=!1,Nn(Ky(this),e=>{e.done=!1}),$s.skipAnimation?(Je.batchedUpdates(()=>this.advance()),Ng(this)):Vy.start(this))}_attach(){let e=1;Nn(tc(this.source),t=>{ca(t)&&Uy(t,this),Cw(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Nn(tc(this.source),e=>{ca(e)&&Vf(e,this)}),this._active.clear(),Ng(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=tc(this.source).reduce((t,n)=>Math.max(t,(Cw(n)?n.priority:0)+1),0))}};function rW(e){return e.idle!==!1}function ww(e){return!e.size||Array.from(e).every(rW)}function Ng(e){e.idle||(e.idle=!0,Nn(Ky(e),t=>{t.done=!0}),Bf(e,{type:"idle",parent:e}))}$s.assign({createStringInterpolator:OI,to:(e,t)=>new nW(e,t)});var HI=/^--/;function oW(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!HI.test(e)&&!(bc.hasOwnProperty(e)&&bc[e])?t+"px":(""+t).trim()}var Sw={};function lW(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:o,scrollTop:l,scrollLeft:s,viewBox:i,...a}=t,c=Object.values(a),u=Object.keys(a).map(d=>n||e.hasAttribute(d)?d:Sw[d]||(Sw[d]=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));o!==void 0&&(e.textContent=o);for(const d in r)if(r.hasOwnProperty(d)){const h=oW(d,r[d]);HI.test(d)?e.style.setProperty(d,h):e.style[d]=h}u.forEach((d,h)=>{e.setAttribute(d,c[h])}),l!==void 0&&(e.scrollTop=l),s!==void 0&&(e.scrollLeft=s),i!==void 0&&e.setAttribute("viewBox",i)}var bc={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,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},sW=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),iW=["Webkit","Ms","Moz","O"];bc=Object.keys(bc).reduce((e,t)=>(iW.forEach(n=>e[sW(n,t)]=e[t]),e),bc);var aW=/^(matrix|translate|scale|rotate|skew)/,cW=/^(translate)/,uW=/^(rotate|skew)/,Hg=(e,t)=>ht.num(e)&&e!==0?e+t:e,zd=(e,t)=>ht.arr(e)?e.every(n=>zd(n,t)):ht.num(e)?e===t:parseFloat(e)===t,dW=class extends Ph{constructor({x:e,y:t,z:n,...r}){const o=[],l=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),l.push(s=>[`translate3d(${s.map(i=>Hg(i,"px")).join(",")})`,zd(s,0)])),Nf(r,(s,i)=>{if(i==="transform")o.push([s||""]),l.push(a=>[a,a===""]);else if(aW.test(i)){if(delete r[i],ht.und(s))return;const a=cW.test(i)?"px":uW.test(i)?"deg":"";o.push(tc(s)),l.push(i==="rotate3d"?([c,u,d,h])=>[`rotate3d(${c},${u},${d},${Hg(h,a)})`,zd(h,0)]:c=>[`${i}(${c.map(u=>Hg(u,a)).join(",")})`,zd(c,i.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new fW(o,l)),super(r)}},fW=class extends EI{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Nn(this.inputs,(n,r)=>{const o=ua(n[0]),[l,s]=this.transforms[r](ht.arr(o)?o:n.map(ua));e+=" "+l,t=t&&s}),t?"none":e}observerAdded(e){e==1&&Nn(this.inputs,t=>Nn(t,n=>ca(n)&&Uy(n,this)))}observerRemoved(e){e==0&&Nn(this.inputs,t=>Nn(t,n=>ca(n)&&Vf(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Bf(this,e)}},pW=["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","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"];$s.assign({batchedUpdates:Fs.unstable_batchedUpdates,createStringInterpolator:OI,colors:C7});J7(pW,{applyAnimatedValues:lW,createAnimatedStyle:e=>new dW(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n});const hW=()=>{Wy(()=>{const e=window.matchMedia("(prefers-reduced-motion)"),t=n=>{$s.assign({skipAnimation:n.matches||void 0})};return t(e),e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}},[])},gW=e=>{const t=f.useContext(Ty),{width:n,height:r,top:o,left:l}=f.useContext(Bs),{xAxis:s,yAxis:i,xAxisIds:a,yAxisIds:c}=f.useContext(dr),{dispatch:u}=f.useContext(el),d=a[0],h=c[0],g=f.useRef({x:-1,y:-1});f.useEffect(()=>{const m=t.current;if(m===null||e)return()=>{};const x=(y,C)=>{if(d===null)return null;const{scale:S,data:I}=y;if(!eu(S)){const k=S.invert(C);if(I===void 0)return{value:k};const $=I==null?void 0:I.findIndex((D,O)=>D>k&&(O===0||Math.abs(k-D)<=Math.abs(k-I[O-1]))||D<=k&&(O===I.length-1||Math.abs(k-D)<Math.abs(k-I[O+1])));return{value:$!==void 0&&$>=0?I[$]:k,index:$}}const P=S.bandwidth()===0?Math.floor((C-Math.min(...S.range())+S.step()/2)/S.step()):Math.floor((C-Math.min(...S.range()))/S.step());return P<0||P>=I.length?null:{index:P,value:I[P]}},w=()=>{g.current={x:-1,y:-1},u({type:"updateAxis",data:{x:null,y:null}})},b=y=>{const C=t.current.createSVGPoint();C.x=y.clientX,C.y=y.clientY;const S=C.matrixTransform(t.current.getScreenCTM().inverse());g.current={x:S.x,y:S.y};const I=S.x<l||S.x>l+n,P=S.y<o||S.y>o+r;if(I||P){u({type:"updateAxis",data:{x:null,y:null}});return}const k=x(s[d],S.x),$=x(i[h],S.y);u({type:"updateAxis",data:{x:k,y:$}})};return m.addEventListener("mouseout",w),m.addEventListener("mousemove",b),()=>{m.removeEventListener("mouseout",w),m.removeEventListener("mousemove",b)}},[t,u,l,n,o,r,h,i,d,s,e])},mW=["children","width","height","viewBox","disableAxisListener","className"],vW=X("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({})),yW=f.forwardRef(function(t,n){const{children:r,width:o,height:l,viewBox:s,disableAxisListener:i=!1}=t,a=W(t,mW),c=v({width:o,height:l,x:0,y:0},s);return gW(i),p.jsxs(vW,v({width:o,height:l,viewBox:`${c.x} ${c.y} ${c.width} ${c.height}`,ref:n},a,{children:[p.jsx("title",{children:t.title}),p.jsx("desc",{children:t.desc}),r]}))}),xW=f.forwardRef(function(t,n){const{width:r,height:o,series:l,margin:s,xAxis:i,yAxis:a,colors:c,dataset:u,sx:d,title:h,desc:g,disableAxisListener:m,children:x}=t,w=f.useRef(null),b=nt(n,w);return hW(),p.jsx(WU,{width:r,height:o,margin:s,svgRef:w,children:p.jsx(c9,{series:l,colors:c,dataset:u,children:p.jsx(YU,{xAxis:i,yAxis:a,dataset:u,children:p.jsx(QU,{children:p.jsx(JU,{children:p.jsx(yW,{width:r,height:o,ref:b,sx:d,title:h,desc:g,disableAxisListener:m,children:x})})})})})})}),bW=["width","height"],CW=(e,t)=>{const n=f.useRef(null),r=f.useRef(!1),[o,l]=f.useState(0),[s,i]=f.useState(0),a=f.useCallback(()=>{const c=n==null?void 0:n.current;if(!c)return;const d=Dr(c).getComputedStyle(c),h=Math.floor(parseFloat(d.height))||0,g=Math.floor(parseFloat(d.width))||0;l(g),i(h)},[]);return f.useEffect(()=>{r.current=!0},[]),tt(()=>{if(e!==void 0&&t!==void 0)return()=>{};a();const c=n.current;if(typeof ResizeObserver>"u")return()=>{};let u;const d=new ResizeObserver(()=>{u=requestAnimationFrame(()=>{a()})});return c&&d.observe(c),()=>{u&&window.cancelAnimationFrame(u),c&&d.unobserve(c)}},[a,t,e]),[n,e??o,t??s]},wW=X("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>{var t,n;return{width:(t=e.width)!=null?t:"100%",height:(n=e.height)!=null?n:"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}}),SW=f.forwardRef(function(t,n){const{width:r,height:o}=t,l=W(t,bW),[s,i,a]=CW(r,o);return p.jsx(wW,{ref:s,ownerState:{width:r,height:o},children:i&&a?p.jsx(xW,v({},l,{width:i,height:a,ref:n})):null})});function PW(e){return"circle cross diamond square star triangle wye".split(/ /).indexOf(e)||0}const kW=["x","y","id","classes","color","shape","dataIndex","highlightScope"];function MW(e){return Ie("MuiMarkElement",e)}Me("MuiMarkElement",["root","highlighted","faded"]);const IW=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,l={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return ae(l,MW,t)},zI=X("path",{name:"MuiMarkElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>({transform:`translate(${e.x}px, ${e.y}px)`,transformOrigin:`${e.x}px ${e.y}px`,fill:(t.vars||t).palette.background.paper,stroke:e.color,strokeWidth:2}));zI.propTypes={as:B.elementType,ownerState:B.shape({classes:B.object,color:B.string.isRequired,id:B.string.isRequired,isFaded:B.bool.isRequired,isHighlighted:B.bool.isRequired,x:B.number.isRequired,y:B.number.isRequired}).isRequired,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object])};function $W(e){var t;const{x:n,y:r,id:o,classes:l,color:s,shape:i,dataIndex:a,highlightScope:c}=e,u=W(e,kW),d=Oy(c),{item:h,axis:g}=f.useContext(el),m=((t=g.x)==null?void 0:t.index)===a||_y(h,{type:"line",seriesId:o},c),x=!m&&Fy(h,{type:"line",seriesId:o},c),w={id:o,classes:l,isHighlighted:m,isFaded:x,color:s,x:n,y:r},b=IW(w);return p.jsx(zI,v({},u,{ownerState:w,className:b.root,d:TV(EV[PW(i)])()},d({type:"line",seriesId:o,dataIndex:a})))}const EW=["slots","slotProps"];function TW(e){var t;const{slots:n,slotProps:r}=e,o=W(e,EW),l=f.useContext(Jo).line,s=f.useContext(dr),i=(t=n==null?void 0:n.mark)!=null?t:$W;if(l===void 0)return null;const{series:a,stackingGroups:c}=l,{xAxis:u,yAxis:d,xAxisIds:h,yAxisIds:g}=s,m=h[0],x=g[0];return p.jsx("g",v({},o,{children:c.flatMap(({ids:w})=>w.flatMap(b=>{const{xAxisKey:y=m,yAxisKey:C=x,stackedData:S,data:I,showMark:P=!0}=a[b];if(P===!1)return null;const k=aa(u[y].scale),$=d[C].scale,D=u[y].data,O=u[y].scale.range(),R=$.range(),L=({x:_,y:M})=>!(_<Math.min(...O)||_>Math.max(...O)||M<Math.min(...R)||M>Math.max(...R));if(D===void 0)throw new Error(`MUI-X-Charts: ${y===Jc?"The first `xAxis`":`The x-axis with id "${y}"`} should have data property to be able to display a line plot`);return D==null?void 0:D.map((_,M)=>{const T=I[M]==null?null:S[M][1];return{x:k(_),y:T===null?null:$(T),position:_,value:T,index:M}}).filter(({x:_,y:M,index:T,position:j,value:A})=>A===null||M===null||!L({x:_,y:M})?!1:P===!0?!0:P({x:_,y:M,index:T,position:j,value:A})).map(({x:_,y:M,index:T})=>p.jsx(i,v({id:b,dataIndex:T,shape:"circle",color:a[b].color,x:_,y:M,highlightScope:a[b].highlightScope},r==null?void 0:r.mark),`${b}-${T}`))}))}))}function BI(e){return Ie("MuiChartsAxis",e)}const hd=Me("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),VI=X("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${hd.tickLabel}`]:v({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${hd.label}`]:v({},e.typography.body1,{fill:(e.vars||e).palette.text.primary}),[`& .${hd.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${hd.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}})),RW=()=>!(typeof window<"u"&&window.document&&window.setTimeout),Gl={widthCache:{},cacheCount:0},OW=2e3,_W={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},FW=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],Pw="mui_measurement_span";function UI(e,t){return FW.indexOf(e)>=0&&t===+t?`${t}px`:t}function WI(e){return e.split("").reduce((r,o)=>o===o.toUpperCase()?[...r,"-",o.toLowerCase()]:[...r,o],[]).join("")}const jW=e=>Object.keys(e).sort().reduce((t,n)=>`${t}${WI(n)}:${UI(n,e[n])};`,""),DW=(e,t={})=>{if(e==null||RW())return{width:0,height:0};const n=`${e}`,r=jW(t),o=`${n}-${r}`;if(Gl.widthCache[o])return Gl.widthCache[o];try{let l=document.getElementById(Pw);l===null&&(l=document.createElement("span"),l.setAttribute("id",Pw),l.setAttribute("aria-hidden","true"),document.body.appendChild(l));const s=v({},_W,t);Object.keys(s).map(c=>(l.style[WI(c)]=UI(c,s[c]),c)),l.textContent=n;const i=l.getBoundingClientRect(),a={width:i.width,height:i.height};return Gl.widthCache[o]=a,Gl.cacheCount+1>OW?(Gl.cacheCount=0,Gl.widthCache={}):Gl.cacheCount+=1,a}catch{return{width:0,height:0}}};function Xy({style:e,needsComputation:t,text:n}){return n.split(`
`).map(r=>v({text:r},t?DW(r,e):{width:0,height:0}))}const AW=["x","y","style","text","ownerState"],LW=["angle","textAnchor","dominantBaseline"];function lu(e){const{x:t,y:n,style:r,text:o}=e,l=W(e,AW),s=r??{},{angle:i,textAnchor:a,dominantBaseline:c}=s,u=W(s,LW),d=f.useMemo(()=>Xy({style:u,needsComputation:o.includes(`
`),text:o}),[u,o]);let h;switch(c){case"hanging":h=0;break;case"central":h=(d.length-1)/2*-d[0].height;break;default:h=(d.length-1)*-d[0].height;break}const g=[];return i&&g.push(`rotate(${i}, ${t}, ${n})`),g.length&&(l.transform=g.join(" ")),p.jsx("text",v({},l,{x:t,y:n,textAnchor:a,dominantBaseline:c,style:u,children:d.map((m,x)=>p.jsx("tspan",{x:t,dy:`${x===0?h:d[0].height}px`,dominantBaseline:c,children:m.text},x))}))}const kw=5;function NW(e,t,n=0){const r=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(r<kw)return e;if(r>90-kw)return t;const o=r*Math.PI/180,l=Math.atan2(t,e);return o<l?e/Math.cos(o):t/Math.sin(o)}function HW(e=!1){const[t,n]=f.useState(!1);return tt(()=>{e||n(!0)},[e]),f.useEffect(()=>{e&&n(!0)},[e]),t}const zW=["scale","tickNumber","reverse"],BW=e=>{const{classes:t,position:n}=e;return ae({root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},BI,t)};function VW(e,{tickLabelStyle:t,tickLabelInterval:n,reverse:r,isMounted:o}){const l=e.map(c=>{if(!o||c.formattedValue===void 0)return v({},c,{width:0,height:0});const u=Xy({style:t,needsComputation:!0,text:c.formattedValue});return v({},c,{width:Math.max(...u.map(d=>d.width)),height:Math.max(u.length*u[0].height)})});if(typeof n=="function")return l.map((c,u)=>v({},c,{skipLabel:!n(c.value,u)}));let s=0,i=0;const a=r?-1:1;return l.map((c,u)=>{const{width:d,offset:h,labelOffset:g,height:m}=c,x=NW(d,m,t==null?void 0:t.angle),w=h+g,b=1.2;return s=w-a*(b*x)/2,u>0&&a*s<a*i?v({},c,{skipLabel:!0}):(i=w+a*(b*x)/2,c)})}const Mw={position:"bottom",disableLine:!1,disableTicks:!1,tickSize:6};function Iw(e){var t,n,r,o,l;const s=Re({props:v({},Mw,e),name:"MuiChartsXAxis"}),{xAxisIds:i}=f.useContext(dr),a=f.useContext(dr),c=(t=s.axisId)!=null?t:i[0],{xAxis:{[c]:{scale:u,tickNumber:d,reverse:h}}}=a,g=W(a.xAxis[c],zW),m=HW(),x=v({},Mw,g,s),{position:w,disableLine:b,disableTicks:y,tickLabelStyle:C,label:S,labelStyle:I,tickFontSize:P,labelFontSize:k,tickSize:$,valueFormatter:D,slots:O,slotProps:R,tickInterval:L,tickLabelInterval:_}=x,M=on(),T=BW(v({},x,{theme:M})),{left:j,top:A,width:E,height:F}=f.useContext(Bs),N=y?4:$,V=w==="bottom"?1:-1,H=(n=O==null?void 0:O.axisLine)!=null?n:"line",Q=(r=O==null?void 0:O.axisTick)!=null?r:"line",q=(o=O==null?void 0:O.axisTickLabel)!=null?o:lu,Z=(l=O==null?void 0:O.axisLabel)!=null?l:lu,le=Qt({elementType:q,externalSlotProps:R==null?void 0:R.axisTickLabel,additionalProps:{style:v({textAnchor:"middle",dominantBaseline:w==="bottom"?"hanging":"auto",fontSize:P??12},C),className:T.tickLabel},className:T.tickLabel,ownerState:{}}),fe=gI({scale:u,tickNumber:d,valueFormatter:D,tickInterval:L}),me=VW(fe,{tickLabelStyle:le.style,tickLabelInterval:_,reverse:h,isMounted:m}),Y={x:j+E/2,y:V*(N+22)},oe=Qt({elementType:Z,externalSlotProps:R==null?void 0:R.axisLabel,additionalProps:{style:v({fontSize:k??14,textAnchor:"middle",dominantBaseline:w==="bottom"?"hanging":"auto"},I)},ownerState:{}});return p.jsxs(VI,{transform:`translate(0, ${w==="bottom"?A+F:A})`,className:T.root,children:[!b&&p.jsx(H,v({x1:u.range()[0],x2:u.range()[1],className:T.line},R==null?void 0:R.axisLine)),me.map(({formattedValue:J,offset:U,labelOffset:ue,skipLabel:pe},de)=>{const G=ue??0,se=V*(N+3);return p.jsxs("g",{transform:`translate(${U}, 0)`,className:T.tickContainer,children:[!y&&p.jsx(Q,v({y2:V*N,className:T.tick},R==null?void 0:R.axisTick)),J!==void 0&&!pe&&p.jsx(q,v({x:G,y:se},le,{text:J.toString()}))]},de)}),S&&p.jsx("g",{className:T.label,children:p.jsx(Z,v({},Y,oe,{text:S}))})]})}const UW=["scale","tickNumber"],WW=e=>{const{classes:t,position:n}=e;return ae({root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},BI,t)},$w={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function Ew(e){var t,n,r,o,l;const s=Re({props:v({},$w,e),name:"MuiChartsYAxis"}),{yAxisIds:i}=f.useContext(dr),a=f.useContext(dr),c=(t=s.axisId)!=null?t:i[0],{yAxis:{[c]:{scale:u,tickNumber:d}}}=a,h=W(a.yAxis[c],UW),g=v({},$w,h,s),{position:m,disableLine:x,disableTicks:w,tickFontSize:b,label:y,labelFontSize:C,labelStyle:S,tickLabelStyle:I,tickSize:P,valueFormatter:k,slots:$,slotProps:D}=g,O=on(),R=WW(v({},g,{theme:O})),{left:L,top:_,width:M,height:T}=f.useContext(Bs),j=w?4:P,A=gI({scale:u,tickNumber:d,valueFormatter:k}),E=m==="right"?1:-1,F={x:E*(b+j+10),y:_+T/2},N=(n=$==null?void 0:$.axisLine)!=null?n:"line",V=(r=$==null?void 0:$.axisTick)!=null?r:"line",H=(o=$==null?void 0:$.axisTickLabel)!=null?o:lu,Q=(l=$==null?void 0:$.axisLabel)!=null?l:lu,q=Qt({elementType:H,externalSlotProps:D==null?void 0:D.axisTickLabel,additionalProps:{style:v({fontSize:b,textAnchor:m==="right"?"start":"end",dominantBaseline:"central"},I),className:R.tickLabel},ownerState:{}}),Z=Qt({elementType:Q,externalSlotProps:D==null?void 0:D.axisLabel,additionalProps:{style:v({fontSize:C,angle:E*90,textAnchor:"middle",dominantBaseline:"auto"},S)},ownerState:{}});return p.jsxs(VI,{transform:`translate(${m==="right"?L+M:L}, 0)`,className:R.root,children:[!x&&p.jsx(N,v({y1:u.range()[0],y2:u.range()[1],className:R.line},D==null?void 0:D.axisLine)),A.map(({formattedValue:le,offset:fe,labelOffset:me},Y)=>{const oe=E*(j+2),J=me;return p.jsxs("g",{transform:`translate(0, ${fe})`,className:R.tickContainer,children:[!w&&p.jsx(V,v({x2:E*j,className:R.tick},D==null?void 0:D.axisTick)),le!==void 0&&p.jsx(H,v({x:oe,y:J,text:le.toString()},q))]},Y)}),y&&p.jsx("g",{className:R.label,children:p.jsx(Q,v({},F,Z,{text:y}))})]})}const gd=e=>{if(e==null)return null;if(typeof e=="object"){var t;return(t=e.axisId)!=null?t:null}return e},md=(e,t,n)=>typeof e=="object"?v({},e,{slots:v({},t,e==null?void 0:e.slots),slotProps:v({},n,e==null?void 0:e.slotProps)}):{slots:t,slotProps:n};function GW(e){const{topAxis:t,leftAxis:n,rightAxis:r,bottomAxis:o,slots:l,slotProps:s}=e,{xAxis:i,xAxisIds:a,yAxis:c,yAxisIds:u}=f.useContext(dr),d=gd(n===void 0?u[0]:n),h=gd(o===void 0?a[0]:o),g=gd(t),m=gd(r);if(g!==null&&!i[g])throw Error([`MUI-X-Charts: id used for top axis "${g}" is not defined.`,`Available ids are: ${a.join(", ")}.`].join(`
`));if(d!==null&&!c[d])throw Error([`MUI-X-Charts: id used for left axis "${d}" is not defined.`,`Available ids are: ${u.join(", ")}.`].join(`
`));if(m!==null&&!c[m])throw Error([`MUI-X-Charts: id used for right axis "${m}" is not defined.`,`Available ids are: ${u.join(", ")}.`].join(`
`));if(h!==null&&!i[h])throw Error([`MUI-X-Charts: id used for bottom axis "${h}" is not defined.`,`Available ids are: ${a.join(", ")}.`].join(`
`));const x=md(t,l,s),w=md(o,l,s),b=md(n,l,s),y=md(r,l,s);return p.jsxs(f.Fragment,{children:[g&&p.jsx(Iw,v({},x,{position:"top",axisId:g})),h&&p.jsx(Iw,v({},w,{position:"bottom",axisId:h})),d&&p.jsx(Ew,v({},b,{position:"left",axisId:d})),m&&p.jsx(Ew,v({},y,{position:"right",axisId:m}))]})}function KW(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e;return{getBoundingClientRect:()=>({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t,toJSON:()=>JSON.stringify({width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t})})}}function qW(){const e=f.useContext(Ty),[t,n]=f.useState(null);return f.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=()=>{n(null)},l=s=>{n({x:s.clientX,y:s.clientY})};return r.addEventListener("mouseout",o),r.addEventListener("mousemove",l),()=>{r.removeEventListener("mouseout",o),r.removeEventListener("mousemove",l)}},[e]),t}function YW(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function XW(e){return Ie("MuiChartsTooltip",e)}const Tw=Me("MuiChartsTooltip",["root","table","row","cell","mark","markCell","labelCell","valueCell"]),GI=X("div",{name:"MuiChartsTooltip",slot:"Container"})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),border:`1px solid ${(e.vars||e).palette.divider}`,borderRadius:e.shape.borderRadius})),KI=X("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),mv=X("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),ss=X("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${Tw.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${Tw.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),qI=X(Tj,{name:"MuiChartsTooltip",slot:"Mark"})(({theme:e,ownerState:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",backgroundColor:t.color,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function QW(e){const{series:t,itemData:n,sx:r,classes:o}=e;if(n.dataIndex===void 0)return null;const{displayedLabel:l,color:s}=t.type==="pie"?{color:t.data[n.dataIndex].color,displayedLabel:t.data[n.dataIndex].label}:{color:t.color,displayedLabel:t.label},i=t.valueFormatter(t.data[n.dataIndex]);return p.jsx(GI,{sx:r,className:o.root,children:p.jsx(KI,{className:o.table,children:p.jsx("tbody",{children:p.jsxs(mv,{className:o.row,children:[p.jsx(ss,{className:ee(o.markCell,o.cell),children:p.jsx(qI,{ownerState:{color:s},className:o.mark})}),p.jsx(ss,{className:ee(o.labelCell,o.cell),children:l}),p.jsx(ss,{className:ee(o.valueCell,o.cell),children:i})]})})})})}function ZW(e){const{content:t,itemData:n,sx:r,classes:o,contentProps:l}=e,s=f.useContext(Jo)[n.type].series[n.seriesId],i=t??QW,a=Qt({elementType:i,externalSlotProps:l,additionalProps:{itemData:n,series:s,sx:r,classes:o},ownerState:{}});return p.jsx(i,v({},a))}function JW(e){var t;const{series:n,axis:r,dataIndex:o,axisValue:l,sx:s,classes:i}=e;if(o==null)return null;const a=(t=r.valueFormatter)!=null?t:c=>c.toLocaleString();return p.jsx(GI,{sx:s,className:i.root,children:p.jsxs(KI,{className:i.table,children:[l!=null&&!r.hideTooltip&&p.jsx("thead",{children:p.jsx(mv,{children:p.jsx(ss,{colSpan:3,children:p.jsx(It,{children:a(l)})})})}),p.jsx("tbody",{children:n.map(({color:c,id:u,label:d,valueFormatter:h,data:g})=>{const m=h(g[o]);return m==null?null:p.jsxs(mv,{className:i.row,children:[p.jsx(ss,{className:ee(i.markCell,i.cell),children:p.jsx(qI,{ownerState:{color:c},boxShadow:1,className:i.mark})}),p.jsx(ss,{className:ee(i.labelCell,i.cell),children:d?p.jsx(It,{children:d}):null}),p.jsx(ss,{className:ee(i.valueCell,i.cell),children:p.jsx(It,{children:m})})]},u)})})]})})}function eG(e){const{content:t,contentProps:n,axisData:r,sx:o,classes:l}=e,s=(r.x&&r.x.index)!==void 0,i=s?r.x&&r.x.index:r.y&&r.y.index,a=s?r.x&&r.x.value:r.y&&r.y.value,{xAxisIds:c,xAxis:u,yAxisIds:d,yAxis:h}=f.useContext(dr),g=f.useContext(Jo),m=s?c[0]:d[0],x=f.useMemo(()=>{const C=[];return Object.keys(g).filter(S=>["bar","line","scatter"].includes(S)).forEach(S=>{g[S].seriesOrder.forEach(I=>{const P=g[S].series[I],k=s?P.xAxisKey:P.yAxisKey;(k===void 0||k===m)&&C.push(g[S].series[I])})}),C},[m,s,g]),w=f.useMemo(()=>s?u[m]:h[m],[m,s,u,h]),b=t??JW,y=Qt({elementType:b,externalSlotProps:n,additionalProps:{axisData:r,series:x,axis:w,dataIndex:i,axisValue:a,sx:o,classes:l},ownerState:{}});return p.jsx(b,v({},y))}const tG=e=>{const{classes:t}=e;return ae({root:["root"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},XW,t)},nG=X(Q2,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function rG(e){var t,n,r;const o=Re({props:e,name:"MuiChartsTooltip"}),{trigger:l="axis",itemContent:s,axisContent:i,slots:a,slotProps:c}=o,u=qW(),{item:d,axis:h}=f.useContext(el),g=l==="item"?d:h,m=YW(l,g),x=u!==null&&m,w=tG({classes:o.classes}),b=(t=a==null?void 0:a.popper)!=null?t:nG,y=Qt({elementType:b,externalSlotProps:c==null?void 0:c.popper,additionalProps:{open:x,placement:"right-start",anchorEl:KW(u)},ownerState:{}});return l==="none"?null:p.jsx(H2,{children:x&&p.jsx(b,v({},y,{children:l==="item"?p.jsx(ZW,{itemData:g,content:(n=a==null?void 0:a.itemContent)!=null?n:s,contentProps:c==null?void 0:c.itemContent,sx:{mx:2},classes:w}):p.jsx(eG,{axisData:g,content:(r=a==null?void 0:a.axisContent)!=null?r:i,contentProps:c==null?void 0:c.axisContent,sx:{mx:2},classes:w})}))})}const oG=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},lG=oG,sG=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},iG=sG,aG=e=>{const{seriesOrder:t,series:n}=e;return t.map(o=>({color:n[o].color,label:n[o].label,id:o})).filter(o=>o.label!==void 0)},cG=aG,uG=e=>{const{seriesOrder:t,series:n}=e;return t.flatMap(r=>n[r].data.map(o=>({color:o.color,label:o.label,id:o.id})).filter(o=>o.label!==void 0))},dG=uG,fG={bar:lG,scatter:iG,line:cG,pie:dG};function pG(e){return Object.keys(e).flatMap(t=>fG[t](e[t]))}function hG(e){return Ie("MuiChartsLegend",e)}Me("MuiChartsLegend",["root","series","mark","label","column","row"]);const gG=["rotate","dominantBaseline"],mG=["label"],vG=e=>{const{classes:t,direction:n}=e;return ae({root:["root",n],mark:["mark"],label:["label"],series:["series"]},hG,t)},yG=X("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xG={position:{horizontal:"middle",vertical:"top"},direction:"row"},bG=e=>typeof e=="number"?{left:e,right:e,top:e,bottom:e}:v({left:0,right:0,top:0,bottom:0},e);function CG(e){const{hidden:t,position:n,direction:r,seriesToDisplay:o,drawingArea:l,classes:s,itemMarkWidth:i=20,itemMarkHeight:a=20,markGap:c=5,itemGap:u=10,padding:d=10,labelStyle:h}=e,g=on(),m=f.useMemo(()=>v({},g.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(g.vars||g).palette.text.primary,lineHeight:1},h),[h,g]),x=f.useMemo(()=>bG(d),[d]),w=f.useCallback((P,k={})=>{const $=W(k,gG),D=Xy({style:$,needsComputation:!0,text:P}),O={innerWidth:i+c+Math.max(...D.map(R=>R.width)),innerHeight:Math.max(a,D.length*D[0].height)};return v({},O,{outerWidth:O.innerWidth+u,outerHeight:O.innerHeight+u})},[u,a,i,c]),b=l.left+l.width+l.right,y=l.top+l.height+l.bottom,C=b-x.left-x.right,S=y-x.top-x.bottom,I=f.useMemo(()=>{let P=0,k=0,$=0,D=0,O=0;const R=[0],L=o.map(T=>{let{label:j}=T,A=W(T,mG);const E=w(j,m),F=v({},A,{label:j,positionX:P,positionY:k,innerHeight:E.innerHeight,innerWidth:E.innerWidth,outerHeight:E.outerHeight,outerWidth:E.outerWidth,rowIndex:O});return r==="row"&&(P+E.innerWidth>C&&(P=0,k+=R[O],O+=1,R.length<=O&&R.push(0),F.positionX=P,F.positionY=k,F.rowIndex=O),$=Math.max($,P+E.outerWidth),D=Math.max(D,k+E.outerHeight),R[O]=Math.max(R[O],E.outerHeight),P+=E.outerWidth),r==="column"&&(k+E.innerHeight>S&&(P=$+u,k=0,O=0,F.positionX=P,F.positionY=k,F.rowIndex=O),R.length<=O&&R.push(0),$=Math.max($,P+E.outerWidth),D=Math.max(D,k+E.outerHeight),O+=1,k+=E.outerHeight),F});let _=0,M=0;switch(n.horizontal){case"left":_=x.left;break;case"right":_=b-x.right-$;break;default:_=(b-$)/2;break}switch(n.vertical){case"top":M=x.top;break;case"bottom":M=y-x.bottom-D;break;default:M=(y-D)/2;break}return L.map(T=>v({},T,{positionX:T.positionX+_,positionY:T.positionY+M+(r==="row"?R[T.rowIndex]/2:T.outerHeight/2)}))},[o,n.horizontal,n.vertical,w,m,r,C,S,u,x.left,x.right,x.top,x.bottom,b,y]);return t?null:p.jsx(H2,{children:p.jsx(yG,{className:s.root,children:I.map(({id:P,label:k,color:$,positionX:D,positionY:O})=>p.jsxs("g",{className:s.series,transform:`translate(${D} ${O})`,children:[p.jsx("rect",{className:s.mark,y:-a/2,width:i,height:a,fill:$}),p.jsx(lu,{style:m,text:k,x:i+c,y:0})]},P))})})}function wG(e){var t;const n=Re({props:v({},xG,e),name:"MuiChartsLegend"}),{position:r,direction:o,hidden:l,slots:s,slotProps:i}=n,a=on(),c=vG(v({},n,{theme:a})),u=f.useContext(Bs),d=f.useContext(Jo),h=pG(d),g=(t=s==null?void 0:s.legend)!=null?t:CG,m=Qt({elementType:g,externalSlotProps:i==null?void 0:i.legend,additionalProps:{position:r,direction:o,classes:c,drawingArea:u,series:d,hidden:l,seriesToDisplay:h},ownerState:{}});return p.jsx(g,v({},m))}function SG(e){return Ie("MuiChartsAxisHighlight",e)}Me("MuiChartsAxisHighlight",["root"]);const PG=()=>ae({root:["root"]},SG),vd=X("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>v({pointerEvents:"none"},e.axisHighlight==="band"&&{fill:t.palette.mode==="light"?"gray":"white",fillOpacity:.1},e.axisHighlight==="line"&&{strokeDasharray:"5 2",stroke:t.palette.mode==="light"?"#000000":"#ffffff"}));function kG(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:l,yAxis:s}=f.useContext(dr),i=PG(),a=r[0],c=l[0],u=o[a].scale,d=s[c].scale,{axis:h}=f.useContext(el),g=aa(u),m=aa(d);return p.jsxs(f.Fragment,{children:[t==="band"&&h.x!==null&&eu(u)&&p.jsx(vd,{d:`M ${u(h.x.value)-(u.step()-u.bandwidth())/2} ${d.range()[0]} l ${u.step()} 0 l 0 ${d.range()[1]-d.range()[0]} l ${-u.step()} 0 Z`,className:i.root,ownerState:{axisHighlight:"band"}}),n==="band"&&h.y!==null&&eu(d)&&p.jsx(vd,{d:`M ${u.range()[0]} ${d(h.y.value)-(d.step()-d.bandwidth())/2} l 0 ${d.step()} l ${u.range()[1]-u.range()[0]} 0 l 0 ${-d.step()} Z`,className:i.root,ownerState:{axisHighlight:"band"}}),t==="line"&&h.x!==null&&p.jsx(vd,{d:`M ${g(h.x.value)} ${d.range()[0]} L ${g(h.x.value)} ${d.range()[1]}`,className:i.root,ownerState:{axisHighlight:"line"}}),n==="line"&&h.y!==null&&p.jsx(vd,{d:`M ${u.range()[0]} ${m(h.y.value)} L ${u.range()[1]} ${m(h.y.value)}`,className:i.root,ownerState:{axisHighlight:"line"}})]})}function MG(e){const{id:t,offset:n}=e,{left:r,top:o,width:l,height:s}=f.useContext(Bs),i=v({top:0,right:0,bottom:0,left:0},n);return p.jsx("clipPath",{id:t,children:p.jsx("rect",{x:r-i.left,y:o-i.top,width:l+i.left+i.right,height:s+i.top+i.bottom})})}const IG=["x","y","id","classes","color"];function $G(e){return Ie("MuiHighlightElement",e)}Me("MuiHighlightElement",["root"]);const EG=e=>{const{classes:t,id:n}=e,r={root:["root",`series-${n}`]};return ae(r,$G,t)},TG=X("circle",{name:"MuiHighlightElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({transform:`translate(${e.x}px, ${e.y}px)`,transformOrigin:`${e.x}px ${e.y}px`,fill:e.color}));function RG(e){const{x:t,y:n,id:r,classes:o,color:l}=e,s=W(e,IG),i={id:r,classes:o,color:l,x:t,y:n},a=EG(i);return p.jsx(TG,v({},s,{ownerState:i,className:a.root,cx:0,cy:0,r:s.r===void 0?5:s.r}))}const OG=["slots","slotProps"];function _G(e){var t,n;const{slots:r,slotProps:o}=e,l=W(e,OG),s=f.useContext(Jo).line,i=f.useContext(dr),{axis:a}=f.useContext(el),c=(t=a.x)==null?void 0:t.index;if(c===void 0||s===void 0)return null;const{series:u,stackingGroups:d}=s,{xAxis:h,yAxis:g,xAxisIds:m,yAxisIds:x}=i,w=m[0],b=x[0],y=(n=r==null?void 0:r.lineHighlight)!=null?n:RG;return p.jsx("g",v({},l,{children:d.flatMap(({ids:C})=>C.flatMap(S=>{const{xAxisKey:I=w,yAxisKey:P=b,stackedData:k,data:$,disableHighlight:D}=u[S];if(D||$[c]==null)return null;const O=aa(h[I].scale),R=g[P].scale,L=h[I].data;if(L===void 0)throw new Error(`MUI-X-Charts: ${I===Jc?"The first `xAxis`":`The x-axis with id "${I}"`} should have data property to be able to display a line plot.`);const _=O(L[c]),M=R(k[c][1]);return p.jsx(y,v({id:S,color:u[S].color,x:_,y:M},o==null?void 0:o.lineHighlight),`${S}`)}))}))}const yd=f.forwardRef(function(t,n){const{xAxis:r,yAxis:o,series:l,width:s,height:i,margin:a,colors:c,dataset:u,sx:d,tooltip:h,axisHighlight:g={x:"line"},disableLineItemHighlight:m,legend:x,topAxis:w,leftAxis:b,rightAxis:y,bottomAxis:C,children:S,slots:I,slotProps:P}=t,$=`${ct()}-clip-path`;return p.jsxs(SW,{ref:n,series:l.map(D=>v({disableHighlight:!!m,type:"line"},D)),width:s,height:i,margin:a,xAxis:r??[{id:Jc,scaleType:"point",data:Array.from({length:Math.max(...l.map(D=>{var O,R;return((O=(R=D.data)!=null?R:u)!=null?O:[]).length}))},(D,O)=>O)}],yAxis:o,colors:c,dataset:u,sx:d,disableAxisListener:(h==null?void 0:h.trigger)!=="axis"&&(g==null?void 0:g.x)==="none"&&(g==null?void 0:g.y)==="none",children:[p.jsxs("g",{clipPath:`url(#${$})`,children:[p.jsx(l7,{slots:I,slotProps:P}),p.jsx(d7,{slots:I,slotProps:P})]}),p.jsx(GW,{topAxis:w,leftAxis:b,rightAxis:y,bottomAxis:C,slots:I,slotProps:P}),p.jsx(kG,v({},g)),p.jsx(TW,{slots:I,slotProps:P}),p.jsx(_G,{slots:I,slotProps:P}),p.jsx(wG,v({},x,{slots:I,slotProps:P})),p.jsx(rG,v({},h,{slots:I,slotProps:P})),p.jsx(MG,{id:$}),S]})}),xd=({caption:e,value:t,unit:n})=>p.jsxs(lr,{sx:{width:200,height:200,padding:"16px",border:"1px solid #ccc",borderRadius:"4px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px"},children:[p.jsx(It,{variant:"subtitle1",component:"div",sx:{fontSize:"16px"},children:e}),p.jsxs(It,{variant:"h4",component:"div",sx:{fontSize:"32px",fontWeight:"bold"},children:["Ø ",t]}),p.jsx(It,{variant:"body2",component:"div",sx:{fontSize:"14px"},children:n})]}),Rw=({children:e})=>p.jsx(lr,{sx:{display:"flex",flexDirection:"row",gap:"20px",flexWrap:"wrap"},children:e}),Ce=()=>p.jsx("div",{style:{height:"30px"}}),FG={de:{1:"Benutzername",2:"Passwort",3:"Anmelden",4:"Anmeldung fehlgeschlagen! Bitte versuche es erneut...",5:"Pfad zum Logfile",6:"Domain Name oder IP Adresse",7:"Pfad zur PEM CRT Datei",8:"Pfad zum PEM Schlüssel Datei",9:"Verbindungen pro IP Adresse im Zeitrahmen.",10:"Zeit in Sekunden",11:"Neue IP hinzufügen",12:"Neuer Eintrag",13:"Hinzufügen",14:"Abbrechen",15:"Zeitspanne",16:"Aktualisierungsperiode",17:"Aktualisieren",18:"Millisekunden",19:"Alle",20:"Sekunden",21:"Tag",22:"Stunde",23:"Domain Name ",24:"Let's Encrypt Mail",25:"Zertifikat erstellen",26:"Erfolgreich gespeichert",27:"Fehler beim Speichern",28:"Zertifikat erfolgreich erstellt",29:"Zertifikat konnte nicht erstellt werden",30:"Konfiguratuion speichern",100:"Prefix",500:"Das Prefix wird immer an die gateway URL hinzugefügt. Bitte gib einen gültigen Prefix ein (/v1/).",101:"Debug",501:"Debug bitte nur für Testzwecke verwenden. Das Gateway wird hierduch instabil.",102:"Hostnamecheck",502:"Überprüfung des eingehhenden Hostnamens. Wenn dies fehlschlägt, wird die Anfrage verworfen. z.B. api.gateway.url",103:"Export Logs",503:"Der Export der Logs als Log Datei.",104:"SSL",504:"Externes SSL Zertifikat für die Verbindung zum Gateway.",105:"Rate Limit",505:"Rate Limit für die Anfragen an das Gateway. pro IP Adresse im Zeitrahmen.",106:"CORS",506:"Cross-Origin Resource Sharing. Erlaubt die Anfragen von einer anderen Domain.",107:"Interne Whitelist",507:"Interne Whitelist für die internen Anfragen an das Gateway."},en:{1:"Username",2:"Password",3:"Login",4:"Login failed! Please try again...",5:"Path to Logfile",6:"Domain Name or IP Address",7:"Path to PEM CRT File",8:"Path to PEM Key File",9:"Connects per IP address in the timeframe.",10:"Time in seconds",11:"Add new IP",12:"New Entry",13:"Add",14:"Cancel",15:"Timeframe",16:"Refresh Period",17:"Refresh",18:"Milliseconds",19:"All",20:"Seconds",21:"Day",22:"Hour",23:"Domain Name ",24:"Let's Encrypt Mail",25:"Obtain Certificate",26:"Successfully saved",27:"Error while saving",28:"Certificate successfully created",29:"Certificate could not be created",30:"Save Configuration",100:"Prefix",500:"The prefix is always added to the gateway URL. Please enter a valid prefix (/v1/).",101:"Debug",501:"Please use debug only for testing purposes. The gateway will be unstable.",102:"Hostnamecheck",502:"Checking the incoming hostname. If this fails, the request is discarded. e.g. api.gateway.url",103:"Export Logs",503:"Export the logs as a log file.",104:"SSL",504:"External SSL certificate for the connection to the gateway.",105:"Rate Limit",505:"Rate limit for requests to the gateway. per IP address in the timeframe.",106:"CORS",506:"Cross-Origin Resource Sharing. Allows requests from a different domain.",107:"Internal Whitelist",507:"Internal whitelist for internal requests to the gateway."}},Ve=e=>{var r;const t=localStorage.getItem("language")||"en";return((r=FG[t])==null?void 0:r[e])||`Text not found for key ${e}`};function Ow(){const[e,t]=f.useState(null),[n,r]=f.useState("all"),[o,l]=f.useState(60),[s,i]=f.useState(null);f.useEffect(()=>{const c=async()=>{try{const d=await fetch(localStorage.getItem("host")+"/database/"+n,{method:"GET",headers:{"Content-Type":"application/json",token:localStorage.getItem("token")||""}});d.ok||console.log(d);const h=await d.json();t(h)}catch(d){console.error("Ein Fehler ist aufgetreten beim Abrufen der Daten:",d)}};c().then(()=>console.log("Initial data fetched"));const u=setInterval(c,o*1e3);return()=>clearInterval(u)},[o,n]);const a=async()=>{try{const c=await fetch(localStorage.getItem("host")+"/database/"+n,{method:"GET",headers:{"Content-Type":"application/json",token:localStorage.getItem("token")||""}});c.ok||console.log(c);const u=await c.json();t(u)}catch(c){console.error("Ein Fehler ist aufgetreten beim Abrufen der Daten:",c)}};return f.useEffect(()=>{if(e){const c={RequestSize:0,ResponseTime:0,StatusCode:0,TimePre:0,TimePost:0,TimeFull:0,ServiceTimePosts:{},ServiceTimePre:{},ServiceRequestSize:{},xLine:[],yPre:[],yPost:[],yFull:[],ySize:[],TopIP:{},Service:void 0,IP:void 0};e.forEach(u=>{c.RequestSize+=u.RequestSize,c.ResponseTime+=u.ResponseTime,c.xLine.push(c.xLine.length+1),c.yPre.push(u.TimePre/1e6),c.yPost.push(u.TimePost),c.yFull.push(u.TimeFull),c.ySize.push(u.RequestSize),c.TimePre+=u.TimePre,c.TimePost+=u.TimePost,c.TimeFull+=u.TimeFull,c.TopIP[u.IP]?c.TopIP[u.IP]+=1:c.TopIP[u.IP]=1,c.ServiceTimePosts[u.Service]||(c.ServiceTimePosts[u.Service]=0,c.ServiceTimePre[u.Service]=0,c.ServiceRequestSize[u.Service]=0),c.ServiceTimePosts[u.Service]+=u.TimePost,c.ServiceTimePre[u.Service]+=u.TimePre,c.ServiceRequestSize[u.Service]+=u.RequestSize}),c.RequestSize/=e.length,c.ResponseTime/=e.length,c.TimePre/=e.length,c.TimePost/=e.length,c.TimeFull/=e.length,c.ServiceTimePostsArray=Object.keys(c.ServiceTimePosts).map(u=>({Service:u,TimePost:c.ServiceTimePosts[u]/e.filter(d=>d.Service===u).length,TimePre:c.ServiceTimePre[u]/e.filter(d=>d.Service===u).length,RequestSize:c.ServiceRequestSize[u]/e.filter(d=>d.Service===u).length,Connects:e.filter(d=>d.Service===u).length})),i(c)}},[e]),p.jsxs(Vi,{title:"Home",children:[p.jsxs(lr,{sx:{display:"flex",flexDirection:"row",gap:2,flexWrap:"wrap",alignItems:"center",mb:2},children:[p.jsxs(Zi,{sx:{minWidth:120},children:[p.jsx(Ji,{id:"span-select-label",children:Ve(15)}),p.jsxs(Is,{labelId:"span-select-label",id:"span-select",value:n,label:"Zeitspanne",onChange:c=>r(c.target.value),children:[p.jsx(Bt,{value:"all",children:Ve(19)}),p.jsx(Bt,{value:"day",children:Ve(21)}),p.jsx(Bt,{value:"hour",children:Ve(22)})]})]}),p.jsxs(Zi,{sx:{minWidth:120},children:[p.jsx(Ji,{id:"update-interval-select-label",children:Ve(16)}),p.jsxs(Is,{labelId:"update-interval-select-label",id:"update-interval-select",value:o,label:"Aktualisierungsperiode",onChange:c=>l(Number(c.target.value)),children:[p.jsxs(Bt,{value:10,children:["10 ",Ve(20)]}),p.jsxs(Bt,{value:30,children:["30 ",Ve(20)]}),p.jsxs(Bt,{value:60,children:["60 ",Ve(20)]})]})]}),p.jsx(Rt,{variant:"contained",onClick:a,children:Ve(17)})]}),s&&p.jsxs(lr,{children:[p.jsxs(Rw,{children:[p.jsx(xd,{caption:"Gateway Time",value:(s.TimePre/1e6).toFixed(2),unit:"Millisekunden"}),p.jsx(xd,{caption:"Endpoint Time",value:s.TimePost.toFixed(2),unit:"Millisekunden"}),p.jsx(xd,{caption:"Full Time",value:s.TimeFull.toFixed(2),unit:"Millisekunden"}),p.jsx(xd,{caption:"Average Request Size",value:s.RequestSize.toFixed(2),unit:"kb"})]}),p.jsxs(Rw,{children:[p.jsx(yd,{xAxis:[{data:s.xLine}],series:[{data:s.yPre,label:"Time Pre (ms)",area:!0,showMark:!1}],width:500,height:300}),p.jsx(yd,{xAxis:[{data:s.xLine}],series:[{data:s.yPost,label:"Time Post (ms)",area:!0,showMark:!1}],width:500,height:300}),p.jsx(yd,{xAxis:[{data:s.xLine}],series:[{data:s.yFull,label:"Time Full (ms)",area:!0,showMark:!1}],width:500,height:300}),p.jsx(yd,{xAxis:[{data:s.xLine}],series:[{data:s.ySize,label:"Request Size (kb)",area:!0,showMark:!1}],width:500,height:300})]}),p.jsx(na,{component:_n,children:p.jsxs(ea,{sx:{minWidth:650},"aria-label":"simple table",children:[p.jsx(ov,{children:p.jsxs(Xr,{children:[p.jsx(Ne,{children:p.jsx("b",{children:"Service"})}),p.jsx(Ne,{align:"right",children:p.jsx("b",{children:"Time Pre (ms)"})}),p.jsx(Ne,{align:"right",children:p.jsx("b",{children:"Time Post (ms)"})}),p.jsx(Ne,{align:"right",children:p.jsx("b",{children:"RequestSize (kb)"})}),p.jsx(Ne,{align:"right",children:p.jsx("b",{children:"Requests"})})]})}),p.jsx(ta,{children:s.ServiceTimePostsArray&&s.ServiceTimePostsArray.map((c,u)=>p.jsxs(Xr,{children:[p.jsx(Ne,{children:c.Service}),p.jsx(Ne,{align:"right",children:(c.TimePre/1e6).toFixed(2)}),p.jsx(Ne,{align:"right",children:c.TimePost.toFixed(2)}),p.jsx(Ne,{align:"right",children:c.RequestSize.toFixed(2)}),p.jsx(Ne,{align:"right",children:c.Connects})]},u))})]})}),p.jsx(Ce,{}),p.jsx(Ce,{}),s.TopIP&&p.jsx(na,{component:_n,children:p.jsxs(ea,{sx:{minWidth:650},"aria-label":"simple table",children:[p.jsx(ov,{children:p.jsxs(Xr,{children:[p.jsx(Ne,{children:p.jsx("b",{children:"IP"})}),p.jsx(Ne,{align:"right",children:p.jsx("b",{children:"Requests"})})]})}),p.jsx(ta,{children:Object.keys(s.TopIP).map((c,u)=>p.jsxs(Xr,{children:[p.jsx(Ne,{children:c}),p.jsx(Ne,{align:"right",children:s.TopIP[c]})]},u))})]})})]}),p.jsx(Ce,{}),p.jsx(Ce,{})]})}const jG=e=>/\S+@\S+\.\S+/.test(e),DG=e=>!isNaN(Number(e)),AG=e=>/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(e),LG=e=>/^\/[a-zA-Z0-9-_]+\/$/.test(e),NG=e=>/^\/[a-zA-Z0-9-_]+$/.test(e),HG=e=>/^[a-zA-Z0-9-_]+$/.test(e),Lt=({id:e,label:t,helperText:n,value:r,onChange:o,notempty:l=!1,validationType:s,required:i=!1,pwd:a=!1})=>{const[c,u]=f.useState(!1),[d,h]=f.useState(n);return f.useEffect(()=>{let g=!1,m="";if(r===""&&l)m="Dieses Feld darf nicht leer sein.";else switch(s){case"email":g=jG(r),m="Bitte gib eine gültige E-Mail-Adresse ein.";break;case"number":g=DG(r),m="Bitte gib eine gültige Zahl ein.";break;case"prefix":g=LG(r),m="Ungültiger Prefix. Bitte gib einen gültigen Prefix ein (/v1/).";break;case"urla":g=NG(r),m="Ungültige Url. Bitte gib eine gültige Url ein (/test).";break;case"plainurl":g=HG(r),m="Ungültiger Teil-Url. Bitte gib eine gültige Url ein (test), ohne /";break;case"ip":g=AG(r),m="Bitte gib eine gültige IP-Adresse ein.";break;default:g=!0;break}u(!g),h(g?n:m)},[r,s,n,l]),p.jsx(Fl,{id:e,label:t,variant:"outlined",fullWidth:!0,type:a?"password":"text",error:c,helperText:d,value:r,onChange:o,required:i})},zG="/assets/Logo-DgF3aON8.webp";var Qy={},YI={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})(YI);var Xn=YI.exports,zg={};const BG=kE(AD);var _w;function Qn(){return _w||(_w=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=BG}(zg)),zg}var VG=Xn;Object.defineProperty(Qy,"__esModule",{value:!0});var XI=Qy.default=void 0;GG(f);var UG=VG(Qn()),WG=p;function QI(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(QI=function(r){return r?n:t})(e)}function GG(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=QI(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var s=o?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(r,l,s):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r}XI=Qy.default=(0,UG.default)((0,WG.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");function ZI(){const e={float:"left"},t={float:"right"};return p.jsxs("footer",{className:"footer",children:[p.jsx("span",{style:e,children:"noxway is an Open Source API Gateway project | Made in Germany"}),p.jsx("span",{style:t,children:p.jsx("a",{href:"https://github.com/adrian-lorenz/noxway",children:p.jsx(XI,{})})})]})}var Zy={},KG=Xn;Object.defineProperty(Zy,"__esModule",{value:!0});var JI=Zy.default=void 0,qG=KG(Qn()),YG=p;JI=Zy.default=(0,qG.default)((0,YG.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"}),"Login");const XG=()=>{const[e,t]=f.useState("en");f.useEffect(()=>{const r=localStorage.getItem("language")||(navigator.language.startsWith("de")?"de":"en");t(r)},[]);const n=r=>{const o=r.target.value;t(o),localStorage.setItem("language",o)};return p.jsxs(Zi,{fullWidth:!0,children:[p.jsx(Ji,{id:"language-selector-label",children:"Language"}),p.jsxs(Is,{labelId:"language-selector-label",id:"language-selector",value:e,label:"Sprache",onChange:n,children:[p.jsx(Bt,{value:"de",children:"Deutsch"}),p.jsx(Bt,{value:"en",children:"English"})]})]})};async function QG(e){const t="";let n=500;if(!e.username||!e.password)return{token:t,statusCode:n};const r="Basic "+btoa(e.username+":"+e.password);let o;try{o=await fetch(localStorage.getItem("host")+"/login",{method:"GET",headers:{"Content-Type":"application/json",Authorization:r}}),n=o.status}catch(i){return console.error("Error during request: ",i),{token:t,statusCode:n}}if(!o.ok)return{token:t,statusCode:n};const l=await o.json(),s=l.token||"";return console.log("Login ok",l,n),{token:s,statusCode:n}}function ZG(){let e=window.location.href;e.endsWith("/")&&(e=e.slice(0,-1)),e&&(e.includes("3000")&&(e=e.replace("3000","8080")),e.includes("5173")&&(e=e.replace("5173","8080")),e.includes("localhost")&&(e=e.replace("localhost","127.0.0.1")),e.includes("/web")&&(e=e.replace("/web","")),localStorage.setItem("host",e));const[t,n]=f.useState(""),[r,o]=f.useState(""),[l,s]=f.useState(!1),i={backgroundImage:`url(${zG})`,width:"500px",height:"500px",backgroundSize:"cover"},a=async u=>{u.preventDefault();const d=await QG({username:t,password:r});console.log("Response",d),d.statusCode===200?(console.log("ALL OKAY"),localStorage.setItem("token",d.token),window.location.replace("/web/dashboard")):(console.log("Login Error no Token retrieved!"),s(!0))},c=()=>{s(!1)};return p.jsxs(N4,{maxWidth:"sm",children:[l&&p.jsx(lr,{sx:{mt:2},children:p.jsxs(Z0,{onClose:c,severity:"error",children:[p.jsx(F2,{children:"Error"}),Ve(4)]})}),p.jsx("div",{style:i}),p.jsx(lr,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsxs("form",{onSubmit:a,style:{width:"100%"},children:[p.jsx(lr,{sx:{mb:2},children:p.jsx(Lt,{helperText:"Username",id:"user",label:Ve(1),required:!0,value:t,onChange:u=>n(u.target.value)})}),p.jsx(lr,{sx:{mb:2},children:p.jsx(Lt,{helperText:"Password",id:"pwd",label:Ve(2),value:r,required:!0,pwd:!0,onChange:u=>o(u.target.value)})}),p.jsx(lr,{sx:{mb:2},children:p.jsx(XG,{})}),p.jsx(Rt,{fullWidth:!0,variant:"contained",type:"submit",endIcon:p.jsx(JI,{}),children:Ve(3)})]})}),p.jsx(ZI,{})]})}var Jy={},JG=Xn;Object.defineProperty(Jy,"__esModule",{value:!0});var e$=Jy.default=void 0,eK=JG(Qn()),tK=p;e$=Jy.default=(0,eK.default)((0,tK.jsx)("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"}),"BarChart");var ex={},nK=Xn;Object.defineProperty(ex,"__esModule",{value:!0});var t$=ex.default=void 0,rK=nK(Qn()),oK=p;t$=ex.default=(0,rK.default)((0,oK.jsx)("path",{d:"M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-1.75 9c0 .23-.02.46-.05.68l1.48 1.16c.13.11.17.3.08.45l-1.4 2.42c-.09.15-.27.21-.43.15l-1.74-.7c-.36.28-.76.51-1.18.69l-.26 1.85c-.03.17-.18.3-.35.3h-2.8c-.17 0-.32-.13-.35-.29l-.26-1.85c-.43-.18-.82-.41-1.18-.69l-1.74.7c-.16.06-.34 0-.43-.15l-1.4-2.42c-.09-.15-.05-.34.08-.45l1.48-1.16c-.03-.23-.05-.46-.05-.69 0-.23.02-.46.05-.68l-1.48-1.16c-.13-.11-.17-.3-.08-.45l1.4-2.42c.09-.15.27-.21.43-.15l1.74.7c.36-.28.76-.51 1.18-.69l.26-1.85c.03-.17.18-.3.35-.3h2.8c.17 0 .32.13.35.29l.26 1.85c.43.18.82.41 1.18.69l1.74-.7c.16-.06.34 0 .43.15l1.4 2.42c.09.15.05.34-.08.45l-1.48 1.16c.03.23.05.46.05.69"}),"SettingsApplications");var tx={},lK=Xn;Object.defineProperty(tx,"__esModule",{value:!0});var n$=tx.default=void 0,sK=lK(Qn()),iK=p;n$=tx.default=(0,sK.default)((0,iK.jsx)("path",{d:"M7.06 8.94 5 8l2.06-.94L8 5l.94 2.06L11 8l-2.06.94L8 11zM8 21l.94-2.06L11 18l-2.06-.94L8 15l-.94 2.06L5 18l2.06.94zm-3.63-8.63L3 13l1.37.63L5 15l.63-1.37L7 13l-1.37-.63L5 11zM12 12c0-2.73 1.08-5.27 2.75-7.25L12 2h7v7l-2.82-2.82C14.84 7.82 14 9.88 14 12c0 3.32 2.1 6.36 5 7.82V22c-4.09-1.59-7-5.65-7-10"}),"SwitchAccessShortcut");var nx={},aK=Xn;Object.defineProperty(nx,"__esModule",{value:!0});var r$=nx.default=void 0,cK=aK(Qn()),uK=p;r$=nx.default=(0,cK.default)((0,uK.jsx)("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List");var rx={},dK=Xn;Object.defineProperty(rx,"__esModule",{value:!0});var o$=rx.default=void 0,fK=dK(Qn()),pK=p;o$=rx.default=(0,fK.default)((0,pK.jsx)("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event");var ox={},hK=Xn;Object.defineProperty(ox,"__esModule",{value:!0});var l$=ox.default=void 0,gK=hK(Qn()),mK=p;l$=ox.default=(0,gK.default)((0,mK.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");function vK(){const e=Gk();function t(){localStorage.removeItem("token"),window.location.reload()}function n(o){e(o)}const r=()=>p.jsx("div",{role:"presentation",children:p.jsxs(yM,{children:[p.jsx(Ce,{}),p.jsxs(Zs,{onClick:()=>n("/web/dashboard"),children:[p.jsx(Ir,{children:p.jsx(e$,{})}),p.jsx($r,{primary:"Dashboard"})]}),p.jsx(Ce,{}),p.jsxs(Zs,{onClick:()=>n("/web/gateway"),children:[p.jsx(Ir,{children:p.jsx(t$,{})}),p.jsx($r,{primary:"Gateway"})]}),p.jsxs(Zs,{onClick:()=>n("/web/endpoints"),children:[p.jsx(Ir,{children:p.jsx(n$,{})}),p.jsx($r,{primary:"Endpoints"})]}),p.jsxs(Zs,{onClick:()=>n("/web/logs"),children:[p.jsx(Ir,{children:p.jsx(r$,{})}),p.jsx($r,{primary:"Logs"})]}),p.jsxs(Zs,{disabled:!0,onClick:()=>n("/web/events"),children:[p.jsx(Ir,{children:p.jsx(o$,{})}),p.jsx($r,{primary:"Events"})]}),p.jsx(Ce,{}),p.jsx(Ce,{}),p.jsx(Ce,{}),p.jsx(Ce,{}),p.jsxs(Zs,{onClick:t,children:[p.jsx(Ir,{children:p.jsx(l$,{})}),p.jsx($r,{primary:"Logout"})]})]})});return p.jsx(G3,{variant:"permanent",anchor:"left",sx:{width:240,flexShrink:0,"& .MuiDrawer-paper":{width:250,boxSizing:"border-box"}},children:r()})}const rr=({label:e,checked:t,onChange:n,...r})=>p.jsx(hM,{control:p.jsx(IM,{checked:t,onChange:n,...r}),label:e});var lx={},yK=Xn;Object.defineProperty(lx,"__esModule",{value:!0});var da=lx.default=void 0,xK=yK(Qn()),bK=p;da=lx.default=(0,xK.default)((0,bK.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var sx={},CK=Xn;Object.defineProperty(sx,"__esModule",{value:!0});var kh=sx.default=void 0,wK=CK(Qn()),SK=p;kh=sx.default=(0,wK.default)((0,SK.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");const si=({whitelist:e,setWhitelist:t,modalcaption:n,caption:r,validationType:o,notEmpty:l})=>{const[s,i]=f.useState(""),[a,c]=f.useState(!1),u=()=>{c(!0)},d=()=>{c(!1),i("")},h=()=>{s&&!e.includes(s)&&(t([...e,s]),d())},g=m=>{t(e.filter(x=>x!==m))};return p.jsxs("div",{children:[p.jsx(It,{variant:"h6",style:{margin:"10px"},children:p.jsx("b",{children:r})}),p.jsx(Ce,{}),p.jsx(na,{component:_n,style:{marginBottom:"10px"},children:p.jsx(ea,{"aria-label":"whitelist table",size:"small",children:p.jsx(ta,{children:e.map((m,x)=>p.jsxs(Xr,{children:[p.jsx(Ne,{children:m}),p.jsx(Ne,{align:"right",children:p.jsx(dn,{edge:"end","aria-label":"delete",onClick:()=>g(m),children:p.jsx(da,{})})})]},x))})})}),p.jsx(Rt,{startIcon:p.jsx(kh,{}),onClick:u,variant:"contained",size:"small",children:Ve(12)}),p.jsxs(Mu,{open:a,onClose:d,children:[p.jsx($u,{children:n}),p.jsx(Lt,{label:"Eintrag",value:s,validationType:o,notempty:l,onChange:m=>i(m.target.value),id:"",helperText:""}),p.jsxs(Iu,{children:[p.jsx(Rt,{onClick:d,children:Ve(14)}),p.jsx(Rt,{onClick:h,children:Ve(13)})]})]})]})},kt=({children:e})=>p.jsx(lr,{sx:{border:1,borderColor:"grey.300",backgroundColor:"background.paper",borderRadius:2,p:2,boxShadow:1},children:e}),Bg=()=>p.jsx("hr",{className:"shr"});function s$(){return p.jsxs("div",{className:"spinner-container",children:[p.jsx("div",{className:"loading-spinner"}),p.jsx("div",{className:"spinner_text",children:p.jsx("b",{children:"Daten werden abgeholt...."})})]})}const i$=({open:e,onClose:t,caption:n,text:r})=>p.jsxs(Mu,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[p.jsx($u,{id:"alert-dialog-title",children:n}),p.jsx(fh,{children:p.jsx(b3,{id:"alert-dialog-description",children:r})}),p.jsx(Iu,{children:p.jsx(Rt,{onClick:t,autoFocus:!0,children:"OK"})})]});var ix={},PK=Xn;Object.defineProperty(ix,"__esModule",{value:!0});var a$=ix.default=void 0,kK=PK(Qn()),MK=p;a$=ix.default=(0,kK.default)((0,MK.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");const sl=({title:e,description:t})=>p.jsxs(lr,{display:"flex",gap:1,sx:{marginBottom:"15px",background:"#f0f0f0",padding:"10px",borderRadius:"8px"},children:[p.jsx(MM,{title:"Mehr Informationen",children:p.jsx(a$,{color:"primary"})}),p.jsxs(It,{variant:"body1",children:[p.jsxs("b",{children:[Ve(e),":"]})," ",Ve(t)]})]});var ax={},IK=Xn;Object.defineProperty(ax,"__esModule",{value:!0});var c$=ax.default=void 0,$K=IK(Qn()),EK=p;c$=ax.default=(0,$K.default)((0,EK.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z"}),"Security");const TK=()=>{const[e,t]=f.useState(null),[n,r]=f.useState(""),[o,l]=f.useState(!1),[s,i]=f.useState(!1),[a,c]=f.useState("");if(f.useEffect(()=>{(async()=>{try{const d=await fetch(`${localStorage.getItem("host")}/config_global`,{method:"GET",headers:{"Content-Type":"application/json",token:localStorage.getItem("token")||""}});d.ok?(l(!1),r("")):(l(!0),r(`HTTP error! status: ${d.status}`));const h=await d.json();console.log(h),t(h)}catch(d){l(!0),r(`Ein Fehler ist aufgetreten beim Abrufen der Konfiguration: ${d}`),console.error("Ein Fehler ist aufgetreten beim Abrufen der Konfiguration:",d)}})()},[]),e){const u=()=>{c(""),i(!1)},d=y=>{t({...e,systemWhitelist:y})},h=y=>{t({...e,rateWhitelist:y})},g=y=>{t({...e,corsAllowOrigins:y})},m=y=>{t({...e,corsAllowMethods:y})},x=y=>{t({...e,corsAllowHeaders:y})},w=async()=>{const y={domain:e.sslDomain,mail:e.sslMail},C=await fetch(`${localStorage.getItem("host")}/retiveCert`,{method:"POST",headers:{"Content-Type":"application/json",token:localStorage.getItem("token")||""},body:JSON.stringify(y)});if(C.ok){const S=await C.json();S.success?(c(Ve(28)),i(!0)):(c(S==null?void 0:S.error),i(!0))}else{const S=await C.json();c(Ve(29)+(S==null?void 0:S.error)),i(!0)}},b=()=>{fetch(`${localStorage.getItem("host")}/config_global`,{method:"POST",headers:{"Content-Type":"application/json",token:localStorage.getItem("token")||""},body:JSON.stringify(e)}).then(y=>y.json()).then(y=>{console.log("Success:",y),c(Ve(26)),i(!0)}).catch(y=>{console.error("Error:",y),c(Ve(27)),i(!0)})};return p.jsxs(Vi,{title:"Konfiguration",children:[p.jsx(It,{variant:"h4",gutterBottom:!0,component:"div",children:"Gateway Basic Configuration"}),p.jsx(Ce,{}),p.jsx(kt,{children:p.jsx(Lt,{id:"t1",label:"Gateway Name",helperText:"",value:e.name,onChange:y=>{const C={...e};C.name=y.target.value,t(C)}})}),p.jsx(Ce,{}),p.jsxs(kt,{children:[p.jsx(sl,{title:100,description:500}),p.jsx(Lt,{id:"t2",label:"Prefix",helperText:"",value:e.prefix,validationType:"prefix",onChange:y=>{const C={...e};C.prefix=y.target.value,t(C)}})]}),p.jsx(Ce,{}),p.jsxs(kt,{children:[p.jsx(sl,{title:101,description:501}),p.jsx(rr,{label:"Debug",checked:e.debug,onChange:y=>{const C={...e};C.debug=y.target.checked,t(C)}})]}),p.jsx(Ce,{}),p.jsxs(kt,{children:[p.jsx(Lt,{id:"t3",label:"HTTP Port",helperText:"",value:e.port.toString(),validationType:"number",onChange:y=>{const C={...e};C.port=y.target.valueAsNumber,t(C)}}),p.jsx(Ce,{}),p.jsx(Lt,{id:"t4",label:"HTTPS Port",helperText:"",validationType:"number",value:e.sslPort.toString(),onChange:y=>{const C={...e};C.sslPort=y.target.valueAsNumber,t(C)}})]}),p.jsx(Ce,{}),p.jsxs(kt,{children:[p.jsx(sl,{title:103,description:503}),p.jsx(rr,{label:"Export Log",checked:e.exportLog,onChange:y=>{const C={...e};C.exportLog=y.target.checked,t(C)}}),p.jsx(Ce,{}),e.exportLog&&p.jsxs(p.Fragment,{children:[p.jsx(Ce,{}),p.jsx(Lt,{id:"t3",label:Ve(5),helperText:"",value:e.exportLogPath,onChange:y=>{const C={...e};C.exportLogPath=y.target.value,t(C)}})]})]}),p.jsx(Ce,{}),p.jsxs(kt,{children:[p.jsx(sl,{title:102,description:502}),p.jsx(rr,{label:"Hostname Check",checked:e.hostnamecheck,onChange:y=>{const C={...e};C.hostnamecheck=y.target.checked,t(C)}}),p.jsx(Ce,{}),e.hostnamecheck&&p.jsxs(p.Fragment,{children:[p.jsx(Ce,{}),p.jsx(Lt,{id:"t4",label:"Hostname",helperText:Ve(6),value:e.hostname,onChange:y=>{const C={...e};C.hostname=y.target.value,t(C)}})]})]}),p.jsx(Ce,{}),p.jsxs(kt,{children:[p.jsx(sl,{title:104,description:504}),p.jsx(rr,{label:"SSL",checked:e.ssl,onChange:y=>{const C={...e};C.ssl=y.target.checked,t(C)}}),e.ssl&&p.jsxs(p.Fragment,{children:[p.jsx(Ce,{}),p.jsx(Lt,{id:"t41",label:Ve(23),helperText:"",value:e.sslDomain,onChange:y=>{const C={...e};C.sslDomain=y.target.value,t(C)}}),p.jsx(Ce,{}),p.jsx(Lt,{id:"t41",label:Ve(24),helperText:"",value:e.sslMail,onChange:y=>{const C={...e};C.sslMail=y.target.value,t(C)}}),e.sslMail&&e.sslDomain&&p.jsxs(p.Fragment,{children:[p.jsx(Ce,{}),p.jsx(Rt,{fullWidth:!0,variant:"contained",onClick:w,endIcon:p.jsx(c$,{}),children:Ve(25)})]}),p.jsx(Ce,{}),p.jsx(Lt,{id:"t5",label:Ve(7),helperText:"",value:e.pemCrt,onChange:()=>{}}),p.jsx(Ce,{}),p.jsx(Lt,{id:"t6",label:Ve(8),helperText:"",value:e.pemKey,onChange:()=>{}})]})]}),p.jsx(Ce,{}),p.jsxs(kt,{children:[p.jsx(sl,{title:105,description:505}),p.jsx(rr,{label:"Rate Limiter",checked:e.rateLimiter,onChange:y=>{const C={...e};C.rateLimiter=y.target.checked,t(C)}}),p.jsx(Ce,{}),e.rateLimiter&&p.jsxs(p.Fragment,{children:[p.jsx(Ce,{}),p.jsx(Lt,{id:"t7",label:Ve(9),helperText:"",validationType:"number",value:e.rate.rate.toString(),onChange:y=>{const C={...e};C.rate.rate=y.target.valueAsNumber,t(C)}}),p.jsx(Ce,{}),p.jsx(Lt,{id:"t8",label:Ve(10),helperText:"",validationType:"number",value:(e.rate.window/1e9/60).toString(),onChange:y=>{const C={...e};C.rate.window=y.target.valueAsNumber*1e9*60,t(C)}}),p.jsx(Ce,{}),p.jsx(si,{validationType:"ip",notEmpty:!0,whitelist:e.rateWhitelist||[],setWhitelist:h,modalcaption:Ve(11),caption:"Rate Whitelist"})]})]}),p.jsx(Ce,{}),p.jsx(Ce,{}),p.jsxs(kt,{children:[p.jsx(sl,{title:107,description:507}),p.jsx(si,{validationType:"ip",notEmpty:!0,whitelist:e.systemWhitelist,setWhitelist:d,modalcaption:Ve(11),caption:"Internal Whitelist / Login / Garaphs"})]}),p.jsx(Ce,{}),p.jsxs(kt,{children:[p.jsx(sl,{title:106,description:506}),p.jsx(rr,{label:"Cors System Default",checked:e.cors,onChange:y=>{const C={...e};C.cors=y.target.checked,t(C)}}),e.cors&&p.jsxs(p.Fragment,{children:[p.jsx(Ce,{}),p.jsx(rr,{label:"Cors Advanced",checked:e.corsAdvanced,onChange:y=>{const C={...e};C.corsAdvanced=y.target.checked,t(C)}}),p.jsx(Ce,{}),e.corsAdvanced&&p.jsxs(p.Fragment,{children:[p.jsx(Ce,{}),p.jsx(Bg,{}),p.jsx(si,{whitelist:e.corsAllowOrigins,setWhitelist:g,modalcaption:"AllowOrigin",caption:"Allow Origins",validationType:"",notEmpty:!1}),p.jsx(Bg,{}),p.jsx(si,{whitelist:e.corsAllowMethods,setWhitelist:m,modalcaption:"AllowMethod",caption:"Allow Methods",validationType:"",notEmpty:!1}),p.jsx(Bg,{}),p.jsx(si,{whitelist:e.corsAllowHeaders,setWhitelist:x,modalcaption:"corsAllowHeader",caption:"Allow Headers",validationType:"",notEmpty:!1})]})]})]}),p.jsx(Ce,{}),p.jsx(kt,{children:p.jsx(Rt,{variant:"contained",onClick:b,children:Ve(30)})}),p.jsx(i$,{open:s,onClose:u,caption:"Hinweis",text:a}),p.jsx(Ce,{}),p.jsx(Ce,{}),p.jsx(Ce,{}),p.jsx(Ce,{}),p.jsx(Ce,{})]})}else return p.jsxs(Vi,{title:"",children:[p.jsx(s$,{}),o&&p.jsx("p",{children:p.jsxs(Z0,{severity:"error",children:[p.jsx(F2,{children:"Error"}),n]})})]})};var cx={},RK=Xn;Object.defineProperty(cx,"__esModule",{value:!0});var vv=cx.default=void 0,OK=RK(Qn()),_K=p;vv=cx.default=(0,OK.default)((0,_K.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var ux={},FK=Xn;Object.defineProperty(ux,"__esModule",{value:!0});var u$=ux.default=void 0,jK=FK(Qn()),DK=p;u$=ux.default=(0,jK.default)((0,DK.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox");const Vg=({list:e,setList:t,modalCaption:n,caption:r})=>{const[o,l]=f.useState({Header:"",Value:""}),[s,i]=f.useState(!1),a=()=>{i(!0)},c=()=>{i(!1),l({Header:"",Value:""})},u=()=>{o.Header&&o.Value&&(t([...e,o]),c())},d=h=>{t(e.filter((g,m)=>m!==h))};return p.jsxs("div",{children:[p.jsx(It,{style:{margin:"10px"},children:r}),p.jsx(na,{component:_n,style:{marginBottom:"10px"},children:p.jsx(ea,{"aria-label":"list table",size:"small",children:p.jsx(ta,{children:e.map((h,g)=>p.jsxs(Xr,{children:[p.jsx(Ne,{children:h.Header}),p.jsx(Ne,{children:h.Value}),p.jsx(Ne,{align:"right",children:p.jsx(dn,{edge:"end","aria-label":"delete",onClick:()=>d(g),children:p.jsx(da,{})})})]},g))})})}),p.jsx(Rt,{startIcon:p.jsx(kh,{}),onClick:a,variant:"contained",size:"small",children:Ve(12)}),p.jsxs(Mu,{open:s,onClose:c,children:[p.jsx($u,{children:n}),p.jsxs(fh,{children:[p.jsx(Fl,{autoFocus:!0,margin:"dense",label:"Header",type:"text",fullWidth:!0,variant:"outlined",value:o.Header,onChange:h=>l({...o,Header:h.target.value})}),p.jsx(Fl,{margin:"dense",label:"Value",type:"text",fullWidth:!0,variant:"outlined",value:o.Value,onChange:h=>l({...o,Value:h.target.value})})]}),p.jsxs(Iu,{children:[p.jsx(Rt,{onClick:c,children:Ve(14)}),p.jsx(Rt,{onClick:u,children:Ve(13)})]})]})]})},Fw=({label:e,helperText:t,value:n,onChange:r,rows:o,...l})=>p.jsx(Fl,{label:e,variant:"outlined",fullWidth:!0,multiline:!0,rows:o,helperText:t,value:n,onChange:r,...l}),AK=({list:e,setList:t,modalCaption:n,caption:r})=>{const[o,l]=f.useState({Header:"",Value:"",NewValue:""}),[s,i]=f.useState(!1),a=()=>{i(!0)},c=()=>{i(!1),l({Header:"",Value:"",NewValue:""})},u=()=>{o.Header&&o.Value&&o.NewValue&&(t([...e,o]),c())},d=h=>{t(e.filter((g,m)=>m!==h))};return p.jsxs("div",{children:[p.jsx(It,{style:{margin:"10px"},children:r}),p.jsx(na,{component:_n,style:{marginBottom:"10px"},children:p.jsx(ea,{"aria-label":"list table",size:"small",children:p.jsx(ta,{children:e.map((h,g)=>p.jsxs(Xr,{children:[p.jsx(Ne,{children:h.Header}),p.jsx(Ne,{children:h.Value}),p.jsx(Ne,{children:h.NewValue}),p.jsx(Ne,{align:"right",children:p.jsx(dn,{edge:"end","aria-label":"delete",onClick:()=>d(g),children:p.jsx(da,{})})})]},g))})})}),p.jsx(Rt,{startIcon:p.jsx(kh,{}),onClick:a,variant:"contained",size:"small",children:Ve(12)}),p.jsxs(Mu,{open:s,onClose:c,children:[p.jsx($u,{children:n}),p.jsxs(fh,{children:[p.jsx(Fl,{autoFocus:!0,margin:"dense",label:"Header",type:"text",fullWidth:!0,variant:"outlined",value:o.Header,onChange:h=>l({...o,Header:h.target.value})}),p.jsx(Fl,{margin:"dense",label:"Value",type:"text",fullWidth:!0,variant:"outlined",value:o.Value,onChange:h=>l({...o,Value:h.target.value})}),p.jsx(Fl,{margin:"dense",label:"NewValue",type:"text",fullWidth:!0,variant:"outlined",value:o.NewValue,onChange:h=>l({...o,NewValue:h.target.value})})]}),p.jsxs(Iu,{children:[p.jsx(Rt,{onClick:c,children:Ve(14)}),p.jsx(Rt,{onClick:u,children:Ve(13)})]})]})]})},LK=({endpointData:e,onSave:t,onCancel:n,basic:r})=>{const[o,l]=f.useState(e),s=h=>{l({...o,HeaderRouteMatches:h})},i=h=>{l({...o,HeaderAdd:h})},a=h=>{l({...o,HeaderExists:h})},c=h=>{l({...o,HeaderReplace:h})},u=h=>{const g={...o};g.JWTData.Match=h,l(g)},d=h=>{h.preventDefault(),t(o)};return p.jsxs(p.Fragment,{children:[p.jsx(It,{variant:"h4",gutterBottom:!0,children:"ServicesA"}),"Configuration - [",o.Name,"]",p.jsx(Ce,{}),p.jsx(kt,{children:p.jsx(Lt,{label:"Endpoint Name",helperText:"",value:o.Name,onChange:h=>l({...o,Name:h.target.value}),required:!0,id:""})}),p.jsx(Ce,{}),p.jsx(kt,{children:p.jsx(rr,{label:"Active",checked:o.Active,onChange:h=>l({...o,Active:h.target.checked})})}),p.jsx(Ce,{}),p.jsx(kt,{children:p.jsx(Lt,{label:"Endpoint URL",helperText:"full URL of the endpoint",value:o.Endpoint,onChange:h=>l({...o,Endpoint:h.target.value}),required:!0,id:""})}),p.jsx(Ce,{}),p.jsx(kt,{children:p.jsx(Lt,{label:"Override Timeout (5sec)",helperText:"0 = no override",value:o.OverrideTimeout.toString(),onChange:h=>l({...o,OverrideTimeout:parseInt(h.target.value)}),required:!0,id:""})}),p.jsx(Ce,{}),!r&&p.jsx(kt,{children:p.jsx(Vg,{list:o.HeaderRouteMatches,setList:s,modalCaption:"Add Header match",caption:"Header Routing match"})}),p.jsx(kt,{children:p.jsx(Vg,{list:o.HeaderAdd,setList:i,modalCaption:"Add Header",caption:"Header Add"})}),p.jsx(Ce,{}),p.jsx(kt,{children:p.jsx(Vg,{list:o.HeaderExists,setList:a,modalCaption:"Add Must Exist Header",caption:"Must Exist Header"})}),p.jsx(Ce,{}),p.jsx(kt,{children:p.jsx(AK,{list:o.HeaderReplace,setList:c,modalCaption:"Header value replace",caption:"Header value replace"})}),p.jsx(Ce,{}),p.jsx(kt,{children:p.jsx(rr,{label:"Verify endpoint SSL certificate",checked:o.VerifySSL,onChange:h=>l({...o,VerifySSL:h.target.checked})})}),p.jsx(Ce,{}),p.jsxs(kt,{children:[p.jsx(rr,{label:"CertAuth",checked:o.CertAuth,onChange:h=>{const g={...o};g.CertAuth=h.target.checked,l(g)}}),p.jsx(Ce,{}),o.CertAuth&&p.jsxs(p.Fragment,{children:[p.jsx(Ce,{}),p.jsx(Fw,{label:"CertPem",helperText:"Certificate",rows:4,value:o.Certs.CertPEM,onChange:h=>{const g={...o};g.Certs.CertPEM=h.target.value,l(g)}}),p.jsx(Ce,{}),p.jsx(Fw,{label:"CertKey",helperText:"Certificate",rows:4,value:o.Certs.CertKEY,onChange:h=>{const g={...o};g.Certs.CertKEY=h.target.value,l(g)}})]})]}),p.jsx(Ce,{}),p.jsxs(kt,{children:[p.jsx(rr,{label:"JWT PreCheck",checked:o.JWTPreCheck,onChange:h=>{const g={...o};g.JWTPreCheck=h.target.checked,l(g)}}),p.jsx(Ce,{}),o.JWTPreCheck&&p.jsxs(p.Fragment,{children:[p.jsx(Lt,{label:"Header",helperText:"Header key",value:o.JWTData.Header,onChange:h=>{const g={...o};g.JWTData.Header=h.target.value,l(g)},id:""}),p.jsx(Ce,{}),p.jsx(Lt,{label:"JWT Sign Key",helperText:"JWT Sign Key",value:o.JWTData.Key,onChange:h=>{const g={...o};g.JWTData.Key=h.target.value,l(g)},id:""}),p.jsx(Ce,{}),p.jsx(rr,{label:"JWT check only sign",checked:o.JWTData.OnlySign,onChange:h=>{const g={...o};g.JWTData.OnlySign=h.target.checked,l(g)}}),p.jsx(Ce,{}),!o.JWTData.OnlySign&&p.jsxs(p.Fragment,{children:[p.jsx(Lt,{label:"JWT field",helperText:"JWT field",value:o.JWTData.Field,onChange:h=>{const g={...o};g.JWTData.Field=h.target.value,l(g)},id:""}),p.jsx(Ce,{}),p.jsx(si,{whitelist:o.JWTData.Match||[],setWhitelist:u,modalcaption:"JWT field match",caption:"JWT field match",validationType:"",notEmpty:!1})]})]})]}),p.jsx(Ce,{}),p.jsxs(kt,{children:[p.jsx(Rt,{variant:"outlined",onClick:n,color:"primary",children:"Abbrechen"}),p.jsx(Rt,{variant:"outlined",onClick:d,color:"primary",children:"Speichern"})]}),p.jsx(Ce,{}),p.jsx(Ce,{}),p.jsx(Ce,{}),p.jsx(Ce,{}),p.jsx(Ce,{})]})};let bd;const NK=new Uint8Array(16);function HK(){if(!bd&&(bd=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!bd))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bd(NK)}const sn=[];for(let e=0;e<256;++e)sn.push((e+256).toString(16).slice(1));function zK(e,t=0){return sn[e[t+0]]+sn[e[t+1]]+sn[e[t+2]]+sn[e[t+3]]+"-"+sn[e[t+4]]+sn[e[t+5]]+"-"+sn[e[t+6]]+sn[e[t+7]]+"-"+sn[e[t+8]]+sn[e[t+9]]+"-"+sn[e[t+10]]+sn[e[t+11]]+sn[e[t+12]]+sn[e[t+13]]+sn[e[t+14]]+sn[e[t+15]]}const BK=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),jw={randomUUID:BK};function Ug(e,t,n){if(jw.randomUUID&&!t&&!e)return jw.randomUUID();e=e||{};const r=e.random||(e.rng||HK)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return zK(r)}const VK=({modalcaption:e,onAdd:t,text:n,label:r,validationType:o,notEmpty:l})=>{const[s,i]=f.useState(""),[a,c]=f.useState(!0),u=()=>{c(!1),i("")},d=()=>{t(s),u()},h=g=>{i(g.target.value)};return p.jsx("div",{children:p.jsxs(Mu,{open:a,onClose:u,children:[p.jsx($u,{children:e}),p.jsxs(fh,{children:[n,p.jsx(Ce,{}),p.jsx(Lt,{id:"newentry",helperText:"",label:r,validationType:o,value:s,onChange:h,notempty:l}),p.jsx(Ce,{})]}),p.jsxs(Iu,{children:[p.jsx(Rt,{onClick:u,children:Ve(14)}),p.jsx(Rt,{onClick:d,children:Ve(13)})]})]})})},UK=()=>{const[e,t]=f.useState(null),[n,r]=f.useState(""),[o,l]=f.useState(!1),[s,i]=f.useState(!1),[a,c]=f.useState(null),[u,d]=f.useState(!1),[h,g]=f.useState(!1),[m,x]=f.useState(!1),[w,b]=f.useState("");if(f.useEffect(()=>{(async()=>{try{const C=await fetch(localStorage.getItem("host")+"/config_service",{method:"GET",headers:{"Content-Type":"application/json",token:localStorage.getItem("token")||""}});C.ok?(l(!1),r("")):(l(!0),r(`HTTP error! status: ${C.status}`),console.log("HTTP error! status: "+C.status));const S=await C.json();t(S)}catch(C){l(!0),r("Ein Fehler ist aufgetreten beim Abrufen der Endpunkte - no route"),console.error("Ein Fehler ist aufgetreten beim Abrufen der Konfiguration:",C)}})().then(()=>console.log("done"))},[]),e){const y=M=>{t(e.filter(T=>T.UUID!==M))},C=(M,T)=>{const j=e.map(A=>A.UUID===M?{...A,Endpoints:A.Endpoints.filter(E=>E.UUID!==T)}:A);t(j)},S=(M,T)=>{c(M),d(T),i(!0)},I=()=>{fetch(localStorage.getItem("host")+"/config_service",{method:"POST",headers:{"Content-Type":"application/json",token:localStorage.getItem("token")||""},body:JSON.stringify(e)}).then(M=>M.json()).then(M=>{console.log("Success:",M),b("Konfiguration gespeichert"),x(!0)}).catch(M=>{console.error("Error:",M),b("Fehler beim Speichern der Konfiguration"),x(!0)})},P=()=>{b(""),x(!1)},k=M=>{g(!1);const T={Endpoints:[],BasicEndpoint:{Endpoint:"https://",VerifySSL:!0,CertAuth:!1,Certs:{CertPEM:"",CertKEY:""},Active:!1,Name:"Basic",UUID:Ug(),OverrideTimeout:0,HeaderRouteMatches:[],HeaderExists:[],HeaderAdd:[],JWTPreCheck:!1,JWTData:{Header:"",Key:"",OnlySign:!1,Field:"",Match:null},HeaderReplace:[]},Active:!1,UUID:Ug(),Name:M};t([...e,T])},$=(M,T)=>{const j={Endpoint:"https://",VerifySSL:!0,CertAuth:!1,Certs:{CertPEM:"",CertKEY:""},Active:!1,Name:T,UUID:Ug(),OverrideTimeout:0,HeaderRouteMatches:[{Header:"system",Value:"dev"}],HeaderExists:[],HeaderAdd:[],JWTPreCheck:!1,JWTData:{Header:"",Key:"",OnlySign:!1,Field:"",Match:null},HeaderReplace:[]},A=e.map(E=>E.UUID===M?E.Endpoints?{...E,Endpoints:[...E.Endpoints,j]}:{...E,Endpoints:[j]}:E);t(A)},D=async()=>{try{const M=await fetch(localStorage.getItem("host")+"/reload",{method:"GET",headers:{"Content-Type":"application/json",token:localStorage.getItem("token")||""}});M.ok?(b("Dast Gateway hat die Konfiguration neu geladen"),x(!0)):(b("Fehler beim Neuladen der Konfiguration - response bad "+M.status),x(!0))}catch{b("Fehler beim Neuladen der Konfiguration - no route"),x(!0)}},O=(M,T)=>{const j=e.map(A=>A.UUID===M?{...A,Active:T}:A);t(j)},R=()=>{g(!0)},L=M=>{const T=e.map(j=>{if(j.BasicEndpoint.UUID===M.UUID)return{...j,BasicEndpoint:M};if(j.Endpoints){const A=j.Endpoints.map(E=>E.UUID===M.UUID?M:E);return{...j,Endpoints:A}}return j});t(T),i(!1)},_=()=>{i(!1)};return p.jsxs(Vi,{title:"Endpoints",children:[s&&a?p.jsx(LK,{basic:u,endpointData:a,onSave:L,onCancel:_}):p.jsxs(p.Fragment,{children:[p.jsx(It,{variant:"h4",gutterBottom:!0,children:"Services"}),p.jsx(Ce,{}),p.jsx(kt,{children:p.jsx(na,{component:_n,children:p.jsxs(ea,{children:[p.jsx(ov,{children:p.jsxs(Xr,{children:[p.jsx(Ne,{children:p.jsx("b",{children:"Typ"})}),p.jsx(Ne,{children:p.jsx("b",{children:"Route"})}),p.jsx(Ne,{children:p.jsx("b",{children:"Endpoint"})}),p.jsx(Ne,{children:p.jsx("b",{children:"Active"})}),p.jsx(Ne,{children:p.jsx("b",{children:"Aktionen"})})]})}),p.jsxs(ta,{children:[e.map(M=>[p.jsxs(Xr,{children:[p.jsx(Ne,{children:"Basic"}),p.jsx(Ne,{children:M.Name}),p.jsx(Ne,{children:M.BasicEndpoint.Endpoint}),p.jsx(Ne,{children:p.jsx(rr,{label:"",checked:M.Active,onChange:T=>O(M.UUID,T.target.checked)})}),p.jsxs(Ne,{children:[p.jsx(dn,{onClick:()=>S(M.BasicEndpoint,!0),children:p.jsx(vv,{})}),p.jsx(dn,{onClick:()=>y(M.UUID),children:p.jsx(da,{})}),p.jsx(dn,{onClick:()=>$(M.UUID,M.Name),children:p.jsx(u$,{})})]})]},M.BasicEndpoint.UUID),...(M.Endpoints||[]).map(T=>p.jsxs(Xr,{children:[p.jsx(Ne,{children:"Sub"}),p.jsxs(Ne,{children:[M.Name," --> ",T.Name]}),p.jsx(Ne,{children:T.Endpoint}),p.jsx(Ne,{}),p.jsxs(Ne,{children:[p.jsx(dn,{onClick:()=>S(T,!1),children:p.jsx(vv,{})}),p.jsx(dn,{onClick:()=>C(M.UUID,T.UUID),children:p.jsx(da,{})})]})]},T.UUID))]),p.jsxs(Xr,{children:[p.jsx(Ne,{children:p.jsx(Rt,{variant:"contained",onClick:I,children:"Speichern"})}),p.jsx(Ne,{children:p.jsx(Rt,{variant:"contained",onClick:D,children:"Reload Gateway"})}),p.jsx(Ne,{colSpan:4,align:"right",children:p.jsx(Rt,{variant:"contained",onClick:R,children:"Add Main Endpoint"})})]})]})]})})}),p.jsx(Ce,{}),h&&p.jsx(VK,{modalcaption:"Neue Basic Route",text:"<host>/<prefix>/<route> (z.B. https://gateway.example.com/v1/service1)",label:"Route",validationType:"plainurl",onAdd:k,notEmpty:!0}),p.jsx(i$,{open:m,onClose:P,caption:"Hinweis",text:w})]}),p.jsx(Ce,{}),p.jsx(Ce,{})]})}else return p.jsxs(Vi,{title:"",children:[p.jsx(s$,{}),o&&p.jsxs(Z0,{severity:"error",children:[p.jsx(It,{children:"Error"}),n]})]})},d$=f.createContext(void 0);function Ke(){const e=f.useContext(d$);if(e===void 0)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
`));return e}const f$=f.createContext(void 0),Ee=()=>{const e=f.useContext(f$);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},p$=f.createContext(void 0);function Ul(){const e=f.useContext(p$);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
`));return e}const Dw={};function dx(e,t){const n=f.useRef(Dw);return n.current===Dw&&(n.current=e(t)),n}const WK=[];function h$(e){f.useEffect(e,WK)}const Eo=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},GK=Object.is;function g$(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!GK(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}Eo(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function KK(e){return e.acceptsApiRef}function Aw(e,t){return KK(t)?t(e):t(e.current.state)}const qK=Object.is,fx=g$,YK=()=>({state:null,equals:null,selector:null}),Pe=(e,t,n=qK)=>{const r=dx(YK),o=r.current.selector!==null,[l,s]=f.useState(o?null:Aw(e,t));return r.current.state=l,r.current.equals=n,r.current.selector=t,h$(()=>e.current.store.subscribe(()=>{const i=Aw(e,r.current.selector);r.current.equals(r.current.state,i)||(r.current.state=i,s(i))})),l};function qe(e){return Ie("MuiDataGrid",e)}const z=Me("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var Gf="NOT_FOUND";function XK(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Gf},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function QK(e,t){var n=[];function r(i){var a=n.findIndex(function(u){return t(i,u.key)});if(a>-1){var c=n[a];return a>0&&(n.splice(a,1),n.unshift(c)),c.value}return Gf}function o(i,a){r(i)===Gf&&(n.unshift({key:i,value:a}),n.length>e&&n.pop())}function l(){return n}function s(){n=[]}return{get:r,put:o,getEntries:l,clear:s}}var ZK=function(t,n){return t===n};function JK(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,l=0;l<o;l++)if(!e(n[l],r[l]))return!1;return!0}}function Mh(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?ZK:r,l=n.maxSize,s=l===void 0?1:l,i=n.resultEqualityCheck,a=JK(o),c=s===1?XK(a):QK(s,a);function u(){var d=c.get(arguments);if(d===Gf){if(d=e.apply(null,arguments),i){var h=c.getEntries(),g=h.find(function(m){return i(m.value,d)});g&&(d=g.value)}c.put(arguments,d)}return d}return u.clearCache=function(){return c.clear()},u}function eq(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function tq(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];var c=0,u,d={memoizeOptions:void 0},h=i.pop();if(typeof h=="object"&&(d=h,h=i.pop()),typeof h!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof h+"]");var g=d,m=g.memoizeOptions,x=m===void 0?n:m,w=Array.isArray(x)?x:[x],b=eq(i),y=e.apply(void 0,[function(){return c++,h.apply(null,arguments)}].concat(w)),C=e(function(){for(var I=[],P=b.length,k=0;k<P;k++)I.push(b[k].apply(null,arguments));return u=y.apply(null,I),u});return Object.assign(C,{resultFunc:h,memoizedResultFunc:y,dependencies:b,lastResult:function(){return u},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),C};return o}var nq=tq(Mh);const rq={cache:new WeakMap};Eo(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g. `mySelector(state, apiRef.current.instanceId)`."]);function ii(e){return"current"in e&&"instanceId"in e.current}const ai={id:"default"},ze=(e,t,n,r,o,l,...s)=>{if(s.length>0)throw new Error("Unsupported number of selectors");let i;if(e&&t&&n&&r&&o&&l)i=(a,c)=>{const u=ii(a),d=c??(u?a.current.instanceId:ai),h=u?a.current.state:a,g=e(h,d),m=t(h,d),x=n(h,d),w=r(h,d),b=o(h,d);return l(g,m,x,w,b)};else if(e&&t&&n&&r&&o)i=(a,c)=>{const u=ii(a),d=c??(u?a.current.instanceId:ai),h=u?a.current.state:a,g=e(h,d),m=t(h,d),x=n(h,d),w=r(h,d);return o(g,m,x,w)};else if(e&&t&&n&&r)i=(a,c)=>{const u=ii(a),d=c??(u?a.current.instanceId:ai),h=u?a.current.state:a,g=e(h,d),m=t(h,d),x=n(h,d);return r(g,m,x)};else if(e&&t&&n)i=(a,c)=>{const u=ii(a),d=c??(u?a.current.instanceId:ai),h=u?a.current.state:a,g=e(h,d),m=t(h,d);return n(g,m)};else if(e&&t)i=(a,c)=>{const u=ii(a),d=c??(u?a.current.instanceId:ai),h=u?a.current.state:a,g=e(h,d);return t(g)};else throw new Error("Missing arguments");return i.acceptsApiRef=!0,i},St=(...e)=>{const t=(...n)=>{var r,o;const[l,s]=n,i=ii(l),a=i?l.current.instanceId:s??ai,c=i?l.current.state:l,{cache:u}=rq;if(u.get(a)&&(r=u.get(a))!=null&&r.get(e)){var d;return(d=u.get(a))==null?void 0:d.get(e)(c,a)}const h=nq(...e);return u.get(a)||u.set(a,new Map),(o=u.get(a))==null||o.set(e,h),h(c,a)};return t.acceptsApiRef=!0,t},hs=e=>e.columns,zo=ze(hs,e=>e.orderedFields),Ca=ze(hs,e=>e.lookup),ko=St(zo,Ca,(e,t)=>e.map(n=>t[n])),Zr=ze(hs,e=>e.columnVisibilityModel),fn=St(ko,Zr,(e,t)=>e.filter(n=>t[n.field]!==!1)),Ih=St(fn,e=>e.map(t=>t.field)),fa=St(fn,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),px=ze(fn,fa,(e,t)=>{const n=e.length;return n===0?0:t[n-1]+e[n-1].computedWidth}),m$=St(ko,e=>e.filter(t=>t.filterable)),oq=St(ko,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),$h=e=>e.columnGrouping,lq=St($h,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),v$=St($h,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),sq=St($h,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),_u=ze($h,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),lo=e=>e.rows,Eh=ze(lo,e=>e.totalRowCount),iq=ze(lo,e=>e.loading),aq=ze(lo,e=>e.totalTopLevelRowCount),No=ze(lo,e=>e.dataRowIdToModelLookup),Kf=ze(lo,e=>e.dataRowIdToIdLookup),Kr=ze(lo,e=>e.tree),cq=ze(lo,e=>e.groupingName),Lw=ze(lo,e=>e.treeDepths),Th=St(lo,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]+1}),nc=ze(lo,e=>e.dataRowIds),uq=ze(lo,e=>e==null?void 0:e.additionalRowGroups),wa=St(uq,e=>{var t,n;const r=e==null?void 0:e.pinnedRows;return{bottom:r==null||(t=r.bottom)==null?void 0:t.map(o=>{var l;return{id:o.id,model:(l=o.model)!=null?l:{}}}),top:r==null||(n=r.top)==null?void 0:n.map(o=>{var l;return{id:o.id,model:(l=o.model)!=null?l:{}}})}}),dq=ze(wa,e=>{var t,n;return((e==null||(t=e.top)==null?void 0:t.length)||0)+((e==null||(n=e.bottom)==null?void 0:n.length)||0)}),y$=()=>{var e;const t=Ul(),n=Ee(),r=Pe(t,fn),o=Pe(t,Eh),l=Pe(t,_u),s=Pe(t,dq);let i="grid";return(e=n.experimentalFeatures)!=null&&e.ariaV7&&n.treeData&&(i="treegrid"),{role:i,"aria-colcount":r.length,"aria-rowcount":l+1+s+o,"aria-multiselectable":!n.disableMultipleRowSelection}},fq=e=>{const{classes:t}=e;return ae({root:["main"]},qe,t)},pq=Zt("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})(()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"})),hq=f.forwardRef((e,t)=>{var n;const r=Ee(),o=fq(r),l=(n=r.experimentalFeatures)!=null&&n.ariaV7?y$:null,s=typeof l=="function"?l():null;return p.jsx(pq,v({ref:t,className:o.root,ownerState:r},s,{children:e.children}))}),x$=e=>e.sorting,hx=ze(x$,e=>e.sortedRows),gx=St(hx,No,(e,t)=>e.map(n=>{var r;return{id:n,model:(r=t[n])!=null?r:{}}})),br=ze(x$,e=>e.sortModel),gq=St(br,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{})),mx=e=>e.filter,cn=ze(mx,e=>e.filterModel);ze(cn,e=>e.quickFilterValues);const mq=e=>e.visibleRowsLookup,b$=ze(mx,e=>e.filteredRowsLookup);ze(mx,e=>e.filteredDescendantCountLookup);const Wl=St(mq,gx,(e,t)=>t.filter(n=>e[n.id]!==!1)),Cc=St(Wl,e=>e.map(t=>t.id)),vq=St(b$,gx,(e,t)=>t.filter(n=>e[n.id]!==!1)),yq=St(vq,e=>e.map(t=>t.id)),C$=St(Wl,Kr,Th,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),w$=ze(Wl,e=>e.length),Rh=ze(C$,e=>e.length),xq=St(cn,Ca,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var o,l;if(!r.field)return!1;const s=t[r.field];if(!(s!=null&&s.filterOperators)||(s==null||(o=s.filterOperators)==null?void 0:o.length)===0)return!1;const i=s.filterOperators.find(a=>a.value===r.operator);return i?!i.InputComponent||r.value!=null&&((l=r.value)==null?void 0:l.toString())!=="":!1})}),bq=St(xq,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),Oh=e=>e.focus,er=ze(Oh,e=>e.cell),Cq=ze(Oh,e=>e.columnHeader);ze(Oh,e=>e.columnHeaderFilter);const qf=ze(Oh,e=>e.columnGroupHeader),_h=e=>e.tabIndex,Yf=ze(_h,e=>e.cell),S$=ze(_h,e=>e.columnHeader);ze(_h,e=>e.columnHeaderFilter);const wq=ze(_h,e=>e.columnGroupHeader),vx=e=>e.density,Sq=ze(vx,e=>e.value),Sa=ze(vx,e=>e.factor),yv=e=>e.columnMenu;function Pq(e){const{VirtualScrollerComponent:t,ColumnHeadersProps:n,children:r}=e,o=Ul(),l=Ee(),s=f.useRef(null),i=Pe(o,fn),a=Pe(o,bq),c=Pe(o,gq),u=Pe(o,fa),d=Pe(o,S$),h=Pe(o,Yf),g=Pe(o,wq),m=Pe(o,Cq),x=Pe(o,qf),w=Pe(o,Sa),b=Pe(o,_u),y=Pe(o,yv),C=Pe(o,Zr),S=Pe(o,sq),I=!(g===null&&d===null&&h===null);tt(()=>{o.current.computeSizeAndPublishResizeEvent();const O=s.current;if(typeof ResizeObserver>"u")return()=>{};let R;const L=new ResizeObserver(()=>{R=requestAnimationFrame(()=>{o.current.computeSizeAndPublishResizeEvent()})});return O&&L.observe(O),()=>{R&&window.cancelAnimationFrame(R),O&&L.unobserve(O)}},[o]);const P=f.useRef(null),k=f.useRef(null),$=f.useRef(null);o.current.register("private",{columnHeadersContainerElementRef:k,columnHeadersElementRef:P,virtualScrollerRef:$,mainElementRef:s});const D=!!o.current.getRootDimensions();return p.jsxs(hq,{ref:s,children:[p.jsx(l.slots.columnHeaders,v({ref:k,innerRef:P,visibleColumns:i,filterColumnLookup:a,sortColumnLookup:c,columnPositions:u,columnHeaderTabIndexState:d,columnGroupHeaderTabIndexState:g,columnHeaderFocus:m,columnGroupHeaderFocus:x,densityFactor:w,headerGroupingMaxDepth:b,columnMenuState:y,columnVisibility:C,columnGroupsHeaderStructure:S,hasOtherElementInTabSequence:I},n)),D&&p.jsx(t,{ref:$}),r]})}function kq(){var e;const t=Ee();return t.hideFooter?null:p.jsx(t.slots.footer,v({},(e=t.slotProps)==null?void 0:e.footer))}const Rn="auto-generated-group-node-root",Fi=Symbol("mui.id_autogenerated"),Mq=()=>({type:"group",id:Rn,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Iq(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
`))}const Xf=(e,t,n)=>{const r=t?t(e):e.id;return Iq(r,e,n),r},Bd=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},l={},s={};for(let i=0;i<e.length;i+=1){const a=e[i],c=Xf(a,t);l[c]=a,s[c]=c,o.rows.push(c)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:s,dataRowIdToModelLookup:l}},P$=({tree:e,rowCountProp:t=0})=>{const n=e[Rn];return Math.max(t,n.children.length+(n.footerId==null?0:1))},k$=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const l=e.current.caches.rows,{tree:s,treeDepths:i,dataRowIds:a,groupingName:c}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:l.updates,dataRowIdToIdLookup:l.dataRowIdToIdLookup,dataRowIdToModelLookup:l.dataRowIdToModelLookup}),u=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:i,dataRowIdToIdLookup:l.dataRowIdToIdLookup,dataRowIds:a,dataRowIdToModelLookup:l.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},v({},u,{totalRowCount:Math.max(t,u.dataRowIds.length),totalTopLevelRowCount:P$({tree:u.tree,rowCountProp:t}),groupingName:c,loading:n})},su=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,yx=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let l=0;l<r.children.length;l+=1){const s=r.children[l];(!n||!su(e[s]))&&o.push(s);const i=yx(e,s,n);for(let a=0;a<i.length;a+=1)o.push(i[a])}return!n&&r.footerId!=null&&o.push(r.footerId),o},$q=({previousCache:e,getRowId:t,updates:n})=>{var r,o,l;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const s=new Map;n.forEach(h=>{const g=Xf(h,t,"A row was provided without id when calling updateRows():");s.has(g)?s.set(g,v({},s.get(g),h)):s.set(g,h)});const i={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(l=e.updates.actions.remove)!=null?l:[]]},idToActionLookup:v({},e.updates.idToActionLookup)},a=v({},e.dataRowIdToModelLookup),c=v({},e.dataRowIdToIdLookup),u={insert:{},modify:{},remove:{}};s.forEach((h,g)=>{const m=i.idToActionLookup[g];if(h._action==="delete"){if(m==="remove"||!a[g])return;m!=null&&(u[m][g]=!0),i.actions.remove.push(g),delete a[g],delete c[g];return}const x=a[g];if(x){m==="remove"?(u.remove[g]=!0,i.actions.modify.push(g)):m==null&&i.actions.modify.push(g),a[g]=v({},x,h);return}m==="remove"?(u.remove[g]=!0,i.actions.insert.push(g)):m==null&&i.actions.insert.push(g),a[g]=h,c[g]=g});const d=Object.keys(u);for(let h=0;h<d.length;h+=1){const g=d[h],m=u[g];Object.keys(m).length>0&&(i.actions[g]=i.actions[g].filter(x=>!m[x]))}return{dataRowIdToModelLookup:a,dataRowIdToIdLookup:c,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function M$(e){var t,n;const r=wa(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((s,i)=>(s+=e.current.unstable_getRowHeight(i.id),s),0))||0,l=(r==null||(n=r.bottom)==null?void 0:n.reduce((s,i)=>(s+=e.current.unstable_getRowHeight(i.id),s),0))||0;return{top:o,bottom:l}}function I$(e,t){const n=Sa(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const Eq=Zt("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),Tq=Zt("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),Rq=e=>{const{classes:t}=e;return ae({root:["overlayWrapper"],inner:["overlayWrapperInner"]},qe,t)};function Oq(e){var t,n;const r=Ke(),o=Ee(),[l,s]=f.useState(()=>{var u,d;return(u=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?u:null}),i=f.useCallback(()=>{var u,d;s((u=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?u:null)},[r]);tt(()=>r.current.subscribeEvent("viewportInnerSizeChange",i),[r,i]);let a=(t=l==null?void 0:l.height)!=null?t:0;o.autoHeight&&a===0&&(a=I$(r,o.rowHeight));const c=Rq(v({},e,{classes:o.classes}));return l?p.jsx(Eq,{className:ee(c.root),overlayType:e.overlayType,children:p.jsx(Tq,v({className:ee(c.inner),style:{height:a,width:(n=l==null?void 0:l.width)!=null?n:0}},e))}):null}function _q(){const e=Ke(),t=Ee(),n=Pe(e,Eh),r=Pe(e,w$),o=Pe(e,iq),l=!o&&n===0,s=!o&&n>0&&r===0;let i=null,a="";if(l){var c;i=p.jsx(t.slots.noRowsOverlay,v({},(c=t.slotProps)==null?void 0:c.noRowsOverlay)),a="noRowsOverlay"}if(s){var u;i=p.jsx(t.slots.noResultsOverlay,v({},(u=t.slotProps)==null?void 0:u.noResultsOverlay)),a="noResultsOverlay"}if(o){var d;i=p.jsx(t.slots.loadingOverlay,v({},(d=t.slotProps)==null?void 0:d.loadingOverlay)),a="loadingOverlay"}return i===null?null:p.jsx(Oq,{overlayType:a,children:i})}function Fh(e){return f.memo(e,g$)}let Wg;function Fq(){return Wg===void 0&&document.createElement("div").focus({get preventScroll(){return Wg=!0,!1}}),Wg}var $o=function(e){return e.Cell="cell",e.Row="row",e}($o||{}),it=function(e){return e.Edit="edit",e.View="view",e}(it||{}),gt=function(e){return e.Edit="edit",e.View="view",e}(gt||{}),Hn=function(e){return e.And="and",e.Or="or",e}(Hn||{}),Ro=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(Ro||{}),Ur=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Ur||{}),al=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(al||{}),Oo=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Oo||{});function $$(e){return e.field!==void 0}function jq(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Dq(e,t){return e.closest(`.${t}`)}function xx(e){return e.replace(/["\\]/g,"\\$&")}function Aq(e,t){return e.querySelector(`[role="columnheader"][data-field="${xx(t)}"]`)}function E$(e){return`.${z.row}[data-id="${xx(String(e))}"]`}function Lq(e,t){return e.querySelector(E$(t))}function Nq(e,{id:t,field:n}){const r=E$(t),o=`.${z.cell}[data-field="${xx(n)}"]`,l=`${r} ${o}`;return e.querySelector(l)}function Fu(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function Ue(e,t,n){const r=f.useRef(!0);f.useEffect(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}class Si extends Error{}function Hq(e,t){const{getRowId:n}=t,r=f.useCallback(m=>({field:m,colDef:e.current.getColumn(m)}),[e]),o=f.useCallback(m=>{const x=e.current.getRow(m);if(!x)throw new Si(`No row with id #${m} found`);return{id:m,columns:e.current.getAllColumns(),row:x}},[e]),l=f.useCallback((m,x)=>{const w=e.current.getRow(m),b=e.current.getRowNode(m);if(!w||!b)throw new Si(`No row with id #${m} found`);const y=er(e),C=Yf(e);return{id:m,field:x,row:w,rowNode:b,value:w[x],colDef:e.current.getColumn(x),cellMode:e.current.getCellMode(m,x),api:e.current,hasFocus:y!==null&&y.field===x&&y.id===m,tabIndex:C&&C.field===x&&C.id===m?0:-1}},[e]),s=f.useCallback((m,x)=>{const w=e.current.getColumn(x),b=e.current.getCellValue(m,x),y=e.current.getRow(m),C=e.current.getRowNode(m);if(!y||!C)throw new Si(`No row with id #${m} found`);const S=er(e),I=Yf(e),P={id:m,field:x,row:y,rowNode:C,colDef:w,cellMode:e.current.getCellMode(m,x),hasFocus:S!==null&&S.field===x&&S.id===m,tabIndex:I&&I.field===x&&I.id===m?0:-1,value:b,formattedValue:b,isEditable:!1};return w&&w.valueFormatter&&(P.formattedValue=w.valueFormatter({id:m,field:P.field,value:P.value,api:e.current})),P.isEditable=w&&e.current.isCellEditable(P),P},[e]),i=f.useCallback((m,x)=>{const w=e.current.getColumn(x);if(!w||!w.valueGetter){const b=e.current.getRow(m);if(!b)throw new Si(`No row with id #${m} found`);return b[x]}return w.valueGetter(l(m,x))},[e,l]),a=f.useCallback((m,x)=>{var w;const b=Fi in m?m[Fi]:(w=n==null?void 0:n(m))!=null?w:m.id,y=x.field;return!x||!x.valueGetter?m[y]:x.valueGetter(l(b,y))},[l,n]),c=f.useCallback((m,x)=>{var w;const b=a(m,x);if(!x||!x.valueFormatter)return b;const y=(w=n?n(m):m.id)!=null?w:m[Fi],C=x.field;return x.valueFormatter({id:y,field:C,value:b,api:e.current})},[e,n,a]),u=f.useCallback(m=>e.current.rootElementRef.current?Aq(e.current.rootElementRef.current,m):null,[e]),d=f.useCallback(m=>e.current.rootElementRef.current?Lq(e.current.rootElementRef.current,m):null,[e]),h=f.useCallback((m,x)=>e.current.rootElementRef.current?Nq(e.current.rootElementRef.current,{id:m,field:x}):null,[e]);Ue(e,{getCellValue:i,getCellParams:s,getCellElement:h,getRowValue:a,getRowFormattedValue:c,getRowParams:o,getRowElement:d,getColumnHeaderParams:r,getColumnHeaderElement:u},"public")}const zq=["changeReason","unstable_updateValueOnRender"],Bq=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","isNotVisible","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver","style"],Vq=["changeReason","unstable_updateValueOnRender"],Qf={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:it.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},Uq=e=>{const{align:t,showRightBorder:n,isEditable:r,isSelected:o,isSelectionMode:l,classes:s}=e,i={root:["cell",`cell--text${te(t)}`,r&&"cell--editable",o&&"selected",n&&"cell--withRightBorder",l&&!r&&"cell--selectionMode","withBorderColor"],content:["cellContent"]};return ae(i,qe,s)},Wq=f.forwardRef((e,t)=>{const{column:n,rowId:r,editCellState:o}=e,l=Ke(),s=Ee(),i=n.field,a=Pe(l,()=>{try{const D=l.current.getCellParams(r,i);return D.api=l.current,D}catch($){if($ instanceof Si)return Qf;throw $}},fx),c=Pe(l,()=>l.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:i}));if(a===Qf)return null;const{cellMode:u,hasFocus:d,isEditable:h,value:g,formattedValue:m}=a,x=n.type==="actions",w=(u==="view"||!h)&&!x?a.tabIndex:-1,{classes:b,getCellClassName:y}=s,C=l.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:i});n.cellClassName&&C.push(typeof n.cellClassName=="function"?n.cellClassName(a):n.cellClassName),y&&C.push(y(a));let S;if(o==null&&n.renderCell&&(S=n.renderCell(a),C.push(z["cell--withRenderer"]),C.push(b==null?void 0:b["cell--withRenderer"])),o!=null&&n.renderEditCell){const $=l.current.getRowWithUpdatedValues(r,n.field),D=W(o,zq),O=v({},a,{row:$},D);S=n.renderEditCell(O),C.push(z["cell--editing"]),C.push(b==null?void 0:b["cell--editing"])}const{slots:I}=s,P=I.cell,k=v({},e,{ref:t,field:i,formattedValue:m,hasFocus:d,isEditable:h,isSelected:c,value:g,cellMode:u,children:S,tabIndex:w,className:ee(C)});return f.createElement(P,k)}),Gq=Fh(Wq),Kq=f.forwardRef((e,t)=>{var n,r,o,l;const{column:s,rowId:i,editCellState:a,align:c,colIndex:u,height:d,width:h,className:g,showRightBorder:m,colSpan:x,disableDragEvents:w,isNotVisible:b,onClick:y,onDoubleClick:C,onMouseDown:S,onMouseUp:I,onMouseOver:P,onKeyDown:k,onKeyUp:$,onDragEnter:D,onDragOver:O,style:R}=e,L=W(e,Bq),_=Ke(),M=Ee(),T=s.field,j=Pe(_,()=>{try{const ce=_.current.getCellParams(i,T);return ce.api=_.current,ce}catch(re){if(re instanceof Si)return Qf;throw re}},fx),A=Pe(_,()=>_.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:i,field:T})),{cellMode:E,hasFocus:F,isEditable:N,value:V,formattedValue:H}=j,Q=s.type==="actions"&&((n=(r=s).getActions)==null?void 0:n.call(r,_.current.getRowParams(i)).some(re=>!re.props.disabled)),q=(E==="view"||!N)&&!Q?j.tabIndex:-1,{classes:Z,getCellClassName:le}=M,fe=_.current.unstable_applyPipeProcessors("cellClassName",[],{id:i,field:T});s.cellClassName&&fe.push(typeof s.cellClassName=="function"?s.cellClassName(j):s.cellClassName),le&&fe.push(le(j));const me=H??V,Y=f.useRef(null),oe=nt(t,Y),J=f.useRef(null),U=(o=M.unstable_cellSelection)!=null?o:!1,ue={align:c,showRightBorder:m,isEditable:N,classes:M.classes,isSelected:A,isSelectionMode:U},pe=Uq(ue),de=f.useCallback(re=>ce=>{const ye=_.current.getCellParams(i,T||"");_.current.publishEvent(re,ye,ce),I&&I(ce)},[_,T,I,i]),G=f.useCallback(re=>ce=>{const ye=_.current.getCellParams(i,T||"");_.current.publishEvent(re,ye,ce),S&&S(ce)},[_,T,S,i]),se=f.useCallback((re,ce)=>ye=>{if(!_.current.getRow(i))return;const _e=_.current.getCellParams(i,T||"");_.current.publishEvent(re,_e,ye),ce&&ce(ye)},[_,T,i]),ie=f.useMemo(()=>v(b?{padding:0,opacity:0,width:0,border:0}:{minWidth:h,maxWidth:h,minHeight:d,maxHeight:d==="auto"?"none":d},R),[h,d,b,R]);if(f.useEffect(()=>{if(!F||E===it.Edit)return;const re=Tt(_.current.rootElementRef.current);if(Y.current&&!Y.current.contains(re.activeElement)){const ce=Y.current.querySelector('[tabindex="0"]'),ye=J.current||ce||Y.current;if(Fq())ye.focus({preventScroll:!0});else{const _e=_.current.getScrollPosition();ye.focus(),_.current.scroll(_e)}}},[F,E,_]),j===Qf)return null;let ke=L.onFocus,we;if(a==null&&s.renderCell&&(we=s.renderCell(j),fe.push(z["cell--withRenderer"]),fe.push(Z==null?void 0:Z["cell--withRenderer"])),a!=null&&s.renderEditCell){const re=_.current.getRowWithUpdatedValues(i,s.field),ce=W(a,Vq),ye=v({},j,{row:re},ce);we=s.renderEditCell(ye),fe.push(z["cell--editing"]),fe.push(Z==null?void 0:Z["cell--editing"])}if(we===void 0){const re=me==null?void 0:me.toString();we=p.jsx("div",{className:pe.content,title:re,role:"presentation",children:re})}f.isValidElement(we)&&Q&&(we=f.cloneElement(we,{focusElementRef:J}));const Se=w?null:{onDragEnter:se("cellDragEnter",D),onDragOver:se("cellDragOver",O)},ve=(l=M.experimentalFeatures)==null?void 0:l.ariaV7;return p.jsx("div",v({ref:oe,className:ee(g,fe,pe.root),role:ve?"gridcell":"cell","data-field":T,"data-colindex":u,"aria-colindex":u+1,"aria-colspan":x,style:ie,tabIndex:q,onClick:se("cellClick",y),onDoubleClick:se("cellDoubleClick",C),onMouseOver:se("cellMouseOver",P),onMouseDown:G("cellMouseDown"),onMouseUp:de("cellMouseUp"),onKeyDown:se("cellKeyDown",k),onKeyUp:se("cellKeyUp",$)},Se,L,{onFocus:ke,children:we}))}),xv=Fh(Kq),qq=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"],Yq=e=>{const{classes:t}=e;return ae({root:["booleanCell"]},qe,t)};function Xq(e){const{value:t}=e,n=W(e,qq),r=Ke(),o=Ee(),l={classes:o.classes},s=Yq(l),i=f.useMemo(()=>t?o.slots.booleanCellTrueIcon:o.slots.booleanCellFalseIcon,[o.slots.booleanCellFalseIcon,o.slots.booleanCellTrueIcon,t]);return p.jsx(i,v({fontSize:"small",className:s.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},n))}const Qq=f.memo(Xq),Zq=e=>su(e.rowNode)?"":p.jsx(Qq,v({},e)),Jq=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],eY=e=>{const{classes:t}=e;return ae({root:["editBooleanCell"]},qe,t)};function tY(e){var t;const{id:n,value:r,field:o,className:l,hasFocus:s,onValueChange:i}=e,a=W(e,Jq),c=Ke(),u=f.useRef(null),d=ct(),[h,g]=f.useState(r),m=Ee(),x={classes:m.classes},w=eY(x),b=f.useCallback(async y=>{const C=y.target.checked;i&&await i(y,C),g(C),await c.current.setEditCellValue({id:n,field:o,value:C},y)},[c,o,n,i]);return f.useEffect(()=>{g(r)},[r]),tt(()=>{s&&u.current.focus()},[s]),p.jsx("label",v({htmlFor:d,className:ee(w.root,l)},a,{children:p.jsx(m.slots.baseCheckbox,v({id:d,inputRef:u,checked:!!h,onChange:b,size:"small"},(t=m.slotProps)==null?void 0:t.baseCheckbox))}))}const nY=e=>p.jsx(tY,v({},e)),rY=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],oY=X(ba)({fontSize:"inherit"}),lY=e=>{const{classes:t}=e;return ae({root:["editInputCell"]},qe,t)};function sY(e){const{id:t,value:n,field:r,colDef:o,hasFocus:l,inputProps:s,onValueChange:i}=e,a=W(e,rY),c=o.type==="dateTime",u=Ke(),d=f.useRef(),h=f.useMemo(()=>{let S;n==null?S=null:n instanceof Date?S=n:S=new Date((n??"").toString());let I;return S==null||Number.isNaN(S.getTime())?I="":I=new Date(S.getTime()-S.getTimezoneOffset()*60*1e3).toISOString().substr(0,c?16:10),{parsed:S,formatted:I}},[n,c]),[g,m]=f.useState(h),w={classes:Ee().classes},b=lY(w),y=f.useCallback(S=>{if(S==="")return null;const[I,P]=S.split("T"),[k,$,D]=I.split("-"),O=new Date;if(O.setFullYear(Number(k),Number($)-1,Number(D)),O.setHours(0,0,0,0),P){const[R,L]=P.split(":");O.setHours(Number(R),Number(L),0,0)}return O},[]),C=f.useCallback(async S=>{const I=S.target.value,P=y(I);i&&await i(S,P),m({parsed:P,formatted:I}),u.current.setEditCellValue({id:t,field:r,value:P},S)},[u,r,t,i,y]);return f.useEffect(()=>{m(S=>{var I,P;return h.parsed!==S.parsed&&((I=h.parsed)==null?void 0:I.getTime())!==((P=S.parsed)==null?void 0:P.getTime())?h:S})},[h]),tt(()=>{l&&d.current.focus()},[l]),p.jsx(oY,v({inputRef:d,fullWidth:!0,className:b.root,type:c?"datetime-local":"date",inputProps:v({max:c?"9999-12-31T23:59":"9999-12-31"},s),value:g.formatted,onChange:C},a))}const T$=e=>p.jsx(sY,v({},e)),iY=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],aY=e=>{const{classes:t}=e;return ae({root:["editInputCell"]},qe,t)},cY=X(ba,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>v({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),uY=f.forwardRef((e,t)=>{const n=Ee(),{id:r,value:o,field:l,colDef:s,hasFocus:i,debounceMs:a=200,isProcessingProps:c,onValueChange:u}=e,d=W(e,iY),h=Ke(),g=f.useRef(),[m,x]=f.useState(o),w=aY(n),b=f.useCallback(async C=>{const S=C.target.value;u&&await u(C,S);const I=h.current.getColumn(l);let P=S;I.valueParser&&(P=I.valueParser(S,h.current.getCellParams(r,l))),x(P),h.current.setEditCellValue({id:r,field:l,value:P,debounceMs:a,unstable_skipValueParser:!0},C)},[h,a,l,r,u]),y=h.current.unstable_getEditCellMeta(r,l);return f.useEffect(()=>{(y==null?void 0:y.changeReason)!=="debouncedSetEditCellValue"&&x(o)},[y,o]),tt(()=>{i&&g.current.focus()},[i]),p.jsx(cY,v({ref:t,inputRef:g,className:w.root,ownerState:n,fullWidth:!0,type:s.type==="number"?s.type:"text",value:m??"",onChange:b,endAdornment:c?p.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},d))}),dY=e=>p.jsx(uY,v({},e)),Zf=e=>e==="Escape",fY=e=>e==="Enter",R$=e=>e==="Tab",O$=e=>e===" ",pY=e=>e.indexOf("Arrow")===0,hY=e=>e==="Home"||e==="End",gY=e=>e.indexOf("Page")===0;function _$(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const Jf=e=>hY(e)||pY(e)||gY(e)||O$(e),mY=e=>!!e.key,vY=e=>R$(e)||Zf(e);function gs(e){return(e==null?void 0:e.type)==="singleSelect"}function bv(e,t,n){if(t===void 0)return;const r=t.find(o=>{const l=n(o);return String(l)===String(e)});return n(r)}const yY=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],xY=["MenuProps"];function bY(e){return!!e.key}function CY(e){var t,n,r;const o=Ee(),{id:l,value:s,field:i,row:a,colDef:c,hasFocus:u,error:d,onValueChange:h,initialOpen:g=o.editMode===$o.Cell,getOptionLabel:m,getOptionValue:x}=e,w=W(e,yY),b=Ke(),y=f.useRef(),C=f.useRef(),[S,I]=f.useState(g),k=(n=(((t=o.slotProps)==null?void 0:t.baseSelect)||{}).native)!=null?n:!1,$=((r=o.slotProps)==null?void 0:r.baseSelect)||{},{MenuProps:D}=$,O=W($,xY);if(tt(()=>{if(u){var A;(A=C.current)==null||A.focus()}},[u]),!gs(c))return null;let R;if(typeof(c==null?void 0:c.valueOptions)=="function"?R=c==null?void 0:c.valueOptions({id:l,row:a,field:i}):R=c==null?void 0:c.valueOptions,!R)return null;const L=x||c.getOptionValue,_=m||c.getOptionLabel,M=async A=>{if(!gs(c)||!R)return;I(!1);const E=A.target,F=bv(E.value,R,L);h&&await h(A,F),await b.current.setEditCellValue({id:l,field:i,value:F},A)},T=(A,E)=>{if(o.editMode===$o.Row){I(!1);return}if(E==="backdropClick"||Zf(A.key)){const F=b.current.getCellParams(l,i);b.current.publishEvent("cellEditStop",v({},F,{reason:Zf(A.key)?Ur.escapeKeyDown:Ur.cellFocusOut}))}},j=A=>{bY(A)&&A.key==="Enter"||I(!0)};return!R||!c?null:p.jsx(o.slots.baseSelect,v({ref:y,inputRef:C,value:s,onChange:M,open:S,onOpen:j,MenuProps:v({onClose:T},D),error:d,native:k,fullWidth:!0},w,O,{children:R.map(A=>{var E;const F=L(A);return f.createElement(o.slots.baseSelectOption,v({},((E=o.slotProps)==null?void 0:E.baseSelectOption)||{},{native:k,key:F,value:F}),_(A))})}))}const wY=e=>p.jsx(CY,v({},e)),SY=["open","target","onClose","children","position","className","onExited"],PY=e=>{const{classes:t}=e;return ae({root:["menu"]},qe,t)},kY=X(As,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${z.menuList}`]:{outline:0}})),MY={"bottom-start":"top left","bottom-end":"top right"};function F$(e){var t;const{open:n,target:r,onClose:o,children:l,position:s,className:i,onExited:a}=e,c=W(e,SY),u=Ke(),d=Ee(),h=PY(d),g=f.useRef(null);tt(()=>{if(n)g.current=document.activeElement instanceof HTMLElement?document.activeElement:null;else{var w,b;(w=g.current)==null||(b=w.focus)==null||b.call(w),g.current=null}},[n]),f.useEffect(()=>{const w=n?"menuOpen":"menuClose";u.current.publishEvent(w,{target:r})},[u,n,r]);const m=w=>b=>{w&&w(),a&&a(b)},x=w=>{w.target&&(r===w.target||r!=null&&r.contains(w.target))||o(w)};return p.jsx(kY,v({as:d.slots.basePopper,className:ee(i,h.root),ownerState:d,open:n,anchorEl:r,transition:!0,placement:s},c,(t=d.slotProps)==null?void 0:t.basePopper,{children:({TransitionProps:w,placement:b})=>p.jsx(A2,{onClickAway:x,mouseEvent:"onMouseDown",children:p.jsx(Sf,v({},w,{style:{transformOrigin:MY[b]},onExited:m(w==null?void 0:w.onExited),children:p.jsx(_n,{children:l})}))})}))}const IY=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],$Y=e=>typeof e.getActions=="function";function EY(e){var t;const{colDef:n,id:r,hasFocus:o,tabIndex:l,position:s="bottom-end",focusElementRef:i}=e,a=W(e,IY),[c,u]=f.useState(-1),[d,h]=f.useState(!1),g=Ke(),m=f.useRef(null),x=f.useRef(null),w=f.useRef(!1),b=f.useRef({}),y=on(),C=ct(),S=ct(),I=Ee();if(!$Y(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const P=n.getActions(g.current.getRowParams(r)),k=P.filter(j=>!j.props.showInMenu),$=P.filter(j=>j.props.showInMenu),D=k.length+($.length?1:0);f.useLayoutEffect(()=>{o||Object.entries(b.current).forEach(([j,A])=>{A==null||A.stop({},()=>{delete b.current[j]})})},[o]),f.useEffect(()=>{if(c<0||!m.current||c>=m.current.children.length)return;m.current.children[c].focus({preventScroll:!0})},[c]),f.useEffect(()=>{o||(u(-1),w.current=!1)},[o]),f.useImperativeHandle(i,()=>({focus(){if(!w.current){const j=P.findIndex(A=>!A.props.disabled);u(j)}}}),[P]),f.useEffect(()=>{c>=D&&u(D-1)},[c,D]);const O=()=>{h(!0),u(D-1),w.current=!0},R=()=>{h(!1)},L=j=>A=>{b.current[j]=A},_=(j,A)=>E=>{u(j),w.current=!0,A&&A(E)},M=j=>{if(D<=1)return;const A=(F,N)=>{var V;if(F<0||F>P.length)return F;const H=y.direction==="rtl"?-1:1,Q=(N==="left"?-1:1)*H;return(V=P[F+Q])!=null&&V.props.disabled?A(F+Q,N):F+Q};let E=c;j.key==="ArrowRight"?E=A(c,"right"):j.key==="ArrowLeft"&&(E=A(c,"left")),!(E<0||E>=D)&&E!==c&&(j.preventDefault(),j.stopPropagation(),u(E))},T=j=>{j.key==="Tab"&&j.preventDefault(),["Tab","Escape"].includes(j.key)&&R()};return p.jsxs("div",v({role:"menu",ref:m,tabIndex:-1,className:z.actionsCell,onKeyDown:M},a,{children:[k.map((j,A)=>f.cloneElement(j,{key:A,touchRippleRef:L(A),onClick:_(A,j.props.onClick),tabIndex:c===A?l:-1})),$.length>0&&S&&p.jsx(I.slots.baseIconButton,v({ref:x,id:S,"aria-label":g.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":d,"aria-controls":d?C:void 0,role:"menuitem",size:"small",onClick:O,touchRippleRef:L(S),tabIndex:c===k.length?l:-1},(t=I.slotProps)==null?void 0:t.baseIconButton,{children:p.jsx(I.slots.moreActionsIcon,{fontSize:"small"})})),$.length>0&&p.jsx(F$,{open:d,target:x.current,position:s,onClose:R,children:p.jsx(iy,{id:C,className:z.menuList,onKeyDown:T,"aria-labelledby":S,variant:"menu",autoFocusItem:!0,children:$.map((j,A)=>f.cloneElement(j,{key:A,closeMenu:R}))})})]}))}const TY=e=>p.jsx(EY,v({},e)),RY=["field","align","width","contentWidth"],OY=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${te(t)}`,"withBorderColor"]};return ae(r,qe,n)};function _Y(e){const{align:t,width:n,contentWidth:r}=e,o=W(e,RY),s={classes:Ee().classes,align:t},i=OY(s);return p.jsx("div",v({className:i.root,style:{width:n}},o,{children:p.jsx(RB,{width:`${r}%`})}))}function FY(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?Gi(je(e.palette.divider,1),.88):Wi(je(e.palette.divider,1),.68)}const Nw={[`.${z.columnSeparator}, .${z["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},Hw={[`& .${z.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${z.menuIcon}`]:{width:"auto",visibility:"visible"}},jY=X("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${z.autoHeight}`]:t.autoHeight},{[`&.${z.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${z["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${z["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${z["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${z.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${z["root--disableUserSelection"]} .${z.cell}`]:t["root--disableUserSelection"]},{[`&.${z.autosizing}`]:t.autosizing},{[`& .${z.editBooleanCell}`]:t.editBooleanCell},{[`& .${z["cell--editing"]}`]:t["cell--editing"]},{[`& .${z["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${z["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${z["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${z["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${z.cell}`]:t.cell},{[`& .${z["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${z["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${z["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${z["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${z["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${z.cellContent}`]:t.cellContent},{[`& .${z.cellCheckbox}`]:t.cellCheckbox},{[`& .${z.cellSkeleton}`]:t.cellSkeleton},{[`& .${z.checkboxInput}`]:t.checkboxInput},{[`& .${z["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${z["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${z["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${z["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${z["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${z["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${z["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${z["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${z["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${z.columnHeader}`]:t.columnHeader},{[`& .${z.headerFilterRow}`]:t.headerFilterRow},{[`& .${z.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${z.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${z.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${z["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${z["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${z.columnSeparator}`]:t.columnSeparator},{[`& .${z.filterIcon}`]:t.filterIcon},{[`& .${z.iconSeparator}`]:t.iconSeparator},{[`& .${z.menuIcon}`]:t.menuIcon},{[`& .${z.menuIconButton}`]:t.menuIconButton},{[`& .${z.menuOpen}`]:t.menuOpen},{[`& .${z.menuList}`]:t.menuList},{[`& .${z["row--editable"]}`]:t["row--editable"]},{[`& .${z["row--editing"]}`]:t["row--editing"]},{[`& .${z["row--dragging"]}`]:t["row--dragging"]},{[`& .${z.row}`]:t.row},{[`& .${z.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${z.rowReorderCell}`]:t.rowReorderCell},{[`& .${z["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${z.sortIcon}`]:t.sortIcon},{[`& .${z.withBorderColor}`]:t.withBorderColor},{[`& .${z.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${z.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${z.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${z["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=FY(e),n=e.shape.borderRadius;return v({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:je(e.palette.background.default,e.palette.action.disabledOpacity),"--DataGrid-cellOffsetMultiplier":2,flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:t,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflowAnchor:"none",[`&.${z.autoHeight}`]:{height:"auto",[`& .${z["row--lastVisible"]} .${z.cell}`]:{borderBottomColor:"transparent"}},[`&.${z.autosizing}`]:{[`& .${z.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},[`& .${z.cell} > *`]:{overflow:"visible !important",whiteSpace:"nowrap"},[`& .${z.groupingCriteriaCell}`]:{width:"unset"},[`& .${z.treeDataGroupingCell}`]:{width:"unset"}},[`& .${z["virtualScrollerContent--overflowed"]} .${z["row--lastVisible"]} .${z.cell}`]:{borderBottomColor:"transparent"},[`& .${z.columnHeader}, & .${z.cell}`]:{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"},[`& .${z.columnHeader}:focus-within, & .${z.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:je(e.palette.primary.main,.5)} 1px`,outlineWidth:1,outlineOffset:-1},[`& .${z.columnHeader}:focus, & .${z.cell}:focus`]:{outline:`solid ${e.palette.primary.main} 1px`},[`& .${z.columnHeaderCheckbox}, & .${z.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${z.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${z["columnHeader--sorted"]} .${z.iconButtonContainer}, & .${z["columnHeader--filtered"]} .${z.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${z.columnHeader}:not(.${z["columnHeader--sorted"]}) .${z.sortIcon}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${z.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden",position:"relative"},[`& .${z.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${z["columnHeader--filledGroup"]} .${z.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${z["columnHeader--filledGroup"]}.${z["columnHeader--showColumnBorder"]} .${z.columnHeaderTitleContainer}`]:{borderBottom:"none"},[`& .${z["columnHeader--filledGroup"]}.${z["columnHeader--showColumnBorder"]}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${z.headerFilterRow}`]:{borderTop:`1px solid ${t}`},[`& .${z.sortIcon}, & .${z.filterIcon}`]:{fontSize:"inherit"},[`& .${z["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${z["columnHeader--alignCenter"]} .${z.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${z["columnHeader--alignRight"]} .${z.columnHeaderDraggableContainer}, & .${z["columnHeader--alignRight"]} .${z.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${z["columnHeader--alignCenter"]} .${z.menuIcon}, & .${z["columnHeader--alignRight"]} .${z.menuIcon}`]:{marginRight:"auto",marginLeft:-6},[`& .${z["columnHeader--alignRight"]} .${z.menuIcon}, & .${z["columnHeader--alignRight"]} .${z.menuIcon}`]:{marginRight:"auto",marginLeft:-10},[`& .${z["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${z.columnSeparator}`]:{visibility:"hidden",position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:t},"@media (hover: hover)":{[`& .${z.columnHeaders}:hover`]:Nw,[`& .${z.columnHeader}:hover`]:Hw,[`& .${z.columnHeader}:not(.${z["columnHeader--sorted"]}):hover .${z.sortIcon}`]:{opacity:.5}},"@media (hover: none)":{[`& .${z.columnHeaders}`]:Nw,[`& .${z.columnHeader}`]:Hw},[`& .${z["columnSeparator--sideLeft"]}`]:{left:-12},[`& .${z["columnSeparator--sideRight"]}`]:{right:-12},[`& .${z["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none","&:hover":{color:(e.vars||e).palette.text.primary,"@media (hover: none)":{color:t}},[`&.${z["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.text.primary},"& svg":{pointerEvents:"none"}},[`& .${z.iconSeparator}`]:{color:"inherit"},[`& .${z.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"},[`.${z.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${z.row}`]:{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(
${e.vars.palette.action.selectedOpacity} +
${e.vars.palette.action.hoverOpacity}
))`:je(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})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${z.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:je(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:je(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})`:je(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${z["root--disableUserSelection"]} .${z.cell}`]:{userSelect:"none"},[`& .${z.row}:not(.${z["row--dynamicHeight"]}) > .${z.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${z.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${z.cell}.${z["cell--selectionMode"]}`]:{cursor:"default"},[`& .${z.cell}.${z["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${z["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${z["row--editing"]} .${z.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${z.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${z.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${z.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${z.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${z.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${z["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${z.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${z.withBorderColor}`]:{borderColor:t},[`& .${z["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${z["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${z["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${z["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${z["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${z.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${z.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${z["columnHeader--dragging"]}, & .${z["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${z["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${z.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${z.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${z.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${z.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${z.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),DY=["children","className"],AY=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${te(n)}`,"withBorderColor"]};return ae(o,qe,r)},LY=f.forwardRef(function(t,n){var r;const o=Ee(),{children:l,className:s}=t,i=W(t,DY),a=Ul(),c=Pe(a,Sq),u=f.useRef(null),d=nt(u,n),h=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:y$,g=typeof h=="function"?h():null,m=v({},o,{density:c}),x=AY(m);a.current.register("public",{rootElementRef:u});const[w,b]=f.useState(!1);return tt(()=>{b(!0)},[]),w?p.jsx(jY,v({ref:d,className:ee(s,x.root),ownerState:m},g,i,{children:l})):null}),NY=["className"],HY=e=>{const{classes:t}=e;return ae({root:["footerContainer","withBorderColor"]},qe,t)},zY=Zt("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),BY=f.forwardRef(function(t,n){const{className:r}=t,o=W(t,NY),l=Ee(),s=HY(l);return p.jsx(zY,v({ref:n,className:ee(s.root,r),ownerState:l},o))}),VY=["className"],UY=e=>{const{classes:t}=e;return ae({root:["overlay"]},qe,t)},WY=Zt("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),bx=f.forwardRef(function(t,n){const{className:r}=t,o=W(t,VY),l=Ee(),s=UY(l);return p.jsx(WY,v({ref:n,className:ee(s.root,r),ownerState:l},o))}),GY=["className"],KY=e=>{const{classes:t}=e;return ae({root:["iconButtonContainer"]},qe,t)},qY=Zt("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),j$=f.forwardRef(function(t,n){const{className:r}=t,o=W(t,GY),l=Ee(),s=KY(l);return p.jsx(qY,v({ref:n,className:ee(s.root,r),ownerState:l},o))}),YY=e=>{const{classes:t}=e;return ae({icon:["sortIcon"]},qe,t)};function XY(e,t,n,r){let o;const l={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,l.sortingOrder=r),o?p.jsx(o,v({fontSize:"small",className:n},l)):null}function QY(e){var t;const{direction:n,index:r,sortingOrder:o}=e,l=Ke(),s=Ee(),i=v({},e,{classes:s.classes}),a=YY(i),c=XY(s.slots,n,a.icon,o);if(!c)return null;const u=p.jsx(s.slots.baseIconButton,v({tabIndex:-1,"aria-label":l.current.getLocaleText("columnHeaderSortIconLabel"),title:l.current.getLocaleText("columnHeaderSortIconLabel"),size:"small"},(t=s.slotProps)==null?void 0:t.baseIconButton,{children:c}));return p.jsxs(j$,{children:[r!=null&&p.jsx(lM,{badgeContent:r,color:"default",children:u}),r==null&&u]})}const ZY=f.memo(QY),JY=e=>{const{classes:t,open:n}=e;return ae({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},qe,t)},eX=f.memo(e=>{var t,n;const{colDef:r,open:o,columnMenuId:l,columnMenuButtonId:s,iconButtonRef:i}=e,a=Ke(),c=Ee(),u=v({},e,{classes:c.classes}),d=JY(u),h=f.useCallback(g=>{g.preventDefault(),g.stopPropagation(),a.current.toggleColumnMenu(r.field)},[a,r.field]);return p.jsx("div",{className:d.root,children:p.jsx(c.slots.baseTooltip,v({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(t=c.slotProps)==null?void 0:t.baseTooltip,{children:p.jsx(c.slots.baseIconButton,v({ref:i,tabIndex:-1,className:d.button,"aria-label":a.current.getLocaleText("columnMenuLabel"),size:"small",onClick:h,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?l:void 0,id:s},(n=c.slotProps)==null?void 0:n.baseIconButton,{children:p.jsx(c.slots.columnMenuIcon,{fontSize:"small"})}))}))})});function tX({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:l,target:s,onExited:i}){const a=Ke(),c=a.current.getColumn(o),u=wt(d=>{d&&(d.stopPropagation(),s!=null&&s.contains(d.target))||a.current.hideColumnMenu()});return!s||!c?null:p.jsx(F$,{placement:`bottom-${c.align==="right"?"start":"end"}`,open:l,target:s,onClose:u,onExited:i,children:p.jsx(n,v({colDef:c,hideMenu:u,open:l,id:e,labelledby:t},r))})}const nX=["className"],rX=e=>{const{classes:t}=e;return ae({root:["columnHeaderTitle"]},qe,t)},oX=Zt("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)"}),lX=f.forwardRef(function(t,n){const{className:r}=t,o=W(t,nX),l=Ee(),s=rX(l);return p.jsx(oX,v({ref:n,className:ee(s.root,r),ownerState:l},o))});function sX(e){var t;const{label:n,description:r}=e,o=Ee(),l=f.useRef(null),[s,i]=f.useState(""),a=f.useCallback(()=>{if(!r&&l!=null&&l.current){const c=jq(l.current);i(c?n:"")}},[r,n]);return p.jsx(o.slots.baseTooltip,v({title:r||s},(t=o.slotProps)==null?void 0:t.baseTooltip,{children:p.jsx(lX,{onMouseOver:a,ref:l,children:n})}))}const iX=["resizable","resizing","height","side"];var D$=function(e){return e.Left="left",e.Right="right",e}(D$||{});const aX=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,l={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${te(o)}`],icon:["iconSeparator"]};return ae(l,qe,r)};function cX(e){const{height:t,side:n=D$.Right}=e,r=W(e,iX),o=Ee(),l=v({},e,{side:n,classes:o.classes}),s=aX(l),i=f.useCallback(a=>{a.preventDefault(),a.stopPropagation()},[]);return p.jsx("div",v({className:s.root,style:{minHeight:t,opacity:o.showColumnVerticalBorder?0:1}},r,{onClick:i,children:p.jsx(o.slots.columnResizeIcon,{className:s.icon})}))}const uX=f.memo(cX),dX=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps"],A$=f.forwardRef(function(t,n){const{classes:r,columnMenuOpen:o,colIndex:l,height:s,isResizing:i,sortDirection:a,hasFocus:c,tabIndex:u,separatorSide:d,isDraggable:h,headerComponent:g,description:m,width:x,columnMenuIconButton:w=null,columnMenu:b=null,columnTitleIconButtons:y=null,headerClassName:C,label:S,resizable:I,draggableContainerProps:P,columnHeaderSeparatorProps:k}=t,$=W(t,dX),D=Ul(),O=Ee(),R=f.useRef(null),[L,_]=f.useState(o),M=nt(R,n);let T="none";return a!=null&&(T=a==="asc"?"ascending":"descending"),f.useEffect(()=>{L||_(o)},[L,o]),f.useLayoutEffect(()=>{const j=D.current.state.columnMenu;if(c&&!j.open){const E=R.current.querySelector('[tabindex="0"]')||R.current;E==null||E.focus(),D.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[D,c]),p.jsxs("div",v({ref:M,className:ee(r.root,C),style:{height:s,width:x,minWidth:x,maxWidth:x},role:"columnheader",tabIndex:u,"aria-colindex":l+1,"aria-sort":T,"aria-label":g==null?S:void 0},$,{children:[p.jsxs("div",v({className:r.draggableContainer,draggable:h,role:"presentation"},P,{children:[p.jsxs("div",{className:r.titleContainer,role:"presentation",children:[p.jsx("div",{className:r.titleContainerContent,children:g!==void 0?g:p.jsx(sX,{label:S,description:m,columnWidth:x})}),y]}),w]})),p.jsx(uX,v({resizable:!O.disableColumnResize&&!!I,resizing:i,height:s,side:d},k)),b]}))}),fX=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:l,filterItemsCounter:s}=e,i=o!=null,a=s!=null&&s>0,c=t.type==="number",u={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",i&&"columnHeader--sorted",a&&"columnHeader--filtered",c&&"columnHeader--numeric","withBorderColor",l&&"columnHeader--withRightBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return ae(u,qe,n)};function pX(e){var t,n,r,o;const{colDef:l,columnMenuOpen:s,colIndex:i,headerHeight:a,isResizing:c,sortDirection:u,sortIndex:d,filterItemsCounter:h,hasFocus:g,tabIndex:m,disableReorder:x,separatorSide:w}=e,b=Ul(),y=Ee(),C=f.useRef(null),S=ct(),I=ct(),P=f.useRef(null),[k,$]=f.useState(s),D=f.useMemo(()=>!y.disableColumnReorder&&!x&&!l.disableReorder,[y.disableColumnReorder,x,l.disableReorder]);let O;l.renderHeader&&(O=l.renderHeader(b.current.getColumnHeaderParams(l.field)));const R=v({},e,{classes:y.classes,showRightBorder:y.showColumnVerticalBorder}),L=fX(R),_=f.useCallback(q=>Z=>{Fu(Z)||b.current.publishEvent(q,b.current.getColumnHeaderParams(l.field),Z)},[b,l.field]),M=f.useMemo(()=>({onClick:_("columnHeaderClick"),onDoubleClick:_("columnHeaderDoubleClick"),onMouseOver:_("columnHeaderOver"),onMouseOut:_("columnHeaderOut"),onMouseEnter:_("columnHeaderEnter"),onMouseLeave:_("columnHeaderLeave"),onKeyDown:_("columnHeaderKeyDown"),onFocus:_("columnHeaderFocus"),onBlur:_("columnHeaderBlur")}),[_]),T=f.useMemo(()=>D?{onDragStart:_("columnHeaderDragStart"),onDragEnter:_("columnHeaderDragEnter"),onDragOver:_("columnHeaderDragOver"),onDragEnd:_("columnHeaderDragEnd")}:{},[D,_]),j=f.useMemo(()=>({onMouseDown:_("columnSeparatorMouseDown"),onDoubleClick:_("columnSeparatorDoubleClick")}),[_]);f.useEffect(()=>{k||$(s)},[k,s]);const A=f.useCallback(()=>{$(!1)},[]),E=!y.disableColumnMenu&&!l.disableColumnMenu&&p.jsx(eX,{colDef:l,columnMenuId:S,columnMenuButtonId:I,open:k,iconButtonRef:P}),F=p.jsx(tX,{columnMenuId:S,columnMenuButtonId:I,field:l.field,open:s,target:P.current,ContentComponent:y.slots.columnMenu,contentComponentProps:(t=y.slotProps)==null?void 0:t.columnMenu,onExited:A}),N=(n=l.sortingOrder)!=null?n:y.sortingOrder,V=p.jsxs(f.Fragment,{children:[!y.disableColumnFilter&&p.jsx(y.slots.columnHeaderFilterIconButton,v({field:l.field,counter:h},(r=y.slotProps)==null?void 0:r.columnHeaderFilterIconButton)),l.sortable&&!l.hideSortIcons&&p.jsx(ZY,{direction:u,index:d,sortingOrder:N})]});f.useLayoutEffect(()=>{const q=b.current.state.columnMenu;if(g&&!q.open){const le=C.current.querySelector('[tabindex="0"]')||C.current;le==null||le.focus(),b.current.columnHeadersContainerElementRef.current.scrollLeft=0}},[b,g]);const H=typeof l.headerClassName=="function"?l.headerClassName({field:l.field,colDef:l}):l.headerClassName,Q=(o=l.headerName)!=null?o:l.field;return p.jsx(A$,v({ref:C,classes:L,columnMenuOpen:s,colIndex:i,height:a,isResizing:c,sortDirection:u,hasFocus:g,tabIndex:m,separatorSide:w,isDraggable:D,headerComponent:O,description:l.description,elementId:l.field,width:l.computedWidth,columnMenuIconButton:E,columnTitleIconButtons:V,headerClassName:H,label:Q,resizable:!y.disableColumnResize&&!!l.resizable,"data-field":l.field,columnMenu:F,draggableContainerProps:T,columnHeaderSeparatorProps:j},M))}const iu=()=>({items:[],logicOperator:Hn.And,quickFilterValues:[],quickFilterLogicOperator:Hn.And}),zw=1e3;class hX{constructor(t=zw){this.timeouts=new Map,this.cleanupTimeout=zw,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class gX{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var Mo=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e}(Mo||{});class mX{}function vX(e){let t=0;return function(r,o,l,s){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new gX:new hX);const[i]=f.useState(new mX),a=f.useRef(null),c=f.useRef();c.current=l;const u=f.useRef(null);if(!a.current&&c.current){const d=(h,g,m)=>{if(!g.defaultMuiPrevented){var x;(x=c.current)==null||x.call(c,h,g,m)}};a.current=r.current.subscribeEvent(o,d,s),t+=1,u.current={cleanupToken:t},e.registry.register(i,()=>{var h;(h=a.current)==null||h.call(a),a.current=null,u.current=null},u.current)}else!c.current&&a.current&&(a.current(),a.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));f.useEffect(()=>{if(!a.current&&c.current){const d=(h,g,m)=>{if(!g.defaultMuiPrevented){var x;(x=c.current)==null||x.call(c,h,g,m)}};a.current=r.current.subscribeEvent(o,d,s)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{var d;(d=a.current)==null||d.call(a),a.current=null}},[r,o,s])}}const yX={registry:null},Te=vX(yX),xX={isFirst:!0};function bt(e,t,n){Te(e,t,n,xX)}function Mn(e,t){const n=f.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}function bX(e){return typeof e=="number"&&!Number.isNaN(e)}function L$(e){return typeof e=="function"}function Cx(e){return typeof e=="object"&&e!==null}function CX(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function Vd(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const pa=(e,t,n)=>Math.max(t,Math.min(n,e));function ms(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let l=0;l<o;l+=1)if(!ms(e[l],t[l]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let l=0;l<o.length;l+=1)if(!t.has(o[l][0]))return!1;for(let l=0;l<o.length;l+=1){const s=o[l];if(!ms(s[1],t.get(s[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let l=0;l<o.length;l+=1)if(!t.has(o[l][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let l=0;l<o;l+=1)if(e[l]!==t[l])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const l=n[o];if(!ms(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function wX(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function SX(e,t,n){const r=wX(e);return()=>t+(n-t)*r()}function N$(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const PX=(e,t,n,r,o)=>{const l=Mn(e,"useNativeEventListener"),[s,i]=f.useState(!1),a=f.useRef(r),c=f.useCallback(u=>a.current&&a.current(u),[]);f.useEffect(()=>{a.current=r},[r]),f.useEffect(()=>{let u;if(L$(t)?u=t():u=t&&t.current?t.current:null,u&&n&&!s){l.debug(`Binding native ${n} event`),u.addEventListener(n,c,o);const d=u;i(!0);const h=()=>{l.debug(`Clearing native ${n} event`),d.removeEventListener(n,c,o)};e.current.subscribeEvent("unmount",h)}},[t,c,n,s,l,o,e])},ju=e=>{const t=f.useRef(!0);t.current&&(t.current=!1,e())},kX=100,MX=e=>e?0:100,H$=(e,t)=>t>0&&e>0?Math.ceil(e/t):0;Eo(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error");const z$=e=>({page:0,pageSize:e?0:100}),IX=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),B$=(e,t)=>{if(t===Mo.DataGrid&&e>kX)throw new Error(["MUI: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`))},V$=e=>e.pagination,Sr=ze(V$,e=>e.paginationModel),$X=ze(Sr,e=>e.page),EX=ze(Sr,e=>e.pageSize);ze(Sr,Rh,(e,t)=>H$(t,e.pageSize));const wx=St(Sr,Kr,Th,Wl,C$,(e,t,n,r,o)=>{const l=o.length,s=Math.min(e.pageSize*e.page,l-1),i=Math.min(s+e.pageSize-1,l-1);if(s===-1||i===-1)return null;if(n<2)return{firstRowIndex:s,lastRowIndex:i};const a=o[s],c=i-s+1,u=r.findIndex(m=>m.id===a.id);let d=u,h=0;for(;d<r.length&&h<=c;){var g;const m=r[d],x=(g=t[m.id])==null?void 0:g.depth;x===void 0?d+=1:((h<c||x>0)&&(d+=1),x===0&&(h+=1))}return{firstRowIndex:u,lastRowIndex:d-1}}),TX=St(Wl,wx,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),U$=St(Cc,wx,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),au=e=>e.preferencePanel;var Es=function(e){return e.filters="filters",e.columns="columns",e}(Es||{});const cu=e=>e.rowsMeta,Cr=e=>e.rowSelection,RX=ze(Cr,e=>e.length),OX=St(Cr,No,(e,t)=>new Map(e.map(n=>[n,t[n]]))),ep=St(Cr,e=>e.reduce((t,n)=>(t[n]=n,t),{})),_X=Eo(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),W$=(e,t)=>t&&e.length>1?(_X(),[e[0]]):e,Bw=(e,t)=>n=>v({},n,{sorting:v({},n.sorting,{sortModel:W$(e,t)})}),FX=e=>e==="desc",jX=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=FX(e.sort)?(...l)=>-1*n.sortComparator(...l):n.sortComparator;return{getSortCellParams:l=>({id:l,field:n.field,rowNode:t.current.getRowNode(l),value:t.current.getCellValue(l,n.field),api:t.current}),comparator:r}},DX=(e,t,n)=>e.reduce((r,o,l)=>{if(r!==0)return r;const s=t.params[l],i=n.params[l];return r=o.comparator(s.value,i.value,s,i),r},0),AX=(e,t)=>{const n=e.map(r=>jX(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(l=>l.getSortCellParams(o.id))})).sort((o,l)=>DX(n,o,l)).map(o=>o.node.id)},Vw=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Sx=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,LX=new Intl.Collator,NX=(e,t)=>{const n=Sx(e,t);return n!==null?n:typeof e=="string"?LX.compare(e.toString(),t.toString()):e-t},G$=(e,t)=>{const n=Sx(e,t);return n!==null?n:Number(e)-Number(t)},K$=(e,t)=>{const n=Sx(e,t);return n!==null?n:e>t?1:e<t?-1:0},q$=e=>e.headerFiltering,HX=ze(q$,e=>e.editing),zX=ze(q$,e=>e.menuOpen),BX=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return v({},e,{virtualization:n})};function VX(e,t){const n=l=>{e.current.setState(s=>v({},s,{virtualization:v({},s.virtualization,{enabled:l})}))};Ue(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:l=>{e.current.setState(s=>v({},s,{virtualization:v({},s.virtualization,{enabledForColumns:l})}))}},"public"),f.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const Y$=e=>e.virtualization,UX=ze(Y$,e=>e.enabled),X$=ze(Y$,e=>e.enabledForColumns),WX=e=>{const{classes:t}=e;return ae({icon:["filterIcon"]},qe,t)};function GX(e){var t,n;const{counter:r,field:o,onClick:l}=e,s=Ke(),i=Ee(),a=v({},e,{classes:i.classes}),c=WX(a),u=Pe(s,au),d=ct(),h=ct(),g=f.useCallback(w=>{w.preventDefault(),w.stopPropagation();const{open:b,openedPanelValue:y}=au(s.current.state);b&&y===Es.filters?s.current.hideFilterPanel():s.current.showFilterPanel(void 0,h,d),l&&l(s.current.getColumnHeaderParams(o),w)},[s,o,l,h,d]);if(!r)return null;const m=u.open&&u.labelId===d,x=p.jsx(i.slots.baseIconButton,v({id:d,onClick:g,color:"default","aria-label":s.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":m,"aria-controls":m?h:void 0},(t=i.slotProps)==null?void 0:t.baseIconButton,{children:p.jsx(i.slots.columnFilteredIcon,{className:c.icon,fontSize:"small"})}));return p.jsx(i.slots.baseTooltip,v({title:s.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=i.slotProps)==null?void 0:n.baseTooltip,{children:p.jsxs(j$,{children:[r>1&&p.jsx(lM,{badgeContent:r,color:"default",children:x}),r===1&&x]})}))}const KX=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],qX=e=>{const{classes:t}=e;return ae({root:["checkboxInput"]},qe,t)},YX=f.forwardRef(function(t,n){var r;const{field:o,id:l,value:s,rowNode:i,hasFocus:a,tabIndex:c}=t,u=W(t,KX),d=Ke(),h=Ee(),g={classes:h.classes},m=qX(g),x=f.useRef(null),w=f.useRef(null),b=nt(x,n),y=d.current.getCellElement(l,o),C=k=>{const $={value:k.target.checked,id:l};d.current.publishEvent("rowSelectionCheckboxChange",$,k)};f.useLayoutEffect(()=>{c===0&&y&&(y.tabIndex=-1)},[y,c]),f.useEffect(()=>{if(a){var k;const $=(k=x.current)==null?void 0:k.querySelector("input");$==null||$.focus({preventScroll:!0})}else w.current&&w.current.stop({})},[a]);const S=f.useCallback(k=>{O$(k.key)&&k.stopPropagation()},[]);if(i.type==="footer"||i.type==="pinnedRow")return null;const I=d.current.isRowSelectable(l),P=d.current.getLocaleText(s?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return p.jsx(h.slots.baseCheckbox,v({ref:b,tabIndex:c,checked:s,onChange:C,className:m.root,inputProps:{"aria-label":P},onKeyDown:S,disabled:!I,touchRippleRef:w},(r=h.slotProps)==null?void 0:r.baseCheckbox,u))}),XX=YX,QX=["field","colDef"],ZX=e=>{const{classes:t}=e;return ae({root:["checkboxInput"]},qe,t)},JX=f.forwardRef(function(t,n){var r;const o=W(t,QX),[,l]=f.useState(!1),s=Ke(),i=Ee(),a={classes:i.classes},c=ZX(a),u=Pe(s,S$),d=Pe(s,Cr),h=Pe(s,Cc),g=Pe(s,U$),m=f.useMemo(()=>typeof i.isRowSelectable!="function"?d:d.filter($=>s.current.getRow($)?i.isRowSelectable(s.current.getRowParams($)):!1),[s,i.isRowSelectable,d]),x=f.useMemo(()=>(!i.pagination||!i.checkboxSelectionVisibleOnly?h:g).reduce((D,O)=>(D[O]=!0,D),{}),[i.pagination,i.checkboxSelectionVisibleOnly,g,h]),w=f.useMemo(()=>m.filter($=>x[$]).length,[m,x]),b=w>0&&w<Object.keys(x).length,y=w>0,C=$=>{const D={value:$.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",D)},S=u!==null&&u.field===t.field?0:-1;f.useLayoutEffect(()=>{const $=s.current.getColumnHeaderElement(t.field);S===0&&$&&($.tabIndex=-1)},[S,s,t.field]);const I=f.useCallback($=>{$.key===" "&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!y})},[s,y]),P=f.useCallback(()=>{l($=>!$)},[]);f.useEffect(()=>s.current.subscribeEvent("rowSelectionChange",P),[s,P]);const k=s.current.getLocaleText(y?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return p.jsx(i.slots.baseCheckbox,v({ref:n,indeterminate:b,checked:y,onChange:C,className:c.root,inputProps:{"aria-label":k},tabIndex:S,onKeyDown:I},(r=i.slotProps)==null?void 0:r.baseCheckbox,o))}),Uw=He(p.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),Ww=He(p.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),Gw=He(p.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),Kw=He(p.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),eQ=He(p.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),qw=He(p.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),tQ=He(p.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");He(p.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");He(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const nQ=He(p.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),rQ=He(p.jsx("path",{d:"M11 19V5h2v14z"}),"Separator"),oQ=He(p.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),lQ=He(p.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),sQ=He(p.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),iQ=He(p.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),Gg=He(p.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Yw=He(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),aQ=He(p.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),cQ=He(p.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),Xw=He(p.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),uQ=He(p.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),dQ=He(p.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),fQ=He(p.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),pQ=He(p.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),hQ=He(p.jsx("g",{children:p.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),gQ=He(p.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");He(p.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const mQ=He(p.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),vQ=["hideMenu","colDef","id","labelledby","className","children","open"],yQ=X(iy)(()=>({minWidth:248})),xQ=f.forwardRef(function(t,n){const{hideMenu:r,id:o,labelledby:l,className:s,children:i,open:a}=t,c=W(t,vQ),u=f.useCallback(d=>{R$(d.key)&&d.preventDefault(),vY(d.key)&&r(d)},[r]);return p.jsx(yQ,v({id:o,ref:n,className:ee(z.menuList,s),"aria-labelledby":l,onKeyDown:u,autoFocus:a},c,{children:i}))}),bQ=["displayOrder"],CQ=e=>{const t=Ul(),{defaultSlots:n,defaultSlotProps:r,slots:o={},slotProps:l={},hideMenu:s,colDef:i,addDividers:a=!0}=e,c=f.useMemo(()=>v({},n,o),[n,o]),u=f.useMemo(()=>{if(!l||Object.keys(l).length===0)return r;const g=v({},l);return Object.entries(r).forEach(([m,x])=>{g[m]=v({},x,l[m]||{})}),g},[r,l]),d=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),h=f.useMemo(()=>{const g=Object.keys(n);return Object.keys(o).filter(m=>!g.includes(m))},[o,n]);return f.useMemo(()=>{const x=Array.from(new Set([...d,...h])).filter(w=>c[w]!=null).sort((w,b)=>{const y=u[w],C=u[b],S=Number.isFinite(y==null?void 0:y.displayOrder)?y.displayOrder:100,I=Number.isFinite(C==null?void 0:C.displayOrder)?C.displayOrder:100;return S-I});return x.reduce((w,b,y)=>{let C={colDef:i,onClick:s};const S=u[b];if(S){const I=W(S,bQ);C=v({},C,I)}return a&&y!==x.length-1?[...w,[c[b],C],[R3,{}]]:[...w,[c[b],C]]},[])},[a,i,d,s,c,u,h])};function wQ(e){const{colDef:t,onClick:n}=e,r=Ke(),o=Ee(),i=fn(r).filter(c=>c.disableColumnMenu!==!0).length===1,a=f.useCallback(c=>{i||(r.current.setColumnVisibility(t.field,!1),n(c))},[r,t.field,n,i]);return o.disableColumnSelector||t.hideable===!1?null:p.jsxs(Bt,{onClick:a,disabled:i,children:[p.jsx(Ir,{children:p.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),p.jsx($r,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}function SQ(e){const{onClick:t}=e,n=Ke(),r=Ee(),o=f.useCallback(l=>{t(l),n.current.showPreferences(Es.columns)},[n,t]);return r.disableColumnSelector?null:p.jsxs(Bt,{onClick:o,children:[p.jsx(Ir,{children:p.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),p.jsx($r,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}function PQ(e){return p.jsxs(f.Fragment,{children:[p.jsx(wQ,v({},e)),p.jsx(SQ,v({},e))]})}function kQ(e){const{colDef:t,onClick:n}=e,r=Ke(),o=Ee(),l=f.useCallback(s=>{n(s),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:p.jsxs(Bt,{onClick:l,children:[p.jsx(Ir,{children:p.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),p.jsx($r,{children:r.current.getLocaleText("columnMenuFilter")})]})}function MQ(e){var t;const{colDef:n,onClick:r}=e,o=Ke(),l=Pe(o,br),s=Ee(),i=f.useMemo(()=>{if(!n)return null;const d=l.find(h=>h.field===n.field);return d==null?void 0:d.sort},[n,l]),a=(t=n.sortingOrder)!=null?t:s.sortingOrder,c=f.useCallback(d=>{r(d);const h=d.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,h===i?null:h)},[o,n,r,i]);if(!n||!n.sortable||!a.some(d=>!!d))return null;const u=d=>{const h=o.current.getLocaleText(d);return typeof h=="function"?h(n):h};return p.jsxs(f.Fragment,{children:[a.includes("asc")&&i!=="asc"?p.jsxs(Bt,{onClick:c,"data-value":"asc",children:[p.jsx(Ir,{children:p.jsx(s.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),p.jsx($r,{children:u("columnMenuSortAsc")})]}):null,a.includes("desc")&&i!=="desc"?p.jsxs(Bt,{onClick:c,"data-value":"desc",children:[p.jsx(Ir,{children:p.jsx(s.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),p.jsx($r,{children:u("columnMenuSortDesc")})]}):null,a.includes(null)&&i!=null?p.jsxs(Bt,{onClick:c,children:[p.jsx(Ir,{}),p.jsx($r,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})}const IQ=["defaultSlots","defaultSlotProps","slots","slotProps"],$Q={columnMenuSortItem:MQ,columnMenuFilterItem:kQ,columnMenuColumnsItem:PQ},EQ={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},TQ=f.forwardRef(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:l,slotProps:s}=t,i=W(t,IQ),a=CQ(v({},i,{defaultSlots:r,defaultSlotProps:o,slots:l,slotProps:s}));return p.jsx(xQ,v({ref:n},i,{children:a.map(([c,u],d)=>p.jsx(c,v({},u),d))}))}),RQ=f.forwardRef(function(t,n){return p.jsx(TQ,v({},t,{ref:n,defaultSlots:$Q,defaultSlotProps:EQ}))}),OQ=["className"],_Q=e=>{const{classes:t}=e;return ae({root:["panelContent"]},qe,t)},FQ=Zt("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function Q$(e){const{className:t}=e,n=W(e,OQ),r=Ee(),o=_Q(r);return p.jsx(FQ,v({className:ee(t,o.root),ownerState:r},n))}const jQ=["className"],DQ=e=>{const{classes:t}=e;return ae({root:["panelFooter"]},qe,t)},AQ=Zt("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function Z$(e){const{className:t}=e,n=W(e,jQ),r=Ee(),o=DQ(r);return p.jsx(AQ,v({className:ee(t,o.root),ownerState:r},n))}const LQ=["className"],NQ=e=>{const{classes:t}=e;return ae({root:["panelHeader"]},qe,t)},HQ=Zt("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:(e,t)=>t.panelHeader})(({theme:e})=>({padding:e.spacing(1)}));function zQ(e){const{className:t}=e,n=W(e,LQ),r=Ee(),o=NQ(r);return p.jsx(HQ,v({className:ee(t,o.root),ownerState:r},n))}const BQ=["className","slotProps"],VQ=e=>{const{classes:t}=e;return ae({root:["panelWrapper"]},qe,t)},UQ=X("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),WQ=()=>!0,J$=f.forwardRef(function(t,n){const{className:r,slotProps:o={}}=t,l=W(t,BQ),s=Ee(),i=VQ(s);return p.jsx(L2,v({open:!0,disableEnforceFocus:!0,isEnabled:WQ},o.TrapFocus,{children:p.jsx(UQ,v({ref:n,tabIndex:-1,className:ee(r,i.root),ownerState:s},l))}))}),GQ=!1,KQ=["sort","searchPredicate","autoFocusSearchField","disableHideAllButton","disableShowAllButton","getTogglableColumns"],qQ=e=>{const{classes:t}=e;return ae({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},qe,t)},YQ=X("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:(e,t)=>t.columnsPanel})({padding:"8px 0px 8px 8px"}),XQ=X("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:(e,t)=>t.columnsPanelRow})(({theme:e})=>({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px",[`& .${Sn.root}`]:{marginRight:e.spacing(.5)}})),QQ=X(dn)({justifyContent:"flex-end"}),Qw=new Intl.Collator,ZQ=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1;function JQ(e){var t,n,r;const o=Ke(),l=f.useRef(null),s=Pe(o,ko),i=Pe(o,Zr),a=Ee(),[c,u]=f.useState(""),d=qQ(a),{sort:h,searchPredicate:g=ZQ,autoFocusSearchField:m=!0,disableHideAllButton:x=!1,disableShowAllButton:w=!1,getTogglableColumns:b}=e,y=W(e,KQ),C=f.useMemo(()=>{switch(h){case"asc":return[...s].sort((R,L)=>Qw.compare(R.headerName||R.field,L.headerName||L.field));case"desc":return[...s].sort((R,L)=>-Qw.compare(R.headerName||R.field,L.headerName||L.field));default:return s}},[s,h]),S=R=>{const{name:L}=R.target;o.current.setColumnVisibility(L,i[L]===!1)},I=f.useCallback(R=>{const L=Zr(o),_=v({},L),M=b?b(s):null;return s.forEach(T=>{T.hideable&&(M==null||M.includes(T.field))&&(R?delete _[T.field]:_[T.field]=!1)}),o.current.setColumnVisibilityModel(_)},[o,s,b]),P=f.useCallback(R=>{u(R.target.value)},[]),k=f.useMemo(()=>{const R=b?b(C):null,L=R?C.filter(({field:_})=>R.includes(_)):C;return c?L.filter(_=>g(_,c.toLowerCase())):L},[C,c,g,b]),$=f.useRef(null);f.useEffect(()=>{m?l.current.focus():$.current&&typeof $.current.focus=="function"&&$.current.focus()},[m]);let D=!1;const O=R=>D===!1&&R.hideable!==!1?(D=!0,!0):!1;return p.jsxs(J$,v({},y,{children:[p.jsx(zQ,{children:p.jsx(a.slots.baseTextField,v({label:o.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:o.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:l,value:c,onChange:P,variant:"standard",fullWidth:!0},(t=a.slotProps)==null?void 0:t.baseTextField))}),p.jsx(Q$,{children:p.jsx(YQ,{className:d.root,ownerState:a,children:k.map(R=>{var L;return p.jsxs(XQ,{className:d.columnsPanelRow,ownerState:a,children:[p.jsx(hM,{control:p.jsx(a.slots.baseSwitch,v({disabled:R.hideable===!1,checked:i[R.field]!==!1,onClick:S,name:R.field,size:"small",inputRef:O(R)?$:void 0},(L=a.slotProps)==null?void 0:L.baseSwitch)),label:R.headerName||R.field}),!a.disableColumnReorder&&GQ&&p.jsx(QQ,{draggable:!0,"aria-label":o.current.getLocaleText("columnsPanelDragIconLabel"),title:o.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:p.jsx(a.slots.columnReorderIcon,{})})]},R.field)})})}),w&&x?null:p.jsxs(Z$,{children:[x?p.jsx("span",{}):p.jsx(a.slots.baseButton,v({onClick:()=>I(!1)},(n=a.slotProps)==null?void 0:n.baseButton,{disabled:x,children:o.current.getLocaleText("columnsPanelHideAllButton")})),w?null:p.jsx(a.slots.baseButton,v({onClick:()=>I(!0)},(r=a.slotProps)==null?void 0:r.baseButton,{disabled:w,children:o.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))}const eZ=["children","className","classes"],tZ=Me("MuiDataGrid",["panel","paper"]),nZ=X(As,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),rZ=X(_n,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex"})),oZ=f.forwardRef((e,t)=>{const{children:n,className:r}=e,o=W(e,eZ),l=Ke(),s=Ee(),i=tZ,[a,c]=f.useState(!1),u=f.useCallback(()=>{l.current.hidePreferences()},[l]),d=f.useCallback(x=>{Zf(x.key)&&l.current.hidePreferences()},[l]),h=f.useMemo(()=>[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{c(!0)},effect:()=>()=>{c(!1)}}],[]),[g,m]=f.useState(null);return f.useEffect(()=>{var x;const w=(x=l.current.rootElementRef)==null||(x=x.current)==null?void 0:x.querySelector(`.${z.columnHeaders}`);w&&m(w)},[l]),g?p.jsx(nZ,v({ref:t,placement:"bottom-start",className:ee(r,i.panel),ownerState:s,anchorEl:g,modifiers:h},o,{children:p.jsx(A2,{mouseEvent:"onMouseUp",onClickAway:u,children:p.jsx(rZ,{className:i.paper,ownerState:s,elevation:8,onKeyDown:d,children:a&&n})})})):null}),lZ=f.forwardRef(function(t,n){var r,o,l;const s=Ke(),i=Pe(s,ko),a=Ee(),c=Pe(s,au),u=s.current.unstable_applyPipeProcessors("preferencePanel",null,(r=c.openedPanelValue)!=null?r:Es.filters);return p.jsx(a.slots.panel,v({ref:n,as:a.slots.basePopper,open:i.length>0&&c.open,id:c.panelId,"aria-labelledby":c.labelId},(o=a.slotProps)==null?void 0:o.panel,t,(l=a.slotProps)==null?void 0:l.basePopper,{children:u}))}),sZ=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],iZ=["InputComponentProps"],aZ=e=>{const{classes:t}=e;return ae({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},qe,t)},cZ=X("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),uZ=X("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),dZ=X("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),fZ=X("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),pZ=X("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:120}),hZ=X("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),gZ=e=>{switch(e){case Hn.And:return"filterPanelOperatorAnd";case Hn.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Ua=e=>e.headerName||e.field,Zw=new Intl.Collator,mZ=f.forwardRef(function(t,n){var r,o,l,s,i,a,c,u,d,h;const{item:g,hasMultipleFilters:m,deleteFilter:x,applyFilterChanges:w,multiFilterOperator:b,showMultiFilterOperators:y,disableMultiFilterOperator:C,applyMultiFilterOperatorChanges:S,focusElementRef:I,logicOperators:P=[Hn.And,Hn.Or],columnsSort:k,filterColumns:$,deleteIconProps:D={},logicOperatorInputProps:O={},operatorInputProps:R={},columnInputProps:L={},valueInputProps:_={}}=t,M=W(t,sZ),T=Ke(),j=Pe(T,m$),A=Pe(T,cn),E=ct(),F=ct(),N=ct(),V=ct(),H=Ee(),Q=aZ(H),q=f.useRef(null),Z=f.useRef(null),le=m&&P.length>0,fe=((r=H.slotProps)==null?void 0:r.baseFormControl)||{},Y=(l=(((o=H.slotProps)==null?void 0:o.baseSelect)||{}).native)!=null?l:!0,oe=((s=H.slotProps)==null?void 0:s.baseInputLabel)||{},J=((i=H.slotProps)==null?void 0:i.baseSelectOption)||{},{InputComponentProps:U}=_,ue=W(_,iZ),pe=f.useMemo(()=>{if($===void 0||typeof $!="function")return j;const ve=$({field:g.field,columns:j,currentFilters:(A==null?void 0:A.items)||[]});return j.filter(re=>ve.includes(re.field))},[$,A==null?void 0:A.items,j,g.field]),de=f.useMemo(()=>{switch(k){case"asc":return pe.sort((ve,re)=>Zw.compare(Ua(ve),Ua(re)));case"desc":return pe.sort((ve,re)=>-Zw.compare(Ua(ve),Ua(re)));default:return pe}},[pe,k]),G=g.field?T.current.getColumn(g.field):null,se=f.useMemo(()=>{var ve;return!g.operator||!G?null:(ve=G.filterOperators)==null?void 0:ve.find(re=>re.value===g.operator)},[g,G]),ie=f.useCallback(ve=>{const re=ve.target.value,ce=T.current.getColumn(re);if(ce.field===G.field)return;const ye=ce.filterOperators.find(Le=>Le.value===g.operator)||ce.filterOperators[0],_e=!ye.InputComponent||ye.InputComponent!==(se==null?void 0:se.InputComponent)||ce.type!==G.type;w(v({},g,{field:re,operator:ye.value,value:_e?void 0:g.value}))},[T,w,g,G,se]),ke=f.useCallback(ve=>{const re=ve.target.value,ce=G==null?void 0:G.filterOperators.find(_e=>_e.value===re),ye=!(ce!=null&&ce.InputComponent)||(ce==null?void 0:ce.InputComponent)!==(se==null?void 0:se.InputComponent);w(v({},g,{operator:re,value:ye?void 0:g.value}))},[w,g,G,se]),we=f.useCallback(ve=>{const re=ve.target.value===Hn.And.toString()?Hn.And:Hn.Or;S(re)},[S]),Se=()=>{H.disableMultipleColumnsFiltering?g.value===void 0?x(g):w(v({},g,{value:void 0})):x(g)};return f.useImperativeHandle(I,()=>({focus:()=>{if(se!=null&&se.InputComponent){var ve;q==null||(ve=q.current)==null||ve.focus()}else Z.current.focus()}}),[se]),p.jsxs(cZ,v({ref:n,className:Q.root,"data-id":g.id,ownerState:H},M,{children:[p.jsx(uZ,v({variant:"standard",as:H.slots.baseFormControl},fe,D,{className:ee(Q.deleteIcon,fe.className,D.className),ownerState:H,children:p.jsx(H.slots.baseIconButton,v({"aria-label":T.current.getLocaleText("filterPanelDeleteIconLabel"),title:T.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:Se,size:"small"},(a=H.slotProps)==null?void 0:a.baseIconButton,{children:p.jsx(H.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),p.jsx(dZ,v({variant:"standard",as:H.slots.baseFormControl},fe,O,{sx:v({display:le?"flex":"none",visibility:y?"visible":"hidden"},fe.sx||{},O.sx||{}),className:ee(Q.logicOperatorInput,fe.className,O.className),ownerState:H,children:p.jsx(H.slots.baseSelect,v({inputProps:{"aria-label":T.current.getLocaleText("filterPanelLogicOperator")},value:b,onChange:we,disabled:!!C||P.length===1,native:Y},(c=H.slotProps)==null?void 0:c.baseSelect,{children:P.map(ve=>f.createElement(H.slots.baseSelectOption,v({},J,{native:Y,key:ve.toString(),value:ve.toString()}),T.current.getLocaleText(gZ(ve))))}))})),p.jsxs(fZ,v({variant:"standard",as:H.slots.baseFormControl},fe,L,{className:ee(Q.columnInput,fe.className,L.className),ownerState:H,children:[p.jsx(H.slots.baseInputLabel,v({},oe,{htmlFor:E,id:F,children:T.current.getLocaleText("filterPanelColumns")})),p.jsx(H.slots.baseSelect,v({labelId:F,id:E,label:T.current.getLocaleText("filterPanelColumns"),value:g.field||"",onChange:ie,native:Y},(u=H.slotProps)==null?void 0:u.baseSelect,{children:de.map(ve=>f.createElement(H.slots.baseSelectOption,v({},J,{native:Y,key:ve.field,value:ve.field}),Ua(ve)))}))]})),p.jsxs(pZ,v({variant:"standard",as:H.slots.baseFormControl},fe,R,{className:ee(Q.operatorInput,fe.className,R.className),ownerState:H,children:[p.jsx(H.slots.baseInputLabel,v({},oe,{htmlFor:N,id:V,children:T.current.getLocaleText("filterPanelOperator")})),p.jsx(H.slots.baseSelect,v({labelId:V,label:T.current.getLocaleText("filterPanelOperator"),id:N,value:g.operator,onChange:ke,native:Y,inputRef:Z},(d=H.slotProps)==null?void 0:d.baseSelect,{children:G==null||(h=G.filterOperators)==null?void 0:h.map(ve=>f.createElement(H.slots.baseSelectOption,v({},J,{native:Y,key:ve.value,value:ve.value}),ve.label||T.current.getLocaleText(`filterOperator${te(ve.value)}`)))}))]})),p.jsx(hZ,v({variant:"standard",as:H.slots.baseFormControl},fe,ue,{className:ee(Q.valueInput,fe.className,ue.className),ownerState:H,children:se!=null&&se.InputComponent?p.jsx(se.InputComponent,v({apiRef:T,item:g,applyValue:w,focusElementRef:q},se.InputComponentProps,U)):null}))]}))});class Px{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Px}start(t,n){this.clear(),this.currentId=setTimeout(n,t)}}function kx(){const e=dx(Px.create).current;return h$(e.disposeEffect),e}const vZ=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function vo(e){var t,n;const{item:r,applyValue:o,type:l,apiRef:s,focusElementRef:i,tabIndex:a,disabled:c,clearButton:u,InputProps:d,variant:h="standard"}=e,g=W(e,vZ),m=kx(),[x,w]=f.useState((t=r.value)!=null?t:""),[b,y]=f.useState(!1),C=ct(),S=Ee(),I=f.useCallback(P=>{const{value:k}=P.target;w(String(k)),y(!0),m.start(S.filterDebounceMs,()=>{const $=v({},r,{value:k,fromInput:C});o($),y(!1)})},[C,o,r,S.filterDebounceMs,m]);return f.useEffect(()=>{if(r.fromInput!==C||r.value===void 0){var k;w(String((k=r.value)!=null?k:""))}},[C,r]),p.jsx(S.slots.baseTextField,v({id:C,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:x,onChange:I,variant:h,type:l||"text",InputProps:v({},b||u?{endAdornment:b?p.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):u}:{},{disabled:c},d,{inputProps:v({tabIndex:a},d==null?void 0:d.inputProps)}),InputLabelProps:{shrink:!0},inputRef:i},g,(n=S.slotProps)==null?void 0:n.baseTextField))}const yZ=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function ti(e){var t,n;const{item:r,applyValue:o,type:l,apiRef:s,focusElementRef:i,InputProps:a,clearButton:c,tabIndex:u,disabled:d}=e,h=W(e,yZ),g=kx(),[m,x]=f.useState((t=r.value)!=null?t:""),[w,b]=f.useState(!1),y=ct(),C=Ee(),S=f.useCallback(I=>{const P=I.target.value;x(String(P)),b(!0),g.start(C.filterDebounceMs,()=>{o(v({},r,{value:P})),b(!1)})},[o,r,C.filterDebounceMs,g]);return f.useEffect(()=>{var I;const P=(I=r.value)!=null?I:"";x(String(P))},[r.value]),p.jsx(C.slots.baseTextField,v({fullWidth:!0,id:y,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:S,variant:"standard",type:l||"text",InputLabelProps:{shrink:!0},inputRef:i,InputProps:v({},w||c?{endAdornment:w?p.jsx(C.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:d},a,{inputProps:v({max:l==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:u},a==null?void 0:a.inputProps)})},h,(n=C.slotProps)==null?void 0:n.baseTextField))}const xZ=["item","applyValue","type","apiRef","focusElementRef","getOptionLabel","getOptionValue","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],bZ=({column:{valueOptions:e,field:t},OptionComponent:n,getOptionLabel:r,getOptionValue:o,isSelectNative:l,baseSelectOptionProps:s})=>(typeof e=="function"?["",...e({field:t})]:["",...e||[]]).map(a=>{const c=o(a),u=r(a);return f.createElement(n,v({},s,{native:l,key:c,value:c}),u)}),CZ=X("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function Jw(e){var t,n,r,o,l,s,i,a;const{item:c,applyValue:u,type:d,apiRef:h,focusElementRef:g,getOptionLabel:m,getOptionValue:x,placeholder:w,tabIndex:b,label:y,variant:C="standard",clearButton:S}=e,I=W(e,xZ),[P,k]=f.useState((t=c.value)!=null?t:""),$=ct(),D=ct(),O=Ee(),R=(n=(r=O.slotProps)==null||(r=r.baseSelect)==null?void 0:r.native)!=null?n:!0;let L=null;if(c.field){const E=h.current.getColumn(c.field);gs(E)&&(L=E)}const _=x||((o=L)==null?void 0:o.getOptionValue),M=m||((l=L)==null?void 0:l.getOptionLabel),T=f.useMemo(()=>{if(L)return typeof L.valueOptions=="function"?L.valueOptions({field:L.field}):L.valueOptions},[L]),j=f.useCallback(E=>{let F=E.target.value;F=bv(F,T,_),k(String(F)),u(v({},c,{value:F}))},[T,_,u,c]);if(f.useEffect(()=>{var E;let F;if(T!==void 0){if(F=bv(c.value,T,_),F!==c.value){u(v({},c,{value:F}));return}}else F=c.value;F=(E=F)!=null?E:"",k(String(F))},[c,T,u,_]),!gs(L)||!gs(L))return null;const A=y??h.current.getLocaleText("filterPanelInputLabel");return p.jsxs(CZ,{children:[p.jsxs(O.slots.baseFormControl,{children:[p.jsx(O.slots.baseInputLabel,v({},(s=O.slotProps)==null?void 0:s.baseInputLabel,{id:D,htmlFor:$,shrink:!0,variant:C,children:A})),p.jsx(O.slots.baseSelect,v({id:$,label:A,labelId:D,value:P,onChange:j,variant:C,type:d||"text",inputProps:{tabIndex:b,ref:g,placeholder:w??h.current.getLocaleText("filterPanelInputPlaceholder")},native:R,notched:C==="outlined"?!0:void 0},I,(i=O.slotProps)==null?void 0:i.baseSelect,{children:bZ({column:L,OptionComponent:O.slots.baseSelectOption,getOptionLabel:M,getOptionValue:_,isSelectNative:R,baseSelectOptionProps:(a=O.slotProps)==null?void 0:a.baseSelectOption})}))]}),S]})}const wZ=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],SZ=X("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function PZ(e){var t,n,r,o;const{item:l,applyValue:s,apiRef:i,focusElementRef:a,clearButton:c,tabIndex:u,label:d,variant:h="standard"}=e,g=W(e,wZ),[m,x]=f.useState(l.value||""),w=Ee(),b=ct(),y=ct(),C=((t=w.slotProps)==null?void 0:t.baseSelect)||{},S=(n=C.native)!=null?n:!0,I=((r=w.slotProps)==null?void 0:r.baseSelectOption)||{},P=f.useCallback($=>{const D=$.target.value;x(D),s(v({},l,{value:D}))},[s,l]);f.useEffect(()=>{x(l.value||"")},[l.value]);const k=d??i.current.getLocaleText("filterPanelInputLabel");return p.jsxs(SZ,{children:[p.jsxs(w.slots.baseFormControl,{fullWidth:!0,children:[p.jsx(w.slots.baseInputLabel,v({},(o=w.slotProps)==null?void 0:o.baseInputLabel,{id:b,shrink:!0,variant:h,children:k})),p.jsxs(w.slots.baseSelect,v({labelId:b,id:y,label:k,value:m,onChange:P,variant:h,notched:h==="outlined"?!0:void 0,native:S,displayEmpty:!0,inputProps:{ref:a,tabIndex:u}},g,C,{children:[p.jsx(w.slots.baseSelectOption,v({},I,{native:S,value:"",children:i.current.getLocaleText("filterValueAny")})),p.jsx(w.slots.baseSelectOption,v({},I,{native:S,value:"true",children:i.current.getLocaleText("filterValueTrue")})),p.jsx(w.slots.baseSelectOption,v({},I,{native:S,value:"false",children:i.current.getLocaleText("filterValueFalse")}))]}))]}),c]})}const kZ=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],eS=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),MZ=f.forwardRef(function(t,n){var r,o;const l=Ke(),s=Ee(),i=Pe(l,cn),a=Pe(l,m$),c=f.useRef(null),u=f.useRef(null),{logicOperators:d=[Hn.And,Hn.Or],columnsSort:h,filterFormProps:g,getColumnForNewFilter:m,disableAddFilterButton:x=!1,disableRemoveAllButton:w=!1}=t,b=W(t,kZ),y=l.current.upsertFilterItem,C=f.useCallback(R=>{l.current.setFilterLogicOperator(R)},[l]),S=f.useCallback(()=>{let R;if(m&&typeof m=="function"){const L=m({currentFilters:(i==null?void 0:i.items)||[],columns:a});if(L===null)return null;R=a.find(({field:_})=>_===L)}else R=a.find(L=>{var _;return(_=L.filterOperators)==null?void 0:_.length});return R?eS(R):null},[i==null?void 0:i.items,a,m]),I=f.useCallback(()=>{if(m===void 0||typeof m!="function")return S();const R=i.items.length?i.items:[S()].filter(Boolean),L=m({currentFilters:R,columns:a});if(L===null)return null;const _=a.find(({field:M})=>M===L);return _?eS(_):null},[i.items,a,m,S]),P=f.useMemo(()=>i.items.length?i.items:(u.current||(u.current=S()),u.current?[u.current]:[]),[i.items,S]),k=P.length>1,$=()=>{const R=I();R&&l.current.upsertFilterItems([...P,R])},D=f.useCallback(R=>{const L=P.length===1;l.current.deleteFilterItem(R),L&&l.current.hideFilterPanel()},[l,P.length]),O=()=>{P.length===1&&P[0].value===void 0&&(l.current.deleteFilterItem(P[0]),l.current.hideFilterPanel()),l.current.setFilterModel(v({},i,{items:[]}))};return f.useEffect(()=>{d.length>0&&i.logicOperator&&!d.includes(i.logicOperator)&&C(d[0])},[d,C,i.logicOperator]),f.useEffect(()=>{P.length>0&&c.current.focus()},[P.length]),p.jsxs(J$,v({ref:n},b,{children:[p.jsx(Q$,{children:P.map((R,L)=>p.jsx(mZ,v({item:R,applyFilterChanges:y,deleteFilter:D,hasMultipleFilters:k,showMultiFilterOperators:L>0,multiFilterOperator:i.logicOperator,disableMultiFilterOperator:L!==1,applyMultiFilterOperatorChanges:C,focusElementRef:L===P.length-1?c:null,logicOperators:d,columnsSort:h},g),R.id==null?L:R.id))}),!s.disableMultipleColumnsFiltering&&!(x&&w)?p.jsxs(Z$,{children:[x?p.jsx("span",{}):p.jsx(s.slots.baseButton,v({onClick:$,startIcon:p.jsx(s.slots.filterPanelAddIcon,{})},(r=s.slotProps)==null?void 0:r.baseButton,{children:l.current.getLocaleText("filterPanelAddFilter")})),w?null:p.jsx(s.slots.baseButton,v({onClick:O,startIcon:p.jsx(s.slots.filterPanelRemoveAllIcon,{})},(o=s.slotProps)==null?void 0:o.baseButton,{children:l.current.getLocaleText("filterPanelRemoveAll")}))]}):null]}))}),IZ=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function eE(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:l,color:s,error:i,helperText:a,size:c,variant:u}=e,d=W(e,IZ),h={color:s,error:i,helperText:a,size:c,variant:u},[g,m]=f.useState(t.value||[]),x=ct(),w=Ee();f.useEffect(()=>{var y;const C=(y=t.value)!=null?y:[];m(C.map(String))},[t.value]);const b=f.useCallback((y,C)=>{m(C.map(String)),n(v({},t,{value:[...C]}))},[n,t]);return p.jsx(nM,v({multiple:!0,freeSolo:!0,options:[],filterOptions:(y,C)=>{const{inputValue:S}=C;return S==null||S===""?[]:[S]},id:x,value:g,onChange:b,renderTags:(y,C)=>y.map((S,I)=>p.jsx(w.slots.baseChip,v({variant:"outlined",size:"small",label:S},C({index:I})))),renderInput:y=>{var C;return p.jsx(w.slots.baseTextField,v({},y,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:v({},y.InputLabelProps,{shrink:!0}),inputRef:l,type:r||"text"},h,(C=w.slotProps)==null?void 0:C.baseTextField))}},d))}const $Z=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant","getOptionLabel","getOptionValue"],EZ=Z2();function TZ(e){var t,n;const{item:r,applyValue:o,apiRef:l,focusElementRef:s,color:i,error:a,helperText:c,size:u,variant:d="standard",getOptionLabel:h,getOptionValue:g}=e,m=W(e,$Z),x={color:i,error:a,helperText:c,size:u,variant:d},w=ct(),b=Ee();let y=null;if(r.field){const O=l.current.getColumn(r.field);gs(O)&&(y=O)}const C=g||((t=y)==null?void 0:t.getOptionValue),S=h||((n=y)==null?void 0:n.getOptionLabel),I=f.useCallback((O,R)=>C(O)===C(R),[C]),P=f.useMemo(()=>{var O;return(O=y)!=null&&O.valueOptions?typeof y.valueOptions=="function"?y.valueOptions({field:y.field}):y.valueOptions:[]},[y]),k=f.useMemo(()=>P==null?void 0:P.map(C),[P,C]),$=f.useMemo(()=>Array.isArray(r.value)?P!==void 0?r.value.map(R=>k==null?void 0:k.findIndex(L=>L===R)).filter(R=>R>=0).map(R=>P[R]):r.value:[],[r.value,P,k]);f.useEffect(()=>{(!Array.isArray(r.value)||$.length!==r.value.length)&&o(v({},r,{value:$.map(C)}))},[r,$,o,C]);const D=f.useCallback((O,R)=>{o(v({},r,{value:R.map(C)}))},[o,r,C]);return p.jsx(nM,v({multiple:!0,options:P,isOptionEqualToValue:I,filterOptions:EZ,id:w,value:$,onChange:D,getOptionLabel:S,renderTags:(O,R)=>O.map((L,_)=>p.jsx(b.slots.baseChip,v({variant:"outlined",size:"small",label:S(L)},R({index:_})))),renderInput:O=>{var R;return p.jsx(b.slots.baseTextField,v({},O,{label:l.current.getLocaleText("filterPanelInputLabel"),placeholder:l.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:v({},O.InputLabelProps,{shrink:!0}),inputRef:s,type:"singleSelect"},x,(R=b.slotProps)==null?void 0:R.baseTextField))}},m))}const RZ=["hideMenu","options"],OZ=["hideMenu","options"];function _Z(e){const t=Ke(),{hideMenu:n,options:r}=e,o=W(e,RZ);return p.jsx(Bt,v({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}function FZ(e){const t=Ke(),{hideMenu:n,options:r}=e,o=W(e,OZ);return p.jsx(Bt,v({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}const jZ=["className","selectedRowCount"],DZ=e=>{const{classes:t}=e;return ae({root:["selectedRowCount"]},qe,t)},AZ=Zt("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),LZ=f.forwardRef(function(t,n){const{className:r,selectedRowCount:o}=t,l=W(t,jZ),s=Ke(),i=Ee(),a=DZ(i),c=s.current.getLocaleText("footerRowSelected")(o);return p.jsx(AZ,v({ref:n,className:ee(a.root,r),ownerState:i},l,{children:c}))}),NZ=f.forwardRef(function(t,n){var r,o;const l=Ke(),s=Ee(),i=Pe(l,aq),a=Pe(l,RX),c=Pe(l,Rh),u=!s.hideFooterSelectedRowCount&&a>0?p.jsx(LZ,{selectedRowCount:a}):p.jsx("div",{}),d=!s.hideFooterRowCount&&!s.pagination?p.jsx(s.slots.footerRowCount,v({},(r=s.slotProps)==null?void 0:r.footerRowCount,{rowCount:i,visibleRowCount:c})):null,h=s.pagination&&!s.hideFooterPagination&&s.slots.pagination&&p.jsx(s.slots.pagination,v({},(o=s.slotProps)==null?void 0:o.pagination));return p.jsxs(BY,v({ref:n},t,{children:[u,d,h]}))});function HZ(){var e,t;const n=Ee();return p.jsxs(f.Fragment,{children:[p.jsx(n.slots.preferencesPanel,v({},(e=n.slotProps)==null?void 0:e.preferencesPanel)),n.slots.toolbar&&p.jsx(n.slots.toolbar,v({},(t=n.slotProps)==null?void 0:t.toolbar))]})}const zZ=f.forwardRef(function(t,n){return p.jsx(bx,v({ref:n},t,{children:p.jsx(A4,{})}))}),BZ=f.forwardRef(function(t,n){const o=Ke().current.getLocaleText("noRowsLabel");return p.jsx(bx,v({ref:n},t,{children:o}))}),VZ=X(Z6)(({theme:e})=>({[`& .${ds.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${ds.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),UZ=f.forwardRef(function(t,n){const r=Ke(),o=Ee(),l=Pe(r,Sr),s=Pe(r,Rh),i=f.useMemo(()=>{var g,m;return(g=(m=o.rowCount)!=null?m:s)!=null?g:0},[o.rowCount,s]),a=f.useMemo(()=>Math.floor(i/(l.pageSize||1)),[i,l.pageSize]),c=f.useCallback(g=>{const m=Number(g.target.value);r.current.setPageSize(m)},[r]),u=f.useCallback((g,m)=>{r.current.setPage(m)},[r]),h=(g=>{for(let m=0;m<o.pageSizeOptions.length;m+=1){const x=o.pageSizeOptions[m];if(typeof x=="number"){if(x===g)return!0}else if(x.value===g)return!0}return!1})(l.pageSize)?o.pageSizeOptions:[];return p.jsx(VZ,v({ref:n,component:"div",count:i,page:l.page<=a?l.page:a,rowsPerPageOptions:h,rowsPerPage:l.pageSize,onPageChange:u,onRowsPerPageChange:c},r.current.getLocaleText("MuiTablePagination"),t))}),WZ=["className","rowCount","visibleRowCount"],GZ=e=>{const{classes:t}=e;return ae({root:["rowCount"]},qe,t)},KZ=Zt("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),qZ=f.forwardRef(function(t,n){const{className:r,rowCount:o,visibleRowCount:l}=t,s=W(t,WZ),i=Ke(),a=Ee(),c=GZ(a);if(o===0)return null;const u=l<o?i.current.getLocaleText("footerTotalVisibleRows")(l,o):o.toLocaleString();return p.jsxs(KZ,v({ref:n,className:ee(c.root,r),ownerState:a},s,{children:[i.current.getLocaleText("footerTotalRows")," ",u]}))}),tp=(e,t)=>{let n,r;return t.pagination&&t.paginationMode==="client"?(r=wx(e),n=TX(e)):(n=Wl(e),n.length===0?r=null:r={firstRowIndex:0,lastRowIndex:n.length-1}),{rows:n,range:r}},Vs=(e,t)=>{const n=tp(e,t);return f.useMemo(()=>({rows:n.rows,range:n.range}),[n.rows,n.range])},Cv={current:null};function Du(e){return e.isInternal=!0,e}function np(e){return e!==void 0&&e.isInternal===!0}function YZ(e){return Du((t,n)=>{const r=e(t,n);return r&&(o=>r(o.value,o.row,n,Cv.current))})}function Au(e){return e.map(t=>v({},t,{getApplyFilterFn:YZ(t.getApplyFilterFnV7),getApplyFilterFnV7:Du(t.getApplyFilterFnV7)}))}function tE(e){return Du((t,n,r)=>{const o=e(t,n,r);return o&&(l=>o(l.value,l.row,n,r))})}function nE(e){return{current:e.current.getPublicApi()}}let Wa;function XZ(){if(Wa!==void 0)return Wa;try{Wa=new Function("return true")()}catch{Wa=!1}return Wa}const wv=(e,t)=>{const n=v({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=Ca(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},QZ=Eo(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),ZZ=Eo("MUI: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),JZ=Eo("MUI: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),rE=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(QZ(),o=[e.items[0]]):o=e.items;const l=r&&o.some(i=>i.id==null),s=o.some(i=>i.operator==null);return l&&ZZ(),s&&JZ(),s||l?v({},e,{items:o.map(i=>wv(i,n))}):e.items!==o?v({},e,{items:o}):e},tS=(e,t,n)=>r=>v({},r,{filterModel:rE(e,t,n)}),Pl=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,oE=(e,t)=>{if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){var o;const g=n.valueParser;r=Array.isArray(e.value)?(o=e.value)==null?void 0:o.map(m=>g(m)):g(e.value)}else r=e.value;const{ignoreDiacritics:l}=t.current.rootProps;l&&(r=Pl(r));const s=v({},e,{value:r}),i=n.filterOperators;if(!(i!=null&&i.length))throw new Error(`MUI: No filter operators found for column '${n.field}'.`);const a=i.find(g=>g.value===s.operator);if(!a)throw new Error(`MUI: No filter operator found for column '${n.field}' and operator value '${s.operator}'.`);const c=!np(a.getApplyFilterFn),u=!np(a.getApplyFilterFnV7),d=nE(t);if(a.getApplyFilterFnV7&&!(c&&!u)){const g=a.getApplyFilterFnV7(s,n);return typeof g!="function"?null:{v7:!0,item:s,fn:m=>{let x=t.current.getRowValue(m,n);return l&&(x=Pl(x)),g(x,m,n,d)}}}const h=a.getApplyFilterFn(s,n);return typeof h!="function"?null:{v7:!1,item:s,fn:g=>{const m=t.current.getCellParams(g,s.field);Cv.current=d,l&&(m.value=Pl(m.value));const x=h(m);return Cv.current=null,x}}};let nS=1;const eJ=(e,t,n)=>{const{items:r}=e,o=r.map(i=>oE(i,t)).filter(i=>!!i);if(o.length===0)return null;if(n||!XZ())return(i,a)=>{const c={};for(let u=0;u<o.length;u+=1){const d=o[u];(!a||a(d.item.field))&&(c[d.item.id]=d.v7?d.fn(i):d.fn(t.current.getRowId(i)))}return c};const l=new Function("getRowId","appliers","row","shouldApplyFilter",`"use strict";
${o.map((i,a)=>`const shouldApply${a} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(i.item.field)});`).join(`
`)}
const result$$ = {
${o.map((i,a)=>` ${JSON.stringify(String(i.item.id))}: !shouldApply${a}
? false
: ${i.v7?`appliers[${a}].fn(row)`:`appliers[${a}].fn(getRowId(row))`},`).join(`
`)}
};
return result$$;`.replaceAll("$$",String(nS)));return nS+=1,(i,a)=>l(t.current.getRowId,o,i,a)},tJ=(e,t)=>{var n,r,o;const l=(n=(r=e.quickFilterValues)==null?void 0:r.filter(Boolean))!=null?n:[];if(l.length===0)return null;const i=((o=e.quickFilterExcludeHiddenColumns)!=null?o:!1)?Ih(t):zo(t),a=[],{ignoreDiacritics:c}=t.current.rootProps,u=nE(t);return i.forEach(d=>{const h=t.current.getColumn(d),g=h==null?void 0:h.getApplyQuickFilterFn,m=h==null?void 0:h.getApplyQuickFilterFnV7,x=!np(g),w=!np(m);m&&!(x&&!w)?a.push({column:h,appliers:l.map(b=>{const y=c?Pl(b):b;return{v7:!0,fn:m(y,h,u)}})}):g&&a.push({column:h,appliers:l.map(b=>{const y=c?Pl(b):b;return{v7:!1,fn:g(y,h,u)}})})}),function(h,g){const m={},x={};e:for(let b=0;b<l.length;b+=1){const y=l[b];for(let C=0;C<a.length;C+=1){const{column:S,appliers:I}=a[C],{field:P}=S;if(g&&!g(P))continue;const k=I[b];let $=t.current.getRowValue(h,S);if(k.fn!==null)if(k.v7){if(c&&($=Pl($)),k.fn($,h,S,u)){m[y]=!0;continue e}}else{var w;const D=(w=x[P])!=null?w:t.current.getCellParams(t.current.getRowId(h),P);if(c&&(D.value=Pl(D.value)),x[P]=D,k.fn(D)){m[y]=!0;continue e}}}m[y]=!1}return m}},nJ=(e,t,n)=>{const r=eJ(e,t,n),o=tJ(e,t);return function(s,i,a){var c,u;a.passingFilterItems=(c=r==null?void 0:r(s,i))!=null?c:null,a.passingQuickFilterValues=(u=o==null?void 0:o(s,i))!=null?u:null}},rS=e=>e!=null,rJ=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>oE(r,t)!==null)),e.cleanedFilterItems),oJ=(e,t,n,r,o)=>{const l=rJ(o,r,n.items),s=e.filter(rS),i=t.filter(rS);if(s.length>0){var a;const u=h=>s.some(g=>g[h.id]);if(((a=n.logicOperator)!=null?a:iu().logicOperator)===Hn.And){if(!l.every(u))return!1}else if(!l.some(u))return!1}if(i.length>0&&n.quickFilterValues!=null){var c;const u=h=>i.some(g=>g[h]);if(((c=n.quickFilterLogicOperator)!=null?c:iu().quickFilterLogicOperator)===Hn.And){if(!n.quickFilterValues.every(u))return!1}else if(!n.quickFilterValues.some(u))return!1}return!0},oS=Du(e=>{if(!e)return null;const t=new RegExp(Vd(e),"i");return(n,r,o,l)=>{let s=l.current.getRowFormattedValue(r,o);return l.current.ignoreDiacritics&&(s=Pl(s)),s!=null?t.test(s.toString()):!1}}),lJ=(e=!1)=>Au([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(Vd(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:vo},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:vo},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${Vd(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:vo},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${Vd(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:vo},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(l=>r.compare(l,o.toString()||"")===0):!1},InputComponent:eE}]),to={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:NX,type:"string",align:"left",filterOperators:lJ(),renderEditCell:dY,getApplyQuickFilterFn:tE(oS),getApplyQuickFilterFnV7:oS},sJ=()=>Au([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:PZ}]);function iJ({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const aJ=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},lE=v({},to,{type:"boolean",align:"center",headerAlign:"center",renderCell:Zq,renderEditCell:nY,sortComparator:G$,valueFormatter:iJ,filterOperators:sJ(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>aJ(e)}),cl="__check__",Pa=v({},lE,{field:cl,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>ep(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>p.jsx(JX,v({},e)),renderCell:e=>p.jsx(XX,v({},e))}),jh="actions",cJ=v({},to,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:TY,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0}),Mx="__detail_panel_toggle__",Tn=e=>e.editRows,uJ=["selected","hovered","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","isLastVisible","focusedCellColumnIndexNotInRange","isNotVisible","focusedCell","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],dJ=e=>{const{editable:t,editing:n,selected:r,isLastVisible:o,rowHeight:l,classes:s}=e;return ae({root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible",l==="auto"&&"row--dynamicHeight"]},qe,s)};function fJ({width:e}){if(!e)return null;const t={width:e};return p.jsx("div",{className:`${z.cell} ${z.withBorderColor}`,style:t})}const pJ=f.forwardRef(function(t,n){const{selected:r,hovered:o,rowId:l,row:s,index:i,style:a,position:c,rowHeight:u,className:d,visibleColumns:h,renderedColumns:g,containerWidth:m,firstColumnToRender:x,isLastVisible:w=!1,focusedCellColumnIndexNotInRange:b,isNotVisible:y,focusedCell:C,onClick:S,onDoubleClick:I,onMouseEnter:P,onMouseLeave:k,onMouseOut:$,onMouseOver:D}=t,O=W(t,uJ),R=Ke(),L=f.useRef(null),_=Ee(),M=Vs(R,_),T=Pe(R,px),j=Pe(R,br),A=Pe(R,Th),E=Pe(R,_u),F=Pe(R,Tn),N=nt(L,n),V=i+E+2,H={selected:r,hovered:o,isLastVisible:w,classes:_.classes,editing:R.current.getRowMode(l)===gt.Edit,editable:_.editMode===$o.Row,rowHeight:u},Q=dJ(H);f.useLayoutEffect(()=>{u==="auto"&&L.current&&typeof ResizeObserver>"u"&&R.current.unstable_storeRowHeightMeasurement(l,L.current.clientHeight,c)},[R,u,l,c]),f.useLayoutEffect(()=>{if(M.range){const _e=R.current.getRowIndexRelativeToVisibleRows(l);_e!=null&&R.current.unstable_setLastMeasuredRowIndex(_e)}const re=L.current;if(!re||u!=="auto"||typeof ResizeObserver>"u")return;const ye=new ResizeObserver(_e=>{const[Le]=_e,Oe=Le.borderBoxSize&&Le.borderBoxSize.length>0?Le.borderBoxSize[0].blockSize:Le.contentRect.height;R.current.unstable_storeRowHeightMeasurement(l,Oe,c)});return ye.observe(re),()=>ye.disconnect()},[R,M.range,i,u,l,c]);const q=f.useCallback((re,ce)=>ye=>{Fu(ye)||R.current.getRow(l)&&(R.current.publishEvent(re,R.current.getRowParams(l),ye),ce&&ce(ye))},[R,l]),Z=f.useCallback(re=>{const ce=Dq(re.target,z.cell),ye=ce==null?void 0:ce.getAttribute("data-field");if(ye){if(ye===Pa.field||ye===Mx||ye==="__reorder__"||R.current.getCellMode(l,ye)===it.Edit)return;const _e=R.current.getColumn(ye);if((_e==null?void 0:_e.type)===jh)return}q("rowClick",S)(re)},[R,S,q,l]),{slots:le,slotProps:fe,disableColumnReorder:me}=_,Y=le.cell===xv?xv:Gq,oe=_.rowReordering,J=(re,ce)=>{var ye,_e;const Le=me&&re.disableReorder||!oe&&!!j.length&&A>1&&Object.keys(F).length>0,Oe=(ye=(_e=F[l])==null?void 0:_e[re.field])!=null?ye:null;let ge=!1;return b!==void 0&&h[b].field===re.field&&(ge=!0),p.jsx(Y,v({column:re,width:ce.width,rowId:l,height:u,showRightBorder:ce.showRightBorder,align:re.align||"left",colIndex:ce.indexRelativeToAllColumns,colSpan:ce.colSpan,disableDragEvents:Le,editCellState:Oe,isNotVisible:ge},fe==null?void 0:fe.cell),re.field)},U=Pe(R,()=>v({},R.current.unstable_getRowInternalSizes(l)),fx);let ue=u;if(ue==="auto"&&U){let re=0;const ce=Object.entries(U).reduce((ye,[_e,Le])=>/^base[A-Z]/.test(_e)?(re+=1,Le>ye?Le:ye):ye,0);ce>0&&re>1&&(ue=ce)}const pe=f.useMemo(()=>{if(y)return{opacity:0,width:0,height:0};const re=v({},a,{maxHeight:u==="auto"?"none":u,minHeight:ue});if(U!=null&&U.spacingTop){const ce=_.rowSpacingType==="border"?"borderTopWidth":"marginTop";re[ce]=U.spacingTop}if(U!=null&&U.spacingBottom){const ce=_.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let ye=re[ce];typeof ye!="number"&&(ye=parseInt(ye||"0",10)),ye+=U.spacingBottom,re[ce]=ye}return re},[y,u,a,ue,U,_.rowSpacingType]),de=R.current.unstable_applyPipeProcessors("rowClassName",[],l);if(typeof _.getRowClassName=="function"){var G;const re=i-(((G=M.range)==null?void 0:G.firstRowIndex)||0),ce=v({},R.current.getRowParams(l),{isFirstVisible:re===0,isLastVisible:re===M.rows.length-1,indexRelativeToCurrentPage:re});de.push(_.getRowClassName(ce))}const se=SX(1e4,20,80),ie=R.current.getRowNode(l);if(!ie)return null;const ke=ie.type,we=[];for(let re=0;re<g.length;re+=1){const ce=g[re];let ye=x+re;b!==void 0&&C&&(h[b].field===ce.field?ye=b:ye-=1);const _e=R.current.unstable_getCellColSpanInfo(l,ye);if(_e&&!_e.spannedByColSpan)if(ke!=="skeletonRow"){const{colSpan:Le,width:Oe}=_e.cellProps,ge={width:Oe,colSpan:Le,showRightBorder:_.showCellVerticalBorder,indexRelativeToAllColumns:ye};we.push(J(ce,ge))}else{const{width:Le}=_e.cellProps,Oe=Math.round(se());we.push(p.jsx(le.skeletonCell,{width:Le,contentWidth:Oe,field:ce.field,align:ce.align},ce.field))}}const Se=m-T,ve=s?{onClick:Z,onDoubleClick:q("rowDoubleClick",I),onMouseEnter:q("rowMouseEnter",P),onMouseLeave:q("rowMouseLeave",k),onMouseOut:q("rowMouseOut",$),onMouseOver:q("rowMouseOver",D)}:null;return p.jsxs("div",v({ref:N,"data-id":l,"data-rowindex":i,role:"row",className:ee(...de,Q.root,d,o&&"Mui-hovered"),"aria-rowindex":V,"aria-selected":r,style:pe},ve,O,{children:[we,Se>0&&p.jsx(fJ,{width:Se})]}))}),hJ=Fh(pJ);function gJ({privateApiRef:e,props:t,children:n}){const r=f.useRef(e.current.getPublicApi());return p.jsx(f$.Provider,{value:t,children:p.jsx(p$.Provider,{value:e,children:p.jsx(d$.Provider,{value:r,children:n})})})}const mJ=CX()&&window.localStorage.getItem("DEBUG")!=null,rc=()=>{},vJ={debug:rc,info:rc,warn:rc,error:rc},lS=["debug","info","warn","error"];function sS(e,t,n=console){const r=lS.indexOf(t);if(r===-1)throw new Error(`MUI: Log level ${t} not recognized.`);return lS.reduce((l,s,i)=>(i>=r?l[s]=(...a)=>{const[c,...u]=a;n[s](`MUI: ${e} - ${c}`,...u)}:l[s]=rc,l),{})}const yJ=(e,t)=>{const n=f.useCallback(r=>mJ?sS(r,"debug",t.logger):t.logLevel?sS(r,t.logLevel.toString(),t.logger):vJ,[t.logLevel,t.logger]);Ue(e,{getLogger:n},"private")};class Ix{static create(t){return new Ix(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}class xJ{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),l=Array.from(r.regular.keys());for(let s=o.length-1;s>=0;s-=1){const i=o[s];r.highPriority.has(i)&&i.apply(this,n)}for(let s=0;s<l.length;s+=1){const i=l[s];r.regular.has(i)&&i.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...l){r.removeListener(t,o),n.apply(r,l)})}}const sE=Symbol("mui.api_private"),bJ=e=>e.isPropagationStopped!==void 0;let iS=0;function CJ(e){var t;const n=(t=e.current)==null?void 0:t[sE];if(n)return n;const r={},o={state:r,store:Ix.create(r),instanceId:{id:iS}};return iS+=1,o.getPublicApi=()=>e.current,o.register=(l,s)=>{Object.keys(s).forEach(i=>{const a=s[i],c=o[i];if((c==null?void 0:c.spying)===!0?c.target=a:o[i]=a,l==="public"){const u=e.current,d=u[i];(d==null?void 0:d.spying)===!0?d.target=a:u[i]=a}})},o.register("private",{caches:{},eventManager:new xJ}),o}function wJ(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[sE]:e.current}}function SJ(e,t){const n=f.useRef(),r=f.useRef();r.current||(r.current=CJ(n)),n.current||(n.current=wJ(r));const o=f.useCallback((...s)=>{const[i,a,c={}]=s;if(c.defaultMuiPrevented=!1,bJ(c)&&c.isPropagationStopped())return;const u=t.signature===Mo.DataGridPro?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(i,a,c,u)},[r,t.signature]),l=f.useCallback((s,i,a)=>{r.current.eventManager.on(s,i,a);const c=r.current;return()=>{c.eventManager.removeListener(s,i)}},[r]);return Ue(r,{subscribeEvent:l,publishEvent:o},"public"),f.useImperativeHandle(e,()=>n.current,[n]),f.useEffect(()=>{const s=r.current;return()=>{s.publishEvent("unmount")}},[r]),r}const PJ=(e,t)=>{const n=f.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function uu(e){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(e)}function kJ(e,t){if(uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function du(e){var t=kJ(e,"string");return uu(t)=="symbol"?t:String(t)}const MJ=e=>{const t=f.useRef({}),n=f.useRef(!1),r=f.useCallback(u=>{n.current||!u||(n.current=!0,Object.values(u.appliers).forEach(d=>{d()}),n.current=!1)},[]),o=f.useCallback((u,d,h)=>{t.current[u]||(t.current[u]={processors:new Map,appliers:{}});const g=t.current[u];return g.processors.get(d)!==h&&(g.processors.set(d,h),r(g)),()=>{t.current[u].processors.set(d,null)}},[r]),l=f.useCallback((u,d,h)=>(t.current[u]||(t.current[u]={processors:new Map,appliers:{}}),t.current[u].appliers[d]=h,()=>{const g=t.current[u].appliers,m=W(g,[d].map(du));t.current[u].appliers=m}),[]),s=f.useCallback(u=>{const d=t.current[u];r(d)},[r]),i=f.useCallback((...u)=>{const[d,h,g]=u;return t.current[d]?Array.from(t.current[d].processors.values()).reduce((x,w)=>w?w(x,g):x,h):h},[]),a={registerPipeProcessor:o,registerPipeApplier:l,requestPipeProcessorsApplication:s},c={unstable_applyPipeProcessors:i};Ue(e,a,"private"),Ue(e,c,"public")},Xt=(e,t,n)=>{const r=f.useRef(),o=f.useRef(`mui-${Math.round(Math.random()*1e9)}`),l=f.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,o.current,n)},[e,n,t]);ju(()=>{l()});const s=f.useRef(!0);f.useEffect(()=>(s.current?s.current=!1:l(),()=>{r.current&&(r.current(),r.current=null)}),[l])},$x=(e,t,n)=>{const r=f.useRef(),o=f.useRef(`mui-${Math.round(Math.random()*1e9)}`),l=f.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);ju(()=>{l()});const s=f.useRef(!0);f.useEffect(()=>(s.current?s.current=!1:l(),()=>{r.current&&(r.current(),r.current=null)}),[l])},rp=(e,t,n,r)=>{const o=f.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);ju(()=>{o()});const l=f.useRef(!0);f.useEffect(()=>{l.current?l.current=!1:o()},[o])},Ts="none",aS={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},IJ=e=>{const t=f.useRef(new Map),n=f.useRef({}),r=f.useCallback((a,c,u)=>{const d=()=>{const m=n.current[c],x=W(m,[a].map(du));n.current[c]=x};n.current[c]||(n.current[c]={});const h=n.current[c],g=h[a];return h[a]=u,!g||g===u||a===e.current.getActiveStrategy(aS[c])&&e.current.publishEvent("activeStrategyProcessorChange",c),d},[e]),o=f.useCallback((a,c)=>{const u=e.current.getActiveStrategy(aS[a]);if(u==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const d=n.current[a];if(!d||!d[u])throw new Error(`No processor found for processor "${a}" on strategy "${u}"`);const h=d[u];return h(c)},[e]),l=f.useCallback(a=>{var c;const d=Array.from(t.current.entries()).find(([,h])=>h.group!==a?!1:h.isAvailable());return(c=d==null?void 0:d[0])!=null?c:Ts},[]),s=f.useCallback((a,c,u)=>{t.current.set(c,{group:a,isAvailable:u}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Ue(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:l,setStrategyAvailability:s},"private")},$J=(e,t)=>{const n=f.useRef({}),[,r]=f.useState(),o=f.useCallback(u=>{n.current[u.stateId]=u},[]),l=f.useCallback((u,d)=>{let h;if(L$(u)?h=u(e.current.state):h=u,e.current.state===h)return!1;let g=!1;const m=[];if(Object.keys(n.current).forEach(x=>{const w=n.current[x],b=w.stateSelector(e.current.state,e.current.instanceId),y=w.stateSelector(h,e.current.instanceId);y!==b&&(m.push({stateId:w.stateId,hasPropChanged:y!==w.propModel}),w.propModel!==void 0&&y!==w.propModel&&(g=!0))}),m.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${m[0].stateId}, therefore, you're not allowed to update ${m.map(x=>x.stateId).join(", ")} in the same transaction.`);if(g||(e.current.state=h,e.current.publishEvent&&e.current.publishEvent("stateChange",h),e.current.store.update(h)),m.length===1){const{stateId:x,hasPropChanged:w}=m[0],b=n.current[x],y=b.stateSelector(h,e.current.instanceId);if(b.propOnChange&&w){const C=t.signature===Mo.DataGridPro?{api:e.current,reason:d}:{reason:d};b.propOnChange(y,C)}g||e.current.publishEvent(b.changeEvent,y,{reason:d})}return!g},[e,t.signature]),s=f.useCallback((u,d,h)=>e.current.setState(g=>v({},g,{[u]:d(g[u])}),h),[e]),i=f.useCallback(()=>r(()=>e.current.state),[e]),a={setState:l,forceUpdate:i},c={updateControlState:s,registerControlState:o};Ue(e,a,"public"),Ue(e,c,"private")},EJ=(e,t)=>{const n=SJ(e,t);return yJ(n,t),$J(n,t),MJ(n),IJ(n),PJ(n,t),n.current.register("private",{rootProps:t}),n},An=(e,t,n)=>{const r=f.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)},TJ=/(\d+)-(\d+)-(\d+)/,RJ=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function ni(e,t,n,r){if(!e.value)return null;const[o,l,s,i,a]=e.value.match(n?RJ:TJ).slice(1).map(Number),c=new Date(o,l-1,s,i||0,a||0).getTime();return u=>{if(!u)return!1;if(r)return t(u.getTime(),c);const h=new Date(u).setHours(n?u.getHours():0,n?u.getMinutes():0,0,0);return t(h,c)}}const iE=e=>Au([{value:"is",getApplyFilterFnV7:t=>ni(t,(n,r)=>n===r,e),InputComponent:ti,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFnV7:t=>ni(t,(n,r)=>n!==r,e),InputComponent:ti,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFnV7:t=>ni(t,(n,r)=>n>r,e),InputComponent:ti,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFnV7:t=>ni(t,(n,r)=>n>=r,e),InputComponent:ti,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFnV7:t=>ni(t,(n,r)=>n<r,e,!e),InputComponent:ti,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFnV7:t=>ni(t,(n,r)=>n<=r,e),InputComponent:ti,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!=null,requiresFilterValue:!1}]);function aE({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
`))}function OJ({value:e,field:t,id:n}){return e?(aE({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function _J({value:e,field:t,id:n}){return e?(aE({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const FJ=v({},to,{type:"date",sortComparator:K$,valueFormatter:OJ,filterOperators:iE(),renderEditCell:T$,pastedValueParser:e=>new Date(e)}),jJ=v({},to,{type:"dateTime",sortComparator:K$,valueFormatter:_J,filterOperators:iE(!0),renderEditCell:T$,pastedValueParser:e=>new Date(e)}),fl=e=>e==null?null:Number(e),cS=Du(e=>e==null||Number.isNaN(e)||e===""?null:t=>fl(t)===fl(e)),DJ=()=>Au([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>fl(t)===e.value,InputComponent:vo,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>fl(t)!==e.value,InputComponent:vo,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:fl(t)>e.value,InputComponent:vo,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:fl(t)>=e.value,InputComponent:vo,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:fl(t)<e.value,InputComponent:vo,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:fl(t)<=e.value,InputComponent:vo,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:eE,InputComponentProps:{type:"number"}}]),AJ=v({},to,{type:"number",align:"right",headerAlign:"right",sortComparator:G$,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>bX(e)?e.toLocaleString():e||"",filterOperators:DJ(),getApplyQuickFilterFn:tE(cS),getApplyQuickFilterFnV7:cS}),ri=e=>e==null||!Cx(e)?e:e.value,LJ=()=>Au([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>ri(t)===ri(e.value),InputComponent:Jw},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>ri(t)!==ri(e.value),InputComponent:Jw},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(ri);return n=>t.includes(ri(n))},InputComponent:TZ}]),NJ=e=>typeof e[0]=="object",HJ=e=>Cx(e)?e.value:e,zJ=e=>Cx(e)?e.label:String(e),BJ=v({},to,{type:"singleSelect",getOptionLabel:zJ,getOptionValue:HJ,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,l=e.api.getColumn(n);if(!gs(l))return"";let s;if(typeof l.valueOptions=="function"?s=l.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):s=l.valueOptions,r==null)return"";if(!s)return r;if(!NJ(s))return l.getOptionLabel(r);const i=s.find(a=>l.getOptionValue(a)===r);return i?l.getOptionLabel(i):""},renderEditCell:wY,filterOperators:LJ(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],l=n.getOptionValue;if(o.find(i=>l(i)===e))return e}}),cE="__default__",VJ=()=>({string:to,number:AJ,date:FJ,dateTime:jJ,boolean:lE,singleSelect:BJ,[jh]:cJ,[cE]:to});function Sv(e,t){return typeof e=="string"&&[t,`
`,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const uE=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let o;if(r){var l;const i=e.colDef.type;if(i==="number")o=String(e.value);else if(i==="date"||i==="dateTime"){var s;o=(s=e.value)==null?void 0:s.toISOString()}else typeof((l=e.value)==null?void 0:l.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Sv(o,n)};Eo(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class Pv{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.delimiterCharacter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.delimiterCharacter):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const UJ=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const l=new Pv({delimiterCharacter:r});return t.forEach(s=>{const i=n(e,s.field);l.addValue(uE(i,{delimiterCharacter:r,ignoreValueFormatter:o}))}),l.getRowString()};function WJ(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:l,ignoreValueFormatter:s,apiRef:i}=e,a=n.reduce((g,m)=>`${g}${UJ({id:m,columns:t,getCellParams:i.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:s})}\r
`,"").trim();if(!o)return a;const c=t.filter(g=>g.field!==Pa.field),u=[];if(l){const g=i.current.unstable_getAllGroupDetails();let m=0;const x=c.reduce((w,b)=>{const y=i.current.unstable_getColumnGroupPath(b.field);return w[b.field]=y,m=Math.max(m,y.length),w},{});for(let w=0;w<m;w+=1){const b=new Pv({delimiterCharacter:r,sanitizeCellValue:Sv});u.push(b),c.forEach(y=>{const C=(x[y.field]||[])[w],S=g[C];b.addValue(S?S.headerName||S.groupId:"")})}}const d=new Pv({delimiterCharacter:r,sanitizeCellValue:Sv});return c.forEach(g=>{d.addValue(g.headerName||g.field)}),u.push(d),`${`${u.map(g=>g.getRowString()).join(`\r
`)}\r
`}${a}`.trim()}function uS(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function GJ(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{uS(e)}):uS(e)}function KJ(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const qJ=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,l=f.useCallback(s=>{if(!((s.ctrlKey||s.metaKey)&&s.key==="c")||KJ(s.target))return;let i="";if(e.current.getSelectedRows().size>0)i=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const c=er(e);if(c){const u=e.current.getCellParams(c.id,c.field);i=uE(u,{delimiterCharacter:o,ignoreValueFormatter:r})}}i=e.current.unstable_applyPipeProcessors("clipboardCopy",i),i&&(GJ(i),e.current.publishEvent("clipboardCopy",i))},[e,r,o]);PX(e,e.current.rootElementRef,"keydown",l),bt(e,"clipboardCopy",t.onClipboardCopy)},YJ=e=>v({},e,{columnMenu:{open:!1}}),XJ=e=>{const t=Mn(e,"useGridColumnMenu"),n=f.useCallback(s=>{e.current.setState(a=>a.columnMenu.open&&a.columnMenu.field===s?a:(t.debug("Opening Column Menu"),v({},a,{columnMenu:{open:!0,field:s}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=f.useCallback(()=>{const s=yv(e.current.state);if(s.field){const a=Ca(e),c=Zr(e),u=zo(e);let d=s.field;if(a[d]||(d=u[0]),c[d]===!1){const h=u.filter(m=>m===d?!0:c[m]!==!1),g=h.indexOf(d);d=h[g+1]||h[g-1]}e.current.setColumnHeaderFocus(d)}e.current.setState(a=>!a.columnMenu.open&&a.columnMenu.field===void 0?a:(t.debug("Hiding Column Menu"),v({},a,{columnMenu:v({},a.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=f.useCallback(s=>{t.debug("Toggle Column Menu");const i=yv(e.current.state);!i.open||i.field!==s?n(s):r()},[e,t,n,r]);Ue(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Te(e,"columnResizeStart",r),Te(e,"virtualScrollerWheel",e.current.hideColumnMenu),Te(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},dE=["maxWidth","minWidth","width","flex"];function QJ({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(s=>s.field)),o={all:{},frozenFields:[],freeze:s=>{const i=o.all[s];i&&i.frozen!==!0&&(o.all[s].frozen=!0,o.frozenFields.push(s))}};function l(){if(o.frozenFields.length===r.size)return;const s={min:{},max:{}};let i=e,a=t,c=0;o.frozenFields.forEach(u=>{i-=o.all[u].computedWidth,a-=o.all[u].flex});for(let u=0;u<n.length;u+=1){const d=n[u];if(o.all[d.field]&&o.all[d.field].frozen===!0)continue;let g=i/a*d.flex;g<d.minWidth?(c+=d.minWidth-g,g=d.minWidth,s.min[d.field]=!0):g>d.maxWidth&&(c+=d.maxWidth-g,g=d.maxWidth,s.max[d.field]=!0),o.all[d.field]={frozen:!1,computedWidth:g,flex:d.flex}}c<0?Object.keys(s.max).forEach(u=>{o.freeze(u)}):c>0?Object.keys(s.min).forEach(u=>{o.freeze(u)}):n.forEach(({field:u})=>{o.freeze(u)}),l()}return l(),o.all}const kv=(e,t)=>{const n={};let r=0,o=0;const l=[];e.orderedFields.forEach(i=>{const a=v({},e.lookup[i]);if(e.columnVisibilityModel[i]===!1)a.computedWidth=0;else{let c;a.flex&&a.flex>0?(r+=a.flex,c=0,l.push(a)):c=pa(a.width||to.width,a.minWidth||to.minWidth,a.maxWidth||to.maxWidth),o+=c,a.computedWidth=c}n[i]=a});const s=Math.max(t-o,0);if(r>0&&t>0){const i=QJ({initialFreeSpace:s,totalFlexUnits:r,flexColumns:l});Object.keys(i).forEach(a=>{n[a].computedWidth=i[a].computedWidth})}return v({},e,{lookup:n})},ZJ=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const l={},s=[];for(let u=0;u<n.length;u+=1){const d=n[u];e.lookup[d]&&(l[d]=!0,s.push(d))}const i=s.length===0?e.orderedFields:[...s,...e.orderedFields.filter(u=>!l[u])],a=v({},e.lookup);for(let u=0;u<o.length;u+=1){const d=o[u],h=v({},a[d],{hasBeenResized:!0});Object.entries(r[d]).forEach(([g,m])=>{h[g]=m===-1?1/0:m}),a[d]=h}return v({},e,{orderedFields:i,lookup:a})};function dS(e,t){let n=e[cE];return t&&e[t]&&(n=e[t]),n}const ci=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=Zr(e),keepOnlyColumnsToUpsert:l=!1})=>{var s,i,a;const c=!e.current.state.columns;let u;if(c)u={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const m=hs(e.current.state);u={orderedFields:l?[]:[...m.orderedFields],lookup:v({},m.lookup),columnVisibilityModel:o}}let d={};l&&!c&&(d=Object.keys(u.lookup).reduce((m,x)=>v({},m,{[x]:!1}),{})),t.forEach(m=>{const{field:x}=m;d[x]=!0;let w=u.lookup[x];w==null?(w=v({},dS(r,m.type),{field:x,hasBeenResized:!1}),u.orderedFields.push(x)):l&&u.orderedFields.push(x),w&&w.type!==m.type&&(w=v({},dS(r,m.type),{field:x}));let b=w.hasBeenResized;dE.forEach(y=>{m[y]!==void 0&&(b=!0,m[y]===-1&&(m[y]=1/0))}),u.lookup[x]=v({},w,m,{hasBeenResized:b})}),l&&!c&&Object.keys(u.lookup).forEach(m=>{d[m]||delete u.lookup[m]});const h=e.current.unstable_applyPipeProcessors("hydrateColumns",u),g=ZJ(h,n);return kv(g,(s=(i=(a=e.current).getRootDimensions)==null||(i=i.call(a))==null?void 0:i.viewportInnerSize.width)!=null?s:0)},fS=e=>t=>v({},t,{columns:e});function Mv({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let l=e;for(let s=n;s<r;s+=1)if(o[s]){const a=o[s].id,c=t.current.unstable_getCellColSpanInfo(a,e);c&&c.spannedByColSpan&&(l=c.leftVisibleCellIndex)}return l}function JJ({firstColumnIndex:e,minColumnIndex:t,columnBuffer:n,firstRowToRender:r,lastRowToRender:o,apiRef:l,visibleRows:s}){const i=Math.max(e-n,t);return Mv({firstColumnToRender:i,apiRef:l,firstRowToRender:r,lastRowToRender:o,visibleRows:s})}function Ex(e,t){const n=Sa(e),r=_u(e);return Math.floor(t*n)*((r??0)+1)}const fE=VJ(),eee=(e,t,n)=>{var r,o,l,s;const i=ci({apiRef:n,columnTypes:fE,columnsToUpsert:t.columns,initialState:(r=t.initialState)==null?void 0:r.columns,columnVisibilityModel:(o=(l=t.columnVisibilityModel)!=null?l:(s=t.initialState)==null||(s=s.columns)==null?void 0:s.columnVisibilityModel)!=null?o:{},keepOnlyColumnsToUpsert:!0});return v({},e,{columns:i})};function tee(e,t){var n,r;const o=Mn(e,"useGridColumns"),l=fE,s=f.useRef(t.columns),i=f.useRef(l);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:Zr,changeEvent:"columnVisibilityModelChange"});const a=f.useCallback(M=>{o.debug("Updating columns state."),e.current.setState(fS(M)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",M.orderedFields)},[o,e]),c=f.useCallback(M=>Ca(e)[M],[e]),u=f.useCallback(()=>ko(e),[e]),d=f.useCallback(()=>fn(e),[e]),h=f.useCallback((M,T=!0)=>(T?fn(e):ko(e)).findIndex(A=>A.field===M),[e]),g=f.useCallback(M=>{const T=h(M);return fa(e)[T]},[e,h]),m=f.useCallback(M=>{Zr(e)!==M&&(e.current.setState(j=>v({},j,{columns:ci({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:M,keepOnlyColumnsToUpsert:!1})})),e.current.forceUpdate())},[e,l]),x=f.useCallback(M=>{const T=ci({apiRef:e,columnTypes:l,columnsToUpsert:M,initialState:void 0,keepOnlyColumnsToUpsert:!1});a(T)},[e,a,l]),w=f.useCallback((M,T)=>{var j;const A=Zr(e),E=(j=A[M])!=null?j:!0;if(T!==E){const F=v({},A,{[M]:T});e.current.setColumnVisibilityModel(F)}},[e]),b=f.useCallback(M=>zo(e).findIndex(j=>j===M),[e]),y=f.useCallback((M,T)=>{const j=zo(e),A=b(M);if(A===T)return;o.debug(`Moving column ${M} to index ${T}`);const E=[...j],F=E.splice(A,1)[0];E.splice(T,0,F),a(v({},hs(e.current.state),{orderedFields:E}));const N={column:e.current.getColumn(M),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(M),oldIndex:A};e.current.publishEvent("columnIndexChange",N)},[e,o,a,b]),C=f.useCallback((M,T)=>{var j,A;o.debug(`Updating column ${M} width to ${T}`);const E=hs(e.current.state),F=E.lookup[M],N=v({},F,{width:T,hasBeenResized:!0});a(kv(v({},E,{lookup:v({},E.lookup,{[M]:N})}),(j=(A=e.current.getRootDimensions())==null?void 0:A.viewportInnerSize.width)!=null?j:0)),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(M),colDef:N,width:T})},[e,o,a]),S={getColumn:c,getAllColumns:u,getColumnIndex:h,getColumnPosition:g,getVisibleColumns:d,getColumnIndexRelativeToVisibleColumns:b,updateColumns:x,setColumnVisibilityModel:m,setColumnVisibility:w,setColumnWidth:C},I={setColumnIndex:y};Ue(e,S,"public"),Ue(e,I,t.signature===Mo.DataGrid?"private":"public");const P=f.useCallback((M,T)=>{var j,A;const E={},F=Zr(e);(!T.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((j=(A=t.initialState)==null||(A=A.columns)==null?void 0:A.columnVisibilityModel)!=null?j:{}).length>0||Object.keys(F).length>0)&&(E.columnVisibilityModel=F),E.orderedFields=zo(e);const V=ko(e),H={};return V.forEach(Q=>{if(Q.hasBeenResized){const q={};dE.forEach(Z=>{let le=Q[Z];le===1/0&&(le=-1),q[Z]=le}),H[Q.field]=q}}),Object.keys(H).length>0&&(E.dimensions=H),v({},M,{columns:E})},[e,t.columnVisibilityModel,(n=t.initialState)==null?void 0:n.columns]),k=f.useCallback((M,T)=>{var j;const A=(j=T.stateToRestore.columns)==null?void 0:j.columnVisibilityModel,E=T.stateToRestore.columns;if(A==null&&E==null)return M;const F=ci({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:E,columnVisibilityModel:A,keepOnlyColumnsToUpsert:!1});return e.current.setState(fS(F)),E!=null&&e.current.publishEvent("columnsChange",F.orderedFields),M},[e,l]),$=f.useCallback((M,T)=>{if(T===Es.columns){var j;const A=t.slots.columnsPanel;return p.jsx(A,v({},(j=t.slotProps)==null?void 0:j.columnsPanel))}return M},[t.slots.columnsPanel,(r=t.slotProps)==null?void 0:r.columnsPanel]),D=f.useCallback(M=>t.disableColumnSelector?M:[...M,"columnMenuColumnsItem"],[t.disableColumnSelector]);Xt(e,"columnMenu",D),Xt(e,"exportState",P),Xt(e,"restoreState",k),Xt(e,"preferencePanel",$);const O=f.useRef(null);Te(e,"viewportInnerSizeChange",M=>{O.current!==M.width&&(O.current=M.width,a(kv(hs(e.current.state),M.width)))});const L=f.useCallback(()=>{o.info("Columns pipe processing have changed, regenerating the columns");const M=ci({apiRef:e,columnTypes:l,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});a(M)},[e,o,a,l]);$x(e,"hydrateColumns",L);const _=f.useRef(!0);f.useEffect(()=>{if(_.current){_.current=!1;return}if(o.info(`GridColumns have changed, new length ${t.columns.length}`),s.current===t.columns&&i.current===l)return;const M=ci({apiRef:e,columnTypes:l,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});s.current=t.columns,i.current=l,a(M)},[o,e,a,t.columns,l]),f.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,o,t.columnVisibilityModel])}const nee=.7,ree=1.3,pE={compact:nee,comfortable:ree,standard:1},oee=(e,t)=>v({},e,{density:{value:t.density,factor:pE[t.density]}}),lee=(e,t)=>{const n=Mn(e,"useDensity"),r=f.useCallback(l=>{n.debug(`Set grid density to ${l}`),e.current.setState(s=>{const i=vx(s),a={value:l,factor:pE[l]};return ms(i,a)?s:v({},s,{density:a})}),e.current.forceUpdate()},[n,e]);f.useEffect(()=>{e.current.setDensity(t.density)},[e,t.density]),Ue(e,{setDensity:r},"public")};function see(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),l=document.createElement("a");l.href=o,l.download=r,l.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI: exportAs not supported")}const hE=({apiRef:e,options:t})=>{const n=ko(e);return t.fields?t.fields.reduce((o,l)=>{const s=n.find(i=>i.field===l);return s&&o.push(s),o},[]):(t.allColumns?n:fn(e)).filter(o=>!o.disableExport)},iee=({apiRef:e})=>{var t,n;const r=yq(e),o=Kr(e),l=e.current.getSelectedRows(),s=r.filter(u=>o[u].type!=="footer"),i=wa(e),a=(i==null||(t=i.top)==null?void 0:t.map(u=>u.id))||[],c=(i==null||(n=i.bottom)==null?void 0:n.map(u=>u.id))||[];return s.unshift(...a),s.push(...c),l.size>0?s.filter(u=>l.has(u)):s},aee=(e,t)=>{const n=Mn(e,"useGridCsvExport"),r=t.unstable_ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,l=f.useCallback((c={})=>{var u,d,h;n.debug("Get data as CSV");const g=hE({apiRef:e,options:c}),x=((u=c.getRowsToExport)!=null?u:iee)({apiRef:e});return WJ({columns:g,rowIds:x,delimiterCharacter:c.delimiter||",",includeHeaders:(d=c.includeHeaders)!=null?d:!0,includeColumnGroupsHeaders:(h=c.includeColumnGroupsHeaders)!=null?h:!0,ignoreValueFormatter:o,apiRef:e})},[n,e,o]),s=f.useCallback(c=>{n.debug("Export data as CSV");const u=l(c),d=new Blob([c!=null&&c.utf8WithBom?new Uint8Array([239,187,191]):"",u],{type:"text/csv"});see(d,"csv",c==null?void 0:c.fileName)},[n,l]);Ue(e,{getDataAsCsv:l,exportDataAsCsv:s},"public");const a=f.useCallback((c,u)=>{var d;return(d=u.csvOptions)!=null&&d.disableToolbarButton?c:[...c,{component:p.jsx(_Z,{options:u.csvOptions}),componentName:"csvExport"}]},[]);Xt(e,"exportMenu",a)},cee=(e,t)=>{var n,r;const o=v({},z$(t.autoPageSize),(n=t.paginationModel)!=null?n:(r=t.initialState)==null||(r=r.pagination)==null?void 0:r.paginationModel);return B$(o.pageSize,t.signature),v({},e,{pagination:{paginationModel:o}})},Ud=(e,t,n)=>r=>{var o;let l=r.paginationModel;const s=(o=n==null?void 0:n.pageSize)!=null?o:l.pageSize,i=H$(e,s);n&&((n==null?void 0:n.page)!==l.page||(n==null?void 0:n.pageSize)!==l.pageSize)&&(l=n);const a=IX(l.page,i);return a!==l.page&&(l=v({},l,{page:a})),B$(l.pageSize,t),{paginationModel:l}},uee=(e,t)=>{var n;const r=Mn(e,"useGridPagination"),o=Pe(e,Rh),l=Pe(e,Sa),s=Math.floor(t.rowHeight*l);e.current.registerControlState({stateId:"pagination",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Sr,changeEvent:"paginationModelChange"});const i=f.useCallback(x=>{const w=Sr(e);x!==w.page&&(r.debug(`Setting page to ${x}`),e.current.setPaginationModel({page:x,pageSize:w.pageSize}))},[e,r]),a=f.useCallback(x=>{const w=Sr(e);x!==w.pageSize&&(r.debug(`Setting page size to ${x}`),e.current.setPaginationModel({pageSize:x,page:w.page}))},[e,r]),c=f.useCallback(x=>{var w;const b=Sr(e);x!==b&&(r.debug("Setting 'paginationModel' to",x),e.current.updateControlState("pagination",Ud((w=t.rowCount)!=null?w:o,t.signature,x),"setPaginationModel"),e.current.forceUpdate())},[e,r,t.rowCount,t.signature,o]);Ue(e,{setPage:i,setPageSize:a,setPaginationModel:c},"public");const d=f.useCallback((x,w)=>{var b;const y=Sr(e);return!w.exportOnlyDirtyModels||t.paginationModel!=null||((b=t.initialState)==null||(b=b.pagination)==null?void 0:b.paginationModel)!=null||y.page!==0&&y.pageSize!==MX(t.autoPageSize)?v({},x,{pagination:v({},x.pagination,{paginationModel:y})}):x},[e,t.paginationModel,(n=t.initialState)==null||(n=n.pagination)==null?void 0:n.paginationModel,t.autoPageSize]),h=f.useCallback((x,w)=>{var b,y,C;const S=(b=w.stateToRestore.pagination)!=null&&b.paginationModel?v({},z$(t.autoPageSize),(y=w.stateToRestore.pagination)==null?void 0:y.paginationModel):Sr(e);return e.current.updateControlState("pagination",Ud((C=t.rowCount)!=null?C:o,t.signature,S),"stateRestorePreProcessing"),x},[e,t.autoPageSize,t.rowCount,t.signature,o]);Xt(e,"exportState",d),Xt(e,"restoreState",h);const g=()=>{var x;const w=Sr(e);(x=e.current.virtualScrollerRef)!=null&&x.current&&e.current.scrollToIndexes({rowIndex:w.page*w.pageSize}),e.current.forceUpdate()},m=f.useCallback(()=>{const x=e.current.getRootDimensions();if(!t.autoPageSize||!x)return;const w=M$(e),b=Math.floor((x.viewportInnerSize.height-w.top-w.bottom)/s);e.current.setPageSize(b)},[e,t.autoPageSize,s]);Te(e,"viewportInnerSizeChange",m),Te(e,"paginationModelChange",g),f.useEffect(()=>{},[t.rowCount,t.paginationMode]),f.useEffect(()=>{var x;e.current.updateControlState("pagination",Ud((x=t.rowCount)!=null?x:o,t.signature,t.paginationModel))},[e,t.paginationModel,t.rowCount,t.paginationMode,o,t.signature]),f.useEffect(()=>{m()},[m])};function dee(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function fee(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const pee=(e,t)=>{const n=Mn(e,"useGridPrintExport"),r=f.useRef(null),o=f.useRef(null),l=f.useRef({}),s=f.useRef([]);f.useEffect(()=>{r.current=Tt(e.current.rootElementRef.current)},[e]);const i=f.useCallback((m,x,w)=>new Promise(b=>{const y=hE({apiRef:e,options:{fields:m,allColumns:x}}).map(I=>I.field),C=ko(e),S={};C.forEach(I=>{S[I.field]=y.includes(I.field)}),w&&(S[Pa.field]=!0),e.current.setColumnVisibilityModel(S),b()}),[e]),a=f.useCallback(m=>{const w=m({apiRef:e}).map(b=>e.current.getRow(b));e.current.setRows(w)},[e]),c=f.useCallback((m,x)=>{var w,b;const y=v({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},x),C=m.contentDocument;if(!C)return;const S=cu(e.current.state),I=e.current.rootElementRef.current,P=I.cloneNode(!0),k=P.querySelector(`.${z.main}`);k.style.overflow="visible",P.style.contain="size";const D=P.querySelector(`.${z.columnHeaders}`).querySelector(`.${z.columnHeadersInner}`);D.style.width="100%";let O=((w=I.querySelector(`.${z.toolbarContainer}`))==null?void 0:w.offsetHeight)||0,R=((b=I.querySelector(`.${z.footerContainer}`))==null?void 0:b.offsetHeight)||0;if(y.hideToolbar){var L;(L=P.querySelector(`.${z.toolbarContainer}`))==null||L.remove(),O=0}if(y.hideFooter){var _;(_=P.querySelector(`.${z.footerContainer}`))==null||_.remove(),R=0}const M=S.currentPageTotalHeight+Ex(e,t.columnHeaderHeight)+O+R;if(P.style.height=`${M}px`,P.style.boxSizing="content-box",x!=null&&x.getRowsToExport){const E=P.querySelector(`.${z.footerContainer}`);E.style.position="absolute",E.style.width="100%",E.style.top=`${M-R}px`}const T=document.createElement("div");T.appendChild(P),C.body.innerHTML=T.innerHTML;const j=typeof y.pageStyle=="function"?y.pageStyle():y.pageStyle;if(typeof j=="string"){const E=C.createElement("style");E.appendChild(C.createTextNode(j)),C.head.appendChild(E)}y.bodyClassName&&C.body.classList.add(...y.bodyClassName.split(" "));const A=[];if(y.copyStyles){const E=I.getRootNode(),N=(E.constructor.name==="ShadowRoot"?E:r.current).querySelectorAll("style, link[rel='stylesheet']");for(let V=0;V<N.length;V+=1){const H=N[V];if(H.tagName==="STYLE"){const Q=C.createElement(H.tagName),q=H.sheet;if(q){let Z="";for(let le=0;le<q.cssRules.length;le+=1)typeof q.cssRules[le].cssText=="string"&&(Z+=`${q.cssRules[le].cssText}\r
`);Q.appendChild(C.createTextNode(Z)),C.head.appendChild(Q)}}else if(H.getAttribute("href")){const Q=C.createElement(H.tagName);for(let q=0;q<H.attributes.length;q+=1){const Z=H.attributes[q];Z&&Q.setAttribute(Z.nodeName,Z.nodeValue||"")}A.push(new Promise(q=>{Q.addEventListener("load",()=>q())})),C.head.appendChild(Q)}}}Promise.all(A).then(()=>{m.contentWindow.print()})},[e,r,t.columnHeaderHeight]),u=f.useCallback(m=>{var x;r.current.body.removeChild(m),e.current.restoreState(o.current||{}),(x=o.current)!=null&&(x=x.columns)!=null&&x.columnVisibilityModel||e.current.setColumnVisibilityModel(l.current),e.current.unstable_setVirtualization(!0),e.current.setRows(s.current),o.current=null,l.current={},s.current=[]},[e]),h={exportDataAsPrint:f.useCallback(async m=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");o.current=e.current.exportState(),l.current=Zr(e);const x=No(e);if(s.current=nc(e).map(b=>x[b]),t.pagination){const b=w$(e),y={page:0,pageSize:b};e.current.updateControlState("pagination",Ud(b,"DataGridPro",y)),e.current.forceUpdate()}await i(m==null?void 0:m.fields,m==null?void 0:m.allColumns,m==null?void 0:m.includeCheckboxes),m!=null&&m.getRowsToExport&&a(m.getRowsToExport),e.current.unstable_setVirtualization(!1),await dee();const w=fee(m==null?void 0:m.fileName);w.onload=()=>{c(w,m),w.contentWindow.matchMedia("print").addEventListener("change",y=>{y.matches===!1&&u(w)})},r.current.body.appendChild(w)},[t,n,e,c,u,i,a])};Ue(e,h,"public");const g=f.useCallback((m,x)=>{var w;return(w=x.printOptions)!=null&&w.disableToolbarButton?m:[...m,{component:p.jsx(FZ,{options:x.printOptions}),componentName:"printExport"}]},[]);Xt(e,"exportMenu",g)},hee=(e,t,n)=>{var r,o,l;const s=(r=(o=t.filterModel)!=null?o:(l=t.initialState)==null||(l=l.filter)==null?void 0:l.filterModel)!=null?r:iu();return v({},e,{filter:{filterModel:rE(s,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},gee=e=>e.filteredRowsLookup;function pS(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function mee(){return Mh(Object.values)}const vee=(e,t)=>{var n,r;const o=Mn(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:cn,changeEvent:"filterModelChange"});const l=f.useCallback(()=>{e.current.setState(O=>{const R=cn(O,e.current.instanceId),L=t.filterMode==="client"?nJ(R,e,t.disableEval):null,_=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:L,filterModel:R??iu()}),M=v({},O,{filter:v({},O.filter,_)}),T=pS(e,M);return v({},M,{visibleRowsLookup:T})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),s=f.useCallback((O,R)=>R==null||R.filterable===!1||t.disableColumnFilter?O:[...O,"columnMenuFilterItem"],[t.disableColumnFilter]),i=f.useCallback(()=>{l(),e.current.forceUpdate()},[e,l]),a=f.useCallback(O=>{const R=cn(e),L=[...R.items],_=L.findIndex(M=>M.id===O.id);_===-1?L.push(O):L[_]=O,e.current.setFilterModel(v({},R,{items:L}),"upsertFilterItem")},[e]),c=f.useCallback(O=>{const R=cn(e),L=[...R.items];O.forEach(_=>{const M=O.findIndex(T=>T.id===_.id);M===-1?L.push(_):L[M]=_}),e.current.setFilterModel(v({},R,{items:O}),"upsertFilterItems")},[e]),u=f.useCallback(O=>{const R=cn(e),L=R.items.filter(_=>_.id!==O.id);L.length!==R.items.length&&e.current.setFilterModel(v({},R,{items:L}),"deleteFilterItem")},[e]),d=f.useCallback((O,R,L)=>{if(o.debug("Displaying filter panel"),O){const _=cn(e),M=_.items.filter(E=>{var F;if(E.value!==void 0)return!(Array.isArray(E.value)&&E.value.length===0);const V=(F=e.current.getColumn(E.field).filterOperators)==null?void 0:F.find(Q=>Q.value===E.operator);return!(typeof(V==null?void 0:V.requiresFilterValue)>"u"?!0:V==null?void 0:V.requiresFilterValue)});let T;const j=M.find(E=>E.field===O),A=e.current.getColumn(O);j?T=M:t.disableMultipleColumnsFiltering?T=[wv({field:O,operator:A.filterOperators[0].value},e)]:T=[...M,wv({field:O,operator:A.filterOperators[0].value},e)],e.current.setFilterModel(v({},_,{items:T}))}e.current.showPreferences(Es.filters,R,L)},[e,o,t.disableMultipleColumnsFiltering]),h=f.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),g=f.useCallback(O=>{const R=cn(e);R.logicOperator!==O&&e.current.setFilterModel(v({},R,{logicOperator:O}),"changeLogicOperator")},[e]),m=f.useCallback(O=>{const R=cn(e);ms(R.quickFilterValues,O)||e.current.setFilterModel(v({},R,{quickFilterValues:[...O]}))},[e]),x=f.useCallback((O,R)=>{cn(e)!==O&&(o.debug("Setting filter model"),e.current.updateControlState("filter",tS(O,t.disableMultipleColumnsFiltering,e),R),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),w={setFilterLogicOperator:g,unstable_applyFilters:i,deleteFilterItem:u,upsertFilterItem:a,upsertFilterItems:c,setFilterModel:x,showFilterPanel:d,hideFilterPanel:h,setQuickFilterValues:m,ignoreDiacritics:t.ignoreDiacritics};Ue(e,w,"public");const b=f.useCallback((O,R)=>{var L;const _=cn(e);return!R.exportOnlyDirtyModels||t.filterModel!=null||((L=t.initialState)==null||(L=L.filter)==null?void 0:L.filterModel)!=null||!ms(_,iu())?v({},O,{filter:{filterModel:_}}):O},[e,t.filterModel,(n=t.initialState)==null||(n=n.filter)==null?void 0:n.filterModel]),y=f.useCallback((O,R)=>{var L;const _=(L=R.stateToRestore.filter)==null?void 0:L.filterModel;return _==null?O:(e.current.updateControlState("filter",tS(_,t.disableMultipleColumnsFiltering,e),"restoreState"),v({},O,{callbacks:[...O.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),C=f.useCallback((O,R)=>{if(R===Es.filters){var L;const _=t.slots.filterPanel;return p.jsx(_,v({},(L=t.slotProps)==null?void 0:L.filterPanel))}return O},[t.slots.filterPanel,(r=t.slotProps)==null?void 0:r.filterPanel]),{getRowId:S}=t,I=dx(mee),P=f.useCallback(O=>{if(t.filterMode!=="client"||!O.isRowMatchingFilters)return{filteredRowsLookup:{},filteredDescendantCountLookup:{}};const R=No(e),L={},{isRowMatchingFilters:_}=O,M={},T={passingFilterItems:null,passingQuickFilterValues:null},j=I.current(e.current.state.rows.dataRowIdToModelLookup);for(let F=0;F<j.length;F+=1){const N=j[F],V=S?S(N):N.id;_(N,void 0,T);const H=oJ([T.passingFilterItems],[T.passingQuickFilterValues],O.filterModel,e,M);L[V]=H}const A="auto-generated-group-footer-root";return R[A]&&(L[A]=!0),{filteredRowsLookup:L,filteredDescendantCountLookup:{}}},[e,t.filterMode,S,I]);Xt(e,"columnMenu",s),Xt(e,"exportState",b),Xt(e,"restoreState",y),Xt(e,"preferencePanel",C),rp(e,Ts,"filtering",P),rp(e,Ts,"visibleRowsLookupCreation",gee);const k=f.useCallback(()=>{o.debug("onColUpdated - GridColumns changed, applying filters");const O=cn(e),R=oq(e),L=O.items.filter(_=>_.field&&R[_.field]);L.length<O.items.length&&e.current.setFilterModel(v({},O,{items:L}))},[e,o]),$=f.useCallback(O=>{O==="filtering"&&e.current.unstable_applyFilters()},[e]),D=f.useCallback(()=>{e.current.setState(O=>v({},O,{visibleRowsLookup:pS(e,O)})),e.current.forceUpdate()},[e]);Te(e,"rowsSet",l),Te(e,"columnsChange",k),Te(e,"activeStrategyProcessorChange",$),Te(e,"rowExpansionChange",D),Te(e,"columnVisibilityModelChange",()=>{const O=cn(e);O.quickFilterValues&&O.quickFilterExcludeHiddenColumns&&e.current.unstable_applyFilters()}),ju(()=>{e.current.unstable_applyFilters()}),tt(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,o,t.filterModel])},yee=e=>v({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),xee=(e,t)=>{const n=Mn(e,"useGridFocus"),r=f.useRef(null),o=f.useCallback((k,$)=>{k&&e.current.getRow(k.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(k.id,k.field),$)},[e]),l=f.useCallback((k,$)=>{const D=er(e);(D==null?void 0:D.id)===k&&(D==null?void 0:D.field)===$||(e.current.setState(O=>(n.debug(`Focusing on cell with id=${k} and field=${$}`),v({},O,{tabIndex:{cell:{id:k,field:$},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:k,field:$},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(k)&&(D&&o(D,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(k,$))))},[e,n,o]),s=f.useCallback((k,$={})=>{const D=er(e);o(D,$),e.current.setState(O=>(n.debug(`Focusing on column header with colIndex=${k}`),v({},O,{tabIndex:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:k},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),i=f.useCallback((k,$={})=>{const D=er(e);o(D,$),e.current.setState(O=>(n.debug(`Focusing on column header filter with colIndex=${k}`),v({},O,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:k},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,o]),a=f.useCallback((k,$,D={})=>{const O=er(e);O&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(O.id,O.field),D),e.current.setState(R=>v({},R,{tabIndex:{columnGroupHeader:{field:k,depth:$},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:k,depth:$},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),c=f.useCallback(()=>qf(e),[e]),u=f.useCallback((k,$,D)=>{let O=e.current.getColumnIndex($);const R=fn(e),L=tp(e,{pagination:t.pagination,paginationMode:t.paginationMode}),_=wa(e),M=[].concat(_.top||[],L.rows,_.bottom||[]);let T=M.findIndex(F=>F.id===k);D==="right"?O+=1:D==="left"?O-=1:T+=1,O>=R.length?(T+=1,T<M.length&&(O=0)):O<0&&(T-=1,T>=0&&(O=R.length-1)),T=pa(T,0,M.length-1);const j=M[T];if(!j)return;const A=e.current.unstable_getCellColSpanInfo(j.id,O);A&&A.spannedByColSpan&&(D==="left"||D==="below"?O=A.leftVisibleCellIndex:D==="right"&&(O=A.rightVisibleCellIndex)),O=pa(O,0,R.length-1);const E=R[O];e.current.setCellFocus(j.id,E.field)},[e,t.pagination,t.paginationMode]),d=f.useCallback(({id:k,field:$})=>{e.current.setCellFocus(k,$)},[e]),h=f.useCallback((k,$)=>{$.key==="Enter"||$.key==="Tab"||$.key==="Shift"||Jf($.key)||e.current.setCellFocus(k.id,k.field)},[e]),g=f.useCallback(({field:k},$)=>{$.target===$.currentTarget&&e.current.setColumnHeaderFocus(k,$)},[e]),m=f.useCallback(({fields:k,depth:$},D)=>{if(D.target!==D.currentTarget)return;const O=qf(e);O!==null&&O.depth===$&&k.includes(O.field)||e.current.setColumnGroupHeaderFocus(k[0],$,D)},[e]),x=f.useCallback((k,$)=>{var D;(D=$.relatedTarget)!=null&&D.className.includes(z.columnHeader)||(n.debug("Clearing focus"),e.current.setState(O=>v({},O,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),w=f.useCallback(k=>{r.current=k},[]),b=f.useCallback(k=>{const $=r.current;r.current=null;const D=er(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:k,cell:$}))return;if(!D){$&&e.current.setCellFocus($.id,$.field);return}if(($==null?void 0:$.id)===D.id&&($==null?void 0:$.field)===D.field)return;const R=e.current.getCellElement(D.id,D.field);R!=null&&R.contains(k.target)||($?e.current.setCellFocus($.id,$.field):(e.current.setState(L=>v({},L,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),o(D,k)))},[e,o]),y=f.useCallback(k=>{if(k.cellMode==="view")return;const $=er(e);(($==null?void 0:$.id)!==k.id||($==null?void 0:$.field)!==k.field)&&e.current.setCellFocus(k.id,k.field)},[e]),C=f.useCallback(()=>{const k=er(e);k&&!e.current.getRow(k.id)&&e.current.setState($=>v({},$,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))},[e]),S=wt(()=>{const k=er(e);if(!k)return;const $=tp(e,{pagination:t.pagination,paginationMode:t.paginationMode});if($.rows.find(R=>R.id===k.id))return;const O=fn(e);e.current.setState(R=>v({},R,{tabIndex:{cell:{id:$.rows[0].id,field:O[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),I={setCellFocus:l,setColumnHeaderFocus:s,setColumnHeaderFilterFocus:i},P={moveFocusToRelativeCell:u,setColumnGroupHeaderFocus:a,getColumnGroupHeaderFocus:c};Ue(e,I,"public"),Ue(e,P,"private"),f.useEffect(()=>{const k=Tt(e.current.rootElementRef.current);return k.addEventListener("mouseup",b),()=>{k.removeEventListener("mouseup",b)}},[e,b]),Te(e,"columnHeaderBlur",x),Te(e,"cellDoubleClick",d),Te(e,"cellMouseDown",w),Te(e,"cellKeyDown",h),Te(e,"cellModeChange",y),Te(e,"columnHeaderFocus",g),Te(e,"columnGroupHeaderFocus",m),Te(e,"rowsSet",C),Te(e,"paginationModelChange",S)};function bee(e,t){const n=wa(e)||{};return[...n.top||[],...t,...n.bottom||[]]}const Kg=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e<n)return e+1}else if(r==="ltr"&&e>t)return e-1;return null},qg=({currentColIndex:e,firstColIndex:t,lastColIndex:n,direction:r})=>{if(r==="rtl"){if(e>t)return e-1}else if(r==="ltr"&&e<n)return e+1;return null},Cee=(e,t)=>{const n=Mn(e,"useGridKeyboardNavigation"),r=Vs(e,t).rows,o=on(),l=f.useMemo(()=>bee(e,r),[e,r]),s=t.signature!=="DataGrid"&&t.unstable_headerFilters,i=f.useCallback((b,y,C="left")=>{const S=Wl(e),I=e.current.unstable_getCellColSpanInfo(y,b);I&&I.spannedByColSpan&&(C==="left"?b=I.leftVisibleCellIndex:C==="right"&&(b=I.rightVisibleCellIndex));const P=S.findIndex($=>$.id===y);n.debug(`Navigating to cell row ${P}, col ${b}`),e.current.scrollToIndexes({colIndex:b,rowIndex:P});const k=e.current.getVisibleColumns()[b].field;e.current.setCellFocus(y,k)},[e,n]),a=f.useCallback((b,y)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const C=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFocus(C,y)},[e,n]),c=f.useCallback((b,y)=>{n.debug(`Navigating to header filter col ${b}`),e.current.scrollToIndexes({colIndex:b});const C=e.current.getVisibleColumns()[b].field;e.current.setColumnHeaderFilterFocus(C,y)},[e,n]),u=f.useCallback((b,y,C)=>{n.debug(`Navigating to header col ${b}`),e.current.scrollToIndexes({colIndex:b});const{field:S}=e.current.getVisibleColumns()[b];e.current.setColumnGroupHeaderFocus(S,y,C)},[e,n]),d=f.useCallback(b=>{var y;return(y=l[b])==null?void 0:y.id},[l]),h=f.useCallback((b,y)=>{const C=y.currentTarget.querySelector(`.${z.columnHeaderTitleContainerContent}`);if(!!C&&C.contains(y.target)&&b.field!==Pa.field||!e.current.getRootDimensions())return;const P=e.current.getViewportPageSize(),k=b.field?e.current.getColumnIndex(b.field):0,$=l.length>0?0:null,D=l.length-1,O=0,R=fn(e).length-1,L=_u(e);let _=!0;switch(y.key){case"ArrowDown":{$!==null&&(s?c(k,y):i(k,d($)));break}case"ArrowRight":{const M=qg({currentColIndex:k,firstColIndex:O,lastColIndex:R,direction:o.direction});M!==null&&a(M,y);break}case"ArrowLeft":{const M=Kg({currentColIndex:k,firstColIndex:O,lastColIndex:R,direction:o.direction});M!==null&&a(M,y);break}case"ArrowUp":{L>0&&u(k,L-1,y);break}case"PageDown":{$!==null&&D!==null&&i(k,d(Math.min($+P,D)));break}case"Home":{a(O,y);break}case"End":{a(R,y);break}case"Enter":{(y.ctrlKey||y.metaKey)&&e.current.toggleColumnMenu(b.field);break}case" ":break;default:_=!1}_&&y.preventDefault()},[e,l.length,s,c,i,d,o.direction,a,u]),g=f.useCallback((b,y)=>{if(!e.current.getRootDimensions())return;const S=HX(e)===b.field,I=zX(e)===b.field;if(S||I||!Jf(y.key))return;const P=e.current.getViewportPageSize(),k=b.field?e.current.getColumnIndex(b.field):0,$=0,D=l.length-1,O=0,R=fn(e).length-1;let L=!0;switch(y.key){case"ArrowDown":{const _=d($);_!=null&&i(k,_);break}case"ArrowRight":{const _=qg({currentColIndex:k,firstColIndex:O,lastColIndex:R,direction:o.direction});_!==null&&c(_,y);break}case"ArrowLeft":{const _=Kg({currentColIndex:k,firstColIndex:O,lastColIndex:R,direction:o.direction});_!==null?c(_,y):e.current.setColumnHeaderFilterFocus(b.field,y);break}case"ArrowUp":{a(k,y);break}case"PageDown":{D!==null&&i(k,d(Math.min($+P,D)));break}case"Home":{c(O,y);break}case"End":{c(R,y);break}case" ":break;default:L=!1}L&&y.preventDefault()},[e,l.length,c,o.direction,a,i,d]),m=f.useCallback((b,y)=>{if(!e.current.getRootDimensions())return;const S=qf(e);if(S===null)return;const{field:I,depth:P}=S,{fields:k,depth:$,maxDepth:D}=b,O=e.current.getViewportPageSize(),R=e.current.getColumnIndex(I),L=I?e.current.getColumnIndex(I):0,_=0,M=l.length-1,T=0,j=fn(e).length-1;let A=!0;switch(y.key){case"ArrowDown":{$===D-1?a(R,y):u(R,P+1,y);break}case"ArrowUp":{$>0&&u(R,P-1,y);break}case"ArrowRight":{const E=k.length-k.indexOf(I)-1;R+E+1<=j&&u(R+E+1,P,y);break}case"ArrowLeft":{const E=k.indexOf(I);R-E-1>=T&&u(R-E-1,P,y);break}case"PageDown":{M!==null&&i(L,d(Math.min(_+O,M)));break}case"Home":{u(T,P,y);break}case"End":{u(j,P,y);break}case" ":break;default:A=!1}A&&y.preventDefault()},[e,l.length,a,u,i,d]),x=f.useCallback((b,y)=>{if(Fu(y))return;const C=e.current.getCellParams(b.id,b.field);if(C.cellMode===it.Edit||!Jf(y.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:y,cell:C}))return;const I=e.current.getRootDimensions();if(l.length===0||!I)return;const P=o.direction,k=e.current.getViewportPageSize(),$=b.field?e.current.getColumnIndex(b.field):0,D=l.findIndex(T=>T.id===b.id),O=0,R=l.length-1,L=0,_=fn(e).length-1;let M=!0;switch(y.key){case"ArrowDown":{D<R&&i($,d(D+1));break}case"ArrowUp":{D>O?i($,d(D-1)):s?c($,y):a($,y);break}case"ArrowRight":{const T=qg({currentColIndex:$,firstColIndex:L,lastColIndex:_,direction:P});T!==null&&i(T,d(D),P==="rtl"?"left":"right");break}case"ArrowLeft":{const T=Kg({currentColIndex:$,firstColIndex:L,lastColIndex:_,direction:P});T!==null&&i(T,d(D),P==="rtl"?"right":"left");break}case"Tab":{y.shiftKey&&$>L?i($-1,d(D),"left"):!y.shiftKey&&$<_&&i($+1,d(D),"right");break}case" ":{if(b.field===Mx)break;const j=b.colDef;if(j&&j.type==="treeDataGroup")break;!y.shiftKey&&D<R&&i($,d(Math.min(D+k,R)));break}case"PageDown":{D<R&&i($,d(Math.min(D+k,R)));break}case"PageUp":{const T=Math.max(D-k,O);T!==D&&T>=O?i($,d(T)):a($,y);break}case"Home":{y.ctrlKey||y.metaKey||y.shiftKey?i(L,d(O)):i(L,d(D));break}case"End":{y.ctrlKey||y.metaKey||y.shiftKey?i(_,d(R)):i(_,d(D));break}default:M=!1}M&&y.preventDefault()},[e,l,o.direction,i,d,s,c,a]),w=f.useCallback((b,{event:y})=>y.key===" "?!1:b,[]);Xt(e,"canStartEditing",w),Te(e,"columnHeaderKeyDown",h),Te(e,"headerFilterKeyDown",g),Te(e,"columnGroupHeaderKeyDown",m),Te(e,"cellKeyDown",x)},wee=(e,t)=>{var n,r;return v({},e,{preferencePanel:(n=(r=t.initialState)==null?void 0:r.preferencePanel)!=null?n:{open:!1}})},See=(e,t)=>{var n;const r=Mn(e,"useGridPreferencesPanel"),o=f.useRef(),l=f.useRef(),s=f.useCallback(()=>{r.debug("Hiding Preferences Panel");const h=au(e.current.state);h.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:h.openedPanelValue}),e.current.setState(g=>v({},g,{preferencePanel:{open:!1}})),e.current.forceUpdate()},[e,r]),i=f.useCallback(()=>{l.current=setTimeout(()=>clearTimeout(o.current),0)},[]),a=f.useCallback(()=>{o.current=setTimeout(s,100)},[s]),c=f.useCallback((h,g,m)=>{r.debug("Opening Preferences Panel"),i(),e.current.setState(x=>v({},x,{preferencePanel:v({},x.preferencePanel,{open:!0,openedPanelValue:h,panelId:g,labelId:m})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:h}),e.current.forceUpdate()},[r,i,e]);Ue(e,{showPreferences:c,hidePreferences:a},"public");const u=f.useCallback((h,g)=>{var m;const x=au(e.current.state);return!g.exportOnlyDirtyModels||((m=t.initialState)==null?void 0:m.preferencePanel)!=null||x.open?v({},h,{preferencePanel:x}):h},[e,(n=t.initialState)==null?void 0:n.preferencePanel]),d=f.useCallback((h,g)=>{const m=g.stateToRestore.preferencePanel;return m!=null&&e.current.setState(x=>v({},x,{preferencePanel:m})),h},[e]);Xt(e,"exportState",u),Xt(e,"restoreState",d),f.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(l.current)},[])},Pee=["id","field"],kee=["id","field"],Mee=Eo(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),Iee=(e,t)=>{const[n,r]=f.useState({}),o=f.useRef(n),l=f.useRef({}),{processRowUpdate:s,onProcessRowUpdateError:i,cellModesModel:a,onCellModesModelChange:c}=t,u=M=>(...T)=>{t.editMode===$o.Cell&&M(...T)},d=f.useCallback((M,T)=>{const j=e.current.getCellParams(M,T);if(!e.current.isCellEditable(j))throw new Error(`MUI: The cell with id=${M} and field=${T} is not editable.`)},[e]),h=f.useCallback((M,T,j)=>{if(e.current.getCellMode(M,T)!==j)throw new Error(`MUI: The cell with id=${M} and field=${T} is not in ${j} mode.`)},[e]),g=f.useCallback((M,T)=>{if(!M.isEditable||M.cellMode===it.Edit)return;const j=v({},M,{reason:Ro.cellDoubleClick});e.current.publishEvent("cellEditStart",j,T)},[e]),m=f.useCallback((M,T)=>{if(M.cellMode===it.View||e.current.getCellMode(M.id,M.field)===it.View)return;const j=v({},M,{reason:Ur.cellFocusOut});e.current.publishEvent("cellEditStop",j,T)},[e]),x=f.useCallback((M,T)=>{if(M.cellMode===it.Edit){if(T.which===229)return;let j;if(T.key==="Escape"?j=Ur.escapeKeyDown:T.key==="Enter"?j=Ur.enterKeyDown:T.key==="Tab"&&(j=T.shiftKey?Ur.shiftTabKeyDown:Ur.tabKeyDown,T.preventDefault()),j){const A=v({},M,{reason:j});e.current.publishEvent("cellEditStop",A,T)}}else if(M.isEditable){let j;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:T,cellParams:M,editMode:"cell"}))return;if(_$(T)?j=Ro.printableKeyDown:(T.ctrlKey||T.metaKey)&&T.key==="v"?j=Ro.pasteKeyDown:T.key==="Enter"?j=Ro.enterKeyDown:(T.key==="Delete"||T.key==="Backspace")&&(j=Ro.deleteKeyDown),j){const E=v({},M,{reason:j,key:T.key});e.current.publishEvent("cellEditStart",E,T)}}},[e]),w=f.useCallback(M=>{const{id:T,field:j,reason:A}=M,E={id:T,field:j};(A===Ro.printableKeyDown||A===Ro.deleteKeyDown||A===Ro.pasteKeyDown)&&(E.deleteValue=!0),e.current.startCellEditMode(E)},[e]),b=f.useCallback(M=>{const{id:T,field:j,reason:A}=M;e.current.runPendingEditCellValueMutation(T,j);let E;A===Ur.enterKeyDown?E="below":A===Ur.tabKeyDown?E="right":A===Ur.shiftTabKeyDown&&(E="left");const F=A==="escapeKeyDown";e.current.stopCellEditMode({id:T,field:j,ignoreModifications:F,cellToFocusAfter:E})},[e]);Te(e,"cellDoubleClick",u(g)),Te(e,"cellFocusOut",u(m)),Te(e,"cellKeyDown",u(x)),Te(e,"cellEditStart",u(w)),Te(e,"cellEditStop",u(b)),bt(e,"cellEditStart",t.onCellEditStart),bt(e,"cellEditStop",t.onCellEditStop);const y=f.useCallback((M,T)=>{const j=Tn(e.current.state);return j[M]&&j[M][T]?it.Edit:it.View},[e]),C=wt(M=>{const T=M!==t.cellModesModel;c&&T&&c(M,{}),!(t.cellModesModel&&T)&&(r(M),o.current=M,e.current.publishEvent("cellModesModelChange",M))}),S=f.useCallback((M,T,j)=>{const A=v({},o.current);if(j!==null)A[M]=v({},A[M],{[T]:v({},j)});else{const E=A[M],F=W(E,[T].map(du));A[M]=F,Object.keys(A[M]).length===0&&delete A[M]}C(A)},[C]),I=f.useCallback((M,T,j)=>{e.current.setState(A=>{const E=v({},A.editRows);return j!==null?E[M]=v({},E[M],{[T]:v({},j)}):(delete E[M][T],Object.keys(E[M]).length===0&&delete E[M]),v({},A,{editRows:E})}),e.current.forceUpdate()},[e]),P=f.useCallback(M=>{const{id:T,field:j}=M,A=W(M,Pee);d(T,j),h(T,j,it.View),S(T,j,v({mode:it.Edit},A))},[d,h,S]),k=wt(M=>{const{id:T,field:j,deleteValue:A,initialValue:E}=M;let F=e.current.getCellValue(T,j);(A||E)&&(F=A?"":E),I(T,j,{value:F,error:!1,isProcessingProps:!1}),e.current.setCellFocus(T,j)}),$=f.useCallback(M=>{const{id:T,field:j}=M,A=W(M,kee);h(T,j,it.Edit),S(T,j,v({mode:it.View},A))},[h,S]),D=wt(async M=>{const{id:T,field:j,ignoreModifications:A,cellToFocusAfter:E="none"}=M;h(T,j,it.Edit),e.current.runPendingEditCellValueMutation(T,j);const F=()=>{I(T,j,null),S(T,j,null),E!=="none"&&e.current.moveFocusToRelativeCell(T,j,E)};if(A){F();return}const N=Tn(e.current.state),{error:V,isProcessingProps:H}=N[T][j];if(V||H){l.current[T][j].mode=it.Edit,S(T,j,{mode:it.Edit});return}const Q=e.current.getRowWithUpdatedValuesFromCellEditing(T,j);if(s){const q=Z=>{l.current[T][j].mode=it.Edit,S(T,j,{mode:it.Edit}),i?i(Z):Mee()};try{const Z=e.current.getRow(T);Promise.resolve(s(Q,Z)).then(le=>{e.current.updateRows([le]),F()}).catch(q)}catch(Z){q(Z)}}else e.current.updateRows([Q]),F()}),O=f.useCallback(async M=>{var T;const{id:j,field:A,value:E,debounceMs:F,unstable_skipValueParser:N}=M;d(j,A),h(j,A,it.Edit);const V=e.current.getColumn(A),H=e.current.getRow(j);let Q=E;V.valueParser&&!N&&(Q=V.valueParser(E,e.current.getCellParams(j,A)));let q=Tn(e.current.state),Z=v({},q[j][A],{value:Q,changeReason:F?"debouncedSetEditCellValue":"setEditCellValue"});if(V.preProcessEditCellProps){const le=E!==q[j][A].value;Z=v({},Z,{isProcessingProps:!0}),I(j,A,Z),Z=await Promise.resolve(V.preProcessEditCellProps({id:j,row:H,props:Z,hasChanged:le}))}return e.current.getCellMode(j,A)===it.View?!1:(q=Tn(e.current.state),Z=v({},Z,{isProcessingProps:!1}),Z.value=V.preProcessEditCellProps?q[j][A].value:Q,I(j,A,Z),q=Tn(e.current.state),!((T=q[j])!=null&&(T=T[A])!=null&&T.error))},[e,d,h,I]),R=f.useCallback((M,T)=>{const j=e.current.getColumn(T),A=Tn(e.current.state),E=e.current.getRow(M);if(!A[M]||!A[M][T])return e.current.getRow(M);const{value:F}=A[M][T];return j.valueSetter?j.valueSetter({value:F,row:E}):v({},E,{[T]:F})},[e]),L={getCellMode:y,startCellEditMode:P,stopCellEditMode:$},_={setCellEditingEditCellValue:O,getRowWithUpdatedValuesFromCellEditing:R};Ue(e,L,"public"),Ue(e,_,"private"),f.useEffect(()=>{a&&C(a)},[a,C]),tt(()=>{const M=Kf(e),T=l.current;l.current=N$(n),Object.entries(n).forEach(([j,A])=>{Object.entries(A).forEach(([E,F])=>{var N,V;const H=((N=T[j])==null||(N=N[E])==null?void 0:N.mode)||it.View,Q=(V=M[j])!=null?V:j;F.mode===it.Edit&&H===it.View?k(v({id:Q,field:E},F)):F.mode===it.View&&H===it.Edit&&D(v({id:Q,field:E},F))})})},[e,n,k,D])},$ee=["id"],Eee=["id"],Tee=Eo(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#server-side-persistence."],"error"),Ree=(e,t)=>{const[n,r]=f.useState({}),o=f.useRef(n),l=f.useRef({}),s=f.useRef(null),i=f.useRef(null),{processRowUpdate:a,onProcessRowUpdateError:c,rowModesModel:u,onRowModesModelChange:d}=t,h=E=>(...F)=>{t.editMode===$o.Row&&E(...F)},g=f.useCallback((E,F)=>{const N=e.current.getCellParams(E,F);if(!e.current.isCellEditable(N))throw new Error(`MUI: The cell with id=${E} and field=${F} is not editable.`)},[e]),m=f.useCallback((E,F)=>{if(e.current.getRowMode(E)!==F)throw new Error(`MUI: The row with id=${E} is not in ${F} mode.`)},[e]),x=f.useCallback((E,F)=>{if(!E.isEditable||e.current.getRowMode(E.id)===gt.Edit)return;const N=e.current.getRowParams(E.id),V=v({},N,{field:E.field,reason:al.cellDoubleClick});e.current.publishEvent("rowEditStart",V,F)},[e]),w=f.useCallback(E=>{i.current=E},[]),b=f.useCallback((E,F)=>{E.isEditable&&e.current.getRowMode(E.id)!==gt.View&&(i.current=null,s.current=setTimeout(()=>{var N;if(s.current=null,((N=i.current)==null?void 0:N.id)!==E.id){if(!e.current.getRow(E.id)||e.current.getRowMode(E.id)===gt.View)return;const V=e.current.getRowParams(E.id),H=v({},V,{field:E.field,reason:Oo.rowFocusOut});e.current.publishEvent("rowEditStop",H,F)}}))},[e]);f.useEffect(()=>()=>{clearTimeout(s.current)},[]);const y=f.useCallback((E,F)=>{if(E.cellMode===gt.Edit){if(F.which===229)return;let N;if(F.key==="Escape")N=Oo.escapeKeyDown;else if(F.key==="Enter")N=Oo.enterKeyDown;else if(F.key==="Tab"){const V=Ih(e).filter(H=>e.current.getColumn(H).type===jh?!0:e.current.isCellEditable(e.current.getCellParams(E.id,H)));if(F.shiftKey?E.field===V[0]&&(N=Oo.shiftTabKeyDown):E.field===V[V.length-1]&&(N=Oo.tabKeyDown),F.preventDefault(),!N){const H=V.findIndex(q=>q===E.field),Q=V[F.shiftKey?H-1:H+1];e.current.setCellFocus(E.id,Q)}}if(N){const V=v({},e.current.getRowParams(E.id),{reason:N,field:E.field});e.current.publishEvent("rowEditStop",V,F)}}else if(E.isEditable){let N;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:F,cellParams:E,editMode:"row"}))return;if(_$(F)||(F.ctrlKey||F.metaKey)&&F.key==="v"?N=al.printableKeyDown:F.key==="Enter"?N=al.enterKeyDown:(F.key==="Delete"||F.key==="Backspace")&&(N=al.deleteKeyDown),N){const H=e.current.getRowParams(E.id),Q=v({},H,{field:E.field,reason:N});e.current.publishEvent("rowEditStart",Q,F)}}},[e]),C=f.useCallback(E=>{const{id:F,field:N,reason:V}=E,H={id:F,fieldToFocus:N};(V===al.printableKeyDown||V===al.deleteKeyDown)&&(H.deleteValue=!!N),e.current.startRowEditMode(H)},[e]),S=f.useCallback(E=>{const{id:F,reason:N,field:V}=E;e.current.runPendingEditCellValueMutation(F);let H;N===Oo.enterKeyDown?H="below":N===Oo.tabKeyDown?H="right":N===Oo.shiftTabKeyDown&&(H="left");const Q=N==="escapeKeyDown";e.current.stopRowEditMode({id:F,ignoreModifications:Q,field:V,cellToFocusAfter:H})},[e]);Te(e,"cellDoubleClick",h(x)),Te(e,"cellFocusIn",h(w)),Te(e,"cellFocusOut",h(b)),Te(e,"cellKeyDown",h(y)),Te(e,"rowEditStart",h(C)),Te(e,"rowEditStop",h(S)),bt(e,"rowEditStart",t.onRowEditStart),bt(e,"rowEditStop",t.onRowEditStop);const I=f.useCallback(E=>{if(t.editMode===$o.Cell)return gt.View;const F=Tn(e.current.state);return F[E]&&Object.keys(F[E]).length>0?gt.Edit:gt.View},[e,t.editMode]),P=wt(E=>{const F=E!==t.rowModesModel;d&&F&&d(E,{}),!(t.rowModesModel&&F)&&(r(E),o.current=E,e.current.publishEvent("rowModesModelChange",E))}),k=f.useCallback((E,F)=>{const N=v({},o.current);F!==null?N[E]=v({},F):delete N[E],P(N)},[P]),$=f.useCallback((E,F)=>{e.current.setState(N=>{const V=v({},N.editRows);return F!==null?V[E]=F:delete V[E],v({},N,{editRows:V})}),e.current.forceUpdate()},[e]),D=f.useCallback((E,F,N)=>{e.current.setState(V=>{const H=v({},V.editRows);return N!==null?H[E]=v({},H[E],{[F]:v({},N)}):(delete H[E][F],Object.keys(H[E]).length===0&&delete H[E]),v({},V,{editRows:H})}),e.current.forceUpdate()},[e]),O=f.useCallback(E=>{const{id:F}=E,N=W(E,$ee);m(F,gt.View),k(F,v({mode:gt.Edit},N))},[m,k]),R=wt(E=>{const{id:F,fieldToFocus:N,deleteValue:V,initialValue:H}=E,q=zo(e).reduce((Z,le)=>{if(!e.current.getCellParams(F,le).isEditable)return Z;let me=e.current.getCellValue(F,le);return N===le&&(V||H)&&(me=V?"":H),Z[le]={value:me,error:!1,isProcessingProps:!1},Z},{});$(F,q),N&&e.current.setCellFocus(F,N)}),L=f.useCallback(E=>{const{id:F}=E,N=W(E,Eee);m(F,gt.Edit),k(F,v({mode:gt.View},N))},[m,k]),_=wt(E=>{const{id:F,ignoreModifications:N,field:V,cellToFocusAfter:H="none"}=E;e.current.runPendingEditCellValueMutation(F);const Q=()=>{H!=="none"&&V&&e.current.moveFocusToRelativeCell(F,V,H),$(F,null),k(F,null)};if(N){Q();return}const q=Tn(e.current.state),Z=e.current.getRow(F);if(Object.values(q[F]).some(Y=>Y.isProcessingProps)){l.current[F].mode=gt.Edit;return}if(Object.values(q[F]).some(Y=>Y.error)){l.current[F].mode=gt.Edit,k(F,{mode:gt.Edit});return}const me=e.current.getRowWithUpdatedValuesFromRowEditing(F);if(a){const Y=oe=>{l.current[F].mode=gt.Edit,k(F,{mode:gt.Edit}),c?c(oe):Tee()};try{Promise.resolve(a(me,Z)).then(oe=>{e.current.updateRows([oe]),Q()}).catch(Y)}catch(oe){Y(oe)}}else e.current.updateRows([me]),Q()}),M=f.useCallback(E=>{const{id:F,field:N,value:V,debounceMs:H,unstable_skipValueParser:Q}=E;g(F,N);const q=e.current.getColumn(N),Z=e.current.getRow(F);let le=V;q.valueParser&&!Q&&(le=q.valueParser(V,e.current.getCellParams(F,N)));let fe=Tn(e.current.state),me=v({},fe[F][N],{value:le,changeReason:H?"debouncedSetEditCellValue":"setEditCellValue"});return q.preProcessEditCellProps||D(F,N,me),new Promise(Y=>{const oe=[];if(q.preProcessEditCellProps){const J=me.value!==fe[F][N].value;me=v({},me,{isProcessingProps:!0}),D(F,N,me);const U=fe[F],ue=W(U,[N].map(du)),pe=Promise.resolve(q.preProcessEditCellProps({id:F,row:Z,props:me,hasChanged:J,otherFieldsProps:ue})).then(de=>{if(e.current.getRowMode(F)===gt.View){Y(!1);return}fe=Tn(e.current.state),de=v({},de,{isProcessingProps:!1}),de.value=q.preProcessEditCellProps?fe[F][N].value:le,D(F,N,de)});oe.push(pe)}Object.entries(fe[F]).forEach(([J,U])=>{if(J===N)return;const ue=e.current.getColumn(J);if(!ue.preProcessEditCellProps)return;U=v({},U,{isProcessingProps:!0}),D(F,J,U),fe=Tn(e.current.state);const pe=fe[F],de=W(pe,[J].map(du)),G=Promise.resolve(ue.preProcessEditCellProps({id:F,row:Z,props:U,hasChanged:!1,otherFieldsProps:de})).then(se=>{if(e.current.getRowMode(F)===gt.View){Y(!1);return}se=v({},se,{isProcessingProps:!1}),D(F,J,se)});oe.push(G)}),Promise.all(oe).then(()=>{e.current.getRowMode(F)===gt.Edit?(fe=Tn(e.current.state),Y(!fe[F][N].error)):Y(!1)})})},[e,g,D]),T=f.useCallback(E=>{const F=Tn(e.current.state),N=e.current.getRow(E);if(!F[E])return e.current.getRow(E);let V=v({},N);return Object.entries(F[E]).forEach(([H,Q])=>{const q=e.current.getColumn(H);q.valueSetter?V=q.valueSetter({value:Q.value,row:V}):V[H]=Q.value}),V},[e]),j={getRowMode:I,startRowEditMode:O,stopRowEditMode:L},A={setRowEditingEditCellValue:M,getRowWithUpdatedValuesFromRowEditing:T};Ue(e,j,"public"),Ue(e,A,"private"),f.useEffect(()=>{u&&P(u)},[u,P]),tt(()=>{const E=Kf(e),F=l.current;l.current=N$(n),Object.entries(n).forEach(([N,V])=>{var H,Q;const q=((H=F[N])==null?void 0:H.mode)||gt.View,Z=(Q=E[N])!=null?Q:N;V.mode===gt.Edit&&q===gt.View?R(v({id:Z},V)):V.mode===gt.View&&q===gt.Edit&&_(v({id:Z},V))})},[e,n,R,_])},Oee=e=>v({},e,{editRows:{}}),_ee=(e,t)=>{Iee(e,t),Ree(e,t);const n=f.useRef({}),{isCellEditable:r}=t,o=f.useCallback(h=>su(h.rowNode)||!h.colDef.editable||!h.colDef.renderEditCell?!1:r?r(h):!0,[r]),l=(h,g,m,x)=>{if(!m){x();return}if(n.current[h]||(n.current[h]={}),n.current[h][g]){const[y]=n.current[h][g];clearTimeout(y)}const w=()=>{const[y]=n.current[h][g];clearTimeout(y),x(),delete n.current[h][g]},b=setTimeout(()=>{x(),delete n.current[h][g]},m);n.current[h][g]=[b,w]};f.useEffect(()=>{const h=n.current;return()=>{Object.entries(h).forEach(([g,m])=>{Object.keys(m).forEach(x=>{const[w]=h[g][x];clearTimeout(w),delete h[g][x]})})}},[]);const s=f.useCallback((h,g)=>{if(n.current[h]){if(!g)Object.keys(n.current[h]).forEach(m=>{const[,x]=n.current[h][m];x()});else if(n.current[h][g]){const[,m]=n.current[h][g];m()}}},[]),i=f.useCallback(h=>{const{id:g,field:m,debounceMs:x}=h;return new Promise(w=>{l(g,m,x,async()=>{const b=t.editMode===$o.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(g,m)===it.Edit){const y=await b(h);w(y)}})})},[e,t.editMode]),a=f.useCallback((h,g)=>t.editMode===$o.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(h,g):e.current.getRowWithUpdatedValuesFromRowEditing(h),[e,t.editMode]),c=f.useCallback((h,g)=>{var m,x;return(m=(x=Tn(e.current.state)[h])==null?void 0:x[g])!=null?m:null},[e]),u={isCellEditable:o,setEditCellValue:i,getRowWithUpdatedValues:a,unstable_getEditCellMeta:c},d={runPendingEditCellValueMutation:s};Ue(e,u,"public"),Ue(e,d,"private")},Fee=(e,t,n)=>(n.current.caches.rows=Bd({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),v({},e,{rows:k$({apiRef:n,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:null,previousTreeDepths:null})})),jee=(e,t)=>{const n=Mn(e,"useGridRows"),r=Vs(e,t),o=f.useRef(Date.now()),l=kx(),s=f.useCallback(_=>{const M=No(e)[_];if(M)return M;const T=e.current.getRowNode(_);return T&&su(T)?{[Fi]:_}:null},[e]),i=t.getRowId,a=f.useCallback(_=>Fi in _?_[Fi]:i?i(_):_.id,[i]),c=f.useMemo(()=>r.rows.reduce((_,{id:M},T)=>(_[M]=T,_),{}),[r.rows]),u=f.useCallback(({cache:_,throttle:M})=>{const T=()=>{o.current=Date.now(),e.current.setState(A=>v({},A,{rows:k$({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:Kr(e),previousTreeDepths:Lw(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(l.clear(),e.current.caches.rows=_,!M){T();return}const j=t.throttleRowsMs-(Date.now()-o.current);if(j>0){l.start(j,T);return}T()},[t.throttleRowsMs,t.rowCount,t.loading,e,l]),d=f.useCallback(_=>{n.debug(`Updating all rows, new length ${_.length}`);const M=Bd({rows:_,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),T=e.current.caches.rows;M.rowsBeforePartialUpdates=T.rowsBeforePartialUpdates,u({cache:M,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,u,e]),h=f.useCallback(_=>{if(t.signature===Mo.DataGrid&&_.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`));const M=[];_.forEach(j=>{const A=Xf(j,t.getRowId,"A row was provided without id when calling updateRows():"),E=e.current.getRowNode(A);if((E==null?void 0:E.type)==="pinnedRow"){const F=e.current.caches.pinnedRows,N=F.idLookup[A];N&&(F.idLookup[A]=v({},N,j))}else M.push(j)});const T=$q({updates:M,getRowId:t.getRowId,previousCache:e.current.caches.rows});u({cache:T,throttle:!0})},[t.signature,t.getRowId,u,e]),g=f.useCallback(()=>{const _=nc(e),M=No(e);return new Map(_.map(T=>{var j;return[T,(j=M[T])!=null?j:{}]}))},[e]),m=f.useCallback(()=>Eh(e),[e]),x=f.useCallback(()=>nc(e),[e]),w=f.useCallback(_=>c[_],[c]),b=f.useCallback((_,M)=>{const T=e.current.getRowNode(_);if(!T)throw new Error(`MUI: No row with id #${_} found`);if(T.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const j=v({},T,{childrenExpanded:M});e.current.setState(A=>v({},A,{rows:v({},A.rows,{tree:v({},A.rows.tree,{[_]:j})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",j)},[e]),y=f.useCallback(_=>{var M;return(M=Kr(e)[_])!=null?M:null},[e]),C=f.useCallback(({skipAutoGeneratedRows:_=!0,groupId:M,applySorting:T,applyFiltering:j})=>{const A=Kr(e);let E;if(T){const F=A[M];if(!F)return[];const N=hx(e);E=[];const V=N.findIndex(H=>H===M)+1;for(let H=V;H<N.length&&A[N[H]].depth>F.depth;H+=1){const Q=N[H];(!_||!su(A[Q]))&&E.push(Q)}}else E=yx(A,M,_);if(j){const F=b$(e);E=E.filter(N=>F[N]!==!1)}return E},[e]),S=f.useCallback((_,M)=>{const T=e.current.getRowNode(_);if(!T)throw new Error(`MUI: No row with id #${_} found`);if(T.parent!==Rn)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(T.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(j=>{const A=Kr(j,e.current.instanceId)[Rn],E=A.children,F=E.findIndex(V=>V===_);if(F===-1||F===M)return j;n.debug(`Moving row ${_} to index ${M}`);const N=[...E];return N.splice(M,0,N.splice(F,1)[0]),v({},j,{rows:v({},j.rows,{tree:v({},j.rows.tree,{[Rn]:v({},A,{children:N})})})})}),e.current.publishEvent("rowsSet")},[e,n]),I=f.useCallback((_,M)=>{if(t.signature===Mo.DataGrid&&M.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`));if(M.length===0)return;if(Th(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const j=v({},Kr(e)),A=v({},No(e)),E=v({},Kf(e)),F=j[Rn],N=[...F.children];for(let H=0;H<M.length;H+=1){const Q=M[H],q=Xf(Q,t.getRowId,"A row was provided without id when calling replaceRows()."),[Z]=N.splice(_+H,1,q);delete A[Z],delete E[Z],delete j[Z];const le={id:q,depth:0,parent:Rn,type:"leaf",groupingKey:null};A[q]=Q,E[q]=q,j[q]=le}j[Rn]=v({},F,{children:N});const V=N.filter(H=>j[H].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=A,e.current.caches.rows.dataRowIdToIdLookup=E,e.current.setState(H=>v({},H,{rows:v({},H.rows,{dataRowIdToModelLookup:A,dataRowIdToIdLookup:E,dataRowIds:V,tree:j})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),P={getRow:s,getRowId:a,getRowModels:g,getRowsCount:m,getAllRowIds:x,setRows:d,updateRows:h,getRowNode:y,getRowIndexRelativeToVisibleRows:w,unstable_replaceRows:I},k={setRowIndex:S,setRowChildrenExpansion:b,getRowGroupChildren:C},$=f.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let _;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?_=v({},e.current.caches.rows,{updates:{type:"full",rows:nc(e)}}):_=Bd({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),u({cache:_,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,u]),D=f.useCallback(_=>{_==="rowTreeCreation"&&$()},[$]),O=f.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==cq(e)&&$()},[e,$]);Te(e,"activeStrategyProcessorChange",D),Te(e,"strategyAvailabilityChange",O);const R=f.useCallback(()=>{e.current.setState(_=>{const M=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:Kr(_,e.current.instanceId),treeDepths:Lw(_,e.current.instanceId),dataRowIds:nc(_,e.current.instanceId),dataRowIdToModelLookup:No(_,e.current.instanceId),dataRowIdToIdLookup:Kf(_,e.current.instanceId)});return v({},_,{rows:v({},_.rows,M,{totalTopLevelRowCount:P$({tree:M.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);$x(e,"hydrateRows",R),Ue(e,P,"public"),Ue(e,k,t.signature===Mo.DataGrid?"private":"public");const L=f.useRef(!0);f.useEffect(()=>{if(L.current){L.current=!1;return}const _=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,M=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,T=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(_){M||(e.current.setState(j=>v({},j,{rows:v({},j.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),T||(e.current.setState(j=>v({},j,{rows:v({},j.rows,{totalRowCount:Math.max(t.rowCount||0,j.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,j.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),u({cache:Bd({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,u,e])},Dee=e=>{const t={[Rn]:v({},Mq(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Rn,type:"leaf",groupingKey:null}}return{groupingName:Ts,tree:t,treeDepths:{0:e.length},dataRowIds:e}},Aee=({previousTree:e,actions:t})=>{const n=v({},e),r={};for(let s=0;s<t.remove.length;s+=1){const i=t.remove[s];r[i]=!0,delete n[i]}for(let s=0;s<t.insert.length;s+=1){const i=t.insert[s];n[i]={id:i,depth:0,parent:Rn,type:"leaf",groupingKey:null}}const o=n[Rn];let l=[...o.children,...t.insert];return Object.values(r).length&&(l=l.filter(s=>!r[s])),n[Rn]=v({},o,{children:l}),{groupingName:Ts,tree:n,treeDepths:{0:l.length},dataRowIds:l}},Lee=e=>e.updates.type==="full"?Dee(e.updates.rows):Aee({previousTree:e.previousTree,actions:e.updates.actions}),Nee=e=>{rp(e,Ts,"rowTreeCreation",Lee)},gE=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],Hee=(e,t)=>{var n;return v({},e,{rowSelection:t.rowSelection?(n=gE(t.rowSelectionModel))!=null?n:[]:[]})},zee=(e,t)=>{const n=Mn(e,"useGridSelection"),r=M=>(...T)=>{t.rowSelection&&M(...T)},o=f.useMemo(()=>gE(t.rowSelectionModel,Cr(e.current.state)),[e,t.rowSelectionModel]),l=f.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:Cr,changeEvent:"rowSelectionChange"});const{checkboxSelection:s,disableMultipleRowSelection:i,disableRowSelectionOnClick:a,isRowSelectable:c}=t,u=!i||s,d=Vs(e,t),h=f.useCallback(M=>{var T;let j=M;const A=(T=l.current)!=null?T:M,E=e.current.isRowSelected(M);if(E){const F=Cc(e),N=F.findIndex(H=>H===A),V=F.findIndex(H=>H===j);if(N===V)return;N>V?j=F[V+1]:j=F[V-1]}l.current=M,e.current.selectRowRange({startId:A,endId:j},!E)},[e]),g=f.useCallback(M=>{if(t.signature===Mo.DataGrid&&!t.checkboxSelection&&Array.isArray(M)&&M.length>1)throw new Error(["MUI: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
`));Cr(e.current.state)!==M&&(n.debug("Setting selection model"),e.current.setState(j=>v({},j,{rowSelection:t.rowSelection?M:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),m=f.useCallback(M=>Cr(e.current.state).includes(M),[e]),x=f.useCallback(M=>{if(c&&!c(e.current.getRowParams(M)))return!1;const T=e.current.getRowNode(M);return!((T==null?void 0:T.type)==="footer"||(T==null?void 0:T.type)==="pinnedRow")},[e,c]),w=f.useCallback(()=>OX(e),[e]),b=f.useCallback((M,T=!0,j=!1)=>{if(e.current.isRowSelectable(M))if(l.current=M,j)n.debug(`Setting selection for row ${M}`),e.current.setRowSelectionModel(T?[M]:[]);else{n.debug(`Toggling selection for row ${M}`);const E=Cr(e.current.state).filter(N=>N!==M);T&&E.push(M),(E.length<2||u)&&e.current.setRowSelectionModel(E)}},[e,n,u]),y=f.useCallback((M,T=!0,j=!1)=>{n.debug("Setting selection for several rows");const A=M.filter(N=>e.current.isRowSelectable(N));let E;if(j)E=T?A:[];else{const N=v({},ep(e));A.forEach(V=>{T?N[V]=V:delete N[V]}),E=Object.values(N)}(E.length<2||u)&&e.current.setRowSelectionModel(E)},[e,n,u]),C=f.useCallback(({startId:M,endId:T},j=!0,A=!1)=>{if(!e.current.getRow(M)||!e.current.getRow(T))return;n.debug(`Expanding selection from row ${M} to row ${T}`);const E=Cc(e),F=E.indexOf(M),N=E.indexOf(T),[V,H]=F>N?[N,F]:[F,N],Q=E.slice(V,H+1);e.current.selectRows(Q,j,A)},[e,n]),S={selectRow:b,setRowSelectionModel:g,getSelectedRows:w,isRowSelected:m,isRowSelectable:x},I={selectRows:y,selectRowRange:C};Ue(e,S,"public"),Ue(e,I,t.signature===Mo.DataGrid?"private":"public");const P=f.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const M=Cr(e.current.state),T=No(e),j=v({},ep(e));let A=!1;M.forEach(E=>{T[E]||(delete j[E],A=!0)}),A&&e.current.setRowSelectionModel(Object.values(j))},[e,t.keepNonExistentRowsSelected]),k=f.useCallback((M,T)=>{const j=T.metaKey||T.ctrlKey,A=!s&&!j&&!mY(T),E=!u||A,F=e.current.isRowSelected(M);E?e.current.selectRow(M,A?!0:!F,!0):e.current.selectRow(M,!F,!1)},[e,u,s]),$=f.useCallback((M,T)=>{var j;if(a)return;const A=(j=T.target.closest(`.${z.cell}`))==null?void 0:j.getAttribute("data-field");if(A===Pa.field||A===Mx)return;if(A){const F=e.current.getColumn(A);if((F==null?void 0:F.type)===jh)return}e.current.getRowNode(M.id).type!=="pinnedRow"&&(T.shiftKey&&(u||s)?h(M.id):k(M.id,T))},[a,u,s,e,h,k]),D=f.useCallback((M,T)=>{if(u&&T.shiftKey){var j;(j=window.getSelection())==null||j.removeAllRanges()}},[u]),O=f.useCallback((M,T)=>{T.nativeEvent.shiftKey?h(M.id):e.current.selectRow(M.id,M.value)},[e,h]),R=f.useCallback(M=>{const j=t.checkboxSelectionVisibleOnly&&t.pagination?U$(e):Cc(e);e.current.selectRows(j,M.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),L=f.useCallback((M,T)=>{if(e.current.getCellMode(M.id,M.field)!==it.Edit&&!Fu(T)){if(Jf(T.key)&&T.shiftKey){const j=er(e);if(j&&j.id!==M.id){T.preventDefault();const A=e.current.isRowSelected(j.id);if(!u){e.current.selectRow(j.id,!A,!0);return}const E=e.current.getRowIndexRelativeToVisibleRows(j.id),F=e.current.getRowIndexRelativeToVisibleRows(M.id);let N,V;E>F?A?(N=F,V=E-1):(N=F,V=E):A?(N=E+1,V=F):(N=E,V=F);const H=d.rows.slice(N,V+1).map(Q=>Q.id);e.current.selectRows(H,!A);return}}if(T.key===" "&&T.shiftKey){T.preventDefault(),k(M.id,T);return}T.key==="a"&&(T.ctrlKey||T.metaKey)&&(T.preventDefault(),y(e.current.getAllRowIds(),!0))}},[e,k,y,d.rows,u]);Te(e,"sortedRowsSet",r(P)),Te(e,"rowClick",r($)),Te(e,"rowSelectionCheckboxChange",r(O)),Te(e,"headerSelectionCheckboxChange",R),Te(e,"cellMouseDown",r(D)),Te(e,"cellKeyDown",r(L)),f.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),f.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const _=o!=null;f.useEffect(()=>{if(_||!t.rowSelection)return;const M=Cr(e.current.state);if(x){const T=M.filter(j=>x(j));T.length<M.length&&e.current.setRowSelectionModel(T)}},[e,x,_,t.rowSelection]),f.useEffect(()=>{if(!t.rowSelection||_)return;const M=Cr(e.current.state);!u&&M.length>1&&e.current.setRowSelectionModel([])},[e,u,s,_,t.rowSelection])},Bee={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorEquals:"Equals",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"},Vee=e=>{const{classes:t}=e;return f.useMemo(()=>ae({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},qe,t),[t])},Uee=(e,t)=>{const n={classes:t.classes},r=Vee(n),o=f.useCallback(l=>{const s=v({},Pa,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),i=t.checkboxSelection,a=l.lookup[cl]!=null;return i&&!a?(l.lookup[cl]=s,l.orderedFields=[cl,...l.orderedFields]):!i&&a?(delete l.lookup[cl],l.orderedFields=l.orderedFields.filter(c=>c!==cl)):i&&a&&(l.lookup[cl]=v({},s,l.lookup[cl])),l},[e,r,t.checkboxSelection]);Xt(e,"hydrateColumns",o)},Wee=(e,t)=>{var n,r,o;const l=(n=(r=t.sortModel)!=null?r:(o=t.initialState)==null||(o=o.sorting)==null?void 0:o.sortModel)!=null?n:[];return v({},e,{sorting:{sortModel:W$(l,t.disableMultipleColumnsSorting),sortedRows:[]}})},Gee=(e,t)=>{var n;const r=Mn(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:br,changeEvent:"sortModelChange"});const o=f.useCallback((P,k)=>{const $=br(e),D=$.findIndex(R=>R.field===P);let O=[...$];return D>-1?k?O.splice(D,1,k):O.splice(D,1):O=[...$,k],O},[e]),l=f.useCallback((P,k)=>{var $;const O=br(e).find(L=>L.field===P.field);if(O){var R;const L=k===void 0?Vw((R=P.sortingOrder)!=null?R:t.sortingOrder,O.sort):k;return L==null?void 0:v({},O,{sort:L})}return{field:P.field,sort:k===void 0?Vw(($=P.sortingOrder)!=null?$:t.sortingOrder):k}},[e,t.sortingOrder]),s=f.useCallback((P,k)=>k==null||k.sortable===!1?P:(k.sortingOrder||t.sortingOrder).some(D=>!!D)?[...P,"columnMenuSortItem"]:P,[t.sortingOrder]),i=f.useCallback(()=>{e.current.setState(P=>{if(t.sortingMode==="server")return r.debug("Skipping sorting rows as sortingMode = server"),v({},P,{sorting:v({},P.sorting,{sortedRows:yx(Kr(e),Rn,!1)})});const k=br(P,e.current.instanceId),$=AX(k,e),D=e.current.applyStrategyProcessor("sorting",{sortRowList:$});return v({},P,{sorting:v({},P.sorting,{sortedRows:D})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,r,t.sortingMode]),a=f.useCallback(P=>{br(e)!==P&&(r.debug("Setting sort model"),e.current.setState(Bw(P,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,r,t.disableMultipleColumnsSorting]),c=f.useCallback((P,k,$)=>{if(!P.sortable)return;const D=l(P,k);let O;!$||t.disableMultipleColumnsSorting?O=D?[D]:[]:O=o(P.field,D),e.current.setSortModel(O)},[e,o,l,t.disableMultipleColumnsSorting]),u=f.useCallback(()=>br(e),[e]),d=f.useCallback(()=>gx(e).map(k=>k.model),[e]),h=f.useCallback(()=>hx(e),[e]),g=f.useCallback(P=>e.current.getSortedRowIds()[P],[e]);Ue(e,{getSortModel:u,getSortedRows:d,getSortedRowIds:h,getRowIdFromRowIndex:g,setSortModel:a,sortColumn:c,applySorting:i},"public");const x=f.useCallback((P,k)=>{var $;const D=br(e);return!k.exportOnlyDirtyModels||t.sortModel!=null||(($=t.initialState)==null||($=$.sorting)==null?void 0:$.sortModel)!=null||D.length>0?v({},P,{sorting:{sortModel:D}}):P},[e,t.sortModel,(n=t.initialState)==null||(n=n.sorting)==null?void 0:n.sortModel]),w=f.useCallback((P,k)=>{var $;const D=($=k.stateToRestore.sorting)==null?void 0:$.sortModel;return D==null?P:(e.current.setState(Bw(D,t.disableMultipleColumnsSorting)),v({},P,{callbacks:[...P.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),b=f.useCallback(P=>{const k=Kr(e),$=k[Rn],D=P.sortRowList?P.sortRowList($.children.map(O=>k[O])):[...$.children];return $.footerId!=null&&D.push($.footerId),D},[e]);Xt(e,"exportState",x),Xt(e,"restoreState",w),rp(e,Ts,"sorting",b);const y=f.useCallback(({colDef:P},k)=>{const $=k.shiftKey||k.metaKey||k.ctrlKey;c(P,void 0,$)},[c]),C=f.useCallback(({colDef:P},k)=>{fY(k.key)&&!k.ctrlKey&&!k.metaKey&&c(P,void 0,k.shiftKey)},[c]),S=f.useCallback(()=>{const P=br(e),k=Ca(e);if(P.length>0){const $=P.filter(D=>k[D.field]);$.length<P.length&&e.current.setSortModel($)}},[e]),I=f.useCallback(P=>{P==="sorting"&&e.current.applySorting()},[e]);Xt(e,"columnMenu",s),Te(e,"columnHeaderClick",y),Te(e,"columnHeaderKeyDown",C),Te(e,"rowsSet",e.current.applySorting),Te(e,"columnsChange",S),Te(e,"activeStrategyProcessorChange",I),ju(()=>{e.current.applySorting()}),tt(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function hS(e){const{clientHeight:t,scrollTop:n,offsetHeight:r,offsetTop:o}=e,l=o+r;if(r>t)return o;if(l-t>n)return l-t;if(o<n)return o}const Kee=(e,t)=>{const n=on(),r=Mn(e,"useGridScroll"),o=e.current.columnHeadersElementRef,l=e.current.virtualScrollerRef,s=Pe(e,Wl),i=f.useCallback(d=>{const h=Eh(e),g=fn(e);if(!(d.rowIndex==null)&&h===0||g.length===0)return!1;r.debug(`Scrolling to cell at row ${d.rowIndex}, col: ${d.colIndex} `);let x={};if(d.colIndex!=null){const C=fa(e);let S;if(typeof d.rowIndex<"u"){var w;const I=(w=s[d.rowIndex])==null?void 0:w.id,P=e.current.unstable_getCellColSpanInfo(I,d.colIndex);P&&!P.spannedByColSpan&&(S=P.cellProps.width)}typeof S>"u"&&(S=g[d.colIndex].computedWidth),x.left=hS({clientHeight:l.current.clientWidth,scrollTop:Math.abs(l.current.scrollLeft),offsetHeight:S,offsetTop:C[d.colIndex]})}if(d.rowIndex!=null){var b,y;const C=cu(e.current.state),S=$X(e),I=EX(e),P=t.pagination?d.rowIndex-S*I:d.rowIndex,k=C.positions[P+1]?C.positions[P+1]-C.positions[P]:C.currentPageTotalHeight-C.positions[P],$=((b=l.current.querySelector(`.${z["pinnedRows--top"]}`))==null?void 0:b.clientHeight)||0,D=((y=l.current.querySelector(`.${z["pinnedRows--bottom"]}`))==null?void 0:y.clientHeight)||0;x.top=hS({clientHeight:l.current.clientHeight-$-D,scrollTop:l.current.scrollTop,offsetHeight:k,offsetTop:C.positions[P]})}return x=e.current.unstable_applyPipeProcessors("scrollToIndexes",x,d),typeof x.left!==void 0||typeof x.top!==void 0?(e.current.scroll(x),!0):!1},[r,e,l,t.pagination,s]),a=f.useCallback(d=>{if(l.current&&d.left!=null&&o.current){const h=n.direction==="rtl"?-1:1;o.current.scrollLeft=d.left,l.current.scrollLeft=h*d.left,r.debug(`Scrolling left: ${d.left}`)}l.current&&d.top!=null&&(l.current.scrollTop=d.top,r.debug(`Scrolling top: ${d.top}`)),r.debug("Scrolling, updating container, and viewport")},[l,n.direction,o,r]),c=f.useCallback(()=>l!=null&&l.current?{top:l.current.scrollTop,left:l.current.scrollLeft}:{top:0,left:0},[l]);Ue(e,{scroll:a,scrollToIndexes:i,getScrollPosition:c},"public")};function qee(e,t){bt(e,"columnHeaderClick",t.onColumnHeaderClick),bt(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),bt(e,"columnHeaderOver",t.onColumnHeaderOver),bt(e,"columnHeaderOut",t.onColumnHeaderOut),bt(e,"columnHeaderEnter",t.onColumnHeaderEnter),bt(e,"columnHeaderLeave",t.onColumnHeaderLeave),bt(e,"cellClick",t.onCellClick),bt(e,"cellDoubleClick",t.onCellDoubleClick),bt(e,"cellKeyDown",t.onCellKeyDown),bt(e,"preferencePanelClose",t.onPreferencePanelClose),bt(e,"preferencePanelOpen",t.onPreferencePanelOpen),bt(e,"menuOpen",t.onMenuOpen),bt(e,"menuClose",t.onMenuClose),bt(e,"rowDoubleClick",t.onRowDoubleClick),bt(e,"rowClick",t.onRowClick),bt(e,"stateChange",t.onStateChange)}const Yee=({content:e,container:t,scrollBarSize:n})=>{const r=e.width>t.width,o=e.height>t.height;let l=!1,s=!1;return(r||o)&&(l=r,s=e.height+(l?n:0)>t.height,s&&(l=e.width+n>t.width)),{hasScrollX:l,hasScrollY:s}};function Xee(e,t){const n=Mn(e,"useResizeContainer"),r=f.useRef(!1),o=f.useRef(null),l=f.useRef(null),s=Pe(e,cu),i=Pe(e,Sa),a=Math.floor(t.rowHeight*i),c=Ex(e,t.columnHeaderHeight),u=f.useCallback(()=>{var k;const $=(k=e.current.rootElementRef)==null?void 0:k.current,D=px(e),O=M$(e);if(!o.current)return;let R;if(t.scrollbarSize!=null)R=t.scrollbarSize;else if(!D||!$)R=0;else{const F=Tt($).createElement("div");F.style.width="99px",F.style.height="99px",F.style.position="absolute",F.style.overflow="scroll",F.className="scrollDiv",$.appendChild(F),R=F.offsetWidth-F.clientWidth,$.removeChild(F)}let L,_,M;if(t.autoHeight)M=!1,_=Math.round(D)>Math.round(o.current.width),L={width:o.current.width,height:s.currentPageTotalHeight+(_?R:0)};else{L={width:o.current.width,height:Math.max(o.current.height-c,0)};const E=Yee({content:{width:Math.round(D),height:s.currentPageTotalHeight},container:{width:Math.round(L.width),height:L.height-O.top-O.bottom},scrollBarSize:R});M=E.hasScrollY,_=E.hasScrollX}const T={width:L.width-(M?R:0),height:L.height-(_?R:0)},j={viewportOuterSize:L,viewportInnerSize:T,hasScrollX:_,hasScrollY:M,scrollBarSize:R},A=l.current;l.current=j,(j.viewportInnerSize.width!==(A==null?void 0:A.viewportInnerSize.width)||j.viewportInnerSize.height!==(A==null?void 0:A.viewportInnerSize.height))&&e.current.publishEvent("viewportInnerSizeChange",j.viewportInnerSize)},[e,t.scrollbarSize,t.autoHeight,s.currentPageTotalHeight,c]),[d,h]=f.useState(),g=f.useMemo(()=>xa(h,60),[]),m=f.useRef();tt(()=>{d&&(u(),e.current.publishEvent("debouncedResize",o.current))},[e,d,u]);const x=f.useCallback(()=>{e.current.computeSizeAndPublishResizeEvent()},[e]),w=f.useCallback(()=>l.current,[]),b=f.useCallback(()=>{const k=e.current.getRootDimensions();if(!k)return 0;const $=tp(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(t.getRowHeight){const O=e.current.getRenderContext(),R=O.lastRowIndex-O.firstRowIndex;return Math.min(R-1,$.rows.length)}const D=Math.floor(k.viewportInnerSize.height/a);return Math.min(D,$.rows.length)},[e,t.pagination,t.paginationMode,t.getRowHeight,a]),y=f.useCallback(()=>{var k,$,D;const O=(k=e.current.mainElementRef)==null?void 0:k.current;if(!O)return;const L=Dr(O).getComputedStyle(O),_=parseFloat(L.height)||0,M=parseFloat(L.width)||0,T=_!==(($=m.current)==null?void 0:$.height),j=M!==((D=m.current)==null?void 0:D.width);if(!m.current||T||j){const A={width:M,height:_};e.current.publishEvent("resize",A),m.current=A}},[e]),C={resize:x,getRootDimensions:w},S={getViewportPageSize:b,updateGridDimensionsRef:u,computeSizeAndPublishResizeEvent:y};Ue(e,C,"public"),Ue(e,S,"private");const I=f.useRef(!0),P=f.useCallback(k=>{o.current=k;const $=/jsdom/.test(window.navigator.userAgent);if(k.height===0&&!r.current&&!t.autoHeight&&!$&&(n.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
`)),r.current=!0),k.width===0&&!r.current&&!$&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
`)),r.current=!0),I.current){h(k),I.current=!1;return}g(k)},[t.autoHeight,g,n]);tt(()=>u(),[u]),bt(e,"sortedRowsSet",u),bt(e,"paginationModelChange",u),bt(e,"columnsChange",u),Te(e,"resize",P),bt(e,"debouncedResize",t.onResize)}const Qee=["style"],Zee=["style"];function ji(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),l=t[o];return e<=l?ji(e,t,n,o):ji(e,t,o+1,r)}function Jee(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return ji(e,t,Math.floor(n/2),Math.min(n,t.length))}const pl=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[pa(e-n,r,o),pa(t+n,r,o)],mE=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,ete={maxSize:3},tte=e=>{var t,n;const r=Ul(),o=Ee(),l=Pe(r,fn),s=Pe(r,UX),i=Pe(r,X$),{ref:a,onRenderZonePositioning:c,renderZoneMinColumnIndex:u=0,renderZoneMaxColumnIndex:d=l.length,getRowProps:h}=e,g=on(),m=Pe(r,fa),x=Pe(r,px),w=Pe(r,er),b=Pe(r,Yf),y=Pe(r,cu),C=Pe(r,ep),S=Vs(r,o),I=f.useRef(null),P=f.useRef(null),k=nt(a,P),[$,D]=f.useState(null),O=f.useRef($),R=f.useRef({top:0,left:0}),[L,_]=f.useState({width:null,height:null}),M=f.useRef(x),[T,j]=f.useState(null),A=f.useRef(Object.create(null)),E=f.useRef(),F=f.useRef(),N=f.useRef(Mh((G,se,ie,ke,we,Se)=>{let ve;const re=G.slice(se,ie);return Se>-1&&(se>Se&&Se>=ke||ie<Se&&Se<we)&&(ve=Se),{focusedCellColumnIndexNotInRange:ve,renderedColumns:re}},ete)),V=f.useMemo(()=>w!==null?l.findIndex(G=>G.field===w.field):-1,[w,l]),H=f.useCallback(G=>{var se,ie;const ke=r.current.getLastMeasuredRowIndex();let we=ke===1/0;(se=S.range)!=null&&se.lastRowIndex&&!we&&(we=ke>=S.range.lastRowIndex);const Se=pa(ke-(((ie=S.range)==null?void 0:ie.firstRowIndex)||0),0,y.positions.length);return we||y.positions[Se]>=G?ji(G,y.positions):Jee(G,y.positions,Se)},[r,(t=S.range)==null?void 0:t.firstRowIndex,(n=S.range)==null?void 0:n.lastRowIndex,y.positions]),Q=f.useCallback(()=>{if(!s)return{firstRowIndex:0,lastRowIndex:S.rows.length,firstColumnIndex:0,lastColumnIndex:l.length};const{top:G,left:se}=R.current,ie=Math.min(H(G),y.positions.length-1),ke=o.autoHeight?ie+S.rows.length:H(G+L.height);let we=0,Se=m.length;if(i){let ve=!1;const[re,ce]=pl({firstIndex:ie,lastIndex:ke,minFirstIndex:0,maxLastIndex:S.rows.length,buffer:o.rowBuffer});for(let ye=re;ye<ce&&!ve;ye+=1){const _e=S.rows[ye];ve=r.current.rowHasAutoHeight(_e.id)}ve||(we=ji(Math.abs(se),m),Se=ji(Math.abs(se)+L.width,m))}return{firstRowIndex:ie,lastRowIndex:ke,firstColumnIndex:we,lastColumnIndex:Se}},[s,i,H,y.positions.length,o.autoHeight,o.rowBuffer,S.rows,m,l.length,r,L]);tt(()=>{s?(P.current.scrollLeft=0,P.current.scrollTop=0):I.current.style.transform="translate3d(0px, 0px, 0px)"},[s]),tt(()=>{_({width:P.current.clientWidth,height:P.current.clientHeight})},[y.currentPageTotalHeight]);const q=f.useCallback(()=>{P.current&&_({width:P.current.clientWidth,height:P.current.clientHeight})},[]);Te(r,"debouncedResize",q);const Z=f.useCallback(G=>{const[se,ie]=pl({firstIndex:G.firstRowIndex,lastIndex:G.lastRowIndex,minFirstIndex:0,maxLastIndex:S.rows.length,buffer:o.rowBuffer}),[ke]=pl({firstIndex:G.firstColumnIndex,lastIndex:G.lastColumnIndex,minFirstIndex:u,maxLastIndex:d,buffer:o.columnBuffer}),we=Mv({firstColumnToRender:ke,apiRef:r,firstRowToRender:se,lastRowToRender:ie,visibleRows:S.rows}),Se=g.direction==="ltr"?1:-1,ve=cu(r.current.state).positions[se],re=Se*fa(r)[we];I.current.style.transform=`translate3d(${re}px, ${ve}px, 0px)`,typeof c=="function"&&c({top:ve,left:re})},[r,S.rows,c,u,d,o.columnBuffer,o.rowBuffer,g.direction]),le=f.useCallback(()=>O.current,[]),fe=f.useCallback(G=>{if(O.current&&mE(G,O.current)){Z(G);return}D(G),Z(G);const[se,ie]=pl({firstIndex:G.firstRowIndex,lastIndex:G.lastRowIndex,minFirstIndex:0,maxLastIndex:S.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:se,lastRowToRender:ie}),O.current=G},[r,D,O,S.rows.length,o.rowBuffer,Z]);tt(()=>{if(L.width==null)return;const G=Q();fe(G);const{top:se,left:ie}=R.current,ke={top:se,left:ie,renderContext:G};r.current.publishEvent("scrollPositionChange",ke)},[r,Q,L.width,fe]);const me=wt(G=>{const{scrollTop:se,scrollLeft:ie}=G.currentTarget;if(R.current.top=se,R.current.left=ie,!O.current||se<0||g.direction==="ltr"&&ie<0||g.direction==="rtl"&&ie>0)return;const ke=s?Q():O.current,we=Math.abs(ke.firstRowIndex-O.current.firstRowIndex),Se=Math.abs(ke.lastRowIndex-O.current.lastRowIndex),ve=Math.abs(ke.firstColumnIndex-O.current.firstColumnIndex),re=Math.abs(ke.lastColumnIndex-O.current.lastColumnIndex),ce=we>=o.rowThreshold||Se>=o.rowThreshold||ve>=o.columnThreshold||re>=o.columnThreshold||M.current!==x;r.current.publishEvent("scrollPositionChange",{top:se,left:ie,renderContext:ce?ke:O.current},G),ce&&(Fs.flushSync(()=>{fe(ke)}),M.current=x)}),Y=wt(G=>{r.current.publishEvent("virtualScrollerWheel",{},G)}),oe=wt(G=>{r.current.publishEvent("virtualScrollerTouchMove",{},G)}),J=f.useMemo(()=>w!==null?S.rows.findIndex(G=>G.id===w.id):-1,[w,S.rows]);Te(r,"rowMouseOver",(G,se)=>{var ie;se.currentTarget.contains(se.relatedTarget)||j((ie=G.id)!=null?ie:null)}),Te(r,"rowMouseOut",(G,se)=>{se.currentTarget.contains(se.relatedTarget)||j(null)});const U=(G={renderContext:$})=>{var se;const{onRowRender:ie,renderContext:ke,minFirstColumn:we=u,maxLastColumn:Se=d,availableSpace:ve=L.width,rowIndexOffset:re=0,position:ce="center"}=G;if(!ke||ve==null)return null;const ye=s?o.rowBuffer:0,_e=s?o.columnBuffer:0,[Le,Oe]=pl({firstIndex:ke.firstRowIndex,lastIndex:ke.lastRowIndex,minFirstIndex:0,maxLastIndex:S.rows.length,buffer:ye}),ge=[];if(G.rows)G.rows.forEach(vt=>{ge.push(vt),r.current.calculateColSpan({rowId:vt.id,minFirstColumn:we,maxLastColumn:Se,columns:l})});else{if(!S.range)return null;for(let vt=Le;vt<Oe;vt+=1){const ft=S.rows[vt];ge.push(ft),r.current.calculateColSpan({rowId:ft.id,minFirstColumn:we,maxLastColumn:Se,columns:l})}}let We=!1;if(J>-1){const vt=S.rows[J];(Le>J||Oe<J)&&(We=!0,J>Le?ge.push(vt):ge.unshift(vt),r.current.calculateColSpan({rowId:vt.id,minFirstColumn:we,maxLastColumn:Se,columns:l}))}const[Kt,Xe]=pl({firstIndex:ke.firstColumnIndex,lastIndex:ke.lastColumnIndex,minFirstIndex:we,maxLastIndex:Se,buffer:_e}),be=Mv({firstColumnToRender:Kt,apiRef:r,firstRowToRender:Le,lastRowToRender:Oe,visibleRows:S.rows});let De=!1;(be>V||Xe<V)&&(De=!0);const{focusedCellColumnIndexNotInRange:Be,renderedColumns:_t}=N.current(l,be,Xe,we,Se,De?V:-1),mn=((se=o.slotProps)==null?void 0:se.row)||{},{style:gr}=mn,vn=W(mn,Qee);(E.current!==h||F.current!==gr)&&(A.current=Object.create(null));const In=[];let vr=!1;for(let vt=0;vt<ge.length;vt+=1){var Zn;const{id:ft,model:io}=ge[vt],tl=We&&w.id===ft,Us=We?Le+vt===S.rows.length:Le+vt===S.rows.length-1,ao=r.current.rowHasAutoHeight(ft)?"auto":r.current.unstable_getRowHeight(ft);let Ft;C[ft]==null?Ft=!1:Ft=r.current.isRowSelectable(ft),ie&&ie(ft);const yt=w!==null&&w.id===ft?w.field:null,yn=Be!==void 0&&l[Be],co=yn&&yt?[yn,..._t]:_t;let uo=null;b!==null&&b.id===ft&&(uo=r.current.getCellParams(ft,b.field).cellMode==="view"?b.field:null);const en=typeof h=="function"&&h(ft,io)||{},{style:zr}=en,nl=W(en,Zee);if(!A.current[ft]){const Dn=v({},zr,gr);A.current[ft]=Dn}let $n=re+((S==null||(Zn=S.range)==null?void 0:Zn.firstRowIndex)||0)+Le+vt;We&&(w==null?void 0:w.id)===ft?($n=J,vr=!0):vr&&($n-=1),In.push(p.jsx(o.slots.row,v({row:io,rowId:ft,focusedCellColumnIndexNotInRange:Be,isNotVisible:tl,rowHeight:ao,focusedCell:yt,tabbableCell:uo,renderedColumns:co,visibleColumns:l,firstColumnToRender:be,lastColumnToRender:Xe,selected:Ft,index:$n,containerWidth:ve,isLastVisible:Us,position:ce},nl,vn,{hovered:T===ft,style:A.current[ft]}),ft))}return E.current=h,F.current=gr,In},ue=L.width&&x>=L.width,pe=f.useMemo(()=>{const G=Math.max(y.currentPageTotalHeight,1);let se=!1;P!=null&&P.current&&G<=(P==null?void 0:P.current.clientHeight)&&(se=!0);const ie={width:ue?x:"auto",height:G,minHeight:se?"100%":"auto"};return o.autoHeight&&S.rows.length===0&&(ie.height=I$(r,o.rowHeight)),ie},[r,P,x,y.currentPageTotalHeight,ue,o.autoHeight,o.rowHeight,S.rows.length]);f.useEffect(()=>{r.current.publishEvent("virtualScrollerContentSizeChange")},[r,pe]);const de=f.useMemo(()=>{const G={};return ue||(G.overflowX="hidden"),o.autoHeight&&(G.overflowY="hidden"),G},[ue,o.autoHeight]);return r.current.register("private",{getRenderContext:le}),{renderContext:$,updateRenderZonePosition:Z,getRows:U,getRootProps:(G={})=>v({ref:k,onScroll:me,onWheel:Y,onTouchMove:oe},G,{style:G.style?v({},G.style,de):de,role:"presentation"}),getContentProps:({style:G}={})=>({style:G?v({},G,pe):pe,role:"presentation"}),getRenderZoneProps:()=>({ref:I,role:"rowgroup"})}},nte=e=>{const{classes:t,headerAlign:n,isDragging:r,showColumnBorder:o,groupId:l}=e;return ae({root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",o&&"columnHeader--showColumnBorder",o&&"columnHeader--withRightBorder","withBorderColor",l===null?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},qe,t)};function rte(e){var t;const{groupId:n,width:r,depth:o,maxDepth:l,fields:s,height:i,colIndex:a,hasFocus:c,tabIndex:u,isLastColumn:d}=e,h=Ee(),g=f.useRef(null),m=Ke(),x=Pe(m,v$),w=n?x[n]:{},{headerName:b=n??"",description:y="",headerAlign:C=void 0}=w;let S;const I=n&&((t=x[n])==null?void 0:t.renderHeaderGroup),P=f.useMemo(()=>({groupId:n,headerName:b,description:y,depth:o,maxDepth:l,fields:s,colIndex:a,isLastColumn:d}),[n,b,y,o,l,s,a,d]);n&&I&&(S=I(P));const k=h.showColumnVerticalBorder,$=v({},e,{classes:h.classes,showColumnBorder:k,headerAlign:C,depth:o,isDragging:!1}),D=b??n,O=ct(),R=n===null?`empty-group-cell-${O}`:n,L=nte($);f.useLayoutEffect(()=>{if(c){const A=g.current.querySelector('[tabindex="0"]')||g.current;A==null||A.focus()}},[m,c]);const _=f.useCallback(j=>A=>{Fu(A)||m.current.publishEvent(j,P,A)},[m,P]),M=f.useMemo(()=>({onKeyDown:_("columnGroupHeaderKeyDown"),onFocus:_("columnGroupHeaderFocus"),onBlur:_("columnGroupHeaderBlur")}),[_]),T=typeof w.headerClassName=="function"?w.headerClassName(P):w.headerClassName;return p.jsx(A$,v({ref:g,classes:L,columnMenuOpen:!1,colIndex:a,height:i,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:u,isDraggable:!1,headerComponent:S,headerClassName:T,description:y,elementId:R,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:D,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`},M))}const gS=X("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})(()=>({display:"flex"}));function ote(e){return!!e.target}const lte=e=>{const{innerRef:t,minColumnIndex:n=0,visibleColumns:r,sortColumnLookup:o,filterColumnLookup:l,columnPositions:s,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,densityFactor:d,headerGroupingMaxDepth:h,columnMenuState:g,columnVisibility:m,columnGroupsHeaderStructure:x,hasOtherElementInTabSequence:w}=e,b=on(),[y,C]=f.useState(""),[S,I]=f.useState(""),P=Ul(),k=Pe(P,X$),$=Ee(),D=f.useRef(null),O=nt(t,D),[R,L]=f.useState(null),_=f.useRef(R),M=f.useRef(0),T=Vs(P,$),j=Ex(P,$.columnHeaderHeight),A=Math.floor($.columnHeaderHeight*d),E=f.useCallback(oe=>{R&&oe&&mE(R,oe)||L(oe)},[R]);f.useEffect(()=>{P.current.columnHeadersContainerElementRef.current.scrollLeft=0},[P]);const F=f.useRef(Mh(JJ,{equalityCheck:(oe,J)=>["firstColumnIndex","minColumnIndex","columnBuffer"].every(U=>oe[U]===J[U])})),N=f.useCallback(oe=>{const[J,U]=pl({firstIndex:oe.firstRowIndex,lastIndex:oe.lastRowIndex,minFirstIndex:0,maxLastIndex:T.rows.length,buffer:$.rowBuffer}),ue=F.current({firstColumnIndex:oe.firstColumnIndex,minColumnIndex:n,columnBuffer:$.columnBuffer,firstRowToRender:J,lastRowToRender:U,apiRef:P,visibleRows:T.rows}),pe=b.direction==="ltr"?1:-1,de=ue>0?M.current-pe*s[ue]:M.current;D.current.style.transform=`translate3d(${-de}px, 0px, 0px)`},[s,n,$.columnBuffer,P,T.rows,$.rowBuffer,b.direction]);f.useLayoutEffect(()=>{R&&N(R)},[R,N]);const V=f.useCallback(({left:oe,renderContext:J=null},U)=>{var ue,pe;if(!D.current||M.current===oe&&((ue=_.current)==null?void 0:ue.firstColumnIndex)===(J==null?void 0:J.firstColumnIndex)&&((pe=_.current)==null?void 0:pe.lastColumnIndex)===(J==null?void 0:J.lastColumnIndex))return;M.current=oe;let de=!1;J!==_.current||!_.current?(ote(U)?(Fs.flushSync(()=>{E(J)}),de=!0):E(J),_.current=J):de=!0,J&&de&&N(J)},[N,E]),H=f.useCallback(oe=>I(oe.field),[]),Q=f.useCallback(()=>I(""),[]),q=f.useCallback(oe=>C(oe.field),[]),Z=f.useCallback(()=>C(""),[]);Te(P,"columnResizeStart",H),Te(P,"columnResizeStop",Q),Te(P,"columnHeaderDragStart",q),Te(P,"columnHeaderDragEnd",Z),Te(P,"scrollPositionChange",V);const le=oe=>{const{renderContext:J=R,minFirstColumn:U=n,maxLastColumn:ue=r.length}=oe||{};if(!J)return null;const[pe,de]=pl({firstIndex:J.firstRowIndex,lastIndex:J.lastRowIndex,minFirstIndex:0,maxLastIndex:T.rows.length,buffer:$.rowBuffer}),G=k?F.current({firstColumnIndex:J.firstColumnIndex,minColumnIndex:U,columnBuffer:$.columnBuffer,apiRef:P,firstRowToRender:pe,lastRowToRender:de,visibleRows:T.rows}):0,se=k?Math.min(J.lastColumnIndex+$.columnBuffer,ue):ue;return{renderedColumns:r.slice(G,se),firstColumnToRender:G,lastColumnToRender:se,minFirstColumn:U,maxLastColumn:ue}},fe=(oe,J={})=>{const U=le(oe);if(U==null)return null;const{renderedColumns:ue,firstColumnToRender:pe}=U,de=[];for(let G=0;G<ue.length;G+=1){const se=ue[G],ie=pe+G,ke=ie===0,we=i!==null&&i.field===se.field||ke&&!w?0:-1,Se=c!==null&&c.field===se.field,ve=g.open&&g.field===se.field;de.push(p.jsx(pX,v({},o[se.field],{columnMenuOpen:ve,filterItemsCounter:l[se.field]&&l[se.field].length,headerHeight:A,isDragging:se.field===y,colDef:se,colIndex:ie,isResizing:S===se.field,hasFocus:Se,tabIndex:we},J),se.field))}return p.jsx(gS,{role:"row","aria-rowindex":h+1,ownerState:$,children:de})},me=oe=>{if(h===0)return null;const J=le(oe);if(J==null||J.renderedColumns.length===0)return null;const{firstColumnToRender:U,lastColumnToRender:ue}=J,pe=[],de=[];for(let ie=0;ie<h;ie+=1){var G,se;const ke=x[ie],we=r[U].field,Se=(G=P.current.unstable_getColumnGroupPath(we)[ie])!=null?G:null,ve=ke.findIndex(({groupId:Xe,columnFields:be})=>Xe===Se&&be.includes(we)),re=r[ue-1].field,ce=(se=P.current.unstable_getColumnGroupPath(re)[ie])!=null?se:null,ye=ke.findIndex(({groupId:Xe,columnFields:be})=>Xe===ce&&be.includes(re)),_e=ke.slice(ve,ye+1).map(Xe=>v({},Xe,{columnFields:Xe.columnFields.filter(be=>m[be]!==!1)})).filter(Xe=>Xe.columnFields.length>0),Le=_e[0].columnFields.indexOf(we),ge=_e[0].columnFields.slice(0,Le).reduce((Xe,be)=>{var De;const Be=P.current.getColumn(be);return Xe+((De=Be.computedWidth)!=null?De:0)},0);let We=U;const Kt=_e.map(({groupId:Xe,columnFields:be})=>{const De=u!==null&&u.depth===ie&&be.includes(u.field),Be=a!==null&&a.depth===ie&&be.includes(a.field)?0:-1,_t={groupId:Xe,width:be.reduce((mn,gr)=>mn+P.current.getColumn(gr).computedWidth,0),fields:be,colIndex:We,hasFocus:De,tabIndex:Be};return We+=be.length,_t});de.push({leftOverflow:ge,elements:Kt})}return de.forEach((ie,ke)=>{pe.push(p.jsx(gS,{style:{height:`${A}px`,transform:`translateX(-${ie.leftOverflow}px)`},role:"row","aria-rowindex":ke+1,ownerState:$,children:ie.elements.map(({groupId:we,width:Se,fields:ve,colIndex:re,hasFocus:ce,tabIndex:ye},_e)=>p.jsx(rte,{groupId:we,width:Se,fields:ve,colIndex:re,depth:ke,isLastColumn:re===r.length-ve.length,maxDepth:de.length,height:A,hasFocus:ce,tabIndex:ye},_e))},ke))}),pe},Y={minHeight:j,maxHeight:j,lineHeight:`${A}px`};return{renderContext:R,getColumnHeaders:fe,getColumnsToRender:le,getColumnGroupHeaders:me,isDragging:!!y,getRootProps:(oe={})=>v({style:Y},oe),getInnerProps:()=>({ref:O,role:"rowgroup"}),headerHeight:A}},ste=["className"],ite=e=>{const{classes:t}=e;return ae({root:["columnHeaders","withBorderColor"]},qe,t)},ate=Zt("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({position:"relative",overflow:"hidden",display:"flex",alignItems:"center",boxSizing:"border-box",borderBottom:"1px solid",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),cte=f.forwardRef(function(t,n){const{className:r}=t,o=W(t,ste),l=Ee(),s=ite(l);return p.jsx(ate,v({ref:n,className:ee(r,s.root),ownerState:l},o,{role:"presentation"}))}),ute=["isDragging","className"],dte=e=>{const{isDragging:t,hasScrollX:n,classes:r}=e;return ae({root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]},qe,r)},fte=Zt("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:(e,t)=>[{[`&.${z.columnHeaderDropZone}`]:t.columnHeaderDropZone},t.columnHeadersInner]})(()=>({display:"flex",alignItems:"flex-start",flexDirection:"column",[`&.${z.columnHeaderDropZone} .${z.columnHeaderDraggableContainer}`]:{cursor:"move"},[`&.${z["columnHeadersInner--scrollable"]} .${z.columnHeader}:last-child`]:{borderRight:"none"}})),pte=f.forwardRef(function(t,n){var r,o;const{isDragging:l,className:s}=t,i=W(t,ute),a=Ke(),c=Ee(),u=v({},c,{isDragging:l,hasScrollX:(r=(o=a.current.getRootDimensions())==null?void 0:o.hasScrollX)!=null?r:!1}),d=dte(u);return p.jsx(fte,v({ref:n,className:ee(s,d.root),ownerState:u},i))}),hte=["innerRef","className","visibleColumns","sortColumnLookup","filterColumnLookup","columnPositions","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","densityFactor","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],gte=f.forwardRef(function(t,n){const{innerRef:r,visibleColumns:o,sortColumnLookup:l,filterColumnLookup:s,columnPositions:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:c,columnHeaderFocus:u,columnGroupHeaderFocus:d,densityFactor:h,headerGroupingMaxDepth:g,columnMenuState:m,columnVisibility:x,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:b}=t,y=W(t,hte),{isDragging:C,getRootProps:S,getInnerProps:I,getColumnHeaders:P,getColumnGroupHeaders:k}=lte({innerRef:r,visibleColumns:o,sortColumnLookup:l,filterColumnLookup:s,columnPositions:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:c,columnHeaderFocus:u,columnGroupHeaderFocus:d,densityFactor:h,headerGroupingMaxDepth:g,columnMenuState:m,columnVisibility:x,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:b});return p.jsx(cte,v({ref:n},S(y),{children:p.jsxs(pte,v({isDragging:C},I(),{children:[k(),P()]}))}))}),mte=Fh(gte),vte=f.forwardRef(function(t,n){const o=Ke().current.getLocaleText("noResultsOverlayLabel");return p.jsx(bx,v({ref:n},t,{children:o}))}),yte=["sortingOrder"],xte=f.memo(function(t){const{sortingOrder:n}=t,r=W(t,yte),o=Ee(),[l]=n,s=l==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return s?p.jsx(s,v({},r)):null}),bte=["native"];function Cte(e){let{native:t}=e,n=W(e,bte);return t?p.jsx("option",v({},n)):p.jsx(Bt,v({},n))}const wte={BooleanCellTrueIcon:dQ,BooleanCellFalseIcon:Gg,ColumnMenuIcon:iQ,OpenFilterButtonIcon:eQ,FilterPanelDeleteIcon:Gg,ColumnFilteredIcon:qw,ColumnSelectorIcon:nQ,ColumnUnsortedIcon:xte,ColumnSortedAscendingIcon:Uw,ColumnSortedDescendingIcon:Ww,ColumnResizeIcon:rQ,DensityCompactIcon:oQ,DensityStandardIcon:lQ,DensityComfortableIcon:sQ,ExportIcon:uQ,MoreActionsIcon:fQ,TreeDataCollapseIcon:Kw,TreeDataExpandIcon:Gw,GroupingCriteriaCollapseIcon:Kw,GroupingCriteriaExpandIcon:Gw,DetailPanelExpandIcon:Yw,DetailPanelCollapseIcon:aQ,RowReorderIcon:Xw,QuickFilterIcon:tQ,QuickFilterClearIcon:Gg,ColumnMenuHideIcon:pQ,ColumnMenuSortAscendingIcon:Uw,ColumnMenuSortDescendingIcon:Ww,ColumnMenuFilterIcon:qw,ColumnMenuManageColumnsIcon:hQ,ColumnMenuClearIcon:gQ,LoadIcon:cQ,FilterPanelAddIcon:Yw,FilterPanelRemoveAllIcon:mQ,ColumnReorderIcon:Xw},Ste=v({},wte,{BaseCheckbox:I4,BaseTextField:Fl,BaseFormControl:Zi,BaseSelect:Is,BaseSwitch:IM,BaseButton:Rt,BaseIconButton:dn,BaseInputAdornment:NH,BaseTooltip:MM,BasePopper:As,BaseInputLabel:Ji,BaseSelectOption:Cte,BaseChip:eM}),Pte=Ste,kte=v({},Pte,{Cell:xv,SkeletonCell:_Y,ColumnHeaderFilterIconButton:GX,ColumnMenu:RQ,ColumnHeaders:mte,Footer:NZ,FooterRowCount:qZ,Toolbar:null,PreferencesPanel:lZ,LoadingOverlay:zZ,NoResultsOverlay:vte,NoRowsOverlay:BZ,Pagination:UZ,FilterPanel:MZ,ColumnsPanel:JQ,Panel:oZ,Row:hJ}),vE=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>v({},t,{[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function Mte({defaultSlots:e,slots:t,components:n}){const r=t??(n?vE(n):null);if(!r||Object.keys(r).length===0)return e;const o=v({},e);return Object.keys(r).forEach(l=>{const s=l;r[s]!==void 0&&(o[s]=r[s])}),o}const Ite=["components","componentsProps"];function $te(e){var t;const n=Object.keys(e);if(!n.some(l=>l.startsWith("aria-")||l.startsWith("data-")))return e;const r={},o=(t=e.forwardedProps)!=null?t:{};for(let l=0;l<n.length;l+=1){const s=n[l];s.startsWith("aria-")||s.startsWith("data-")?o[s]=e[s]:r[s]=e[s]}return r.forwardedProps=o,r}function Ete(e){return f.useMemo(()=>{const{components:t,componentsProps:n}=e,r=W(e,Ite);return[t,n,$te(r)]},[e])}const Tte={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleRowSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},Dh={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,rowSelection:!0,density:"standard",disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleRowSelection:!1,disableMultipleColumnsSorting:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:$o.Cell,filterMode:"client",filterDebounceMs:150,columnHeaderHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:"client",rowHeight:52,pageSizeOptions:[25,50,100],rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingOrder:["asc","desc",null],sortingMode:"client",throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1,unstable_ignoreValueFormatterDuringExport:!1,clipboardCopyCellDelimiter:" ",rowPositionsDebounceMs:166},Rte=vE(kte),Ote=e=>{const[t,n,r]=Ete(Re({props:e,name:"MuiDataGrid"})),o=f.useMemo(()=>v({},Bee,r.localeText),[r.localeText]),l=f.useMemo(()=>Mte({defaultSlots:Rte,slots:r.slots,components:t}),[t,r.slots]);return f.useMemo(()=>{var s;return v({},Dh,r,{localeText:o,slots:l,slotProps:(s=r.slotProps)!=null?s:n},Tte)},[r,o,l,n])},_te=e=>v({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}}),mS=(e,t,n)=>typeof e=="number"&&e>0?e:t,Fte=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,l=f.useRef(Object.create(null)),s=f.useRef(-1),i=f.useRef(!1),a=Pe(e,Sa),c=Pe(e,cn),u=Pe(e,V$),d=Pe(e,br),h=Vs(e,t),g=Pe(e,wa),m=mS(t.rowHeight,Dh.rowHeight),x=Math.floor(m*a),w=f.useCallback(()=>{var L,_;i.current=!1;const M=A=>{l.current[A.id]||(l.current[A.id]={sizes:{baseCenter:x},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});const{isResized:E,needsFirstMeasurement:F,sizes:N}=l.current[A.id];let V=typeof x=="number"&&x>0?x:52;const H=N.baseCenter;if(E)V=H;else if(n){const fe=n(v({},A,{densityFactor:a}));if(fe==="auto"){if(F){const me=o?o(v({},A,{densityFactor:a})):x;V=me??x}else V=H;i.current=!0,l.current[A.id].autoHeight=!0}else V=mS(fe,x),l.current[A.id].needsFirstMeasurement=!1,l.current[A.id].autoHeight=!1}else l.current[A.id].needsFirstMeasurement=!1;const Q={};for(const fe in N)/^base[A-Z]/.test(fe)&&(Q[fe]=N[fe]);if(Q.baseCenter=V,r){var q,Z;const fe=e.current.getRowIndexRelativeToVisibleRows(A.id),me=r(v({},A,{isFirstVisible:fe===0,isLastVisible:fe===h.rows.length-1,indexRelativeToCurrentPage:fe}));Q.spacingTop=(q=me.top)!=null?q:0,Q.spacingBottom=(Z=me.bottom)!=null?Z:0}const le=e.current.unstable_applyPipeProcessors("rowHeight",Q,A);return l.current[A.id].sizes=le,le},T=[],j=h.rows.reduce((A,E)=>{T.push(A);let F=0,N=0;const V=M(E);for(const H in V){const Q=V[H];/^base[A-Z]/.test(H)?F=Q>F?Q:F:N+=Q}return A+F+N},0);g==null||(L=g.top)==null||L.forEach(A=>{M(A)}),g==null||(_=g.bottom)==null||_.forEach(A=>{M(A)}),e.current.setState(A=>v({},A,{rowsMeta:{currentPageTotalHeight:j,positions:T}})),i.current||(s.current=1/0),e.current.forceUpdate()},[e,h.rows,x,n,r,o,g,a]),b=f.useCallback(L=>{const _=l.current[L];return _?_.sizes.baseCenter:x},[x]),y=L=>{var _;return(_=l.current[L])==null?void 0:_.sizes},C=f.useCallback((L,_)=>{l.current[L].sizes.baseCenter=_,l.current[L].isResized=!0,l.current[L].needsFirstMeasurement=!1,w()},[w]),S=f.useMemo(()=>xa(w,t.rowPositionsDebounceMs),[w,t.rowPositionsDebounceMs]),I=f.useCallback((L,_,M)=>{if(!l.current[L]||!l.current[L].autoHeight)return;const T=l.current[L].sizes[`base${te(M)}`]!==_;l.current[L].needsFirstMeasurement=!1,l.current[L].sizes[`base${te(M)}`]=_,T&&S()},[S]),P=f.useCallback(L=>{var _;return((_=l.current[L])==null?void 0:_.autoHeight)||!1},[]),k=f.useCallback(()=>s.current,[]),$=f.useCallback(L=>{i.current&&L>s.current&&(s.current=L)},[]),D=f.useCallback(()=>{l.current={},w()},[w]);f.useEffect(()=>{w()},[x,c,u,d,w]),$x(e,"rowHeight",w);const O={unstable_setLastMeasuredRowIndex:$,unstable_getRowHeight:b,unstable_getRowInternalSizes:y,unstable_setRowHeight:C,unstable_storeRowHeightMeasurement:I,resetRowHeights:D},R={getLastMeasuredRowIndex:k,rowHasAutoHeight:P};Ue(e,O,"public"),Ue(e,R,"private")},jte=e=>{const t=f.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=f.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(s=>{s()}),e.current.forceUpdate()},[e]);Ue(e,{exportState:t,restoreState:n},"public")},Dte=e=>{const t=f.useRef({}),n=f.useCallback((c,u,d)=>{const h=t.current;h[c]||(h[c]={}),h[c][u]=d},[]),r=f.useCallback((c,u)=>{var d;return(d=t.current[c])==null?void 0:d[u]},[]),o=f.useCallback(c=>{const{columnIndex:u,rowId:d,minFirstColumnIndex:h,maxLastColumnIndex:g,columns:m}=c,x=m.length,w=m[u],b=typeof w.colSpan=="function"?w.colSpan(e.current.getCellParams(d,w.field)):w.colSpan;if(!b||b===1)return n(d,u,{spannedByColSpan:!1,cellProps:{colSpan:1,width:w.computedWidth}}),{colSpan:1};let y=w.computedWidth;for(let C=1;C<b;C+=1){const S=u+C;if(S>=h&&S<g){const I=m[S];y+=I.computedWidth,n(d,u+C,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(u+b,x-1),leftVisibleCellIndex:u})}n(d,u,{spannedByColSpan:!1,cellProps:{colSpan:b,width:y}})}return{colSpan:b}},[e,n]),l=f.useCallback(({rowId:c,minFirstColumn:u,maxLastColumn:d,columns:h})=>{for(let g=u;g<d;g+=1){const m=o({columnIndex:g,rowId:c,minFirstColumnIndex:u,maxLastColumnIndex:d,columns:h});m.colSpan>1&&(g+=m.colSpan-1)}},[o]),s={unstable_getCellColSpanInfo:r},i={calculateColSpan:l};Ue(e,s,"public"),Ue(e,i,"private");const a=f.useCallback(()=>{t.current={}},[]);Te(e,"columnOrderChange",a)},yE=(e,t,n)=>{if($$(e)){if(n[e.field]!==void 0)throw new Error(["MUI: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(l=>{yE(l,[...t,r],n)})},Iv=e=>{if(!e)return{};const t={};return e.forEach(n=>{yE(n,[],t)}),t},$v=(e,t,n)=>{const r=a=>{var c;return(c=t[a])!=null?c:[]},o=[],l=Math.max(...e.map(a=>r(a).length)),s=(a,c,u)=>ms(r(a).slice(0,u+1),r(c).slice(0,u+1)),i=(a,c)=>!!(n!=null&&n.left&&n.left.includes(a)&&!n.left.includes(c)||n!=null&&n.right&&!n.right.includes(a)&&n.right.includes(c));for(let a=0;a<l;a+=1){const c=e.reduce((u,d)=>{var h;const g=(h=r(d)[a])!=null?h:null;if(u.length===0)return[{columnFields:[d],groupId:g}];const m=u[u.length-1],x=m.columnFields[m.columnFields.length-1];return m.groupId!==g||!s(x,d,a)||i(x,d)?[...u,{columnFields:[d],groupId:g}]:[...u.slice(0,u.length-1),{columnFields:[...m.columnFields,d],groupId:g}]},[]);o.push(c)}return o},Ate=["groupId","children"],Tx=e=>{let t={};return e.forEach(n=>{if($$(n))return;const{groupId:r,children:o}=n,l=W(n,Ate);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const s=v({},l,{groupId:r}),i=Tx(o);if(i[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=v({},t,i,{[r]:s})}),v({},t)},Lte=(e,t,n)=>{var r,o,l,s;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const i=zo(n),a=Ih(n),c=Tx((o=t.columnGroupingModel)!=null?o:[]),u=Iv((l=t.columnGroupingModel)!=null?l:[]),d=$v(i,u,(s=n.current.state.pinnedColumns)!=null?s:{}),h=a.length===0?0:Math.max(...a.map(g=>{var m,x;return(m=(x=u[g])==null?void 0:x.length)!=null?m:0}));return v({},e,{columnGrouping:{lookup:c,unwrappedGroupingModel:u,headerStructure:d,maxDepth:h}})},Nte=(e,t)=>{var n;const r=f.useCallback(a=>{var c;return(c=lq(e)[a])!=null?c:[]},[e]),o=f.useCallback(()=>v$(e),[e]);Ue(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const s=f.useCallback(()=>{var a;const c=Iv((a=t.columnGroupingModel)!=null?a:[]);e.current.setState(u=>{var d,h,g;const m=(d=(h=u.columns)==null?void 0:h.orderedFields)!=null?d:[],x=(g=u.pinnedColumns)!=null?g:{},w=$v(m,c,x);return v({},u,{columnGrouping:v({},u.columnGrouping,{headerStructure:w})})})},[e,t.columnGroupingModel]),i=f.useCallback(a=>{var c,u,d,h;if(!((c=t.experimentalFeatures)!=null&&c.columnGrouping))return;const g=(u=(d=(h=e.current).getPinnedColumns)==null?void 0:d.call(h))!=null?u:{},m=zo(e),x=Ih(e),w=Tx(a??[]),b=Iv(a??[]),y=$v(m,b,g),C=x.length===0?0:Math.max(...x.map(S=>{var I,P;return(I=(P=b[S])==null?void 0:P.length)!=null?I:0}));e.current.setState(S=>v({},S,{columnGrouping:{lookup:w,unwrappedGroupingModel:b,headerStructure:y,maxDepth:C}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);Te(e,"columnIndexChange",s),Te(e,"columnsChange",()=>{i(t.columnGroupingModel)}),Te(e,"columnVisibilityModelChange",()=>{i(t.columnGroupingModel)}),f.useEffect(()=>{i(t.columnGroupingModel)},[i,t.columnGroupingModel])},Hte=(e,t)=>{const n=EJ(e,t);return Uee(n,t),Nee(n),An(Hee,n,t),An(eee,n,t),An(Fee,n,t),An(Oee,n,t),An(yee,n,t),An(Wee,n,t),An(wee,n,t),An(hee,n,t),An(oee,n,t),An(cee,n,t),An(_te,n,t),An(YJ,n,t),An(Lte,n,t),An(BX,n,t),Cee(n,t),zee(n,t),tee(n,t),jee(n,t),Hq(n,t),Dte(n),Nte(n,t),_ee(n,t),xee(n,t),See(n,t),vee(n,t),Gee(n,t),lee(n,t),uee(n,t),Fte(n,t),Kee(n,t),XJ(n),aee(n,t),pee(n,t),qJ(n,t),Xee(n,t),qee(n,t),jte(n),VX(n,t),n},zte=e=>{const{classes:t}=e;return ae({root:["virtualScroller"]},qe,t)},Bte=Zt("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),Vte=f.forwardRef(function(t,n){const r=Ee(),o=zte(r);return p.jsx(Bte,v({ref:n},t,{className:ee(o.root,t.className),ownerState:r}))}),Ute=(e,t)=>{const{classes:n}=e;return ae({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},qe,n)},Wte=Zt("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),Gte=f.forwardRef(function(t,n){var r;const o=Ee(),l=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",s=Ute(o,l);return p.jsx(Wte,v({ref:n},t,{ownerState:o,className:ee(s.root,t.className)}))}),Kte=["className"],qte=e=>{const{classes:t}=e;return ae({root:["virtualScrollerRenderZone"]},qe,t)},Yte=Zt("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),Xte=f.forwardRef(function(t,n){const{className:r}=t,o=W(t,Kte),l=Ee(),s=qte(l);return p.jsx(Yte,v({ref:n,className:ee(s.root,r),ownerState:l},o))}),Qte=["className"],Zte=f.forwardRef(function(t,n){const{className:r}=t,o=W(t,Qte),{getRootProps:l,getContentProps:s,getRenderZoneProps:i,getRows:a}=tte({ref:n});return p.jsxs(Vte,v({className:r},l(o),{children:[p.jsx(_q,{}),p.jsx(Gte,v({},s(),{children:p.jsx(Xte,v({},i(),{children:a()}))}))]}))}),xE=f.forwardRef(function(t,n){const r=Ote(t),o=Hte(r.apiRef,r);return p.jsx(gJ,{privateApiRef:o,props:r,children:p.jsxs(LY,v({className:r.className,style:r.style,sx:r.sx,ref:n},r.forwardedProps,{children:[p.jsx(HZ,{}),p.jsx(Pq,{VirtualScrollerComponent:Zte}),p.jsx(kq,{})]}))})}),Jte=f.memo(xE);Dh.filterDebounceMs;Dh.filterDebounceMs;xE.propTypes={apiRef:B.shape({current:B.object.isRequired}),"aria-label":B.string,"aria-labelledby":B.string,autoHeight:B.bool,autoPageSize:B.bool,cellModesModel:B.object,checkboxSelection:B.bool,classes:B.object,clipboardCopyCellDelimiter:B.string,columnBuffer:B.number,columnGroupingModel:B.arrayOf(B.object),columnHeaderHeight:B.number,columns:lF(B.array.isRequired),columnThreshold:B.number,columnVisibilityModel:B.object,components:B.object,componentsProps:B.object,density:B.oneOf(["comfortable","compact","standard"]),disableColumnFilter:B.bool,disableColumnMenu:B.bool,disableColumnSelector:B.bool,disableDensitySelector:B.bool,disableEval:B.bool,disableRowSelectionOnClick:B.bool,disableVirtualization:B.bool,editMode:B.oneOf(["cell","row"]),experimentalFeatures:B.shape({ariaV7:B.bool,columnGrouping:B.bool,warnIfFocusStateIsNotSynced:B.bool}),filterDebounceMs:B.number,filterMode:B.oneOf(["client","server"]),filterModel:B.shape({items:B.arrayOf(B.shape({field:B.string.isRequired,id:B.oneOfType([B.number,B.string]),operator:B.string.isRequired,value:B.any})).isRequired,logicOperator:B.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:B.bool,quickFilterLogicOperator:B.oneOf(["and","or"]),quickFilterValues:B.array}),forwardedProps:B.object,getCellClassName:B.func,getDetailPanelContent:B.func,getEstimatedRowHeight:B.func,getRowClassName:B.func,getRowHeight:B.func,getRowId:B.func,getRowSpacing:B.func,hideFooter:B.bool,hideFooterPagination:B.bool,hideFooterSelectedRowCount:B.bool,ignoreDiacritics:B.bool,initialState:B.object,isCellEditable:B.func,isRowSelectable:B.func,keepNonExistentRowsSelected:B.bool,loading:B.bool,localeText:B.object,logger:B.shape({debug:B.func.isRequired,error:B.func.isRequired,info:B.func.isRequired,warn:B.func.isRequired}),logLevel:B.oneOf(["debug","error","info","warn",!1]),nonce:B.string,onCellClick:B.func,onCellDoubleClick:B.func,onCellEditStart:B.func,onCellEditStop:B.func,onCellKeyDown:B.func,onCellModesModelChange:B.func,onClipboardCopy:B.func,onColumnHeaderClick:B.func,onColumnHeaderDoubleClick:B.func,onColumnHeaderEnter:B.func,onColumnHeaderLeave:B.func,onColumnHeaderOut:B.func,onColumnHeaderOver:B.func,onColumnOrderChange:B.func,onColumnVisibilityModelChange:B.func,onFilterModelChange:B.func,onMenuClose:B.func,onMenuOpen:B.func,onPaginationModelChange:B.func,onPreferencePanelClose:B.func,onPreferencePanelOpen:B.func,onProcessRowUpdateError:B.func,onResize:B.func,onRowClick:B.func,onRowDoubleClick:B.func,onRowEditCommit:B.func,onRowEditStart:B.func,onRowEditStop:B.func,onRowModesModelChange:B.func,onRowSelectionModelChange:B.func,onSortModelChange:B.func,onStateChange:B.func,pageSizeOptions:B.arrayOf(B.oneOfType([B.number,B.shape({label:B.string.isRequired,value:B.number.isRequired})]).isRequired),pagination:e=>e.pagination===!1?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join(`
`)):null,paginationMode:B.oneOf(["client","server"]),paginationModel:B.shape({page:B.number.isRequired,pageSize:B.number.isRequired}),processRowUpdate:B.func,rowBuffer:B.number,rowCount:B.number,rowHeight:B.number,rowModesModel:B.object,rowPositionsDebounceMs:B.number,rows:B.arrayOf(B.object).isRequired,rowSelection:B.bool,rowSelectionModel:B.oneOfType([B.arrayOf(B.oneOfType([B.number,B.string]).isRequired),B.number,B.string]),rowSpacingType:B.oneOf(["border","margin"]),rowThreshold:B.number,scrollbarSize:B.number,showCellVerticalBorder:B.bool,showColumnVerticalBorder:B.bool,slotProps:B.object,slots:B.object,sortingMode:B.oneOf(["client","server"]),sortingOrder:B.arrayOf(B.oneOf(["asc","desc"])),sortModel:B.arrayOf(B.shape({field:B.string.isRequired,sort:B.oneOf(["asc","desc"])})),sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object]),unstable_ignoreValueFormatterDuringExport:B.oneOfType([B.shape({clipboardExport:B.bool,csvExport:B.bool}),B.bool])};function so(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Rs(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const bE=6048e5,ene=864e5;let tne={};function Ah(){return tne}function fu(e,t){var i,a,c,u;const n=Ah(),r=(t==null?void 0:t.weekStartsOn)??((a=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:a.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,o=so(e),l=o.getDay(),s=(l<r?7:0)+l-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function op(e){return fu(e,{weekStartsOn:1})}function CE(e){const t=so(e),n=t.getFullYear(),r=Rs(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=op(r),l=Rs(e,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const s=op(l);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function vS(e){const t=so(e);return t.setHours(0,0,0,0),t}function yS(e){const t=so(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function nne(e,t){const n=vS(e),r=vS(t),o=+n-yS(n),l=+r-yS(r);return Math.round((o-l)/ene)}function rne(e){const t=CE(e),n=Rs(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),op(n)}function one(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function lne(e){if(!one(e)&&typeof e!="number")return!1;const t=so(e);return!isNaN(Number(t))}function sne(e){const t=so(e),n=Rs(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const ine={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ane=(e,t,n)=>{let r;const o=ine[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Yg(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const cne={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},une={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dne={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fne={date:Yg({formats:cne,defaultWidth:"full"}),time:Yg({formats:une,defaultWidth:"full"}),dateTime:Yg({formats:dne,defaultWidth:"full"})},pne={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hne=(e,t,n,r)=>pne[e];function Ga(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=n!=null&&n.width?String(n.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[i]||e.values[s]}const l=e.argumentCallback?e.argumentCallback(t):t;return o[l]}}const gne={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},mne={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vne={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yne={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},xne={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},bne={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Cne=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},wne={ordinalNumber:Cne,era:Ga({values:gne,defaultWidth:"wide"}),quarter:Ga({values:mne,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ga({values:vne,defaultWidth:"wide"}),day:Ga({values:yne,defaultWidth:"wide"}),dayPeriod:Ga({values:xne,defaultWidth:"wide",formattingValues:bne,defaultFormattingWidth:"wide"})};function Ka(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(o);if(!l)return null;const s=l[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(i)?Pne(i,d=>d.test(s)):Sne(i,d=>d.test(s));let c;c=e.valueCallback?e.valueCallback(a):a,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(s.length);return{value:c,rest:u}}}function Sne(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Pne(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function kne(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],l=t.match(e.parsePattern);if(!l)return null;let s=e.valueCallback?e.valueCallback(l[0]):l[0];s=n.valueCallback?n.valueCallback(s):s;const i=t.slice(o.length);return{value:s,rest:i}}}const Mne=/^(\d+)(th|st|nd|rd)?/i,Ine=/\d+/i,$ne={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ene={any:[/^b/i,/^(a|c)/i]},Tne={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Rne={any:[/1/i,/2/i,/3/i,/4/i]},One={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},_ne={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Fne={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},jne={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Dne={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ane={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Lne={ordinalNumber:kne({matchPattern:Mne,parsePattern:Ine,valueCallback:e=>parseInt(e,10)}),era:Ka({matchPatterns:$ne,defaultMatchWidth:"wide",parsePatterns:Ene,defaultParseWidth:"any"}),quarter:Ka({matchPatterns:Tne,defaultMatchWidth:"wide",parsePatterns:Rne,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ka({matchPatterns:One,defaultMatchWidth:"wide",parsePatterns:_ne,defaultParseWidth:"any"}),day:Ka({matchPatterns:Fne,defaultMatchWidth:"wide",parsePatterns:jne,defaultParseWidth:"any"}),dayPeriod:Ka({matchPatterns:Dne,defaultMatchWidth:"any",parsePatterns:Ane,defaultParseWidth:"any"})},Nne={code:"en-US",formatDistance:ane,formatLong:fne,formatRelative:hne,localize:wne,match:Lne,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Hne(e){const t=so(e);return nne(t,sne(t))+1}function zne(e){const t=so(e),n=+op(t)-+rne(t);return Math.round(n/bE)+1}function wE(e,t){var u,d,h,g;const n=so(e),r=n.getFullYear(),o=Ah(),l=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((g=(h=o.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,s=Rs(e,0);s.setFullYear(r+1,0,l),s.setHours(0,0,0,0);const i=fu(s,t),a=Rs(e,0);a.setFullYear(r,0,l),a.setHours(0,0,0,0);const c=fu(a,t);return n.getTime()>=i.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function Bne(e,t){var i,a,c,u;const n=Ah(),r=(t==null?void 0:t.firstWeekContainsDate)??((a=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:a.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,o=wE(e,t),l=Rs(e,0);return l.setFullYear(o,0,r),l.setHours(0,0,0,0),fu(l,t)}function Vne(e,t){const n=so(e),r=+fu(n,t)-+Bne(n,t);return Math.round(r/bE)+1}function at(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const il={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return at(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):at(n+1,2)},d(e,t){return at(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return at(e.getHours()%12||12,t.length)},H(e,t){return at(e.getHours(),t.length)},m(e,t){return at(e.getMinutes(),t.length)},s(e,t){return at(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return at(o,t.length)}},oi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},xS={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return il.y(e,t)},Y:function(e,t,n,r){const o=wE(e,r),l=o>0?o:1-o;if(t==="YY"){const s=l%100;return at(s,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):at(l,t.length)},R:function(e,t){const n=CE(e);return at(n,t.length)},u:function(e,t){const n=e.getFullYear();return at(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return at(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return at(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return il.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return at(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Vne(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):at(o,t.length)},I:function(e,t,n){const r=zne(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):at(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):il.d(e,t)},D:function(e,t,n){const r=Hne(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):at(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),l=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return at(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),l=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return at(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return at(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=oi.noon:r===0?o=oi.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=oi.evening:r>=12?o=oi.afternoon:r>=4?o=oi.morning:o=oi.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return il.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):il.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):at(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):at(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):il.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):il.s(e,t)},S:function(e,t){return il.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return CS(r);case"XXXX":case"XX":return Jl(r);case"XXXXX":case"XXX":default:return Jl(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return CS(r);case"xxxx":case"xx":return Jl(r);case"xxxxx":case"xxx":default:return Jl(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+bS(r,":");case"OOOO":default:return"GMT"+Jl(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+bS(r,":");case"zzzz":default:return"GMT"+Jl(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return at(r,t.length)},T:function(e,t,n){const r=e.getTime();return at(r,t.length)}};function bS(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),l=r%60;return l===0?n+String(o):n+String(o)+t+at(l,2)}function CS(e,t){return e%60===0?(e>0?"-":"+")+at(Math.abs(e)/60,2):Jl(e,t)}function Jl(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=at(Math.trunc(r/60),2),l=at(r%60,2);return n+o+t+l}const wS=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},SE=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Une=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return wS(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",wS(r,t)).replace("{{time}}",SE(o,t))},Wne={p:SE,P:Une},Gne=/^D+$/,Kne=/^Y+$/,qne=["D","DD","YY","YYYY"];function Yne(e){return Gne.test(e)}function Xne(e){return Kne.test(e)}function Qne(e,t,n){const r=Zne(e,t,n);if(console.warn(r),qne.includes(e))throw new RangeError(r)}function Zne(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Jne=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ere=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tre=/^'([^]*?)'?$/,nre=/''/g,rre=/[a-zA-Z]/;function ore(e,t,n){var u,d,h,g,m,x,w,b;const r=Ah(),o=(n==null?void 0:n.locale)??r.locale??Nne,l=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((x=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:x.weekStartsOn)??r.weekStartsOn??((b=(w=r.locale)==null?void 0:w.options)==null?void 0:b.weekStartsOn)??0,i=so(e);if(!lne(i))throw new RangeError("Invalid time value");let a=t.match(ere).map(y=>{const C=y[0];if(C==="p"||C==="P"){const S=Wne[C];return S(y,o.formatLong)}return y}).join("").match(Jne).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const C=y[0];if(C==="'")return{isToken:!1,value:lre(y)};if(xS[C])return{isToken:!0,value:y};if(C.match(rre))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:y}});o.localize.preprocessor&&(a=o.localize.preprocessor(i,a));const c={firstWeekContainsDate:l,weekStartsOn:s,locale:o};return a.map(y=>{if(!y.isToken)return y.value;const C=y.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Xne(C)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Yne(C))&&Qne(C,t,String(e));const S=xS[C[0]];return S(i,C,o.localize,c)}).join("")}function lre(e){const t=e.match(tre);return t?t[1].replace(nre,"'"):e}function sre(){const[e,t]=f.useState(null),[n,r]=f.useState("all");f.useEffect(()=>{(async()=>{try{const i=await fetch(localStorage.getItem("host")+"/database/"+n,{method:"GET",headers:{"Content-Type":"application/json",token:localStorage.getItem("token")||""}});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const a=await i.json();a.forEach((c,u)=>{c.id=u}),t(a)}catch(i){console.error("Ein Fehler ist aufgetreten beim Abrufen der Daten:",i)}})()},[n]);const o=async()=>{try{const s=await fetch(localStorage.getItem("host")+"/database/"+n,{method:"GET",headers:{"Content-Type":"application/json",token:localStorage.getItem("token")||""}});if(!s.ok)throw new Error(`HTTP error! status: ${s.status}`);const i=await s.json();i.forEach((a,c)=>{a.id=c}),t(i)}catch(s){console.error("Ein Fehler ist aufgetreten beim Abrufen der Daten:",s)}},l=[{field:"IP",headerName:"IP",width:150,editable:!1},{field:"Service",headerName:"Service",width:200,editable:!1},{field:"ServiceExists",headerName:"Exists",type:"boolean",width:100,editable:!1},{field:"Routed",headerName:"Routed",type:"boolean",width:100,editable:!1},{field:"Method",headerName:"Method",width:100,editable:!1},{field:"TimePre",headerName:"TimePre",width:100,editable:!1,valueFormatter:s=>(s.value/1e6).toFixed(2)},{field:"TimePost",headerName:"TimePost",width:100,editable:!1},{field:"TimeFull",headerName:"TimeFull",width:100,editable:!1},{field:"RequestSize",headerName:"Size",width:100,editable:!1},{field:"StatusCode",headerName:"ECode",width:100,editable:!1},{field:"Created",headerName:"Created",type:"dateTime",width:200,editable:!1,valueFormatter:s=>ore(new Date(s.value),"dd.MM.yyyy HH:mm:ss")},{field:"Message",headerName:"Message",hide:!0,editable:!1},{field:"EndPoint",headerName:"EndPoint",width:200,hide:!0,editable:!1},{field:"Host",headerName:"Host",width:200,hide:!0,editable:!1},{field:"HeadersCount",headerName:"Headers",width:100,hide:!0,editable:!1}];return p.jsxs(Vi,{title:"Home",children:[p.jsxs(lr,{sx:{display:"flex",flexDirection:"row",gap:2,flexWrap:"wrap",alignItems:"center",mb:2},children:[p.jsxs(Zi,{sx:{minWidth:120},children:[p.jsx(Ji,{id:"span-select-label",children:"Zeitspanne"}),p.jsxs(Is,{labelId:"span-select-label",id:"span-select",value:n,label:"Zeitspanne",onChange:s=>r(s.target.value),children:[p.jsx(Bt,{value:"all",children:"Alle"}),p.jsx(Bt,{value:"day",children:"Tag"}),p.jsx(Bt,{value:"hour",children:"Stunde"})]})]}),p.jsx(Rt,{variant:"contained",onClick:o,children:"Fetch"})]}),e&&p.jsx(lr,{sx:{height:"80%",width:"100%"},children:p.jsx(Jte,{columnVisibilityModel:{id:!1,HeadersCount:!1,Message:!1,EndPoint:!1,Host:!1},rows:e,columns:l,initialState:{pagination:{paginationModel:{pageSize:50}}},pageSizeOptions:[50],disableRowSelectionOnClick:!0})}),p.jsx(Ce,{}),p.jsx(Ce,{})]})}function ire(){return localStorage.getItem("token")?p.jsx(p.Fragment,{children:p.jsxs("div",{className:"wrapper",children:[p.jsx("div",{className:"sidebar",children:p.jsx(vK,{})}),p.jsx("div",{className:"content-wrapper",children:p.jsxs(LO,{children:[p.jsx(Yl,{path:"/web/dashboard",element:p.jsx(Ow,{})}),p.jsx(Yl,{path:"/web/gateway",element:p.jsx(TK,{})}),p.jsx(Yl,{path:"/web/dashboard",element:p.jsx(Ow,{})}),p.jsx(Yl,{path:"/web/endpoints",element:p.jsx(UK,{})}),p.jsx(Yl,{path:"/web/logs",element:p.jsx(sre,{})}),p.jsx(Yl,{path:"*",element:p.jsx(DO,{to:"/web/dashboard",replace:!0})})]})}),p.jsx(ZI,{})]})}):p.jsx(ZG,{})}function are(){return p.jsx("div",{className:"wrapper",children:p.jsx(zO,{children:p.jsx(ire,{})})})}Xg.createRoot(document.getElementById("root")).render(p.jsx(Yr.StrictMode,{children:p.jsx(are,{})}));
|