promptfoo 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -40
- package/dist/assertions.d.ts +2 -2
- package/dist/assertions.d.ts.map +1 -1
- package/dist/assertions.js +186 -44
- package/dist/assertions.js.map +1 -1
- package/dist/cache.js +9 -9
- package/dist/cache.js.map +1 -1
- package/dist/evaluator.d.ts +1 -1
- package/dist/evaluator.d.ts.map +1 -1
- package/dist/evaluator.js +30 -23
- package/dist/evaluator.js.map +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -14
- package/dist/index.js.map +1 -1
- package/dist/main.js +49 -44
- package/dist/main.js.map +1 -1
- package/dist/providers/localai.js +11 -11
- package/dist/providers/localai.js.map +1 -1
- package/dist/providers/openai.d.ts.map +1 -1
- package/dist/providers/openai.js +30 -21
- package/dist/providers/openai.js.map +1 -1
- package/dist/providers.d.ts +3 -3
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +15 -15
- package/dist/providers.js.map +1 -1
- package/dist/types.d.ts +7 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/util.d.ts +4 -4
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +49 -18
- package/dist/util.js.map +1 -1
- package/dist/web/client/assets/index-15dfcd18.js +172 -0
- package/dist/web/client/assets/index-87905193.css +1 -0
- package/dist/web/client/index.html +2 -2
- package/dist/web/server.js +9 -9
- package/dist/web/server.js.map +1 -1
- package/package.json +3 -1
- package/src/assertions.ts +249 -38
- package/src/cache.ts +2 -2
- package/src/evaluator.ts +25 -18
- package/src/index.ts +13 -8
- package/src/main.ts +28 -15
- package/src/providers/localai.ts +3 -3
- package/src/providers/openai.ts +16 -8
- package/src/providers.ts +3 -3
- package/src/types.ts +24 -3
- package/src/util.ts +48 -17
- package/src/web/client/package-lock.json +5729 -0
- package/src/web/client/src/ResultsTable.css +35 -4
- package/src/web/client/src/ResultsTable.tsx +150 -70
- package/src/web/client/src/ResultsView.tsx +83 -18
- package/src/web/client/src/index.css +6 -0
- package/src/web/client/src/types.ts +2 -0
- package/src/web/server.ts +3 -3
- package/dist/web/client/assets/index-207192fc.css +0 -1
- package/dist/web/client/assets/index-8751749f.js +0 -172
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
function x1(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Vd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function w1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var lg={exports:{}},Sa={},ag={exports:{}},me={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Cs=Symbol.for("react.element"),b1=Symbol.for("react.portal"),C1=Symbol.for("react.fragment"),k1=Symbol.for("react.strict_mode"),R1=Symbol.for("react.profiler"),E1=Symbol.for("react.provider"),$1=Symbol.for("react.context"),P1=Symbol.for("react.forward_ref"),_1=Symbol.for("react.suspense"),T1=Symbol.for("react.memo"),O1=Symbol.for("react.lazy"),$p=Symbol.iterator;function M1(e){return e===null||typeof e!="object"?null:(e=$p&&e[$p]||e["@@iterator"],typeof e=="function"?e:null)}var ug={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},cg=Object.assign,dg={};function Jo(e,t,n){this.props=e,this.context=t,this.refs=dg,this.updater=n||ug}Jo.prototype.isReactComponent={};Jo.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")};Jo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function fg(){}fg.prototype=Jo.prototype;function Hd(e,t,n){this.props=e,this.context=t,this.refs=dg,this.updater=n||ug}var Ud=Hd.prototype=new fg;Ud.constructor=Hd;cg(Ud,Jo.prototype);Ud.isPureReactComponent=!0;var Pp=Array.isArray,pg=Object.prototype.hasOwnProperty,Wd={current:null},hg={key:!0,ref:!0,__self:!0,__source:!0};function mg(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)pg.call(t,r)&&!hg.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Cs,type:e,key:i,ref:s,props:o,_owner:Wd.current}}function I1(e,t){return{$$typeof:Cs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Gd(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cs}function A1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _p=/\/+/g;function Mu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?A1(""+e.key):t.toString(36)}function vl(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Cs:case b1:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Mu(s,0):r,Pp(o)?(n="",e!=null&&(n=e.replace(_p,"$&/")+"/"),vl(o,t,n,"",function(u){return u})):o!=null&&(Gd(o)&&(o=I1(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(_p,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Pp(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+Mu(i,l);s+=vl(i,t,n,a,o)}else if(a=M1(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+Mu(i,l++),s+=vl(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Ds(e,t,n){if(e==null)return e;var r=[],o=0;return vl(e,r,"","",function(i){return t.call(n,i,o++)}),r}function L1(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 bt={current:null},yl={transition:null},F1={ReactCurrentDispatcher:bt,ReactCurrentBatchConfig:yl,ReactCurrentOwner:Wd};me.Children={map:Ds,forEach:function(e,t,n){Ds(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ds(e,function(){t++}),t},toArray:function(e){return Ds(e,function(t){return t})||[]},only:function(e){if(!Gd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};me.Component=Jo;me.Fragment=C1;me.Profiler=R1;me.PureComponent=Hd;me.StrictMode=k1;me.Suspense=_1;me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F1;me.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=cg({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Wd.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)pg.call(t,a)&&!hg.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Cs,type:e.type,key:o,ref:i,props:r,_owner:s}};me.createContext=function(e){return e={$$typeof:$1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:E1,_context:e},e.Consumer=e};me.createElement=mg;me.createFactory=function(e){var t=mg.bind(null,e);return t.type=e,t};me.createRef=function(){return{current:null}};me.forwardRef=function(e){return{$$typeof:P1,render:e}};me.isValidElement=Gd;me.lazy=function(e){return{$$typeof:O1,_payload:{_status:-1,_result:e},_init:L1}};me.memo=function(e,t){return{$$typeof:T1,type:e,compare:t===void 0?null:t}};me.startTransition=function(e){var t=yl.transition;yl.transition={};try{e()}finally{yl.transition=t}};me.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};me.useCallback=function(e,t){return bt.current.useCallback(e,t)};me.useContext=function(e){return bt.current.useContext(e)};me.useDebugValue=function(){};me.useDeferredValue=function(e){return bt.current.useDeferredValue(e)};me.useEffect=function(e,t){return bt.current.useEffect(e,t)};me.useId=function(){return bt.current.useId()};me.useImperativeHandle=function(e,t,n){return bt.current.useImperativeHandle(e,t,n)};me.useInsertionEffect=function(e,t){return bt.current.useInsertionEffect(e,t)};me.useLayoutEffect=function(e,t){return bt.current.useLayoutEffect(e,t)};me.useMemo=function(e,t){return bt.current.useMemo(e,t)};me.useReducer=function(e,t,n){return bt.current.useReducer(e,t,n)};me.useRef=function(e){return bt.current.useRef(e)};me.useState=function(e){return bt.current.useState(e)};me.useSyncExternalStore=function(e,t,n){return bt.current.useSyncExternalStore(e,t,n)};me.useTransition=function(){return bt.current.useTransition()};me.version="18.2.0";ag.exports=me;var x=ag.exports;const hn=Vd(x),Nl=x1({__proto__:null,default:hn},[x]);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var N1=x,z1=Symbol.for("react.element"),D1=Symbol.for("react.fragment"),B1=Object.prototype.hasOwnProperty,j1=N1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,V1={key:!0,ref:!0,__self:!0,__source:!0};function gg(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)B1.call(t,r)&&!V1.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:z1,type:e,key:i,ref:s,props:o,_owner:j1.current}}Sa.Fragment=D1;Sa.jsx=gg;Sa.jsxs=gg;lg.exports=Sa;var E=lg.exports,Rc={},vg={exports:{}},Ht={},yg={exports:{}},Sg={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(_,L){var A=_.length;_.push(L);e:for(;0<A;){var K=A-1>>>1,W=_[K];if(0<o(W,L))_[K]=L,_[A]=W,A=K;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var L=_[0],A=_.pop();if(A!==L){_[0]=A;e:for(var K=0,W=_.length,ne=W>>>1;K<ne;){var re=2*(K+1)-1,ee=_[re],ie=re+1,Ce=_[ie];if(0>o(ee,A))ie<W&&0>o(Ce,ee)?(_[K]=Ce,_[ie]=A,K=ie):(_[K]=ee,_[re]=A,K=re);else if(ie<W&&0>o(Ce,A))_[K]=Ce,_[ie]=A,K=ie;else break e}}return L}function o(_,L){var A=_.sortIndex-L.sortIndex;return A!==0?A:_.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,d=null,f=3,m=!1,S=!1,g=!1,R=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(_){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=_)r(u),L.sortIndex=L.expirationTime,t(a,L);else break;L=n(u)}}function y(_){if(g=!1,p(_),!S)if(n(a)!==null)S=!0,D(b);else{var L=n(u);L!==null&&j(y,L.startTime-_)}}function b(_,L){S=!1,g&&(g=!1,v($),$=-1),m=!0;var A=f;try{for(p(L),d=n(a);d!==null&&(!(d.expirationTime>L)||_&&!O());){var K=d.callback;if(typeof K=="function"){d.callback=null,f=d.priorityLevel;var W=K(d.expirationTime<=L);L=e.unstable_now(),typeof W=="function"?d.callback=W:d===n(a)&&r(a),p(L)}else r(a);d=n(a)}if(d!==null)var ne=!0;else{var re=n(u);re!==null&&j(y,re.startTime-L),ne=!1}return ne}finally{d=null,f=A,m=!1}}var k=!1,C=null,$=-1,T=5,P=-1;function O(){return!(e.unstable_now()-P<T)}function V(){if(C!==null){var _=e.unstable_now();P=_;var L=!0;try{L=C(!0,_)}finally{L?z():(k=!1,C=null)}}else k=!1}var z;if(typeof h=="function")z=function(){h(V)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,I=M.port2;M.port1.onmessage=V,z=function(){I.postMessage(null)}}else z=function(){R(V,0)};function D(_){C=_,k||(k=!0,z())}function j(_,L){$=R(function(){_(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_continueExecution=function(){S||m||(S=!0,D(b))},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var A=f;f=L;try{return _()}finally{f=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,L){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var A=f;f=_;try{return L()}finally{f=A}},e.unstable_scheduleCallback=function(_,L,A){var K=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?K+A:K):A=K,_){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=A+W,_={id:c++,callback:L,priorityLevel:_,startTime:A,expirationTime:W,sortIndex:-1},A>K?(_.sortIndex=A,t(u,_),n(a)===null&&_===n(u)&&(g?(v($),$=-1):g=!0,j(y,A-K))):(_.sortIndex=W,t(a,_),S||m||(S=!0,D(b))),_},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(_){var L=f;return function(){var A=f;f=L;try{return _.apply(this,arguments)}finally{f=A}}}})(Sg);yg.exports=Sg;var H1=yg.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var xg=x,jt=H1;function F(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 wg=new Set,es={};function Qr(e,t){zo(e,t),zo(e+"Capture",t)}function zo(e,t){for(es[e]=t,e=0;e<t.length;e++)wg.add(t[e])}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ec=Object.prototype.hasOwnProperty,U1=/^[: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]*$/,Tp={},Op={};function W1(e){return Ec.call(Op,e)?!0:Ec.call(Tp,e)?!1:U1.test(e)?Op[e]=!0:(Tp[e]=!0,!1)}function G1(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 K1(e,t,n,r){if(t===null||typeof t>"u"||G1(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 Ct(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var pt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pt[e]=new Ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pt[t]=new Ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pt[e]=new Ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pt[e]=new Ct(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){pt[e]=new Ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pt[e]=new Ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pt[e]=new Ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pt[e]=new Ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pt[e]=new Ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var Kd=/[\-:]([a-z])/g;function qd(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(Kd,qd);pt[t]=new Ct(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(Kd,qd);pt[t]=new Ct(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(Kd,qd);pt[t]=new Ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pt[e]=new Ct(e,1,!1,e.toLowerCase(),null,!1,!1)});pt.xlinkHref=new Ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pt[e]=new Ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yd(e,t,n,r){var o=pt.hasOwnProperty(t)?pt[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(K1(t,n,o,r)&&(n=null),r||o===null?W1(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 Xn=xg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Bs=Symbol.for("react.element"),yo=Symbol.for("react.portal"),So=Symbol.for("react.fragment"),Xd=Symbol.for("react.strict_mode"),$c=Symbol.for("react.profiler"),bg=Symbol.for("react.provider"),Cg=Symbol.for("react.context"),Qd=Symbol.for("react.forward_ref"),Pc=Symbol.for("react.suspense"),_c=Symbol.for("react.suspense_list"),Zd=Symbol.for("react.memo"),er=Symbol.for("react.lazy"),kg=Symbol.for("react.offscreen"),Mp=Symbol.iterator;function di(e){return e===null||typeof e!="object"?null:(e=Mp&&e[Mp]||e["@@iterator"],typeof e=="function"?e:null)}var Ve=Object.assign,Iu;function Oi(e){if(Iu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Iu=t&&t[1]||""}return`
|
|
34
|
+
`+Iu+e}var Au=!1;function Lu(e,t){if(!e||Au)return"";Au=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
35
|
+
`),i=r.stack.split(`
|
|
36
|
+
`),s=o.length-1,l=i.length-1;1<=s&&0<=l&&o[s]!==i[l];)l--;for(;1<=s&&0<=l;s--,l--)if(o[s]!==i[l]){if(s!==1||l!==1)do if(s--,l--,0>l||o[s]!==i[l]){var a=`
|
|
37
|
+
`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Au=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Oi(e):""}function q1(e){switch(e.tag){case 5:return Oi(e.type);case 16:return Oi("Lazy");case 13:return Oi("Suspense");case 19:return Oi("SuspenseList");case 0:case 2:case 15:return e=Lu(e.type,!1),e;case 11:return e=Lu(e.type.render,!1),e;case 1:return e=Lu(e.type,!0),e;default:return""}}function Tc(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 So:return"Fragment";case yo:return"Portal";case $c:return"Profiler";case Xd:return"StrictMode";case Pc:return"Suspense";case _c:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Cg:return(e.displayName||"Context")+".Consumer";case bg:return(e._context.displayName||"Context")+".Provider";case Qd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zd:return t=e.displayName||null,t!==null?t:Tc(e.type)||"Memo";case er:t=e._payload,e=e._init;try{return Tc(e(t))}catch{}}return null}function Y1(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 Tc(t);case 8:return t===Xd?"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 vr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function X1(e){var t=Rg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function js(e){e._valueTracker||(e._valueTracker=X1(e))}function Eg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Rg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zl(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 Oc(e,t){var n=t.checked;return Ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ip(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vr(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 $g(e,t){t=t.checked,t!=null&&Yd(e,"checked",t,!1)}function Mc(e,t){$g(e,t);var n=vr(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")?Ic(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ic(e,t.type,vr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ap(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 Ic(e,t,n){(t!=="number"||zl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mi=Array.isArray;function To(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=""+vr(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 Ac(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(F(91));return Ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Lp(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(F(92));if(Mi(n)){if(1<n.length)throw Error(F(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:vr(n)}}function Pg(e,t){var n=vr(t.value),r=vr(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 Fp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _g(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 Lc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_g(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Vs,Tg=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(Vs=Vs||document.createElement("div"),Vs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Vs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ts(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Di={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},Q1=["Webkit","ms","Moz","O"];Object.keys(Di).forEach(function(e){Q1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Di[t]=Di[e]})});function Og(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Di.hasOwnProperty(e)&&Di[e]?(""+t).trim():t+"px"}function Mg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Og(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Z1=Ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Fc(e,t){if(t){if(Z1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function Nc(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 zc=null;function Jd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dc=null,Oo=null,Mo=null;function Np(e){if(e=Es(e)){if(typeof Dc!="function")throw Error(F(280));var t=e.stateNode;t&&(t=ka(t),Dc(e.stateNode,e.type,t))}}function Ig(e){Oo?Mo?Mo.push(e):Mo=[e]:Oo=e}function Ag(){if(Oo){var e=Oo,t=Mo;if(Mo=Oo=null,Np(e),t)for(e=0;e<t.length;e++)Np(t[e])}}function Lg(e,t){return e(t)}function Fg(){}var Fu=!1;function Ng(e,t,n){if(Fu)return e(t,n);Fu=!0;try{return Lg(e,t,n)}finally{Fu=!1,(Oo!==null||Mo!==null)&&(Fg(),Ag())}}function ns(e,t){var n=e.stateNode;if(n===null)return null;var r=ka(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(F(231,t,typeof n));return n}var Bc=!1;if(Wn)try{var fi={};Object.defineProperty(fi,"passive",{get:function(){Bc=!0}}),window.addEventListener("test",fi,fi),window.removeEventListener("test",fi,fi)}catch{Bc=!1}function J1(e,t,n,r,o,i,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Bi=!1,Dl=null,Bl=!1,jc=null,eS={onError:function(e){Bi=!0,Dl=e}};function tS(e,t,n,r,o,i,s,l,a){Bi=!1,Dl=null,J1.apply(eS,arguments)}function nS(e,t,n,r,o,i,s,l,a){if(tS.apply(this,arguments),Bi){if(Bi){var u=Dl;Bi=!1,Dl=null}else throw Error(F(198));Bl||(Bl=!0,jc=u)}}function Zr(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 zg(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 zp(e){if(Zr(e)!==e)throw Error(F(188))}function rS(e){var t=e.alternate;if(!t){if(t=Zr(e),t===null)throw Error(F(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return zp(o),e;if(i===r)return zp(o),t;i=i.sibling}throw Error(F(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(F(189))}}if(n.alternate!==r)throw Error(F(190))}if(n.tag!==3)throw Error(F(188));return n.stateNode.current===n?e:t}function Dg(e){return e=rS(e),e!==null?Bg(e):null}function Bg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Bg(e);if(t!==null)return t;e=e.sibling}return null}var jg=jt.unstable_scheduleCallback,Dp=jt.unstable_cancelCallback,oS=jt.unstable_shouldYield,iS=jt.unstable_requestPaint,Ye=jt.unstable_now,sS=jt.unstable_getCurrentPriorityLevel,ef=jt.unstable_ImmediatePriority,Vg=jt.unstable_UserBlockingPriority,jl=jt.unstable_NormalPriority,lS=jt.unstable_LowPriority,Hg=jt.unstable_IdlePriority,xa=null,_n=null;function aS(e){if(_n&&typeof _n.onCommitFiberRoot=="function")try{_n.onCommitFiberRoot(xa,e,void 0,(e.current.flags&128)===128)}catch{}}var yn=Math.clz32?Math.clz32:dS,uS=Math.log,cS=Math.LN2;function dS(e){return e>>>=0,e===0?32:31-(uS(e)/cS|0)|0}var Hs=64,Us=4194304;function Ii(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 Vl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Ii(l):(i&=s,i!==0&&(r=Ii(i)))}else s=n&~o,s!==0?r=Ii(s):i!==0&&(r=Ii(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-yn(t),o=1<<n,r|=e[n],t&=~o;return r}function fS(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 pS(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-yn(i),l=1<<s,a=o[s];a===-1?(!(l&n)||l&r)&&(o[s]=fS(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function Vc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ug(){var e=Hs;return Hs<<=1,!(Hs&4194240)&&(Hs=64),e}function Nu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ks(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yn(t),e[t]=n}function hS(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-yn(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function tf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-yn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Ee=0;function Wg(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Gg,nf,Kg,qg,Yg,Hc=!1,Ws=[],ar=null,ur=null,cr=null,rs=new Map,os=new Map,nr=[],mS="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 Bp(e,t){switch(e){case"focusin":case"focusout":ar=null;break;case"dragenter":case"dragleave":ur=null;break;case"mouseover":case"mouseout":cr=null;break;case"pointerover":case"pointerout":rs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":os.delete(t.pointerId)}}function pi(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Es(t),t!==null&&nf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function gS(e,t,n,r,o){switch(t){case"focusin":return ar=pi(ar,e,t,n,r,o),!0;case"dragenter":return ur=pi(ur,e,t,n,r,o),!0;case"mouseover":return cr=pi(cr,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return rs.set(i,pi(rs.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,os.set(i,pi(os.get(i)||null,e,t,n,r,o)),!0}return!1}function Xg(e){var t=Ar(e.target);if(t!==null){var n=Zr(t);if(n!==null){if(t=n.tag,t===13){if(t=zg(n),t!==null){e.blockedOn=t,Yg(e.priority,function(){Kg(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 Sl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Uc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);zc=r,n.target.dispatchEvent(r),zc=null}else return t=Es(n),t!==null&&nf(t),e.blockedOn=n,!1;t.shift()}return!0}function jp(e,t,n){Sl(e)&&n.delete(t)}function vS(){Hc=!1,ar!==null&&Sl(ar)&&(ar=null),ur!==null&&Sl(ur)&&(ur=null),cr!==null&&Sl(cr)&&(cr=null),rs.forEach(jp),os.forEach(jp)}function hi(e,t){e.blockedOn===t&&(e.blockedOn=null,Hc||(Hc=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,vS)))}function is(e){function t(o){return hi(o,e)}if(0<Ws.length){hi(Ws[0],e);for(var n=1;n<Ws.length;n++){var r=Ws[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ar!==null&&hi(ar,e),ur!==null&&hi(ur,e),cr!==null&&hi(cr,e),rs.forEach(t),os.forEach(t),n=0;n<nr.length;n++)r=nr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<nr.length&&(n=nr[0],n.blockedOn===null);)Xg(n),n.blockedOn===null&&nr.shift()}var Io=Xn.ReactCurrentBatchConfig,Hl=!0;function yS(e,t,n,r){var o=Ee,i=Io.transition;Io.transition=null;try{Ee=1,rf(e,t,n,r)}finally{Ee=o,Io.transition=i}}function SS(e,t,n,r){var o=Ee,i=Io.transition;Io.transition=null;try{Ee=4,rf(e,t,n,r)}finally{Ee=o,Io.transition=i}}function rf(e,t,n,r){if(Hl){var o=Uc(e,t,n,r);if(o===null)Ku(e,t,r,Ul,n),Bp(e,r);else if(gS(o,e,t,n,r))r.stopPropagation();else if(Bp(e,r),t&4&&-1<mS.indexOf(e)){for(;o!==null;){var i=Es(o);if(i!==null&&Gg(i),i=Uc(e,t,n,r),i===null&&Ku(e,t,r,Ul,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Ku(e,t,r,null,n)}}var Ul=null;function Uc(e,t,n,r){if(Ul=null,e=Jd(r),e=Ar(e),e!==null)if(t=Zr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=zg(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 Ul=e,null}function Qg(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(sS()){case ef:return 1;case Vg:return 4;case jl:case lS:return 16;case Hg:return 536870912;default:return 16}default:return 16}}var or=null,of=null,xl=null;function Zg(){if(xl)return xl;var e,t=of,n=t.length,r,o="value"in or?or.value:or.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return xl=o.slice(e,1<r?1-r:void 0)}function wl(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 Gs(){return!0}function Vp(){return!1}function Ut(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Gs:Vp,this.isPropagationStopped=Vp,this}return Ve(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Gs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gs)},persist:function(){},isPersistent:Gs}),t}var ei={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sf=Ut(ei),Rs=Ve({},ei,{view:0,detail:0}),xS=Ut(Rs),zu,Du,mi,wa=Ve({},Rs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lf,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!==mi&&(mi&&e.type==="mousemove"?(zu=e.screenX-mi.screenX,Du=e.screenY-mi.screenY):Du=zu=0,mi=e),zu)},movementY:function(e){return"movementY"in e?e.movementY:Du}}),Hp=Ut(wa),wS=Ve({},wa,{dataTransfer:0}),bS=Ut(wS),CS=Ve({},Rs,{relatedTarget:0}),Bu=Ut(CS),kS=Ve({},ei,{animationName:0,elapsedTime:0,pseudoElement:0}),RS=Ut(kS),ES=Ve({},ei,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$S=Ut(ES),PS=Ve({},ei,{data:0}),Up=Ut(PS),_S={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TS={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"},OS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function MS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=OS[e])?!!t[e]:!1}function lf(){return MS}var IS=Ve({},Rs,{key:function(e){if(e.key){var t=_S[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?TS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lf,charCode:function(e){return e.type==="keypress"?wl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),AS=Ut(IS),LS=Ve({},wa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wp=Ut(LS),FS=Ve({},Rs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lf}),NS=Ut(FS),zS=Ve({},ei,{propertyName:0,elapsedTime:0,pseudoElement:0}),DS=Ut(zS),BS=Ve({},wa,{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}),jS=Ut(BS),VS=[9,13,27,32],af=Wn&&"CompositionEvent"in window,ji=null;Wn&&"documentMode"in document&&(ji=document.documentMode);var HS=Wn&&"TextEvent"in window&&!ji,Jg=Wn&&(!af||ji&&8<ji&&11>=ji),Gp=String.fromCharCode(32),Kp=!1;function ev(e,t){switch(e){case"keyup":return VS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xo=!1;function US(e,t){switch(e){case"compositionend":return tv(t);case"keypress":return t.which!==32?null:(Kp=!0,Gp);case"textInput":return e=t.data,e===Gp&&Kp?null:e;default:return null}}function WS(e,t){if(xo)return e==="compositionend"||!af&&ev(e,t)?(e=Zg(),xl=of=or=null,xo=!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 Jg&&t.locale!=="ko"?null:t.data;default:return null}}var GS={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 qp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!GS[e.type]:t==="textarea"}function nv(e,t,n,r){Ig(r),t=Wl(t,"onChange"),0<t.length&&(n=new sf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vi=null,ss=null;function KS(e){pv(e,0)}function ba(e){var t=Co(e);if(Eg(t))return e}function qS(e,t){if(e==="change")return t}var rv=!1;if(Wn){var ju;if(Wn){var Vu="oninput"in document;if(!Vu){var Yp=document.createElement("div");Yp.setAttribute("oninput","return;"),Vu=typeof Yp.oninput=="function"}ju=Vu}else ju=!1;rv=ju&&(!document.documentMode||9<document.documentMode)}function Xp(){Vi&&(Vi.detachEvent("onpropertychange",ov),ss=Vi=null)}function ov(e){if(e.propertyName==="value"&&ba(ss)){var t=[];nv(t,ss,e,Jd(e)),Ng(KS,t)}}function YS(e,t,n){e==="focusin"?(Xp(),Vi=t,ss=n,Vi.attachEvent("onpropertychange",ov)):e==="focusout"&&Xp()}function XS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ba(ss)}function QS(e,t){if(e==="click")return ba(t)}function ZS(e,t){if(e==="input"||e==="change")return ba(t)}function JS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wn=typeof Object.is=="function"?Object.is:JS;function ls(e,t){if(wn(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(!Ec.call(t,o)||!wn(e[o],t[o]))return!1}return!0}function Qp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zp(e,t){var n=Qp(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=Qp(n)}}function iv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?iv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sv(){for(var e=window,t=zl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zl(e.document)}return t}function uf(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 ex(e){var t=sv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&iv(n.ownerDocument.documentElement,n)){if(r!==null&&uf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Zp(n,i);var s=Zp(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var tx=Wn&&"documentMode"in document&&11>=document.documentMode,wo=null,Wc=null,Hi=null,Gc=!1;function Jp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gc||wo==null||wo!==zl(r)||(r=wo,"selectionStart"in r&&uf(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}),Hi&&ls(Hi,r)||(Hi=r,r=Wl(Wc,"onSelect"),0<r.length&&(t=new sf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wo)))}function Ks(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var bo={animationend:Ks("Animation","AnimationEnd"),animationiteration:Ks("Animation","AnimationIteration"),animationstart:Ks("Animation","AnimationStart"),transitionend:Ks("Transition","TransitionEnd")},Hu={},lv={};Wn&&(lv=document.createElement("div").style,"AnimationEvent"in window||(delete bo.animationend.animation,delete bo.animationiteration.animation,delete bo.animationstart.animation),"TransitionEvent"in window||delete bo.transitionend.transition);function Ca(e){if(Hu[e])return Hu[e];if(!bo[e])return e;var t=bo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in lv)return Hu[e]=t[n];return e}var av=Ca("animationend"),uv=Ca("animationiteration"),cv=Ca("animationstart"),dv=Ca("transitionend"),fv=new Map,eh="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 br(e,t){fv.set(e,t),Qr(t,[e])}for(var Uu=0;Uu<eh.length;Uu++){var Wu=eh[Uu],nx=Wu.toLowerCase(),rx=Wu[0].toUpperCase()+Wu.slice(1);br(nx,"on"+rx)}br(av,"onAnimationEnd");br(uv,"onAnimationIteration");br(cv,"onAnimationStart");br("dblclick","onDoubleClick");br("focusin","onFocus");br("focusout","onBlur");br(dv,"onTransitionEnd");zo("onMouseEnter",["mouseout","mouseover"]);zo("onMouseLeave",["mouseout","mouseover"]);zo("onPointerEnter",["pointerout","pointerover"]);zo("onPointerLeave",["pointerout","pointerover"]);Qr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ai="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(" "),ox=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ai));function th(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,nS(r,t,void 0,e),e.currentTarget=null}function pv(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==i&&o.isPropagationStopped())break e;th(o,l,u),i=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==i&&o.isPropagationStopped())break e;th(o,l,u),i=a}}}if(Bl)throw e=jc,Bl=!1,jc=null,e}function Le(e,t){var n=t[Qc];n===void 0&&(n=t[Qc]=new Set);var r=e+"__bubble";n.has(r)||(hv(t,e,2,!1),n.add(r))}function Gu(e,t,n){var r=0;t&&(r|=4),hv(n,e,r,t)}var qs="_reactListening"+Math.random().toString(36).slice(2);function as(e){if(!e[qs]){e[qs]=!0,wg.forEach(function(n){n!=="selectionchange"&&(ox.has(n)||Gu(n,!1,e),Gu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qs]||(t[qs]=!0,Gu("selectionchange",!1,t))}}function hv(e,t,n,r){switch(Qg(t)){case 1:var o=yS;break;case 4:o=SS;break;default:o=rf}n=o.bind(null,t,n,e),o=void 0,!Bc||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 Ku(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;s=s.return}for(;l!==null;){if(s=Ar(l),s===null)return;if(a=s.tag,a===5||a===6){r=i=s;continue e}l=l.parentNode}}r=r.return}Ng(function(){var u=i,c=Jd(n),d=[];e:{var f=fv.get(e);if(f!==void 0){var m=sf,S=e;switch(e){case"keypress":if(wl(n)===0)break e;case"keydown":case"keyup":m=AS;break;case"focusin":S="focus",m=Bu;break;case"focusout":S="blur",m=Bu;break;case"beforeblur":case"afterblur":m=Bu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Hp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=bS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=NS;break;case av:case uv:case cv:m=RS;break;case dv:m=DS;break;case"scroll":m=xS;break;case"wheel":m=jS;break;case"copy":case"cut":case"paste":m=$S;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Wp}var g=(t&4)!==0,R=!g&&e==="scroll",v=g?f!==null?f+"Capture":null:f;g=[];for(var h=u,p;h!==null;){p=h;var y=p.stateNode;if(p.tag===5&&y!==null&&(p=y,v!==null&&(y=ns(h,v),y!=null&&g.push(us(h,y,p)))),R)break;h=h.return}0<g.length&&(f=new m(f,S,null,n,c),d.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&n!==zc&&(S=n.relatedTarget||n.fromElement)&&(Ar(S)||S[Gn]))break e;if((m||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,m?(S=n.relatedTarget||n.toElement,m=u,S=S?Ar(S):null,S!==null&&(R=Zr(S),S!==R||S.tag!==5&&S.tag!==6)&&(S=null)):(m=null,S=u),m!==S)){if(g=Hp,y="onMouseLeave",v="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(g=Wp,y="onPointerLeave",v="onPointerEnter",h="pointer"),R=m==null?f:Co(m),p=S==null?f:Co(S),f=new g(y,h+"leave",m,n,c),f.target=R,f.relatedTarget=p,y=null,Ar(c)===u&&(g=new g(v,h+"enter",S,n,c),g.target=p,g.relatedTarget=R,y=g),R=y,m&&S)t:{for(g=m,v=S,h=0,p=g;p;p=lo(p))h++;for(p=0,y=v;y;y=lo(y))p++;for(;0<h-p;)g=lo(g),h--;for(;0<p-h;)v=lo(v),p--;for(;h--;){if(g===v||v!==null&&g===v.alternate)break t;g=lo(g),v=lo(v)}g=null}else g=null;m!==null&&nh(d,f,m,g,!1),S!==null&&R!==null&&nh(d,R,S,g,!0)}}e:{if(f=u?Co(u):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var b=qS;else if(qp(f))if(rv)b=ZS;else{b=XS;var k=YS}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(b=QS);if(b&&(b=b(e,u))){nv(d,b,n,c);break e}k&&k(e,f,u),e==="focusout"&&(k=f._wrapperState)&&k.controlled&&f.type==="number"&&Ic(f,"number",f.value)}switch(k=u?Co(u):window,e){case"focusin":(qp(k)||k.contentEditable==="true")&&(wo=k,Wc=u,Hi=null);break;case"focusout":Hi=Wc=wo=null;break;case"mousedown":Gc=!0;break;case"contextmenu":case"mouseup":case"dragend":Gc=!1,Jp(d,n,c);break;case"selectionchange":if(tx)break;case"keydown":case"keyup":Jp(d,n,c)}var C;if(af)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else xo?ev(e,n)&&($="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(Jg&&n.locale!=="ko"&&(xo||$!=="onCompositionStart"?$==="onCompositionEnd"&&xo&&(C=Zg()):(or=c,of="value"in or?or.value:or.textContent,xo=!0)),k=Wl(u,$),0<k.length&&($=new Up($,e,null,n,c),d.push({event:$,listeners:k}),C?$.data=C:(C=tv(n),C!==null&&($.data=C)))),(C=HS?US(e,n):WS(e,n))&&(u=Wl(u,"onBeforeInput"),0<u.length&&(c=new Up("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=C))}pv(d,t)})}function us(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wl(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=ns(e,n),i!=null&&r.unshift(us(e,i,o)),i=ns(e,t),i!=null&&r.push(us(e,i,o))),e=e.return}return r}function lo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function nh(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,o?(a=ns(n,i),a!=null&&s.unshift(us(n,a,l))):o||(a=ns(n,i),a!=null&&s.push(us(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var ix=/\r\n?/g,sx=/\u0000|\uFFFD/g;function rh(e){return(typeof e=="string"?e:""+e).replace(ix,`
|
|
38
|
+
`).replace(sx,"")}function Ys(e,t,n){if(t=rh(t),rh(e)!==t&&n)throw Error(F(425))}function Gl(){}var Kc=null,qc=null;function Yc(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 Xc=typeof setTimeout=="function"?setTimeout:void 0,lx=typeof clearTimeout=="function"?clearTimeout:void 0,oh=typeof Promise=="function"?Promise:void 0,ax=typeof queueMicrotask=="function"?queueMicrotask:typeof oh<"u"?function(e){return oh.resolve(null).then(e).catch(ux)}:Xc;function ux(e){setTimeout(function(){throw e})}function qu(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),is(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);is(t)}function dr(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 ih(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 ti=Math.random().toString(36).slice(2),$n="__reactFiber$"+ti,cs="__reactProps$"+ti,Gn="__reactContainer$"+ti,Qc="__reactEvents$"+ti,cx="__reactListeners$"+ti,dx="__reactHandles$"+ti;function Ar(e){var t=e[$n];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gn]||n[$n]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ih(e);e!==null;){if(n=e[$n])return n;e=ih(e)}return t}e=n,n=e.parentNode}return null}function Es(e){return e=e[$n]||e[Gn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Co(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function ka(e){return e[cs]||null}var Zc=[],ko=-1;function Cr(e){return{current:e}}function Fe(e){0>ko||(e.current=Zc[ko],Zc[ko]=null,ko--)}function Ie(e,t){ko++,Zc[ko]=e.current,e.current=t}var yr={},yt=Cr(yr),Et=Cr(!1),Vr=yr;function Do(e,t){var n=e.type.contextTypes;if(!n)return yr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $t(e){return e=e.childContextTypes,e!=null}function Kl(){Fe(Et),Fe(yt)}function sh(e,t,n){if(yt.current!==yr)throw Error(F(168));Ie(yt,t),Ie(Et,n)}function mv(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(F(108,Y1(e)||"Unknown",o));return Ve({},n,r)}function ql(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yr,Vr=yt.current,Ie(yt,e),Ie(Et,Et.current),!0}function lh(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=mv(e,t,Vr),r.__reactInternalMemoizedMergedChildContext=e,Fe(Et),Fe(yt),Ie(yt,e)):Fe(Et),Ie(Et,n)}var jn=null,Ra=!1,Yu=!1;function gv(e){jn===null?jn=[e]:jn.push(e)}function fx(e){Ra=!0,gv(e)}function kr(){if(!Yu&&jn!==null){Yu=!0;var e=0,t=Ee;try{var n=jn;for(Ee=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}jn=null,Ra=!1}catch(o){throw jn!==null&&(jn=jn.slice(e+1)),jg(ef,kr),o}finally{Ee=t,Yu=!1}}return null}var Ro=[],Eo=0,Yl=null,Xl=0,Kt=[],qt=0,Hr=null,Vn=1,Hn="";function _r(e,t){Ro[Eo++]=Xl,Ro[Eo++]=Yl,Yl=e,Xl=t}function vv(e,t,n){Kt[qt++]=Vn,Kt[qt++]=Hn,Kt[qt++]=Hr,Hr=e;var r=Vn;e=Hn;var o=32-yn(r)-1;r&=~(1<<o),n+=1;var i=32-yn(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Vn=1<<32-yn(t)+o|n<<o|r,Hn=i+e}else Vn=1<<i|n<<o|r,Hn=e}function cf(e){e.return!==null&&(_r(e,1),vv(e,1,0))}function df(e){for(;e===Yl;)Yl=Ro[--Eo],Ro[Eo]=null,Xl=Ro[--Eo],Ro[Eo]=null;for(;e===Hr;)Hr=Kt[--qt],Kt[qt]=null,Hn=Kt[--qt],Kt[qt]=null,Vn=Kt[--qt],Kt[qt]=null}var Dt=null,zt=null,ze=!1,pn=null;function yv(e,t){var n=Xt(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 ah(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,Dt=e,zt=dr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dt=e,zt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Hr!==null?{id:Vn,overflow:Hn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Dt=e,zt=null,!0):!1;default:return!1}}function Jc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ed(e){if(ze){var t=zt;if(t){var n=t;if(!ah(e,t)){if(Jc(e))throw Error(F(418));t=dr(n.nextSibling);var r=Dt;t&&ah(e,t)?yv(r,n):(e.flags=e.flags&-4097|2,ze=!1,Dt=e)}}else{if(Jc(e))throw Error(F(418));e.flags=e.flags&-4097|2,ze=!1,Dt=e}}}function uh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dt=e}function Xs(e){if(e!==Dt)return!1;if(!ze)return uh(e),ze=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Yc(e.type,e.memoizedProps)),t&&(t=zt)){if(Jc(e))throw Sv(),Error(F(418));for(;t;)yv(e,t),t=dr(t.nextSibling)}if(uh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){zt=dr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}zt=null}}else zt=Dt?dr(e.stateNode.nextSibling):null;return!0}function Sv(){for(var e=zt;e;)e=dr(e.nextSibling)}function Bo(){zt=Dt=null,ze=!1}function ff(e){pn===null?pn=[e]:pn.push(e)}var px=Xn.ReactCurrentBatchConfig;function un(e,t){if(e&&e.defaultProps){t=Ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Ql=Cr(null),Zl=null,$o=null,pf=null;function hf(){pf=$o=Zl=null}function mf(e){var t=Ql.current;Fe(Ql),e._currentValue=t}function td(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 Ao(e,t){Zl=e,pf=$o=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Rt=!0),e.firstContext=null)}function Jt(e){var t=e._currentValue;if(pf!==e)if(e={context:e,memoizedValue:t,next:null},$o===null){if(Zl===null)throw Error(F(308));$o=e,Zl.dependencies={lanes:0,firstContext:e}}else $o=$o.next=e;return t}var Lr=null;function gf(e){Lr===null?Lr=[e]:Lr.push(e)}function xv(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,gf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Kn(e,r)}function Kn(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 tr=!1;function vf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wv(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 Un(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,xe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Kn(e,n)}return o=r.interleaved,o===null?(t.next=t,gf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Kn(e,n)}function bl(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,tf(e,n)}}function ch(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Jl(e,t,n,r){var o=e.updateQueue;tr=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var d=o.baseState;s=0,c=u=a=null,l=i;do{var f=l.lane,m=l.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:m,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,g=l;switch(f=t,m=n,g.tag){case 1:if(S=g.payload,typeof S=="function"){d=S.call(m,d,f);break e}d=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=g.payload,f=typeof S=="function"?S.call(m,d,f):S,f==null)break e;d=Ve({},d,f);break e;case 2:tr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[l]:f.push(l))}else m={eventTime:m,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=m,a=d):c=c.next=m,s|=f;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;f=l,l=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(a=d),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Wr|=s,e.lanes=s,e.memoizedState=d}}function dh(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(F(191,o));o.call(r)}}}var bv=new xg.Component().refs;function nd(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ea={isMounted:function(e){return(e=e._reactInternals)?Zr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=wt(),o=hr(e),i=Un(r,o);i.payload=t,n!=null&&(i.callback=n),t=fr(e,i,o),t!==null&&(Sn(t,e,o,r),bl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=wt(),o=hr(e),i=Un(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=fr(e,i,o),t!==null&&(Sn(t,e,o,r),bl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=wt(),r=hr(e),o=Un(n,r);o.tag=2,t!=null&&(o.callback=t),t=fr(e,o,r),t!==null&&(Sn(t,e,r,n),bl(t,e,r))}};function fh(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!ls(n,r)||!ls(o,i):!0}function Cv(e,t,n){var r=!1,o=yr,i=t.contextType;return typeof i=="object"&&i!==null?i=Jt(i):(o=$t(t)?Vr:yt.current,r=t.contextTypes,i=(r=r!=null)?Do(e,o):yr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ea,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ph(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&&Ea.enqueueReplaceState(t,t.state,null)}function rd(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=bv,vf(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Jt(i):(i=$t(t)?Vr:yt.current,o.context=Do(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(nd(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ea.enqueueReplaceState(o,o.state,null),Jl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function gi(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(F(309));var r=n.stateNode}if(!r)throw Error(F(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var l=o.refs;l===bv&&(l=o.refs={}),s===null?delete l[i]:l[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(F(284));if(!n._owner)throw Error(F(290,e))}return e}function Qs(e,t){throw e=Object.prototype.toString.call(t),Error(F(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function hh(e){var t=e._init;return t(e._payload)}function kv(e){function t(v,h){if(e){var p=v.deletions;p===null?(v.deletions=[h],v.flags|=16):p.push(h)}}function n(v,h){if(!e)return null;for(;h!==null;)t(v,h),h=h.sibling;return null}function r(v,h){for(v=new Map;h!==null;)h.key!==null?v.set(h.key,h):v.set(h.index,h),h=h.sibling;return v}function o(v,h){return v=mr(v,h),v.index=0,v.sibling=null,v}function i(v,h,p){return v.index=p,e?(p=v.alternate,p!==null?(p=p.index,p<h?(v.flags|=2,h):p):(v.flags|=2,h)):(v.flags|=1048576,h)}function s(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,h,p,y){return h===null||h.tag!==6?(h=nc(p,v.mode,y),h.return=v,h):(h=o(h,p),h.return=v,h)}function a(v,h,p,y){var b=p.type;return b===So?c(v,h,p.props.children,y,p.key):h!==null&&(h.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===er&&hh(b)===h.type)?(y=o(h,p.props),y.ref=gi(v,h,p),y.return=v,y):(y=Pl(p.type,p.key,p.props,null,v.mode,y),y.ref=gi(v,h,p),y.return=v,y)}function u(v,h,p,y){return h===null||h.tag!==4||h.stateNode.containerInfo!==p.containerInfo||h.stateNode.implementation!==p.implementation?(h=rc(p,v.mode,y),h.return=v,h):(h=o(h,p.children||[]),h.return=v,h)}function c(v,h,p,y,b){return h===null||h.tag!==7?(h=Br(p,v.mode,y,b),h.return=v,h):(h=o(h,p),h.return=v,h)}function d(v,h,p){if(typeof h=="string"&&h!==""||typeof h=="number")return h=nc(""+h,v.mode,p),h.return=v,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Bs:return p=Pl(h.type,h.key,h.props,null,v.mode,p),p.ref=gi(v,null,h),p.return=v,p;case yo:return h=rc(h,v.mode,p),h.return=v,h;case er:var y=h._init;return d(v,y(h._payload),p)}if(Mi(h)||di(h))return h=Br(h,v.mode,p,null),h.return=v,h;Qs(v,h)}return null}function f(v,h,p,y){var b=h!==null?h.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return b!==null?null:l(v,h,""+p,y);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Bs:return p.key===b?a(v,h,p,y):null;case yo:return p.key===b?u(v,h,p,y):null;case er:return b=p._init,f(v,h,b(p._payload),y)}if(Mi(p)||di(p))return b!==null?null:c(v,h,p,y,null);Qs(v,p)}return null}function m(v,h,p,y,b){if(typeof y=="string"&&y!==""||typeof y=="number")return v=v.get(p)||null,l(h,v,""+y,b);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Bs:return v=v.get(y.key===null?p:y.key)||null,a(h,v,y,b);case yo:return v=v.get(y.key===null?p:y.key)||null,u(h,v,y,b);case er:var k=y._init;return m(v,h,p,k(y._payload),b)}if(Mi(y)||di(y))return v=v.get(p)||null,c(h,v,y,b,null);Qs(h,y)}return null}function S(v,h,p,y){for(var b=null,k=null,C=h,$=h=0,T=null;C!==null&&$<p.length;$++){C.index>$?(T=C,C=null):T=C.sibling;var P=f(v,C,p[$],y);if(P===null){C===null&&(C=T);break}e&&C&&P.alternate===null&&t(v,C),h=i(P,h,$),k===null?b=P:k.sibling=P,k=P,C=T}if($===p.length)return n(v,C),ze&&_r(v,$),b;if(C===null){for(;$<p.length;$++)C=d(v,p[$],y),C!==null&&(h=i(C,h,$),k===null?b=C:k.sibling=C,k=C);return ze&&_r(v,$),b}for(C=r(v,C);$<p.length;$++)T=m(C,v,$,p[$],y),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?$:T.key),h=i(T,h,$),k===null?b=T:k.sibling=T,k=T);return e&&C.forEach(function(O){return t(v,O)}),ze&&_r(v,$),b}function g(v,h,p,y){var b=di(p);if(typeof b!="function")throw Error(F(150));if(p=b.call(p),p==null)throw Error(F(151));for(var k=b=null,C=h,$=h=0,T=null,P=p.next();C!==null&&!P.done;$++,P=p.next()){C.index>$?(T=C,C=null):T=C.sibling;var O=f(v,C,P.value,y);if(O===null){C===null&&(C=T);break}e&&C&&O.alternate===null&&t(v,C),h=i(O,h,$),k===null?b=O:k.sibling=O,k=O,C=T}if(P.done)return n(v,C),ze&&_r(v,$),b;if(C===null){for(;!P.done;$++,P=p.next())P=d(v,P.value,y),P!==null&&(h=i(P,h,$),k===null?b=P:k.sibling=P,k=P);return ze&&_r(v,$),b}for(C=r(v,C);!P.done;$++,P=p.next())P=m(C,v,$,P.value,y),P!==null&&(e&&P.alternate!==null&&C.delete(P.key===null?$:P.key),h=i(P,h,$),k===null?b=P:k.sibling=P,k=P);return e&&C.forEach(function(V){return t(v,V)}),ze&&_r(v,$),b}function R(v,h,p,y){if(typeof p=="object"&&p!==null&&p.type===So&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Bs:e:{for(var b=p.key,k=h;k!==null;){if(k.key===b){if(b=p.type,b===So){if(k.tag===7){n(v,k.sibling),h=o(k,p.props.children),h.return=v,v=h;break e}}else if(k.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===er&&hh(b)===k.type){n(v,k.sibling),h=o(k,p.props),h.ref=gi(v,k,p),h.return=v,v=h;break e}n(v,k);break}else t(v,k);k=k.sibling}p.type===So?(h=Br(p.props.children,v.mode,y,p.key),h.return=v,v=h):(y=Pl(p.type,p.key,p.props,null,v.mode,y),y.ref=gi(v,h,p),y.return=v,v=y)}return s(v);case yo:e:{for(k=p.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===p.containerInfo&&h.stateNode.implementation===p.implementation){n(v,h.sibling),h=o(h,p.children||[]),h.return=v,v=h;break e}else{n(v,h);break}else t(v,h);h=h.sibling}h=rc(p,v.mode,y),h.return=v,v=h}return s(v);case er:return k=p._init,R(v,h,k(p._payload),y)}if(Mi(p))return S(v,h,p,y);if(di(p))return g(v,h,p,y);Qs(v,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,h!==null&&h.tag===6?(n(v,h.sibling),h=o(h,p),h.return=v,v=h):(n(v,h),h=nc(p,v.mode,y),h.return=v,v=h),s(v)):n(v,h)}return R}var jo=kv(!0),Rv=kv(!1),$s={},Tn=Cr($s),ds=Cr($s),fs=Cr($s);function Fr(e){if(e===$s)throw Error(F(174));return e}function yf(e,t){switch(Ie(fs,t),Ie(ds,e),Ie(Tn,$s),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Lc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Lc(t,e)}Fe(Tn),Ie(Tn,t)}function Vo(){Fe(Tn),Fe(ds),Fe(fs)}function Ev(e){Fr(fs.current);var t=Fr(Tn.current),n=Lc(t,e.type);t!==n&&(Ie(ds,e),Ie(Tn,n))}function Sf(e){ds.current===e&&(Fe(Tn),Fe(ds))}var Be=Cr(0);function ea(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 Xu=[];function xf(){for(var e=0;e<Xu.length;e++)Xu[e]._workInProgressVersionPrimary=null;Xu.length=0}var Cl=Xn.ReactCurrentDispatcher,Qu=Xn.ReactCurrentBatchConfig,Ur=0,je=null,rt=null,st=null,ta=!1,Ui=!1,ps=0,hx=0;function ht(){throw Error(F(321))}function wf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wn(e[n],t[n]))return!1;return!0}function bf(e,t,n,r,o,i){if(Ur=i,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Cl.current=e===null||e.memoizedState===null?yx:Sx,e=n(r,o),Ui){i=0;do{if(Ui=!1,ps=0,25<=i)throw Error(F(301));i+=1,st=rt=null,t.updateQueue=null,Cl.current=xx,e=n(r,o)}while(Ui)}if(Cl.current=na,t=rt!==null&&rt.next!==null,Ur=0,st=rt=je=null,ta=!1,t)throw Error(F(300));return e}function Cf(){var e=ps!==0;return ps=0,e}function kn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?je.memoizedState=st=e:st=st.next=e,st}function en(){if(rt===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=rt.next;var t=st===null?je.memoizedState:st.next;if(t!==null)st=t,rt=e;else{if(e===null)throw Error(F(310));rt=e,e={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},st===null?je.memoizedState=st=e:st=st.next=e}return st}function hs(e,t){return typeof t=="function"?t(e):t}function Zu(e){var t=en(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=rt,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=s=null,a=null,u=i;do{var c=u.lane;if((Ur&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=d,s=r):a=a.next=d,je.lanes|=c,Wr|=c}u=u.next}while(u!==null&&u!==i);a===null?s=r:a.next=l,wn(r,t.memoizedState)||(Rt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,je.lanes|=i,Wr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ju(e){var t=en(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);wn(i,t.memoizedState)||(Rt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function $v(){}function Pv(e,t){var n=je,r=en(),o=t(),i=!wn(r.memoizedState,o);if(i&&(r.memoizedState=o,Rt=!0),r=r.queue,kf(Ov.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||st!==null&&st.memoizedState.tag&1){if(n.flags|=2048,ms(9,Tv.bind(null,n,r,o,t),void 0,null),lt===null)throw Error(F(349));Ur&30||_v(n,t,o)}return o}function _v(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Tv(e,t,n,r){t.value=n,t.getSnapshot=r,Mv(t)&&Iv(e)}function Ov(e,t,n){return n(function(){Mv(t)&&Iv(e)})}function Mv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wn(e,n)}catch{return!0}}function Iv(e){var t=Kn(e,1);t!==null&&Sn(t,e,1,-1)}function mh(e){var t=kn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:e},t.queue=e,e=e.dispatch=vx.bind(null,je,e),[t.memoizedState,e]}function ms(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.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 Av(){return en().memoizedState}function kl(e,t,n,r){var o=kn();je.flags|=e,o.memoizedState=ms(1|t,n,void 0,r===void 0?null:r)}function $a(e,t,n,r){var o=en();r=r===void 0?null:r;var i=void 0;if(rt!==null){var s=rt.memoizedState;if(i=s.destroy,r!==null&&wf(r,s.deps)){o.memoizedState=ms(t,n,i,r);return}}je.flags|=e,o.memoizedState=ms(1|t,n,i,r)}function gh(e,t){return kl(8390656,8,e,t)}function kf(e,t){return $a(2048,8,e,t)}function Lv(e,t){return $a(4,2,e,t)}function Fv(e,t){return $a(4,4,e,t)}function Nv(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 zv(e,t,n){return n=n!=null?n.concat([e]):null,$a(4,4,Nv.bind(null,t,e),n)}function Rf(){}function Dv(e,t){var n=en();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&wf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Bv(e,t){var n=en();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&wf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function jv(e,t,n){return Ur&21?(wn(n,t)||(n=Ug(),je.lanes|=n,Wr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Rt=!0),e.memoizedState=n)}function mx(e,t){var n=Ee;Ee=n!==0&&4>n?n:4,e(!0);var r=Qu.transition;Qu.transition={};try{e(!1),t()}finally{Ee=n,Qu.transition=r}}function Vv(){return en().memoizedState}function gx(e,t,n){var r=hr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Hv(e))Uv(t,n);else if(n=xv(e,t,n,r),n!==null){var o=wt();Sn(n,e,r,o),Wv(n,t,r)}}function vx(e,t,n){var r=hr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hv(e))Uv(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,wn(l,s)){var a=t.interleaved;a===null?(o.next=o,gf(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=xv(e,t,o,r),n!==null&&(o=wt(),Sn(n,e,r,o),Wv(n,t,r))}}function Hv(e){var t=e.alternate;return e===je||t!==null&&t===je}function Uv(e,t){Ui=ta=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tf(e,n)}}var na={readContext:Jt,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useInsertionEffect:ht,useLayoutEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useMutableSource:ht,useSyncExternalStore:ht,useId:ht,unstable_isNewReconciler:!1},yx={readContext:Jt,useCallback:function(e,t){return kn().memoizedState=[e,t===void 0?null:t],e},useContext:Jt,useEffect:gh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,kl(4194308,4,Nv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return kl(4194308,4,e,t)},useInsertionEffect:function(e,t){return kl(4,2,e,t)},useMemo:function(e,t){var n=kn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kn();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=gx.bind(null,je,e),[r.memoizedState,e]},useRef:function(e){var t=kn();return e={current:e},t.memoizedState=e},useState:mh,useDebugValue:Rf,useDeferredValue:function(e){return kn().memoizedState=e},useTransition:function(){var e=mh(!1),t=e[0];return e=mx.bind(null,e[1]),kn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=je,o=kn();if(ze){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),lt===null)throw Error(F(349));Ur&30||_v(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,gh(Ov.bind(null,r,i,e),[e]),r.flags|=2048,ms(9,Tv.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=kn(),t=lt.identifierPrefix;if(ze){var n=Hn,r=Vn;n=(r&~(1<<32-yn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ps++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=hx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Sx={readContext:Jt,useCallback:Dv,useContext:Jt,useEffect:kf,useImperativeHandle:zv,useInsertionEffect:Lv,useLayoutEffect:Fv,useMemo:Bv,useReducer:Zu,useRef:Av,useState:function(){return Zu(hs)},useDebugValue:Rf,useDeferredValue:function(e){var t=en();return jv(t,rt.memoizedState,e)},useTransition:function(){var e=Zu(hs)[0],t=en().memoizedState;return[e,t]},useMutableSource:$v,useSyncExternalStore:Pv,useId:Vv,unstable_isNewReconciler:!1},xx={readContext:Jt,useCallback:Dv,useContext:Jt,useEffect:kf,useImperativeHandle:zv,useInsertionEffect:Lv,useLayoutEffect:Fv,useMemo:Bv,useReducer:Ju,useRef:Av,useState:function(){return Ju(hs)},useDebugValue:Rf,useDeferredValue:function(e){var t=en();return rt===null?t.memoizedState=e:jv(t,rt.memoizedState,e)},useTransition:function(){var e=Ju(hs)[0],t=en().memoizedState;return[e,t]},useMutableSource:$v,useSyncExternalStore:Pv,useId:Vv,unstable_isNewReconciler:!1};function Ho(e,t){try{var n="",r=t;do n+=q1(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
39
|
+
Error generating stack: `+i.message+`
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function ec(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function od(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wx=typeof WeakMap=="function"?WeakMap:Map;function Gv(e,t,n){n=Un(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){oa||(oa=!0,hd=r),od(e,t)},n}function Kv(e,t,n){n=Un(-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(){od(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){od(e,t),typeof r!="function"&&(pr===null?pr=new Set([this]):pr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function vh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wx;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=Lx.bind(null,e,t,n),t.then(e,e))}function yh(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 Sh(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=Un(-1,1),t.tag=2,fr(n,t,1))),n.lanes|=1),e)}var bx=Xn.ReactCurrentOwner,Rt=!1;function xt(e,t,n,r){t.child=e===null?Rv(t,null,n,r):jo(t,e.child,n,r)}function xh(e,t,n,r,o){n=n.render;var i=t.ref;return Ao(t,o),r=bf(e,t,n,r,i,o),n=Cf(),e!==null&&!Rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qn(e,t,o)):(ze&&n&&cf(t),t.flags|=1,xt(e,t,r,o),t.child)}function wh(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!If(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,qv(e,t,i,r,o)):(e=Pl(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:ls,n(s,r)&&e.ref===t.ref)return qn(e,t,o)}return t.flags|=1,e=mr(i,r),e.ref=t.ref,e.return=t,t.child=e}function qv(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ls(i,r)&&e.ref===t.ref)if(Rt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Rt=!0);else return t.lanes=e.lanes,qn(e,t,o)}return id(e,t,n,r,o)}function Yv(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ie(_o,Ft),Ft|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ie(_o,Ft),Ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ie(_o,Ft),Ft|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ie(_o,Ft),Ft|=r;return xt(e,t,o,n),t.child}function Xv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function id(e,t,n,r,o){var i=$t(n)?Vr:yt.current;return i=Do(t,i),Ao(t,o),n=bf(e,t,n,r,i,o),r=Cf(),e!==null&&!Rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qn(e,t,o)):(ze&&r&&cf(t),t.flags|=1,xt(e,t,n,o),t.child)}function bh(e,t,n,r,o){if($t(n)){var i=!0;ql(t)}else i=!1;if(Ao(t,o),t.stateNode===null)Rl(e,t),Cv(t,n,r),rd(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Jt(u):(u=$t(n)?Vr:yt.current,u=Do(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&ph(t,s,r,u),tr=!1;var f=t.memoizedState;s.state=f,Jl(t,r,s,o),a=t.memoizedState,l!==r||f!==a||Et.current||tr?(typeof c=="function"&&(nd(t,n,c,r),a=t.memoizedState),(l=tr||fh(t,n,l,r,f,a,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,wv(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:un(t.type,l),s.props=u,d=t.pendingProps,f=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Jt(a):(a=$t(n)?Vr:yt.current,a=Do(t,a));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==d||f!==a)&&ph(t,s,r,a),tr=!1,f=t.memoizedState,s.state=f,Jl(t,r,s,o);var S=t.memoizedState;l!==d||f!==S||Et.current||tr?(typeof m=="function"&&(nd(t,n,m,r),S=t.memoizedState),(u=tr||fh(t,n,u,r,f,S,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,S,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,S,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),s.props=r,s.state=S,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return sd(e,t,n,r,i,o)}function sd(e,t,n,r,o,i){Xv(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&lh(t,n,!1),qn(e,t,i);r=t.stateNode,bx.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=jo(t,e.child,null,i),t.child=jo(t,null,l,i)):xt(e,t,l,i),t.memoizedState=r.state,o&&lh(t,n,!0),t.child}function Qv(e){var t=e.stateNode;t.pendingContext?sh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sh(e,t.context,!1),yf(e,t.containerInfo)}function Ch(e,t,n,r,o){return Bo(),ff(o),t.flags|=256,xt(e,t,n,r),t.child}var ld={dehydrated:null,treeContext:null,retryLane:0};function ad(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zv(e,t,n){var r=t.pendingProps,o=Be.current,i=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Ie(Be,o&1),e===null)return ed(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Ta(s,r,0,null),e=Br(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ad(n),t.memoizedState=ld,e):Ef(t,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return Cx(e,t,s,r,l,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=mr(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=mr(l,i):(i=Br(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?ad(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=ld,r}return i=e.child,e=i.sibling,r=mr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ef(e,t){return t=Ta({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Zs(e,t,n,r){return r!==null&&ff(r),jo(t,e.child,null,n),e=Ef(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cx(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=ec(Error(F(422))),Zs(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ta({mode:"visible",children:r.children},o,0,null),i=Br(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&jo(t,e.child,null,s),t.child.memoizedState=ad(s),t.memoizedState=ld,i);if(!(t.mode&1))return Zs(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(F(419)),r=ec(i,r,void 0),Zs(e,t,s,r)}if(l=(s&e.childLanes)!==0,Rt||l){if(r=lt,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Kn(e,o),Sn(r,e,o,-1))}return Mf(),r=ec(Error(F(421))),Zs(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Fx.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,zt=dr(o.nextSibling),Dt=t,ze=!0,pn=null,e!==null&&(Kt[qt++]=Vn,Kt[qt++]=Hn,Kt[qt++]=Hr,Vn=e.id,Hn=e.overflow,Hr=t),t=Ef(t,r.children),t.flags|=4096,t)}function kh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),td(e.return,t,n)}function tc(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Jv(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xt(e,t,r.children,n),r=Be.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&&kh(e,n,t);else if(e.tag===19)kh(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(Ie(Be,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&&ea(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),tc(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ea(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}tc(t,!0,n,null,i);break;case"together":tc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Rl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=mr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function kx(e,t,n){switch(t.tag){case 3:Qv(t),Bo();break;case 5:Ev(t);break;case 1:$t(t.type)&&ql(t);break;case 4:yf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ie(Ql,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ie(Be,Be.current&1),t.flags|=128,null):n&t.child.childLanes?Zv(e,t,n):(Ie(Be,Be.current&1),e=qn(e,t,n),e!==null?e.sibling:null);Ie(Be,Be.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Jv(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ie(Be,Be.current),r)break;return null;case 22:case 23:return t.lanes=0,Yv(e,t,n)}return qn(e,t,n)}var e0,ud,t0,n0;e0=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}};ud=function(){};t0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Fr(Tn.current);var i=null;switch(n){case"input":o=Oc(e,o),r=Oc(e,r),i=[];break;case"select":o=Ve({},o,{value:void 0}),r=Ve({},r,{value:void 0}),i=[];break;case"textarea":o=Ac(e,o),r=Ac(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Gl)}Fc(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(es.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(es.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Le("scroll",e),i||l===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};n0=function(e,t,n,r){n!==r&&(t.flags|=4)};function vi(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function mt(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 Rx(e,t,n){var r=t.pendingProps;switch(df(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(t),null;case 1:return $t(t.type)&&Kl(),mt(t),null;case 3:return r=t.stateNode,Vo(),Fe(Et),Fe(yt),xf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Xs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,pn!==null&&(vd(pn),pn=null))),ud(e,t),mt(t),null;case 5:Sf(t);var o=Fr(fs.current);if(n=t.type,e!==null&&t.stateNode!=null)t0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(F(166));return mt(t),null}if(e=Fr(Tn.current),Xs(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[$n]=t,r[cs]=i,e=(t.mode&1)!==0,n){case"dialog":Le("cancel",r),Le("close",r);break;case"iframe":case"object":case"embed":Le("load",r);break;case"video":case"audio":for(o=0;o<Ai.length;o++)Le(Ai[o],r);break;case"source":Le("error",r);break;case"img":case"image":case"link":Le("error",r),Le("load",r);break;case"details":Le("toggle",r);break;case"input":Ip(r,i),Le("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Le("invalid",r);break;case"textarea":Lp(r,i),Le("invalid",r)}Fc(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var l=i[s];s==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Ys(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Ys(r.textContent,l,e),o=["children",""+l]):es.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&Le("scroll",r)}switch(n){case"input":js(r),Ap(r,i,!0);break;case"textarea":js(r),Fp(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Gl)}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=_g(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[$n]=t,e[cs]=r,e0(e,t,!1,!1),t.stateNode=e;e:{switch(s=Nc(n,r),n){case"dialog":Le("cancel",e),Le("close",e),o=r;break;case"iframe":case"object":case"embed":Le("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ai.length;o++)Le(Ai[o],e);o=r;break;case"source":Le("error",e),o=r;break;case"img":case"image":case"link":Le("error",e),Le("load",e),o=r;break;case"details":Le("toggle",e),o=r;break;case"input":Ip(e,r),o=Oc(e,r),Le("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ve({},r,{value:void 0}),Le("invalid",e);break;case"textarea":Lp(e,r),o=Ac(e,r),Le("invalid",e);break;default:o=r}Fc(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?Mg(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Tg(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ts(e,a):typeof a=="number"&&ts(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(es.hasOwnProperty(i)?a!=null&&i==="onScroll"&&Le("scroll",e):a!=null&&Yd(e,i,a,s))}switch(n){case"input":js(e),Ap(e,r,!1);break;case"textarea":js(e),Fp(e);break;case"option":r.value!=null&&e.setAttribute("value",""+vr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?To(e,!!r.multiple,i,!1):r.defaultValue!=null&&To(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Gl)}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 mt(t),null;case 6:if(e&&t.stateNode!=null)n0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(F(166));if(n=Fr(fs.current),Fr(Tn.current),Xs(t)){if(r=t.stateNode,n=t.memoizedProps,r[$n]=t,(i=r.nodeValue!==n)&&(e=Dt,e!==null))switch(e.tag){case 3:Ys(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ys(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[$n]=t,t.stateNode=r}return mt(t),null;case 13:if(Fe(Be),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ze&&zt!==null&&t.mode&1&&!(t.flags&128))Sv(),Bo(),t.flags|=98560,i=!1;else if(i=Xs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(F(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(F(317));i[$n]=t}else Bo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;mt(t),i=!1}else pn!==null&&(vd(pn),pn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Be.current&1?ot===0&&(ot=3):Mf())),t.updateQueue!==null&&(t.flags|=4),mt(t),null);case 4:return Vo(),ud(e,t),e===null&&as(t.stateNode.containerInfo),mt(t),null;case 10:return mf(t.type._context),mt(t),null;case 17:return $t(t.type)&&Kl(),mt(t),null;case 19:if(Fe(Be),i=t.memoizedState,i===null)return mt(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)vi(i,!1);else{if(ot!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ea(e),s!==null){for(t.flags|=128,vi(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ie(Be,Be.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ye()>Uo&&(t.flags|=128,r=!0,vi(i,!1),t.lanes=4194304)}else{if(!r)if(e=ea(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ze)return mt(t),null}else 2*Ye()-i.renderingStartTime>Uo&&n!==1073741824&&(t.flags|=128,r=!0,vi(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ye(),t.sibling=null,n=Be.current,Ie(Be,r?n&1|2:n&1),t):(mt(t),null);case 22:case 23:return Of(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ft&1073741824&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function Ex(e,t){switch(df(t),t.tag){case 1:return $t(t.type)&&Kl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vo(),Fe(Et),Fe(yt),xf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Sf(t),null;case 13:if(Fe(Be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Bo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(Be),null;case 4:return Vo(),null;case 10:return mf(t.type._context),null;case 22:case 23:return Of(),null;case 24:return null;default:return null}}var Js=!1,vt=!1,$x=typeof WeakSet=="function"?WeakSet:Set,G=null;function Po(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ge(e,t,r)}else n.current=null}function cd(e,t,n){try{n()}catch(r){Ge(e,t,r)}}var Rh=!1;function Px(e,t){if(Kc=Hl,e=sv(),uf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var m;d!==n||o!==0&&d.nodeType!==3||(l=s+o),d!==i||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===n&&++u===o&&(l=s),f===i&&++c===r&&(a=s),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(qc={focusedElem:e,selectionRange:n},Hl=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var g=S.memoizedProps,R=S.memoizedState,v=t.stateNode,h=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:un(t.type,g),R);v.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(y){Ge(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return S=Rh,Rh=!1,S}function Wi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&cd(t,n,i)}o=o.next}while(o!==r)}}function Pa(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 dd(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 r0(e){var t=e.alternate;t!==null&&(e.alternate=null,r0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$n],delete t[cs],delete t[Qc],delete t[cx],delete t[dx])),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 o0(e){return e.tag===5||e.tag===3||e.tag===4}function Eh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||o0(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 fd(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=Gl));else if(r!==4&&(e=e.child,e!==null))for(fd(e,t,n),e=e.sibling;e!==null;)fd(e,t,n),e=e.sibling}function pd(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(pd(e,t,n),e=e.sibling;e!==null;)pd(e,t,n),e=e.sibling}var ct=null,dn=!1;function Zn(e,t,n){for(n=n.child;n!==null;)i0(e,t,n),n=n.sibling}function i0(e,t,n){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(xa,n)}catch{}switch(n.tag){case 5:vt||Po(n,t);case 6:var r=ct,o=dn;ct=null,Zn(e,t,n),ct=r,dn=o,ct!==null&&(dn?(e=ct,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ct.removeChild(n.stateNode));break;case 18:ct!==null&&(dn?(e=ct,n=n.stateNode,e.nodeType===8?qu(e.parentNode,n):e.nodeType===1&&qu(e,n),is(e)):qu(ct,n.stateNode));break;case 4:r=ct,o=dn,ct=n.stateNode.containerInfo,dn=!0,Zn(e,t,n),ct=r,dn=o;break;case 0:case 11:case 14:case 15:if(!vt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&cd(n,t,s),o=o.next}while(o!==r)}Zn(e,t,n);break;case 1:if(!vt&&(Po(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ge(n,t,l)}Zn(e,t,n);break;case 21:Zn(e,t,n);break;case 22:n.mode&1?(vt=(r=vt)||n.memoizedState!==null,Zn(e,t,n),vt=r):Zn(e,t,n);break;default:Zn(e,t,n)}}function $h(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $x),t.forEach(function(r){var o=Nx.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function an(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:ct=l.stateNode,dn=!1;break e;case 3:ct=l.stateNode.containerInfo,dn=!0;break e;case 4:ct=l.stateNode.containerInfo,dn=!0;break e}l=l.return}if(ct===null)throw Error(F(160));i0(i,s,o),ct=null,dn=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(u){Ge(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)s0(t,e),t=t.sibling}function s0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(an(t,e),Cn(e),r&4){try{Wi(3,e,e.return),Pa(3,e)}catch(g){Ge(e,e.return,g)}try{Wi(5,e,e.return)}catch(g){Ge(e,e.return,g)}}break;case 1:an(t,e),Cn(e),r&512&&n!==null&&Po(n,n.return);break;case 5:if(an(t,e),Cn(e),r&512&&n!==null&&Po(n,n.return),e.flags&32){var o=e.stateNode;try{ts(o,"")}catch(g){Ge(e,e.return,g)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&$g(o,i),Nc(l,s);var u=Nc(l,i);for(s=0;s<a.length;s+=2){var c=a[s],d=a[s+1];c==="style"?Mg(o,d):c==="dangerouslySetInnerHTML"?Tg(o,d):c==="children"?ts(o,d):Yd(o,c,d,u)}switch(l){case"input":Mc(o,i);break;case"textarea":Pg(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?To(o,!!i.multiple,m,!1):f!==!!i.multiple&&(i.defaultValue!=null?To(o,!!i.multiple,i.defaultValue,!0):To(o,!!i.multiple,i.multiple?[]:"",!1))}o[cs]=i}catch(g){Ge(e,e.return,g)}}break;case 6:if(an(t,e),Cn(e),r&4){if(e.stateNode===null)throw Error(F(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){Ge(e,e.return,g)}}break;case 3:if(an(t,e),Cn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{is(t.containerInfo)}catch(g){Ge(e,e.return,g)}break;case 4:an(t,e),Cn(e);break;case 13:an(t,e),Cn(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(_f=Ye())),r&4&&$h(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(vt=(u=vt)||c,an(t,e),vt=u):an(t,e),Cn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(G=e,c=e.child;c!==null;){for(d=G=c;G!==null;){switch(f=G,m=f.child,f.tag){case 0:case 11:case 14:case 15:Wi(4,f,f.return);break;case 1:Po(f,f.return);var S=f.stateNode;if(typeof S.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(g){Ge(r,n,g)}}break;case 5:Po(f,f.return);break;case 22:if(f.memoizedState!==null){_h(d);continue}}m!==null?(m.return=f,G=m):_h(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=d.stateNode,a=d.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Og("display",s))}catch(g){Ge(e,e.return,g)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){Ge(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:an(t,e),Cn(e),r&4&&$h(e);break;case 21:break;default:an(t,e),Cn(e)}}function Cn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(o0(n)){var r=n;break e}n=n.return}throw Error(F(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ts(o,""),r.flags&=-33);var i=Eh(e);pd(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,l=Eh(e);fd(e,l,s);break;default:throw Error(F(161))}}catch(a){Ge(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _x(e,t,n){G=e,l0(e)}function l0(e,t,n){for(var r=(e.mode&1)!==0;G!==null;){var o=G,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Js;if(!s){var l=o.alternate,a=l!==null&&l.memoizedState!==null||vt;l=Js;var u=vt;if(Js=s,(vt=a)&&!u)for(G=o;G!==null;)s=G,a=s.child,s.tag===22&&s.memoizedState!==null?Th(o):a!==null?(a.return=s,G=a):Th(o);for(;i!==null;)G=i,l0(i),i=i.sibling;G=o,Js=l,vt=u}Ph(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,G=i):Ph(e)}}function Ph(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:vt||Pa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!vt)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:un(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&dh(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}dh(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&is(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(F(163))}vt||t.flags&512&&dd(t)}catch(f){Ge(t,t.return,f)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function _h(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function Th(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Pa(4,t)}catch(a){Ge(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Ge(t,o,a)}}var i=t.return;try{dd(t)}catch(a){Ge(t,i,a)}break;case 5:var s=t.return;try{dd(t)}catch(a){Ge(t,s,a)}}}catch(a){Ge(t,t.return,a)}if(t===e){G=null;break}var l=t.sibling;if(l!==null){l.return=t.return,G=l;break}G=t.return}}var Tx=Math.ceil,ra=Xn.ReactCurrentDispatcher,$f=Xn.ReactCurrentOwner,Qt=Xn.ReactCurrentBatchConfig,xe=0,lt=null,Je=null,ft=0,Ft=0,_o=Cr(0),ot=0,gs=null,Wr=0,_a=0,Pf=0,Gi=null,kt=null,_f=0,Uo=1/0,Bn=null,oa=!1,hd=null,pr=null,el=!1,ir=null,ia=0,Ki=0,md=null,El=-1,$l=0;function wt(){return xe&6?Ye():El!==-1?El:El=Ye()}function hr(e){return e.mode&1?xe&2&&ft!==0?ft&-ft:px.transition!==null?($l===0&&($l=Ug()),$l):(e=Ee,e!==0||(e=window.event,e=e===void 0?16:Qg(e.type)),e):1}function Sn(e,t,n,r){if(50<Ki)throw Ki=0,md=null,Error(F(185));ks(e,n,r),(!(xe&2)||e!==lt)&&(e===lt&&(!(xe&2)&&(_a|=n),ot===4&&rr(e,ft)),Pt(e,r),n===1&&xe===0&&!(t.mode&1)&&(Uo=Ye()+500,Ra&&kr()))}function Pt(e,t){var n=e.callbackNode;pS(e,t);var r=Vl(e,e===lt?ft:0);if(r===0)n!==null&&Dp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Dp(n),t===1)e.tag===0?fx(Oh.bind(null,e)):gv(Oh.bind(null,e)),ax(function(){!(xe&6)&&kr()}),n=null;else{switch(Wg(r)){case 1:n=ef;break;case 4:n=Vg;break;case 16:n=jl;break;case 536870912:n=Hg;break;default:n=jl}n=m0(n,a0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function a0(e,t){if(El=-1,$l=0,xe&6)throw Error(F(327));var n=e.callbackNode;if(Lo()&&e.callbackNode!==n)return null;var r=Vl(e,e===lt?ft:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=sa(e,r);else{t=r;var o=xe;xe|=2;var i=c0();(lt!==e||ft!==t)&&(Bn=null,Uo=Ye()+500,Dr(e,t));do try{Ix();break}catch(l){u0(e,l)}while(1);hf(),ra.current=i,xe=o,Je!==null?t=0:(lt=null,ft=0,t=ot)}if(t!==0){if(t===2&&(o=Vc(e),o!==0&&(r=o,t=gd(e,o))),t===1)throw n=gs,Dr(e,0),rr(e,r),Pt(e,Ye()),n;if(t===6)rr(e,r);else{if(o=e.current.alternate,!(r&30)&&!Ox(o)&&(t=sa(e,r),t===2&&(i=Vc(e),i!==0&&(r=i,t=gd(e,i))),t===1))throw n=gs,Dr(e,0),rr(e,r),Pt(e,Ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(F(345));case 2:Tr(e,kt,Bn);break;case 3:if(rr(e,r),(r&130023424)===r&&(t=_f+500-Ye(),10<t)){if(Vl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){wt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Xc(Tr.bind(null,e,kt,Bn),t);break}Tr(e,kt,Bn);break;case 4:if(rr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-yn(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Ye()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Tx(r/1960))-r,10<r){e.timeoutHandle=Xc(Tr.bind(null,e,kt,Bn),r);break}Tr(e,kt,Bn);break;case 5:Tr(e,kt,Bn);break;default:throw Error(F(329))}}}return Pt(e,Ye()),e.callbackNode===n?a0.bind(null,e):null}function gd(e,t){var n=Gi;return e.current.memoizedState.isDehydrated&&(Dr(e,t).flags|=256),e=sa(e,t),e!==2&&(t=kt,kt=n,t!==null&&vd(t)),e}function vd(e){kt===null?kt=e:kt.push.apply(kt,e)}function Ox(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!wn(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rr(e,t){for(t&=~Pf,t&=~_a,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-yn(t),r=1<<n;e[n]=-1,t&=~r}}function Oh(e){if(xe&6)throw Error(F(327));Lo();var t=Vl(e,0);if(!(t&1))return Pt(e,Ye()),null;var n=sa(e,t);if(e.tag!==0&&n===2){var r=Vc(e);r!==0&&(t=r,n=gd(e,r))}if(n===1)throw n=gs,Dr(e,0),rr(e,t),Pt(e,Ye()),n;if(n===6)throw Error(F(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tr(e,kt,Bn),Pt(e,Ye()),null}function Tf(e,t){var n=xe;xe|=1;try{return e(t)}finally{xe=n,xe===0&&(Uo=Ye()+500,Ra&&kr())}}function Gr(e){ir!==null&&ir.tag===0&&!(xe&6)&&Lo();var t=xe;xe|=1;var n=Qt.transition,r=Ee;try{if(Qt.transition=null,Ee=1,e)return e()}finally{Ee=r,Qt.transition=n,xe=t,!(xe&6)&&kr()}}function Of(){Ft=_o.current,Fe(_o)}function Dr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,lx(n)),Je!==null)for(n=Je.return;n!==null;){var r=n;switch(df(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Kl();break;case 3:Vo(),Fe(Et),Fe(yt),xf();break;case 5:Sf(r);break;case 4:Vo();break;case 13:Fe(Be);break;case 19:Fe(Be);break;case 10:mf(r.type._context);break;case 22:case 23:Of()}n=n.return}if(lt=e,Je=e=mr(e.current,null),ft=Ft=t,ot=0,gs=null,Pf=_a=Wr=0,kt=Gi=null,Lr!==null){for(t=0;t<Lr.length;t++)if(n=Lr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Lr=null}return e}function u0(e,t){do{var n=Je;try{if(hf(),Cl.current=na,ta){for(var r=je.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}ta=!1}if(Ur=0,st=rt=je=null,Ui=!1,ps=0,$f.current=null,n===null||n.return===null){ot=1,gs=t,Je=null;break}e:{var i=e,s=n.return,l=n,a=t;if(t=ft,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=yh(s);if(m!==null){m.flags&=-257,Sh(m,s,l,i,t),m.mode&1&&vh(i,u,t),t=m,a=u;var S=t.updateQueue;if(S===null){var g=new Set;g.add(a),t.updateQueue=g}else S.add(a);break e}else{if(!(t&1)){vh(i,u,t),Mf();break e}a=Error(F(426))}}else if(ze&&l.mode&1){var R=yh(s);if(R!==null){!(R.flags&65536)&&(R.flags|=256),Sh(R,s,l,i,t),ff(Ho(a,l));break e}}i=a=Ho(a,l),ot!==4&&(ot=2),Gi===null?Gi=[i]:Gi.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=Gv(i,a,t);ch(i,v);break e;case 1:l=a;var h=i.type,p=i.stateNode;if(!(i.flags&128)&&(typeof h.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(pr===null||!pr.has(p)))){i.flags|=65536,t&=-t,i.lanes|=t;var y=Kv(i,l,t);ch(i,y);break e}}i=i.return}while(i!==null)}f0(n)}catch(b){t=b,Je===n&&n!==null&&(Je=n=n.return);continue}break}while(1)}function c0(){var e=ra.current;return ra.current=na,e===null?na:e}function Mf(){(ot===0||ot===3||ot===2)&&(ot=4),lt===null||!(Wr&268435455)&&!(_a&268435455)||rr(lt,ft)}function sa(e,t){var n=xe;xe|=2;var r=c0();(lt!==e||ft!==t)&&(Bn=null,Dr(e,t));do try{Mx();break}catch(o){u0(e,o)}while(1);if(hf(),xe=n,ra.current=r,Je!==null)throw Error(F(261));return lt=null,ft=0,ot}function Mx(){for(;Je!==null;)d0(Je)}function Ix(){for(;Je!==null&&!oS();)d0(Je)}function d0(e){var t=h0(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,t===null?f0(e):Je=t,$f.current=null}function f0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ex(n,t),n!==null){n.flags&=32767,Je=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ot=6,Je=null;return}}else if(n=Rx(n,t,Ft),n!==null){Je=n;return}if(t=t.sibling,t!==null){Je=t;return}Je=t=e}while(t!==null);ot===0&&(ot=5)}function Tr(e,t,n){var r=Ee,o=Qt.transition;try{Qt.transition=null,Ee=1,Ax(e,t,n,r)}finally{Qt.transition=o,Ee=r}return null}function Ax(e,t,n,r){do Lo();while(ir!==null);if(xe&6)throw Error(F(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(F(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(hS(e,i),e===lt&&(Je=lt=null,ft=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||el||(el=!0,m0(jl,function(){return Lo(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Qt.transition,Qt.transition=null;var s=Ee;Ee=1;var l=xe;xe|=4,$f.current=null,Px(e,n),s0(n,e),ex(qc),Hl=!!Kc,qc=Kc=null,e.current=n,_x(n),iS(),xe=l,Ee=s,Qt.transition=i}else e.current=n;if(el&&(el=!1,ir=e,ia=o),i=e.pendingLanes,i===0&&(pr=null),aS(n.stateNode),Pt(e,Ye()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(oa)throw oa=!1,e=hd,hd=null,e;return ia&1&&e.tag!==0&&Lo(),i=e.pendingLanes,i&1?e===md?Ki++:(Ki=0,md=e):Ki=0,kr(),null}function Lo(){if(ir!==null){var e=Wg(ia),t=Qt.transition,n=Ee;try{if(Qt.transition=null,Ee=16>e?16:e,ir===null)var r=!1;else{if(e=ir,ir=null,ia=0,xe&6)throw Error(F(331));var o=xe;for(xe|=4,G=e.current;G!==null;){var i=G,s=i.child;if(G.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(G=u;G!==null;){var c=G;switch(c.tag){case 0:case 11:case 15:Wi(8,c,i)}var d=c.child;if(d!==null)d.return=c,G=d;else for(;G!==null;){c=G;var f=c.sibling,m=c.return;if(r0(c),c===u){G=null;break}if(f!==null){f.return=m,G=f;break}G=m}}}var S=i.alternate;if(S!==null){var g=S.child;if(g!==null){S.child=null;do{var R=g.sibling;g.sibling=null,g=R}while(g!==null)}}G=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,G=s;else e:for(;G!==null;){if(i=G,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Wi(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,G=v;break e}G=i.return}}var h=e.current;for(G=h;G!==null;){s=G;var p=s.child;if(s.subtreeFlags&2064&&p!==null)p.return=s,G=p;else e:for(s=h;G!==null;){if(l=G,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Pa(9,l)}}catch(b){Ge(l,l.return,b)}if(l===s){G=null;break e}var y=l.sibling;if(y!==null){y.return=l.return,G=y;break e}G=l.return}}if(xe=o,kr(),_n&&typeof _n.onPostCommitFiberRoot=="function")try{_n.onPostCommitFiberRoot(xa,e)}catch{}r=!0}return r}finally{Ee=n,Qt.transition=t}}return!1}function Mh(e,t,n){t=Ho(n,t),t=Gv(e,t,1),e=fr(e,t,1),t=wt(),e!==null&&(ks(e,1,t),Pt(e,t))}function Ge(e,t,n){if(e.tag===3)Mh(e,e,n);else for(;t!==null;){if(t.tag===3){Mh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(pr===null||!pr.has(r))){e=Ho(n,e),e=Kv(t,e,1),t=fr(t,e,1),e=wt(),t!==null&&(ks(t,1,e),Pt(t,e));break}}t=t.return}}function Lx(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=wt(),e.pingedLanes|=e.suspendedLanes&n,lt===e&&(ft&n)===n&&(ot===4||ot===3&&(ft&130023424)===ft&&500>Ye()-_f?Dr(e,0):Pf|=n),Pt(e,t)}function p0(e,t){t===0&&(e.mode&1?(t=Us,Us<<=1,!(Us&130023424)&&(Us=4194304)):t=1);var n=wt();e=Kn(e,t),e!==null&&(ks(e,t,n),Pt(e,n))}function Fx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),p0(e,n)}function Nx(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(F(314))}r!==null&&r.delete(t),p0(e,n)}var h0;h0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Et.current)Rt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Rt=!1,kx(e,t,n);Rt=!!(e.flags&131072)}else Rt=!1,ze&&t.flags&1048576&&vv(t,Xl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Rl(e,t),e=t.pendingProps;var o=Do(t,yt.current);Ao(t,n),o=bf(null,t,r,e,o,n);var i=Cf();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,$t(r)?(i=!0,ql(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,vf(t),o.updater=Ea,t.stateNode=o,o._reactInternals=t,rd(t,r,e,n),t=sd(null,t,r,!0,i,n)):(t.tag=0,ze&&i&&cf(t),xt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Rl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Dx(r),e=un(r,e),o){case 0:t=id(null,t,r,e,n);break e;case 1:t=bh(null,t,r,e,n);break e;case 11:t=xh(null,t,r,e,n);break e;case 14:t=wh(null,t,r,un(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),id(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),bh(e,t,r,o,n);case 3:e:{if(Qv(t),e===null)throw Error(F(387));r=t.pendingProps,i=t.memoizedState,o=i.element,wv(e,t),Jl(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ho(Error(F(423)),t),t=Ch(e,t,r,n,o);break e}else if(r!==o){o=Ho(Error(F(424)),t),t=Ch(e,t,r,n,o);break e}else for(zt=dr(t.stateNode.containerInfo.firstChild),Dt=t,ze=!0,pn=null,n=Rv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Bo(),r===o){t=qn(e,t,n);break e}xt(e,t,r,n)}t=t.child}return t;case 5:return Ev(t),e===null&&ed(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Yc(r,o)?s=null:i!==null&&Yc(r,i)&&(t.flags|=32),Xv(e,t),xt(e,t,s,n),t.child;case 6:return e===null&&ed(t),null;case 13:return Zv(e,t,n);case 4:return yf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jo(t,null,r,n):xt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),xh(e,t,r,o,n);case 7:return xt(e,t,t.pendingProps,n),t.child;case 8:return xt(e,t,t.pendingProps.children,n),t.child;case 12:return xt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Ie(Ql,r._currentValue),r._currentValue=s,i!==null)if(wn(i.value,s)){if(i.children===o.children&&!Et.current){t=qn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Un(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),td(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(F(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),td(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}xt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ao(t,n),o=Jt(o),r=r(o),t.flags|=1,xt(e,t,r,n),t.child;case 14:return r=t.type,o=un(r,t.pendingProps),o=un(r.type,o),wh(e,t,r,o,n);case 15:return qv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:un(r,o),Rl(e,t),t.tag=1,$t(r)?(e=!0,ql(t)):e=!1,Ao(t,n),Cv(t,r,o),rd(t,r,o,n),sd(null,t,r,!0,e,n);case 19:return Jv(e,t,n);case 22:return Yv(e,t,n)}throw Error(F(156,t.tag))};function m0(e,t){return jg(e,t)}function zx(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 Xt(e,t,n,r){return new zx(e,t,n,r)}function If(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dx(e){if(typeof e=="function")return If(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qd)return 11;if(e===Zd)return 14}return 2}function mr(e,t){var n=e.alternate;return n===null?(n=Xt(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 Pl(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")If(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case So:return Br(n.children,o,i,t);case Xd:s=8,o|=8;break;case $c:return e=Xt(12,n,t,o|2),e.elementType=$c,e.lanes=i,e;case Pc:return e=Xt(13,n,t,o),e.elementType=Pc,e.lanes=i,e;case _c:return e=Xt(19,n,t,o),e.elementType=_c,e.lanes=i,e;case kg:return Ta(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bg:s=10;break e;case Cg:s=9;break e;case Qd:s=11;break e;case Zd:s=14;break e;case er:s=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=Xt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Br(e,t,n,r){return e=Xt(7,e,r,t),e.lanes=n,e}function Ta(e,t,n,r){return e=Xt(22,e,r,t),e.elementType=kg,e.lanes=n,e.stateNode={isHidden:!1},e}function nc(e,t,n){return e=Xt(6,e,null,t),e.lanes=n,e}function rc(e,t,n){return t=Xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bx(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=Nu(0),this.expirationTimes=Nu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Af(e,t,n,r,o,i,s,l,a){return e=new Bx(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Xt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},vf(i),e}function jx(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function g0(e){if(!e)return yr;e=e._reactInternals;e:{if(Zr(e)!==e||e.tag!==1)throw Error(F(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(F(171))}if(e.tag===1){var n=e.type;if($t(n))return mv(e,n,t)}return t}function v0(e,t,n,r,o,i,s,l,a){return e=Af(n,r,!0,e,o,i,s,l,a),e.context=g0(null),n=e.current,r=wt(),o=hr(n),i=Un(r,o),i.callback=t??null,fr(n,i,o),e.current.lanes=o,ks(e,o,r),Pt(e,r),e}function Oa(e,t,n,r){var o=t.current,i=wt(),s=hr(o);return n=g0(n),t.context===null?t.context=n:t.pendingContext=n,t=Un(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=fr(o,t,s),e!==null&&(Sn(e,o,s,i),bl(e,o,s)),s}function la(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 Ih(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Lf(e,t){Ih(e,t),(e=e.alternate)&&Ih(e,t)}function Vx(){return null}var y0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ff(e){this._internalRoot=e}Ma.prototype.render=Ff.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(F(409));Oa(e,t,null,null)};Ma.prototype.unmount=Ff.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gr(function(){Oa(null,e,null,null)}),t[Gn]=null}};function Ma(e){this._internalRoot=e}Ma.prototype.unstable_scheduleHydration=function(e){if(e){var t=qg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<nr.length&&t!==0&&t<nr[n].priority;n++);nr.splice(n,0,e),n===0&&Xg(e)}};function Nf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ia(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ah(){}function Hx(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=la(s);i.call(u)}}var s=v0(t,r,e,0,null,!1,!1,"",Ah);return e._reactRootContainer=s,e[Gn]=s.current,as(e.nodeType===8?e.parentNode:e),Gr(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=la(a);l.call(u)}}var a=Af(e,0,!1,null,null,!1,!1,"",Ah);return e._reactRootContainer=a,e[Gn]=a.current,as(e.nodeType===8?e.parentNode:e),Gr(function(){Oa(t,a,n,r)}),a}function Aa(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var l=o;o=function(){var a=la(s);l.call(a)}}Oa(t,s,e,o)}else s=Hx(n,t,e,o,r);return la(s)}Gg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ii(t.pendingLanes);n!==0&&(tf(t,n|1),Pt(t,Ye()),!(xe&6)&&(Uo=Ye()+500,kr()))}break;case 13:Gr(function(){var r=Kn(e,1);if(r!==null){var o=wt();Sn(r,e,1,o)}}),Lf(e,1)}};nf=function(e){if(e.tag===13){var t=Kn(e,134217728);if(t!==null){var n=wt();Sn(t,e,134217728,n)}Lf(e,134217728)}};Kg=function(e){if(e.tag===13){var t=hr(e),n=Kn(e,t);if(n!==null){var r=wt();Sn(n,e,t,r)}Lf(e,t)}};qg=function(){return Ee};Yg=function(e,t){var n=Ee;try{return Ee=e,t()}finally{Ee=n}};Dc=function(e,t,n){switch(t){case"input":if(Mc(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=ka(r);if(!o)throw Error(F(90));Eg(r),Mc(r,o)}}}break;case"textarea":Pg(e,n);break;case"select":t=n.value,t!=null&&To(e,!!n.multiple,t,!1)}};Lg=Tf;Fg=Gr;var Ux={usingClientEntryPoint:!1,Events:[Es,Co,ka,Ig,Ag,Tf]},yi={findFiberByHostInstance:Ar,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Wx={bundleType:yi.bundleType,version:yi.version,rendererPackageName:yi.rendererPackageName,rendererConfig:yi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Dg(e),e===null?null:e.stateNode},findFiberByHostInstance:yi.findFiberByHostInstance||Vx,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 tl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tl.isDisabled&&tl.supportsFiber)try{xa=tl.inject(Wx),_n=tl}catch{}}Ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ux;Ht.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Nf(t))throw Error(F(200));return jx(e,t,null,n)};Ht.createRoot=function(e,t){if(!Nf(e))throw Error(F(299));var n=!1,r="",o=y0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Af(e,1,!1,null,null,n,!1,r,o),e[Gn]=t.current,as(e.nodeType===8?e.parentNode:e),new Ff(t)};Ht.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(F(188)):(e=Object.keys(e).join(","),Error(F(268,e)));return e=Dg(t),e=e===null?null:e.stateNode,e};Ht.flushSync=function(e){return Gr(e)};Ht.hydrate=function(e,t,n){if(!Ia(t))throw Error(F(200));return Aa(null,e,t,!0,n)};Ht.hydrateRoot=function(e,t,n){if(!Nf(e))throw Error(F(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=y0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=v0(t,null,e,1,n??null,o,!1,i,s),e[Gn]=t.current,as(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 Ma(t)};Ht.render=function(e,t,n){if(!Ia(t))throw Error(F(200));return Aa(null,e,t,!1,n)};Ht.unmountComponentAtNode=function(e){if(!Ia(e))throw Error(F(40));return e._reactRootContainer?(Gr(function(){Aa(null,null,e,!1,function(){e._reactRootContainer=null,e[Gn]=null})}),!0):!1};Ht.unstable_batchedUpdates=Tf;Ht.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ia(n))throw Error(F(200));if(e==null||e._reactInternals===void 0)throw Error(F(38));return Aa(e,t,n,!1,r)};Ht.version="18.2.0-next-9e3b772b8-20220608";function S0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(S0)}catch(e){console.error(e)}}S0(),vg.exports=Ht;var La=vg.exports;const nl=Vd(La);var Lh=La;Rc.createRoot=Lh.createRoot,Rc.hydrateRoot=Lh.hydrateRoot;function w(){return w=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},w.apply(this,arguments)}function Ir(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function x0(e){if(!Ir(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=x0(e[n])}),t}function _t(e,t,n={clone:!0}){const r=n.clone?w({},e):e;return Ir(e)&&Ir(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ir(t[o])&&o in e&&Ir(e[o])?r[o]=_t(e[o],t[o],n):n.clone?r[o]=Ir(t[o])?x0(t[o]):t[o]:r[o]=t[o])}),r}function Sr(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function he(e){if(typeof e!="string")throw new Error(Sr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function yd(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function zf(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Gx(e,t){return()=>null}function _l(e,t){return x.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function tt(e){return e&&e.ownerDocument||document}function xr(e){return tt(e).defaultView||window}function Kx(e,t){return()=>null}function aa(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const qx=typeof window<"u"?x.useLayoutEffect:x.useEffect,tn=qx;let Fh=0;function Yx(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(Fh+=1,n(`mui-${Fh}`))},[t]),r}const Nh=Nl["useId"];function w0(e){if(Nh!==void 0){const t=Nh();return e??t}return Yx(e)}function Xx(e,t,n,r,o){return null}function Wo({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=x.useRef(e!==void 0),[i,s]=x.useState(t),l=o?e:i,a=x.useCallback(u=>{o||s(u)},[]);return[l,a]}function mn(e){const t=x.useRef(e);return tn(()=>{t.current=e}),x.useCallback((...n)=>(0,t.current)(...n),[])}function Xe(...e){return x.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{aa(n,t)})},e)}let Fa=!0,Sd=!1,zh;const Qx={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 Zx(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Qx[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Jx(e){e.metaKey||e.altKey||e.ctrlKey||(Fa=!0)}function oc(){Fa=!1}function ew(){this.visibilityState==="hidden"&&Sd&&(Fa=!0)}function tw(e){e.addEventListener("keydown",Jx,!0),e.addEventListener("mousedown",oc,!0),e.addEventListener("pointerdown",oc,!0),e.addEventListener("touchstart",oc,!0),e.addEventListener("visibilitychange",ew,!0)}function nw(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Fa||Zx(t)}function Na(){const e=x.useCallback(o=>{o!=null&&tw(o.ownerDocument)},[]),t=x.useRef(!1);function n(){return t.current?(Sd=!0,window.clearTimeout(zh),zh=window.setTimeout(()=>{Sd=!1},100),t.current=!1,!0):!1}function r(o){return nw(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function b0(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const rw={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},ow=rw;function C0(e,t){const n=w({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=w({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=w({},i),Object.keys(o).forEach(s=>{n[r][s]=C0(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Me(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const l=t(s);l!==""&&i.push(l),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const Dh=e=>e,iw=()=>{let e=Dh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Dh}}},sw=iw(),Df=sw,lw={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function _e(e,t,n="Mui"){const r=lw[t];return r?`${n}-${r}`:`${Df.generate(e)}-${t}`}function $e(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=_e(e,o,n)}),r}function k0(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var aw=/^((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)-.*))$/,uw=k0(function(e){return aw.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function cw(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 dw(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 fw=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(dw(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=cw(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),gt="-ms-",ua="-moz-",we="-webkit-",R0="comm",Bf="rule",jf="decl",pw="@import",E0="@keyframes",hw="@layer",mw=Math.abs,za=String.fromCharCode,gw=Object.assign;function vw(e,t){return dt(e,0)^45?(((t<<2^dt(e,0))<<2^dt(e,1))<<2^dt(e,2))<<2^dt(e,3):0}function $0(e){return e.trim()}function yw(e,t){return(e=t.exec(e))?e[0]:e}function be(e,t,n){return e.replace(t,n)}function xd(e,t){return e.indexOf(t)}function dt(e,t){return e.charCodeAt(t)|0}function vs(e,t,n){return e.slice(t,n)}function Rn(e){return e.length}function Vf(e){return e.length}function rl(e,t){return t.push(e),e}function Sw(e,t){return e.map(t).join("")}var Da=1,Go=1,P0=0,Mt=0,Ze=0,ni="";function Ba(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Da,column:Go,length:s,return:""}}function Si(e,t){return gw(Ba("",null,null,"",null,null,0),e,{length:-e.length},t)}function xw(){return Ze}function ww(){return Ze=Mt>0?dt(ni,--Mt):0,Go--,Ze===10&&(Go=1,Da--),Ze}function Bt(){return Ze=Mt<P0?dt(ni,Mt++):0,Go++,Ze===10&&(Go=1,Da++),Ze}function On(){return dt(ni,Mt)}function Tl(){return Mt}function Ps(e,t){return vs(ni,e,t)}function ys(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 _0(e){return Da=Go=1,P0=Rn(ni=e),Mt=0,[]}function T0(e){return ni="",e}function Ol(e){return $0(Ps(Mt-1,wd(e===91?e+2:e===40?e+1:e)))}function bw(e){for(;(Ze=On())&&Ze<33;)Bt();return ys(e)>2||ys(Ze)>3?"":" "}function Cw(e,t){for(;--t&&Bt()&&!(Ze<48||Ze>102||Ze>57&&Ze<65||Ze>70&&Ze<97););return Ps(e,Tl()+(t<6&&On()==32&&Bt()==32))}function wd(e){for(;Bt();)switch(Ze){case e:return Mt;case 34:case 39:e!==34&&e!==39&&wd(Ze);break;case 40:e===41&&wd(e);break;case 92:Bt();break}return Mt}function kw(e,t){for(;Bt()&&e+Ze!==47+10;)if(e+Ze===42+42&&On()===47)break;return"/*"+Ps(t,Mt-1)+"*"+za(e===47?e:Bt())}function Rw(e){for(;!ys(On());)Bt();return Ps(e,Mt)}function Ew(e){return T0(Ml("",null,null,null,[""],e=_0(e),0,[0],e))}function Ml(e,t,n,r,o,i,s,l,a){for(var u=0,c=0,d=s,f=0,m=0,S=0,g=1,R=1,v=1,h=0,p="",y=o,b=i,k=r,C=p;R;)switch(S=h,h=Bt()){case 40:if(S!=108&&dt(C,d-1)==58){xd(C+=be(Ol(h),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:C+=Ol(h);break;case 9:case 10:case 13:case 32:C+=bw(S);break;case 92:C+=Cw(Tl()-1,7);continue;case 47:switch(On()){case 42:case 47:rl($w(kw(Bt(),Tl()),t,n),a);break;default:C+="/"}break;case 123*g:l[u++]=Rn(C)*v;case 125*g:case 59:case 0:switch(h){case 0:case 125:R=0;case 59+c:v==-1&&(C=be(C,/\f/g,"")),m>0&&Rn(C)-d&&rl(m>32?jh(C+";",r,n,d-1):jh(be(C," ","")+";",r,n,d-2),a);break;case 59:C+=";";default:if(rl(k=Bh(C,t,n,u,c,o,l,p,y=[],b=[],d),i),h===123)if(c===0)Ml(C,t,k,k,y,i,d,l,b);else switch(f===99&&dt(C,3)===110?100:f){case 100:case 108:case 109:case 115:Ml(e,k,k,r&&rl(Bh(e,k,k,0,0,o,l,p,o,y=[],d),b),o,b,d,l,r?y:b);break;default:Ml(C,k,k,k,[""],b,0,l,b)}}u=c=m=0,g=v=1,p=C="",d=s;break;case 58:d=1+Rn(C),m=S;default:if(g<1){if(h==123)--g;else if(h==125&&g++==0&&ww()==125)continue}switch(C+=za(h),h*g){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Rn(C)-1)*v,v=1;break;case 64:On()===45&&(C+=Ol(Bt())),f=On(),c=d=Rn(p=C+=Rw(Tl())),h++;break;case 45:S===45&&Rn(C)==2&&(g=0)}}return i}function Bh(e,t,n,r,o,i,s,l,a,u,c){for(var d=o-1,f=o===0?i:[""],m=Vf(f),S=0,g=0,R=0;S<r;++S)for(var v=0,h=vs(e,d+1,d=mw(g=s[S])),p=e;v<m;++v)(p=$0(g>0?f[v]+" "+h:be(h,/&\f/g,f[v])))&&(a[R++]=p);return Ba(e,t,n,o===0?Bf:l,a,u,c)}function $w(e,t,n){return Ba(e,t,n,R0,za(xw()),vs(e,2,-2),0)}function jh(e,t,n,r){return Ba(e,t,n,jf,vs(e,0,r),vs(e,r+1,-1),r)}function Fo(e,t){for(var n="",r=Vf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Pw(e,t,n,r){switch(e.type){case hw:if(e.children.length)break;case pw:case jf:return e.return=e.return||e.value;case R0:return"";case E0:return e.return=e.value+"{"+Fo(e.children,r)+"}";case Bf:e.value=e.props.join(",")}return Rn(n=Fo(e.children,r))?e.return=e.value+"{"+n+"}":""}function _w(e){var t=Vf(e);return function(n,r,o,i){for(var s="",l=0;l<t;l++)s+=e[l](n,r,o,i)||"";return s}}function Tw(e){return function(t){t.root||(t=t.return)&&e(t)}}var Ow=function(t,n,r){for(var o=0,i=0;o=i,i=On(),o===38&&i===12&&(n[r]=1),!ys(i);)Bt();return Ps(t,Mt)},Mw=function(t,n){var r=-1,o=44;do switch(ys(o)){case 0:o===38&&On()===12&&(n[r]=1),t[r]+=Ow(Mt-1,n,r);break;case 2:t[r]+=Ol(o);break;case 4:if(o===44){t[++r]=On()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=za(o)}while(o=Bt());return t},Iw=function(t,n){return T0(Mw(_0(t),n))},Vh=new WeakMap,Aw=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&&!Vh.get(r))&&!o){Vh.set(t,!0);for(var i=[],s=Iw(n,i),l=r.props,a=0,u=0;a<s.length;a++)for(var c=0;c<l.length;c++,u++)t.props[u]=i[a]?s[a].replace(/&\f/g,l[c]):l[c]+" "+s[a]}}},Lw=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function O0(e,t){switch(vw(e,t)){case 5103:return we+"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 we+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return we+e+ua+e+gt+e+e;case 6828:case 4268:return we+e+gt+e+e;case 6165:return we+e+gt+"flex-"+e+e;case 5187:return we+e+be(e,/(\w+).+(:[^]+)/,we+"box-$1$2"+gt+"flex-$1$2")+e;case 5443:return we+e+gt+"flex-item-"+be(e,/flex-|-self/,"")+e;case 4675:return we+e+gt+"flex-line-pack"+be(e,/align-content|flex-|-self/,"")+e;case 5548:return we+e+gt+be(e,"shrink","negative")+e;case 5292:return we+e+gt+be(e,"basis","preferred-size")+e;case 6060:return we+"box-"+be(e,"-grow","")+we+e+gt+be(e,"grow","positive")+e;case 4554:return we+be(e,/([^-])(transform)/g,"$1"+we+"$2")+e;case 6187:return be(be(be(e,/(zoom-|grab)/,we+"$1"),/(image-set)/,we+"$1"),e,"")+e;case 5495:case 3959:return be(e,/(image-set\([^]*)/,we+"$1$`$1");case 4968:return be(be(e,/(.+:)(flex-)?(.*)/,we+"box-pack:$3"+gt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+we+e+e;case 4095:case 3583:case 4068:case 2532:return be(e,/(.+)-inline(.+)/,we+"$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(Rn(e)-1-t>6)switch(dt(e,t+1)){case 109:if(dt(e,t+4)!==45)break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+we+"$2-$3$1"+ua+(dt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xd(e,"stretch")?O0(be(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(dt(e,t+1)!==115)break;case 6444:switch(dt(e,Rn(e)-3-(~xd(e,"!important")&&10))){case 107:return be(e,":",":"+we)+e;case 101:return be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+we+(dt(e,14)===45?"inline-":"")+"box$3$1"+we+"$2$3$1"+gt+"$2box$3")+e}break;case 5936:switch(dt(e,t+11)){case 114:return we+e+gt+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return we+e+gt+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return we+e+gt+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return we+e+gt+e+e}return e}var Fw=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case jf:t.return=O0(t.value,t.length);break;case E0:return Fo([Si(t,{value:be(t.value,"@","@"+we)})],o);case Bf:if(t.length)return Sw(t.props,function(i){switch(yw(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fo([Si(t,{props:[be(i,/:(read-\w+)/,":"+ua+"$1")]})],o);case"::placeholder":return Fo([Si(t,{props:[be(i,/:(plac\w+)/,":"+we+"input-$1")]}),Si(t,{props:[be(i,/:(plac\w+)/,":"+ua+"$1")]}),Si(t,{props:[be(i,/:(plac\w+)/,gt+"input-$1")]})],o)}return""})}},Nw=[Fw],zw=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var R=g.getAttribute("data-emotion");R.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||Nw,i={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var R=g.getAttribute("data-emotion").split(" "),v=1;v<R.length;v++)i[R[v]]=!0;l.push(g)});var a,u=[Aw,Lw];{var c,d=[Pw,Tw(function(g){c.insert(g)})],f=_w(u.concat(o,d)),m=function(R){return Fo(Ew(R),f)};a=function(R,v,h,p){c=h,m(R?R+"{"+v.styles+"}":v.styles),p&&(S.inserted[v.name]=!0)}}var S={key:n,sheet:new fw({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:a};return S.sheet.hydrate(l),S},M0={exports:{}},Pe={};/** @license React v16.13.1
|
|
41
|
+
* react-is.production.min.js
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/var at=typeof Symbol=="function"&&Symbol.for,Hf=at?Symbol.for("react.element"):60103,Uf=at?Symbol.for("react.portal"):60106,ja=at?Symbol.for("react.fragment"):60107,Va=at?Symbol.for("react.strict_mode"):60108,Ha=at?Symbol.for("react.profiler"):60114,Ua=at?Symbol.for("react.provider"):60109,Wa=at?Symbol.for("react.context"):60110,Wf=at?Symbol.for("react.async_mode"):60111,Ga=at?Symbol.for("react.concurrent_mode"):60111,Ka=at?Symbol.for("react.forward_ref"):60112,qa=at?Symbol.for("react.suspense"):60113,Dw=at?Symbol.for("react.suspense_list"):60120,Ya=at?Symbol.for("react.memo"):60115,Xa=at?Symbol.for("react.lazy"):60116,Bw=at?Symbol.for("react.block"):60121,jw=at?Symbol.for("react.fundamental"):60117,Vw=at?Symbol.for("react.responder"):60118,Hw=at?Symbol.for("react.scope"):60119;function Wt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Hf:switch(e=e.type,e){case Wf:case Ga:case ja:case Ha:case Va:case qa:return e;default:switch(e=e&&e.$$typeof,e){case Wa:case Ka:case Xa:case Ya:case Ua:return e;default:return t}}case Uf:return t}}}function I0(e){return Wt(e)===Ga}Pe.AsyncMode=Wf;Pe.ConcurrentMode=Ga;Pe.ContextConsumer=Wa;Pe.ContextProvider=Ua;Pe.Element=Hf;Pe.ForwardRef=Ka;Pe.Fragment=ja;Pe.Lazy=Xa;Pe.Memo=Ya;Pe.Portal=Uf;Pe.Profiler=Ha;Pe.StrictMode=Va;Pe.Suspense=qa;Pe.isAsyncMode=function(e){return I0(e)||Wt(e)===Wf};Pe.isConcurrentMode=I0;Pe.isContextConsumer=function(e){return Wt(e)===Wa};Pe.isContextProvider=function(e){return Wt(e)===Ua};Pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hf};Pe.isForwardRef=function(e){return Wt(e)===Ka};Pe.isFragment=function(e){return Wt(e)===ja};Pe.isLazy=function(e){return Wt(e)===Xa};Pe.isMemo=function(e){return Wt(e)===Ya};Pe.isPortal=function(e){return Wt(e)===Uf};Pe.isProfiler=function(e){return Wt(e)===Ha};Pe.isStrictMode=function(e){return Wt(e)===Va};Pe.isSuspense=function(e){return Wt(e)===qa};Pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ja||e===Ga||e===Ha||e===Va||e===qa||e===Dw||typeof e=="object"&&e!==null&&(e.$$typeof===Xa||e.$$typeof===Ya||e.$$typeof===Ua||e.$$typeof===Wa||e.$$typeof===Ka||e.$$typeof===jw||e.$$typeof===Vw||e.$$typeof===Hw||e.$$typeof===Bw)};Pe.typeOf=Wt;M0.exports=Pe;var Uw=M0.exports,A0=Uw,Ww={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},L0={};L0[A0.ForwardRef]=Ww;L0[A0.Memo]=Gw;var Kw=!0;function qw(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var F0=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Kw===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},N0=function(t,n,r){F0(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Yw(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 Xw={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},Qw=/[A-Z]|^ms/g,Zw=/_EMO_([^_]+?)_([^]*?)_EMO_/g,z0=function(t){return t.charCodeAt(1)===45},Hh=function(t){return t!=null&&typeof t!="boolean"},ic=k0(function(e){return z0(e)?e:e.replace(Qw,"-$&").toLowerCase()}),Uh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Zw,function(r,o,i){return En={name:o,styles:i,next:En},o})}return Xw[t]!==1&&!z0(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ss(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 En={name:n.name,styles:n.styles,next:En},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)En={name:r.name,styles:r.styles,next:En},r=r.next;var o=n.styles+";";return o}return Jw(e,t,n)}case"function":{if(e!==void 0){var i=En,s=n(e);return En=i,Ss(e,t,s)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function Jw(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ss(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=i+"{"+t[s]+"}":Hh(s)&&(r+=ic(i)+":"+Uh(i,s)+";");else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var l=0;l<s.length;l++)Hh(s[l])&&(r+=ic(i)+":"+Uh(i,s[l])+";");else{var a=Ss(e,t,s);switch(i){case"animation":case"animationName":{r+=ic(i)+":"+a+";";break}default:r+=i+"{"+a+"}"}}}return r}var Wh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,En,Gf=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";En=void 0;var s=t[0];s==null||s.raw===void 0?(o=!1,i+=Ss(r,n,s)):i+=s[0];for(var l=1;l<t.length;l++)i+=Ss(r,n,t[l]),o&&(i+=s[l]);Wh.lastIndex=0;for(var a="",u;(u=Wh.exec(i))!==null;)a+="-"+u[1];var c=Yw(i)+a;return{name:c,styles:i,next:En}},eb=function(t){return t()},D0=Nl["useInsertionEffect"]?Nl["useInsertionEffect"]:!1,tb=D0||eb,Gh=D0||x.useLayoutEffect,B0=x.createContext(typeof HTMLElement<"u"?zw({key:"css"}):null);B0.Provider;var j0=function(t){return x.forwardRef(function(n,r){var o=x.useContext(B0);return t(n,o,r)})},Qa=x.createContext({}),nb=j0(function(e,t){var n=e.styles,r=Gf([n],void 0,x.useContext(Qa)),o=x.useRef();return Gh(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,a=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),a!==null&&(l=!0,a.setAttribute("data-emotion",i),s.hydrate([a])),o.current=[s,l],function(){s.flush()}},[t]),Gh(function(){var i=o.current,s=i[0],l=i[1];if(l){i[1]=!1;return}if(r.next!==void 0&&N0(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 rb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Gf(t)}var Kf=function(){var t=rb.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_"}}},ob=uw,ib=function(t){return t!=="theme"},Kh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?ob:ib},qh=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},sb=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return F0(n,r,o),tb(function(){return N0(n,r,o)}),null},lb=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var l=qh(t,n,r),a=l||Kh(o),u=!a("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,m=1;m<f;m++)d.push(c[m],c[0][m])}var S=j0(function(g,R,v){var h=u&&g.as||o,p="",y=[],b=g;if(g.theme==null){b={};for(var k in g)b[k]=g[k];b.theme=x.useContext(Qa)}typeof g.className=="string"?p=qw(R.registered,y,g.className):g.className!=null&&(p=g.className+" ");var C=Gf(d.concat(y),R.registered,b);p+=R.key+"-"+C.name,s!==void 0&&(p+=" "+s);var $=u&&l===void 0?Kh(h):a,T={};for(var P in g)u&&P==="as"||$(P)&&(T[P]=g[P]);return T.className=p,T.ref=v,x.createElement(x.Fragment,null,x.createElement(sb,{cache:R,serialized:C,isStringTag:typeof h=="string"}),x.createElement(h,T))});return S.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=o,S.__emotion_styles=d,S.__emotion_forwardProp=l,Object.defineProperty(S,"toString",{value:function(){return"."+s}}),S.withComponent=function(g,R){return e(g,w({},n,R,{shouldForwardProp:qh(S,R,!0)})).apply(void 0,d)},S}},ab=["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"],bd=lb.bind();ab.forEach(function(e){bd[e]=bd(e)});function ub(e){return e==null||Object.keys(e).length===0}function cb(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(ub(o)?n:o):t;return E.jsx(nb,{styles:r})}/**
|
|
48
|
+
* @mui/styled-engine v5.12.3
|
|
49
|
+
*
|
|
50
|
+
* @license MIT
|
|
51
|
+
* This source code is licensed under the MIT license found in the
|
|
52
|
+
* LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/function V0(e,t){return bd(e,t)}const db=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Z(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const fb=["values","unit","step"],pb=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)=>w({},n,{[r.key]:r.val}),{})};function hb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Z(e,fb),i=pb(t),s=Object.keys(i);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function a(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,m){const S=s.indexOf(m);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(S!==-1&&typeof t[s[S]]=="number"?t[s[S]]:m)-r/100}${n})`}function c(f){return s.indexOf(f)+1<s.length?u(f,s[s.indexOf(f)+1]):l(f)}function d(f){const m=s.indexOf(f);return m===0?l(s[1]):m===s.length-1?a(s[m]):u(f,s[s.indexOf(f)+1]).replace("@media","@media not all and")}return w({keys:s,values:i,up:l,down:a,between:u,only:c,not:d,unit:n},o)}const mb={borderRadius:4},gb=mb;function qi(e,t){return t?_t(e,t,{clone:!1}):e}const qf={xs:0,sm:600,md:900,lg:1200,xl:1536},Yh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qf[e]}px)`};function bn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Yh;return t.reduce((s,l,a)=>(s[i.up(i.keys[a])]=n(t[a]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Yh;return Object.keys(t).reduce((s,l)=>{if(Object.keys(i.values||qf).indexOf(l)!==-1){const a=i.up(l);s[a]=n(t[l],l)}else{const a=l;s[a]=t[a]}return s},{})}return n(t)}function H0(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function U0(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function vb(e,...t){const n=H0(e),r=[n,...t].reduce((o,i)=>_t(o,i),{});return U0(Object.keys(n),r)}function yb(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function sc({values:e,breakpoints:t,base:n}){const r=n||yb(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((s,l,a)=>(Array.isArray(e)?(s[l]=e[a]!=null?e[a]:e[i],i=a):typeof e=="object"?(s[l]=e[l]!=null?e[l]:e[i],i=l):s[l]=e,s),{})}function Za(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ca(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Za(e,n)||r,t&&(o=t(o,r,e)),o}function ke(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const l=s[t],a=s.theme,u=Za(a,r)||{};return bn(s,l,d=>{let f=ca(u,o,d);return d===f&&typeof d=="string"&&(f=ca(u,o,`${t}${d==="default"?"":he(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function Sb(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const xb={m:"margin",p:"padding"},wb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bb=Sb(e=>{if(e.length>2)if(Xh[e])e=Xh[e];else return[e];const[t,n]=e.split(""),r=xb[t],o=wb[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Yf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Xf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Yf,...Xf];function _s(e,t,n,r){var o;const i=(o=Za(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Qf(e){return _s(e,"spacing",8)}function Kr(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 Cb(e,t){return n=>e.reduce((r,o)=>(r[o]=Kr(t,n),r),{})}function kb(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=bb(n),i=Cb(o,r),s=e[n];return bn(e,s,i)}function W0(e,t){const n=Qf(e.theme);return Object.keys(e).map(r=>kb(e,t,r,n)).reduce(qi,{})}function Ue(e){return W0(e,Yf)}Ue.propTypes={};Ue.filterProps=Yf;function We(e){return W0(e,Xf)}We.propTypes={};We.filterProps=Xf;function Rb(e=8){if(e.mui)return e;const t=Qf({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Ja(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?qi(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Pn(e){return typeof e!="number"?e:`${e}px solid`}const Eb=ke({prop:"border",themeKey:"borders",transform:Pn}),$b=ke({prop:"borderTop",themeKey:"borders",transform:Pn}),Pb=ke({prop:"borderRight",themeKey:"borders",transform:Pn}),_b=ke({prop:"borderBottom",themeKey:"borders",transform:Pn}),Tb=ke({prop:"borderLeft",themeKey:"borders",transform:Pn}),Ob=ke({prop:"borderColor",themeKey:"palette"}),Mb=ke({prop:"borderTopColor",themeKey:"palette"}),Ib=ke({prop:"borderRightColor",themeKey:"palette"}),Ab=ke({prop:"borderBottomColor",themeKey:"palette"}),Lb=ke({prop:"borderLeftColor",themeKey:"palette"}),eu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=_s(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Kr(t,r)});return bn(e,e.borderRadius,n)}return null};eu.propTypes={};eu.filterProps=["borderRadius"];Ja(Eb,$b,Pb,_b,Tb,Ob,Mb,Ib,Ab,Lb,eu);const tu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=_s(e.theme,"spacing",8),n=r=>({gap:Kr(t,r)});return bn(e,e.gap,n)}return null};tu.propTypes={};tu.filterProps=["gap"];const nu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=_s(e.theme,"spacing",8),n=r=>({columnGap:Kr(t,r)});return bn(e,e.columnGap,n)}return null};nu.propTypes={};nu.filterProps=["columnGap"];const ru=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=_s(e.theme,"spacing",8),n=r=>({rowGap:Kr(t,r)});return bn(e,e.rowGap,n)}return null};ru.propTypes={};ru.filterProps=["rowGap"];const Fb=ke({prop:"gridColumn"}),Nb=ke({prop:"gridRow"}),zb=ke({prop:"gridAutoFlow"}),Db=ke({prop:"gridAutoColumns"}),Bb=ke({prop:"gridAutoRows"}),jb=ke({prop:"gridTemplateColumns"}),Vb=ke({prop:"gridTemplateRows"}),Hb=ke({prop:"gridTemplateAreas"}),Ub=ke({prop:"gridArea"});Ja(tu,nu,ru,Fb,Nb,zb,Db,Bb,jb,Vb,Hb,Ub);function No(e,t){return t==="grey"?t:e}const Wb=ke({prop:"color",themeKey:"palette",transform:No}),Gb=ke({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:No}),Kb=ke({prop:"backgroundColor",themeKey:"palette",transform:No});Ja(Wb,Gb,Kb);function Nt(e){return e<=1&&e!==0?`${e*100}%`:e}const qb=ke({prop:"width",transform:Nt}),Zf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,i;return{maxWidth:((r=e.theme)==null||(o=r.breakpoints)==null||(i=o.values)==null?void 0:i[n])||qf[n]||Nt(n)}};return bn(e,e.maxWidth,t)}return null};Zf.filterProps=["maxWidth"];const Yb=ke({prop:"minWidth",transform:Nt}),Xb=ke({prop:"height",transform:Nt}),Qb=ke({prop:"maxHeight",transform:Nt}),Zb=ke({prop:"minHeight",transform:Nt});ke({prop:"size",cssProperty:"width",transform:Nt});ke({prop:"size",cssProperty:"height",transform:Nt});const Jb=ke({prop:"boxSizing"});Ja(qb,Zf,Yb,Xb,Qb,Zb,Jb);const eC={border:{themeKey:"borders",transform:Pn},borderTop:{themeKey:"borders",transform:Pn},borderRight:{themeKey:"borders",transform:Pn},borderBottom:{themeKey:"borders",transform:Pn},borderLeft:{themeKey:"borders",transform:Pn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:eu},color:{themeKey:"palette",transform:No},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:No},backgroundColor:{themeKey:"palette",transform:No},p:{style:We},pt:{style:We},pr:{style:We},pb:{style:We},pl:{style:We},px:{style:We},py:{style:We},padding:{style:We},paddingTop:{style:We},paddingRight:{style:We},paddingBottom:{style:We},paddingLeft:{style:We},paddingX:{style:We},paddingY:{style:We},paddingInline:{style:We},paddingInlineStart:{style:We},paddingInlineEnd:{style:We},paddingBlock:{style:We},paddingBlockStart:{style:We},paddingBlockEnd:{style:We},m:{style:Ue},mt:{style:Ue},mr:{style:Ue},mb:{style:Ue},ml:{style:Ue},mx:{style:Ue},my:{style:Ue},margin:{style:Ue},marginTop:{style:Ue},marginRight:{style:Ue},marginBottom:{style:Ue},marginLeft:{style:Ue},marginX:{style:Ue},marginY:{style:Ue},marginInline:{style:Ue},marginInlineStart:{style:Ue},marginInlineEnd:{style:Ue},marginBlock:{style:Ue},marginBlockStart:{style:Ue},marginBlockEnd:{style:Ue},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:tu},rowGap:{style:ru},columnGap:{style:nu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Nt},maxWidth:{style:Zf},minWidth:{transform:Nt},height:{transform:Nt},maxHeight:{transform:Nt},minHeight:{transform:Nt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},ou=eC;function tC(...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 nC(e,t){return typeof e=="function"?e(t):e}function rC(){function e(n,r,o,i){const s={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:u,transform:c,style:d}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Za(o,u)||{};return d?d(s):bn(s,r,S=>{let g=ca(f,c,S);return S===g&&typeof S=="string"&&(g=ca(f,c,`${n}${S==="default"?"":he(S)}`,S)),a===!1?g:{[a]:g}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:ou;function l(a){let u=a;if(typeof a=="function")u=a(i);else if(typeof a!="object")return a;if(!u)return null;const c=H0(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(m=>{const S=nC(u[m],i);if(S!=null)if(typeof S=="object")if(s[m])f=qi(f,e(m,S,i,s));else{const g=bn({theme:i},S,R=>({[m]:R}));tC(g,S)?f[m]=t({sx:S,theme:i}):f=qi(f,g)}else f=qi(f,e(m,S,i,s))}),U0(d,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const G0=rC();G0.filterProps=["sx"];const iu=G0,oC=["breakpoints","palette","spacing","shape"];function su(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=Z(e,oC),l=hb(n),a=Rb(o);let u=_t({breakpoints:l,direction:"ltr",components:{},palette:w({mode:"light"},r),spacing:a,shape:w({},gb,i)},s);return u=t.reduce((c,d)=>_t(c,d),u),u.unstable_sxConfig=w({},ou,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return iu({sx:d,theme:this})},u}function iC(e){return Object.keys(e).length===0}function lu(e=null){const t=x.useContext(Qa);return!t||iC(t)?e:t}const sC=su();function au(e=sC){return lu(e)}function lC({styles:e,themeId:t,defaultTheme:n={}}){const r=au(n),o=typeof e=="function"?e(t&&r[t]||r):e;return E.jsx(cb,{styles:o})}const aC=["sx"],uC=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ou;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Jf(e){const{sx:t}=e,n=Z(e,aC),{systemProps:r,otherProps:o}=uC(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const l=t(...s);return Ir(l)?w({},r,l):r}:i=w({},r,t),w({},o,{sx:i})}function K0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=K0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function q0(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=K0(e))&&(r&&(r+=" "),r+=t);return r}const cC=["className","component"];function dC(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=V0("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(iu);return x.forwardRef(function(a,u){const c=au(n),d=Jf(a),{className:f,component:m="div"}=d,S=Z(d,cC);return E.jsx(i,w({as:m,ref:u,className:q0(f,o?o(r):r),theme:t&&c[t]||c},S))})}const fC=["variant"];function Qh(e){return e.length===0}function Y0(e){const{variant:t}=e,n=Z(e,fC);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=Qh(r)?e[o]:he(e[o]):r+=`${Qh(r)?o:he(o)}${he(e[o].toString())}`}),r}const pC=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function hC(e){return Object.keys(e).length===0}function mC(e){return typeof e=="string"&&e.charCodeAt(0)>96}const gC=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,vC=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=Y0(o.props);r[i]=o.style}),r},yC=(e,t,n,r)=>{var o,i;const{ownerState:s={}}=e,l=[],a=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return a&&a.forEach(u=>{let c=!0;Object.keys(u.props).forEach(d=>{s[d]!==u.props[d]&&e[d]!==u.props[d]&&(c=!1)}),c&&l.push(t[Y0(u.props)])}),l};function Yi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const SC=su();function xi({defaultTheme:e,theme:t,themeId:n}){return hC(t)?e:t[n]||t}function X0(e={}){const{themeId:t,defaultTheme:n=SC,rootShouldForwardProp:r=Yi,slotShouldForwardProp:o=Yi}=e,i=s=>iu(w({},s,{theme:xi(w({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,l={})=>{db(s,y=>y.filter(b=>!(b!=null&&b.__mui_systemSx)));const{name:a,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f}=l,m=Z(l,pC),S=c!==void 0?c:u&&u!=="Root"||!1,g=d||!1;let R,v=Yi;u==="Root"?v=r:u?v=o:mC(s)&&(v=void 0);const h=V0(s,w({shouldForwardProp:v,label:R},m)),p=(y,...b)=>{const k=b?b.map(P=>typeof P=="function"&&P.__emotion_real!==P?O=>P(w({},O,{theme:xi(w({},O,{defaultTheme:n,themeId:t}))})):P):[];let C=y;a&&f&&k.push(P=>{const O=xi(w({},P,{defaultTheme:n,themeId:t})),V=gC(a,O);if(V){const z={};return Object.entries(V).forEach(([M,I])=>{z[M]=typeof I=="function"?I(w({},P,{theme:O})):I}),f(P,z)}return null}),a&&!S&&k.push(P=>{const O=xi(w({},P,{defaultTheme:n,themeId:t}));return yC(P,vC(a,O),O,a)}),g||k.push(i);const $=k.length-b.length;if(Array.isArray(y)&&$>0){const P=new Array($).fill("");C=[...y,...P],C.raw=[...y.raw,...P]}else typeof y=="function"&&y.__emotion_real!==y&&(C=P=>y(w({},P,{theme:xi(w({},P,{defaultTheme:n,themeId:t}))})));const T=h(C,...k);return s.muiName&&(T.muiName=s.muiName),T};return h.withConfig&&(p.withConfig=h.withConfig),p}}const xC=X0(),Q0=xC;function Z0(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:C0(t.components[n].defaultProps,r)}function J0({props:e,name:t,defaultTheme:n,themeId:r}){let o=au(n);return r&&(o=o[r]||o),Z0({theme:o,name:t,props:e})}function ep(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function wC(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 qr(e){if(e.type)return e;if(e.charAt(0)==="#")return qr(wC(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Sr(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(Sr(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function uu(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function bC(e){e=qr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let l="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),uu({type:l,values:a})}function Zh(e){e=qr(e);let t=e.type==="hsl"||e.type==="hsla"?qr(bC(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 CC(e,t){const n=Zh(e),r=Zh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function gn(e,t){return e=qr(e),t=ep(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,uu(e)}function ey(e,t){if(e=qr(e),t=ep(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 uu(e)}function ty(e,t){if(e=qr(e),t=ep(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 uu(e)}const kC=x.createContext(null),ny=kC;function ry(){return x.useContext(ny)}const RC=typeof Symbol=="function"&&Symbol.for,EC=RC?Symbol.for("mui.nested"):"__THEME_NESTED__";function $C(e,t){return typeof t=="function"?t(e):w({},e,t)}function PC(e){const{children:t,theme:n}=e,r=ry(),o=x.useMemo(()=>{const i=r===null?n:$C(r,n);return i!=null&&(i[EC]=r!==null),i},[n,r]);return E.jsx(ny.Provider,{value:o,children:t})}const Jh={};function em(e,t,n,r=!1){return x.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),s=e?w({},t,{[e]:i}):i;return r?()=>s:s}return e?w({},t,{[e]:n}):w({},t,n)},[e,t,n,r])}function _C(e){const{children:t,theme:n,themeId:r}=e,o=lu(Jh),i=ry()||Jh,s=em(r,o,n),l=em(r,i,n,!0);return E.jsx(PC,{theme:l,children:E.jsx(Qa.Provider,{value:s,children:t})})}const TC=["component","direction","spacing","divider","children","className","useFlexGap"],OC=su(),MC=Q0("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function IC(e){return J0({props:e,name:"MuiStack",defaultTheme:OC})}function AC(e,t){const n=x.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(x.cloneElement(t,{key:`separator-${i}`})),r),[])}const LC=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],FC=({ownerState:e,theme:t})=>{let n=w({display:"flex",flexDirection:"column"},bn({theme:t},sc({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=Qf(t),o=Object.keys(t.breakpoints.values).reduce((a,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(a[u]=!0),a),{}),i=sc({values:e.direction,base:o}),s=sc({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((a,u,c)=>{if(!i[a]){const f=u>0?i[c[u-1]]:"column";i[a]=f}}),n=_t(n,bn({theme:t},s,(a,u)=>e.useFlexGap?{gap:Kr(r,a)}:{"& > :not(style) + :not(style)":{margin:0,[`margin${LC(u?i[u]:e.direction)}`]:Kr(r,a)}}))}return n=vb(t.breakpoints,n),n};function NC(e={}){const{createStyledComponent:t=MC,useThemeProps:n=IC,componentName:r="MuiStack"}=e,o=()=>Me({root:["root"]},a=>_e(r,a),{}),i=t(FC);return x.forwardRef(function(a,u){const c=n(a),d=Jf(c),{component:f="div",direction:m="column",spacing:S=0,divider:g,children:R,className:v,useFlexGap:h=!1}=d,p=Z(d,TC),y={direction:m,spacing:S,useFlexGap:h},b=o();return E.jsx(i,w({as:f,ownerState:y,ref:u,className:q0(b.root,v)},p,{children:g?AC(R,g):R}))})}function zC(e,t,n,r,o){const[i,s]=x.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return tn(()=>{let l=!0;if(!n)return;const a=n(e),u=()=>{l&&s(a.matches)};return u(),a.addListener(u),()=>{l=!1,a.removeListener(u)}},[e,n]),i}const oy=Nl["useSyncExternalStore"];function DC(e,t,n,r,o){const i=x.useCallback(()=>t,[t]),s=x.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return i},[i,e,r,o,n]),[l,a]=x.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[i,n,e]);return oy(a,l,s)}function BC(e,t={}){const n=lu(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:l=!1}=Z0({name:"MuiUseMediaQuery",props:t,theme:n});let a=typeof e=="function"?e(n):e;return a=a.replace(/^@media( ?)/m,""),(oy!==void 0?DC:zC)(a,o,i,s,l)}const Yr="$$material";function jC(e,t){return w({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const VC={black:"#000",white:"#fff"},xs=VC,HC={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"},UC=HC,WC={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"},ao=WC,GC={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"},uo=GC,KC={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"},wi=KC,qC={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"},co=qC,YC={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"},fo=YC,XC={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"},po=XC,QC=["mode","contrastThreshold","tonalOffset"],tm={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:xs.white,default:xs.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}},lc={text:{primary:xs.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:xs.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 nm(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ty(e.main,o):t==="dark"&&(e.dark=ey(e.main,i)))}function ZC(e="light"){return e==="dark"?{main:co[200],light:co[50],dark:co[400]}:{main:co[700],light:co[400],dark:co[800]}}function JC(e="light"){return e==="dark"?{main:ao[200],light:ao[50],dark:ao[400]}:{main:ao[500],light:ao[300],dark:ao[700]}}function ek(e="light"){return e==="dark"?{main:uo[500],light:uo[300],dark:uo[700]}:{main:uo[700],light:uo[400],dark:uo[800]}}function tk(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:fo[700],light:fo[500],dark:fo[900]}}function nk(e="light"){return e==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:po[800],light:po[500],dark:po[900]}}function rk(e="light"){return e==="dark"?{main:wi[400],light:wi[300],dark:wi[700]}:{main:"#ed6c02",light:wi[500],dark:wi[900]}}function ok(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Z(e,QC),i=e.primary||ZC(t),s=e.secondary||JC(t),l=e.error||ek(t),a=e.info||tk(t),u=e.success||nk(t),c=e.warning||rk(t);function d(g){return CC(g,lc.text.primary)>=n?lc.text.primary:tm.text.primary}const f=({color:g,name:R,mainShade:v=500,lightShade:h=300,darkShade:p=700})=>{if(g=w({},g),!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(Sr(11,R?` (${R})`:"",v));if(typeof g.main!="string")throw new Error(Sr(12,R?` (${R})`:"",JSON.stringify(g.main)));return nm(g,"light",h,r),nm(g,"dark",p,r),g.contrastText||(g.contrastText=d(g.main)),g},m={dark:lc,light:tm};return _t(w({common:w({},xs),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:a,name:"info"}),success:f({color:u,name:"success"}),grey:UC,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},m[t]),o)}const ik=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function sk(e){return Math.round(e*1e5)/1e5}const rm={textTransform:"uppercase"},om='"Roboto", "Helvetica", "Arial", sans-serif';function lk(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=om,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=Z(n,ik),m=o/14,S=d||(v=>`${v/u*m}rem`),g=(v,h,p,y,b)=>w({fontFamily:r,fontWeight:v,fontSize:S(h),lineHeight:p},r===om?{letterSpacing:`${sk(y/h)}em`}:{},b,c),R={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(l,14,1.75,.4,rm),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,rm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return _t(w({htmlFontSize:u,pxToRem:S,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:a},R),f,{clone:!1})}const ak=.2,uk=.14,ck=.12;function Ne(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ak})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${uk})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ck})`].join(",")}const dk=["none",Ne(0,2,1,-1,0,1,1,0,0,1,3,0),Ne(0,3,1,-2,0,2,2,0,0,1,5,0),Ne(0,3,3,-2,0,3,4,0,0,1,8,0),Ne(0,2,4,-1,0,4,5,0,0,1,10,0),Ne(0,3,5,-1,0,5,8,0,0,1,14,0),Ne(0,3,5,-1,0,6,10,0,0,1,18,0),Ne(0,4,5,-2,0,7,10,1,0,2,16,1),Ne(0,5,5,-3,0,8,10,1,0,3,14,2),Ne(0,5,6,-3,0,9,12,1,0,3,16,2),Ne(0,6,6,-3,0,10,14,1,0,4,18,3),Ne(0,6,7,-4,0,11,15,1,0,4,20,3),Ne(0,7,8,-4,0,12,17,2,0,5,22,4),Ne(0,7,8,-4,0,13,19,2,0,5,24,4),Ne(0,7,9,-4,0,14,21,2,0,5,26,4),Ne(0,8,9,-5,0,15,22,2,0,6,28,5),Ne(0,8,10,-5,0,16,24,2,0,6,30,5),Ne(0,8,11,-5,0,17,26,2,0,6,32,5),Ne(0,9,11,-5,0,18,28,2,0,7,34,6),Ne(0,9,12,-6,0,19,29,2,0,7,36,6),Ne(0,10,13,-6,0,20,31,3,0,8,38,7),Ne(0,10,13,-6,0,21,33,3,0,8,40,7),Ne(0,10,14,-6,0,22,35,3,0,8,42,7),Ne(0,11,14,-7,0,23,36,3,0,9,44,8),Ne(0,11,15,-7,0,24,38,3,0,9,46,8)],fk=dk,pk=["duration","easing","delay"],hk={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)"},mk={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function im(e){return`${Math.round(e)}ms`}function gk(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function vk(e){const t=w({},hk,e.easing),n=w({},mk,e.duration);return w({getAutoHeightDuration:gk,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:a=0}=i;return Z(i,pk),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:im(s)} ${l} ${typeof a=="string"?a:im(a)}`).join(",")}},e,{easing:t,duration:n})}const yk={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Sk=yk,xk=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function tp(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=Z(e,xk);if(e.vars)throw new Error(Sr(18));const l=ok(r),a=su(e);let u=_t(a,{mixins:jC(a.breakpoints,n),palette:l,shadows:fk.slice(),typography:lk(l,i),transitions:vk(o),zIndex:w({},Sk)});return u=_t(u,s),u=t.reduce((c,d)=>_t(c,d),u),u.unstable_sxConfig=w({},ou,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return iu({sx:d,theme:this})},u}const wk=tp(),cu=wk;function Ts(){const e=au(cu);return e[Yr]||e}function Ae({props:e,name:t}){return J0({props:e,name:t,defaultTheme:cu,themeId:Yr})}const Fn=e=>Yi(e)&&e!=="classes",np=Yi,bk=X0({themeId:Yr,defaultTheme:cu,rootShouldForwardProp:Fn}),Y=bk,Ck=["theme"];function kk(e){let{theme:t}=e,n=Z(e,Ck);const r=t[Yr];return E.jsx(_C,w({},n,{themeId:r?Yr:void 0,theme:r||t}))}const Rk=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},sm=Rk,An=Object.create(null);An.open="0";An.close="1";An.ping="2";An.pong="3";An.message="4";An.upgrade="5";An.noop="6";const Il=Object.create(null);Object.keys(An).forEach(e=>{Il[An[e]]=e});const Ek={type:"error",data:"parser error"},$k=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Pk=typeof ArrayBuffer=="function",_k=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,iy=({type:e,data:t},n,r)=>$k&&t instanceof Blob?n?r(t):lm(t,r):Pk&&(t instanceof ArrayBuffer||_k(t))?n?r(t):lm(new Blob([t]),r):r(An[e]+(t||"")),lm=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)},am="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Li=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<am.length;e++)Li[am.charCodeAt(e)]=e;const Tk=e=>{let t=e.length*.75,n=e.length,r,o=0,i,s,l,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)i=Li[e.charCodeAt(r)],s=Li[e.charCodeAt(r+1)],l=Li[e.charCodeAt(r+2)],a=Li[e.charCodeAt(r+3)],c[o++]=i<<2|s>>4,c[o++]=(s&15)<<4|l>>2,c[o++]=(l&3)<<6|a&63;return u},Ok=typeof ArrayBuffer=="function",sy=(e,t)=>{if(typeof e!="string")return{type:"message",data:ly(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Mk(e.substring(1),t)}:Il[n]?e.length>1?{type:Il[n],data:e.substring(1)}:{type:Il[n]}:Ek},Mk=(e,t)=>{if(Ok){const n=Tk(e);return ly(n,t)}else return{base64:!0,data:e}},ly=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},ay=String.fromCharCode(30),Ik=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{iy(i,!1,l=>{r[s]=l,++o===n&&t(r.join(ay))})})},Ak=(e,t)=>{const n=e.split(ay),r=[];for(let o=0;o<n.length;o++){const i=sy(n[o],t);if(r.push(i),i.type==="error")break}return r},uy=4;function et(e){if(e)return Lk(e)}function Lk(e){for(var t in et.prototype)e[t]=et.prototype[t];return e}et.prototype.on=et.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};et.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};et.prototype.off=et.prototype.removeListener=et.prototype.removeAllListeners=et.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};et.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};et.prototype.emitReserved=et.prototype.emit;et.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};et.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Yt=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function cy(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Fk=Yt.setTimeout,Nk=Yt.clearTimeout;function du(e,t){t.useNativeTimers?(e.setTimeoutFn=Fk.bind(Yt),e.clearTimeoutFn=Nk.bind(Yt)):(e.setTimeoutFn=Yt.setTimeout.bind(Yt),e.clearTimeoutFn=Yt.clearTimeout.bind(Yt))}const zk=1.33;function Dk(e){return typeof e=="string"?Bk(e):Math.ceil((e.byteLength||e.size)*zk)}function Bk(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}class jk extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class dy extends et{constructor(t){super(),this.writable=!1,du(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new jk(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=sy(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}}const fy="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Cd=64,Vk={};let um=0,ol=0,cm;function dm(e){let t="";do t=fy[e%Cd]+t,e=Math.floor(e/Cd);while(e>0);return t}function py(){const e=dm(+new Date);return e!==cm?(um=0,cm=e):e+"."+dm(um++)}for(;ol<Cd;ol++)Vk[fy[ol]]=ol;function hy(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Hk(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}let my=!1;try{my=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Uk=my;function gy(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Uk))return new XMLHttpRequest}catch{}if(!t)try{return new Yt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Wk(){}const Gk=function(){return new gy({xdomain:!1}).responseType!=null}();class Kk extends dy{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port,this.xs=t.secure!==r}const n=t&&t.forceBase64;this.supportsBinary=Gk&&!n}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Ak(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Ik(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=py()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const o=hy(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new Mn(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Mn extends et{constructor(t,n){super(),du(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=cy(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new gy(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=Mn.requestsCount++,Mn.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Wk,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Mn.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Mn.requestsCount=0;Mn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",fm);else if(typeof addEventListener=="function"){const e="onpagehide"in Yt?"pagehide":"unload";addEventListener(e,fm,!1)}}function fm(){for(let e in Mn.requests)Mn.requests.hasOwnProperty(e)&&Mn.requests[e].abort()}const vy=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),il=Yt.WebSocket||Yt.MozWebSocket,pm=!0,qk="arraybuffer",hm=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Yk extends dy{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=hm?{}:cy(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=pm&&!hm?n?new il(t,n):new il(t):new il(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||qk,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;iy(r,this.supportsBinary,i=>{const s={};try{pm&&this.ws.send(i)}catch{}o&&vy(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=py()),this.supportsBinary||(t.b64=1);const o=hy(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}check(){return!!il}}const Xk={websocket:Yk,polling:Kk},Qk=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Zk=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function kd(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=Qk.exec(e||""),i={},s=14;for(;s--;)i[Zk[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Jk(i,i.path),i.queryKey=eR(i,i.query),i}function Jk(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function eR(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let yy=class mo extends et{constructor(t,n={}){super(),this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=kd(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=kd(n.host).host),du(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Hk(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=uy,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new Xk[t](r)}open(){let t;if(this.opts.rememberUpgrade&&mo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;mo.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;mo.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function l(){s("transport closed")}function a(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",l),this.off("close",a),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",l),this.once("close",a),this.once("upgrading",u),n.open()}onOpen(){if(this.readyState="open",mo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t<n;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=Dk(o)),r>0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){mo.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;r<o;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}};yy.protocol=uy;function tR(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=kd(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}const nR=typeof ArrayBuffer=="function",rR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Sy=Object.prototype.toString,oR=typeof Blob=="function"||typeof Blob<"u"&&Sy.call(Blob)==="[object BlobConstructor]",iR=typeof File=="function"||typeof File<"u"&&Sy.call(File)==="[object FileConstructor]";function rp(e){return nR&&(e instanceof ArrayBuffer||rR(e))||oR&&e instanceof Blob||iR&&e instanceof File}function Al(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Al(e[n]))return!0;return!1}if(rp(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Al(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Al(e[n]))return!0;return!1}function sR(e){const t=[],n=e.data,r=e;return r.data=Rd(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Rd(e,t){if(!e)return e;if(rp(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Rd(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Rd(e[r],t));return n}return e}function lR(e,t){return e.data=Ed(e.data,t),delete e.attachments,e}function Ed(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Ed(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Ed(e[n],t));return e}const aR=5;var ge;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(ge||(ge={}));class uR{constructor(t){this.replacer=t}encode(t){return(t.type===ge.EVENT||t.type===ge.ACK)&&Al(t)?this.encodeAsBinary({type:t.type===ge.EVENT?ge.BINARY_EVENT:ge.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===ge.BINARY_EVENT||t.type===ge.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=sR(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}class op extends et{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===ge.BINARY_EVENT;r||n.type===ge.BINARY_ACK?(n.type=r?ge.EVENT:ge.ACK,this.reconstructor=new cR(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(rp(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(ge[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===ge.BINARY_EVENT||r.type===ge.BINARY_ACK){const i=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(i,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const i=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(i,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const i=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(i,n+1))}if(t.charAt(++n)){const i=this.tryParse(t.substr(n));if(op.isPayloadValid(r.type,i))r.data=i;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case ge.CONNECT:return typeof n=="object";case ge.DISCONNECT:return n===void 0;case ge.CONNECT_ERROR:return typeof n=="string"||typeof n=="object";case ge.EVENT:case ge.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="string"||typeof n[0]=="number");case ge.ACK:case ge.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class cR{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=lR(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const dR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:op,Encoder:uR,get PacketType(){return ge},protocol:aR},Symbol.toStringTag,{value:"Module"}));function fn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const fR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class xy extends et{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[fn(t,"open",this.onopen.bind(this)),fn(t,"packet",this.onpacket.bind(this)),fn(t,"error",this.onerror.bind(this)),fn(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(fR.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:ge.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const s=this.ids++,l=n.pop();this._registerAckCallback(s,l),r.id=s}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);n.call(this,new Error("operation has timed out"))},o);this.acks[t]=(...s)=>{this.io.clearTimeoutFn(i),n.apply(this,[null,...s])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((o,i)=>{n.push((s,l)=>r?s?i(s):o(l):o(s)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:ge.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case ge.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ge.EVENT:case ge.BINARY_EVENT:this.onevent(t);break;case ge.ACK:case ge.BINARY_ACK:this.onack(t);break;case ge.DISCONNECT:this.ondisconnect();break;case ge.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:ge.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ge.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function ri(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ri.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};ri.prototype.reset=function(){this.attempts=0};ri.prototype.setMin=function(e){this.ms=e};ri.prototype.setMax=function(e){this.max=e};ri.prototype.setJitter=function(e){this.jitter=e};class $d extends et{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,du(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new ri({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||dR;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new yy(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=fn(n,"open",function(){r.onopen(),t&&t()}),i=fn(n,"error",s=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",s),t?t(s):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&o();const l=this.setTimeoutFn(()=>{o(),n.close(),n.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&l.unref(),this.subs.push(function(){clearTimeout(l)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(fn(t,"ping",this.onping.bind(this)),fn(t,"data",this.ondata.bind(this)),fn(t,"error",this.onerror.bind(this)),fn(t,"close",this.onclose.bind(this)),fn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){vy(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new xy(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const bi={};function Ll(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=tR(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=bi[o]&&i in bi[o].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let a;return l?a=new $d(r,t):(bi[o]||(bi[o]=new $d(r,t)),a=bi[o]),n.query&&!t.query&&(t.query=n.queryKey),a.socket(n.path,t)}Object.assign(Ll,{Manager:$d,Socket:xy,io:Ll,connect:Ll});var pR=!0,ac="Invariant failed";function wy(e,t){if(!e){if(pR)throw new Error(ac);var n=typeof t=="function"?t():t,r=n?"".concat(ac,": ").concat(n):ac;throw new Error(r)}}const hR=tp(),mR=dC({themeId:Yr,defaultTheme:hR,defaultClassName:"MuiBox-root",generateClassName:Df.generate}),go=mR;function by(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=by(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function se(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=by(e))&&(r&&(r+=" "),r+=t);return r}function gr(e){return typeof e=="string"}function Fi(e,t,n){return e===void 0||gr(e)?t:w({},t,{ownerState:w({},t.ownerState,n)})}function gR(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const vR={disableDefaultClasses:!1},yR=x.createContext(vR);function Cy(e){const{disableDefaultClasses:t}=x.useContext(yR);return n=>t?"":e(n)}function SR(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 Pd(e,t){return typeof e=="function"?e(t):e}function ky(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ky(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function mm(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ky(e))&&(r&&(r+=" "),r+=t);return r}function gm(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 xR(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=mm(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),S=w({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),g=w({},n,o,r);return m.length>0&&(g.className=m),Object.keys(S).length>0&&(g.style=S),{props:g,internalRef:void 0}}const s=SR(w({},o,r)),l=gm(r),a=gm(o),u=t(s),c=mm(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=w({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=w({},u,n,a,l);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const wR=["elementType","externalSlotProps","ownerState"];function cn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=Z(e,wR),s=Pd(r,o),{props:l,internalRef:a}=xR(w({},i,{externalSlotProps:s})),u=Xe(a,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Fi(n,w({},l,{ref:u}),o)}const bR=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function CR(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 kR(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 RR(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||kR(e))}function ER(e){const t=[],n=[];return Array.from(e.querySelectorAll(bR)).forEach((r,o)=>{const i=CR(r);i===-1||!RR(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function $R(){return!0}function PR(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=ER,isEnabled:s=$R,open:l}=e,a=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),f=x.useRef(null),m=x.useRef(!1),S=x.useRef(null),g=Xe(t.ref,S),R=x.useRef(null);x.useEffect(()=>{!l||!S.current||(m.current=!n)},[n,l]),x.useEffect(()=>{if(!l||!S.current)return;const p=tt(S.current);return S.current.contains(p.activeElement)||(S.current.hasAttribute("tabIndex")||S.current.setAttribute("tabIndex","-1"),m.current&&S.current.focus()),()=>{o||(d.current&&d.current.focus&&(a.current=!0,d.current.focus()),d.current=null)}},[l]),x.useEffect(()=>{if(!l||!S.current)return;const p=tt(S.current),y=C=>{const{current:$}=S;if($!==null){if(!p.hasFocus()||r||!s()||a.current){a.current=!1;return}if(!$.contains(p.activeElement)){if(C&&f.current!==C.target||p.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!m.current)return;let O=[];if((p.activeElement===u.current||p.activeElement===c.current)&&(O=i(S.current)),O.length>0){var T,P;const V=!!((T=R.current)!=null&&T.shiftKey&&((P=R.current)==null?void 0:P.key)==="Tab"),z=O[0],M=O[O.length-1];typeof z!="string"&&typeof M!="string"&&(V?M.focus():z.focus())}else $.focus()}}},b=C=>{R.current=C,!(r||!s()||C.key!=="Tab")&&p.activeElement===S.current&&C.shiftKey&&(a.current=!0,c.current&&c.current.focus())};p.addEventListener("focusin",y),p.addEventListener("keydown",b,!0);const k=setInterval(()=>{p.activeElement&&p.activeElement.tagName==="BODY"&&y(null)},50);return()=>{clearInterval(k),p.removeEventListener("focusin",y),p.removeEventListener("keydown",b,!0)}},[n,r,o,s,l,i]);const v=p=>{d.current===null&&(d.current=p.relatedTarget),m.current=!0,f.current=p.target;const y=t.props.onFocus;y&&y(p)},h=p=>{d.current===null&&(d.current=p.relatedTarget),m.current=!0};return E.jsxs(x.Fragment,{children:[E.jsx("div",{tabIndex:l?0:-1,onFocus:h,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:g,onFocus:v}),E.jsx("div",{tabIndex:l?0:-1,onFocus:h,ref:c,"data-testid":"sentinelEnd"})]})}var Tt="top",nn="bottom",rn="right",Ot="left",ip="auto",Os=[Tt,nn,rn,Ot],Ko="start",ws="end",_R="clippingParents",Ry="viewport",Ci="popper",TR="reference",vm=Os.reduce(function(e,t){return e.concat([t+"-"+Ko,t+"-"+ws])},[]),Ey=[].concat(Os,[ip]).reduce(function(e,t){return e.concat([t,t+"-"+Ko,t+"-"+ws])},[]),OR="beforeRead",MR="read",IR="afterRead",AR="beforeMain",LR="main",FR="afterMain",NR="beforeWrite",zR="write",DR="afterWrite",BR=[OR,MR,IR,AR,LR,FR,NR,zR,DR];function Ln(e){return e?(e.nodeName||"").toLowerCase():null}function Vt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xr(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function Zt(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sp(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function jR(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Zt(i)||!Ln(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function VR(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(a,u){return a[u]="",a},{});!Zt(o)||!Ln(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const HR={name:"applyStyles",enabled:!0,phase:"write",fn:jR,effect:VR,requires:["computeStyles"]};function In(e){return e.split("-")[0]}var jr=Math.max,da=Math.min,qo=Math.round;function _d(){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 $y(){return!/^((?!chrome|android).)*safari/i.test(_d())}function Yo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Zt(e)&&(o=e.offsetWidth>0&&qo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&qo(r.height)/e.offsetHeight||1);var s=Xr(e)?Vt(e):window,l=s.visualViewport,a=!$y()&&n,u=(r.left+(a&&l?l.offsetLeft:0))/o,c=(r.top+(a&&l?l.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function lp(e){var t=Yo(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 Py(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sp(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Yn(e){return Vt(e).getComputedStyle(e)}function UR(e){return["table","td","th"].indexOf(Ln(e))>=0}function Rr(e){return((Xr(e)?e.ownerDocument:e.document)||window.document).documentElement}function fu(e){return Ln(e)==="html"?e:e.assignedSlot||e.parentNode||(sp(e)?e.host:null)||Rr(e)}function ym(e){return!Zt(e)||Yn(e).position==="fixed"?null:e.offsetParent}function WR(e){var t=/firefox/i.test(_d()),n=/Trident/i.test(_d());if(n&&Zt(e)){var r=Yn(e);if(r.position==="fixed")return null}var o=fu(e);for(sp(o)&&(o=o.host);Zt(o)&&["html","body"].indexOf(Ln(o))<0;){var i=Yn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ms(e){for(var t=Vt(e),n=ym(e);n&&UR(n)&&Yn(n).position==="static";)n=ym(n);return n&&(Ln(n)==="html"||Ln(n)==="body"&&Yn(n).position==="static")?t:n||WR(e)||t}function ap(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xi(e,t,n){return jr(e,da(t,n))}function GR(e,t,n){var r=Xi(e,t,n);return r>n?n:r}function _y(){return{top:0,right:0,bottom:0,left:0}}function Ty(e){return Object.assign({},_y(),e)}function Oy(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var KR=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Ty(typeof t!="number"?t:Oy(t,Os))};function qR(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=In(n.placement),a=ap(l),u=[Ot,rn].indexOf(l)>=0,c=u?"height":"width";if(!(!i||!s)){var d=KR(o.padding,n),f=lp(i),m=a==="y"?Tt:Ot,S=a==="y"?nn:rn,g=n.rects.reference[c]+n.rects.reference[a]-s[a]-n.rects.popper[c],R=s[a]-n.rects.reference[a],v=Ms(i),h=v?a==="y"?v.clientHeight||0:v.clientWidth||0:0,p=g/2-R/2,y=d[m],b=h-f[c]-d[S],k=h/2-f[c]/2+p,C=Xi(y,k,b),$=a;n.modifiersData[r]=(t={},t[$]=C,t.centerOffset=C-k,t)}}function YR(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)||Py(t.elements.popper,o)&&(t.elements.arrow=o))}const XR={name:"arrow",enabled:!0,phase:"main",fn:qR,effect:YR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xo(e){return e.split("-")[1]}var QR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ZR(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:qo(n*o)/o||0,y:qo(r*o)/o||0}}function Sm(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,a=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,m=f===void 0?0:f,S=s.y,g=S===void 0?0:S,R=typeof c=="function"?c({x:m,y:g}):{x:m,y:g};m=R.x,g=R.y;var v=s.hasOwnProperty("x"),h=s.hasOwnProperty("y"),p=Ot,y=Tt,b=window;if(u){var k=Ms(n),C="clientHeight",$="clientWidth";if(k===Vt(n)&&(k=Rr(n),Yn(k).position!=="static"&&l==="absolute"&&(C="scrollHeight",$="scrollWidth")),k=k,o===Tt||(o===Ot||o===rn)&&i===ws){y=nn;var T=d&&k===b&&b.visualViewport?b.visualViewport.height:k[C];g-=T-r.height,g*=a?1:-1}if(o===Ot||(o===Tt||o===nn)&&i===ws){p=rn;var P=d&&k===b&&b.visualViewport?b.visualViewport.width:k[$];m-=P-r.width,m*=a?1:-1}}var O=Object.assign({position:l},u&&QR),V=c===!0?ZR({x:m,y:g},Vt(n)):{x:m,y:g};if(m=V.x,g=V.y,a){var z;return Object.assign({},O,(z={},z[y]=h?"0":"",z[p]=v?"0":"",z.transform=(b.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",z))}return Object.assign({},O,(t={},t[y]=h?g+"px":"",t[p]=v?m+"px":"",t.transform="",t))}function JR(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,a=l===void 0?!0:l,u={placement:In(t.placement),variation:Xo(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,Sm(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Sm(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const eE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:JR,data:{}};var sl={passive:!0};function tE(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,a=Vt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,sl)}),l&&a.addEventListener("resize",n.update,sl),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,sl)}),l&&a.removeEventListener("resize",n.update,sl)}}const nE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tE,data:{}};var rE={left:"right",right:"left",bottom:"top",top:"bottom"};function Fl(e){return e.replace(/left|right|bottom|top/g,function(t){return rE[t]})}var oE={start:"end",end:"start"};function xm(e){return e.replace(/start|end/g,function(t){return oE[t]})}function up(e){var t=Vt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cp(e){return Yo(Rr(e)).left+up(e).scrollLeft}function iE(e,t){var n=Vt(e),r=Rr(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;var u=$y();(u||!u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l+cp(e),y:a}}function sE(e){var t,n=Rr(e),r=up(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=jr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=jr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+cp(e),a=-r.scrollTop;return Yn(o||n).direction==="rtl"&&(l+=jr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:a}}function dp(e){var t=Yn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function My(e){return["html","body","#document"].indexOf(Ln(e))>=0?e.ownerDocument.body:Zt(e)&&dp(e)?e:My(fu(e))}function Qi(e,t){var n;t===void 0&&(t=[]);var r=My(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Vt(r),s=o?[i].concat(i.visualViewport||[],dp(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(Qi(fu(s)))}function Td(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lE(e,t){var n=Yo(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 wm(e,t,n){return t===Ry?Td(iE(e,n)):Xr(t)?lE(t,n):Td(sE(Rr(e)))}function aE(e){var t=Qi(fu(e)),n=["absolute","fixed"].indexOf(Yn(e).position)>=0,r=n&&Zt(e)?Ms(e):e;return Xr(r)?t.filter(function(o){return Xr(o)&&Py(o,r)&&Ln(o)!=="body"}):[]}function uE(e,t,n,r){var o=t==="clippingParents"?aE(e):[].concat(t),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(a,u){var c=wm(e,u,r);return a.top=jr(c.top,a.top),a.right=da(c.right,a.right),a.bottom=da(c.bottom,a.bottom),a.left=jr(c.left,a.left),a},wm(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Iy(e){var t=e.reference,n=e.element,r=e.placement,o=r?In(r):null,i=r?Xo(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(o){case Tt:a={x:s,y:t.y-n.height};break;case nn:a={x:s,y:t.y+t.height};break;case rn:a={x:t.x+t.width,y:l};break;case Ot:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var u=o?ap(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Ko:a[u]=a[u]-(t[c]/2-n[c]/2);break;case ws:a[u]=a[u]+(t[c]/2-n[c]/2);break}}return a}function bs(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,a=l===void 0?_R:l,u=n.rootBoundary,c=u===void 0?Ry:u,d=n.elementContext,f=d===void 0?Ci:d,m=n.altBoundary,S=m===void 0?!1:m,g=n.padding,R=g===void 0?0:g,v=Ty(typeof R!="number"?R:Oy(R,Os)),h=f===Ci?TR:Ci,p=e.rects.popper,y=e.elements[S?h:f],b=uE(Xr(y)?y:y.contextElement||Rr(e.elements.popper),a,c,s),k=Yo(e.elements.reference),C=Iy({reference:k,element:p,strategy:"absolute",placement:o}),$=Td(Object.assign({},p,C)),T=f===Ci?$:k,P={top:b.top-T.top+v.top,bottom:T.bottom-b.bottom+v.bottom,left:b.left-T.left+v.left,right:T.right-b.right+v.right},O=e.modifiersData.offset;if(f===Ci&&O){var V=O[o];Object.keys(P).forEach(function(z){var M=[rn,nn].indexOf(z)>=0?1:-1,I=[Tt,nn].indexOf(z)>=0?"y":"x";P[z]+=V[I]*M})}return P}function cE(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?Ey:a,c=Xo(r),d=c?l?vm:vm.filter(function(S){return Xo(S)===c}):Os,f=d.filter(function(S){return u.indexOf(S)>=0});f.length===0&&(f=d);var m=f.reduce(function(S,g){return S[g]=bs(e,{placement:g,boundary:o,rootBoundary:i,padding:s})[In(g)],S},{});return Object.keys(m).sort(function(S,g){return m[S]-m[g]})}function dE(e){if(In(e)===ip)return[];var t=Fl(e);return[xm(e),t,xm(t)]}function fE(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,a=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,m=n.flipVariations,S=m===void 0?!0:m,g=n.allowedAutoPlacements,R=t.options.placement,v=In(R),h=v===R,p=a||(h||!S?[Fl(R)]:dE(R)),y=[R].concat(p).reduce(function(re,ee){return re.concat(In(ee)===ip?cE(t,{placement:ee,boundary:c,rootBoundary:d,padding:u,flipVariations:S,allowedAutoPlacements:g}):ee)},[]),b=t.rects.reference,k=t.rects.popper,C=new Map,$=!0,T=y[0],P=0;P<y.length;P++){var O=y[P],V=In(O),z=Xo(O)===Ko,M=[Tt,nn].indexOf(V)>=0,I=M?"width":"height",D=bs(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),j=M?z?rn:Ot:z?nn:Tt;b[I]>k[I]&&(j=Fl(j));var _=Fl(j),L=[];if(i&&L.push(D[V]<=0),l&&L.push(D[j]<=0,D[_]<=0),L.every(function(re){return re})){T=O,$=!1;break}C.set(O,L)}if($)for(var A=S?3:1,K=function(ee){var ie=y.find(function(Ce){var ye=C.get(Ce);if(ye)return ye.slice(0,ee).every(function(ue){return ue})});if(ie)return T=ie,"break"},W=A;W>0;W--){var ne=K(W);if(ne==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const pE={name:"flip",enabled:!0,phase:"main",fn:fE,requiresIfExists:["offset"],data:{_skip:!1}};function bm(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 Cm(e){return[Tt,rn,nn,Ot].some(function(t){return e[t]>=0})}function hE(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=bs(t,{elementContext:"reference"}),l=bs(t,{altBoundary:!0}),a=bm(s,r),u=bm(l,o,i),c=Cm(a),d=Cm(u);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const mE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hE};function gE(e,t,n){var r=In(e),o=[Ot,Tt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[Ot,rn].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function vE(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=Ey.reduce(function(c,d){return c[d]=gE(d,t.rects,i),c},{}),l=s[t.placement],a=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const yE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vE};function SE(e){var t=e.state,n=e.name;t.modifiersData[n]=Iy({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const xE={name:"popperOffsets",enabled:!0,phase:"read",fn:SE,data:{}};function wE(e){return e==="x"?"y":"x"}function bE(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,a=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,m=f===void 0?!0:f,S=n.tetherOffset,g=S===void 0?0:S,R=bs(t,{boundary:a,rootBoundary:u,padding:d,altBoundary:c}),v=In(t.placement),h=Xo(t.placement),p=!h,y=ap(v),b=wE(y),k=t.modifiersData.popperOffsets,C=t.rects.reference,$=t.rects.popper,T=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(k){if(i){var z,M=y==="y"?Tt:Ot,I=y==="y"?nn:rn,D=y==="y"?"height":"width",j=k[y],_=j+R[M],L=j-R[I],A=m?-$[D]/2:0,K=h===Ko?C[D]:$[D],W=h===Ko?-$[D]:-C[D],ne=t.elements.arrow,re=m&&ne?lp(ne):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:_y(),ie=ee[M],Ce=ee[I],ye=Xi(0,C[D],re[D]),ue=p?C[D]/2-A-ye-ie-P.mainAxis:K-ye-ie-P.mainAxis,Re=p?-C[D]/2+A+ye+Ce+P.mainAxis:W+ye+Ce+P.mainAxis,q=t.elements.arrow&&Ms(t.elements.arrow),ve=q?y==="y"?q.clientTop||0:q.clientLeft||0:0,Oe=(z=O==null?void 0:O[y])!=null?z:0,fe=j+ue-Oe-ve,le=j+Re-Oe,nt=Xi(m?da(_,fe):_,j,m?jr(L,le):L);k[y]=nt,V[y]=nt-j}if(l){var de,Ke=y==="x"?Tt:Ot,St=y==="x"?nn:rn,ce=k[b],Se=b==="y"?"height":"width",it=ce+R[Ke],He=ce-R[St],N=[Tt,Ot].indexOf(v)!==-1,H=(de=O==null?void 0:O[b])!=null?de:0,Q=N?it:ce-C[Se]-$[Se]-H+P.altAxis,te=N?ce+C[Se]+$[Se]-H-P.altAxis:He,J=m&&N?GR(Q,ce,te):Xi(m?Q:it,ce,m?te:He);k[b]=J,V[b]=J-ce}t.modifiersData[r]=V}}const CE={name:"preventOverflow",enabled:!0,phase:"main",fn:bE,requiresIfExists:["offset"]};function kE(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function RE(e){return e===Vt(e)||!Zt(e)?up(e):kE(e)}function EE(e){var t=e.getBoundingClientRect(),n=qo(t.width)/e.offsetWidth||1,r=qo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function $E(e,t,n){n===void 0&&(n=!1);var r=Zt(t),o=Zt(t)&&EE(t),i=Rr(t),s=Yo(e,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Ln(t)!=="body"||dp(i))&&(l=RE(t)),Zt(t)?(a=Yo(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=cp(i))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function PE(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&o(a)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function _E(e){var t=PE(e);return BR.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function TE(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function OE(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 km={placement:"bottom",modifiers:[],strategy:"absolute"};function Rm(){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 ME(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?km:o;return function(l,a,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},km,i),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},d=[],f=!1,m={state:c,setOptions:function(v){var h=typeof v=="function"?v(c.options):v;g(),c.options=Object.assign({},i,c.options,h),c.scrollParents={reference:Xr(l)?Qi(l):l.contextElement?Qi(l.contextElement):[],popper:Qi(a)};var p=_E(OE([].concat(r,c.options.modifiers)));return c.orderedModifiers=p.filter(function(y){return y.enabled}),S(),m.update()},forceUpdate:function(){if(!f){var v=c.elements,h=v.reference,p=v.popper;if(Rm(h,p)){c.rects={reference:$E(h,Ms(p),c.options.strategy==="fixed"),popper:lp(p)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(P){return c.modifiersData[P.name]=Object.assign({},P.data)});for(var y=0;y<c.orderedModifiers.length;y++){if(c.reset===!0){c.reset=!1,y=-1;continue}var b=c.orderedModifiers[y],k=b.fn,C=b.options,$=C===void 0?{}:C,T=b.name;typeof k=="function"&&(c=k({state:c,options:$,name:T,instance:m})||c)}}}},update:TE(function(){return new Promise(function(R){m.forceUpdate(),R(c)})}),destroy:function(){g(),f=!0}};if(!Rm(l,a))return m;m.setOptions(u).then(function(R){!f&&u.onFirstUpdate&&u.onFirstUpdate(R)});function S(){c.orderedModifiers.forEach(function(R){var v=R.name,h=R.options,p=h===void 0?{}:h,y=R.effect;if(typeof y=="function"){var b=y({state:c,name:v,instance:m,options:p}),k=function(){};d.push(b||k)}})}function g(){d.forEach(function(R){return R()}),d=[]}return m}}var IE=[nE,xE,eE,HR,yE,pE,CE,XR,mE],AE=ME({defaultModifiers:IE});function LE(e){return typeof e=="function"?e():e}const FE=x.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[s,l]=x.useState(null),a=Xe(x.isValidElement(r)?r.ref:null,n);if(tn(()=>{i||l(LE(o)||document.body)},[o,i]),tn(()=>{if(s&&!i)return aa(n,s),()=>{aa(n,null)}},[n,s,i]),i){if(x.isValidElement(r)){const u={ref:a};return x.cloneElement(r,u)}return E.jsx(x.Fragment,{children:r})}return E.jsx(x.Fragment,{children:s&&La.createPortal(r,s)})}),Ay=FE;function NE(e){return _e("MuiPopper",e)}$e("MuiPopper",["root"]);const zE=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],DE=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function BE(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 Od(e){return typeof e=="function"?e():e}function jE(e){return e.nodeType!==void 0}const VE=()=>Me({root:["root"]},Cy(NE)),HE={},UE=x.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:l,modifiers:a,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:m={},slots:S={},TransitionProps:g}=t,R=Z(t,zE),v=x.useRef(null),h=Xe(v,n),p=x.useRef(null),y=Xe(p,f),b=x.useRef(y);tn(()=>{b.current=y},[y]),x.useImperativeHandle(f,()=>p.current,[]);const k=BE(c,s),[C,$]=x.useState(k),[T,P]=x.useState(Od(o));x.useEffect(()=>{p.current&&p.current.forceUpdate()}),x.useEffect(()=>{o&&P(Od(o))},[o]),tn(()=>{if(!T||!u)return;const I=_=>{$(_.placement)};let D=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:_})=>{I(_)}}];a!=null&&(D=D.concat(a)),d&&d.modifiers!=null&&(D=D.concat(d.modifiers));const j=AE(T,v.current,w({placement:k},d,{modifiers:D}));return b.current(j),()=>{j.destroy(),b.current(null)}},[T,l,a,u,d,k]);const O={placement:C};g!==null&&(O.TransitionProps=g);const V=VE(),z=(r=S.root)!=null?r:"div",M=cn({elementType:z,externalSlotProps:m.root,externalForwardedProps:R,additionalProps:{role:"tooltip",ref:h},ownerState:t,className:V.root});return E.jsx(z,w({},M,{children:typeof i=="function"?i(O):i}))}),WE=x.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:l=!1,keepMounted:a=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:f=HE,popperRef:m,style:S,transition:g=!1,slotProps:R={},slots:v={}}=t,h=Z(t,DE),[p,y]=x.useState(!0),b=()=>{y(!1)},k=()=>{y(!0)};if(!a&&!c&&(!g||p))return null;let C;if(i)C=i;else if(r){const P=Od(r);C=P&&jE(P)?tt(P).body:tt(null).body}const $=!c&&a&&(!g||p)?"none":void 0,T=g?{in:c,onEnter:b,onExited:k}:void 0;return E.jsx(Ay,{disablePortal:l,container:C,children:E.jsx(UE,w({anchorEl:r,direction:s,disablePortal:l,modifiers:u,ref:n,open:g?!p:c,placement:d,popperOptions:f,popperRef:m,slotProps:R,slots:v},h,{style:w({position:"fixed",top:0,left:0,display:$},S),TransitionProps:T,children:o}))})}),GE=WE;function KE(e){const t=tt(e);return t.body===e?xr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Zi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Em(e){return parseInt(xr(e).getComputedStyle(e).paddingRight,10)||0}function qE(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 $m(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,s=>{const l=i.indexOf(s)===-1,a=!qE(s);l&&a&&Zi(s,o)})}function uc(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function YE(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(KE(r)){const s=b0(tt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Em(r)+s}px`;const l=tt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${Em(a)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=tt(r).body;else{const s=r.parentElement,l=xr(r);i=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:l})=>{i?s.style.setProperty(l,i):s.style.removeProperty(l)})}}function XE(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class QE{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&&Zi(t.modalRef,!1);const o=XE(n);$m(n,t.mount,t.modalRef,o,!0);const i=uc(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=uc(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=YE(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=uc(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Zi(t.modalRef,n),$m(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Zi(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function ZE(e){return _e("MuiModal",e)}$e("MuiModal",["root","hidden","backdrop"]);const JE=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],e$=e=>{const{open:t,exited:n}=e;return Me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Cy(ZE))};function t$(e){return typeof e=="function"?e():e}function n$(e){return e?e.props.hasOwnProperty("in"):!1}const r$=new QE,o$=x.forwardRef(function(t,n){var r,o;const{children:i,closeAfterTransition:s=!1,container:l,disableAutoFocus:a=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:c=!1,disablePortal:d=!1,disableRestoreFocus:f=!1,disableScrollLock:m=!1,hideBackdrop:S=!1,keepMounted:g=!1,manager:R=r$,onBackdropClick:v,onClose:h,onKeyDown:p,open:y,onTransitionEnter:b,onTransitionExited:k,slotProps:C={},slots:$={}}=t,T=Z(t,JE),P=R,[O,V]=x.useState(!y),z=x.useRef({}),M=x.useRef(null),I=x.useRef(null),D=Xe(I,n),j=n$(i),_=(r=t["aria-hidden"])!=null?r:!0,L=()=>tt(M.current),A=()=>(z.current.modalRef=I.current,z.current.mountNode=M.current,z.current),K=()=>{P.mount(A(),{disableScrollLock:m}),I.current&&(I.current.scrollTop=0)},W=mn(()=>{const de=t$(l)||L().body;P.add(A(),de),I.current&&K()}),ne=x.useCallback(()=>P.isTopModal(A()),[P]),re=mn(de=>{M.current=de,!(!de||!I.current)&&(y&&ne()?K():Zi(I.current,_))}),ee=x.useCallback(()=>{P.remove(A(),_)},[P,_]);x.useEffect(()=>()=>{ee()},[ee]),x.useEffect(()=>{y?W():(!j||!s)&&ee()},[y,ee,j,s,W]);const ie=w({},t,{closeAfterTransition:s,disableAutoFocus:a,disableEnforceFocus:u,disableEscapeKeyDown:c,disablePortal:d,disableRestoreFocus:f,disableScrollLock:m,exited:O,hideBackdrop:S,keepMounted:g}),Ce=e$(ie),ye=()=>{V(!1),b&&b()},ue=()=>{V(!0),k&&k(),s&&ee()},Re=de=>{de.target===de.currentTarget&&(v&&v(de),h&&h(de,"backdropClick"))},q=de=>{p&&p(de),!(de.key!=="Escape"||!ne())&&(c||(de.stopPropagation(),h&&h(de,"escapeKeyDown")))},ve={};i.props.tabIndex===void 0&&(ve.tabIndex="-1"),j&&(ve.onEnter=yd(ye,i.props.onEnter),ve.onExited=yd(ue,i.props.onExited));const Oe=(o=$.root)!=null?o:"div",fe=cn({elementType:Oe,externalSlotProps:C.root,externalForwardedProps:T,additionalProps:{ref:D,role:"presentation",onKeyDown:q},className:Ce.root,ownerState:ie}),le=$.backdrop,nt=cn({elementType:le,externalSlotProps:C.backdrop,additionalProps:{"aria-hidden":!0,onClick:Re,open:y},className:Ce.backdrop,ownerState:ie});return!g&&!y&&(!j||O)?null:E.jsx(Ay,{ref:re,container:l,disablePortal:d,children:E.jsxs(Oe,w({},fe,{children:[!S&&le?E.jsx(le,w({},nt)):null,E.jsx(PR,{disableEnforceFocus:u,disableAutoFocus:a,disableRestoreFocus:f,isEnabled:ne,open:y,children:x.cloneElement(i,ve)})]}))})}),i$=o$,s$=2;function Ly(e,t){return e-t}function ki(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function Pm(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const l=Math.abs(t-i);return o===null||l<o.distance||l===o.distance?{distance:l,index:s}:o},null))!=null?n:{};return r}function ll(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function fa(e,t,n){return(e-t)*100/(n-t)}function l$(e,t,n){return(n-t)*e+t}function a$(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function u$(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(a$(t)))}function _m({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Ly)}function al({sliderRef:e,activeIndex:t,setActive:n}){var r,o;const i=tt(e.current);if(!((r=e.current)!=null&&r.contains(i.activeElement))||Number(i==null||(o=i.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var s;(s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}function ul(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?gR(e,t):!1}const c$={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},d$=e=>e;let cl;function cc(){return cl===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?cl=CSS.supports("touch-action","none"):cl=!0),cl}function f$(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:l=100,min:a=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:m,scale:S=d$,step:g=1,tabIndex:R,value:v}=e,h=x.useRef(),[p,y]=x.useState(-1),[b,k]=x.useState(-1),[C,$]=x.useState(!1),T=x.useRef(0),[P,O]=Wo({controlled:v,default:n??a,name:"Slider"}),V=c&&((N,H,Q)=>{const te=N.nativeEvent||N,J=new te.constructor(te.type,te);Object.defineProperty(J,"target",{writable:!0,value:{value:H,name:u}}),c(J,H,Q)}),z=Array.isArray(P);let M=z?P.slice().sort(Ly):[P];M=M.map(N=>ki(N,a,l));const I=s===!0&&g!==null?[...Array(Math.floor((l-a)/g)+1)].map((N,H)=>({value:a+g*H})):s||[],D=I.map(N=>N.value),{isFocusVisibleRef:j,onBlur:_,onFocus:L,ref:A}=Na(),[K,W]=x.useState(-1),ne=x.useRef(),re=Xe(A,ne),ee=Xe(m,re),ie=N=>H=>{var Q;const te=Number(H.currentTarget.getAttribute("data-index"));L(H),j.current===!0&&W(te),k(te),N==null||(Q=N.onFocus)==null||Q.call(N,H)},Ce=N=>H=>{var Q;_(H),j.current===!1&&W(-1),k(-1),N==null||(Q=N.onBlur)==null||Q.call(N,H)};tn(()=>{if(r&&ne.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&p!==-1&&y(-1),r&&K!==-1&&W(-1);const ye=N=>H=>{var Q;(Q=N.onChange)==null||Q.call(N,H);const te=Number(H.currentTarget.getAttribute("data-index")),J=M[te],U=D.indexOf(J);let B=H.target.valueAsNumber;if(I&&g==null&&(B=B<J?D[U-1]:D[U+1]),B=ki(B,a,l),I&&g==null){const oe=D.indexOf(M[te]);B=B<M[te]?D[oe-1]:D[oe+1]}if(z){o&&(B=ki(B,M[te-1]||-1/0,M[te+1]||1/0));const oe=B;B=_m({values:M,newValue:B,index:te});let X=te;o||(X=B.indexOf(oe)),al({sliderRef:ne,activeIndex:X})}O(B),W(te),V&&!ul(B,P)&&V(H,B,te),d&&d(H,B)},ue=x.useRef();let Re=f;i&&f==="horizontal"&&(Re+="-reverse");const q=({finger:N,move:H=!1})=>{const{current:Q}=ne,{width:te,height:J,bottom:U,left:B}=Q.getBoundingClientRect();let oe;Re.indexOf("vertical")===0?oe=(U-N.y)/J:oe=(N.x-B)/te,Re.indexOf("-reverse")!==-1&&(oe=1-oe);let X;if(X=l$(oe,a,l),g)X=u$(X,g,a);else{const It=Pm(D,X);X=D[It]}X=ki(X,a,l);let qe=0;if(z){H?qe=ue.current:qe=Pm(M,X),o&&(X=ki(X,M[qe-1]||-1/0,M[qe+1]||1/0));const It=X;X=_m({values:M,newValue:X,index:qe}),o&&H||(qe=X.indexOf(It),ue.current=qe)}return{newValue:X,activeIndex:qe}},ve=mn(N=>{const H=ll(N,h);if(!H)return;if(T.current+=1,N.type==="mousemove"&&N.buttons===0){Oe(N);return}const{newValue:Q,activeIndex:te}=q({finger:H,move:!0});al({sliderRef:ne,activeIndex:te,setActive:y}),O(Q),!C&&T.current>s$&&$(!0),V&&!ul(Q,P)&&V(N,Q,te)}),Oe=mn(N=>{const H=ll(N,h);if($(!1),!H)return;const{newValue:Q}=q({finger:H,move:!0});y(-1),N.type==="touchend"&&k(-1),d&&d(N,Q),h.current=void 0,le()}),fe=mn(N=>{if(r)return;cc()||N.preventDefault();const H=N.changedTouches[0];H!=null&&(h.current=H.identifier);const Q=ll(N,h);if(Q!==!1){const{newValue:J,activeIndex:U}=q({finger:Q});al({sliderRef:ne,activeIndex:U,setActive:y}),O(J),V&&!ul(J,P)&&V(N,J,U)}T.current=0;const te=tt(ne.current);te.addEventListener("touchmove",ve),te.addEventListener("touchend",Oe)}),le=x.useCallback(()=>{const N=tt(ne.current);N.removeEventListener("mousemove",ve),N.removeEventListener("mouseup",Oe),N.removeEventListener("touchmove",ve),N.removeEventListener("touchend",Oe)},[Oe,ve]);x.useEffect(()=>{const{current:N}=ne;return N.addEventListener("touchstart",fe,{passive:cc()}),()=>{N.removeEventListener("touchstart",fe,{passive:cc()}),le()}},[le,fe]),x.useEffect(()=>{r&&le()},[r,le]);const nt=N=>H=>{var Q;if((Q=N.onMouseDown)==null||Q.call(N,H),r||H.defaultPrevented||H.button!==0)return;H.preventDefault();const te=ll(H,h);if(te!==!1){const{newValue:U,activeIndex:B}=q({finger:te});al({sliderRef:ne,activeIndex:B,setActive:y}),O(U),V&&!ul(U,P)&&V(H,U,B)}T.current=0;const J=tt(ne.current);J.addEventListener("mousemove",ve),J.addEventListener("mouseup",Oe)},de=fa(z?M[0]:a,a,l),Ke=fa(M[M.length-1],a,l)-de,St=(N={})=>{const H={onMouseDown:nt(N||{})},Q=w({},N,H);return w({ref:ee},Q)},ce=N=>H=>{var Q;(Q=N.onMouseOver)==null||Q.call(N,H);const te=Number(H.currentTarget.getAttribute("data-index"));k(te)},Se=N=>H=>{var Q;(Q=N.onMouseLeave)==null||Q.call(N,H),k(-1)};return{active:p,axis:Re,axisProps:c$,dragging:C,focusedThumbIndex:K,getHiddenInputProps:(N={})=>{var H;const Q={onChange:ye(N||{}),onFocus:ie(N||{}),onBlur:Ce(N||{})},te=w({},N,Q);return w({tabIndex:R,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":S(l),"aria-valuemin":S(a),name:u,type:"range",min:e.min,max:e.max,step:(H=e.step)!=null?H:void 0,disabled:r},te,{style:w({},ow,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:St,getThumbProps:(N={})=>{const H={onMouseOver:ce(N||{}),onMouseLeave:Se(N||{})};return w({},N,H)},marks:I,open:b,range:z,rootRef:ee,trackLeap:Ke,trackOffset:de,values:M}}const p$=["onChange","maxRows","minRows","style","value"];function dl(e){return parseInt(e,10)||0}const h$={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Tm(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const m$=x.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:l}=t,a=Z(t,p$),{current:u}=x.useRef(l!=null),c=x.useRef(null),d=Xe(n,c),f=x.useRef(null),m=x.useRef(0),[S,g]=x.useState({outerHeightStyle:0}),R=x.useCallback(()=>{const b=c.current,C=xr(b).getComputedStyle(b);if(C.width==="0px")return{outerHeightStyle:0};const $=f.current;$.style.width=C.width,$.value=b.value||t.placeholder||"x",$.value.slice(-1)===`
|
|
54
|
+
`&&($.value+=" ");const T=C.boxSizing,P=dl(C.paddingBottom)+dl(C.paddingTop),O=dl(C.borderBottomWidth)+dl(C.borderTopWidth),V=$.scrollHeight;$.value="x";const z=$.scrollHeight;let M=V;i&&(M=Math.max(Number(i)*z,M)),o&&(M=Math.min(Number(o)*z,M)),M=Math.max(M,z);const I=M+(T==="border-box"?P+O:0),D=Math.abs(M-V)<=1;return{outerHeightStyle:I,overflow:D}},[o,i,t.placeholder]),v=(b,k)=>{const{outerHeightStyle:C,overflow:$}=k;return m.current<20&&(C>0&&Math.abs((b.outerHeightStyle||0)-C)>1||b.overflow!==$)?(m.current+=1,{overflow:$,outerHeightStyle:C}):b},h=x.useCallback(()=>{const b=R();Tm(b)||g(k=>v(k,b))},[R]),p=()=>{const b=R();Tm(b)||La.flushSync(()=>{g(k=>v(k,b))})};x.useEffect(()=>{const b=zf(()=>{m.current=0,c.current&&p()});let k;const C=c.current,$=xr(C);return $.addEventListener("resize",b),typeof ResizeObserver<"u"&&(k=new ResizeObserver(b),k.observe(C)),()=>{b.clear(),$.removeEventListener("resize",b),k&&k.disconnect()}}),tn(()=>{h()}),x.useEffect(()=>{m.current=0},[l]);const y=b=>{m.current=0,u||h(),r&&r(b)};return E.jsxs(x.Fragment,{children:[E.jsx("textarea",w({value:l,onChange:y,ref:d,rows:i,style:w({height:S.outerHeightStyle,overflow:S.overflow?"hidden":void 0},s)},a)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:w({},h$.shadow,s,{padding:0})})]})}),g$=m$,v$=x.createContext(void 0),fp=v$;function Jr(){return x.useContext(fp)}function Md(e,t){return Md=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Md(e,t)}function Fy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Md(e,t)}const Om={disabled:!1},pa=hn.createContext(null);var y$=function(t){return t.scrollTop},Ni="unmounted",Or="exited",Mr="entering",vo="entered",Id="exiting",Qn=function(e){Fy(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,a;return i.appearStatus=null,r.in?l?(a=Or,i.appearStatus=Mr):a=vo:r.unmountOnExit||r.mountOnEnter?a=Ni:a=Or,i.state={status:a},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Ni?{status:Or}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Mr&&s!==vo&&(i=Mr):(s===Mr||s===vo)&&(i=Id)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,l;return i=s=l=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Mr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:nl.findDOMNode(this);s&&y$(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Or&&this.setState({status:Ni})},n.performEnter=function(o){var i=this,s=this.props.enter,l=this.context?this.context.isMounting:o,a=this.props.nodeRef?[l]:[nl.findDOMNode(this),l],u=a[0],c=a[1],d=this.getTimeouts(),f=l?d.appear:d.enter;if(!o&&!s||Om.disabled){this.safeSetState({status:vo},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Mr},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:vo},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:nl.findDOMNode(this);if(!i||Om.disabled){this.safeSetState({status:Or},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Id},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Or},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:nl.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=a[0],c=a[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ni)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Z(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return hn.createElement(pa.Provider,{value:null},typeof s=="function"?s(o,l):hn.cloneElement(hn.Children.only(s),l))},t}(hn.Component);Qn.contextType=pa;Qn.propTypes={};function ho(){}Qn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ho,onEntering:ho,onEntered:ho,onExit:ho,onExiting:ho,onExited:ho};Qn.UNMOUNTED=Ni;Qn.EXITED=Or;Qn.ENTERING=Mr;Qn.ENTERED=vo;Qn.EXITING=Id;const Ny=Qn;function S$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pp(e,t){var n=function(i){return t&&x.isValidElement(i)?t(i):i},r=Object.create(null);return e&&x.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function x$(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,l={};for(var a in t){if(r[a])for(s=0;s<r[a].length;s++){var u=r[a][s];l[r[a][s]]=n(u)}l[a]=n(a)}for(s=0;s<o.length;s++)l[o[s]]=n(o[s]);return l}function Nr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function w$(e,t){return pp(e.children,function(n){return x.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Nr(n,"appear",e),enter:Nr(n,"enter",e),exit:Nr(n,"exit",e)})})}function b$(e,t,n){var r=pp(e.children),o=x$(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(x.isValidElement(s)){var l=i in t,a=i in r,u=t[i],c=x.isValidElement(u)&&!u.props.in;a&&(!l||c)?o[i]=x.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Nr(s,"exit",e),enter:Nr(s,"enter",e)}):!a&&l&&!c?o[i]=x.cloneElement(s,{in:!1}):a&&l&&x.isValidElement(u)&&(o[i]=x.cloneElement(s,{onExited:n.bind(null,s),in:u.props.in,exit:Nr(s,"exit",e),enter:Nr(s,"enter",e)}))}}),o}var C$=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},k$={component:"div",childFactory:function(t){return t}},hp=function(e){Fy(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(S$(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,l=i.handleExited,a=i.firstRender;return{children:a?w$(o,l):b$(o,s,l),firstRender:!1}},n.handleExited=function(o,i){var s=pp(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var a=w({},l.children);return delete a[o.key],{children:a}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,l=Z(o,["component","childFactory"]),a=this.state.contextValue,u=C$(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,i===null?hn.createElement(pa.Provider,{value:a},u):hn.createElement(pa.Provider,{value:a},hn.createElement(i,l,u))},t}(hn.Component);hp.propTypes={};hp.defaultProps=k$;const R$=hp;function E$(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:l,onExited:a,timeout:u}=e,[c,d]=x.useState(!1),f=se(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},S=se(n.child,c&&n.childLeaving,r&&n.childPulsate);return!l&&!c&&d(!0),x.useEffect(()=>{if(!l&&a!=null){const g=setTimeout(a,u);return()=>{clearTimeout(g)}}},[a,l,u]),E.jsx("span",{className:f,style:m,children:E.jsx("span",{className:S})})}const $$=$e("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Gt=$$,P$=["center","classes","className"];let pu=e=>e,Mm,Im,Am,Lm;const Ad=550,_$=80,T$=Kf(Mm||(Mm=pu`
|
|
55
|
+
0% {
|
|
56
|
+
transform: scale(0);
|
|
57
|
+
opacity: 0.1;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
100% {
|
|
61
|
+
transform: scale(1);
|
|
62
|
+
opacity: 0.3;
|
|
63
|
+
}
|
|
64
|
+
`)),O$=Kf(Im||(Im=pu`
|
|
65
|
+
0% {
|
|
66
|
+
opacity: 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
100% {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
}
|
|
72
|
+
`)),M$=Kf(Am||(Am=pu`
|
|
73
|
+
0% {
|
|
74
|
+
transform: scale(1);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
50% {
|
|
78
|
+
transform: scale(0.92);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
100% {
|
|
82
|
+
transform: scale(1);
|
|
83
|
+
}
|
|
84
|
+
`)),I$=Y("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),A$=Y(E$,{name:"MuiTouchRipple",slot:"Ripple"})(Lm||(Lm=pu`
|
|
85
|
+
opacity: 0;
|
|
86
|
+
position: absolute;
|
|
87
|
+
|
|
88
|
+
&.${0} {
|
|
89
|
+
opacity: 0.3;
|
|
90
|
+
transform: scale(1);
|
|
91
|
+
animation-name: ${0};
|
|
92
|
+
animation-duration: ${0}ms;
|
|
93
|
+
animation-timing-function: ${0};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&.${0} {
|
|
97
|
+
animation-duration: ${0}ms;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
& .${0} {
|
|
101
|
+
opacity: 1;
|
|
102
|
+
display: block;
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 100%;
|
|
105
|
+
border-radius: 50%;
|
|
106
|
+
background-color: currentColor;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
& .${0} {
|
|
110
|
+
opacity: 0;
|
|
111
|
+
animation-name: ${0};
|
|
112
|
+
animation-duration: ${0}ms;
|
|
113
|
+
animation-timing-function: ${0};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
& .${0} {
|
|
117
|
+
position: absolute;
|
|
118
|
+
/* @noflip */
|
|
119
|
+
left: 0px;
|
|
120
|
+
top: 0;
|
|
121
|
+
animation-name: ${0};
|
|
122
|
+
animation-duration: 2500ms;
|
|
123
|
+
animation-timing-function: ${0};
|
|
124
|
+
animation-iteration-count: infinite;
|
|
125
|
+
animation-delay: 200ms;
|
|
126
|
+
}
|
|
127
|
+
`),Gt.rippleVisible,T$,Ad,({theme:e})=>e.transitions.easing.easeInOut,Gt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Gt.child,Gt.childLeaving,O$,Ad,({theme:e})=>e.transitions.easing.easeInOut,Gt.childPulsate,M$,({theme:e})=>e.transitions.easing.easeInOut),L$=x.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,l=Z(r,P$),[a,u]=x.useState([]),c=x.useRef(0),d=x.useRef(null);x.useEffect(()=>{d.current&&(d.current(),d.current=null)},[a]);const f=x.useRef(!1),m=x.useRef(null),S=x.useRef(null),g=x.useRef(null);x.useEffect(()=>()=>{clearTimeout(m.current)},[]);const R=x.useCallback(y=>{const{pulsate:b,rippleX:k,rippleY:C,rippleSize:$,cb:T}=y;u(P=>[...P,E.jsx(A$,{classes:{ripple:se(i.ripple,Gt.ripple),rippleVisible:se(i.rippleVisible,Gt.rippleVisible),ripplePulsate:se(i.ripplePulsate,Gt.ripplePulsate),child:se(i.child,Gt.child),childLeaving:se(i.childLeaving,Gt.childLeaving),childPulsate:se(i.childPulsate,Gt.childPulsate)},timeout:Ad,pulsate:b,rippleX:k,rippleY:C,rippleSize:$},c.current)]),c.current+=1,d.current=T},[i]),v=x.useCallback((y={},b={},k=()=>{})=>{const{pulsate:C=!1,center:$=o||b.pulsate,fakeElement:T=!1}=b;if((y==null?void 0:y.type)==="mousedown"&&f.current){f.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(f.current=!0);const P=T?null:g.current,O=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,z,M;if($||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)V=Math.round(O.width/2),z=Math.round(O.height/2);else{const{clientX:I,clientY:D}=y.touches&&y.touches.length>0?y.touches[0]:y;V=Math.round(I-O.left),z=Math.round(D-O.top)}if($)M=Math.sqrt((2*O.width**2+O.height**2)/3),M%2===0&&(M+=1);else{const I=Math.max(Math.abs((P?P.clientWidth:0)-V),V)*2+2,D=Math.max(Math.abs((P?P.clientHeight:0)-z),z)*2+2;M=Math.sqrt(I**2+D**2)}y!=null&&y.touches?S.current===null&&(S.current=()=>{R({pulsate:C,rippleX:V,rippleY:z,rippleSize:M,cb:k})},m.current=setTimeout(()=>{S.current&&(S.current(),S.current=null)},_$)):R({pulsate:C,rippleX:V,rippleY:z,rippleSize:M,cb:k})},[o,R]),h=x.useCallback(()=>{v({},{pulsate:!0})},[v]),p=x.useCallback((y,b)=>{if(clearTimeout(m.current),(y==null?void 0:y.type)==="touchend"&&S.current){S.current(),S.current=null,m.current=setTimeout(()=>{p(y,b)});return}S.current=null,u(k=>k.length>0?k.slice(1):k),d.current=b},[]);return x.useImperativeHandle(n,()=>({pulsate:h,start:v,stop:p}),[h,v,p]),E.jsx(I$,w({className:se(Gt.root,i.root,s),ref:g},l,{children:E.jsx(R$,{component:null,exit:!0,children:a})}))}),F$=L$;function N$(e){return _e("MuiButtonBase",e)}const z$=$e("MuiButtonBase",["root","disabled","focusVisible"]),D$=z$,B$=["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"],j$=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Me({root:["root",t&&"disabled",n&&"focusVisible"]},N$,o);return n&&r&&(s.root+=` ${r}`),s},V$=Y("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"},[`&.${D$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),H$=x.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:l,component:a="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:m="a",onBlur:S,onClick:g,onContextMenu:R,onDragLeave:v,onFocus:h,onFocusVisible:p,onKeyDown:y,onKeyUp:b,onMouseDown:k,onMouseLeave:C,onMouseUp:$,onTouchEnd:T,onTouchMove:P,onTouchStart:O,tabIndex:V=0,TouchRippleProps:z,touchRippleRef:M,type:I}=r,D=Z(r,B$),j=x.useRef(null),_=x.useRef(null),L=Xe(_,M),{isFocusVisibleRef:A,onFocus:K,onBlur:W,ref:ne}=Na(),[re,ee]=x.useState(!1);u&&re&&ee(!1),x.useImperativeHandle(o,()=>({focusVisible:()=>{ee(!0),j.current.focus()}}),[]);const[ie,Ce]=x.useState(!1);x.useEffect(()=>{Ce(!0)},[]);const ye=ie&&!c&&!u;x.useEffect(()=>{re&&f&&!c&&ie&&_.current.pulsate()},[c,f,re,ie]);function ue(U,B,oe=d){return mn(X=>(B&&B(X),!oe&&_.current&&_.current[U](X),!0))}const Re=ue("start",k),q=ue("stop",R),ve=ue("stop",v),Oe=ue("stop",$),fe=ue("stop",U=>{re&&U.preventDefault(),C&&C(U)}),le=ue("start",O),nt=ue("stop",T),de=ue("stop",P),Ke=ue("stop",U=>{W(U),A.current===!1&&ee(!1),S&&S(U)},!1),St=mn(U=>{j.current||(j.current=U.currentTarget),K(U),A.current===!0&&(ee(!0),p&&p(U)),h&&h(U)}),ce=()=>{const U=j.current;return a&&a!=="button"&&!(U.tagName==="A"&&U.href)},Se=x.useRef(!1),it=mn(U=>{f&&!Se.current&&re&&_.current&&U.key===" "&&(Se.current=!0,_.current.stop(U,()=>{_.current.start(U)})),U.target===U.currentTarget&&ce()&&U.key===" "&&U.preventDefault(),y&&y(U),U.target===U.currentTarget&&ce()&&U.key==="Enter"&&!u&&(U.preventDefault(),g&&g(U))}),He=mn(U=>{f&&U.key===" "&&_.current&&re&&!U.defaultPrevented&&(Se.current=!1,_.current.stop(U,()=>{_.current.pulsate(U)})),b&&b(U),g&&U.target===U.currentTarget&&ce()&&U.key===" "&&!U.defaultPrevented&&g(U)});let N=a;N==="button"&&(D.href||D.to)&&(N=m);const H={};N==="button"?(H.type=I===void 0?"button":I,H.disabled=u):(!D.href&&!D.to&&(H.role="button"),u&&(H["aria-disabled"]=u));const Q=Xe(n,ne,j),te=w({},r,{centerRipple:i,component:a,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:V,focusVisible:re}),J=j$(te);return E.jsxs(V$,w({as:N,className:se(J.root,l),ownerState:te,onBlur:Ke,onClick:g,onContextMenu:q,onFocus:St,onKeyDown:it,onKeyUp:He,onMouseDown:Re,onMouseLeave:fe,onMouseUp:Oe,onDragLeave:ve,onTouchEnd:nt,onTouchMove:de,onTouchStart:le,ref:Q,tabIndex:u?-1:V,type:I},H,D,{children:[s,ye?E.jsx(F$,w({ref:L,center:i},z)):null]}))}),zy=H$;function U$(e){return _e("PrivateSwitchBase",e)}$e("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const W$=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],G$=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${he(o)}`],input:["input"]};return Me(i,U$,t)},K$=Y(zy)(({ownerState:e})=>w({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),q$=Y("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Y$=x.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:s,defaultChecked:l,disabled:a,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:f,inputProps:m,inputRef:S,name:g,onBlur:R,onChange:v,onFocus:h,readOnly:p,required:y=!1,tabIndex:b,type:k,value:C}=t,$=Z(t,W$),[T,P]=Wo({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),O=Jr(),V=L=>{h&&h(L),O&&O.onFocus&&O.onFocus(L)},z=L=>{R&&R(L),O&&O.onBlur&&O.onBlur(L)},M=L=>{if(L.nativeEvent.defaultPrevented)return;const A=L.target.checked;P(A),v&&v(L,A)};let I=a;O&&typeof I>"u"&&(I=O.disabled);const D=k==="checkbox"||k==="radio",j=w({},t,{checked:T,disabled:I,disableFocusRipple:u,edge:c}),_=G$(j);return E.jsxs(K$,w({component:"span",className:se(_.root,s),centerRipple:!0,focusRipple:!u,disabled:I,tabIndex:null,role:void 0,onFocus:V,onBlur:z,ownerState:j,ref:n},$,{children:[E.jsx(q$,w({autoFocus:r,checked:o,defaultChecked:l,className:_.input,disabled:I,id:D?f:void 0,name:g,onChange:M,readOnly:p,ref:S,required:y,ownerState:j,tabIndex:b,type:k},k==="checkbox"&&C===void 0?{}:{value:C},m)),T?i:d]}))}),X$=Y$;function Q$(e){return _e("MuiSvgIcon",e)}$e("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Z$=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],J$=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${he(t)}`,`fontSize${he(n)}`]};return Me(o,Q$,r)},eP=Y("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${he(n.color)}`],t[`fontSize${he(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,l,a,u,c,d,f,m,S,g,R,v,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,20))||"1.25rem",medium:((a=e.typography)==null||(u=a.pxToRem)==null?void 0:u.call(a,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(m=(e.vars||e).palette)==null||(S=m[t.color])==null?void 0:S.main)!=null?f:{action:(g=(e.vars||e).palette)==null||(R=g.action)==null?void 0:R.active,disabled:(v=(e.vars||e).palette)==null||(h=v.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),Dy=x.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:l="svg",fontSize:a="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,m=Z(r,Z$),S=w({},r,{color:s,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f}),g={};c||(g.viewBox=f);const R=J$(S);return E.jsxs(eP,w({as:l,className:se(R.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},g,m,{ownerState:S,children:[o,d?E.jsx("title",{children:d}):null]}))});Dy.muiName="SvgIcon";const Fm=Dy;function Is(e,t){function n(r,o){return E.jsx(Fm,w({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Fm.muiName,x.memo(x.forwardRef(n))}const tP=Is(E.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"),nP=Is(E.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"),rP=Is(E.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 oP(e){return _e("MuiCheckbox",e)}const iP=$e("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),dc=iP,sP=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],lP=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${he(r)}`]},i=Me(o,oP,t);return w({},t,i)},aP=Y(X$,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${he(n.color)}`]]}})(({theme:e,ownerState:t})=>w({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:gn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${dc.checked}, &.${dc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${dc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),uP=E.jsx(nP,{}),cP=E.jsx(tP,{}),dP=E.jsx(rP,{}),fP=x.forwardRef(function(t,n){var r,o;const i=Ae({props:t,name:"MuiCheckbox"}),{checkedIcon:s=uP,color:l="primary",icon:a=cP,indeterminate:u=!1,indeterminateIcon:c=dP,inputProps:d,size:f="medium",className:m}=i,S=Z(i,sP),g=u?c:a,R=u?c:s,v=w({},i,{color:l,indeterminate:u,size:f}),h=lP(v);return E.jsx(aP,w({type:"checkbox",inputProps:w({"data-indeterminate":u},d),icon:x.cloneElement(g,{fontSize:(r=g.props.fontSize)!=null?r:f}),checkedIcon:x.cloneElement(R,{fontSize:(o=R.props.fontSize)!=null?o:f}),ownerState:v,ref:n,className:se(h.root,m)},S,{classes:h}))}),Ld=fP;function Nm(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ha(e,t=!1){return e&&(Nm(e.value)&&e.value!==""||t&&Nm(e.defaultValue)&&e.defaultValue!=="")}function pP(e){return e.startAdornment}function hP(e){return _e("MuiFormControl",e)}$e("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const mP=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],gP=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${he(n)}`,r&&"fullWidth"]};return Me(o,hP,t)},vP=Y("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>w({},t.root,t[`margin${he(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>w({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%"})),yP=x.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:l="div",disabled:a=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:m="none",required:S=!1,size:g="medium",variant:R="outlined"}=r,v=Z(r,mP),h=w({},r,{color:s,component:l,disabled:a,error:u,fullWidth:d,hiddenLabel:f,margin:m,required:S,size:g,variant:R}),p=gP(h),[y,b]=x.useState(()=>{let z=!1;return o&&x.Children.forEach(o,M=>{if(!_l(M,["Input","Select"]))return;const I=_l(M,["Select"])?M.props.input:M;I&&pP(I.props)&&(z=!0)}),z}),[k,C]=x.useState(()=>{let z=!1;return o&&x.Children.forEach(o,M=>{_l(M,["Input","Select"])&&(ha(M.props,!0)||ha(M.props.inputProps,!0))&&(z=!0)}),z}),[$,T]=x.useState(!1);a&&$&&T(!1);const P=c!==void 0&&!a?c:$;let O;const V=x.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:s,disabled:a,error:u,filled:k,focused:P,fullWidth:d,hiddenLabel:f,size:g,onBlur:()=>{T(!1)},onEmpty:()=>{C(!1)},onFilled:()=>{C(!0)},onFocus:()=>{T(!0)},registerEffect:O,required:S,variant:R}),[y,s,a,u,k,P,d,f,O,S,g,R]);return E.jsx(fp.Provider,{value:V,children:E.jsx(vP,w({as:l,ownerState:h,className:se(p.root,i),ref:n},v,{children:o}))})}),zm=yP;function SP(e){return _e("MuiTypography",e)}$e("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const xP=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],wP=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,l={root:["root",i,e.align!=="inherit"&&`align${he(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Me(l,SP,s)},bP=Y("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${he(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>w({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Dm={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},CP={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},kP=e=>CP[e]||e,RP=x.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiTypography"}),o=kP(r.color),i=Jf(w({},r,{color:o})),{align:s="inherit",className:l,component:a,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:m=Dm}=i,S=Z(i,xP),g=w({},i,{align:s,color:o,className:l,component:a,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:m}),R=a||(d?"p":m[f]||Dm[f])||"span",v=wP(g);return E.jsx(bP,w({as:R,ref:n,ownerState:g,className:se(v.root,l)},S))}),zr=RP;function EP(e){return _e("MuiFormControlLabel",e)}const $P=$e("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),zi=$P;function oi({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 PP=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],_P=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${he(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Me(s,EP,t)},TP=Y("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zi.label}`]:t.label},t.root,t[`labelPlacement${he(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>w({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${zi.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},{[`& .${zi.label}`]:{[`&.${zi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),OP=Y("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${zi.error}`]:{color:(e.vars||e).palette.error.main}})),MP=x.forwardRef(function(t,n){var r,o;const i=Ae({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:l={},control:a,disabled:u,disableTypography:c,label:d,labelPlacement:f="end",required:m,slotProps:S={}}=i,g=Z(i,PP),R=Jr(),v=(r=u??a.props.disabled)!=null?r:R==null?void 0:R.disabled,h=m??a.props.required,p={disabled:v,required:h};["checked","name","onChange","value","inputRef"].forEach(T=>{typeof a.props[T]>"u"&&typeof i[T]<"u"&&(p[T]=i[T])});const y=oi({props:i,muiFormControl:R,states:["error"]}),b=w({},i,{disabled:v,labelPlacement:f,required:h,error:y.error}),k=_P(b),C=(o=S.typography)!=null?o:l.typography;let $=d;return $!=null&&$.type!==zr&&!c&&($=E.jsx(zr,w({component:"span"},C,{className:se(k.label,C==null?void 0:C.className),children:$}))),E.jsxs(TP,w({className:se(k.root,s),ownerState:b,ref:n},g,{children:[x.cloneElement(a,p),$,h&&E.jsxs(OP,{ownerState:b,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}))}),By=MP;function IP(e){return _e("MuiFormLabel",e)}const AP=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ji=AP,LP=["children","className","color","component","disabled","error","filled","focused","required"],FP=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:l}=e,a={root:["root",`color${he(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return Me(a,IP,t)},NP=Y("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>w({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>w({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ji.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ji.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ji.error}`]:{color:(e.vars||e).palette.error.main}})),zP=Y("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ji.error}`]:{color:(e.vars||e).palette.error.main}})),DP=x.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:s="label"}=r,l=Z(r,LP),a=Jr(),u=oi({props:r,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),c=w({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=FP(c);return E.jsxs(NP,w({as:s,ownerState:c,className:se(d.root,i),ref:n},l,{children:[o,u.required&&E.jsxs(zP,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),BP=DP;function jP(e){return _e("MuiInputLabel",e)}$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const VP=["disableAnimation","margin","shrink","variant","className"],HP=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:l}=e,u=Me({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",s],asterisk:[l&&"asterisk"]},jP,t);return w({},t,u)},UP=Y(BP,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ji.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>w({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"&&w({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&&w({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"&&w({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)"}))),WP=x.forwardRef(function(t,n){const r=Ae({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:s}=r,l=Z(r,VP),a=Jr();let u=i;typeof u>"u"&&a&&(u=a.filled||a.focused||a.adornedStart);const c=oi({props:r,muiFormControl:a,states:["size","variant","required"]}),d=w({},r,{disableAnimation:o,formControl:a,shrink:u,size:c.size,variant:c.variant,required:c.required}),f=HP(d);return E.jsx(UP,w({"data-shrink":u,ownerState:d,ref:n,className:se(f.root,s)},l,{classes:f}))}),Bm=WP,GP=x.createContext({}),ma=GP;function KP(e){return _e("MuiListItemText",e)}const qP=$e("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ga=qP,YP=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],XP=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Me({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},KP,t)},QP=Y("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ga.primary}`]:t.primary},{[`& .${ga.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>w({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),ZP=x.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:l=!1,primary:a,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,f=Z(r,YP),{dense:m}=x.useContext(ma);let S=a??o,g=c;const R=w({},r,{disableTypography:s,inset:l,primary:!!S,secondary:!!g,dense:m}),v=XP(R);return S!=null&&S.type!==zr&&!s&&(S=E.jsx(zr,w({variant:m?"body2":"body1",className:v.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:S}))),g!=null&&g.type!==zr&&!s&&(g=E.jsx(zr,w({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},d,{children:g}))),E.jsxs(QP,w({className:se(v.root,i),ownerState:R,ref:n},f,{children:[S,g]}))}),JP=ZP,e_=$e("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),jm=e_,t_=$e("MuiListItemIcon",["root","alignItemsFlexStart"]),Vm=t_;function n_(e){return _e("MuiMenuItem",e)}const r_=$e("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ri=r_,o_=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],i_=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},s_=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,a=Me({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},n_,s);return w({},s,a)},l_=Y(zy,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:i_})(({theme:e,ownerState:t})=>w({},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"}},[`&.${Ri.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ri.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ri.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gn(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})`:gn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ri.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ri.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jm.inset}`]:{marginLeft:52},[`& .${ga.root}`]:{marginTop:0,marginBottom:0},[`& .${ga.inset}`]:{paddingLeft:36},[`& .${Vm.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&w({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Vm.root} svg`]:{fontSize:"1.25rem"}}))),a_=x.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:l=!1,disableGutters:a=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f}=r,m=Z(r,o_),S=x.useContext(ma),g=x.useMemo(()=>({dense:s||S.dense||!1,disableGutters:a}),[S.dense,s,a]),R=x.useRef(null);tn(()=>{o&&R.current&&R.current.focus()},[o]);const v=w({},r,{dense:g.dense,divider:l,disableGutters:a}),h=s_(r),p=Xe(R,n);let y;return r.disabled||(y=d!==void 0?d:-1),E.jsx(ma.Provider,{value:g,children:E.jsx(l_,w({ref:p,role:c,tabIndex:y,component:i,focusVisibleClassName:se(h.focusVisible,u),className:se(h.root,f)},m,{ownerState:v,classes:h}))})}),fc=a_;var Hm;const u_=["children","classes","className","label","notched"],c_=Y("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),d_=Y("legend")(({ownerState:e,theme:t})=>w({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&&w({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 f_(e){const{className:t,label:n,notched:r}=e,o=Z(e,u_),i=n!=null&&n!=="",s=w({},e,{notched:r,withLabel:i});return E.jsx(c_,w({"aria-hidden":!0,className:t,ownerState:s},o,{children:E.jsx(d_,{ownerState:s,children:i?E.jsx("span",{children:n}):Hm||(Hm=E.jsx("span",{className:"notranslate",children:""}))})}))}function p_(e){return E.jsx(lC,w({},e,{defaultTheme:cu,themeId:Yr}))}function h_(e){return _e("MuiInputBase",e)}const m_=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Qo=m_,g_=["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"],hu=(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${he(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},mu=(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]},v_=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:l,fullWidth:a,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:m,type:S}=e,g={root:["root",`color${he(n)}`,r&&"disabled",o&&"error",a&&"fullWidth",s&&"focused",l&&"formControl",f==="small"&&"sizeSmall",c&&"multiline",m&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",S==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",m&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return Me(g,h_,t)},gu=Y("div",{name:"MuiInputBase",slot:"Root",overridesResolver:hu})(({theme:e,ownerState:t})=>w({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Qo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&w({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),vu=Y("input",{name:"MuiInputBase",slot:"Input",overridesResolver:mu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=w({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return w({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Qo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Qo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),y_=E.jsx(p_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),S_=x.forwardRef(function(t,n){var r;const o=Ae({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:l,className:a,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:m,endAdornment:S,fullWidth:g=!1,id:R,inputComponent:v="input",inputProps:h={},inputRef:p,maxRows:y,minRows:b,multiline:k=!1,name:C,onBlur:$,onChange:T,onClick:P,onFocus:O,onKeyDown:V,onKeyUp:z,placeholder:M,readOnly:I,renderSuffix:D,rows:j,slotProps:_={},slots:L={},startAdornment:A,type:K="text",value:W}=o,ne=Z(o,g_),re=h.value!=null?h.value:W,{current:ee}=x.useRef(re!=null),ie=x.useRef(),Ce=x.useCallback(J=>{},[]),ye=Xe(ie,p,h.ref,Ce),[ue,Re]=x.useState(!1),q=Jr(),ve=oi({props:o,muiFormControl:q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ve.focused=q?q.focused:ue,x.useEffect(()=>{!q&&f&&ue&&(Re(!1),$&&$())},[q,f,ue,$]);const Oe=q&&q.onFilled,fe=q&&q.onEmpty,le=x.useCallback(J=>{ha(J)?Oe&&Oe():fe&&fe()},[Oe,fe]);tn(()=>{ee&&le({value:re})},[re,le,ee]);const nt=J=>{if(ve.disabled){J.stopPropagation();return}O&&O(J),h.onFocus&&h.onFocus(J),q&&q.onFocus?q.onFocus(J):Re(!0)},de=J=>{$&&$(J),h.onBlur&&h.onBlur(J),q&&q.onBlur?q.onBlur(J):Re(!1)},Ke=(J,...U)=>{if(!ee){const B=J.target||ie.current;if(B==null)throw new Error(Sr(1));le({value:B.value})}h.onChange&&h.onChange(J,...U),T&&T(J,...U)};x.useEffect(()=>{le(ie.current)},[]);const St=J=>{ie.current&&J.currentTarget===J.target&&ie.current.focus(),P&&!ve.disabled&&P(J)};let ce=v,Se=h;k&&ce==="input"&&(j?Se=w({type:void 0,minRows:j,maxRows:j},Se):Se=w({type:void 0,maxRows:y,minRows:b},Se),ce=g$);const it=J=>{le(J.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};x.useEffect(()=>{q&&q.setAdornedStart(!!A)},[q,A]);const He=w({},o,{color:ve.color||"primary",disabled:ve.disabled,endAdornment:S,error:ve.error,focused:ve.focused,formControl:q,fullWidth:g,hiddenLabel:ve.hiddenLabel,multiline:k,size:ve.size,startAdornment:A,type:K}),N=v_(He),H=L.root||u.Root||gu,Q=_.root||c.root||{},te=L.input||u.Input||vu;return Se=w({},Se,(r=_.input)!=null?r:c.input),E.jsxs(x.Fragment,{children:[!m&&y_,E.jsxs(H,w({},Q,!gr(H)&&{ownerState:w({},He,Q.ownerState)},{ref:n,onClick:St},ne,{className:se(N.root,Q.className,a,I&&"MuiInputBase-readOnly"),children:[A,E.jsx(fp.Provider,{value:null,children:E.jsx(te,w({ownerState:He,"aria-invalid":ve.error,"aria-describedby":i,autoComplete:s,autoFocus:l,defaultValue:d,disabled:ve.disabled,id:R,onAnimationStart:it,name:C,placeholder:M,readOnly:I,required:ve.required,rows:j,value:re,onKeyDown:V,onKeyUp:z,type:K},Se,!gr(te)&&{as:ce,ownerState:w({},He,Se.ownerState)},{ref:ye,className:se(N.input,Se.className,I&&"MuiInputBase-readOnly"),onBlur:de,onChange:Ke,onFocus:nt}))}),S,D?D(w({},ve,{startAdornment:A})):null]}))]})}),mp=S_;function x_(e){return _e("MuiOutlinedInput",e)}const w_=w({},Qo,$e("MuiOutlinedInput",["root","notchedOutline","input"])),Jn=w_,b_=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],C_=e=>{const{classes:t}=e,r=Me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},x_,t);return w({},t,r)},k_=Y(gu,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:hu})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return w({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Jn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Jn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Jn.focused} .${Jn.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Jn.error} .${Jn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Jn.disabled} .${Jn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&w({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),R_=Y(f_,{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}}),E_=Y(vu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:mu})(({theme:e,ownerState:t})=>w({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})),jy=x.forwardRef(function(t,n){var r,o,i,s,l;const a=Ae({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:m=!1,notched:S,slots:g={},type:R="text"}=a,v=Z(a,b_),h=C_(a),p=Jr(),y=oi({props:a,muiFormControl:p,states:["required"]}),b=w({},a,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:p,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:m,size:y.size,type:R}),k=(r=(o=g.root)!=null?o:u.Root)!=null?r:k_,C=(i=(s=g.input)!=null?s:u.Input)!=null?i:E_;return E.jsx(mp,w({slots:{root:k,input:C},renderSuffix:$=>E.jsx(R_,{ownerState:b,className:h.notchedOutline,label:f!=null&&f!==""&&y.required?l||(l=E.jsxs(x.Fragment,{children:[f," ","*"]})):f,notched:typeof S<"u"?S:!!($.startAdornment||$.filled||$.focused)}),fullWidth:c,inputComponent:d,multiline:m,ref:n,type:R},v,{classes:w({},h,{notchedOutline:null})}))});jy.muiName="Input";const Vy=jy;var Te={};/**
|
|
128
|
+
* @license React
|
|
129
|
+
* react-is.production.min.js
|
|
130
|
+
*
|
|
131
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the MIT license found in the
|
|
134
|
+
* LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/var gp=Symbol.for("react.element"),vp=Symbol.for("react.portal"),yu=Symbol.for("react.fragment"),Su=Symbol.for("react.strict_mode"),xu=Symbol.for("react.profiler"),wu=Symbol.for("react.provider"),bu=Symbol.for("react.context"),$_=Symbol.for("react.server_context"),Cu=Symbol.for("react.forward_ref"),ku=Symbol.for("react.suspense"),Ru=Symbol.for("react.suspense_list"),Eu=Symbol.for("react.memo"),$u=Symbol.for("react.lazy"),P_=Symbol.for("react.offscreen"),Hy;Hy=Symbol.for("react.module.reference");function sn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gp:switch(e=e.type,e){case yu:case xu:case Su:case ku:case Ru:return e;default:switch(e=e&&e.$$typeof,e){case $_:case bu:case Cu:case $u:case Eu:case wu:return e;default:return t}}case vp:return t}}}Te.ContextConsumer=bu;Te.ContextProvider=wu;Te.Element=gp;Te.ForwardRef=Cu;Te.Fragment=yu;Te.Lazy=$u;Te.Memo=Eu;Te.Portal=vp;Te.Profiler=xu;Te.StrictMode=Su;Te.Suspense=ku;Te.SuspenseList=Ru;Te.isAsyncMode=function(){return!1};Te.isConcurrentMode=function(){return!1};Te.isContextConsumer=function(e){return sn(e)===bu};Te.isContextProvider=function(e){return sn(e)===wu};Te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gp};Te.isForwardRef=function(e){return sn(e)===Cu};Te.isFragment=function(e){return sn(e)===yu};Te.isLazy=function(e){return sn(e)===$u};Te.isMemo=function(e){return sn(e)===Eu};Te.isPortal=function(e){return sn(e)===vp};Te.isProfiler=function(e){return sn(e)===xu};Te.isStrictMode=function(e){return sn(e)===Su};Te.isSuspense=function(e){return sn(e)===ku};Te.isSuspenseList=function(e){return sn(e)===Ru};Te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===yu||e===xu||e===Su||e===ku||e===Ru||e===P_||typeof e=="object"&&e!==null&&(e.$$typeof===$u||e.$$typeof===Eu||e.$$typeof===wu||e.$$typeof===bu||e.$$typeof===Cu||e.$$typeof===Hy||e.getModuleId!==void 0)};Te.typeOf=sn;function __(e){return _e("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const T_=["children","className","component","dense","disablePadding","subheader"],O_=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Me({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},__,t)},M_=Y("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})=>w({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),I_=x.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:l=!1,disablePadding:a=!1,subheader:u}=r,c=Z(r,T_),d=x.useMemo(()=>({dense:l}),[l]),f=w({},r,{component:s,dense:l,disablePadding:a}),m=O_(f);return E.jsx(ma.Provider,{value:d,children:E.jsxs(M_,w({as:s,className:se(m.root,i),ref:n,ownerState:f},c,{children:[u,o]}))})}),A_=I_,L_=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function pc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Um(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Uy(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 Ei(e,t,n,r,o,i){let s=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const a=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Uy(l,i)||a)l=o(e,l,n);else return l.focus(),!0}return!1}const F_=x.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:l,disabledItemsFocusable:a=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,f=Z(t,L_),m=x.useRef(null),S=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});tn(()=>{o&&m.current.focus()},[o]),x.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(p,y)=>{const b=!m.current.style.width;if(p.clientHeight<m.current.clientHeight&&b){const k=`${b0(tt(p))}px`;m.current.style[y.direction==="rtl"?"paddingLeft":"paddingRight"]=k,m.current.style.width=`calc(100% + ${k})`}return m.current}}),[]);const g=p=>{const y=m.current,b=p.key,k=tt(y).activeElement;if(b==="ArrowDown")p.preventDefault(),Ei(y,k,u,a,pc);else if(b==="ArrowUp")p.preventDefault(),Ei(y,k,u,a,Um);else if(b==="Home")p.preventDefault(),Ei(y,null,u,a,pc);else if(b==="End")p.preventDefault(),Ei(y,null,u,a,Um);else if(b.length===1){const C=S.current,$=b.toLowerCase(),T=performance.now();C.keys.length>0&&(T-C.lastTime>500?(C.keys=[],C.repeating=!0,C.previousKeyMatched=!0):C.repeating&&$!==C.keys[0]&&(C.repeating=!1)),C.lastTime=T,C.keys.push($);const P=k&&!C.repeating&&Uy(k,C);C.previousKeyMatched&&(P||Ei(y,k,!1,a,pc,C))?p.preventDefault():C.previousKeyMatched=!1}c&&c(p)},R=Xe(m,n);let v=-1;x.Children.forEach(s,(p,y)=>{x.isValidElement(p)&&(p.props.disabled||(d==="selectedMenu"&&p.props.selected||v===-1)&&(v=y),v===y&&(p.props.disabled||p.props.muiSkipListHighlight||p.type.muiSkipListHighlight)&&(v+=1,v>=s.length&&(v=-1)))});const h=x.Children.map(s,(p,y)=>{if(y===v){const b={};return i&&(b.autoFocus=!0),p.props.tabIndex===void 0&&d==="selectedMenu"&&(b.tabIndex=0),x.cloneElement(p,b)}return p});return E.jsx(A_,w({role:"menu",ref:R,className:l,onKeyDown:g,tabIndex:o?0:-1},f,{children:h}))}),N_=F_;function z_(e){return _e("MuiPaper",e)}$e("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 D_=["className","component","elevation","square","variant"],B_=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Me(i,z_,o)},j_=Y("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 w({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"&&w({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${gn("#fff",sm(t.elevation))}, ${gn("#fff",sm(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),V_=x.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:l=!1,variant:a="elevation"}=r,u=Z(r,D_),c=w({},r,{component:i,elevation:s,square:l,variant:a}),d=B_(c);return E.jsx(j_,w({as:i,ownerState:c,className:se(d.root,o),ref:n},u))}),Wy=V_,Gy=e=>e.scrollTop;function va(e,t){var n,r;const{timeout:o,easing:i,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}const H_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Fd(e){return`scale(${e}, ${e**2})`}const U_={entering:{opacity:1,transform:Fd(1)},entered:{opacity:1,transform:"none"}},hc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ky=x.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:l,onEnter:a,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:m,style:S,timeout:g="auto",TransitionComponent:R=Ny}=t,v=Z(t,H_),h=x.useRef(),p=x.useRef(),y=Ts(),b=x.useRef(null),k=Xe(b,i.ref,n),C=I=>D=>{if(I){const j=b.current;D===void 0?I(j):I(j,D)}},$=C(c),T=C((I,D)=>{Gy(I);const{duration:j,delay:_,easing:L}=va({style:S,timeout:g,easing:s},{mode:"enter"});let A;g==="auto"?(A=y.transitions.getAutoHeightDuration(I.clientHeight),p.current=A):A=j,I.style.transition=[y.transitions.create("opacity",{duration:A,delay:_}),y.transitions.create("transform",{duration:hc?A:A*.666,delay:_,easing:L})].join(","),a&&a(I,D)}),P=C(u),O=C(m),V=C(I=>{const{duration:D,delay:j,easing:_}=va({style:S,timeout:g,easing:s},{mode:"exit"});let L;g==="auto"?(L=y.transitions.getAutoHeightDuration(I.clientHeight),p.current=L):L=D,I.style.transition=[y.transitions.create("opacity",{duration:L,delay:j}),y.transitions.create("transform",{duration:hc?L:L*.666,delay:hc?j:j||L*.333,easing:_})].join(","),I.style.opacity=0,I.style.transform=Fd(.75),d&&d(I)}),z=C(f),M=I=>{g==="auto"&&(h.current=setTimeout(I,p.current||0)),r&&r(b.current,I)};return x.useEffect(()=>()=>{clearTimeout(h.current)},[]),E.jsx(R,w({appear:o,in:l,nodeRef:b,onEnter:T,onEntered:P,onEntering:$,onExit:V,onExited:z,onExiting:O,addEndListener:M,timeout:g==="auto"?null:g},v,{children:(I,D)=>x.cloneElement(i,w({style:w({opacity:0,transform:Fd(.75),visibility:I==="exited"&&!l?"hidden":void 0},U_[I],S,i.props.style),ref:k},D))}))});Ky.muiSupportAuto=!0;const Nd=Ky,W_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],G_={entering:{opacity:1},entered:{opacity:1}},K_=x.forwardRef(function(t,n){const r=Ts(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:a,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:m,onExited:S,onExiting:g,style:R,timeout:v=o,TransitionComponent:h=Ny}=t,p=Z(t,W_),y=x.useRef(null),b=Xe(y,l.ref,n),k=M=>I=>{if(M){const D=y.current;I===void 0?M(D):M(D,I)}},C=k(f),$=k((M,I)=>{Gy(M);const D=va({style:R,timeout:v,easing:a},{mode:"enter"});M.style.webkitTransition=r.transitions.create("opacity",D),M.style.transition=r.transitions.create("opacity",D),c&&c(M,I)}),T=k(d),P=k(g),O=k(M=>{const I=va({style:R,timeout:v,easing:a},{mode:"exit"});M.style.webkitTransition=r.transitions.create("opacity",I),M.style.transition=r.transitions.create("opacity",I),m&&m(M)}),V=k(S),z=M=>{i&&i(y.current,M)};return E.jsx(h,w({appear:s,in:u,nodeRef:y,onEnter:$,onEntered:T,onEntering:C,onExit:O,onExited:V,onExiting:P,addEndListener:z,timeout:v},p,{children:(M,I)=>x.cloneElement(l,w({style:w({opacity:0,visibility:M==="exited"&&!u?"hidden":void 0},G_[M],R,l.props.style),ref:b},I))}))}),q_=K_;function Y_(e){return _e("MuiBackdrop",e)}$e("MuiBackdrop",["root","invisible"]);const X_=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Q_=e=>{const{classes:t,invisible:n}=e;return Me({root:["root",n&&"invisible"]},Y_,t)},Z_=Y("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>w({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"})),J_=x.forwardRef(function(t,n){var r,o,i;const s=Ae({props:t,name:"MuiBackdrop"}),{children:l,className:a,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:m,slotProps:S={},slots:g={},TransitionComponent:R=q_,transitionDuration:v}=s,h=Z(s,X_),p=w({},s,{component:u,invisible:f}),y=Q_(p),b=(r=S.root)!=null?r:d.root;return E.jsx(R,w({in:m,timeout:v},h,{children:E.jsx(Z_,w({"aria-hidden":!0},b,{as:(o=(i=g.root)!=null?i:c.Root)!=null?o:u,className:se(y.root,a,b==null?void 0:b.className),ownerState:w({},p,b==null?void 0:b.ownerState),classes:y,ref:n,children:l}))}))}),e2=J_,t2=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],n2=Y("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})=>w({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),r2=Y(e2,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),o2=x.forwardRef(function(t,n){var r,o,i,s,l,a;const u=Ae({name:"MuiModal",props:t}),{BackdropComponent:c=r2,BackdropProps:d,classes:f,className:m,closeAfterTransition:S=!1,children:g,container:R,component:v,components:h={},componentsProps:p={},disableAutoFocus:y=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:k=!1,disablePortal:C=!1,disableRestoreFocus:$=!1,disableScrollLock:T=!1,hideBackdrop:P=!1,keepMounted:O=!1,onBackdropClick:V,onClose:z,open:M,slotProps:I,slots:D,theme:j}=u,_=Z(u,t2),[L,A]=x.useState(!0),K={container:R,closeAfterTransition:S,disableAutoFocus:y,disableEnforceFocus:b,disableEscapeKeyDown:k,disablePortal:C,disableRestoreFocus:$,disableScrollLock:T,hideBackdrop:P,keepMounted:O,onBackdropClick:V,onClose:z,open:M},W=w({},u,K,{exited:L}),ne=(r=(o=D==null?void 0:D.root)!=null?o:h.Root)!=null?r:n2,re=(i=(s=D==null?void 0:D.backdrop)!=null?s:h.Backdrop)!=null?i:c,ee=(l=I==null?void 0:I.root)!=null?l:p.root,ie=(a=I==null?void 0:I.backdrop)!=null?a:p.backdrop;return E.jsx(i$,w({slots:{root:ne,backdrop:re},slotProps:{root:()=>w({},Pd(ee,W),!gr(ne)&&{as:v,theme:j},{className:se(m,ee==null?void 0:ee.className,f==null?void 0:f.root,!W.open&&W.exited&&(f==null?void 0:f.hidden))}),backdrop:()=>w({},d,Pd(ie,W),{className:se(ie==null?void 0:ie.className,f==null?void 0:f.backdrop)})},onTransitionEnter:()=>A(!1),onTransitionExited:()=>A(!0),ref:n},_,K,{children:g}))}),i2=o2;function s2(e){return _e("MuiPopover",e)}$e("MuiPopover",["root","paper"]);const l2=["onEntering"],a2=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function Wm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Gm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Km(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function mc(e){return typeof e=="function"?e():e}const u2=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"]},s2,t)},c2=Y(i2,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),d2=Y(Wy,{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}),f2=x.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:a="anchorEl",children:u,className:c,container:d,elevation:f=8,marginThreshold:m=16,open:S,PaperProps:g={},transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:v=Nd,transitionDuration:h="auto",TransitionProps:{onEntering:p}={}}=r,y=Z(r.TransitionProps,l2),b=Z(r,a2),k=x.useRef(),C=Xe(k,g.ref),$=w({},r,{anchorOrigin:s,anchorReference:a,elevation:f,marginThreshold:m,PaperProps:g,transformOrigin:R,TransitionComponent:v,transitionDuration:h,TransitionProps:y}),T=u2($),P=x.useCallback(()=>{if(a==="anchorPosition")return l;const A=mc(i),W=(A&&A.nodeType===1?A:tt(k.current).body).getBoundingClientRect();return{top:W.top+Wm(W,s.vertical),left:W.left+Gm(W,s.horizontal)}},[i,s.horizontal,s.vertical,l,a]),O=x.useCallback(A=>({vertical:Wm(A,R.vertical),horizontal:Gm(A,R.horizontal)}),[R.horizontal,R.vertical]),V=x.useCallback(A=>{const K={width:A.offsetWidth,height:A.offsetHeight},W=O(K);if(a==="none")return{top:null,left:null,transformOrigin:Km(W)};const ne=P();let re=ne.top-W.vertical,ee=ne.left-W.horizontal;const ie=re+K.height,Ce=ee+K.width,ye=xr(mc(i)),ue=ye.innerHeight-m,Re=ye.innerWidth-m;if(re<m){const q=re-m;re-=q,W.vertical+=q}else if(ie>ue){const q=ie-ue;re-=q,W.vertical+=q}if(ee<m){const q=ee-m;ee-=q,W.horizontal+=q}else if(Ce>Re){const q=Ce-Re;ee-=q,W.horizontal+=q}return{top:`${Math.round(re)}px`,left:`${Math.round(ee)}px`,transformOrigin:Km(W)}},[i,a,P,O,m]),[z,M]=x.useState(S),I=x.useCallback(()=>{const A=k.current;if(!A)return;const K=V(A);K.top!==null&&(A.style.top=K.top),K.left!==null&&(A.style.left=K.left),A.style.transformOrigin=K.transformOrigin,M(!0)},[V]),D=(A,K)=>{p&&p(A,K),I()},j=()=>{M(!1)};x.useEffect(()=>{S&&I()}),x.useImperativeHandle(o,()=>S?{updatePosition:()=>{I()}}:null,[S,I]),x.useEffect(()=>{if(!S)return;const A=zf(()=>{I()}),K=xr(i);return K.addEventListener("resize",A),()=>{A.clear(),K.removeEventListener("resize",A)}},[i,S,I]);let _=h;h==="auto"&&!v.muiSupportAuto&&(_=void 0);const L=d||(i?tt(mc(i)).body:void 0);return E.jsx(c2,w({BackdropProps:{invisible:!0},className:se(T.root,c),container:L,open:S,ref:n,ownerState:$},b,{children:E.jsx(v,w({appear:!0,in:S,onEntering:D,onExited:j,timeout:_},y,{children:E.jsx(d2,w({elevation:f},g,{ref:C,className:se(T.paper,g.className)},z?void 0:{style:w({},g.style,{opacity:0})},{ownerState:$,children:u}))}))}))}),p2=f2;function h2(e){return _e("MuiMenu",e)}$e("MuiMenu",["root","paper","list"]);const m2=["onEntering"],g2=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],v2={vertical:"top",horizontal:"right"},y2={vertical:"top",horizontal:"left"},S2=e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"],list:["list"]},h2,t)},x2=Y(p2,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),w2=Y(Wy,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),b2=Y(N_,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),C2=x.forwardRef(function(t,n){const r=Ae({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:a,open:u,PaperProps:c={},PopoverClasses:d,transitionDuration:f="auto",TransitionProps:{onEntering:m}={},variant:S="selectedMenu"}=r,g=Z(r.TransitionProps,m2),R=Z(r,g2),v=Ts(),h=v.direction==="rtl",p=w({},r,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:m,PaperProps:c,transitionDuration:f,TransitionProps:g,variant:S}),y=S2(p),b=o&&!s&&u,k=x.useRef(null),C=(P,O)=>{k.current&&k.current.adjustStyleForScrollbar(P,v),m&&m(P,O)},$=P=>{P.key==="Tab"&&(P.preventDefault(),a&&a(P,"tabKeyDown"))};let T=-1;return x.Children.map(i,(P,O)=>{x.isValidElement(P)&&(P.props.disabled||(S==="selectedMenu"&&P.props.selected||T===-1)&&(T=O))}),E.jsx(x2,w({onClose:a,anchorOrigin:{vertical:"bottom",horizontal:h?"right":"left"},transformOrigin:h?v2:y2,PaperProps:w({as:w2},c,{classes:w({},c.classes,{root:y.paper})}),className:y.root,open:u,ref:n,transitionDuration:f,TransitionProps:w({onEntering:C},g),ownerState:p},R,{classes:d,children:E.jsx(b2,w({onKeyDown:$,actions:k,autoFocus:o&&(T===-1||s),autoFocusItem:b,variant:S},l,{className:se(y.list,l.className),children:i}))}))}),k2=C2;function R2(e){return _e("MuiNativeSelect",e)}const E2=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),yp=E2,$2=["className","disabled","error","IconComponent","inputRef","variant"],P2=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${he(n)}`,i&&"iconOpen",r&&"disabled"]};return Me(l,R2,t)},qy=({ownerState:e,theme:t})=>w({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":w({},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"},[`&.${yp.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}}),_2=Y("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Fn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${yp.multiple}`]:t.multiple}]}})(qy),Yy=({ownerState:e,theme:t})=>w({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${yp.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),T2=Y("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${he(n.variant)}`],n.open&&t.iconOpen]}})(Yy),O2=x.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:l,variant:a="standard"}=t,u=Z(t,$2),c=w({},t,{disabled:o,variant:a,error:i}),d=P2(c);return E.jsxs(x.Fragment,{children:[E.jsx(_2,w({ownerState:c,className:se(d.select,r),disabled:o,ref:l||n},u)),t.multiple?null:E.jsx(T2,{as:s,ownerState:c,className:d.icon})]})}),M2=O2;function I2(e){return _e("MuiSelect",e)}const A2=$e("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),$i=A2;var qm;const L2=["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"],F2=Y("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${$i.select}`]:t.select},{[`&.${$i.select}`]:t[n.variant]},{[`&.${$i.error}`]:t.error},{[`&.${$i.multiple}`]:t.multiple}]}})(qy,{[`&.${$i.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),N2=Y("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${he(n.variant)}`],n.open&&t.iconOpen]}})(Yy),z2=Y("input",{shouldForwardProp:e=>np(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 Ym(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function D2(e){return e==null||typeof e=="string"&&!e.trim()}const B2=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:s}=e,l={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${he(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Me(l,I2,t)},j2=x.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:l,className:a,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:f,error:m=!1,IconComponent:S,inputRef:g,labelId:R,MenuProps:v={},multiple:h,name:p,onBlur:y,onChange:b,onClose:k,onFocus:C,onOpen:$,open:T,readOnly:P,renderValue:O,SelectDisplayProps:V={},tabIndex:z,value:M,variant:I="standard"}=t,D=Z(t,L2),[j,_]=Wo({controlled:M,default:c,name:"Select"}),[L,A]=Wo({controlled:T,default:u,name:"Select"}),K=x.useRef(null),W=x.useRef(null),[ne,re]=x.useState(null),{current:ee}=x.useRef(T!=null),[ie,Ce]=x.useState(),ye=Xe(n,g),ue=x.useCallback(B=>{W.current=B,B&&re(B)},[]),Re=ne==null?void 0:ne.parentNode;x.useImperativeHandle(ye,()=>({focus:()=>{W.current.focus()},node:K.current,value:j}),[j]),x.useEffect(()=>{u&&L&&ne&&!ee&&(Ce(s?null:Re.clientWidth),W.current.focus())},[ne,s]),x.useEffect(()=>{i&&W.current.focus()},[i]),x.useEffect(()=>{if(!R)return;const B=tt(W.current).getElementById(R);if(B){const oe=()=>{getSelection().isCollapsed&&W.current.focus()};return B.addEventListener("click",oe),()=>{B.removeEventListener("click",oe)}}},[R]);const q=(B,oe)=>{B?$&&$(oe):k&&k(oe),ee||(Ce(s?null:Re.clientWidth),A(B))},ve=B=>{B.button===0&&(B.preventDefault(),W.current.focus(),q(!0,B))},Oe=B=>{q(!1,B)},fe=x.Children.toArray(l),le=B=>{const oe=fe.find(X=>X.props.value===B.target.value);oe!==void 0&&(_(oe.props.value),b&&b(B,oe))},nt=B=>oe=>{let X;if(oe.currentTarget.hasAttribute("tabindex")){if(h){X=Array.isArray(j)?j.slice():[];const qe=j.indexOf(B.props.value);qe===-1?X.push(B.props.value):X.splice(qe,1)}else X=B.props.value;if(B.props.onClick&&B.props.onClick(oe),j!==X&&(_(X),b)){const qe=oe.nativeEvent||oe,It=new qe.constructor(qe.type,qe);Object.defineProperty(It,"target",{writable:!0,value:{value:X,name:p}}),b(It,B)}h||q(!1,oe)}},de=B=>{P||[" ","ArrowUp","ArrowDown","Enter"].indexOf(B.key)!==-1&&(B.preventDefault(),q(!0,B))},Ke=ne!==null&&L,St=B=>{!Ke&&y&&(Object.defineProperty(B,"target",{writable:!0,value:{value:j,name:p}}),y(B))};delete D["aria-invalid"];let ce,Se;const it=[];let He=!1;(ha({value:j})||f)&&(O?ce=O(j):He=!0);const N=fe.map(B=>{if(!x.isValidElement(B))return null;let oe;if(h){if(!Array.isArray(j))throw new Error(Sr(2));oe=j.some(X=>Ym(X,B.props.value)),oe&&He&&it.push(B.props.children)}else oe=Ym(j,B.props.value),oe&&He&&(Se=B.props.children);return x.cloneElement(B,{"aria-selected":oe?"true":"false",onClick:nt(B),onKeyUp:X=>{X.key===" "&&X.preventDefault(),B.props.onKeyUp&&B.props.onKeyUp(X)},role:"option",selected:oe,value:void 0,"data-value":B.props.value})});He&&(h?it.length===0?ce=null:ce=it.reduce((B,oe,X)=>(B.push(oe),X<it.length-1&&B.push(", "),B),[]):ce=Se);let H=ie;!s&&ee&&ne&&(H=Re.clientWidth);let Q;typeof z<"u"?Q=z:Q=d?null:0;const te=V.id||(p?`mui-component-select-${p}`:void 0),J=w({},t,{variant:I,value:j,open:Ke,error:m}),U=B2(J);return E.jsxs(x.Fragment,{children:[E.jsx(F2,w({ref:ue,tabIndex:Q,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":Ke?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[R,te].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:de,onMouseDown:d||P?null:ve,onBlur:St,onFocus:C},V,{ownerState:J,className:se(V.className,U.select,a),id:te,children:D2(ce)?qm||(qm=E.jsx("span",{className:"notranslate",children:""})):ce})),E.jsx(z2,w({"aria-invalid":m,value:Array.isArray(j)?j.join(","):j,name:p,ref:K,"aria-hidden":!0,onChange:le,tabIndex:-1,disabled:d,className:U.nativeInput,autoFocus:i,ownerState:J},D)),E.jsx(N2,{as:S,className:U.icon,ownerState:J}),E.jsx(k2,w({id:`menu-${p||""}`,anchorEl:Re,open:Ke,onClose:Oe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:w({"aria-labelledby":R,role:"listbox",disableListWrap:!0},v.MenuListProps),PaperProps:w({},v.PaperProps,{style:w({minWidth:H},v.PaperProps!=null?v.PaperProps.style:null)}),children:N}))]})}),V2=j2,H2=Is(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function U2(e){return _e("MuiInput",e)}const W2=w({},Qo,$e("MuiInput",["root","underline","input"])),Pi=W2,G2=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],K2=e=>{const{classes:t,disableUnderline:n}=e,o=Me({root:["root",!n&&"underline"],input:["input"]},U2,t);return w({},t,o)},q2=Y(gu,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...hu(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})`),w({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"},[`&.${Pi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pi.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(.${Pi.disabled}, .${Pi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Pi.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Y2=Y(vu,{name:"MuiInput",slot:"Input",overridesResolver:mu})({}),Xy=x.forwardRef(function(t,n){var r,o,i,s;const l=Ae({props:t,name:"MuiInput"}),{disableUnderline:a,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:m=!1,slotProps:S,slots:g={},type:R="text"}=l,v=Z(l,G2),h=K2(l),y={root:{ownerState:{disableUnderline:a}}},b=S??c?_t(S??c,y):y,k=(r=(o=g.root)!=null?o:u.Root)!=null?r:q2,C=(i=(s=g.input)!=null?s:u.Input)!=null?i:Y2;return E.jsx(mp,w({slots:{root:k,input:C},slotProps:b,fullWidth:d,inputComponent:f,multiline:m,ref:n,type:R},v,{classes:h}))});Xy.muiName="Input";const X2=Xy;function Q2(e){return _e("MuiFilledInput",e)}const Z2=w({},Qo,$e("MuiFilledInput",["root","underline","input"])),Pr=Z2,J2=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],eT=e=>{const{classes:t,disableUnderline:n}=e,o=Me({root:["root",!n&&"underline"],input:["input"]},Q2,t);return w({},t,o)},tT=Y(gu,{shouldForwardProp:e=>Fn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...hu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return w({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Pr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Pr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Pr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pr.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(.${Pr.disabled}, .${Pr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Pr.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&w({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),nT=Y(vu,{name:"MuiFilledInput",slot:"Input",overridesResolver:mu})(({theme:e,ownerState:t})=>w({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),Qy=x.forwardRef(function(t,n){var r,o,i,s;const l=Ae({props:t,name:"MuiFilledInput"}),{components:a={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:m,slots:S={},type:g="text"}=l,R=Z(l,J2),v=w({},l,{fullWidth:c,inputComponent:d,multiline:f,type:g}),h=eT(l),p={root:{ownerState:v},input:{ownerState:v}},y=m??u?_t(m??u,p):p,b=(r=(o=S.root)!=null?o:a.Root)!=null?r:tT,k=(i=(s=S.input)!=null?s:a.Input)!=null?i:nT;return E.jsx(mp,w({slots:{root:b,input:k},componentsProps:y,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:g},R,{classes:h}))});Qy.muiName="Input";const rT=Qy,oT=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],iT=e=>{const{classes:t}=e;return t},Sp={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Fn(e)&&e!=="variant",slot:"Root"},sT=Y(X2,Sp)(""),lT=Y(Vy,Sp)(""),aT=Y(rT,Sp)(""),Zy=x.forwardRef(function(t,n){const r=Ae({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:s={},className:l,defaultOpen:a=!1,displayEmpty:u=!1,IconComponent:c=H2,id:d,input:f,inputProps:m,label:S,labelId:g,MenuProps:R,multiple:v=!1,native:h=!1,onClose:p,onOpen:y,open:b,renderValue:k,SelectDisplayProps:C,variant:$="outlined"}=r,T=Z(r,oT),P=h?M2:V2,O=Jr(),V=oi({props:r,muiFormControl:O,states:["variant","error"]}),z=V.variant||$,M=w({},r,{variant:z,classes:s}),I=iT(M),D=f||{standard:E.jsx(sT,{ownerState:M}),outlined:E.jsx(lT,{label:S,ownerState:M}),filled:E.jsx(aT,{ownerState:M})}[z],j=Xe(n,D.ref);return E.jsx(x.Fragment,{children:x.cloneElement(D,w({inputComponent:P,inputProps:w({children:i,error:V.error,IconComponent:c,variant:z,type:void 0,multiple:v},h?{id:d}:{autoWidth:o,defaultOpen:a,displayEmpty:u,labelId:g,MenuProps:R,onClose:p,onOpen:y,open:b,renderValue:k,SelectDisplayProps:w({id:d},C)},m,{classes:m?_t(I,m.classes):I},f?f.props.inputProps:{})},v&&h&&z==="outlined"?{notched:!0}:{},{ref:j,className:se(D.props.className,l)},!f&&{variant:z},T))})});Zy.muiName="Select";const Xm=Zy,uT=e=>!e||!gr(e),cT=uT;function dT(e){return _e("MuiSlider",e)}const fT=$e("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),vn=fT,pT=e=>{const{open:t}=e;return{offset:se(t&&vn.valueLabelOpen),circle:vn.valueLabelCircle,label:vn.valueLabelLabel}};function hT(e){const{children:t,className:n,value:r}=e,o=pT(e);return t?x.cloneElement(t,{className:se(t.props.className)},E.jsxs(x.Fragment,{children:[t.props.children,E.jsx("span",{className:se(o.offset,n),"aria-hidden":!0,children:E.jsx("span",{className:o.circle,children:E.jsx("span",{className:o.label,children:r})})})]})):null}const mT=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Qm(e){return e}const gT=Y("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${he(n.color)}`],n.size!=="medium"&&t[`size${he(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>w({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&w({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&w({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${vn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${vn.dragging}`]:{[`& .${vn.thumb}, & .${vn.track}`]:{transition:"none"}}})),vT=Y("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>w({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),yT=Y("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?ty(e.palette[t.color].main,.62):ey(e.palette[t.color].main,.5);return w({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),ST=Y("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${he(n.color)}`],n.size!=="medium"&&t[`thumbSize${he(n.size)}`]]}})(({theme:e,ownerState:t})=>w({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":w({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${vn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:gn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${vn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:gn(e.palette[t.color].main,.16)}`},[`&.${vn.disabled}`]:{"&:hover":{boxShadow:"none"}}})),xT=Y(hT,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>w({[`&.${vn.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:"-20%",top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),wT=Y("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>np(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>w({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),bT=Y("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>np(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>w({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),CT=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:l,size:a}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${he(l)}`,a&&`size${he(a)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",a&&`thumbSize${he(a)}`,l&&`thumbColor${he(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Me(u,dT,s)},kT=({children:e})=>e,RT=x.forwardRef(function(t,n){var r,o,i,s,l,a,u,c,d,f,m,S,g,R,v,h,p,y,b,k,C,$,T,P;const O=Ae({props:t,name:"MuiSlider"}),z=Ts().direction==="rtl",{"aria-label":M,"aria-valuetext":I,"aria-labelledby":D,component:j="span",components:_={},componentsProps:L={},color:A="primary",classes:K,className:W,disableSwap:ne=!1,disabled:re=!1,getAriaLabel:ee,getAriaValueText:ie,marks:Ce=!1,max:ye=100,min:ue=0,orientation:Re="horizontal",size:q="medium",step:ve=1,scale:Oe=Qm,slotProps:fe,slots:le,track:nt="normal",valueLabelDisplay:de="off",valueLabelFormat:Ke=Qm}=O,St=Z(O,mT),ce=w({},O,{isRtl:z,max:ye,min:ue,classes:K,disabled:re,disableSwap:ne,orientation:Re,marks:Ce,color:A,size:q,step:ve,scale:Oe,track:nt,valueLabelDisplay:de,valueLabelFormat:Ke}),{axisProps:Se,getRootProps:it,getHiddenInputProps:He,getThumbProps:N,open:H,active:Q,axis:te,focusedThumbIndex:J,range:U,dragging:B,marks:oe,values:X,trackOffset:qe,trackLeap:It}=f$(w({},ce,{rootRef:n}));ce.marked=oe.length>0&&oe.some(De=>De.label),ce.dragging=B,ce.focusedThumbIndex=J;const ut=CT(ce),eo=(r=(o=le==null?void 0:le.root)!=null?o:_.Root)!=null?r:gT,ii=(i=(s=le==null?void 0:le.rail)!=null?s:_.Rail)!=null?i:vT,As=(l=(a=le==null?void 0:le.track)!=null?a:_.Track)!=null?l:yT,Ls=(u=(c=le==null?void 0:le.thumb)!=null?c:_.Thumb)!=null?u:ST,Fs=(d=(f=le==null?void 0:le.valueLabel)!=null?f:_.ValueLabel)!=null?d:xT,to=(m=(S=le==null?void 0:le.mark)!=null?S:_.Mark)!=null?m:wT,no=(g=(R=le==null?void 0:le.markLabel)!=null?R:_.MarkLabel)!=null?g:bT,si=(v=(h=le==null?void 0:le.input)!=null?h:_.Input)!=null?v:"input",ro=(p=fe==null?void 0:fe.root)!=null?p:L.root,Ns=(y=fe==null?void 0:fe.rail)!=null?y:L.rail,oo=(b=fe==null?void 0:fe.track)!=null?b:L.track,li=(k=fe==null?void 0:fe.thumb)!=null?k:L.thumb,ai=(C=fe==null?void 0:fe.valueLabel)!=null?C:L.valueLabel,_u=($=fe==null?void 0:fe.mark)!=null?$:L.mark,ui=(T=fe==null?void 0:fe.markLabel)!=null?T:L.markLabel,Tu=(P=fe==null?void 0:fe.input)!=null?P:L.input,Er=cn({elementType:eo,getSlotProps:it,externalSlotProps:ro,externalForwardedProps:St,additionalProps:w({},cT(eo)&&{as:j}),ownerState:w({},ce,ro==null?void 0:ro.ownerState),className:[ut.root,W]}),ci=cn({elementType:ii,externalSlotProps:Ns,ownerState:ce,className:ut.rail}),At=cn({elementType:As,externalSlotProps:oo,additionalProps:{style:w({},Se[te].offset(qe),Se[te].leap(It))},ownerState:w({},ce,oo==null?void 0:oo.ownerState),className:ut.track}),Nn=cn({elementType:Ls,getSlotProps:N,externalSlotProps:li,ownerState:w({},ce,li==null?void 0:li.ownerState),className:ut.thumb}),Ou=cn({elementType:Fs,externalSlotProps:ai,ownerState:w({},ce,ai==null?void 0:ai.ownerState),className:ut.valueLabel}),zn=cn({elementType:to,externalSlotProps:_u,ownerState:ce,className:ut.mark}),$r=cn({elementType:no,externalSlotProps:ui,ownerState:ce,className:ut.markLabel}),zs=cn({elementType:si,getSlotProps:He,externalSlotProps:Tu,ownerState:ce});return E.jsxs(eo,w({},Er,{children:[E.jsx(ii,w({},ci)),E.jsx(As,w({},At)),oe.filter(De=>De.value>=ue&&De.value<=ye).map((De,Qe)=>{const io=fa(De.value,ue,ye),so=Se[te].offset(io);let ln;return nt===!1?ln=X.indexOf(De.value)!==-1:ln=nt==="normal"&&(U?De.value>=X[0]&&De.value<=X[X.length-1]:De.value<=X[0])||nt==="inverted"&&(U?De.value<=X[0]||De.value>=X[X.length-1]:De.value>=X[0]),E.jsxs(x.Fragment,{children:[E.jsx(to,w({"data-index":Qe},zn,!gr(to)&&{markActive:ln},{style:w({},so,zn.style),className:se(zn.className,ln&&ut.markActive)})),De.label!=null?E.jsx(no,w({"aria-hidden":!0,"data-index":Qe},$r,!gr(no)&&{markLabelActive:ln},{style:w({},so,$r.style),className:se(ut.markLabel,$r.className,ln&&ut.markLabelActive),children:De.label})):null]},Qe)}),X.map((De,Qe)=>{const io=fa(De,ue,ye),so=Se[te].offset(io),ln=de==="off"?kT:Fs;return E.jsx(ln,w({},!gr(ln)&&{valueLabelFormat:Ke,valueLabelDisplay:de,value:typeof Ke=="function"?Ke(Oe(De),Qe):Ke,index:Qe,open:H===Qe||Q===Qe||de==="on",disabled:re},Ou,{children:E.jsx(Ls,w({"data-index":Qe},Nn,{className:se(ut.thumb,Nn.className,Q===Qe&&ut.active,J===Qe&&ut.focusVisible),style:w({},so,{pointerEvents:ne&&Q!==Qe?"none":void 0},Nn.style),children:E.jsx(si,w({"data-index":Qe,"aria-label":ee?ee(Qe):M,"aria-valuenow":Oe(De),"aria-labelledby":D,"aria-valuetext":ie?ie(Oe(De),Qe):I,value:X[Qe]},zs))}))}),Qe)})]}))}),ET=RT,$T=NC({createStyledComponent:Y("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ae({props:e,name:"MuiStack"})}),PT=$T,_T=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],TT=Y(GE,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),OT=x.forwardRef(function(t,n){var r;const o=lu(),i=Ae({props:t,name:"MuiPopper"}),{anchorEl:s,component:l,components:a,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:m,open:S,placement:g,popperOptions:R,popperRef:v,transition:h,slots:p,slotProps:y}=i,b=Z(i,_T),k=(r=p==null?void 0:p.root)!=null?r:a==null?void 0:a.Root,C=w({anchorEl:s,container:c,disablePortal:d,keepMounted:f,modifiers:m,open:S,placement:g,popperOptions:R,popperRef:v,transition:h},b);return E.jsx(TT,w({as:l,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:y??u},C,{ref:n}))}),Jy=OT;function MT(e){return _e("MuiTooltip",e)}const IT=$e("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),sr=IT,AT=["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 LT(e){return Math.round(e*1e5)/1e5}const FT=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${he(i.split("-")[0])}`],arrow:["arrow"]};return Me(s,MT,t)},NT=Y(Jy,{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})=>w({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${sr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${sr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${sr.arrow}`]:w({},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"] .${sr.arrow}`]:w({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),zT=Y("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${he(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>w({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:gn(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:`${LT(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${sr.popper}[data-popper-placement*="left"] &`]:w({transformOrigin:"right center"},t.isRtl?w({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):w({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${sr.popper}[data-popper-placement*="right"] &`]:w({transformOrigin:"left center"},t.isRtl?w({marginRight:"14px"},t.touch&&{marginRight:"24px"}):w({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${sr.popper}[data-popper-placement*="top"] &`]:w({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${sr.popper}[data-popper-placement*="bottom"] &`]:w({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),DT=Y("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:gn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let fl=!1,gc=null,_i={x:0,y:0};function pl(e,t){return n=>{t&&t(n),e(n)}}const BT=x.forwardRef(function(t,n){var r,o,i,s,l,a,u,c,d,f,m,S,g,R,v,h,p,y,b;const k=Ae({props:t,name:"MuiTooltip"}),{arrow:C=!1,children:$,components:T={},componentsProps:P={},describeChild:O=!1,disableFocusListener:V=!1,disableHoverListener:z=!1,disableInteractive:M=!1,disableTouchListener:I=!1,enterDelay:D=100,enterNextDelay:j=0,enterTouchDelay:_=700,followCursor:L=!1,id:A,leaveDelay:K=0,leaveTouchDelay:W=1500,onClose:ne,onOpen:re,open:ee,placement:ie="bottom",PopperComponent:Ce,PopperProps:ye={},slotProps:ue={},slots:Re={},title:q,TransitionComponent:ve=Nd,TransitionProps:Oe}=k,fe=Z(k,AT),le=Ts(),nt=le.direction==="rtl",[de,Ke]=x.useState(),[St,ce]=x.useState(null),Se=x.useRef(!1),it=M||L,He=x.useRef(),N=x.useRef(),H=x.useRef(),Q=x.useRef(),[te,J]=Wo({controlled:ee,default:!1,name:"Tooltip",state:"open"});let U=te;const B=w0(A),oe=x.useRef(),X=x.useCallback(()=>{oe.current!==void 0&&(document.body.style.WebkitUserSelect=oe.current,oe.current=void 0),clearTimeout(Q.current)},[]);x.useEffect(()=>()=>{clearTimeout(He.current),clearTimeout(N.current),clearTimeout(H.current),X()},[X]);const qe=pe=>{clearTimeout(gc),fl=!0,J(!0),re&&!U&&re(pe)},It=mn(pe=>{clearTimeout(gc),gc=setTimeout(()=>{fl=!1},800+K),J(!1),ne&&U&&ne(pe),clearTimeout(He.current),He.current=setTimeout(()=>{Se.current=!1},le.transitions.duration.shortest)}),ut=pe=>{Se.current&&pe.type!=="touchstart"||(de&&de.removeAttribute("title"),clearTimeout(N.current),clearTimeout(H.current),D||fl&&j?N.current=setTimeout(()=>{qe(pe)},fl?j:D):qe(pe))},eo=pe=>{clearTimeout(N.current),clearTimeout(H.current),H.current=setTimeout(()=>{It(pe)},K)},{isFocusVisibleRef:ii,onBlur:As,onFocus:Ls,ref:Fs}=Na(),[,to]=x.useState(!1),no=pe=>{As(pe),ii.current===!1&&(to(!1),eo(pe))},si=pe=>{de||Ke(pe.currentTarget),Ls(pe),ii.current===!0&&(to(!0),ut(pe))},ro=pe=>{Se.current=!0;const Lt=$.props;Lt.onTouchStart&&Lt.onTouchStart(pe)},Ns=ut,oo=eo,li=pe=>{ro(pe),clearTimeout(H.current),clearTimeout(He.current),X(),oe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Q.current=setTimeout(()=>{document.body.style.WebkitUserSelect=oe.current,ut(pe)},_)},ai=pe=>{$.props.onTouchEnd&&$.props.onTouchEnd(pe),X(),clearTimeout(H.current),H.current=setTimeout(()=>{It(pe)},W)};x.useEffect(()=>{if(!U)return;function pe(Lt){(Lt.key==="Escape"||Lt.key==="Esc")&&It(Lt)}return document.addEventListener("keydown",pe),()=>{document.removeEventListener("keydown",pe)}},[It,U]);const _u=Xe($.ref,Fs,Ke,n);!q&&q!==0&&(U=!1);const ui=x.useRef(),Tu=pe=>{const Lt=$.props;Lt.onMouseMove&&Lt.onMouseMove(pe),_i={x:pe.clientX,y:pe.clientY},ui.current&&ui.current.update()},Er={},ci=typeof q=="string";O?(Er.title=!U&&ci&&!z?q:null,Er["aria-describedby"]=U?B:null):(Er["aria-label"]=ci?q:null,Er["aria-labelledby"]=U&&!ci?B:null);const At=w({},Er,fe,$.props,{className:se(fe.className,$.props.className),onTouchStart:ro,ref:_u},L?{onMouseMove:Tu}:{}),Nn={};I||(At.onTouchStart=li,At.onTouchEnd=ai),z||(At.onMouseOver=pl(Ns,At.onMouseOver),At.onMouseLeave=pl(oo,At.onMouseLeave),it||(Nn.onMouseOver=Ns,Nn.onMouseLeave=oo)),V||(At.onFocus=pl(si,At.onFocus),At.onBlur=pl(no,At.onBlur),it||(Nn.onFocus=si,Nn.onBlur=no));const Ou=x.useMemo(()=>{var pe;let Lt=[{name:"arrow",enabled:!!St,options:{element:St,padding:4}}];return(pe=ye.popperOptions)!=null&&pe.modifiers&&(Lt=Lt.concat(ye.popperOptions.modifiers)),w({},ye.popperOptions,{modifiers:Lt})},[St,ye]),zn=w({},k,{isRtl:nt,arrow:C,disableInteractive:it,placement:ie,PopperComponentProp:Ce,touch:Se.current}),$r=FT(zn),zs=(r=(o=Re.popper)!=null?o:T.Popper)!=null?r:NT,De=(i=(s=(l=Re.transition)!=null?l:T.Transition)!=null?s:ve)!=null?i:Nd,Qe=(a=(u=Re.tooltip)!=null?u:T.Tooltip)!=null?a:zT,io=(c=(d=Re.arrow)!=null?d:T.Arrow)!=null?c:DT,so=Fi(zs,w({},ye,(f=ue.popper)!=null?f:P.popper,{className:se($r.popper,ye==null?void 0:ye.className,(m=(S=ue.popper)!=null?S:P.popper)==null?void 0:m.className)}),zn),ln=Fi(De,w({},Oe,(g=ue.transition)!=null?g:P.transition),zn),y1=Fi(Qe,w({},(R=ue.tooltip)!=null?R:P.tooltip,{className:se($r.tooltip,(v=(h=ue.tooltip)!=null?h:P.tooltip)==null?void 0:v.className)}),zn),S1=Fi(io,w({},(p=ue.arrow)!=null?p:P.arrow,{className:se($r.arrow,(y=(b=ue.arrow)!=null?b:P.arrow)==null?void 0:y.className)}),zn);return E.jsxs(x.Fragment,{children:[x.cloneElement($,At),E.jsx(zs,w({as:Ce??Jy,placement:ie,anchorEl:L?{getBoundingClientRect:()=>({top:_i.y,left:_i.x,right:_i.x,bottom:_i.y,width:0,height:0})}:de,popperRef:ui,open:de?U:!1,id:B,transition:!0},Nn,so,{popperOptions:Ou,children:({TransitionProps:pe})=>E.jsx(De,w({timeout:le.transitions.duration.shorter},pe,ln,{children:E.jsxs(Qe,w({},y1,{children:[q,C?E.jsx(io,w({},S1,{ref:ce})):null]}))}))}))]})}),jT=BT;/**
|
|
136
|
+
* table-core
|
|
137
|
+
*
|
|
138
|
+
* Copyright (c) TanStack
|
|
139
|
+
*
|
|
140
|
+
* This source code is licensed under the MIT license found in the
|
|
141
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
142
|
+
*
|
|
143
|
+
* @license MIT
|
|
144
|
+
*/function lr(e,t){return typeof e=="function"?e(t):e}function on(e,t){return n=>{t.setState(r=>({...r,[e]:lr(n,r[e])}))}}function ya(e){return e instanceof Function}function VT(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function HT(e,t){const n=[],r=o=>{o.forEach(i=>{n.push(i);const s=t(i);s!=null&&s.length&&r(s)})};return r(e),n}function ae(e,t,n){let r=[],o;return()=>{let i;n.key&&n.debug&&(i=Date.now());const s=e();if(!(s.length!==r.length||s.some((u,c)=>r[c]!==u)))return o;r=s;let a;if(n.key&&n.debug&&(a=Date.now()),o=t(...s),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){const u=Math.round((Date.now()-i)*100)/100,c=Math.round((Date.now()-a)*100)/100,d=c/16,f=(m,S)=>{for(m=String(m);m.length<S;)m=" "+m;return m};console.info(`%c⏱ ${f(c,5)} /${f(u,5)} ms`,`
|
|
145
|
+
font-size: .6rem;
|
|
146
|
+
font-weight: bold;
|
|
147
|
+
color: hsl(${Math.max(0,Math.min(120-120*d,120))}deg 100% 31%);`,n==null?void 0:n.key)}return o}}function UT(e,t,n,r){var o,i;const l={...e._getDefaultColumnDef(),...t},a=l.accessorKey;let u=(o=(i=l.id)!=null?i:a?a.replace(".","_"):void 0)!=null?o:typeof l.header=="string"?l.header:void 0,c;if(l.accessorFn?c=l.accessorFn:a&&(a.includes(".")?c=f=>{let m=f;for(const g of a.split(".")){var S;m=(S=m)==null?void 0:S[g]}return m}:c=f=>f[l.accessorKey]),!u)throw new Error;let d={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:ae(()=>[!0],()=>{var f;return[d,...(f=d.columns)==null?void 0:f.flatMap(m=>m.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var f;return(f=e.options.debugAll)!=null?f:e.options.debugColumns}}),getLeafColumns:ae(()=>[e._getOrderColumnsFn()],f=>{var m;if((m=d.columns)!=null&&m.length){let S=d.columns.flatMap(g=>g.getLeafColumns());return f(S)}return[d]},{key:"column.getLeafColumns",debug:()=>{var f;return(f=e.options.debugAll)!=null?f:e.options.debugColumns}})};return d=e._features.reduce((f,m)=>Object.assign(f,m.createColumn==null?void 0:m.createColumn(d,e)),d),d}function Zm(e,t,n){var r;let i={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],l=a=>{a.subHeaders&&a.subHeaders.length&&a.subHeaders.map(l),s.push(a)};return l(i),s},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(s=>{Object.assign(i,s.createHeader==null?void 0:s.createHeader(i,e))}),i}const WT={createTable:e=>({getHeaderGroups:ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,s;const l=(i=r==null?void 0:r.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?i:[],a=(s=o==null?void 0:o.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?s:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(o!=null&&o.includes(d.id)));return hl(t,[...l,...u,...a],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterHeaderGroups:ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),hl(t,n,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftHeaderGroups:ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(s=>n.find(l=>l.id===s)).filter(Boolean))!=null?o:[];return hl(t,i,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightHeaderGroups:ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(s=>n.find(l=>l.id===s)).filter(Boolean))!=null?o:[];return hl(t,i,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFooterGroups:ae(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFooterGroups:ae(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFooterGroups:ae(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFooterGroups:ae(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFlatHeaders:ae(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFlatHeaders:ae(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFlatHeaders:ae(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFlatHeaders:ae(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterLeafHeaders:ae(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftLeafHeaders:ae(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightLeafHeaders:ae(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeafHeaders:ae(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,i,s,l,a,u;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(s=(l=n[0])==null?void 0:l.headers)!=null?s:[],...(a=(u=r[0])==null?void 0:u.headers)!=null?a:[]].map(c=>c.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})})};function hl(e,t,n,r){var o,i;let s=0;const l=function(f,m){m===void 0&&(m=1),s=Math.max(s,m),f.filter(S=>S.getIsVisible()).forEach(S=>{var g;(g=S.columns)!=null&&g.length&&l(S.columns,m+1)},0)};l(e);let a=[];const u=(f,m)=>{const S={depth:m,id:[r,`${m}`].filter(Boolean).join("_"),headers:[]},g=[];f.forEach(R=>{const v=[...g].reverse()[0],h=R.column.depth===S.depth;let p,y=!1;if(h&&R.column.parent?p=R.column.parent:(p=R.column,y=!0),v&&(v==null?void 0:v.column)===p)v.subHeaders.push(R);else{const b=Zm(n,p,{id:[r,m,p.id,R==null?void 0:R.id].filter(Boolean).join("_"),isPlaceholder:y,placeholderId:y?`${g.filter(k=>k.column===p).length}`:void 0,depth:m,index:g.length});b.subHeaders.push(R),g.push(b)}S.headers.push(R),R.headerGroup=S}),a.push(S),m>0&&u(g,m-1)},c=t.map((f,m)=>Zm(n,f,{depth:s,index:m}));u(c,s-1),a.reverse();const d=f=>f.filter(S=>S.column.getIsVisible()).map(S=>{let g=0,R=0,v=[0];S.subHeaders&&S.subHeaders.length?(v=[],d(S.subHeaders).forEach(p=>{let{colSpan:y,rowSpan:b}=p;g+=y,v.push(b)})):g=1;const h=Math.min(...v);return R=R+h,S.colSpan=g,S.rowSpan=R,{colSpan:g,rowSpan:R}});return d((o=(i=a[0])==null?void 0:i.headers)!=null?o:[]),a}const ml={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},vc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),GT={getDefaultColumnDef:()=>ml,getInitialState:e=>({columnSizing:{},columnSizingInfo:vc(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:on("columnSizing",e),onColumnSizingInfoChange:on("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:ml.minSize,(r=i??e.columnDef.size)!=null?r:ml.size),(o=e.columnDef.maxSize)!=null?o:ml.maxSize)},getStart:n=>{const r=n?n==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=r.findIndex(i=>i.id===e.id);if(o>0){const i=r[o-1];return i.getStart(n)+i.getSize()}return 0},resetSize:()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},getCanResize:()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;n+=(i=o.column.getSize())!=null?i:0}};return r(e),n},getStart:()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},getResizeHandler:()=>{const n=t.getColumn(e.column.id),r=n==null?void 0:n.getCanResize();return o=>{if(!n||!r||(o.persist==null||o.persist(),yc(o)&&o.touches&&o.touches.length>1))return;const i=e.getSize(),s=e?e.getLeafHeaders().map(g=>[g.column.id,g.column.getSize()]):[[n.id,n.getSize()]],l=yc(o)?Math.round(o.touches[0].clientX):o.clientX,a={},u=(g,R)=>{typeof R=="number"&&(t.setColumnSizingInfo(v=>{var h,p;const y=R-((h=v==null?void 0:v.startOffset)!=null?h:0),b=Math.max(y/((p=v==null?void 0:v.startSize)!=null?p:0),-.999999);return v.columnSizingStart.forEach(k=>{let[C,$]=k;a[C]=Math.round(Math.max($+$*b,0)*100)/100}),{...v,deltaOffset:y,deltaPercentage:b}}),(t.options.columnResizeMode==="onChange"||g==="end")&&t.setColumnSizing(v=>({...v,...a})))},c=g=>u("move",g),d=g=>{u("end",g),t.setColumnSizingInfo(R=>({...R,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f={moveHandler:g=>c(g.clientX),upHandler:g=>{document.removeEventListener("mousemove",f.moveHandler),document.removeEventListener("mouseup",f.upHandler),d(g.clientX)}},m={moveHandler:g=>(g.cancelable&&(g.preventDefault(),g.stopPropagation()),c(g.touches[0].clientX),!1),upHandler:g=>{var R;document.removeEventListener("touchmove",m.moveHandler),document.removeEventListener("touchend",m.upHandler),g.cancelable&&(g.preventDefault(),g.stopPropagation()),d((R=g.touches[0])==null?void 0:R.clientX)}},S=KT()?{passive:!1}:!1;yc(o)?(document.addEventListener("touchmove",m.moveHandler,S),document.addEventListener("touchend",m.upHandler,S)):(document.addEventListener("mousemove",f.moveHandler,S),document.addEventListener("mouseup",f.upHandler,S)),t.setColumnSizingInfo(g=>({...g,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}}),createTable:e=>({setColumnSizing:t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},resetHeaderSizeInfo:t=>{var n;e.setColumnSizingInfo(t?vc():(n=e.initialState.columnSizingInfo)!=null?n:vc())},getTotalSize:()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},getLeftTotalSize:()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},getCenterTotalSize:()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},getRightTotalSize:()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}})};let gl=null;function KT(){if(typeof gl=="boolean")return gl;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return gl=e,gl}function yc(e){return e.type==="touchstart"}const qT={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:on("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;return{_autoResetExpanded:()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},setExpanded:r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),toggleAllRowsExpanded:r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},resetExpanded:r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},getCanSomeRowsExpand:()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),getToggleAllRowsExpandedHandler:()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},getIsAllRowsExpanded:()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},getExpandedDepth:()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const s=i.split(".");r=Math.max(r,s.length)}),r},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())}},createRow:(e,t)=>({toggleExpanded:n=>{t.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let s={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(l=>{s[l]=!0}):s=r,n=(o=n)!=null?o:!i,!i&&n)return{...s,[e.id]:!0};if(i&&!n){const{[e.id]:l,...a}=s;return a}return r})},getIsExpanded:()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},getCanExpand:()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},getToggleExpandedHandler:()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}})},e1=(e,t,n)=>{var r,o,i;const s=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(o=r.toString())==null||(i=o.toLowerCase())==null)&&i.includes(s))};e1.autoRemove=e=>xn(e);const t1=(e,t,n)=>{var r,o;return!!(!((r=e.getValue(t))==null||(o=r.toString())==null)&&o.includes(n))};t1.autoRemove=e=>xn(e);const n1=(e,t,n)=>{var r,o;return((r=e.getValue(t))==null||(o=r.toString())==null?void 0:o.toLowerCase())===(n==null?void 0:n.toLowerCase())};n1.autoRemove=e=>xn(e);const r1=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};r1.autoRemove=e=>xn(e)||!(e!=null&&e.length);const o1=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});o1.autoRemove=e=>xn(e)||!(e!=null&&e.length);const i1=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});i1.autoRemove=e=>xn(e)||!(e!=null&&e.length);const s1=(e,t,n)=>e.getValue(t)===n;s1.autoRemove=e=>xn(e);const l1=(e,t,n)=>e.getValue(t)==n;l1.autoRemove=e=>xn(e);const xp=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};xp.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(r)?-1/0:r,s=n===null||Number.isNaN(o)?1/0:o;if(i>s){const l=i;i=s,s=l}return[i,s]};xp.autoRemove=e=>xn(e)||xn(e[0])&&xn(e[1]);const Dn={includesString:e1,includesStringSensitive:t1,equalsString:n1,arrIncludes:r1,arrIncludesAll:o1,arrIncludesSome:i1,equals:s1,weakEquals:l1,inNumberRange:xp};function xn(e){return e==null||e===""}const YT={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:on("columnFilters",e),onGlobalFilterChange:on("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n,r;const o=(n=e.getCoreRowModel().flatRows[0])==null||(r=n._getAllCellsByColumnId()[t.id])==null?void 0:r.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Dn.includesString:typeof r=="number"?Dn.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Dn.equals:Array.isArray(r)?Dn.arrIncludes:Dn.weakEquals},getFilterFn:()=>{var n,r;return ya(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Dn[e.columnDef.filterFn]},getCanFilter:()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},getCanGlobalFilter:()=>{var n,r,o,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var n,r;return(n=t.getState().columnFilters)==null||(r=n.find(o=>o.id===e.id))==null?void 0:r.value},getFilterIndex:()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},setFilterValue:n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),i=r==null?void 0:r.find(c=>c.id===e.id),s=lr(n,i?i.value:void 0);if(Jm(o,s,e)){var l;return(l=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?l:[]}const a={id:e.id,value:s};if(i){var u;return(u=r==null?void 0:r.map(c=>c.id===e.id?a:c))!=null?u:[]}return r!=null&&r.length?[...r,a]:[a]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>Dn.includesString,getGlobalFilterFn:()=>{var t,n;const{globalFilterFn:r}=e.options;return ya(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Dn[r]},setColumnFilters:t=>{const n=e.getAllLeafColumns(),r=o=>{var i;return(i=lr(t,o))==null?void 0:i.filter(s=>{const l=n.find(a=>a.id===s.id);if(l){const a=l.getFilterFn();if(Jm(a,s.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},setGlobalFilter:t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})};function Jm(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const XT=(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),QT=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},ZT=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},JT=(e,t,n)=>{let r,o;return n.forEach(i=>{const s=i.getValue(e);s!=null&&(r===void 0?s>=s&&(r=o=s):(r>s&&(r=s),o<s&&(o=s)))}),[r,o]},eO=(e,t)=>{let n=0,r=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},tO=(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!VT(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,s)=>i-s);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},nO=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),rO=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,oO=(e,t)=>t.length,Sc={sum:XT,min:QT,max:ZT,extent:JT,mean:eO,median:tO,unique:nO,uniqueCount:rO,count:oO},iO={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:on("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},getCanGroup:()=>{var n,r,o,i;return(n=(r=(o=(i=e.columnDef.enableGrouping)!=null?i:!0)!=null?o:t.options.enableGrouping)!=null?r:!0)!=null?n:!!e.accessorFn},getIsGrouped:()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},getGroupedIndex:()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},getToggleGroupingHandler:()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return Sc.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Sc.extent},getAggregationFn:()=>{var n,r;if(!e)throw new Error;return ya(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:Sc[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:(e,t)=>({getIsGrouped:()=>!!e.groupingColumnId,getGroupingValue:n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},_groupingValuesCache:{}}),createCell:(e,t,n,r)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===n.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}})};function sO(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(i=>!t.includes(i.id));return n==="remove"?r:[...t.map(i=>e.find(s=>s.id===i)).filter(Boolean),...r]}const lO={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:on("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},_getOrderColumnsFn:ae(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const s=[...t],l=[...o];for(;l.length&&s.length;){const a=s.shift(),u=l.findIndex(c=>c.id===a);u>-1&&i.push(l.splice(u,1)[0])}i=[...i,...l]}return sO(i,n,r)},{key:!1})})},zd=0,Dd=10,xc=()=>({pageIndex:zd,pageSize:Dd}),aO={getInitialState:e=>({...e,pagination:{...xc(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:on("pagination",e)}),createTable:e=>{let t=!1,n=!1;return{_autoResetPageIndex:()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},setPagination:r=>{const o=i=>lr(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},resetPagination:r=>{var o;e.setPagination(r?xc():(o=e.initialState.pagination)!=null?o:xc())},setPageIndex:r=>{e.setPagination(o=>{let i=lr(r,o.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,s)),{...o,pageIndex:i}})},resetPageIndex:r=>{var o,i,s;e.setPageIndex(r?zd:(o=(i=e.initialState)==null||(s=i.pagination)==null?void 0:s.pageIndex)!=null?o:zd)},resetPageSize:r=>{var o,i,s;e.setPageSize(r?Dd:(o=(i=e.initialState)==null||(s=i.pagination)==null?void 0:s.pageSize)!=null?o:Dd)},setPageSize:r=>{e.setPagination(o=>{const i=Math.max(1,lr(r,o.pageSize)),s=o.pageSize*o.pageIndex,l=Math.floor(s/i);return{...o,pageIndex:l,pageSize:i}})},setPageCount:r=>e.setPagination(o=>{var i;let s=lr(r,(i=e.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...o,pageCount:s}}),getPageOptions:ae(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,s)=>s)),o},{key:!1,debug:()=>{var r;return(r=e.options.debugAll)!=null?r:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},previousPage:()=>e.setPageIndex(r=>r-1),nextPage:()=>e.setPageIndex(r=>r+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},wc=()=>({left:[],right:[]}),uO={getInitialState:e=>({columnPinning:wc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:on("columnPinning",e)}),createColumn:(e,t)=>({pin:n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,s;if(n==="right"){var l,a;return{left:((l=o==null?void 0:o.left)!=null?l:[]).filter(d=>!(r!=null&&r.includes(d))),right:[...((a=o==null?void 0:o.right)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d))),...r]}}if(n==="left"){var u,c;return{left:[...((u=o==null?void 0:o.left)!=null?u:[]).filter(d=>!(r!=null&&r.includes(d))),...r],right:((c=o==null?void 0:o.right)!=null?c:[]).filter(d=>!(r!=null&&r.includes(d)))}}return{left:((i=o==null?void 0:o.left)!=null?i:[]).filter(d=>!(r!=null&&r.includes(d))),right:((s=o==null?void 0:o.right)!=null?s:[]).filter(d=>!(r!=null&&r.includes(d)))}})},getCanPin:()=>e.getLeafColumns().some(r=>{var o,i;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=t.options.enablePinning)!=null?i:!0)}),getIsPinned:()=>{const n=e.getLeafColumns().map(l=>l.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(l=>r==null?void 0:r.includes(l)),s=n.some(l=>o==null?void 0:o.includes(l));return i?"left":s?"right":!1},getPinnedIndex:()=>{var n,r,o;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(o=r[i])==null?void 0:o.indexOf(e.id))!=null?n:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(s=>!i.includes(s.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),getLeftVisibleCells:ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),{key:"row.getLeftVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),getRightVisibleCells:ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),{key:"row.getRightVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var n,r;return e.setColumnPinning(t?wc():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:wc())},getIsSomeColumnsPinned:t=>{var n;const r=e.getState().columnPinning;if(!t){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},getLeftLeafColumns:ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getRightLeafColumns:ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getCenterLeafColumns:ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(i=>!o.includes(i.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}})})},cO={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:on("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},toggleAllRowsSelected:t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},toggleAllPageRowsSelected:t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(i=>{Bd(o,i.id,r,e)}),o}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:ae(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?bc(e,n):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getFilteredSelectedRowModel:ae(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?bc(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getGroupedSelectedRowModel:ae(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?bc(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},getIsSomeRowsSelected:()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:n=>{const r=e.getIsSelected();t.setRowSelection(o=>{if(n=typeof n<"u"?n:!r,r===n)return o;const i={...o};return Bd(i,e.id,n,t),i})},getIsSelected:()=>{const{rowSelection:n}=t.getState();return wp(e,n)},getIsSomeSelected:()=>{const{rowSelection:n}=t.getState();return eg(e,n)==="some"},getIsAllSubRowsSelected:()=>{const{rowSelection:n}=t.getState();return eg(e,n)==="all"},getCanSelect:()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},getCanSelectSubRows:()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},getCanMultiSelect:()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},getToggleSelectedHandler:()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}})},Bd=(e,t,n,r)=>{var o;const i=r.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),i.getCanSelect()&&(e[t]=!0)):delete e[t],(o=i.subRows)!=null&&o.length&&i.getCanSelectSubRows()&&i.subRows.forEach(s=>Bd(e,s.id,n,r))};function bc(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(s,l){return s.map(a=>{var u;const c=wp(a,n);if(c&&(r.push(a),o[a.id]=a),(u=a.subRows)!=null&&u.length&&(a={...a,subRows:i(a.subRows)}),c)return a}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function wp(e,t){var n;return(n=t[e.id])!=null?n:!1}function eg(e,t,n){if(e.subRows&&e.subRows.length){let r=!0,o=!1;return e.subRows.forEach(i=>{o&&!r||(wp(i,t)?o=!0:r=!1)}),r?"all":o?"some":!1}return!1}const jd=/([0-9]+)/gm,dO=(e,t,n)=>a1(wr(e.getValue(n)).toLowerCase(),wr(t.getValue(n)).toLowerCase()),fO=(e,t,n)=>a1(wr(e.getValue(n)),wr(t.getValue(n))),pO=(e,t,n)=>bp(wr(e.getValue(n)).toLowerCase(),wr(t.getValue(n)).toLowerCase()),hO=(e,t,n)=>bp(wr(e.getValue(n)),wr(t.getValue(n))),mO=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},gO=(e,t,n)=>bp(e.getValue(n),t.getValue(n));function bp(e,t){return e===t?0:e>t?1:-1}function wr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function a1(e,t){const n=e.split(jd).filter(Boolean),r=t.split(jd).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),s=parseInt(o,10),l=parseInt(i,10),a=[s,l].sort();if(isNaN(a[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(a[1]))return isNaN(s)?-1:1;if(s>l)return 1;if(l>s)return-1}return n.length-r.length}const Ti={alphanumeric:dO,alphanumericCaseSensitive:fO,text:pO,textCaseSensitive:hO,datetime:mO,basic:gO},vO={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:on("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const i=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return Ti.datetime;if(typeof i=="string"&&(r=!0,i.split(jd).length>1))return Ti.alphanumeric}return r?Ti.text:Ti.basic},getAutoSortDir:()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},getSortingFn:()=>{var n,r;if(!e)throw new Error;return ya(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Ti[e.columnDef.sortingFn]},toggleSorting:(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(s=>{const l=s==null?void 0:s.find(m=>m.id===e.id),a=s==null?void 0:s.findIndex(m=>m.id===e.id);let u=[],c,d=i?n:o==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&r?l?c="toggle":c="add":s!=null&&s.length&&a!==s.length-1?c="replace":l?c="toggle":c="replace",c==="toggle"&&(i||o||(c="remove")),c==="add"){var f;u=[...s,{id:e.id,desc:d}],u.splice(0,u.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=s.map(m=>m.id===e.id?{...m,desc:d}:m):c==="remove"?u=s.filter(m=>m.id!==e.id):u=[{id:e.id,desc:d}];return u})},getFirstSortDir:()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},getNextSortingOrder:n=>{var r,o;const i=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==i&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:s==="desc"?"asc":"desc":i},getCanSort:()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},getCanMultiSort:()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},getIsSorted:()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},getSortIndex:()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},clearSorting:()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},getToggleSortingHandler:()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}}),createTable:e=>({setSorting:t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),resetSorting:t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},yO={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:on("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},getIsVisible:()=>{var n,r;return(n=(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},getCanHide:()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},getToggleVisibilityHandler:()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:ae(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),getVisibleCells:ae(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})}),createTable:e=>{const t=(n,r)=>ae(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),{key:n,debug:()=>{var o;return(o=e.options.debugAll)!=null?o:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),resetColumnVisibility:n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},toggleAllColumnsVisible:n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}}},tg=[WT,yO,lO,uO,YT,vO,iO,qT,aO,cO,GT];function SO(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:tg};const r=n._features.reduce((c,d)=>Object.assign(c,d.getDefaultOptions==null?void 0:d.getDefaultOptions(n)),{}),o=c=>n.options.mergeOptions?n.options.mergeOptions(r,c):{...r,...c};let s={...{},...(t=e.initialState)!=null?t:{}};n._features.forEach(c=>{var d;s=(d=c.getInitialState==null?void 0:c.getInitialState(s))!=null?d:s});const l=[];let a=!1;const u={_features:tg,options:{...r,...e},initialState:s,_queue:c=>{l.push(c),a||(a=!0,Promise.resolve().then(()=>{for(;l.length;)l.shift()();a=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{n.setState(n.initialState)},setOptions:c=>{const d=lr(c,n.options);n.options=o(d)},getState:()=>n.options.state,setState:c=>{n.options.onStateChange==null||n.options.onStateChange(c)},_getRowId:(c,d,f)=>{var m;return(m=n.options.getRowId==null?void 0:n.options.getRowId(c,d,f))!=null?m:`${f?[f.id,d].join("."):d}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:c=>{const d=n.getRowModel().rowsById[c];if(!d)throw new Error;return d},_getDefaultColumnDef:ae(()=>[n.options.defaultColumn],c=>{var d;return c=(d=c)!=null?d:{},{header:f=>{const m=f.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:f=>{var m,S;return(m=(S=f.renderValue())==null||S.toString==null?void 0:S.toString())!=null?m:null},...n._features.reduce((f,m)=>Object.assign(f,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...c}},{debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:ae(()=>[n._getColumnDefs()],c=>{const d=function(f,m,S){return S===void 0&&(S=0),f.map(g=>{const R=UT(n,g,S,m),v=g;return R.columns=v.columns?d(v.columns,R,S+1):[],R})};return d(c)},{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getAllFlatColumns:ae(()=>[n.getAllColumns()],c=>c.flatMap(d=>d.getFlatColumns()),{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),_getAllFlatColumnsById:ae(()=>[n.getAllFlatColumns()],c=>c.reduce((d,f)=>(d[f.id]=f,d),{}),{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getAllLeafColumns:ae(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(c,d)=>{let f=c.flatMap(m=>m.getLeafColumns());return d(f)},{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getColumn:c=>n._getAllFlatColumnsById()[c]};return Object.assign(n,u),n._features.forEach(c=>Object.assign(n,c.createTable==null?void 0:c.createTable(n))),n}function xO(e,t,n,r){const o=()=>{var s;return(s=i.getValue())!=null?s:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:ae(()=>[e,n,t,i],(s,l,a,u)=>({table:s,column:l,row:a,cell:u,getValue:u.getValue,renderValue:u.renderValue}),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach(s=>{Object.assign(i,s.createCell==null?void 0:s.createCell(i,n,t,e))},{}),i}const wO=(e,t,n,r,o,i,s)=>{let l={id:t,index:r,original:n,depth:o,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:a=>{if(l._valuesCache.hasOwnProperty(a))return l._valuesCache[a];const u=e.getColumn(a);if(u!=null&&u.accessorFn)return l._valuesCache[a]=u.accessorFn(l.original,r),l._valuesCache[a]},getUniqueValues:a=>{if(l._uniqueValuesCache.hasOwnProperty(a))return l._uniqueValuesCache[a];const u=e.getColumn(a);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(l._uniqueValuesCache[a]=u.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[a]):(l._uniqueValuesCache[a]=[l.getValue(a)],l._uniqueValuesCache[a])},renderValue:a=>{var u;return(u=l.getValue(a))!=null?u:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>HT(l.subRows,a=>a.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId):void 0,getParentRows:()=>{let a=[],u=l;for(;;){const c=u.getParentRow();if(!c)break;a.push(c),u=c}return a.reverse()},getAllCells:ae(()=>[e.getAllLeafColumns()],a=>a.map(u=>xO(e,l,u,u.id)),{key:!1,debug:()=>{var a;return(a=e.options.debugAll)!=null?a:e.options.debugRows}}),_getAllCellsByColumnId:ae(()=>[l.getAllCells()],a=>a.reduce((u,c)=>(u[c.column.id]=c,u),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var a;return(a=e.options.debugAll)!=null?a:e.options.debugRows}})};for(let a=0;a<e._features.length;a++){const u=e._features[a];Object.assign(l,u==null||u.createRow==null?void 0:u.createRow(l,e))}return l};function bO(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function CO(){return e=>ae(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,s){i===void 0&&(i=0);const l=[];for(let u=0;u<o.length;u++){const c=wO(e,e._getRowId(o[u],u,s),o[u],u,i,void 0,s==null?void 0:s.id);if(n.flatRows.push(c),n.rowsById[c.id]=c,l.push(c),e.options.getSubRows){var a;c.originalSubRows=e.options.getSubRows(o[u],u),(a=c.originalSubRows)!=null&&a.length&&(c.subRows=r(c.originalSubRows,i+1,c))}}return l};return n.rows=r(t),n},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}/**
|
|
148
|
+
* react-table
|
|
149
|
+
*
|
|
150
|
+
* Copyright (c) TanStack
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the MIT license found in the
|
|
153
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
154
|
+
*
|
|
155
|
+
* @license MIT
|
|
156
|
+
*/function ng(e,t){return e?kO(e)?x.createElement(e,t):e:null}function kO(e){return RO(e)||typeof e=="function"||EO(e)}function RO(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function EO(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function $O(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=x.useState(()=>({current:SO(t)})),[r,o]=x.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:s=>{o(s),e.onStateChange==null||e.onStateChange(s)}})),n.current}const rg=e=>{let t;const n=new Set,r=(a,u)=>{const c=typeof a=="function"?a(t):a;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},o=()=>t,l={setState:r,getState:o,subscribe:a=>(n.add(a),()=>n.delete(a)),destroy:()=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,l),l},PO=e=>e?rg(e):rg;var u1={exports:{}},c1={},d1={exports:{}},f1={};/**
|
|
157
|
+
* @license React
|
|
158
|
+
* use-sync-external-store-shim.production.min.js
|
|
159
|
+
*
|
|
160
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the MIT license found in the
|
|
163
|
+
* LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/var Zo=x;function _O(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var TO=typeof Object.is=="function"?Object.is:_O,OO=Zo.useState,MO=Zo.useEffect,IO=Zo.useLayoutEffect,AO=Zo.useDebugValue;function LO(e,t){var n=t(),r=OO({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return IO(function(){o.value=n,o.getSnapshot=t,Cc(o)&&i({inst:o})},[e,n,t]),MO(function(){return Cc(o)&&i({inst:o}),e(function(){Cc(o)&&i({inst:o})})},[e]),AO(n),n}function Cc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!TO(e,n)}catch{return!0}}function FO(e,t){return t()}var NO=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?FO:LO;f1.useSyncExternalStore=Zo.useSyncExternalStore!==void 0?Zo.useSyncExternalStore:NO;d1.exports=f1;var zO=d1.exports;/**
|
|
165
|
+
* @license React
|
|
166
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
|
167
|
+
*
|
|
168
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
169
|
+
*
|
|
170
|
+
* This source code is licensed under the MIT license found in the
|
|
171
|
+
* LICENSE file in the root directory of this source tree.
|
|
172
|
+
*/var Pu=x,DO=zO;function BO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jO=typeof Object.is=="function"?Object.is:BO,VO=DO.useSyncExternalStore,HO=Pu.useRef,UO=Pu.useEffect,WO=Pu.useMemo,GO=Pu.useDebugValue;c1.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=HO(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=WO(function(){function a(m){if(!u){if(u=!0,c=m,m=r(m),o!==void 0&&s.hasValue){var S=s.value;if(o(S,m))return d=S}return d=m}if(S=d,jO(c,m))return S;var g=r(m);return o!==void 0&&o(S,g)?S:(c=m,d=g)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return a(t())},f===null?void 0:function(){return a(f())}]},[t,n,r,o]);var l=VO(e,i[0],i[1]);return UO(function(){s.hasValue=!0,s.value=l},[l]),GO(l),l};u1.exports=c1;var KO=u1.exports;const qO=Vd(KO),{useSyncExternalStoreWithSelector:YO}=qO;function XO(e,t=e.getState,n){const r=YO(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return x.useDebugValue(r),r}const og=e=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?PO(e):e,n=(r,o)=>XO(t,r,o);return Object.assign(n,t),n},QO=e=>e?og(e):og;var ZO=e=>(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),QO(e));const Cp=ZO(e=>({table:null,setTable:t=>e(()=>({table:t}))}));function kp({text:e,maxLength:t}){const[n,r]=x.useState(!0),o=()=>{r(!n)},i=()=>e.length<=t?e:n?E.jsx(E.Fragment,{children:E.jsxs("span",{style:{cursor:"pointer"},onClick:o,children:[e.substring(0,t)," ..."]})}):E.jsx(E.Fragment,{children:E.jsx("span",{style:{cursor:"pointer"},onClick:o,children:e})});return E.jsx("div",{children:i()})}function JO({text:e,maxTextLength:t,rowIndex:n,promptIndex:r,onRating:o}){const i=e.startsWith("[PASS] "),s=e.startsWith("[FAIL] ");let l=[];i?e=e.substring(7):s&&(e.includes("---")?(l=e.split("---"),e=l.slice(1).join("---")):(l=["[FAIL]"],e.startsWith("[FAIL] ")&&(e=e.substring(7))));const a=u=>{o(n,r,u)};return E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"cell",children:[i&&E.jsx("div",{className:"status pass",children:"[PASS]"}),s&&E.jsx("div",{className:"status fail",children:l[0]})," ",E.jsx(kp,{text:e,maxLength:t})]}),E.jsxs("div",{className:"cell-rating",children:[E.jsx("span",{className:"rating",onClick:()=>a(!0),children:"👍"}),E.jsx("span",{className:"rating",onClick:()=>a(!1),children:"👎"})]})]})}function ig({text:e,maxLength:t,smallText:n}){return E.jsxs("div",{children:[E.jsx(kp,{text:e,maxLength:t}),E.jsx("span",{className:"smalltext",children:n})]})}function eM({maxTextLength:e,columnVisibility:t,wordBreak:n,filterMode:r,failureFilter:o,onFailureFilterToggle:i}){const{table:s,setTable:l}=Cp();wy(s,"Table should be defined");const{head:a,body:u}=s,c=a.prompts.map((h,p)=>u.reduce((y,b)=>y+(b.outputs[p].startsWith("[PASS]")?1:0),0)),d=(h,p,y)=>{const b=[...u],k={...b[h]},C=[...k.outputs],$=y?`[PASS] ${C[p].replace(/^\[(PASS|FAIL)\] /,"")}`:`[FAIL] ${C[p].replace(/^\[(PASS|FAIL)\] /,"")}`;C[p]=$,k.outputs=C,b[h]=k,l({head:a,body:b})},f=c.reduce((h,p,y,b)=>p>b[h]?y:h,0),m=c[f],S=bO(),g=[S.group({id:"vars",header:()=>E.jsx("span",{children:"Variables"}),columns:a.vars.map((h,p)=>S.accessor(y=>y.vars[p],{id:`Variable ${p+1}`,header:()=>E.jsx(ig,{smallText:`Variable ${p+1}`,text:h,maxLength:e}),cell:y=>E.jsx(kp,{text:y.getValue(),maxLength:e}),size:50}))}),S.group({id:"prompts",header:()=>E.jsx("span",{children:"Outputs"}),columns:a.prompts.map((h,p)=>S.accessor(y=>y.outputs[p],{id:`Prompt ${p+1}`,header:()=>{const y=(c[p]/u.length*100).toFixed(2),b=c[p]===m&&m!==0,k=`Prompt ${p+1}`,C=o[k]||!1;return E.jsxs(E.Fragment,{children:[E.jsx(ig,{smallText:`Prompt ${p+1}`,text:h,maxLength:e}),r==="failures"&&E.jsx(By,{sx:{"& .MuiFormControlLabel-label":{fontSize:"0.75rem"}},control:E.jsx(Ld,{checked:C,onChange:$=>i(k,$.target.checked)}),label:"Show failures"}),E.jsxs("div",{className:`summary ${b?"highlight":""}`,children:["Passing: ",E.jsxs("strong",{children:[y,"%"]})," (",c[p]," / ",u.length,")"]})]})},cell:y=>E.jsx(JO,{text:y.getValue(),maxTextLength:e,rowIndex:y.row.index,promptIndex:p,onRating:d})}))})],R=x.useMemo(()=>r==="failures"?Object.values(o).every(h=>!h)?u:u.filter(h=>h.outputs.some((p,y)=>{const b=`Prompt ${y+1}`,k=p.startsWith("[FAIL] ");return o[b]&&k})):u,[u,o,r]),v=$O({data:R,columns:g,columnResizeMode:"onChange",getCoreRowModel:CO(),state:{columnVisibility:t}});return E.jsxs("table",{style:{wordBreak:n},children:[E.jsx("thead",{children:v.getHeaderGroups().map(h=>E.jsx("tr",{className:"header",children:h.headers.map(p=>E.jsxs("th",{key:p.id,colSpan:p.colSpan,style:{width:p.getSize()},children:[p.isPlaceholder?null:ng(p.column.columnDef.header,p.getContext()),E.jsx("div",{onMouseDown:p.getResizeHandler(),onTouchStart:p.getResizeHandler(),className:`resizer ${p.column.getIsResizing()?"isResizing":""}`})]}))},h.id))}),E.jsx("tbody",{children:v.getRowModel().rows.map((h,p)=>{let y=!1;return E.jsx("tr",{children:h.getVisibleCells().map(b=>{const k=b.column.id.startsWith("Variable"),C=!k&&!y;C&&(y=!0);const $=p===0&&!k;return E.jsx("td",{key:b.id,style:{width:b.column.getSize()},className:`${k?"variable":""} ${$?"first-prompt-row":""} ${C?"first-prompt-col":""}`,children:ng(b.column.columnDef.cell,b.getContext())})})},h.id)})})]})}const tM=Q0(PT)(({theme:e})=>({[e.breakpoints.down("sm")]:{flexDirection:"column"}}));function nM(){const{table:e}=Cp(),[t,n]=x.useState(250),[r,o]=x.useState({}),[i,s]=x.useState([]),[l,a]=x.useState({}),u=(p,y)=>{a(b=>({...b,[p]:y}))},[c,d]=x.useState("all"),f=p=>{const y=p.target.value;d(y);const b={};R.prompts.forEach((k,C)=>{const $=`Prompt ${C+1}`;b[$]=y==="failures"}),a(b)},[m,S]=x.useState("break-all"),g=p=>{S(p.target.checked?"break-all":"break-word")};wy(e,"Table data must be loaded before rendering ResultsView");const{head:R}=e,v=p=>{const{target:{value:y}}=p;s(typeof y=="string"?y.split(","):y);const b=[...R.vars.map((C,$)=>`Variable ${$+1}`),...R.prompts.map((C,$)=>`Prompt ${$+1}`)],k={};b.forEach(C=>{k[C]=(typeof y=="string"?y.split(","):y).includes(C)}),o(k)},h=[...R.vars.map((p,y)=>({value:`Variable ${y+1}`,label:`Variable ${y+1}`,group:"Variables"})),...R.prompts.map((p,y)=>({value:`Prompt ${y+1}`,label:`Prompt ${y+1}`,group:"Prompts"}))];return x.useEffect(()=>{s([...R.vars.map((p,y)=>`Variable ${y+1}`),...R.prompts.map((p,y)=>`Prompt ${y+1}`)])},[R]),E.jsxs("div",{children:[E.jsx(go,{py:"md",children:E.jsxs(tM,{direction:"row",spacing:8,alignItems:"center",children:[E.jsx(go,{children:E.jsxs(zm,{sx:{m:1,minWidth:300},size:"small",children:[E.jsx(Bm,{id:"visible-columns-label",children:"Visible columns"}),E.jsx(Xm,{labelId:"visible-columns-label",id:"visible-columns",multiple:!0,value:i,onChange:v,input:E.jsx(Vy,{label:"Visible columns"}),renderValue:p=>p.join(", "),children:h.map(p=>E.jsxs(fc,{dense:!0,value:p.value,children:[E.jsx(Ld,{checked:i.indexOf(p.value)>-1}),E.jsx(JP,{primary:p.label})]},p.value))})]})}),E.jsx(go,{children:E.jsxs(zm,{sx:{minWidth:180},size:"small",children:[E.jsx(Bm,{id:"failure-filter-mode-label",children:"Filter"}),E.jsxs(Xm,{labelId:"filter-mode-label",id:"filter-mode",value:c,onChange:f,label:"Filter",children:[E.jsx(fc,{value:"all",children:"Show all results"}),E.jsx(fc,{value:"failures",children:"Show only failures"})]})]})}),E.jsxs(go,{children:[E.jsxs(zr,{mt:2,children:["Max text length: ",t]}),E.jsx(ET,{min:25,max:1e3,value:t,onChange:(p,y)=>n(y)})]}),E.jsx(go,{children:E.jsx(jT,{title:"Forcing line breaks makes it easier to adjust column widths to your liking",children:E.jsx(By,{control:E.jsx(Ld,{checked:m==="break-all",onChange:g}),label:"Force line breaks"})})})]})}),E.jsx(eM,{maxTextLength:t,columnVisibility:r,wordBreak:m,filterMode:c,failureFilter:l,onFailureFilterToggle:u})]})}function rM(){return E.jsxs(go,{className:"logo",children:[E.jsx("img",{src:"/logo.svg",alt:"Promptfoo logo"})," ",E.jsx("span",{children:"promptfoo"})]})}var Rp={},p1={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})(p1);var h1=p1.exports,kc={};const oM={configure:e=>{Df.configure(e)}},iM=Object.freeze(Object.defineProperty({__proto__:null,capitalize:he,createChainedFunction:yd,createSvgIcon:Is,debounce:zf,deprecatedPropType:Gx,isMuiElement:_l,ownerDocument:tt,ownerWindow:xr,requirePropFactory:Kx,setRef:aa,unstable_ClassNameGenerator:oM,unstable_useEnhancedEffect:tn,unstable_useId:w0,unsupportedProp:Xx,useControlled:Wo,useEventCallback:mn,useForkRef:Xe,useIsFocusVisible:Na},Symbol.toStringTag,{value:"Module"})),sM=w1(iM);var sg;function m1(){return sg||(sg=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=sM}(kc)),kc}var lM=h1;Object.defineProperty(Rp,"__esModule",{value:!0});var g1=Rp.default=void 0,aM=lM(m1()),uM=E,cM=(0,aM.default)((0,uM.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkMode");g1=Rp.default=cM;var Ep={},dM=h1;Object.defineProperty(Ep,"__esModule",{value:!0});var v1=Ep.default=void 0,fM=dM(m1()),pM=E,hM=(0,fM.default)((0,pM.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"}),"LightMode");v1=Ep.default=hM;function mM({darkMode:e,onToggleDarkMode:t}){return E.jsxs("nav",{children:[E.jsx(rM,{}),E.jsx("div",{className:"dark-mode-toggle",onClick:t,children:e?E.jsx(g1,{}):E.jsx(v1,{})})]})}function gM(){const{table:e,setTable:t}=Cp(),[n,r]=x.useState(!1),o=BC("(prefers-color-scheme: dark)"),[i,s]=x.useState(o),l=x.useMemo(()=>tp({palette:{mode:i?"dark":"light"}}),[i]),a=()=>{s(!i),i?document.documentElement.removeAttribute("data-theme"):document.documentElement.setAttribute("data-theme","dark")};return x.useEffect(()=>{const u=Ll("http://localhost:15500");return u.on("init",c=>{console.log("Initialized socket connection"),r(!0),t(c.table)}),u.on("update",c=>{console.log("Received data update"),t(c.table)}),()=>{u.disconnect()}},[n,t]),E.jsxs(kk,{theme:l,children:[E.jsx(mM,{darkMode:i,onToggleDarkMode:a}),n&&e?E.jsx(nM,{}):E.jsx("div",{children:"Loading..."})]})}Rc.createRoot(document.getElementById("root")).render(E.jsx(hn.StrictMode,{children:E.jsx(gM,{})}));
|