diff --git a/internal/flushcommon/syncmgr/sync_manager.go b/internal/flushcommon/syncmgr/sync_manager.go index e02611812ef9a..da0ee0e99a0da 100644 --- a/internal/flushcommon/syncmgr/sync_manager.go +++ b/internal/flushcommon/syncmgr/sync_manager.go @@ -124,6 +124,10 @@ func (mgr *syncManager) safeSubmitTask(ctx context.Context, task Task, callbacks func (mgr *syncManager) submit(ctx context.Context, key int64, task Task, callbacks ...func(error) error) *conc.Future[struct{}] { handler := func(err error) error { + taskKey := fmt.Sprintf("%d-%d", task.SegmentID(), task.Checkpoint().GetTimestamp()) + defer func() { + mgr.tasks.Remove(taskKey) + }() if err == nil { return nil } diff --git a/internal/http/webui/assets/index-Bybe0GVy.js b/internal/http/webui/assets/index-Bybe0GVy.js new file mode 100644 index 0000000000000..a859a9f866dd5 --- /dev/null +++ b/internal/http/webui/assets/index-Bybe0GVy.js @@ -0,0 +1,1502 @@ +var z3=Object.defineProperty;var H3=(e,t,n)=>t in e?z3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var zs=(e,t,n)=>H3(e,typeof t!="symbol"?t+"":t,n);function V3(e,t){for(var n=0;nr[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 a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).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)}})();var jl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function W3(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var LS={exports:{}},of={},AS={exports:{}},Ze={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var vc=Symbol.for("react.element"),U3=Symbol.for("react.portal"),G3=Symbol.for("react.fragment"),q3=Symbol.for("react.strict_mode"),K3=Symbol.for("react.profiler"),Z3=Symbol.for("react.provider"),Q3=Symbol.for("react.context"),Y3=Symbol.for("react.forward_ref"),X3=Symbol.for("react.suspense"),J3=Symbol.for("react.memo"),eT=Symbol.for("react.lazy"),fv=Symbol.iterator;function tT(e){return e===null||typeof e!="object"?null:(e=fv&&e[fv]||e["@@iterator"],typeof e=="function"?e:null)}var NS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},DS=Object.assign,jS={};function _s(e,t,n){this.props=e,this.context=t,this.refs=jS,this.updater=n||NS}_s.prototype.isReactComponent={};_s.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")};_s.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function FS(){}FS.prototype=_s.prototype;function r0(e,t,n){this.props=e,this.context=t,this.refs=jS,this.updater=n||NS}var o0=r0.prototype=new FS;o0.constructor=r0;DS(o0,_s.prototype);o0.isPureReactComponent=!0;var pv=Array.isArray,BS=Object.prototype.hasOwnProperty,i0={current:null},zS={key:!0,ref:!0,__self:!0,__source:!0};function HS(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)BS.call(t,r)&&!zS.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,z=E[H];if(0>>1;Ho(W,B))Vo(ee,W)?(E[H]=ee,E[V]=B,H=V):(E[H]=W,E[F]=B,H=F);else if(Vo(ee,B))E[H]=ee,E[V]=B,H=V;else break e}}return L}function o(E,L){var B=E.sortIndex-L.sortIndex;return B!==0?B:E.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(E){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=E)r(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function C(E){if(y=!1,m(E),!h)if(n(l)!==null)h=!0,A(_);else{var L=n(c);L!==null&&N(C,L.startTime-E)}}function _(E,L){h=!1,y&&(y=!1,v(T),T=-1),p=!0;var B=f;try{for(m(L),d=n(l);d!==null&&(!(d.expirationTime>L)||E&&!$());){var H=d.callback;if(typeof H=="function"){d.callback=null,f=d.priorityLevel;var z=H(d.expirationTime<=L);L=e.unstable_now(),typeof z=="function"?d.callback=z:d===n(l)&&r(l),m(L)}else r(l);d=n(l)}if(d!==null)var j=!0;else{var F=n(c);F!==null&&N(C,F.startTime-L),j=!1}return j}finally{d=null,f=B,p=!1}}var R=!1,k=null,T=-1,P=5,x=-1;function $(){return!(e.unstable_now()-xE||125H?(E.sortIndex=B,t(c,E),n(l)===null&&E===n(c)&&(y?(v(T),T=-1):y=!0,N(C,B-H))):(E.sortIndex=z,t(l,E),h||p||(h=!0,A(_))),E},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(E){var L=f;return function(){var B=f;f=L;try{return E.apply(this,arguments)}finally{f=B}}}})(qS);GS.exports=qS;var fT=GS.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var pT=b,Jn=fT;function he(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uh=Object.prototype.hasOwnProperty,gT=/^[: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]*$/,hv={},mv={};function hT(e){return uh.call(mv,e)?!0:uh.call(hv,e)?!1:gT.test(e)?mv[e]=!0:(hv[e]=!0,!1)}function mT(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 vT(e,t,n,r){if(t===null||typeof t>"u"||mT(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 En(e,t,n,r,o,i,a){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=a}var cn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){cn[e]=new En(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];cn[t]=new En(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){cn[e]=new En(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){cn[e]=new En(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){cn[e]=new En(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){cn[e]=new En(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){cn[e]=new En(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){cn[e]=new En(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){cn[e]=new En(e,5,!1,e.toLowerCase(),null,!1,!1)});var s0=/[\-:]([a-z])/g;function l0(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(s0,l0);cn[t]=new En(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(s0,l0);cn[t]=new En(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(s0,l0);cn[t]=new En(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){cn[e]=new En(e,1,!1,e.toLowerCase(),null,!1,!1)});cn.xlinkHref=new En("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){cn[e]=new En(e,1,!1,e.toLowerCase(),null,!0,!0)});function c0(e,t,n,r){var o=cn.hasOwnProperty(t)?cn[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` +`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Lp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ul(e):""}function yT(e){switch(e.tag){case 5:return ul(e.type);case 16:return ul("Lazy");case 13:return ul("Suspense");case 19:return ul("SuspenseList");case 0:case 2:case 15:return e=Ap(e.type,!1),e;case 11:return e=Ap(e.type.render,!1),e;case 1:return e=Ap(e.type,!0),e;default:return""}}function gh(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 Pa:return"Fragment";case Ta:return"Portal";case dh:return"Profiler";case u0:return"StrictMode";case fh:return"Suspense";case ph:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case QS:return(e.displayName||"Context")+".Consumer";case ZS:return(e._context.displayName||"Context")+".Provider";case d0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case f0:return t=e.displayName||null,t!==null?t:gh(e.type)||"Memo";case Do:t=e._payload,e=e._init;try{return gh(e(t))}catch{}}return null}function bT(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 gh(t);case 8:return t===u0?"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 ui(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function XS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xT(e){var t=XS(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(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Uc(e){e._valueTracker||(e._valueTracker=xT(e))}function JS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=XS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ad(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 hh(e,t){var n=t.checked;return _t({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function yv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ui(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 ew(e,t){t=t.checked,t!=null&&c0(e,"checked",t,!1)}function mh(e,t){ew(e,t);var n=ui(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")?vh(e,t.type,n):t.hasOwnProperty("defaultValue")&&vh(e,t.type,ui(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bv(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 vh(e,t,n){(t!=="number"||ad(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var dl=Array.isArray;function Ua(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Gc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yl={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},ST=["Webkit","ms","Moz","O"];Object.keys(yl).forEach(function(e){ST.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yl[t]=yl[e]})});function ow(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yl.hasOwnProperty(e)&&yl[e]?(""+t).trim():t+"px"}function iw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ow(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var wT=_t({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 xh(e,t){if(t){if(wT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(he(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(he(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(he(61))}if(t.style!=null&&typeof t.style!="object")throw Error(he(62))}}function Sh(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 wh=null;function p0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ch=null,Ga=null,qa=null;function wv(e){if(e=xc(e)){if(typeof Ch!="function")throw Error(he(280));var t=e.stateNode;t&&(t=uf(t),Ch(e.stateNode,e.type,t))}}function aw(e){Ga?qa?qa.push(e):qa=[e]:Ga=e}function sw(){if(Ga){var e=Ga,t=qa;if(qa=Ga=null,wv(e),t)for(e=0;e>>=0,e===0?32:31-(OT(e)/LT|0)|0}var qc=64,Kc=4194304;function fl(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 ud(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=fl(s):(i&=a,i!==0&&(r=fl(i)))}else a=n&~o,a!==0?r=fl(a):i!==0&&(r=fl(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;0n;n++)t.push(e);return t}function yc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ar(t),e[t]=n}function jT(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=xl),Mv=" ",Iv=!1;function Pw(e,t){switch(e){case"keyup":return fP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ka=!1;function gP(e,t){switch(e){case"compositionend":return kw(t);case"keypress":return t.which!==32?null:(Iv=!0,Mv);case"textInput":return e=t.data,e===Mv&&Iv?null:e;default:return null}}function hP(e,t){if(ka)return e==="compositionend"||!S0&&Pw(e,t)?(e=Rw(),Ou=y0=qo=null,ka=!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)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=Nv(n)}}function Iw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Iw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ow(){for(var e=window,t=ad();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ad(e.document)}return t}function w0(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 _P(e){var t=Ow(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Iw(n.ownerDocument.documentElement,n)){if(r!==null&&w0(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=Dv(n,i);var a=Dv(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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=document.documentMode,$a=null,$h=null,wl=null,Eh=!1;function jv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Eh||$a==null||$a!==ad(r)||(r=$a,"selectionStart"in r&&w0(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}),wl&&Gl(wl,r)||(wl=r,r=pd($h,"onSelect"),0Ia||(e.current=Nh[Ia],Nh[Ia]=null,Ia--)}function ht(e,t){Ia++,Nh[Ia]=e.current,e.current=t}var di={},xn=mi(di),An=mi(!1),qi=di;function ns(e,t){var n=e.type.contextTypes;if(!n)return di;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 Nn(e){return e=e.childContextTypes,e!=null}function hd(){yt(An),yt(xn)}function Uv(e,t,n){if(xn.current!==di)throw Error(he(168));ht(xn,t),ht(An,n)}function Hw(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(he(108,bT(e)||"Unknown",o));return _t({},n,r)}function md(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||di,qi=xn.current,ht(xn,e),ht(An,An.current),!0}function Gv(e,t,n){var r=e.stateNode;if(!r)throw Error(he(169));n?(e=Hw(e,t,qi),r.__reactInternalMemoizedMergedChildContext=e,yt(An),yt(xn),ht(xn,e)):yt(An),ht(An,n)}var mo=null,df=!1,Zp=!1;function Vw(e){mo===null?mo=[e]:mo.push(e)}function NP(e){df=!0,Vw(e)}function vi(){if(!Zp&&mo!==null){Zp=!0;var e=0,t=st;try{var n=mo;for(st=1;e>=a,o-=a,yo=1<<32-Ar(t)+o|n<T?(P=k,k=null):P=k.sibling;var x=f(v,k,m[T],C);if(x===null){k===null&&(k=P);break}e&&k&&x.alternate===null&&t(v,k),S=i(x,S,T),R===null?_=x:R.sibling=x,R=x,k=P}if(T===m.length)return n(v,k),xt&&Pi(v,T),_;if(k===null){for(;TT?(P=k,k=null):P=k.sibling;var $=f(v,k,x.value,C);if($===null){k===null&&(k=P);break}e&&k&&$.alternate===null&&t(v,k),S=i($,S,T),R===null?_=$:R.sibling=$,R=$,k=P}if(x.done)return n(v,k),xt&&Pi(v,T),_;if(k===null){for(;!x.done;T++,x=m.next())x=d(v,x.value,C),x!==null&&(S=i(x,S,T),R===null?_=x:R.sibling=x,R=x);return xt&&Pi(v,T),_}for(k=r(v,k);!x.done;T++,x=m.next())x=p(k,v,T,x.value,C),x!==null&&(e&&x.alternate!==null&&k.delete(x.key===null?T:x.key),S=i(x,S,T),R===null?_=x:R.sibling=x,R=x);return e&&k.forEach(function(I){return t(v,I)}),xt&&Pi(v,T),_}function w(v,S,m,C){if(typeof m=="object"&&m!==null&&m.type===Pa&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Wc:e:{for(var _=m.key,R=S;R!==null;){if(R.key===_){if(_=m.type,_===Pa){if(R.tag===7){n(v,R.sibling),S=o(R,m.props.children),S.return=v,v=S;break e}}else if(R.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Do&&Zv(_)===R.type){n(v,R.sibling),S=o(R,m.props),S.ref=qs(v,R,m),S.return=v,v=S;break e}n(v,R);break}else t(v,R);R=R.sibling}m.type===Pa?(S=Bi(m.props.children,v.mode,C,m.key),S.return=v,v=S):(C=zu(m.type,m.key,m.props,null,v.mode,C),C.ref=qs(v,S,m),C.return=v,v=C)}return a(v);case Ta:e:{for(R=m.key;S!==null;){if(S.key===R)if(S.tag===4&&S.stateNode.containerInfo===m.containerInfo&&S.stateNode.implementation===m.implementation){n(v,S.sibling),S=o(S,m.children||[]),S.return=v,v=S;break e}else{n(v,S);break}else t(v,S);S=S.sibling}S=rg(m,v.mode,C),S.return=v,v=S}return a(v);case Do:return R=m._init,w(v,S,R(m._payload),C)}if(dl(m))return h(v,S,m,C);if(Hs(m))return y(v,S,m,C);tu(v,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,S!==null&&S.tag===6?(n(v,S.sibling),S=o(S,m),S.return=v,v=S):(n(v,S),S=ng(m,v.mode,C),S.return=v,v=S),a(v)):n(v,S)}return w}var os=qw(!0),Kw=qw(!1),bd=mi(null),xd=null,Aa=null,T0=null;function P0(){T0=Aa=xd=null}function k0(e){var t=bd.current;yt(bd),e._currentValue=t}function Fh(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 Za(e,t){xd=e,T0=Aa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(On=!0),e.firstContext=null)}function yr(e){var t=e._currentValue;if(T0!==e)if(e={context:e,memoizedValue:t,next:null},Aa===null){if(xd===null)throw Error(he(308));Aa=e,xd.dependencies={lanes:0,firstContext:e}}else Aa=Aa.next=e;return t}var Li=null;function $0(e){Li===null?Li=[e]:Li.push(e)}function Zw(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,$0(t)):(n.next=o.next,o.next=n),t.interleaved=n,_o(e,r)}function _o(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 jo=!1;function E0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qw(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 xo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ii(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Je&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,_o(e,n)}return o=r.interleaved,o===null?(t.next=t,$0(r)):(t.next=o.next,o.next=t),r.interleaved=t,_o(e,n)}function Au(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,h0(e,n)}}function Qv(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 a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,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 Sd(e,t,n,r){var o=e.updateQueue;jo=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;a=0,u=c=l=null,s=i;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,y=s;switch(f=t,p=n,y.tag){case 1:if(h=y.payload,typeof h=="function"){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=y.payload,f=typeof h=="function"?h.call(p,d,f):h,f==null)break e;d=_t({},d,f);break e;case 2:jo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Qi|=a,e.lanes=a,e.memoizedState=d}}function Yv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Yp.transition;Yp.transition={};try{e(!1),t()}finally{st=n,Yp.transition=r}}function pC(){return br().memoizedState}function BP(e,t,n){var r=si(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gC(e))hC(t,n);else if(n=Zw(e,t,n,r),n!==null){var o=kn();Nr(n,e,r,o),mC(n,t,r)}}function zP(e,t,n){var r=si(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gC(e))hC(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Fr(s,a)){var l=t.interleaved;l===null?(o.next=o,$0(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Zw(e,t,o,r),n!==null&&(o=kn(),Nr(n,e,r,o),mC(n,t,r))}}function gC(e){var t=e.alternate;return e===Ct||t!==null&&t===Ct}function hC(e,t){Cl=Cd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,h0(e,n)}}var _d={readContext:yr,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useInsertionEffect:fn,useLayoutEffect:fn,useMemo:fn,useReducer:fn,useRef:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useMutableSource:fn,useSyncExternalStore:fn,useId:fn,unstable_isNewReconciler:!1},HP={readContext:yr,useCallback:function(e,t){return Zr().memoizedState=[e,t===void 0?null:t],e},useContext:yr,useEffect:Jv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Du(4194308,4,lC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Du(4194308,4,e,t)},useInsertionEffect:function(e,t){return Du(4,2,e,t)},useMemo:function(e,t){var n=Zr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Zr();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=BP.bind(null,Ct,e),[r.memoizedState,e]},useRef:function(e){var t=Zr();return e={current:e},t.memoizedState=e},useState:Xv,useDebugValue:j0,useDeferredValue:function(e){return Zr().memoizedState=e},useTransition:function(){var e=Xv(!1),t=e[0];return e=FP.bind(null,e[1]),Zr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ct,o=Zr();if(xt){if(n===void 0)throw Error(he(407));n=n()}else{if(n=t(),en===null)throw Error(he(349));Zi&30||eC(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Jv(nC.bind(null,r,i,e),[e]),r.flags|=2048,ec(9,tC.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Zr(),t=en.identifierPrefix;if(xt){var n=bo,r=yo;n=(r&~(1<<32-Ar(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[eo]=t,e[Zl]=r,TC(e,t,!1,!1),t.stateNode=e;e:{switch(a=Sh(n,r),n){case"dialog":vt("cancel",e),vt("close",e),o=r;break;case"iframe":case"object":case"embed":vt("load",e),o=r;break;case"video":case"audio":for(o=0;oss&&(t.flags|=128,r=!0,Ks(i,!1),t.lanes=4194304)}else{if(!r)if(e=wd(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ks(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!xt)return pn(t),null}else 2*Lt()-i.renderingStartTime>ss&&n!==1073741824&&(t.flags|=128,r=!0,Ks(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Lt(),t.sibling=null,n=wt.current,ht(wt,r?n&1|2:n&1),t):(pn(t),null);case 22:case 23:return W0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Un&1073741824&&(pn(t),t.subtreeFlags&6&&(t.flags|=8192)):pn(t),null;case 24:return null;case 25:return null}throw Error(he(156,t.tag))}function QP(e,t){switch(_0(t),t.tag){case 1:return Nn(t.type)&&hd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return is(),yt(An),yt(xn),O0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return I0(t),null;case 13:if(yt(wt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));rs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yt(wt),null;case 4:return is(),null;case 10:return k0(t.type._context),null;case 22:case 23:return W0(),null;case 24:return null;default:return null}}var ru=!1,yn=!1,YP=typeof WeakSet=="function"?WeakSet:Set,_e=null;function Na(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){It(e,t,r)}else n.current=null}function Kh(e,t,n){try{n()}catch(r){It(e,t,r)}}var uy=!1;function XP(e,t){if(Mh=dd,e=Ow(),w0(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 a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(s=a+o),d!==i||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===o&&(s=a),f===i&&++u===r&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ih={focusedElem:e,selectionRange:n},dd=!1,_e=t;_e!==null;)if(t=_e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_e=e;else for(;_e!==null;){t=_e;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var y=h.memoizedProps,w=h.memoizedState,v=t.stateNode,S=v.getSnapshotBeforeUpdate(t.elementType===t.type?y:kr(t.type,y),w);v.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(he(163))}}catch(C){It(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,_e=e;break}_e=t.return}return h=uy,uy=!1,h}function _l(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&&Kh(t,n,i)}o=o.next}while(o!==r)}}function gf(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 Zh(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 $C(e){var t=e.alternate;t!==null&&(e.alternate=null,$C(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[eo],delete t[Zl],delete t[Ah],delete t[LP],delete t[AP])),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 EC(e){return e.tag===5||e.tag===3||e.tag===4}function dy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||EC(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 Qh(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=gd));else if(r!==4&&(e=e.child,e!==null))for(Qh(e,t,n),e=e.sibling;e!==null;)Qh(e,t,n),e=e.sibling}function Yh(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(Yh(e,t,n),e=e.sibling;e!==null;)Yh(e,t,n),e=e.sibling}var rn=null,$r=!1;function Ao(e,t,n){for(n=n.child;n!==null;)MC(e,t,n),n=n.sibling}function MC(e,t,n){if(no&&typeof no.onCommitFiberUnmount=="function")try{no.onCommitFiberUnmount(af,n)}catch{}switch(n.tag){case 5:yn||Na(n,t);case 6:var r=rn,o=$r;rn=null,Ao(e,t,n),rn=r,$r=o,rn!==null&&($r?(e=rn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):rn.removeChild(n.stateNode));break;case 18:rn!==null&&($r?(e=rn,n=n.stateNode,e.nodeType===8?Kp(e.parentNode,n):e.nodeType===1&&Kp(e,n),Wl(e)):Kp(rn,n.stateNode));break;case 4:r=rn,o=$r,rn=n.stateNode.containerInfo,$r=!0,Ao(e,t,n),rn=r,$r=o;break;case 0:case 11:case 14:case 15:if(!yn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Kh(n,t,a),o=o.next}while(o!==r)}Ao(e,t,n);break;case 1:if(!yn&&(Na(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){It(n,t,s)}Ao(e,t,n);break;case 21:Ao(e,t,n);break;case 22:n.mode&1?(yn=(r=yn)||n.memoizedState!==null,Ao(e,t,n),yn=r):Ao(e,t,n);break;default:Ao(e,t,n)}}function fy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new YP),t.forEach(function(r){var o=sk.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Rr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Lt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ek(r/1960))-r,10e?16:e,Ko===null)var r=!1;else{if(e=Ko,Ko=null,Pd=0,Je&6)throw Error(he(331));var o=Je;for(Je|=4,_e=e.current;_e!==null;){var i=_e,a=i.child;if(_e.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lLt()-H0?Fi(e,0):z0|=n),Dn(e,t)}function FC(e,t){t===0&&(e.mode&1?(t=Kc,Kc<<=1,!(Kc&130023424)&&(Kc=4194304)):t=1);var n=kn();e=_o(e,t),e!==null&&(yc(e,t,n),Dn(e,n))}function ak(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),FC(e,n)}function sk(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(he(314))}r!==null&&r.delete(t),FC(e,n)}var BC;BC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||An.current)On=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return On=!1,KP(e,t,n);On=!!(e.flags&131072)}else On=!1,xt&&t.flags&1048576&&Ww(t,yd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ju(e,t),e=t.pendingProps;var o=ns(t,xn.current);Za(t,n),o=A0(null,t,r,e,o,n);var i=N0();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,Nn(r)?(i=!0,md(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,E0(t),o.updater=pf,t.stateNode=o,o._reactInternals=t,zh(t,r,e,n),t=Wh(null,t,r,!0,i,n)):(t.tag=0,xt&&i&&C0(t),Tn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ju(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ck(r),e=kr(r,e),o){case 0:t=Vh(null,t,r,e,n);break e;case 1:t=sy(null,t,r,e,n);break e;case 11:t=iy(null,t,r,e,n);break e;case 14:t=ay(null,t,r,kr(r.type,e),n);break e}throw Error(he(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kr(r,o),Vh(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kr(r,o),sy(e,t,r,o,n);case 3:e:{if(CC(t),e===null)throw Error(he(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Qw(e,t),Sd(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=as(Error(he(423)),t),t=ly(e,t,r,n,o);break e}else if(r!==o){o=as(Error(he(424)),t),t=ly(e,t,r,n,o);break e}else for(Zn=oi(t.stateNode.containerInfo.firstChild),Qn=t,xt=!0,Mr=null,n=Kw(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rs(),r===o){t=Ro(e,t,n);break e}Tn(e,t,r,n)}t=t.child}return t;case 5:return Yw(t),e===null&&jh(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Oh(r,o)?a=null:i!==null&&Oh(r,i)&&(t.flags|=32),wC(e,t),Tn(e,t,a,n),t.child;case 6:return e===null&&jh(t),null;case 13:return _C(e,t,n);case 4:return M0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=os(t,null,r,n):Tn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kr(r,o),iy(e,t,r,o,n);case 7:return Tn(e,t,t.pendingProps,n),t.child;case 8:return Tn(e,t,t.pendingProps.children,n),t.child;case 12:return Tn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ht(bd,r._currentValue),r._currentValue=a,i!==null)if(Fr(i.value,a)){if(i.children===o.children&&!An.current){t=Ro(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=xo(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Fh(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(he(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Fh(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Tn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Za(t,n),o=yr(o),r=r(o),t.flags|=1,Tn(e,t,r,n),t.child;case 14:return r=t.type,o=kr(r,t.pendingProps),o=kr(r.type,o),ay(e,t,r,o,n);case 15:return xC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:kr(r,o),ju(e,t),t.tag=1,Nn(r)?(e=!0,md(t)):e=!1,Za(t,n),vC(t,r,o),zh(t,r,o,n),Wh(null,t,r,!0,e,n);case 19:return RC(e,t,n);case 22:return SC(e,t,n)}throw Error(he(156,t.tag))};function zC(e,t){return gw(e,t)}function lk(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 gr(e,t,n,r){return new lk(e,t,n,r)}function G0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ck(e){if(typeof e=="function")return G0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===d0)return 11;if(e===f0)return 14}return 2}function li(e,t){var n=e.alternate;return n===null?(n=gr(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 zu(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")G0(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Pa:return Bi(n.children,o,i,t);case u0:a=8,o|=8;break;case dh:return e=gr(12,n,t,o|2),e.elementType=dh,e.lanes=i,e;case fh:return e=gr(13,n,t,o),e.elementType=fh,e.lanes=i,e;case ph:return e=gr(19,n,t,o),e.elementType=ph,e.lanes=i,e;case YS:return mf(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ZS:a=10;break e;case QS:a=9;break e;case d0:a=11;break e;case f0:a=14;break e;case Do:a=16,r=null;break e}throw Error(he(130,e==null?e:typeof e,""))}return t=gr(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Bi(e,t,n,r){return e=gr(7,e,r,t),e.lanes=n,e}function mf(e,t,n,r){return e=gr(22,e,r,t),e.elementType=YS,e.lanes=n,e.stateNode={isHidden:!1},e}function ng(e,t,n){return e=gr(6,e,null,t),e.lanes=n,e}function rg(e,t,n){return t=gr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uk(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=Dp(0),this.expirationTimes=Dp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dp(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function q0(e,t,n,r,o,i,a,s,l){return e=new uk(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=gr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},E0(i),e}function dk(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(UC)}catch(e){console.error(e)}}UC(),US.exports=nr;var Y0=US.exports;const au=$o(Y0);var GC,xy=Y0;GC=xy.createRoot,xy.hydrateRoot;/** + * @remix-run/router v1.21.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function qC(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function vk(){return Math.random().toString(36).substr(2,8)}function wy(e,t){return{usr:e.state,key:e.key,idx:t}}function nm(e,t,n,r){return n===void 0&&(n=null),nc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ps(t):t,{state:n,key:t&&t.key||r||vk()})}function Ed(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ps(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function yk(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Zo.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(nc({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=Zo.Pop;let w=u(),v=w==null?null:w-c;c=w,l&&l({action:s,location:y.location,delta:v})}function f(w,v){s=Zo.Push;let S=nm(y.location,w,v);c=u()+1;let m=wy(S,c),C=y.createHref(S);try{a.pushState(m,"",C)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(C)}i&&l&&l({action:s,location:y.location,delta:1})}function p(w,v){s=Zo.Replace;let S=nm(y.location,w,v);c=u();let m=wy(S,c),C=y.createHref(S);a.replaceState(m,"",C),i&&l&&l({action:s,location:y.location,delta:0})}function h(w){let v=o.location.origin!=="null"?o.location.origin:o.location.href,S=typeof w=="string"?w:Ed(w);return S=S.replace(/ $/,"%20"),Ot(v,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,v)}let y={get action(){return s},get location(){return e(o,a)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Sy,d),l=w,()=>{o.removeEventListener(Sy,d),l=null}},createHref(w){return t(o,w)},createURL:h,encodeLocation(w){let v=h(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:p,go(w){return a.go(w)}};return y}var Cy;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Cy||(Cy={}));function bk(e,t,n){return n===void 0&&(n="/"),xk(e,t,n,!1)}function xk(e,t,n,r){let o=typeof t=="string"?Ps(t):t,i=ls(o.pathname||"/",n);if(i==null)return null;let a=KC(e);Sk(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(Ot(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=ci([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(Ot(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),KC(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:kk(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of ZC(i.path))o(i,a,l)}),t}function ZC(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=ZC(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Sk(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$k(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const wk=/^:[\w-]+$/,Ck=3,_k=2,Rk=1,Tk=10,Pk=-2,_y=e=>e==="*";function kk(e,t){let n=e.split("/"),r=n.length;return n.some(_y)&&(r+=Pk),t&&(r+=_k),n.filter(o=>!_y(o)).reduce((o,i)=>o+(wk.test(i)?Ck:i===""?Rk:Tk),r)}function $k(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Ek(e,t,n){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:f,isOptional:p}=u;if(f==="*"){let y=s[d]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const h=s[d];return p&&!h?c[f]=void 0:c[f]=(h||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function Mk(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),qC(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Ik(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return qC(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ls(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Ok(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ps(e):e;return{pathname:n?n.startsWith("/")?n:Lk(n,t):t,search:Dk(r),hash:jk(o)}}function Lk(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function og(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Ak(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function QC(e,t){let n=Ak(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function YC(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ps(e):(o=nc({},e),Ot(!o.pathname||!o.pathname.includes("?"),og("?","pathname","search",o)),Ot(!o.pathname||!o.pathname.includes("#"),og("#","pathname","hash",o)),Ot(!o.search||!o.search.includes("#"),og("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=Ok(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const ci=e=>e.join("/").replace(/\/\/+/g,"/"),Nk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Dk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jk=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Fk(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const XC=["post","put","patch","delete"];new Set(XC);const Bk=["get",...XC];new Set(Bk);/** + * React Router v6.28.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),b.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=YC(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:ci([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,i,e])}function Vk(){let{matches:e}=b.useContext(bi),t=e[e.length-1];return t?t.params:{}}function Cf(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=b.useContext(yi),{matches:o}=b.useContext(bi),{pathname:i}=ks(),a=JSON.stringify(QC(o,r.v7_relativeSplatPath));return b.useMemo(()=>YC(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Wk(e,t){return Uk(e,t)}function Uk(e,t,n,r){wc()||Ot(!1);let{navigator:o}=b.useContext(yi),{matches:i}=b.useContext(bi),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=ks(),u;if(t){var d;let w=typeof t=="string"?Ps(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||Ot(!1),u=w}else u=c;let f=u.pathname||"/",p=f;if(l!=="/"){let w=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(w.length).join("/")}let h=bk(e,{pathname:p}),y=Qk(h&&h.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:ci([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:ci([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&y?b.createElement(wf.Provider,{value:{location:rc({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Zo.Pop}},y):y}function Gk(){let e=e4(),t=Fk(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:o},n):null,null)}const qk=b.createElement(Gk,null);class Kk extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?b.createElement(bi.Provider,{value:this.props.routeContext},b.createElement(e2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Zk(e){let{routeContext:t,match:n,children:r}=e,o=b.useContext(Sf);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(bi.Provider,{value:t},r)}function Qk(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||Ot(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,d,f)=>{let p,h=!1,y=null,w=null;n&&(p=s&&d.route.id?s[d.route.id]:void 0,y=d.route.errorElement||qk,l&&(c<0&&f===0?(h=!0,w=null):c===f&&(h=!0,w=d.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,f+1)),S=()=>{let m;return p?m=y:h?m=w:d.route.Component?m=b.createElement(d.route.Component,null):d.route.element?m=d.route.element:m=u,b.createElement(Zk,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:m})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?b.createElement(Kk,{location:n.location,revalidation:n.revalidation,component:y,error:p,children:S(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):S()},null)}var n2=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(n2||{}),Id=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Id||{});function Yk(e){let t=b.useContext(Sf);return t||Ot(!1),t}function Xk(e){let t=b.useContext(JC);return t||Ot(!1),t}function Jk(e){let t=b.useContext(bi);return t||Ot(!1),t}function r2(e){let t=Jk(),n=t.matches[t.matches.length-1];return n.route.id||Ot(!1),n.route.id}function e4(){var e;let t=b.useContext(e2),n=Xk(Id.UseRouteError),r=r2(Id.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function t4(){let{router:e}=Yk(n2.UseNavigateStable),t=r2(Id.UseNavigateStable),n=b.useRef(!1);return t2(()=>{n.current=!0}),b.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,rc({fromRouteId:t},i)))},[e,t])}const Ry={};function n4(e,t){Ry[t]||(Ry[t]=!0,console.warn(t))}const Ty=(e,t,n)=>n4(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function r4(e,t){e!=null&&e.v7_startTransition||Ty("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&Ty("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function o2(e){Ot(!1)}function o4(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Zo.Pop,navigator:i,static:a=!1,future:s}=e;wc()&&Ot(!1);let l=t.replace(/^\/*/,"/"),c=b.useMemo(()=>({basename:l,navigator:i,static:a,future:rc({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=Ps(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:h="default"}=r,y=b.useMemo(()=>{let w=ls(u,l);return w==null?null:{location:{pathname:w,search:d,hash:f,state:p,key:h},navigationType:o}},[l,u,d,f,p,h,o]);return y==null?null:b.createElement(yi.Provider,{value:c},b.createElement(wf.Provider,{children:n,value:y}))}function i4(e){let{children:t,location:n}=e;return Wk(rm(t),n)}new Promise(()=>{});function rm(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,o)=>{if(!b.isValidElement(r))return;let i=[...t,o];if(r.type===b.Fragment){n.push.apply(n,rm(r.props.children,i));return}r.type!==o2&&Ot(!1),!r.props.index||!r.props.children||Ot(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=rm(r.props.children,i)),n.push(a)}),n}/** + * React Router DOM v6.28.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Od(){return Od=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function a4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function s4(e,t){return e.button===0&&(!t||t==="_self")&&!a4(e)}function om(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function l4(e,t){let n=om(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const c4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],u4=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],d4="6";try{window.__reactRouterVersion=d4}catch{}const f4=b.createContext({isTransitioning:!1}),p4="startTransition",Py=id[p4];function g4(e){let{basename:t,children:n,future:r,window:o}=e,i=b.useRef();i.current==null&&(i.current=mk({window:o,v5Compat:!0}));let a=i.current,[s,l]=b.useState({action:a.action,location:a.location}),{v7_startTransition:c}=r||{},u=b.useCallback(d=>{c&&Py?Py(()=>l(d)):l(d)},[l,c]);return b.useLayoutEffect(()=>a.listen(u),[a,u]),b.useEffect(()=>r4(r),[r]),b.createElement(o4,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const h4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",m4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,a2=b.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,f=i2(t,c4),{basename:p}=b.useContext(yi),h,y=!1;if(typeof c=="string"&&m4.test(c)&&(h=c,h4))try{let m=new URL(window.location.href),C=c.startsWith("//")?new URL(m.protocol+c):new URL(c),_=ls(C.pathname,p);C.origin===m.origin&&_!=null?c=_+C.search+C.hash:y=!0}catch{}let w=zk(c,{relative:o}),v=b4(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:d});function S(m){r&&r(m),m.defaultPrevented||v(m)}return b.createElement("a",Od({},f,{href:h||w,onClick:y||i?r:S,ref:n,target:l}))}),v4=b.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,viewTransition:c,children:u}=t,d=i2(t,u4),f=Cf(l,{relative:d.relative}),p=ks(),h=b.useContext(JC),{navigator:y,basename:w}=b.useContext(yi),v=h!=null&&S4(f)&&c===!0,S=y.encodeLocation?y.encodeLocation(f).pathname:f.pathname,m=p.pathname,C=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;o||(m=m.toLowerCase(),C=C?C.toLowerCase():null,S=S.toLowerCase()),C&&w&&(C=ls(C,w)||C);const _=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let R=m===S||!a&&m.startsWith(S)&&m.charAt(_)==="/",k=C!=null&&(C===S||!a&&C.startsWith(S)&&C.charAt(S.length)==="/"),T={isActive:R,isPending:k,isTransitioning:v},P=R?r:void 0,x;typeof i=="function"?x=i(T):x=[i,R?"active":null,k?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let $=typeof s=="function"?s(T):s;return b.createElement(a2,Od({},d,{"aria-current":P,className:x,ref:n,style:$,to:l,viewTransition:c}),typeof u=="function"?u(T):u)});var im;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(im||(im={}));var ky;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ky||(ky={}));function y4(e){let t=b.useContext(Sf);return t||Ot(!1),t}function b4(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=X0(),c=ks(),u=Cf(e,{relative:a});return b.useCallback(d=>{if(s4(d,n)){d.preventDefault();let f=r!==void 0?r:Ed(c)===Ed(u);l(e,{replace:f,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}function x4(e){let t=b.useRef(om(e)),n=b.useRef(!1),r=ks(),o=b.useMemo(()=>l4(r.search,n.current?null:t.current),[r.search]),i=X0(),a=b.useCallback((s,l)=>{const c=om(typeof s=="function"?s(o):s);n.current=!0,i("?"+c,l)},[i,o]);return[o,a]}function S4(e,t){t===void 0&&(t={});let n=b.useContext(f4);n==null&&Ot(!1);let{basename:r}=y4(im.useViewTransitionState),o=Cf(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=ls(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=ls(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Md(o.pathname,a)!=null||Md(o.pathname,i)!=null}var $y;(function(e){e.Bool="Bool",e.Int8="Int8",e.Int16="Int16",e.Int32="Int32",e.Int64="Int64",e.Float="Float",e.Double="Double",e.String="String",e.VarChar="VarChar",e.JSON="JSON",e.BinaryVector="BinaryVector",e.FloatVector="FloatVector",e.Array="Array"})($y||($y={}));var Ey;(function(e){e[e.Bool=1]="Bool",e[e.Int8=2]="Int8",e[e.Int16=3]="Int16",e[e.Int32=4]="Int32",e[e.Int64=5]="Int64",e[e.Float=10]="Float",e[e.Double=11]="Double",e[e.VarChar=21]="VarChar",e[e.Array=22]="Array",e[e.JSON=23]="JSON",e[e.BinaryVector=100]="BinaryVector",e[e.FloatVector=101]="FloatVector"})(Ey||(Ey={}));var My;(function(e){e.L2="L2",e.IP="IP",e.COSINE="COSINE",e.HAMMING="HAMMING",e.JACCARD="JACCARD",e.TANIMOTO="TANIMOTO",e.SUBSTRUCTURE="SUBSTRUCTURE",e.SUPERSTRUCTURE="SUPERSTRUCTURE"})(My||(My={}));var Iy;(function(e){e.L2="Euclidean",e.IP="Inner product",e.COSINE="Cosine"})(Iy||(Iy={}));var Oy;(function(e){e.IVF_FLAT="IVF_FLAT",e.IVF_PQ="IVF_PQ",e.IVF_SQ8="IVF_SQ8",e.FLAT="FLAT",e.HNSW="HNSW",e.ANNOY="ANNOY",e.IVF_HNSW="IVF_HNSW",e.RHNSW_FLAT="RHNSW_FLAT",e.RHNSW_SQ="RHNSW_SQ",e.RHNSW_PQ="RHNSW_PQ",e.BIN_FLAT="BIN_FLAT",e.BIN_IVF_FLAT="BIN_IVF_FLAT",e.TRIE="TRIE",e.STL_SORT="STL_SORT"})(Oy||(Oy={}));var s2=60,l2=s2*60,c2=l2*24,w4=c2*7,cs=1e3,ig=s2*cs,Ly=l2*cs,C4=c2*cs,_4=w4*cs,J0="millisecond",ja="second",Fa="minute",Ba="hour",Fo="day",Hu="week",Er="month",u2="quarter",Bo="year",za="date",R4="YYYY-MM-DDTHH:mm:ssZ",Ay="Invalid Date",T4=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P4=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;const k4={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var n=["th","st","nd","rd"],r=t%100;return"["+t+(n[(r-20)%10]||n[r]||n[0])+"]"}};var am=function(t,n,r){var o=String(t);return!o||o.length>=n?t:""+Array(n+1-o.length).join(r)+t},$4=function(t){var n=-t.utcOffset(),r=Math.abs(n),o=Math.floor(r/60),i=r%60;return(n<=0?"+":"-")+am(o,2,"0")+":"+am(i,2,"0")},E4=function e(t,n){if(t.date()1)return e(a[0])}else{var s=t.name;zi[s]=t,o=s}return!r&&o&&(Pl=o),o||!r&&Pl},tt=function(t,n){if(e1(t))return t.clone();var r=typeof n=="object"?n:{};return r.date=t,r.args=arguments,new _f(r)},A4=function(t,n){return tt(t,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})},ct=L4;ct.l=Ld;ct.i=e1;ct.w=A4;var N4=function(t){var n=t.date,r=t.utc;if(n===null)return new Date(NaN);if(ct.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var o=n.match(T4);if(o){var i=o[2]-1||0,a=(o[7]||"0").substring(0,3);return r?new Date(Date.UTC(o[1],i,o[3]||1,o[4]||0,o[5]||0,o[6]||0,a)):new Date(o[1],i,o[3]||1,o[4]||0,o[5]||0,o[6]||0,a)}}return new Date(n)},_f=function(){function e(n){this.$L=Ld(n.locale,null,!0),this.parse(n),this.$x=this.$x||n.x||{},this[d2]=!0}var t=e.prototype;return t.parse=function(r){this.$d=N4(r),this.init()},t.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds()},t.$utils=function(){return ct},t.isValid=function(){return this.$d.toString()!==Ay},t.isSame=function(r,o){var i=tt(r);return this.startOf(o)<=i&&i<=this.endOf(o)},t.isAfter=function(r,o){return tt(r)n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Dr="$$material";function sm(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?on($s,--Hn):0,us--,Dt===10&&(us=1,Tf--),Dt}function Yn(){return Dt=Hn2||ac(Dt)>3?"":" "}function e$(e,t){for(;--t&&Yn()&&!(Dt<48||Dt>102||Dt>57&&Dt<65||Dt>70&&Dt<97););return Cc(e,Vu()+(t<6&&oo()==32&&Yn()==32))}function cm(e){for(;Yn();)switch(Dt){case e:return Hn;case 34:case 39:e!==34&&e!==39&&cm(Dt);break;case 40:e===41&&cm(e);break;case 92:Yn();break}return Hn}function t$(e,t){for(;Yn()&&e+Dt!==57;)if(e+Dt===84&&oo()===47)break;return"/*"+Cc(t,Hn-1)+"*"+Rf(e===47?e:Yn())}function n$(e){for(;!ac(oo());)Yn();return Cc(e,Hn)}function r$(e){return x2(Uu("",null,null,null,[""],e=b2(e),0,[0],e))}function Uu(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,y=1,w=1,v=1,S=0,m="",C=o,_=i,R=r,k=m;w;)switch(h=S,S=Yn()){case 40:if(h!=108&&on(k,d-1)==58){lm(k+=it(Wu(S),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Wu(S);break;case 9:case 10:case 13:case 32:k+=J4(h);break;case 92:k+=e$(Vu()-1,7);continue;case 47:switch(oo()){case 42:case 47:su(o$(t$(Yn(),Vu()),t,n),l);break;default:k+="/"}break;case 123*y:s[c++]=Yr(k)*v;case 125*y:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+u:v==-1&&(k=it(k,/\f/g,"")),p>0&&Yr(k)-d&&su(p>32?Dy(k+";",r,n,d-1):Dy(it(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(su(R=Ny(k,t,n,c,u,o,s,m,C=[],_=[],d),i),S===123)if(u===0)Uu(k,t,R,R,C,i,d,s,_);else switch(f===99&&on(k,3)===110?100:f){case 100:case 108:case 109:case 115:Uu(e,R,R,r&&su(Ny(e,R,R,0,0,o,s,m,o,C=[],d),_),o,_,d,s,r?C:_);break;default:Uu(k,R,R,R,[""],_,0,s,_)}}c=u=p=0,y=v=1,m=k="",d=a;break;case 58:d=1+Yr(k),p=h;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&X4()==125)continue}switch(k+=Rf(S),S*y){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(Yr(k)-1)*v,v=1;break;case 64:oo()===45&&(k+=Wu(Yn())),f=oo(),u=d=Yr(m=k+=n$(Vu())),S++;break;case 45:h===45&&Yr(k)==2&&(y=0)}}return i}function Ny(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],p=r1(f),h=0,y=0,w=0;h0?f[v]+" "+S:it(S,/&\f/g,f[v])))&&(l[w++]=m);return Pf(e,t,n,o===0?t1:s,l,c,u)}function o$(e,t,n){return Pf(e,t,n,h2,Rf(Y4()),ic(e,2,-2),0)}function Dy(e,t,n,r){return Pf(e,t,n,n1,ic(e,0,r),ic(e,r+1,-1),r)}function Ya(e,t){for(var n="",r=r1(e),o=0;o6)switch(on(e,t+1)){case 109:if(on(e,t+4)!==45)break;case 102:return it(e,/(.+:)(.+)-([^]+)/,"$1"+ot+"$2-$3$1"+Ad+(on(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~lm(e,"stretch")?S2(it(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(on(e,t+1)!==115)break;case 6444:switch(on(e,Yr(e)-3-(~lm(e,"!important")&&10))){case 107:return it(e,":",":"+ot)+e;case 101:return it(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ot+(on(e,14)===45?"inline-":"")+"box$3$1"+ot+"$2$3$1"+hn+"$2box$3")+e}break;case 5936:switch(on(e,t+11)){case 114:return ot+e+hn+it(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ot+e+hn+it(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ot+e+hn+it(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ot+e+hn+e+e}return e}var p$=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case n1:t.return=S2(t.value,t.length);break;case m2:return Ya([Ys(t,{value:it(t.value,"@","@"+ot)})],o);case t1:if(t.length)return Q4(t.props,function(i){switch(Z4(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ya([Ys(t,{props:[it(i,/:(read-\w+)/,":"+Ad+"$1")]})],o);case"::placeholder":return Ya([Ys(t,{props:[it(i,/:(plac\w+)/,":"+ot+"input-$1")]}),Ys(t,{props:[it(i,/:(plac\w+)/,":"+Ad+"$1")]}),Ys(t,{props:[it(i,/:(plac\w+)/,hn+"input-$1")]})],o)}return""})}},g$=[p$],h$=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(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||g$,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),v=1;v=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 P$={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},k$=!1,$$=/[A-Z]|^ms/g,E$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,k2=function(t){return t.charCodeAt(1)===45},Fy=function(t){return t!=null&&typeof t!="boolean"},ag=g2(function(e){return k2(e)?e:e.replace($$,"-$&").toLowerCase()}),By=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(E$,function(r,o,i){return Xr={name:o,styles:i,next:Xr},o})}return P$[t]!==1&&!k2(t)&&typeof n=="number"&&n!==0?n+"px":n},M$="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function sc(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Xr={name:o.name,styles:o.styles,next:Xr},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Xr={name:a.name,styles:a.styles,next:Xr},a=a.next;var s=i.styles+";";return s}return I$(e,t,n)}case"function":{if(e!==void 0){var l=Xr,c=n(e);return Xr=l,sc(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function I$(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?D$:j$},Wy=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},F$=!1,B$=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return T2(n,r,o),L$(function(){return P2(n,r,o)}),null},z$=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=Wy(t,n,r),l=s||Vy(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,p=1;pt(V$(o)?n:o):t;return g.jsx(A$,{styles:r})}/** + * @mui/styled-engine v6.1.6 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function O2(e,t){return um(e,t)}function W$(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Uy=[];function Gy(e){return Uy[0]=e,jf(Uy)}function Wo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function L2(e){if(!Wo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=L2(e[n])}),t}function So(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Wo(e)&&Wo(t)&&Object.keys(t).forEach(o=>{Wo(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Wo(e[o])?r[o]=So(e[o],t[o],n):n.clone?r[o]=Wo(t[o])?L2(t[o]):t[o]:r[o]=t[o]}),r}const U$=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)=>({...n,[r.key]:r.val}),{})};function G$(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=U$(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,p){const h=a.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(h!==-1&&typeof t[a[h]]=="number"?t[a[h]]:p)-r/100}${n})`}function u(f){return a.indexOf(f)+1r.startsWith("@container")).sort((r,o)=>{var a,s;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((s=o.match(i))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function K$(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Z$(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function Q$(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const Y$={borderRadius:4};function kl(e,t){return t?So(e,t,{clone:!1}):e}const Bf={xs:0,sm:600,md:900,lg:1200,xl:1536},qy={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Bf[e]}px)`},X$={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Bf[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Br(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||qy;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||qy;return Object.keys(t).reduce((a,s)=>{if(K$(i.keys,s)){const l=Z$(r.containerQueries?r:X$,s);l&&(a[l]=n(t[s],s))}else if(Object.keys(i.values||Bf).includes(s)){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function A2(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function N2(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function J$(e,...t){const n=A2(e),r=[n,...t].reduce((o,i)=>So(o,i),{});return N2(Object.keys(n),r)}function e5(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function sg({values:e,breakpoints:t,base:n}){const r=n||e5(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function D2(e){if(typeof e!="string")throw new Error(sm(7));return e.charAt(0).toUpperCase()+e.slice(1)}function zf(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 Nd(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=zf(e,n)||r,t&&(o=t(o,r,e)),o}function At(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=zf(l,r)||{};return Br(a,s,d=>{let f=Nd(c,o,d);return d===f&&typeof d=="string"&&(f=Nd(c,o,`${t}${d==="default"?"":D2(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function t5(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const n5={m:"margin",p:"padding"},r5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ky={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},o5=t5(e=>{if(e.length>2)if(Ky[e])e=Ky[e];else return[e];const[t,n]=e.split(""),r=n5[t],o=r5[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),l1=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],c1=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...l1,...c1];function _c(e,t,n,r){const o=zf(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),s=o[a];return i>=0?s:typeof s=="number"?-s:`-${s}`}:typeof o=="function"?o:()=>{}}function Hf(e){return _c(e,"spacing",8)}function Ji(e,t){return typeof t=="string"||t==null?t:e(t)}function i5(e,t){return n=>e.reduce((r,o)=>(r[o]=Ji(t,n),r),{})}function a5(e,t,n,r){if(!t.includes(n))return null;const o=o5(n),i=i5(o,r),a=e[n];return Br(e,a,i)}function j2(e,t){const n=Hf(e.theme);return Object.keys(e).map(r=>a5(e,t,r,n)).reduce(kl,{})}function kt(e){return j2(e,l1)}kt.propTypes={};kt.filterProps=l1;function $t(e){return j2(e,c1)}$t.propTypes={};$t.filterProps=c1;function F2(e=8,t=Hf({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Vf(...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]?kl(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function fr(e){return typeof e!="number"?e:`${e}px solid`}function wr(e,t){return At({prop:e,themeKey:"borders",transform:t})}const s5=wr("border",fr),l5=wr("borderTop",fr),c5=wr("borderRight",fr),u5=wr("borderBottom",fr),d5=wr("borderLeft",fr),f5=wr("borderColor"),p5=wr("borderTopColor"),g5=wr("borderRightColor"),h5=wr("borderBottomColor"),m5=wr("borderLeftColor"),v5=wr("outline",fr),y5=wr("outlineColor"),Wf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=_c(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ji(t,r)});return Br(e,e.borderRadius,n)}return null};Wf.propTypes={};Wf.filterProps=["borderRadius"];Vf(s5,l5,c5,u5,d5,f5,p5,g5,h5,m5,Wf,v5,y5);const Uf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=_c(e.theme,"spacing",8),n=r=>({gap:Ji(t,r)});return Br(e,e.gap,n)}return null};Uf.propTypes={};Uf.filterProps=["gap"];const Gf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=_c(e.theme,"spacing",8),n=r=>({columnGap:Ji(t,r)});return Br(e,e.columnGap,n)}return null};Gf.propTypes={};Gf.filterProps=["columnGap"];const qf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=_c(e.theme,"spacing",8),n=r=>({rowGap:Ji(t,r)});return Br(e,e.rowGap,n)}return null};qf.propTypes={};qf.filterProps=["rowGap"];const b5=At({prop:"gridColumn"}),x5=At({prop:"gridRow"}),S5=At({prop:"gridAutoFlow"}),w5=At({prop:"gridAutoColumns"}),C5=At({prop:"gridAutoRows"}),_5=At({prop:"gridTemplateColumns"}),R5=At({prop:"gridTemplateRows"}),T5=At({prop:"gridTemplateAreas"}),P5=At({prop:"gridArea"});Vf(Uf,Gf,qf,b5,x5,S5,w5,C5,_5,R5,T5,P5);function Xa(e,t){return t==="grey"?t:e}const k5=At({prop:"color",themeKey:"palette",transform:Xa}),$5=At({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xa}),E5=At({prop:"backgroundColor",themeKey:"palette",transform:Xa});Vf(k5,$5,E5);function Kn(e){return e<=1&&e!==0?`${e*100}%`:e}const M5=At({prop:"width",transform:Kn}),u1=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,s,l;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Bf[n];return r?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Kn(n)}};return Br(e,e.maxWidth,t)}return null};u1.filterProps=["maxWidth"];const I5=At({prop:"minWidth",transform:Kn}),O5=At({prop:"height",transform:Kn}),L5=At({prop:"maxHeight",transform:Kn}),A5=At({prop:"minHeight",transform:Kn});At({prop:"size",cssProperty:"width",transform:Kn});At({prop:"size",cssProperty:"height",transform:Kn});const N5=At({prop:"boxSizing"});Vf(M5,u1,I5,O5,L5,A5,N5);const Rc={border:{themeKey:"borders",transform:fr},borderTop:{themeKey:"borders",transform:fr},borderRight:{themeKey:"borders",transform:fr},borderBottom:{themeKey:"borders",transform:fr},borderLeft:{themeKey:"borders",transform:fr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:fr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wf},color:{themeKey:"palette",transform:Xa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xa},backgroundColor:{themeKey:"palette",transform:Xa},p:{style:$t},pt:{style:$t},pr:{style:$t},pb:{style:$t},pl:{style:$t},px:{style:$t},py:{style:$t},padding:{style:$t},paddingTop:{style:$t},paddingRight:{style:$t},paddingBottom:{style:$t},paddingLeft:{style:$t},paddingX:{style:$t},paddingY:{style:$t},paddingInline:{style:$t},paddingInlineStart:{style:$t},paddingInlineEnd:{style:$t},paddingBlock:{style:$t},paddingBlockStart:{style:$t},paddingBlockEnd:{style:$t},m:{style:kt},mt:{style:kt},mr:{style:kt},mb:{style:kt},ml:{style:kt},mx:{style:kt},my:{style:kt},margin:{style:kt},marginTop:{style:kt},marginRight:{style:kt},marginBottom:{style:kt},marginLeft:{style:kt},marginX:{style:kt},marginY:{style:kt},marginInline:{style:kt},marginInlineStart:{style:kt},marginInlineEnd:{style:kt},marginBlock:{style:kt},marginBlockStart:{style:kt},marginBlockEnd:{style:kt},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:Uf},rowGap:{style:qf},columnGap:{style:Gf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Kn},maxWidth:{style:u1},minWidth:{transform:Kn},height:{transform:Kn},maxHeight:{transform:Kn},minHeight:{transform:Kn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function D5(...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 j5(e,t){return typeof e=="function"?e(t):e}function F5(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=s;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=zf(o,c)||{};return d?d(a):Br(a,r,h=>{let y=Nd(f,u,h);return h===y&&typeof h=="string"&&(y=Nd(f,u,`${n}${h==="default"?"":D2(h)}`,h)),l===!1?y:{[l]:y}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Rc;function a(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=A2(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(f=>{const p=j5(l[f],o);if(p!=null)if(typeof p=="object")if(i[f])d=kl(d,e(f,p,o,i));else{const h=Br({theme:o},p,y=>({[f]:y}));D5(h,p)?d[f]=t({sx:p,theme:o}):d=kl(d,h)}else d=kl(d,e(f,p,o,i))}),q$(o,N2(u,d))}return Array.isArray(r)?r.map(a):a(r)}return t}const fi=F5();fi.filterProps=["sx"];function B5(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Kf(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,s=G$(n),l=F2(o);let c=So({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Y$,...i}},a);return c=Q$(c),c.applyStyles=B5,c=t.reduce((u,d)=>So(u,d),c),c.unstable_sxConfig={...Rc,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(d){return fi({sx:d,theme:this})},c}function z5(e){return Object.keys(e).length===0}function B2(e=null){const t=b.useContext(Ff);return!t||z5(t)?e:t}const H5=Kf();function Zf(e=H5){return B2(e)}function V5({styles:e,themeId:t,defaultTheme:n={}}){const r=Zf(n),o=typeof e=="function"?e(t&&r[t]||r):e;return g.jsx(I2,{styles:o})}const W5=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Rc;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function d1(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=W5(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return Wo(s)?{...r,...s}:r}:i={...r,...t},{...o,sx:i}}const Zy=e=>e,U5=()=>{let e=Zy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Zy}}},G5=U5();function z2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(fi);return b.forwardRef(function(l,c){const u=Zf(n),{className:d,component:f="div",...p}=d1(l);return g.jsx(i,{as:f,ref:c,className:ve(d,o?o(r):r),theme:t&&u[t]||u,...p})})}const K5={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Z5(e,t,n="Mui"){const r=K5[t];return r?`${n}-${r}`:`${G5.generate(e)}-${t}`}var ut={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var f1=Symbol.for("react.element"),p1=Symbol.for("react.portal"),Qf=Symbol.for("react.fragment"),Yf=Symbol.for("react.strict_mode"),Xf=Symbol.for("react.profiler"),Jf=Symbol.for("react.provider"),ep=Symbol.for("react.context"),Q5=Symbol.for("react.server_context"),tp=Symbol.for("react.forward_ref"),np=Symbol.for("react.suspense"),rp=Symbol.for("react.suspense_list"),op=Symbol.for("react.memo"),ip=Symbol.for("react.lazy"),Y5=Symbol.for("react.offscreen"),H2;H2=Symbol.for("react.module.reference");function Cr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case f1:switch(e=e.type,e){case Qf:case Xf:case Yf:case np:case rp:return e;default:switch(e=e&&e.$$typeof,e){case Q5:case ep:case tp:case ip:case op:case Jf:return e;default:return t}}case p1:return t}}}ut.ContextConsumer=ep;ut.ContextProvider=Jf;ut.Element=f1;ut.ForwardRef=tp;ut.Fragment=Qf;ut.Lazy=ip;ut.Memo=op;ut.Portal=p1;ut.Profiler=Xf;ut.StrictMode=Yf;ut.Suspense=np;ut.SuspenseList=rp;ut.isAsyncMode=function(){return!1};ut.isConcurrentMode=function(){return!1};ut.isContextConsumer=function(e){return Cr(e)===ep};ut.isContextProvider=function(e){return Cr(e)===Jf};ut.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===f1};ut.isForwardRef=function(e){return Cr(e)===tp};ut.isFragment=function(e){return Cr(e)===Qf};ut.isLazy=function(e){return Cr(e)===ip};ut.isMemo=function(e){return Cr(e)===op};ut.isPortal=function(e){return Cr(e)===p1};ut.isProfiler=function(e){return Cr(e)===Xf};ut.isStrictMode=function(e){return Cr(e)===Yf};ut.isSuspense=function(e){return Cr(e)===np};ut.isSuspenseList=function(e){return Cr(e)===rp};ut.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qf||e===Xf||e===Yf||e===np||e===rp||e===Y5||typeof e=="object"&&e!==null&&(e.$$typeof===ip||e.$$typeof===op||e.$$typeof===Jf||e.$$typeof===ep||e.$$typeof===tp||e.$$typeof===H2||e.getModuleId!==void 0)};ut.typeOf=Cr;function V2(e){const{variants:t,...n}=e,r={variants:t,style:Gy(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Gy(o.style))}),r}const X5=Kf();function lg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function J5(e){return e?(t,n)=>n[e]:null}function eE(e,t,n){e.theme=nE(e.theme)?n:e.theme[t]||e.theme}function Gu(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Gu(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return W2(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function W2(e,t,n=[]){var o;let r;e:for(let i=0;i{W$(s,_=>_.filter(R=>R!==fi));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=J5(oE(u)),...h}=l,y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,w=f||!1;let v=lg;u==="Root"||u==="root"?v=r:u?v=o:rE(s)&&(v=void 0);const S=O2(s,{shouldForwardProp:v,label:tE(),...h}),m=_=>{if(typeof _=="function"&&_.__emotion_real!==_)return function(k){return Gu(k,_)};if(Wo(_)){const R=V2(_);return R.variants?function(T){return Gu(T,R)}:R.style}return _},C=(..._)=>{const R=[],k=_.map(m),T=[];if(R.push(i),c&&p&&T.push(function(I){var A,N;const D=(N=(A=I.theme.components)==null?void 0:A[c])==null?void 0:N.styleOverrides;if(!D)return null;const M={};for(const E in D)M[E]=Gu(I,D[E]);return p(I,M)}),c&&!y&&T.push(function(I){var M,A;const O=I.theme,D=(A=(M=O==null?void 0:O.components)==null?void 0:M[c])==null?void 0:A.variants;return D?W2(I,D):null}),w||T.push(fi),Array.isArray(k[0])){const $=k.shift(),I=new Array(R.length).fill(""),O=new Array(T.length).fill("");let D;D=[...I,...$,...O],D.raw=[...I,...$.raw,...O],R.unshift(D)}const P=[...R,...k,...T],x=S(...P);return s.muiName&&(x.muiName=s.muiName),x};return S.withConfig&&(C.withConfig=S.withConfig),C}}function tE(e,t){return void 0}function nE(e){for(const t in e)return!1;return!0}function rE(e){return typeof e=="string"&&e.charCodeAt(0)>96}function oE(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const iE=U2();function Dd(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;n[o][l]=Dd(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function aE(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Dd(t.components[n].defaultProps,r)}function G2({props:e,name:t,defaultTheme:n,themeId:r}){let o=Zf(n);return r&&(o=o[r]||o),aE({theme:o,name:t,props:e})}function sE(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function g1(e,t=0,n=1){return sE(e,t,n)}function lE(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 pi(e){if(e.type)return e;if(e.charAt(0)==="#")return pi(lE(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(sm(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"].includes(o))throw new Error(sm(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const cE=e=>{const t=pi(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},gl=(e,t)=>{try{return cE(e)}catch{return e}};function ap(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function q2(e){e=pi(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),ap({type:s,values:l})}function dm(e){e=pi(e);let t=e.type==="hsl"||e.type==="hsla"?pi(q2(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 uE(e,t){const n=dm(e),r=dm(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Be(e,t){return e=pi(e),t=g1(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ap(e)}function lu(e,t,n){try{return Be(e,t)}catch{return e}}function ea(e,t){if(e=pi(e),t=g1(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ap(e)}function dt(e,t,n){try{return ea(e,t)}catch{return e}}function ta(e,t){if(e=pi(e),t=g1(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ap(e)}function ft(e,t,n){try{return ta(e,t)}catch{return e}}function dE(e,t=.15){return dm(e)>.5?ea(e,t):ta(e,t)}function cu(e,t,n){try{return dE(e,t)}catch{return e}}const K2=b.createContext(null);function h1(){return b.useContext(K2)}const fE=typeof Symbol=="function"&&Symbol.for,pE=fE?Symbol.for("mui.nested"):"__THEME_NESTED__";function gE(e,t){return typeof t=="function"?t(e):{...e,...t}}function hE(e){const{children:t,theme:n}=e,r=h1(),o=b.useMemo(()=>{const i=r===null?{...n}:gE(r,n);return i!=null&&(i[pE]=r!==null),i},[n,r]);return g.jsx(K2.Provider,{value:o,children:t})}const Z2=b.createContext();function mE({value:e,...t}){return g.jsx(Z2.Provider,{value:e??!0,...t})}const Es=()=>b.useContext(Z2)??!1,Q2=b.createContext(void 0);function vE({value:e,children:t}){return g.jsx(Q2.Provider,{value:e,children:t})}function yE(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Dd(o.defaultProps,r):!o.styleOverrides&&!o.variants?Dd(o,r):r}function bE({props:e,name:t}){const n=b.useContext(Q2);return yE({props:e,name:t,theme:{components:n}})}const Qy={};function Yy(e,t,n,r=!1){return b.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Y2(e){const{children:t,theme:n,themeId:r}=e,o=B2(Qy),i=h1()||Qy,a=Yy(r,o,n),s=Yy(r,i,n,!0),l=a.direction==="rtl";return g.jsx(hE,{theme:s,children:g.jsx(Ff.Provider,{value:a,children:g.jsx(mE,{value:l,children:g.jsx(vE,{value:a==null?void 0:a.components,children:t})})})})}const Xy={theme:void 0};function xE(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(Xy.theme=o.theme,i=V2(e(Xy)),t=i,n=o.theme),i}}const m1="mode",v1="color-scheme",SE="data-color-scheme";function wE(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=m1,colorSchemeStorageKey:i=v1,attribute:a=SE,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),u.startsWith(".")){const f=u.substring(1);c+=`${s}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark)); + ${s}.classList.add('${f}'.replace('%s', colorScheme));`}const d=u.match(/\[([^\]]+)\]/);if(d){const[f,p]=d[1].split("=");p||(c+=`${s}.removeAttribute('${f}'.replace('%s', light)); + ${s}.removeAttribute('${f}'.replace('%s', dark));`),c+=` + ${s}.setAttribute('${f}'.replace('%s', colorScheme), ${p?`${p}.replace('%s', colorScheme)`:'""'});`}else c+=`${s}.setAttribute('${u}', colorScheme);`;return g.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { +try { + let colorScheme = ''; + const mode = localStorage.getItem('${o}') || '${t}'; + const dark = localStorage.getItem('${i}-dark') || '${r}'; + const light = localStorage.getItem('${i}-light') || '${n}'; + if (mode === 'system') { + // handle system mode + const mql = window.matchMedia('(prefers-color-scheme: dark)'); + if (mql.matches) { + colorScheme = dark + } else { + colorScheme = light + } + } + if (mode === 'light') { + colorScheme = light; + } + if (mode === 'dark') { + colorScheme = dark; + } + if (colorScheme) { + ${c} + } +} catch(e){}})();`}},"mui-color-scheme-init")}function Jy(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function X2(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function CE(e){return X2(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function cg(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function _E(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=m1,colorSchemeStorageKey:a=v1,storageWindow:s=typeof window>"u"?void 0:window}=e,l=o.join(","),c=o.length>1,[u,d]=b.useState(()=>{const m=cg(i,t),C=cg(`${a}-light`,n),_=cg(`${a}-dark`,r);return{mode:m,systemMode:Jy(m),lightColorScheme:C,darkColorScheme:_}}),[,f]=b.useState(!1),p=b.useRef(!1);b.useEffect(()=>{c&&f(!0),p.current=!0},[c]);const h=CE(u),y=b.useCallback(m=>{d(C=>{if(m===C.mode)return C;const _=m??t;try{localStorage.setItem(i,_)}catch{}return{...C,mode:_,systemMode:Jy(_)}})},[i,t]),w=b.useCallback(m=>{m?typeof m=="string"?m&&!l.includes(m)?console.error(`\`${m}\` does not exist in \`theme.colorSchemes\`.`):d(C=>{const _={...C};return X2(C,R=>{try{localStorage.setItem(`${a}-${R}`,m)}catch{}R==="light"&&(_.lightColorScheme=m),R==="dark"&&(_.darkColorScheme=m)}),_}):d(C=>{const _={...C},R=m.light===null?n:m.light,k=m.dark===null?r:m.dark;if(R)if(!l.includes(R))console.error(`\`${R}\` does not exist in \`theme.colorSchemes\`.`);else{_.lightColorScheme=R;try{localStorage.setItem(`${a}-light`,R)}catch{}}if(k)if(!l.includes(k))console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`);else{_.darkColorScheme=k;try{localStorage.setItem(`${a}-dark`,k)}catch{}}return _}):d(C=>{try{localStorage.setItem(`${a}-light`,n),localStorage.setItem(`${a}-dark`,r)}catch{}return{...C,lightColorScheme:n,darkColorScheme:r}})},[l,a,n,r]),v=b.useCallback(m=>{u.mode==="system"&&d(C=>{const _=m!=null&&m.matches?"dark":"light";return C.systemMode===_?C:{...C,systemMode:_}})},[u.mode]),S=b.useRef(v);return S.current=v,b.useEffect(()=>{if(typeof window.matchMedia!="function"||!c)return;const m=(..._)=>S.current(..._),C=window.matchMedia("(prefers-color-scheme: dark)");return C.addListener(m),m(C),()=>{C.removeListener(m)}},[c]),b.useEffect(()=>{if(s&&c){const m=C=>{const _=C.newValue;typeof C.key=="string"&&C.key.startsWith(a)&&(!_||l.match(_))&&(C.key.endsWith("light")&&w({light:_}),C.key.endsWith("dark")&&w({dark:_})),C.key===i&&(!_||["light","dark","system"].includes(_))&&y(_||t)};return s.addEventListener("storage",m),()=>{s.removeEventListener("storage",m)}}},[w,y,i,a,l,t,s,c]),{...u,mode:p.current||!c?u.mode:void 0,systemMode:p.current||!c?u.systemMode:void 0,colorScheme:p.current||!c?h:void 0,setMode:y,setColorScheme:w}}const RE="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function TE(e){const{themeId:t,theme:n={},modeStorageKey:r=m1,colorSchemeStorageKey:o=v1,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=b.createContext(void 0),u=()=>b.useContext(c)||l;function d(y){var ge,le,Se,ye,Ge;const{children:w,theme:v,modeStorageKey:S=r,colorSchemeStorageKey:m=o,disableTransitionOnChange:C=i,storageWindow:_=typeof window>"u"?void 0:window,documentNode:R=typeof document>"u"?void 0:document,colorSchemeNode:k=typeof document>"u"?void 0:document.documentElement,disableNestedContext:T=!1,disableStyleSheetGeneration:P=!1,defaultMode:x="system"}=y,$=b.useRef(!1),I=h1(),O=b.useContext(c),D=!!O&&!T,M=b.useMemo(()=>v||(typeof n=="function"?n():n),[v]),A=M[t],{colorSchemes:N={},components:E={},cssVarPrefix:L,...B}=A||M,H=Object.keys(N).filter(Pe=>!!N[Pe]).join(","),z=b.useMemo(()=>H.split(","),[H]),j=typeof a=="string"?a:a.light,F=typeof a=="string"?a:a.dark,W=N[j]&&N[F]?x:((le=(ge=N[B.defaultColorScheme])==null?void 0:ge.palette)==null?void 0:le.mode)||((Se=B.palette)==null?void 0:Se.mode),{mode:V,setMode:ee,systemMode:re,lightColorScheme:U,darkColorScheme:K,colorScheme:se,setColorScheme:q}=_E({supportedColorSchemes:z,defaultLightColorScheme:j,defaultDarkColorScheme:F,modeStorageKey:S,colorSchemeStorageKey:m,defaultMode:W,storageWindow:_});let ce=V,ue=se;D&&(ce=O.mode,ue=O.colorScheme);const ie=ue||B.defaultColorScheme,te=((ye=B.generateThemeVars)==null?void 0:ye.call(B))||B.vars,de={...B,components:E,colorSchemes:N,cssVarPrefix:L,vars:te};if(typeof de.generateSpacing=="function"&&(de.spacing=de.generateSpacing()),ie){const Pe=N[ie];Pe&&typeof Pe=="object"&&Object.keys(Pe).forEach(Re=>{Pe[Re]&&typeof Pe[Re]=="object"?de[Re]={...de[Re],...Pe[Re]}:de[Re]=Pe[Re]})}const Q=B.colorSchemeSelector;b.useEffect(()=>{if(ue&&k&&Q&&Q!=="media"){const Pe=Q;let Re=Q;if(Pe==="class"&&(Re=".%s"),Pe==="data"&&(Re="[data-%s]"),Pe!=null&&Pe.startsWith("data-")&&!Pe.includes("%s")&&(Re=`[${Pe}="%s"]`),Re.startsWith("."))k.classList.remove(...z.map(ke=>Re.substring(1).replace("%s",ke))),k.classList.add(Re.substring(1).replace("%s",ue));else{const ke=Re.replace("%s",ue).match(/\[([^\]]+)\]/);if(ke){const[pe,ne]=ke[1].split("=");ne||z.forEach(xe=>{k.removeAttribute(pe.replace(ue,xe))}),k.setAttribute(pe,ne?ne.replace(/"|'/g,""):"")}else k.setAttribute(Re,ue)}}},[ue,Q,k,z]),b.useEffect(()=>{let Pe;if(C&&$.current&&R){const Re=R.createElement("style");Re.appendChild(R.createTextNode(RE)),R.head.appendChild(Re),window.getComputedStyle(R.body),Pe=setTimeout(()=>{R.head.removeChild(Re)},1)}return()=>{clearTimeout(Pe)}},[ue,C,R]),b.useEffect(()=>($.current=!0,()=>{$.current=!1}),[]);const be=b.useMemo(()=>({allColorSchemes:z,colorScheme:ue,darkColorScheme:K,lightColorScheme:U,mode:ce,setColorScheme:q,setMode:ee,systemMode:re}),[z,ue,K,U,ce,q,ee,re]);let Te=!0;(P||B.cssVariables===!1||D&&(I==null?void 0:I.cssVarPrefix)===L)&&(Te=!1);const we=g.jsxs(b.Fragment,{children:[g.jsx(Y2,{themeId:A?t:void 0,theme:s?s(de):de,children:w}),Te&&g.jsx(I2,{styles:((Ge=de.generateStyleSheets)==null?void 0:Ge.call(de))||[]})]});return D?we:g.jsx(c.Provider,{value:be,children:we})}const f=typeof a=="string"?a:a.light,p=typeof a=="string"?a:a.dark;return{CssVarsProvider:d,useColorScheme:u,getInitColorSchemeScript:y=>wE({colorSchemeStorageKey:o,defaultLightColorScheme:f,defaultDarkColorScheme:p,modeStorageKey:r,...y})}}function PE(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const eb=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},kE=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!n||n&&!n([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,s],Array.isArray(l)?[...a,s]:a):t([...i,s],l,a))})}r(e)},$E=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ug(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return kE(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(s,l))){const u=`--${n?`${n}-`:""}${s.join("-")}`,d=$E(s,l);Object.assign(o,{[u]:d}),eb(i,s,`var(${u})`,c),eb(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function EE(e,t={}){const{getSelector:n=w,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=ug(l,t);let f=d;const p={},{[s]:h,...y}=i;if(Object.entries(y||{}).forEach(([m,C])=>{const{vars:_,css:R,varsWithDefaults:k}=ug(C,t);f=So(f,k),p[m]={css:R,vars:_}}),h){const{css:m,vars:C,varsWithDefaults:_}=ug(h,t);f=So(f,_),p[s]={css:m,vars:C}}function w(m,C){var R,k;let _=o;if(o==="class"&&(_=".%s"),o==="data"&&(_="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(_=`[${o}="%s"]`),m){if(_==="media")return e.defaultColorScheme===m?":root":{[`@media (prefers-color-scheme: ${((k=(R=i[m])==null?void 0:R.palette)==null?void 0:k.mode)||m})`]:{":root":C}};if(_)return e.defaultColorScheme===m?`:root, ${_.replace("%s",String(m))}`:_.replace("%s",String(m))}return":root"}return{vars:f,generateThemeVars:()=>{let m={...c};return Object.entries(p).forEach(([,{vars:C}])=>{m=So(m,C)}),m},generateStyleSheets:()=>{var T,P;const m=[],C=e.defaultColorScheme||"light";function _(x,$){Object.keys($).length&&m.push(typeof x=="string"?{[x]:{...$}}:x)}_(n(void 0,{...u}),u);const{[C]:R,...k}=p;if(R){const{css:x}=R,$=(P=(T=i[C])==null?void 0:T.palette)==null?void 0:P.mode,I=!r&&$?{colorScheme:$,...x}:{...x};_(n(C,{...I}),I)}return Object.entries(k).forEach(([x,{css:$}])=>{var D,M;const I=(M=(D=i[x])==null?void 0:D.palette)==null?void 0:M.mode,O=!r&&I?{colorScheme:I,...$}:{...$};_(n(x,{...O}),O)}),m}}}function ME(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function IE(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;lt.root});function AE(e){return G2({props:e,name:"MuiStack",defaultTheme:OE})}function NE(e,t){const n=b.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],jE=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Br({theme:t},sg({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Hf(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=sg({values:e.direction,base:o}),a=sg({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const f=c>0?i[u[c-1]]:"column";i[l]=f}}),n=So(n,Br({theme:t},a,(l,c)=>e.useFlexGap?{gap:Ji(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${DE(c?i[c]:e.direction)}`]:Ji(r,l)}}))}return n=J$(t.breakpoints,n),n};function FE(e={}){const{createStyledComponent:t=LE,useThemeProps:n=AE,componentName:r="MuiStack"}=e,o=()=>IE({root:["root"]},l=>Z5(r,l),{}),i=t(jE);return b.forwardRef(function(l,c){const u=n(l),d=d1(u),{component:f="div",direction:p="column",spacing:h=0,divider:y,children:w,className:v,useFlexGap:S=!1,...m}=d,C={direction:p,spacing:h,useFlexGap:S},_=o();return g.jsx(i,{as:f,ownerState:C,ref:c,className:ve(_.root,v),...m,children:y?NE(w,y):w})})}function Uo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function J2(e){if(!Uo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=J2(e[n])}),t}function io(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Uo(e)&&Uo(t)&&Object.keys(t).forEach(o=>{Uo(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Uo(e[o])?r[o]=io(e[o],t[o],n):n.clone?r[o]=Uo(t[o])?J2(t[o]):t[o]:r[o]=t[o]}),r}function e_(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:oc.white,default:oc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const BE=e_();function t_(){return{text:{primary:oc.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:oc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const tb=t_();function nb(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=ta(e.main,o):t==="dark"&&(e.dark=ea(e.main,i)))}function zE(e="light"){return e==="dark"?{main:va[200],light:va[50],dark:va[400]}:{main:va[700],light:va[400],dark:va[800]}}function HE(e="light"){return e==="dark"?{main:ma[200],light:ma[50],dark:ma[400]}:{main:ma[500],light:ma[300],dark:ma[700]}}function VE(e="light"){return e==="dark"?{main:ha[500],light:ha[300],dark:ha[700]}:{main:ha[700],light:ha[400],dark:ha[800]}}function WE(e="light"){return e==="dark"?{main:ya[400],light:ya[300],dark:ya[700]}:{main:ya[700],light:ya[500],dark:ya[900]}}function UE(e="light"){return e==="dark"?{main:ba[400],light:ba[300],dark:ba[700]}:{main:ba[800],light:ba[500],dark:ba[900]}}function GE(e="light"){return e==="dark"?{main:Qs[400],light:Qs[300],dark:Qs[700]}:{main:"#ed6c02",light:Qs[500],dark:Qs[900]}}function y1(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||zE(t),a=e.secondary||HE(t),s=e.error||VE(t),l=e.info||WE(t),c=e.success||UE(t),u=e.warning||GE(t);function d(y){return uE(y,tb.text.primary)>=n?tb.text.primary:BE.text.primary}const f=({color:y,name:w,mainShade:v=500,lightShade:S=300,darkShade:m=700})=>{if(y={...y},!y.main&&y[v]&&(y.main=y[v]),!y.hasOwnProperty("main"))throw new Error(Xi(11,w?` (${w})`:"",v));if(typeof y.main!="string")throw new Error(Xi(12,w?` (${w})`:"",JSON.stringify(y.main)));return nb(y,"light",S,r),nb(y,"dark",m,r),y.contrastText||(y.contrastText=d(y.main)),y};let p;return t==="light"?p=e_():t==="dark"&&(p=t_()),io({common:{...oc},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:D4,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...p},o)}function qE(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}const rb=e=>e,KE=()=>{let e=rb;return{configure(t){e=t},generate(t){return e(t)},reset(){e=rb}}},n_=KE(),ZE={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Oe(e,t,n="Mui"){const r=ZE[t];return r?`${n}-${r}`:`${n_.generate(e)}-${t}`}function QE(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function YE(e){return Math.round(e*1e5)/1e5}const ob={textTransform:"uppercase"},ib='"Roboto", "Helvetica", "Arial", sans-serif';function r_(e,t){const{fontFamily:n=ib,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t,f=r/14,p=u||(w=>`${w/l*f}rem`),h=(w,v,S,m,C)=>({fontFamily:n,fontWeight:w,fontSize:p(v),lineHeight:S,...n===ib?{letterSpacing:`${YE(m/v)}em`}:{},...C,...c}),y={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,ob),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,ob),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return io({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...y},d,{clone:!1})}const XE=.2,JE=.14,eM=.12;function bt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${XE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${JE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${eM})`].join(",")}const tM=["none",bt(0,2,1,-1,0,1,1,0,0,1,3,0),bt(0,3,1,-2,0,2,2,0,0,1,5,0),bt(0,3,3,-2,0,3,4,0,0,1,8,0),bt(0,2,4,-1,0,4,5,0,0,1,10,0),bt(0,3,5,-1,0,5,8,0,0,1,14,0),bt(0,3,5,-1,0,6,10,0,0,1,18,0),bt(0,4,5,-2,0,7,10,1,0,2,16,1),bt(0,5,5,-3,0,8,10,1,0,3,14,2),bt(0,5,6,-3,0,9,12,1,0,3,16,2),bt(0,6,6,-3,0,10,14,1,0,4,18,3),bt(0,6,7,-4,0,11,15,1,0,4,20,3),bt(0,7,8,-4,0,12,17,2,0,5,22,4),bt(0,7,8,-4,0,13,19,2,0,5,24,4),bt(0,7,9,-4,0,14,21,2,0,5,26,4),bt(0,8,9,-5,0,15,22,2,0,6,28,5),bt(0,8,10,-5,0,16,24,2,0,6,30,5),bt(0,8,11,-5,0,17,26,2,0,6,32,5),bt(0,9,11,-5,0,18,28,2,0,7,34,6),bt(0,9,12,-6,0,19,29,2,0,7,36,6),bt(0,10,13,-6,0,20,31,3,0,8,38,7),bt(0,10,13,-6,0,21,33,3,0,8,40,7),bt(0,10,14,-6,0,22,35,3,0,8,42,7),bt(0,11,14,-7,0,23,36,3,0,9,44,8),bt(0,11,15,-7,0,24,38,3,0,9,46,8)],nM={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)"},o_={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ab(e){return`${Math.round(e)}ms`}function rM(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function oM(e){const t={...nM,...e.easing},n={...o_,...e.duration};return{getAutoHeightDuration:rM,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0,...c}=i;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:ab(a)} ${s} ${typeof l=="string"?l:ab(l)}`).join(",")},...e,easing:t,duration:n}}const iM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function aM(e){return Uo(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function i_(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;iio(p,h),f),f.unstable_sxConfig={...Rc,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(h){return fi({sx:h,theme:this})},f.toRuntimeSource=i_,f}function pm(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const sM=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=pm(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function a_(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function s_(e){return e==="dark"?sM:[]}function lM(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=y1(t);return{palette:i,opacity:{...a_(i.mode),...n},overlays:r||s_(i.mode),...o}}function cM(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const uM=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],dM=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return uM(e.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function fM(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Z(e,t,n){!e[t]&&n&&(e[t]=n)}function hl(e){return!e||!e.startsWith("hsl")?e:q2(e)}function co(e,t){`${t}Channel`in e||(e[`${t}Channel`]=gl(hl(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function pM(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const qr=e=>{try{return e()}catch{}},gM=(e="mui")=>PE(e);function dg(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=lM({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=fm({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...a_(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||s_(o)},a}function hM(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=cM,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&u!=="light"?"light":u),f=gM(i),{[d]:p,light:h,dark:y,...w}=n,v={...w};let S=p;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(Xi(21,d));const m=dg(v,S,c,d);h&&!v.light&&dg(v,h,void 0,"light"),y&&!v.dark&&dg(v,y,void 0,"dark");let C={defaultColorScheme:d,...m,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:f,colorSchemes:v,font:{...qE(m.typography),...m.font},spacing:pM(c.spacing)};Object.keys(C.colorSchemes).forEach(P=>{const x=C.colorSchemes[P].palette,$=I=>{const O=I.split("-"),D=O[1],M=O[2];return f(I,x[D][M])};if(x.mode==="light"&&(Z(x.common,"background","#fff"),Z(x.common,"onBackground","#000")),x.mode==="dark"&&(Z(x.common,"background","#000"),Z(x.common,"onBackground","#fff")),fM(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){Z(x.Alert,"errorColor",dt(x.error.light,.6)),Z(x.Alert,"infoColor",dt(x.info.light,.6)),Z(x.Alert,"successColor",dt(x.success.light,.6)),Z(x.Alert,"warningColor",dt(x.warning.light,.6)),Z(x.Alert,"errorFilledBg",$("palette-error-main")),Z(x.Alert,"infoFilledBg",$("palette-info-main")),Z(x.Alert,"successFilledBg",$("palette-success-main")),Z(x.Alert,"warningFilledBg",$("palette-warning-main")),Z(x.Alert,"errorFilledColor",qr(()=>x.getContrastText(x.error.main))),Z(x.Alert,"infoFilledColor",qr(()=>x.getContrastText(x.info.main))),Z(x.Alert,"successFilledColor",qr(()=>x.getContrastText(x.success.main))),Z(x.Alert,"warningFilledColor",qr(()=>x.getContrastText(x.warning.main))),Z(x.Alert,"errorStandardBg",ft(x.error.light,.9)),Z(x.Alert,"infoStandardBg",ft(x.info.light,.9)),Z(x.Alert,"successStandardBg",ft(x.success.light,.9)),Z(x.Alert,"warningStandardBg",ft(x.warning.light,.9)),Z(x.Alert,"errorIconColor",$("palette-error-main")),Z(x.Alert,"infoIconColor",$("palette-info-main")),Z(x.Alert,"successIconColor",$("palette-success-main")),Z(x.Alert,"warningIconColor",$("palette-warning-main")),Z(x.AppBar,"defaultBg",$("palette-grey-100")),Z(x.Avatar,"defaultBg",$("palette-grey-400")),Z(x.Button,"inheritContainedBg",$("palette-grey-300")),Z(x.Button,"inheritContainedHoverBg",$("palette-grey-A100")),Z(x.Chip,"defaultBorder",$("palette-grey-400")),Z(x.Chip,"defaultAvatarColor",$("palette-grey-700")),Z(x.Chip,"defaultIconColor",$("palette-grey-700")),Z(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Z(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Z(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Z(x.LinearProgress,"primaryBg",ft(x.primary.main,.62)),Z(x.LinearProgress,"secondaryBg",ft(x.secondary.main,.62)),Z(x.LinearProgress,"errorBg",ft(x.error.main,.62)),Z(x.LinearProgress,"infoBg",ft(x.info.main,.62)),Z(x.LinearProgress,"successBg",ft(x.success.main,.62)),Z(x.LinearProgress,"warningBg",ft(x.warning.main,.62)),Z(x.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),Z(x.Slider,"primaryTrack",ft(x.primary.main,.62)),Z(x.Slider,"secondaryTrack",ft(x.secondary.main,.62)),Z(x.Slider,"errorTrack",ft(x.error.main,.62)),Z(x.Slider,"infoTrack",ft(x.info.main,.62)),Z(x.Slider,"successTrack",ft(x.success.main,.62)),Z(x.Slider,"warningTrack",ft(x.warning.main,.62));const I=cu(x.background.default,.8);Z(x.SnackbarContent,"bg",I),Z(x.SnackbarContent,"color",qr(()=>x.getContrastText(I))),Z(x.SpeedDialAction,"fabHoverBg",cu(x.background.paper,.15)),Z(x.StepConnector,"border",$("palette-grey-400")),Z(x.StepContent,"border",$("palette-grey-400")),Z(x.Switch,"defaultColor",$("palette-common-white")),Z(x.Switch,"defaultDisabledColor",$("palette-grey-100")),Z(x.Switch,"primaryDisabledColor",ft(x.primary.main,.62)),Z(x.Switch,"secondaryDisabledColor",ft(x.secondary.main,.62)),Z(x.Switch,"errorDisabledColor",ft(x.error.main,.62)),Z(x.Switch,"infoDisabledColor",ft(x.info.main,.62)),Z(x.Switch,"successDisabledColor",ft(x.success.main,.62)),Z(x.Switch,"warningDisabledColor",ft(x.warning.main,.62)),Z(x.TableCell,"border",ft(lu(x.divider,1),.88)),Z(x.Tooltip,"bg",lu(x.grey[700],.92))}if(x.mode==="dark"){Z(x.Alert,"errorColor",ft(x.error.light,.6)),Z(x.Alert,"infoColor",ft(x.info.light,.6)),Z(x.Alert,"successColor",ft(x.success.light,.6)),Z(x.Alert,"warningColor",ft(x.warning.light,.6)),Z(x.Alert,"errorFilledBg",$("palette-error-dark")),Z(x.Alert,"infoFilledBg",$("palette-info-dark")),Z(x.Alert,"successFilledBg",$("palette-success-dark")),Z(x.Alert,"warningFilledBg",$("palette-warning-dark")),Z(x.Alert,"errorFilledColor",qr(()=>x.getContrastText(x.error.dark))),Z(x.Alert,"infoFilledColor",qr(()=>x.getContrastText(x.info.dark))),Z(x.Alert,"successFilledColor",qr(()=>x.getContrastText(x.success.dark))),Z(x.Alert,"warningFilledColor",qr(()=>x.getContrastText(x.warning.dark))),Z(x.Alert,"errorStandardBg",dt(x.error.light,.9)),Z(x.Alert,"infoStandardBg",dt(x.info.light,.9)),Z(x.Alert,"successStandardBg",dt(x.success.light,.9)),Z(x.Alert,"warningStandardBg",dt(x.warning.light,.9)),Z(x.Alert,"errorIconColor",$("palette-error-main")),Z(x.Alert,"infoIconColor",$("palette-info-main")),Z(x.Alert,"successIconColor",$("palette-success-main")),Z(x.Alert,"warningIconColor",$("palette-warning-main")),Z(x.AppBar,"defaultBg",$("palette-grey-900")),Z(x.AppBar,"darkBg",$("palette-background-paper")),Z(x.AppBar,"darkColor",$("palette-text-primary")),Z(x.Avatar,"defaultBg",$("palette-grey-600")),Z(x.Button,"inheritContainedBg",$("palette-grey-800")),Z(x.Button,"inheritContainedHoverBg",$("palette-grey-700")),Z(x.Chip,"defaultBorder",$("palette-grey-700")),Z(x.Chip,"defaultAvatarColor",$("palette-grey-300")),Z(x.Chip,"defaultIconColor",$("palette-grey-300")),Z(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Z(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Z(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Z(x.LinearProgress,"primaryBg",dt(x.primary.main,.5)),Z(x.LinearProgress,"secondaryBg",dt(x.secondary.main,.5)),Z(x.LinearProgress,"errorBg",dt(x.error.main,.5)),Z(x.LinearProgress,"infoBg",dt(x.info.main,.5)),Z(x.LinearProgress,"successBg",dt(x.success.main,.5)),Z(x.LinearProgress,"warningBg",dt(x.warning.main,.5)),Z(x.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),Z(x.Slider,"primaryTrack",dt(x.primary.main,.5)),Z(x.Slider,"secondaryTrack",dt(x.secondary.main,.5)),Z(x.Slider,"errorTrack",dt(x.error.main,.5)),Z(x.Slider,"infoTrack",dt(x.info.main,.5)),Z(x.Slider,"successTrack",dt(x.success.main,.5)),Z(x.Slider,"warningTrack",dt(x.warning.main,.5));const I=cu(x.background.default,.98);Z(x.SnackbarContent,"bg",I),Z(x.SnackbarContent,"color",qr(()=>x.getContrastText(I))),Z(x.SpeedDialAction,"fabHoverBg",cu(x.background.paper,.15)),Z(x.StepConnector,"border",$("palette-grey-600")),Z(x.StepContent,"border",$("palette-grey-600")),Z(x.Switch,"defaultColor",$("palette-grey-300")),Z(x.Switch,"defaultDisabledColor",$("palette-grey-600")),Z(x.Switch,"primaryDisabledColor",dt(x.primary.main,.55)),Z(x.Switch,"secondaryDisabledColor",dt(x.secondary.main,.55)),Z(x.Switch,"errorDisabledColor",dt(x.error.main,.55)),Z(x.Switch,"infoDisabledColor",dt(x.info.main,.55)),Z(x.Switch,"successDisabledColor",dt(x.success.main,.55)),Z(x.Switch,"warningDisabledColor",dt(x.warning.main,.55)),Z(x.TableCell,"border",dt(lu(x.divider,1),.68)),Z(x.Tooltip,"bg",lu(x.grey[700],.92))}co(x.background,"default"),co(x.background,"paper"),co(x.common,"background"),co(x.common,"onBackground"),co(x,"divider"),Object.keys(x).forEach(I=>{const O=x[I];O&&typeof O=="object"&&(O.main&&Z(x[I],"mainChannel",gl(hl(O.main))),O.light&&Z(x[I],"lightChannel",gl(hl(O.light))),O.dark&&Z(x[I],"darkChannel",gl(hl(O.dark))),O.contrastText&&Z(x[I],"contrastTextChannel",gl(hl(O.contrastText))),I==="text"&&(co(x[I],"primary"),co(x[I],"secondary")),I==="action"&&(O.active&&co(x[I],"active"),O.selected&&co(x[I],"selected")))})}),C=t.reduce((P,x)=>io(P,x),C);const _={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:dM(C)},{vars:R,generateThemeVars:k,generateStyleSheets:T}=EE(C,_);return C.vars=R,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([P,x])=>{C[P]=x}),C.generateThemeVars=k,C.generateStyleSheets=T,C.generateSpacing=function(){return F2(c.spacing,Hf(this))},C.getColorSchemeSelector=ME(s),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=a,C.unstable_sxConfig={...Rc,...c==null?void 0:c.unstable_sxConfig},C.unstable_sx=function(x){return fi({sx:x,theme:this})},C.toRuntimeSource=i_,C}function sb(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:y1({...n===!0?{}:n.palette,mode:t})})}function sp(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,s=i||"light",l=o==null?void 0:o[s],c={...o,...n?{[s]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return fm(e,...t);let u=n;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=fm({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},sb(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},sb(d,"light",c.light)),d}return!n&&!("light"in c)&&s==="light"&&(c.light=!0),hM({...a,colorSchemes:c,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const lp=sp();function zt(){const e=Zf(lp);return e[Dr]||e}function mM({props:e,name:t}){return G2({props:e,name:t,defaultTheme:lp,themeId:Dr})}function l_(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wn=e=>l_(e)&&e!=="classes",J=U2({themeId:Dr,defaultTheme:lp,rootShouldForwardProp:wn});function lb({theme:e,...t}){const n=Dr in e?e[Dr]:void 0;return g.jsx(Y2,{...t,themeId:n?Dr:void 0,theme:n||e})}const uu={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:vM,useColorScheme:WK,getInitColorSchemeScript:UK}=TE({themeId:Dr,theme:()=>sp({cssVariables:!0}),colorSchemeStorageKey:uu.colorSchemeStorageKey,modeStorageKey:uu.modeStorageKey,defaultColorScheme:{light:uu.defaultLightColorScheme,dark:uu.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:r_(e.palette,e.typography)};return t.unstable_sx=function(r){return fi({sx:r,theme:this})},t}}),yM=vM;function bM({theme:e,...t}){return typeof e=="function"?g.jsx(lb,{theme:e,...t}):"colorSchemes"in(Dr in e?e[Dr]:e)?g.jsx(yM,{theme:e,...t}):g.jsx(lb,{theme:e,...t})}function ae(e){if(typeof e!="string")throw new Error(Xi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function gm(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function cp(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 fg(e,t){var n,r,o;return b.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function ln(e){return e&&e.ownerDocument||document}function zr(e){return ln(e).defaultView||window}function jd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Hr=typeof window<"u"?b.useLayoutEffect:b.useEffect;let cb=0;function xM(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(cb+=1,n(`mui-${cb}`))},[t]),r}const SM={...id},ub=SM.useId;function ds(e){if(ub!==void 0){const t=ub();return e??t}return xM(e)}function Hi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=b.useRef(e!==void 0),[i,a]=b.useState(t),s=o?e:i,l=b.useCallback(c=>{o||a(c)},[]);return[s,l]}function bn(e){const t=b.useRef(e);return Hr(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function Rt(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{jd(n,t)})},e)}const db={};function c_(e,t){const n=b.useRef(db);return n.current===db&&(n.current=e(t)),n}const wM=[];function CM(e){b.useEffect(e,wM)}class up{constructor(){zs(this,"currentId",null);zs(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});zs(this,"disposeEffect",()=>this.clear)}static create(){return new up}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Ni(){const e=c_(up.create).current;return CM(e.disposeEffect),e}function Fd(e){try{return e.matches(":focus-visible")}catch{}return!1}function u_(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const _M=e=>{const t=b.useRef({});return b.useEffect(()=>{t.current=e}),t.current};function d_(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;n[o][l]=d_(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function Ne(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;l{r[o]=Oe(e,o,n)}),r}function RM(e){return typeof e=="string"}function Ha(e,t,n){return e===void 0||RM(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function f_(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 fb(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 p_(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const p=ve(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},y={...n,...o,...r};return p.length>0&&(y.className=p),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:void 0}}const a=f_({...o,...r}),s=fb(r),l=fb(o),c=t(a),u=ve(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...c,...n,...l,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function g_(e,t,n){return typeof e=="function"?e(t,n):e}function na(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:g_(n,r),{props:s,internalRef:l}=p_({...i,externalSlotProps:a}),c=Rt(l,a==null?void 0:a.ref,(d=e.additionalProps)==null?void 0:d.ref);return Ha(t,{...s,ref:c},r)}function ua(e){var t;return parseInt(b.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function TM(e){return g.jsx(V5,{...e,defaultTheme:lp,themeId:Dr})}function PM(e){return function(n){return g.jsx(TM,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function kM(){return d1}const $e=xE;function De(e){return bE(e)}function $M(e){return Oe("MuiSvgIcon",e)}Ee("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const EM=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ae(t)}`,`fontSize${ae(n)}`]};return Ne(o,$M,r)},MM=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ae(n.color)}`],t[`fontSize${ae(n.fontSize)}`]]}})($e(({theme:e})=>{var t,n,r,o,i,a,s,l,c,u,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,y])=>y&&y.main).map(([y])=>{var w,v;return{props:{color:y},style:{color:(v=(w=(e.vars??e).palette)==null?void 0:w[y])==null?void 0:v.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(h=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:h.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),ra=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...p}=r,h=b.isValidElement(o)&&o.type==="svg",y={...r,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:h},w={};u||(w.viewBox=f);const v=EM(y);return g.jsxs(MM,{as:s,className:ve(v.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...w,...p,...h&&o.props,ownerState:y,children:[h?o.props.children:o,d?g.jsx("title",{children:d}):null]})});ra&&(ra.muiName="SvgIcon");function un(e,t){function n(r,o){return g.jsx(ra,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=ra.muiName,b.memo(b.forwardRef(n))}function Ms(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function hm(e,t){return hm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},hm(e,t)}function h_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hm(e,t)}const pb={disabled:!1},Bd=rt.createContext(null);var IM=function(t){return t.scrollTop},ml="unmounted",$i="exited",Ei="entering",_a="entered",mm="exiting",Vr=function(e){h_(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=$i,i.appearStatus=Ei):l=_a:r.unmountOnExit||r.mountOnEnter?l=ml:l=$i,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===ml?{status:$i}: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 a=this.state.status;this.props.in?a!==Ei&&a!==_a&&(i=Ei):(a===Ei||a===_a)&&(i=mm)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Ei){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:au.findDOMNode(this);a&&IM(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$i&&this.setState({status:ml})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[au.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||pb.disabled){this.safeSetState({status:_a},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Ei},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:_a},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:au.findDOMNode(this);if(!i||pb.disabled){this.safeSetState({status:$i},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:mm},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:$i},function(){o.props.onExited(s)})})})},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,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:au.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ml)return null;var i=this.props,a=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 s=Ms(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return rt.createElement(Bd.Provider,{value:null},typeof a=="function"?a(o,s):rt.cloneElement(rt.Children.only(a),s))},t}(rt.Component);Vr.contextType=Bd;Vr.propTypes={};function xa(){}Vr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xa,onEntering:xa,onEntered:xa,onExit:xa,onExiting:xa,onExited:xa};Vr.UNMOUNTED=ml;Vr.EXITED=$i;Vr.ENTERING=Ei;Vr.ENTERED=_a;Vr.EXITING=mm;function OM(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b1(e,t){var n=function(i){return t&&b.isValidElement(i)?t(i):i},r=Object.create(null);return e&&b.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function LM(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function fs(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function FM(e){return Oe("MuiCollapse",e)}Ee("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const BM=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ne(r,FM,n)},zM=J("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})($e(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),HM=J("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),VM=J("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),ps=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:h,onExited:y,onExiting:w,orientation:v="vertical",style:S,timeout:m=o_.standard,TransitionComponent:C=Vr,..._}=r,R={...r,orientation:v,collapsedSize:s},k=BM(R),T=zt(),P=Ni(),x=b.useRef(null),$=b.useRef(),I=typeof s=="number"?`${s}px`:s,O=v==="horizontal",D=O?"width":"height",M=b.useRef(null),A=Rt(n,M),N=V=>ee=>{if(V){const re=M.current;ee===void 0?V(re):V(re,ee)}},E=()=>x.current?x.current[O?"clientWidth":"clientHeight"]:0,L=N((V,ee)=>{x.current&&O&&(x.current.style.position="absolute"),V.style[D]=I,d&&d(V,ee)}),B=N((V,ee)=>{const re=E();x.current&&O&&(x.current.style.position="");const{duration:U,easing:K}=fs({style:S,timeout:m,easing:c},{mode:"enter"});if(m==="auto"){const se=T.transitions.getAutoHeightDuration(re);V.style.transitionDuration=`${se}ms`,$.current=se}else V.style.transitionDuration=typeof U=="string"?U:`${U}ms`;V.style[D]=`${re}px`,V.style.transitionTimingFunction=K,p&&p(V,ee)}),H=N((V,ee)=>{V.style[D]="auto",f&&f(V,ee)}),z=N(V=>{V.style[D]=`${E()}px`,h&&h(V)}),j=N(y),F=N(V=>{const ee=E(),{duration:re,easing:U}=fs({style:S,timeout:m,easing:c},{mode:"exit"});if(m==="auto"){const K=T.transitions.getAutoHeightDuration(ee);V.style.transitionDuration=`${K}ms`,$.current=K}else V.style.transitionDuration=typeof re=="string"?re:`${re}ms`;V.style[D]=I,V.style.transitionTimingFunction=U,w&&w(V)}),W=V=>{m==="auto"&&P.start($.current||0,V),o&&o(M.current,V)};return g.jsx(C,{in:u,onEnter:L,onEntered:H,onEntering:B,onExit:z,onExited:j,onExiting:F,addEndListener:W,nodeRef:M,timeout:m==="auto"?null:m,..._,children:(V,ee)=>g.jsx(zM,{as:l,className:ve(k.root,a,{entered:k.entered,exited:!u&&I==="0px"&&k.hidden}[V]),style:{[O?"minWidth":"minHeight"]:I,...S},ref:A,...ee,ownerState:{...R,state:V},children:g.jsx(HM,{ownerState:{...R,state:V},className:k.wrapper,ref:x,children:g.jsx(VM,{ownerState:{...R,state:V},className:k.wrapperInner,children:i})})})})});ps&&(ps.muiSupportAuto=!0);function WM(e){return Oe("MuiPaper",e)}Ee("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 UM=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ne(i,WM,o)},GM=J("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}`]]}})($e(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Is=b.forwardRef(function(t,n){var p;const r=De({props:t,name:"MuiPaper"}),o=zt(),{className:i,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:a,elevation:s,square:l,variant:c},f=UM(d);return g.jsx(GM,{as:a,ownerState:d,className:ve(f.root,i),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":(p=o.vars.overlays)==null?void 0:p[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Be("#fff",pm(s))}, ${Be("#fff",pm(s))})`}},...u.style}})});function an(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,p=u[e]||r,h=g_(d[e],o),{props:{component:y,...w},internalRef:v}=p_({className:n,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:h}),S=Rt(v,h==null?void 0:h.ref,t.ref),m=a?a(w):{},C={...o,...m},_=e==="root"?y||c:y,R=Ha(p,{...e==="root"&&!c&&!u[e]&&s,...e!=="root"&&!u[e]&&s,...w,..._&&{as:_},ref:S},C);return Object.keys(m).forEach(k=>{delete R[k]}),[p,R]}class zd{constructor(){zs(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new zd}static use(){const t=c_(zd.create).current,[n,r]=b.useState(!1);return t.shouldMount=n,t.setShouldMount=r,b.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=KM(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function qM(){return zd.use()}function KM(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function ZM(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=b.useState(!1),f=ve(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},h=ve(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),b.useEffect(()=>{if(!s&&l!=null){const y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,s,c]),g.jsx("span",{className:f,style:p,children:g.jsx("span",{className:h})})}const cr=Ee("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),vm=550,QM=80,YM=s1` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,XM=s1` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,JM=s1` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,e8=J("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),t8=J(ZM,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${cr.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${YM}; + animation-duration: ${vm}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + &.${cr.ripplePulsate} { + animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; + } + + & .${cr.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${cr.childLeaving} { + opacity: 0; + animation-name: ${XM}; + animation-duration: ${vm}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + & .${cr.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${JM}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,n8=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...s}=r,[l,c]=b.useState([]),u=b.useRef(0),d=b.useRef(null);b.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=b.useRef(!1),p=Ni(),h=b.useRef(null),y=b.useRef(null),w=b.useCallback(C=>{const{pulsate:_,rippleX:R,rippleY:k,rippleSize:T,cb:P}=C;c(x=>[...x,g.jsx(t8,{classes:{ripple:ve(i.ripple,cr.ripple),rippleVisible:ve(i.rippleVisible,cr.rippleVisible),ripplePulsate:ve(i.ripplePulsate,cr.ripplePulsate),child:ve(i.child,cr.child),childLeaving:ve(i.childLeaving,cr.childLeaving),childPulsate:ve(i.childPulsate,cr.childPulsate)},timeout:vm,pulsate:_,rippleX:R,rippleY:k,rippleSize:T},u.current)]),u.current+=1,d.current=P},[i]),v=b.useCallback((C={},_={},R=()=>{})=>{const{pulsate:k=!1,center:T=o||_.pulsate,fakeElement:P=!1}=_;if((C==null?void 0:C.type)==="mousedown"&&f.current){f.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(f.current=!0);const x=P?null:y.current,$=x?x.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,O,D;if(T||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)I=Math.round($.width/2),O=Math.round($.height/2);else{const{clientX:M,clientY:A}=C.touches&&C.touches.length>0?C.touches[0]:C;I=Math.round(M-$.left),O=Math.round(A-$.top)}if(T)D=Math.sqrt((2*$.width**2+$.height**2)/3),D%2===0&&(D+=1);else{const M=Math.max(Math.abs((x?x.clientWidth:0)-I),I)*2+2,A=Math.max(Math.abs((x?x.clientHeight:0)-O),O)*2+2;D=Math.sqrt(M**2+A**2)}C!=null&&C.touches?h.current===null&&(h.current=()=>{w({pulsate:k,rippleX:I,rippleY:O,rippleSize:D,cb:R})},p.start(QM,()=>{h.current&&(h.current(),h.current=null)})):w({pulsate:k,rippleX:I,rippleY:O,rippleSize:D,cb:R})},[o,w,p]),S=b.useCallback(()=>{v({},{pulsate:!0})},[v]),m=b.useCallback((C,_)=>{if(p.clear(),(C==null?void 0:C.type)==="touchend"&&h.current){h.current(),h.current=null,p.start(0,()=>{m(C,_)});return}h.current=null,c(R=>R.length>0?R.slice(1):R),d.current=_},[p]);return b.useImperativeHandle(n,()=>({pulsate:S,start:v,stop:m}),[S,v,m]),g.jsx(e8,{className:ve(cr.root,i.root,a),ref:y,...s,children:g.jsx(x1,{component:null,exit:!0,children:l})})});function r8(e){return Oe("MuiButtonBase",e)}const o8=Ee("MuiButtonBase",["root","disabled","focusVisible"]),i8=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ne({root:["root",t&&"disabled",n&&"focusVisible"]},r8,o);return n&&r&&(a.root+=` ${r}`),a},a8=J("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"},[`&.${o8.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),To=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:h="a",onBlur:y,onClick:w,onContextMenu:v,onDragLeave:S,onFocus:m,onFocusVisible:C,onKeyDown:_,onKeyUp:R,onMouseDown:k,onMouseLeave:T,onMouseUp:P,onTouchEnd:x,onTouchMove:$,onTouchStart:I,tabIndex:O=0,TouchRippleProps:D,touchRippleRef:M,type:A,...N}=r,E=b.useRef(null),L=qM(),B=Rt(L.ref,M),[H,z]=b.useState(!1);c&&H&&z(!1),b.useImperativeHandle(o,()=>({focusVisible:()=>{z(!0),E.current.focus()}}),[]);const j=L.shouldMount&&!u&&!c;b.useEffect(()=>{H&&f&&!u&&L.pulsate()},[u,f,H,L]);function F(le,Se,ye=d){return bn(Ge=>(Se&&Se(Ge),ye||L[le](Ge),!0))}const W=F("start",k),V=F("stop",v),ee=F("stop",S),re=F("stop",P),U=F("stop",le=>{H&&le.preventDefault(),T&&T(le)}),K=F("start",I),se=F("stop",x),q=F("stop",$),ce=F("stop",le=>{Fd(le.target)||z(!1),y&&y(le)},!1),ue=bn(le=>{E.current||(E.current=le.currentTarget),Fd(le.target)&&(z(!0),C&&C(le)),m&&m(le)}),ie=()=>{const le=E.current;return l&&l!=="button"&&!(le.tagName==="A"&&le.href)},te=bn(le=>{f&&!le.repeat&&H&&le.key===" "&&L.stop(le,()=>{L.start(le)}),le.target===le.currentTarget&&ie()&&le.key===" "&&le.preventDefault(),_&&_(le),le.target===le.currentTarget&&ie()&&le.key==="Enter"&&!c&&(le.preventDefault(),w&&w(le))}),de=bn(le=>{f&&le.key===" "&&H&&!le.defaultPrevented&&L.stop(le,()=>{L.pulsate(le)}),R&&R(le),w&&le.target===le.currentTarget&&ie()&&le.key===" "&&!le.defaultPrevented&&w(le)});let Q=l;Q==="button"&&(N.href||N.to)&&(Q=h);const be={};Q==="button"?(be.type=A===void 0?"button":A,be.disabled=c):(!N.href&&!N.to&&(be.role="button"),c&&(be["aria-disabled"]=c));const Te=Rt(n,E),we={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:O,focusVisible:H},ge=i8(we);return g.jsxs(a8,{as:Q,className:ve(ge.root,s),ownerState:we,onBlur:ce,onClick:w,onContextMenu:V,onFocus:ue,onKeyDown:te,onKeyUp:de,onMouseDown:W,onMouseLeave:U,onMouseUp:re,onDragLeave:ee,onTouchEnd:se,onTouchMove:q,onTouchStart:K,ref:Te,tabIndex:c?-1:O,type:A,...be,...N,children:[a,j?g.jsx(n8,{ref:B,center:i,...D}):null]})});function s8(e){return typeof e.main=="string"}function l8(e,t=[]){if(!s8(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ft(e=[]){return([,t])=>t&&l8(t,e)}function c8(e){return Oe("MuiAlert",e)}const gb=Ee("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function u8(e){return Oe("MuiIconButton",e)}const d8=Ee("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),f8=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${ae(r)}`,o&&`edge${ae(o)}`,`size${ae(i)}`]};return Ne(a,u8,t)},p8=J(To,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ae(n.color)}`],n.edge&&t[`edge${ae(n.edge)}`],t[`size${ae(n.size)}`]]}})($e(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),$e(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ft()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ft()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${d8.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),hr=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",...d}=r,f={...r,edge:o,color:s,disabled:l,disableFocusRipple:c,size:u},p=f8(f);return g.jsx(p8,{className:ve(p.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,...d,ownerState:f,children:i})}),g8=un(g.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),h8=un(g.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),m8=un(g.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),v8=un(g.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),v_=un(g.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),y8=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${ae(n||r)}`,`${t}${ae(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ne(i,c8,o)},b8=J(Is,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ae(n.color||n.severity)}`]]}})($e(({theme:e})=>{const t=e.palette.mode==="light"?ea:ta,n=e.palette.mode==="light"?ta:ea;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Ft(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${gb.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Ft(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${gb.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Ft(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),x8=J("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),S8=J("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),hb=J("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),mb={success:g.jsx(g8,{fontSize:"inherit"}),warning:g.jsx(h8,{fontSize:"inherit"}),error:g.jsx(m8,{fontSize:"inherit"}),info:g.jsx(v8,{fontSize:"inherit"})},y_=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:f=mb,onClose:p,role:h="alert",severity:y="success",slotProps:w={},slots:v={},variant:S="standard",...m}=r,C={...r,color:l,severity:y,variant:S,colorSeverity:l||y},_=y8(C),R={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...v},slotProps:{...u,...w}},[k,T]=an("closeButton",{elementType:hr,externalForwardedProps:R,ownerState:C}),[P,x]=an("closeIcon",{elementType:v_,externalForwardedProps:R,ownerState:C});return g.jsxs(b8,{role:h,elevation:0,ownerState:C,className:ve(_.root,a),ref:n,...m,children:[d!==!1?g.jsx(x8,{ownerState:C,className:_.icon,children:d||f[y]||mb[y]}):null,g.jsx(S8,{ownerState:C,className:_.message,children:i}),o!=null?g.jsx(hb,{ownerState:C,className:_.action,children:o}):null,o==null&&p?g.jsx(hb,{ownerState:C,className:_.action,children:g.jsx(k,{size:"small","aria-label":s,title:s,color:"inherit",onClick:p,...T,children:g.jsx(P,{fontSize:"small",...x})})}):null]})});function w8(e){return Oe("MuiTypography",e)}Ee("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const C8={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},_8=kM(),R8=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${ae(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ne(s,w8,a)},T8=J("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${ae(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})($e(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Ft()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${ae(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),vb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},mt=b.forwardRef(function(t,n){const{color:r,...o}=De({props:t,name:"MuiTypography"}),i=!C8[r],a=_8({...o,...i&&{color:r}}),{align:s="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:h=vb,...y}=a,w={...a,align:s,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:p,variantMapping:h},v=c||(f?"p":h[p]||vb[p])||"span",S=R8(w);return g.jsx(T8,{as:v,ref:n,className:ve(S.root,l),...y,ownerState:w,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...y.style}})});function yb(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function P8(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let u=a?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=yb(u));const d=u?s.filter(f=>{let p=(i||c)(f);return n&&(p=p.toLowerCase()),t&&(p=yb(p)),o==="start"?p.startsWith(u):p.includes(u)}):s;return typeof r=="number"?d.slice(0,r):d}}const k8=P8(),bb=5,$8=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},E8=[];function M8(e){const{unstable_isActiveElementInListbox:t=$8,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?E8:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:p,disabledItemsFocusable:h=!1,disableListWrap:y=!1,filterOptions:w=k8,filterSelectedOptions:v=!1,freeSolo:S=!1,getOptionDisabled:m,getOptionKey:C,getOptionLabel:_=X=>X.label??X,groupBy:R,handleHomeEndKeys:k=!e.freeSolo,id:T,includeInputInList:P=!1,inputValue:x,isOptionEqualToValue:$=(X,Y)=>X===Y,multiple:I=!1,onChange:O,onClose:D,onHighlightChange:M,onInputChange:A,onOpen:N,open:E,openOnFocus:L=!1,options:B,readOnly:H=!1,selectOnFocus:z=!e.freeSolo,value:j}=e,F=ds(T);let W=_;W=X=>{const Y=_(X);return typeof Y!="string"?String(Y):Y};const V=b.useRef(!1),ee=b.useRef(!0),re=b.useRef(null),U=b.useRef(null),[K,se]=b.useState(null),[q,ce]=b.useState(-1),ue=o?0:-1,ie=b.useRef(ue),[te,de]=Hi({controlled:j,default:u,name:c}),[Q,be]=Hi({controlled:x,default:"",name:c,state:"inputValue"}),[Te,we]=b.useState(!1),ge=b.useCallback((X,Y,Ce)=>{if(!(I?te.length!(v&&(I?te:[te]).some(Y=>Y!==null&&$(X,Y)))),{inputValue:Pe&&ye?"":Q,getOptionLabel:W}):[],pe=_M({filteredOptions:ke,value:te,inputValue:Q});b.useEffect(()=>{const X=te!==pe.value;Te&&!X||S&&!X||ge(null,te,"reset")},[te,ge,Te,pe.value,S]);const ne=le&&ke.length>0&&!H,xe=bn(X=>{X===-1?re.current.focus():K.querySelector(`[data-tag-index="${X}"]`).focus()});b.useEffect(()=>{I&&q>te.length-1&&(ce(-1),xe(-1))},[te,I,q,xe]);function Le(X,Y){if(!U.current||X<0||X>=ke.length)return-1;let Ce=X;for(;;){const We=U.current.querySelector(`[data-option-index="${Ce}"]`),qe=h?!1:!We||We.disabled||We.getAttribute("aria-disabled")==="true";if(We&&We.hasAttribute("tabindex")&&!qe)return Ce;if(Y==="next"?Ce=(Ce+1)%ke.length:Ce=(Ce-1+ke.length)%ke.length,Ce===X)return-1}}const fe=bn(({event:X,index:Y,reason:Ce="auto"})=>{if(ie.current=Y,Y===-1?re.current.removeAttribute("aria-activedescendant"):re.current.setAttribute("aria-activedescendant",`${F}-option-${Y}`),M&&M(X,Y===-1?null:ke[Y],Ce),!U.current)return;const We=U.current.querySelector(`[role="option"].${n}-focused`);We&&(We.classList.remove(`${n}-focused`),We.classList.remove(`${n}-focusVisible`));let qe=U.current;if(U.current.getAttribute("role")!=="listbox"&&(qe=U.current.parentElement.querySelector('[role="listbox"]')),!qe)return;if(Y===-1){qe.scrollTop=0;return}const Pt=U.current.querySelector(`[data-option-index="${Y}"]`);if(Pt&&(Pt.classList.add(`${n}-focused`),Ce==="keyboard"&&Pt.classList.add(`${n}-focusVisible`),qe.scrollHeight>qe.clientHeight&&Ce!=="mouse"&&Ce!=="touch")){const at=Pt,_r=qe.clientHeight+qe.scrollTop,Fc=at.offsetTop+at.offsetHeight;Fc>_r?qe.scrollTop=Fc-qe.clientHeight:at.offsetTop-at.offsetHeight*(R?1.3:0){if(!Re)return;const Pt=Le((()=>{const at=ke.length-1;if(Y==="reset")return ue;if(Y==="start")return 0;if(Y==="end")return at;const _r=ie.current+Y;return _r<0?_r===-1&&P?-1:y&&ie.current!==-1||Math.abs(Y)>1?0:at:_r>at?_r===at+1&&P?-1:y||Math.abs(Y)>1?at:0:_r})(),Ce);if(fe({index:Pt,reason:We,event:X}),r&&Y!=="reset")if(Pt===-1)re.current.value=Q;else{const at=W(ke[Pt]);re.current.value=at,at.toLowerCase().indexOf(Q.toLowerCase())===0&&Q.length>0&&re.current.setSelectionRange(Q.length,at.length)}}),me=()=>{const X=(Y,Ce)=>{const We=Y?W(Y):"",qe=Ce?W(Ce):"";return We===qe};if(ie.current!==-1&&pe.filteredOptions&&pe.filteredOptions.length!==ke.length&&pe.inputValue===Q&&(I?te.length===pe.value.length&&pe.value.every((Y,Ce)=>W(te[Ce])===W(Y)):X(pe.value,te))){const Y=pe.filteredOptions[ie.current];if(Y)return ke.findIndex(Ce=>W(Ce)===W(Y))}return-1},je=b.useCallback(()=>{if(!Re)return;const X=me();if(X!==-1){ie.current=X;return}const Y=I?te[0]:te;if(ke.length===0||Y==null){oe({diff:"reset"});return}if(U.current){if(Y!=null){const Ce=ke[ie.current];if(I&&Ce&&te.findIndex(qe=>$(Ce,qe))!==-1)return;const We=ke.findIndex(qe=>$(qe,Y));We===-1?oe({diff:"reset"}):fe({index:We});return}if(ie.current>=ke.length-1){fe({index:ke.length-1});return}fe({index:ie.current})}},[ke.length,I?!1:te,v,oe,fe,Re,Q,I]),Ve=bn(X=>{jd(U,X),X&&je()});b.useEffect(()=>{je()},[je]);const Ye=X=>{le||(Se(!0),Ge(!0),N&&N(X))},Tt=(X,Y)=>{le&&(Se(!1),D&&D(X,Y))},Zt=(X,Y,Ce,We)=>{if(I){if(te.length===Y.length&&te.every((qe,Pt)=>qe===Y[Pt]))return}else if(te===Y)return;O&&O(X,Y,Ce,We),de(Y)},Mn=b.useRef(!1),ir=(X,Y,Ce="selectOption",We="options")=>{let qe=Ce,Pt=Y;if(I){Pt=Array.isArray(te)?te.slice():[];const at=Pt.findIndex(_r=>$(Y,_r));at===-1?Pt.push(Y):We!=="freeSolo"&&(Pt.splice(at,1),qe="removeOption")}ge(X,Pt,qe),Zt(X,Pt,qe,{option:Y}),!f&&(!X||!X.ctrlKey&&!X.metaKey)&&Tt(X,qe),(a===!0||a==="touch"&&Mn.current||a==="mouse"&&!Mn.current)&&re.current.blur()};function Vn(X,Y){if(X===-1)return-1;let Ce=X;for(;;){if(Y==="next"&&Ce===te.length||Y==="previous"&&Ce===-1)return-1;const We=K.querySelector(`[data-tag-index="${Ce}"]`);if(!We||!We.hasAttribute("tabindex")||We.disabled||We.getAttribute("aria-disabled")==="true")Ce+=Y==="next"?1:-1;else return Ce}}const Oo=(X,Y)=>{if(!I)return;Q===""&&Tt(X,"toggleInput");let Ce=q;q===-1?Q===""&&Y==="previous"&&(Ce=te.length-1):(Ce+=Y==="next"?1:-1,Ce<0&&(Ce=0),Ce===te.length&&(Ce=-1)),Ce=Vn(Ce,Y),ce(Ce),xe(Ce)},_i=X=>{V.current=!0,be(""),A&&A(X,"","clear"),Zt(X,I?[]:null,"clear")},Fe=X=>Y=>{if(X.onKeyDown&&X.onKeyDown(Y),!Y.defaultMuiPrevented&&(q!==-1&&!["ArrowLeft","ArrowRight"].includes(Y.key)&&(ce(-1),xe(-1)),Y.which!==229))switch(Y.key){case"Home":Re&&k&&(Y.preventDefault(),oe({diff:"start",direction:"next",reason:"keyboard",event:Y}));break;case"End":Re&&k&&(Y.preventDefault(),oe({diff:"end",direction:"previous",reason:"keyboard",event:Y}));break;case"PageUp":Y.preventDefault(),oe({diff:-bb,direction:"previous",reason:"keyboard",event:Y}),Ye(Y);break;case"PageDown":Y.preventDefault(),oe({diff:bb,direction:"next",reason:"keyboard",event:Y}),Ye(Y);break;case"ArrowDown":Y.preventDefault(),oe({diff:1,direction:"next",reason:"keyboard",event:Y}),Ye(Y);break;case"ArrowUp":Y.preventDefault(),oe({diff:-1,direction:"previous",reason:"keyboard",event:Y}),Ye(Y);break;case"ArrowLeft":Oo(Y,"previous");break;case"ArrowRight":Oo(Y,"next");break;case"Enter":if(ie.current!==-1&&Re){const Ce=ke[ie.current],We=m?m(Ce):!1;if(Y.preventDefault(),We)return;ir(Y,Ce,"selectOption"),r&&re.current.setSelectionRange(re.current.value.length,re.current.value.length)}else S&&Q!==""&&Pe===!1&&(I&&Y.preventDefault(),ir(Y,Q,"createOption","freeSolo"));break;case"Escape":Re?(Y.preventDefault(),Y.stopPropagation(),Tt(Y,"escape")):l&&(Q!==""||I&&te.length>0)&&(Y.preventDefault(),Y.stopPropagation(),_i(Y));break;case"Backspace":if(I&&!H&&Q===""&&te.length>0){const Ce=q===-1?te.length-1:q,We=te.slice();We.splice(Ce,1),Zt(Y,We,"removeOption",{option:te[Ce]})}break;case"Delete":if(I&&!H&&Q===""&&te.length>0&&q!==-1){const Ce=q,We=te.slice();We.splice(Ce,1),Zt(Y,We,"removeOption",{option:te[Ce]})}break}},_n=X=>{we(!0),L&&!V.current&&Ye(X)},Dc=X=>{if(t(U)){re.current.focus();return}we(!1),ee.current=!0,V.current=!1,i&&ie.current!==-1&&Re?ir(X,ke[ie.current],"blur"):i&&S&&Q!==""?ir(X,Q,"blur","freeSolo"):s&&ge(X,te,"blur"),Tt(X,"blur")},pa=X=>{const Y=X.target.value;Q!==Y&&(be(Y),Ge(!1),A&&A(X,Y,"input")),Y===""?!d&&!I&&Zt(X,null,"clear"):Ye(X)},Ds=X=>{const Y=Number(X.currentTarget.getAttribute("data-option-index"));ie.current!==Y&&fe({event:X,index:Y,reason:"mouse"})},js=X=>{fe({event:X,index:Number(X.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Mn.current=!0},$p=X=>{const Y=Number(X.currentTarget.getAttribute("data-option-index"));ir(X,ke[Y],"selectOption"),Mn.current=!1},Ep=X=>Y=>{const Ce=te.slice();Ce.splice(X,1),Zt(Y,Ce,"removeOption",{option:te[X]})},jc=X=>{le?Tt(X,"toggleInput"):Ye(X)},uv=X=>{X.currentTarget.contains(X.target)&&X.target.getAttribute("id")!==F&&X.preventDefault()},Fs=X=>{X.currentTarget.contains(X.target)&&(re.current.focus(),z&&ee.current&&re.current.selectionEnd-re.current.selectionStart===0&&re.current.select(),ee.current=!1)},dn=X=>{!p&&(Q===""||!le)&&jc(X)};let Nt=S&&Q.length>0;Nt=Nt||(I?te.length>0:te!==null);let lo=ke;return R&&(lo=ke.reduce((X,Y,Ce)=>{const We=R(Y);return X.length>0&&X[X.length-1].group===We?X[X.length-1].options.push(Y):X.push({key:Ce,index:Ce,group:We,options:[Y]}),X},[])),p&&Te&&Dc(),{getRootProps:(X={})=>({"aria-owns":ne?`${F}-listbox`:null,...X,onKeyDown:Fe(X),onMouseDown:uv,onClick:Fs}),getInputLabelProps:()=>({id:`${F}-label`,htmlFor:F}),getInputProps:()=>({id:F,value:Q,onBlur:Dc,onFocus:_n,onChange:pa,onMouseDown:dn,"aria-activedescendant":Re?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ne?`${F}-listbox`:void 0,"aria-expanded":ne,autoComplete:"off",ref:re,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:p}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:_i}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:jc}),getTagProps:({index:X})=>({key:X,"data-tag-index":X,tabIndex:-1,...!H&&{onDelete:Ep(X)}}),getListboxProps:()=>({role:"listbox",id:`${F}-listbox`,"aria-labelledby":`${F}-label`,ref:Ve,onMouseDown:X=>{X.preventDefault()}}),getOptionProps:({index:X,option:Y})=>{const Ce=(I?te:[te]).some(qe=>qe!=null&&$(Y,qe)),We=m?m(Y):!1;return{key:(C==null?void 0:C(Y))??W(Y),tabIndex:-1,role:"option",id:`${F}-option-${X}`,onMouseMove:Ds,onClick:$p,onTouchStart:js,"data-option-index":X,"aria-disabled":We,"aria-selected":Ce}},id:F,inputValue:Q,value:te,dirty:Nt,expanded:Re&&K,popupOpen:Re,focused:Te||q!==-1,anchorEl:K,setAnchorEl:se,focusedTag:q,groupedOptions:lo}}var jn="top",xr="bottom",Sr="right",Fn="left",S1="auto",Tc=[jn,xr,Sr,Fn],gs="start",lc="end",I8="clippingParents",b_="viewport",Xs="popper",O8="reference",xb=Tc.reduce(function(e,t){return e.concat([t+"-"+gs,t+"-"+lc])},[]),x_=[].concat(Tc,[S1]).reduce(function(e,t){return e.concat([t,t+"-"+gs,t+"-"+lc])},[]),L8="beforeRead",A8="read",N8="afterRead",D8="beforeMain",j8="main",F8="afterMain",B8="beforeWrite",z8="write",H8="afterWrite",V8=[L8,A8,N8,D8,j8,F8,B8,z8,H8];function so(e){return e?(e.nodeName||"").toLowerCase():null}function er(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oa(e){var t=er(e).Element;return e instanceof t||e instanceof Element}function vr(e){var t=er(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function w1(e){if(typeof ShadowRoot>"u")return!1;var t=er(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function W8(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];!vr(i)||!so(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function U8(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]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!vr(o)||!so(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const G8={name:"applyStyles",enabled:!0,phase:"write",fn:W8,effect:U8,requires:["computeStyles"]};function ao(e){return e.split("-")[0]}var Vi=Math.max,Hd=Math.min,hs=Math.round;function ym(){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 S_(){return!/^((?!chrome|android).)*safari/i.test(ym())}function ms(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&vr(e)&&(o=e.offsetWidth>0&&hs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&hs(r.height)/e.offsetHeight||1);var a=oa(e)?er(e):window,s=a.visualViewport,l=!S_()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function C1(e){var t=ms(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 w_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&w1(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Po(e){return er(e).getComputedStyle(e)}function q8(e){return["table","td","th"].indexOf(so(e))>=0}function xi(e){return((oa(e)?e.ownerDocument:e.document)||window.document).documentElement}function dp(e){return so(e)==="html"?e:e.assignedSlot||e.parentNode||(w1(e)?e.host:null)||xi(e)}function Sb(e){return!vr(e)||Po(e).position==="fixed"?null:e.offsetParent}function K8(e){var t=/firefox/i.test(ym()),n=/Trident/i.test(ym());if(n&&vr(e)){var r=Po(e);if(r.position==="fixed")return null}var o=dp(e);for(w1(o)&&(o=o.host);vr(o)&&["html","body"].indexOf(so(o))<0;){var i=Po(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 Pc(e){for(var t=er(e),n=Sb(e);n&&q8(n)&&Po(n).position==="static";)n=Sb(n);return n&&(so(n)==="html"||so(n)==="body"&&Po(n).position==="static")?t:n||K8(e)||t}function _1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $l(e,t,n){return Vi(e,Hd(t,n))}function Z8(e,t,n){var r=$l(e,t,n);return r>n?n:r}function C_(){return{top:0,right:0,bottom:0,left:0}}function __(e){return Object.assign({},C_(),e)}function R_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Q8=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,__(typeof t!="number"?t:R_(t,Tc))};function Y8(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ao(n.placement),l=_1(s),c=[Fn,Sr].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var d=Q8(o.padding,n),f=C1(i),p=l==="y"?jn:Fn,h=l==="y"?xr:Sr,y=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],w=a[l]-n.rects.reference[l],v=Pc(i),S=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,m=y/2-w/2,C=d[p],_=S-f[u]-d[h],R=S/2-f[u]/2+m,k=$l(C,R,_),T=l;n.modifiersData[r]=(t={},t[T]=k,t.centerOffset=k-R,t)}}function X8(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)||w_(t.elements.popper,o)&&(t.elements.arrow=o))}const J8={name:"arrow",enabled:!0,phase:"main",fn:Y8,effect:X8,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vs(e){return e.split("-")[1]}var e6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function t6(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:hs(n*o)/o||0,y:hs(r*o)/o||0}}function wb(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=f===void 0?0:f,h=a.y,y=h===void 0?0:h,w=typeof u=="function"?u({x:p,y}):{x:p,y};p=w.x,y=w.y;var v=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),m=Fn,C=jn,_=window;if(c){var R=Pc(n),k="clientHeight",T="clientWidth";if(R===er(n)&&(R=xi(n),Po(R).position!=="static"&&s==="absolute"&&(k="scrollHeight",T="scrollWidth")),R=R,o===jn||(o===Fn||o===Sr)&&i===lc){C=xr;var P=d&&R===_&&_.visualViewport?_.visualViewport.height:R[k];y-=P-r.height,y*=l?1:-1}if(o===Fn||(o===jn||o===xr)&&i===lc){m=Sr;var x=d&&R===_&&_.visualViewport?_.visualViewport.width:R[T];p-=x-r.width,p*=l?1:-1}}var $=Object.assign({position:s},c&&e6),I=u===!0?t6({x:p,y},er(n)):{x:p,y};if(p=I.x,y=I.y,l){var O;return Object.assign({},$,(O={},O[C]=S?"0":"",O[m]=v?"0":"",O.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",O))}return Object.assign({},$,(t={},t[C]=S?y+"px":"",t[m]=v?p+"px":"",t.transform="",t))}function n6(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:ao(t.placement),variation:vs(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,wb(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,wb(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const r6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:n6,data:{}};var du={passive:!0};function o6(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=er(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,du)}),s&&l.addEventListener("resize",n.update,du),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,du)}),s&&l.removeEventListener("resize",n.update,du)}}const i6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:o6,data:{}};var a6={left:"right",right:"left",bottom:"top",top:"bottom"};function qu(e){return e.replace(/left|right|bottom|top/g,function(t){return a6[t]})}var s6={start:"end",end:"start"};function Cb(e){return e.replace(/start|end/g,function(t){return s6[t]})}function R1(e){var t=er(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function T1(e){return ms(xi(e)).left+R1(e).scrollLeft}function l6(e,t){var n=er(e),r=xi(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=S_();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+T1(e),y:l}}function c6(e){var t,n=xi(e),r=R1(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Vi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Vi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+T1(e),l=-r.scrollTop;return Po(o||n).direction==="rtl"&&(s+=Vi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function P1(e){var t=Po(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function T_(e){return["html","body","#document"].indexOf(so(e))>=0?e.ownerDocument.body:vr(e)&&P1(e)?e:T_(dp(e))}function El(e,t){var n;t===void 0&&(t=[]);var r=T_(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=er(r),a=o?[i].concat(i.visualViewport||[],P1(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(El(dp(a)))}function bm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function u6(e,t){var n=ms(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 _b(e,t,n){return t===b_?bm(l6(e,n)):oa(t)?u6(t,n):bm(c6(xi(e)))}function d6(e){var t=El(dp(e)),n=["absolute","fixed"].indexOf(Po(e).position)>=0,r=n&&vr(e)?Pc(e):e;return oa(r)?t.filter(function(o){return oa(o)&&w_(o,r)&&so(o)!=="body"}):[]}function f6(e,t,n,r){var o=t==="clippingParents"?d6(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=_b(e,c,r);return l.top=Vi(u.top,l.top),l.right=Hd(u.right,l.right),l.bottom=Hd(u.bottom,l.bottom),l.left=Vi(u.left,l.left),l},_b(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function P_(e){var t=e.reference,n=e.element,r=e.placement,o=r?ao(r):null,i=r?vs(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case jn:l={x:a,y:t.y-n.height};break;case xr:l={x:a,y:t.y+t.height};break;case Sr:l={x:t.x+t.width,y:s};break;case Fn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?_1(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case gs:l[c]=l[c]-(t[u]/2-n[u]/2);break;case lc:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function cc(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?I8:s,c=n.rootBoundary,u=c===void 0?b_:c,d=n.elementContext,f=d===void 0?Xs:d,p=n.altBoundary,h=p===void 0?!1:p,y=n.padding,w=y===void 0?0:y,v=__(typeof w!="number"?w:R_(w,Tc)),S=f===Xs?O8:Xs,m=e.rects.popper,C=e.elements[h?S:f],_=f6(oa(C)?C:C.contextElement||xi(e.elements.popper),l,u,a),R=ms(e.elements.reference),k=P_({reference:R,element:m,strategy:"absolute",placement:o}),T=bm(Object.assign({},m,k)),P=f===Xs?T:R,x={top:_.top-P.top+v.top,bottom:P.bottom-_.bottom+v.bottom,left:_.left-P.left+v.left,right:P.right-_.right+v.right},$=e.modifiersData.offset;if(f===Xs&&$){var I=$[o];Object.keys(x).forEach(function(O){var D=[Sr,xr].indexOf(O)>=0?1:-1,M=[jn,xr].indexOf(O)>=0?"y":"x";x[O]+=I[M]*D})}return x}function p6(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?x_:l,u=vs(r),d=u?s?xb:xb.filter(function(h){return vs(h)===u}):Tc,f=d.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,y){return h[y]=cc(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[ao(y)],h},{});return Object.keys(p).sort(function(h,y){return p[h]-p[y]})}function g6(e){if(ao(e)===S1)return[];var t=qu(e);return[Cb(e),t,Cb(t)]}function h6(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,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,y=n.allowedAutoPlacements,w=t.options.placement,v=ao(w),S=v===w,m=l||(S||!h?[qu(w)]:g6(w)),C=[w].concat(m).reduce(function(F,W){return F.concat(ao(W)===S1?p6(t,{placement:W,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:y}):W)},[]),_=t.rects.reference,R=t.rects.popper,k=new Map,T=!0,P=C[0],x=0;x=0,M=D?"width":"height",A=cc(t,{placement:$,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=D?O?Sr:Fn:O?xr:jn;_[M]>R[M]&&(N=qu(N));var E=qu(N),L=[];if(i&&L.push(A[I]<=0),s&&L.push(A[N]<=0,A[E]<=0),L.every(function(F){return F})){P=$,T=!1;break}k.set($,L)}if(T)for(var B=h?3:1,H=function(W){var V=C.find(function(ee){var re=k.get(ee);if(re)return re.slice(0,W).every(function(U){return U})});if(V)return P=V,"break"},z=B;z>0;z--){var j=H(z);if(j==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}const m6={name:"flip",enabled:!0,phase:"main",fn:h6,requiresIfExists:["offset"],data:{_skip:!1}};function Rb(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 Tb(e){return[jn,Sr,xr,Fn].some(function(t){return e[t]>=0})}function v6(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=cc(t,{elementContext:"reference"}),s=cc(t,{altBoundary:!0}),l=Rb(a,r),c=Rb(s,o,i),u=Tb(l),d=Tb(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const y6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:v6};function b6(e,t,n){var r=ao(e),o=[Fn,jn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Fn,Sr].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function x6(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=x_.reduce(function(u,d){return u[d]=b6(d,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const S6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:x6};function w6(e){var t=e.state,n=e.name;t.modifiersData[n]=P_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const C6={name:"popperOffsets",enabled:!0,phase:"read",fn:w6,data:{}};function _6(e){return e==="x"?"y":"x"}function R6(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,y=h===void 0?0:h,w=cc(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=ao(t.placement),S=vs(t.placement),m=!S,C=_1(v),_=_6(C),R=t.modifiersData.popperOffsets,k=t.rects.reference,T=t.rects.popper,P=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,x=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(R){if(i){var O,D=C==="y"?jn:Fn,M=C==="y"?xr:Sr,A=C==="y"?"height":"width",N=R[C],E=N+w[D],L=N-w[M],B=p?-T[A]/2:0,H=S===gs?k[A]:T[A],z=S===gs?-T[A]:-k[A],j=t.elements.arrow,F=p&&j?C1(j):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:C_(),V=W[D],ee=W[M],re=$l(0,k[A],F[A]),U=m?k[A]/2-B-re-V-x.mainAxis:H-re-V-x.mainAxis,K=m?-k[A]/2+B+re+ee+x.mainAxis:z+re+ee+x.mainAxis,se=t.elements.arrow&&Pc(t.elements.arrow),q=se?C==="y"?se.clientTop||0:se.clientLeft||0:0,ce=(O=$==null?void 0:$[C])!=null?O:0,ue=N+U-ce-q,ie=N+K-ce,te=$l(p?Hd(E,ue):E,N,p?Vi(L,ie):L);R[C]=te,I[C]=te-N}if(s){var de,Q=C==="x"?jn:Fn,be=C==="x"?xr:Sr,Te=R[_],we=_==="y"?"height":"width",ge=Te+w[Q],le=Te-w[be],Se=[jn,Fn].indexOf(v)!==-1,ye=(de=$==null?void 0:$[_])!=null?de:0,Ge=Se?ge:Te-k[we]-T[we]-ye+x.altAxis,Pe=Se?Te+k[we]+T[we]-ye-x.altAxis:le,Re=p&&Se?Z8(Ge,Te,Pe):$l(p?Ge:ge,Te,p?Pe:le);R[_]=Re,I[_]=Re-Te}t.modifiersData[r]=I}}const T6={name:"preventOverflow",enabled:!0,phase:"main",fn:R6,requiresIfExists:["offset"]};function P6(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function k6(e){return e===er(e)||!vr(e)?R1(e):P6(e)}function $6(e){var t=e.getBoundingClientRect(),n=hs(t.width)/e.offsetWidth||1,r=hs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function E6(e,t,n){n===void 0&&(n=!1);var r=vr(t),o=vr(t)&&$6(t),i=xi(t),a=ms(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((so(t)!=="body"||P1(i))&&(s=k6(t)),vr(t)?(l=ms(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=T1(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function M6(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 a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function I6(e){var t=M6(e);return V8.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function O6(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function L6(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 Pb={placement:"bottom",modifiers:[],strategy:"absolute"};function kb(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(j6(o)||document.body)},[o,i]),Hr(()=>{if(a&&!i)return jd(n,a),()=>{jd(n,null)}},[n,a,i]),i){if(b.isValidElement(r)){const c={ref:l};return b.cloneElement(r,c)}return g.jsx(b.Fragment,{children:r})}return g.jsx(b.Fragment,{children:a&&Y0.createPortal(r,a)})});function F6(e){return Oe("MuiPopper",e)}Ee("MuiPopper",["root"]);function B6(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 xm(e){return typeof e=="function"?e():e}function z6(e){return e.nodeType!==void 0}const H6=e=>{const{classes:t}=e;return Ne({root:["root"]},F6,t)},V6={},W6=b.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:p={},TransitionProps:h,ownerState:y,...w}=t,v=b.useRef(null),S=Rt(v,n),m=b.useRef(null),C=Rt(m,d),_=b.useRef(C);Hr(()=>{_.current=C},[C]),b.useImperativeHandle(d,()=>m.current,[]);const R=B6(c,i),[k,T]=b.useState(R),[P,x]=b.useState(xm(r));b.useEffect(()=>{m.current&&m.current.forceUpdate()}),b.useEffect(()=>{r&&x(xm(r))},[r]),Hr(()=>{if(!P||!l)return;const M=E=>{T(E.placement)};let A=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:E})=>{M(E)}}];s!=null&&(A=A.concat(s)),u&&u.modifiers!=null&&(A=A.concat(u.modifiers));const N=D6(P,v.current,{placement:R,...u,modifiers:A});return _.current(N),()=>{N.destroy(),_.current(null)}},[P,a,s,l,u,R]);const $={placement:k};h!==null&&($.TransitionProps=h);const I=H6(t),O=p.root??"div",D=na({elementType:O,externalSlotProps:f.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:I.root});return g.jsx(O,{...D,children:typeof o=="function"?o($):o})}),U6=b.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=V6,popperRef:p,style:h,transition:y=!1,slotProps:w={},slots:v={},...S}=t,[m,C]=b.useState(!0),_=()=>{C(!1)},R=()=>{C(!0)};if(!l&&!u&&(!y||m))return null;let k;if(i)k=i;else if(r){const x=xm(r);k=x&&z6(x)?ln(x).body:ln(null).body}const T=!u&&l&&(!y||m)?"none":void 0,P=y?{in:u,onEnter:_,onExited:R}:void 0;return g.jsx(k_,{disablePortal:s,container:k,children:g.jsx(W6,{anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:y?!m:u,placement:d,popperOptions:f,popperRef:p,slotProps:w,slots:v,...S,style:{position:"fixed",top:0,left:0,display:T,...h},TransitionProps:P,children:o})})}),G6=J(U6,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kc=b.forwardRef(function(t,n){const r=Es(),o=De({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:y,popperRef:w,transition:v,slots:S,slotProps:m,...C}=o,_=(S==null?void 0:S.root)??(s==null?void 0:s.Root),R={anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:y,popperRef:w,transition:v,...C};return g.jsx(G6,{as:a,direction:r?"rtl":"ltr",slots:{root:_},slotProps:m??l,...R,ref:n})});function q6(e){return Oe("MuiListSubheader",e)}Ee("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const K6=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${ae(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Ne(a,q6,t)},Z6=J("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ae(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})($e(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Sm=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1,...u}=r,d={...r,color:i,component:a,disableGutters:s,disableSticky:l,inset:c},f=K6(d);return g.jsx(Z6,{as:a,className:ve(f.root,o),ref:n,ownerState:d,...u})});Sm&&(Sm.muiSkipListHighlight=!0);const Q6=un(g.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Y6(e){return Oe("MuiChip",e)}const Ke=Ee("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),X6=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${ae(r)}`,`color${ae(o)}`,s&&"clickable",s&&`clickableColor${ae(o)}`,a&&"deletable",a&&`deletableColor${ae(o)}`,`${l}${ae(o)}`],label:["label",`label${ae(r)}`],avatar:["avatar",`avatar${ae(r)}`,`avatarColor${ae(o)}`],icon:["icon",`icon${ae(r)}`,`iconColor${ae(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ae(r)}`,`deleteIconColor${ae(o)}`,`deleteIcon${ae(l)}Color${ae(o)}`]};return Ne(c,Y6,t)},J6=J("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${Ke.avatar}`]:t.avatar},{[`& .${Ke.avatar}`]:t[`avatar${ae(s)}`]},{[`& .${Ke.avatar}`]:t[`avatarColor${ae(r)}`]},{[`& .${Ke.icon}`]:t.icon},{[`& .${Ke.icon}`]:t[`icon${ae(s)}`]},{[`& .${Ke.icon}`]:t[`iconColor${ae(o)}`]},{[`& .${Ke.deleteIcon}`]:t.deleteIcon},{[`& .${Ke.deleteIcon}`]:t[`deleteIcon${ae(s)}`]},{[`& .${Ke.deleteIcon}`]:t[`deleteIconColor${ae(r)}`]},{[`& .${Ke.deleteIcon}`]:t[`deleteIcon${ae(l)}Color${ae(r)}`]},t.root,t[`size${ae(s)}`],t[`color${ae(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ae(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${ae(r)}`],t[l],t[`${l}${ae(r)}`]]}})($e(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ke.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ke.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ke.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ke.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ke.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ke.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ke.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Be(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Be(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ke.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ke.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ft(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Ke.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Be(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Ke.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Ke.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Ft(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Ke.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Ft(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ke.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ke.avatar}`]:{marginLeft:4},[`& .${Ke.avatarSmall}`]:{marginLeft:2},[`& .${Ke.icon}`]:{marginLeft:4},[`& .${Ke.iconSmall}`]:{marginLeft:2},[`& .${Ke.deleteIcon}`]:{marginRight:5},[`& .${Ke.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ft()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Be(e.palette[n].main,.7)}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Ke.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Be(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Ke.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Be(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),eI=J("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ae(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function $b(e){return e.key==="Backspace"||e.key==="Delete"}const tI=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:p,onDelete:h,onKeyDown:y,onKeyUp:w,size:v="medium",variant:S="filled",tabIndex:m,skipFocusWhenDisabled:C=!1,..._}=r,R=b.useRef(null),k=Rt(R,n),T=L=>{L.stopPropagation(),h&&h(L)},P=L=>{L.currentTarget===L.target&&$b(L)&&L.preventDefault(),y&&y(L)},x=L=>{L.currentTarget===L.target&&h&&$b(L)&&h(L),w&&w(L)},$=a!==!1&&p?!0:a,I=$||h?To:l||"div",O={...r,component:I,disabled:u,size:v,color:s,iconColor:b.isValidElement(d)&&d.props.color||s,onDelete:!!h,clickable:$,variant:S},D=X6(O),M=I===To?{component:l||"div",focusVisibleClassName:D.focusVisible,...h&&{disableRipple:!0}}:{};let A=null;h&&(A=c&&b.isValidElement(c)?b.cloneElement(c,{className:ve(c.props.className,D.deleteIcon),onClick:T}):g.jsx(Q6,{className:ve(D.deleteIcon),onClick:T}));let N=null;o&&b.isValidElement(o)&&(N=b.cloneElement(o,{className:ve(D.avatar,o.props.className)}));let E=null;return d&&b.isValidElement(d)&&(E=b.cloneElement(d,{className:ve(D.icon,d.props.className)})),g.jsxs(J6,{as:I,className:ve(D.root,i),disabled:$&&u?!0:void 0,onClick:p,onKeyDown:P,onKeyUp:x,ref:k,tabIndex:C&&u?-1:m,ownerState:O,...M,..._,children:[N||E,g.jsx(eI,{className:ve(D.label),ownerState:O,children:f}),A]})});function fu(e){return parseInt(e,10)||0}const nI={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function rI(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const oI=b.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s,...l}=t,{current:c}=b.useRef(s!=null),u=b.useRef(null),d=Rt(n,u),f=b.useRef(null),p=b.useRef(null),h=b.useCallback(()=>{const v=u.current,m=zr(v).getComputedStyle(v);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const C=p.current;C.style.width=m.width,C.value=v.value||t.placeholder||"x",C.value.slice(-1)===` +`&&(C.value+=" ");const _=m.boxSizing,R=fu(m.paddingBottom)+fu(m.paddingTop),k=fu(m.borderBottomWidth)+fu(m.borderTopWidth),T=C.scrollHeight;C.value="x";const P=C.scrollHeight;let x=T;i&&(x=Math.max(Number(i)*P,x)),o&&(x=Math.min(Number(o)*P,x)),x=Math.max(x,P);const $=x+(_==="border-box"?R+k:0),I=Math.abs(x-T)<=1;return{outerHeightStyle:$,overflowing:I}},[o,i,t.placeholder]),y=b.useCallback(()=>{const v=h();if(rI(v))return;const S=v.outerHeightStyle,m=u.current;f.current!==S&&(f.current=S,m.style.height=`${S}px`),m.style.overflow=v.overflowing?"hidden":""},[h]);Hr(()=>{const v=()=>{y()};let S;const m=cp(v),C=u.current,_=zr(C);_.addEventListener("resize",m);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(v),R.observe(C)),()=>{m.clear(),cancelAnimationFrame(S),_.removeEventListener("resize",m),R&&R.disconnect()}},[h,y]),Hr(()=>{y()});const w=v=>{c||y(),r&&r(v)};return g.jsxs(b.Fragment,{children:[g.jsx("textarea",{value:s,onChange:w,ref:d,rows:i,style:a,...l}),g.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:{...nI.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function Vd(e){return typeof e=="string"}function da({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 k1=b.createContext(void 0);function Mo(){return b.useContext(k1)}function Eb(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Wd(e,t=!1){return e&&(Eb(e.value)&&e.value!==""||t&&Eb(e.defaultValue)&&e.defaultValue!=="")}function iI(e){return e.startAdornment}function aI(e){return Oe("MuiInputBase",e)}const Gn=Ee("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Mb;const fp=(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${ae(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},pp=(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]},sI=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:p,type:h}=e,y={root:["root",`color${ae(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&f!=="medium"&&`size${ae(f)}`,u&&"multiline",p&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",h==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return Ne(y,aI,t)},gp=J("div",{name:"MuiInputBase",slot:"Root",overridesResolver:fp})($e(({theme:e})=>({...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",[`&.${Gn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),hp=J("input",{name:"MuiInputBase",slot:"Input",overridesResolver:pp})($e(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Gn.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Gn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Ib=PM({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),mp=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:h,error:y,fullWidth:w=!1,id:v,inputComponent:S="input",inputProps:m={},inputRef:C,margin:_,maxRows:R,minRows:k,multiline:T=!1,name:P,onBlur:x,onChange:$,onClick:I,onFocus:O,onKeyDown:D,onKeyUp:M,placeholder:A,readOnly:N,renderSuffix:E,rows:L,size:B,slotProps:H={},slots:z={},startAdornment:j,type:F="text",value:W,...V}=r,ee=m.value!=null?m.value:W,{current:re}=b.useRef(ee!=null),U=b.useRef(),K=b.useCallback(ne=>{},[]),se=Rt(U,C,m.ref,K),[q,ce]=b.useState(!1),ue=Mo(),ie=da({props:r,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ie.focused=ue?ue.focused:q,b.useEffect(()=>{!ue&&f&&q&&(ce(!1),x&&x())},[ue,f,q,x]);const te=ue&&ue.onFilled,de=ue&&ue.onEmpty,Q=b.useCallback(ne=>{Wd(ne)?te&&te():de&&de()},[te,de]);Hr(()=>{re&&Q({value:ee})},[ee,Q,re]);const be=ne=>{O&&O(ne),m.onFocus&&m.onFocus(ne),ue&&ue.onFocus?ue.onFocus(ne):ce(!0)},Te=ne=>{x&&x(ne),m.onBlur&&m.onBlur(ne),ue&&ue.onBlur?ue.onBlur(ne):ce(!1)},we=(ne,...xe)=>{if(!re){const Le=ne.target||U.current;if(Le==null)throw new Error(Xi(1));Q({value:Le.value})}m.onChange&&m.onChange(ne,...xe),$&&$(ne,...xe)};b.useEffect(()=>{Q(U.current)},[]);const ge=ne=>{U.current&&ne.currentTarget===ne.target&&U.current.focus(),I&&I(ne)};let le=S,Se=m;T&&le==="input"&&(L?Se={type:void 0,minRows:L,maxRows:L,...Se}:Se={type:void 0,maxRows:R,minRows:k,...Se},le=oI);const ye=ne=>{Q(ne.animationName==="mui-auto-fill-cancel"?U.current:{value:"x"})};b.useEffect(()=>{ue&&ue.setAdornedStart(!!j)},[ue,j]);const Ge={...r,color:ie.color||"primary",disabled:ie.disabled,endAdornment:h,error:ie.error,focused:ie.focused,formControl:ue,fullWidth:w,hiddenLabel:ie.hiddenLabel,multiline:T,size:ie.size,startAdornment:j,type:F},Pe=sI(Ge),Re=z.root||c.Root||gp,ke=H.root||u.root||{},pe=z.input||c.Input||hp;return Se={...Se,...H.input??u.input},g.jsxs(b.Fragment,{children:[!p&&typeof Ib=="function"&&(Mb||(Mb=g.jsx(Ib,{}))),g.jsxs(Re,{...ke,ref:n,onClick:ge,...V,...!Vd(Re)&&{ownerState:{...Ge,...ke.ownerState}},className:ve(Pe.root,ke.className,s,N&&"MuiInputBase-readOnly"),children:[j,g.jsx(k1.Provider,{value:null,children:g.jsx(pe,{"aria-invalid":ie.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:ie.disabled,id:v,onAnimationStart:ye,name:P,placeholder:A,readOnly:N,required:ie.required,rows:L,value:ee,onKeyDown:D,onKeyUp:M,type:F,...Se,...!Vd(pe)&&{as:le,ownerState:{...Ge,...Se.ownerState}},ref:se,className:ve(Pe.input,Se.className,N&&"MuiInputBase-readOnly"),onBlur:Te,onChange:we,onFocus:be})}),h,E?E({...ie,startAdornment:j}):null]})]})});function lI(e){return Oe("MuiInput",e)}const Go={...Gn,...Ee("MuiInput",["root","underline","input"])};function cI(e){return Oe("MuiOutlinedInput",e)}const lr={...Gn,...Ee("MuiOutlinedInput",["root","notchedOutline","input"])};function uI(e){return Oe("MuiFilledInput",e)}const qn={...Gn,...Ee("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},$_=un(g.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function dI(e){return Oe("MuiAutocomplete",e)}const Ue=Ee("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Ob,Lb;const fI=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ae(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ne(d,dI,t)},pI=J("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${Ue.tag}`]:t.tag},{[`& .${Ue.tag}`]:t[`tagSize${ae(s)}`]},{[`& .${Ue.inputRoot}`]:t.inputRoot},{[`& .${Ue.input}`]:t.input},{[`& .${Ue.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Ue.focused} .${Ue.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ue.clearIndicator}`]:{visibility:"visible"}},[`& .${Ue.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ue.inputRoot}`]:{[`.${Ue.hasPopupIcon}&, .${Ue.hasClearIcon}&`]:{paddingRight:30},[`.${Ue.hasPopupIcon}.${Ue.hasClearIcon}&`]:{paddingRight:56},[`& .${Ue.input}`]:{width:0,minWidth:30}},[`& .${Go.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Go.root}.${Gn.sizeSmall}`]:{[`& .${Go.input}`]:{padding:"2px 4px 3px 0"}},[`& .${lr.root}`]:{padding:9,[`.${Ue.hasPopupIcon}&, .${Ue.hasClearIcon}&`]:{paddingRight:39},[`.${Ue.hasPopupIcon}.${Ue.hasClearIcon}&`]:{paddingRight:65},[`& .${Ue.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ue.endAdornment}`]:{right:9}},[`& .${lr.root}.${Gn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ue.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${qn.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ue.hasPopupIcon}&, .${Ue.hasClearIcon}&`]:{paddingRight:39},[`.${Ue.hasPopupIcon}.${Ue.hasClearIcon}&`]:{paddingRight:65},[`& .${qn.input}`]:{padding:"7px 4px"},[`& .${Ue.endAdornment}`]:{right:9}},[`& .${qn.root}.${Gn.sizeSmall}`]:{paddingBottom:1,[`& .${qn.input}`]:{padding:"2.5px 4px"}},[`& .${Gn.hiddenLabel}`]:{paddingTop:8},[`& .${qn.root}.${Gn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ue.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${qn.root}.${Gn.hiddenLabel}.${Gn.sizeSmall}`]:{[`& .${Ue.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ue.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ue.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ue.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ue.inputRoot}`]:{flexWrap:"wrap"}}}]}),gI=J("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),hI=J(hr,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),mI=J(hr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>({...t.popupIndicator,...e.popupOpen&&t.popupIndicatorOpen})})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),vI=J(kc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ue.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})($e(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),yI=J(Is,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})($e(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),bI=J("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})($e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),xI=J("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})($e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),SI=J("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})($e(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ue.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Ue.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Ue.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ue.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ue.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),wI=J(Sm,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})($e(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),CI=J("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Ue.option}`]:{paddingLeft:24}}),_I=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:l,className:c,clearIcon:u=Ob||(Ob=g.jsx(v_,{fontSize:"small"})),clearOnBlur:d=!r.freeSolo,clearOnEscape:f=!1,clearText:p="Clear",closeText:h="Close",componentsProps:y,defaultValue:w=r.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:S=!1,disabled:m=!1,disabledItemsFocusable:C=!1,disableListWrap:_=!1,disablePortal:R=!1,filterOptions:k,filterSelectedOptions:T=!1,forcePopupIcon:P="auto",freeSolo:x=!1,fullWidth:$=!1,getLimitTagsText:I=Xe=>`+${Xe}`,getOptionDisabled:O,getOptionKey:D,getOptionLabel:M,isOptionEqualToValue:A,groupBy:N,handleHomeEndKeys:E=!r.freeSolo,id:L,includeInputInList:B=!1,inputValue:H,limitTags:z=-1,ListboxComponent:j,ListboxProps:F,loading:W=!1,loadingText:V="Loading…",multiple:ee=!1,noOptionsText:re="No options",onChange:U,onClose:K,onHighlightChange:se,onInputChange:q,onOpen:ce,open:ue,openOnFocus:ie=!1,openText:te="Open",options:de,PaperComponent:Q,PopperComponent:be,popupIcon:Te=Lb||(Lb=g.jsx($_,{})),readOnly:we=!1,renderGroup:ge,renderInput:le,renderOption:Se,renderTags:ye,selectOnFocus:Ge=!r.freeSolo,size:Pe="medium",slots:Re={},slotProps:ke={},value:pe,...ne}=r,{getRootProps:xe,getInputProps:Le,getInputLabelProps:fe,getPopupIndicatorProps:oe,getClearProps:me,getTagProps:je,getListboxProps:Ve,getOptionProps:Ye,value:Tt,dirty:Zt,expanded:Mn,id:ir,popupOpen:Vn,focused:Oo,focusedTag:_i,anchorEl:Fe,setAnchorEl:_n,inputValue:Dc,groupedOptions:pa}=M8({...r,componentName:"Autocomplete"}),Ds=!v&&!m&&Zt&&!we,js=(!x||P===!0)&&P!==!1,{onMouseDown:$p}=Le(),{ref:Ep,...jc}=Ve(),Fs=M||(Xe=>Xe.label??Xe),dn={...r,disablePortal:R,expanded:Mn,focused:Oo,fullWidth:$,getOptionLabel:Fs,hasClearIcon:Ds,hasPopupIcon:js,inputFocused:_i===-1,popupOpen:Vn,size:Pe},Nt=fI(dn),lo={slots:{paper:Q,popper:be,...Re},slotProps:{chip:l,listbox:F,...y,...ke}},[X,Y]=an("listbox",{elementType:SI,externalForwardedProps:lo,ownerState:dn,className:Nt.listbox,additionalProps:jc,ref:Ep}),[Ce,We]=an("paper",{elementType:Is,externalForwardedProps:lo,ownerState:dn,className:Nt.paper}),[qe,Pt]=an("popper",{elementType:kc,externalForwardedProps:lo,ownerState:dn,className:Nt.popper,additionalProps:{disablePortal:R,style:{width:Fe?Fe.clientWidth:null},role:"presentation",anchorEl:Fe,open:Vn}});let at;if(ee&&Tt.length>0){const Xe=Ur=>({className:Nt.tag,disabled:m,...je(Ur)});ye?at=ye(Tt,Xe,dn):at=Tt.map((Ur,Lo)=>{const{key:Bs,...B3}=Xe({index:Lo});return g.jsx(tI,{label:Fs(Ur),size:Pe,...B3,...lo.slotProps.chip},Bs)})}if(z>-1&&Array.isArray(at)){const Xe=at.length-z;!Oo&&Xe>0&&(at=at.splice(0,z),at.push(g.jsx("span",{className:Nt.tag,children:I(Xe)},at.length)))}const Fc=ge||(Xe=>g.jsxs("li",{children:[g.jsx(wI,{className:Nt.groupLabel,ownerState:dn,component:"div",children:Xe.group}),g.jsx(CI,{className:Nt.groupUl,ownerState:dn,children:Xe.children})]},Xe.key)),F3=Se||((Xe,Ur)=>{const{key:Lo,...Bs}=Xe;return g.jsx("li",{...Bs,children:Fs(Ur)},Lo)}),dv=(Xe,Ur)=>{const Lo=Ye({option:Xe,index:Ur});return F3({...Lo,className:Nt.option},Xe,{selected:Lo["aria-selected"],index:Ur,inputValue:Dc},dn)},Bc=lo.slotProps.clearIndicator,zc=lo.slotProps.popupIndicator,Mp=Xe=>g.jsx(vI,{as:qe,...Pt,children:g.jsx(yI,{as:Ce,...We,children:Xe})});let Hc=null;return pa.length>0?Hc=Mp(g.jsx(X,{as:j,...Y,children:pa.map((Xe,Ur)=>N?Fc({key:Xe.key,group:Xe.group,children:Xe.options.map((Lo,Bs)=>dv(Lo,Xe.index+Bs))}):dv(Xe,Ur))})):W&&pa.length===0?Hc=Mp(g.jsx(bI,{className:Nt.loading,ownerState:dn,children:V})):pa.length===0&&!x&&!W&&(Hc=Mp(g.jsx(xI,{className:Nt.noOptions,ownerState:dn,role:"presentation",onMouseDown:Xe=>{Xe.preventDefault()},children:re}))),g.jsxs(b.Fragment,{children:[g.jsx(pI,{ref:n,className:ve(Nt.root,c),ownerState:dn,...xe(ne),children:le({id:ir,disabled:m,fullWidth:!0,size:Pe==="small"?"small":void 0,InputLabelProps:fe(),InputProps:{ref:_n,className:Nt.inputRoot,startAdornment:at,onMouseDown:Xe=>{Xe.target===Xe.currentTarget&&$p(Xe)},...(Ds||js)&&{endAdornment:g.jsxs(gI,{className:Nt.endAdornment,ownerState:dn,children:[Ds?g.jsx(hI,{...me(),"aria-label":p,title:p,ownerState:dn,...Bc,className:ve(Nt.clearIndicator,Bc==null?void 0:Bc.className),children:u}):null,js?g.jsx(mI,{...oe(),disabled:m,"aria-label":Vn?h:te,title:Vn?h:te,ownerState:dn,...zc,className:ve(Nt.popupIndicator,zc==null?void 0:zc.className),children:Te}):null]})}},inputProps:{className:Nt.input,disabled:m,readOnly:we,...Le()}})}),Fe?Hc:null]})}),RI={entering:{opacity:1},entered:{opacity:1}},TI=b.forwardRef(function(t,n){const r=zt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:y,style:w,timeout:v=o,TransitionComponent:S=Vr,...m}=t,C=b.useRef(null),_=Rt(C,ua(s),n),R=D=>M=>{if(D){const A=C.current;M===void 0?D(A):D(A,M)}},k=R(f),T=R((D,M)=>{m_(D);const A=fs({style:w,timeout:v,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",A),D.style.transition=r.transitions.create("opacity",A),u&&u(D,M)}),P=R(d),x=R(y),$=R(D=>{const M=fs({style:w,timeout:v,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",M),D.style.transition=r.transitions.create("opacity",M),p&&p(D)}),I=R(h),O=D=>{i&&i(C.current,D)};return g.jsx(S,{appear:a,in:c,nodeRef:C,onEnter:T,onEntered:P,onEntering:k,onExit:$,onExited:I,onExiting:x,addEndListener:O,timeout:v,...m,children:(D,M)=>b.cloneElement(s,{style:{opacity:0,visibility:D==="exited"&&!c?"hidden":void 0,...RI[D],...w,...s.props.style},ref:_,...M})})});function PI(e){return Oe("MuiBackdrop",e)}Ee("MuiBackdrop",["root","invisible"]);const kI=e=>{const{ownerState:t,...n}=e;return n},$I=e=>{const{classes:t,invisible:n}=e;return Ne({root:["root",n&&"invisible"]},PI,t)},EI=J("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),MI=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:f={},TransitionComponent:p,transitionDuration:h,...y}=r,w={...r,component:a,invisible:s},v=$I(w),S={transition:p,root:c.Root,...f},m={...u,...d},C={slots:S,slotProps:m},[_,R]=an("root",{elementType:EI,externalForwardedProps:C,className:ve(v.root,i),ownerState:w}),[k,T]=an("transition",{elementType:TI,externalForwardedProps:C,ownerState:w}),P=kI(T);return g.jsx(k,{in:l,timeout:h,...y,...P,children:g.jsx(_,{"aria-hidden":!0,...R,classes:v,ref:n,children:o})})}),II=Ee("MuiBox",["root"]),OI=sp(),Lr=q5({themeId:Dr,defaultTheme:OI,defaultClassName:II.root,generateClassName:n_.generate});function LI(e){return Oe("MuiButton",e)}const Sa=Ee("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),AI=b.createContext({}),NI=b.createContext(void 0),DI=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${ae(t)}`,`size${ae(o)}`,`${i}Size${ae(o)}`,`color${ae(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ae(o)}`],endIcon:["icon","endIcon",`iconSize${ae(o)}`]},l=Ne(s,LI,a);return{...a,...l}},E_=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],jI=J(To,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ae(n.color)}`],t[`size${ae(n.size)}`],t[`${n.variant}Size${ae(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})($e(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Sa.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Sa.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Sa.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Sa.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ft()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Be(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Sa.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Sa.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),FI=J("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ae(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...E_]}),BI=J("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ae(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...E_]}),zI=b.forwardRef(function(t,n){const r=b.useContext(AI),o=b.useContext(NI),i=d_(r,t),a=De({props:i,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:h,focusVisibleClassName:y,fullWidth:w=!1,size:v="medium",startIcon:S,type:m,variant:C="text",..._}=a,R={...a,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:p,fullWidth:w,size:v,type:m,variant:C},k=DI(R),T=S&&g.jsx(FI,{className:k.startIcon,ownerState:R,children:S}),P=h&&g.jsx(BI,{className:k.endIcon,ownerState:R,children:h}),x=o||"";return g.jsxs(jI,{ownerState:R,className:ve(r.className,k.root,u,x),component:c,disabled:d,focusRipple:!p,focusVisibleClassName:ve(k.focusVisible,y),ref:n,type:m,..._,classes:k,children:[T,s,P]})});function HI(e){return Oe("PrivateSwitchBase",e)}Ee("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const VI=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${ae(o)}`],input:["input"]};return Ne(i,HI,t)},WI=J(To)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),UI=J("input",{shouldForwardProp:wn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),$1=b.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:p,inputRef:h,name:y,onBlur:w,onChange:v,onFocus:S,readOnly:m,required:C=!1,tabIndex:_,type:R,value:k,...T}=t,[P,x]=Hi({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),$=Mo(),I=L=>{S&&S(L),$&&$.onFocus&&$.onFocus(L)},O=L=>{w&&w(L),$&&$.onBlur&&$.onBlur(L)},D=L=>{if(L.nativeEvent.defaultPrevented)return;const B=L.target.checked;x(B),v&&v(L,B)};let M=l;$&&typeof M>"u"&&(M=$.disabled);const A=R==="checkbox"||R==="radio",N={...t,checked:P,disabled:M,disableFocusRipple:c,edge:u},E=VI(N);return g.jsxs(WI,{component:"span",className:ve(E.root,a),centerRipple:!0,focusRipple:!c,disabled:M,tabIndex:null,role:void 0,onFocus:I,onBlur:O,ownerState:N,ref:n,...T,children:[g.jsx(UI,{autoFocus:r,checked:o,defaultChecked:s,className:E.input,disabled:M,id:A?f:void 0,name:y,onChange:D,readOnly:m,ref:h,required:C,ownerState:N,tabIndex:_,type:R,...R==="checkbox"&&k===void 0?{}:{value:k},...p}),P?i:d]})}),GI=un(g.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"),qI=un(g.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"),KI=un(g.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 ZI(e){return Oe("MuiCheckbox",e)}const pg=Ee("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),QI=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${ae(r)}`,`size${ae(o)}`]},a=Ne(i,ZI,t);return{...t,...a}},YI=J($1,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ae(n.size)}`],n.color!=="default"&&t[`color${ae(n.color)}`]]}})($e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ft()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ft()).map(([t])=>({props:{color:t},style:{[`&.${pg.checked}, &.${pg.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${pg.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),XI=g.jsx(qI,{}),JI=g.jsx(GI,{}),eO=g.jsx(KI,{}),tO=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiCheckbox"}),{checkedIcon:o=XI,color:i="primary",icon:a=JI,indeterminate:s=!1,indeterminateIcon:l=eO,inputProps:c,size:u="medium",disableRipple:d=!1,className:f,...p}=r,h=s?l:a,y=s?l:o,w={...r,disableRipple:d,color:i,indeterminate:s,size:u},v=QI(w);return g.jsx(YI,{type:"checkbox",inputProps:{"data-indeterminate":s,...c},icon:b.cloneElement(h,{fontSize:h.props.fontSize??u}),checkedIcon:b.cloneElement(y,{fontSize:y.props.fontSize??u}),ownerState:w,ref:n,className:ve(v.root,f),disableRipple:d,...p,classes:v})});function Ab(e){return e.substring(2).toLowerCase()}function nO(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Rt(ua(t),s),d=bn(h=>{const y=c.current;c.current=!1;const w=ln(s.current);if(!l.current||!s.current||"clientX"in h&&nO(h,w))return;if(a.current){a.current=!1;return}let v;h.composedPath?v=h.composedPath().includes(s.current):v=!w.documentElement.contains(h.target)||s.current.contains(h.target),!v&&(n||!y)&&o(h)}),f=h=>y=>{c.current=!0;const w=t.props[h];w&&w(y)},p={ref:u};return i!==!1&&(p[i]=f(i)),b.useEffect(()=>{if(i!==!1){const h=Ab(i),y=ln(s.current),w=()=>{a.current=!0};return y.addEventListener(h,d),y.addEventListener("touchmove",w),()=>{y.removeEventListener(h,d),y.removeEventListener("touchmove",w)}}},[d,i]),r!==!1&&(p[r]=f(r)),b.useEffect(()=>{if(r!==!1){const h=Ab(r),y=ln(s.current);return y.addEventListener(h,d),()=>{y.removeEventListener(h,d)}}},[d,r]),g.jsx(b.Fragment,{children:b.cloneElement(t,p)})}function oO(e){const t=ln(e);return t.body===e?zr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ml(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Nb(e){return parseInt(zr(e).getComputedStyle(e).paddingRight,10)||0}function iO(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Db(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=!i.includes(a),l=!iO(a);s&&l&&Ml(a,o)})}function gg(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function aO(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(oO(r)){const a=u_(zr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Nb(r)+a}px`;const s=ln(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Nb(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=ln(r).body;else{const a=r.parentElement,s=zr(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a: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:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function sO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class lO{constructor(){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&&Ml(t.modalRef,!1);const o=sO(n);Db(n,t.mount,t.modalRef,o,!0);const i=gg(this.containers,a=>a.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=gg(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=aO(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=gg(this.containers,a=>a.modals.includes(t)),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&&Ml(t.modalRef,n),Db(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Ml(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const cO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function uO(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 dO(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 fO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||dO(e))}function pO(e){const t=[],n=[];return Array.from(e.querySelectorAll(cO)).forEach((r,o)=>{const i=uO(r);i===-1||!fO(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 gO(){return!0}function hO(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=pO,isEnabled:a=gO,open:s}=e,l=b.useRef(!1),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),f=b.useRef(null),p=b.useRef(!1),h=b.useRef(null),y=Rt(ua(t),h),w=b.useRef(null);b.useEffect(()=>{!s||!h.current||(p.current=!n)},[n,s]),b.useEffect(()=>{if(!s||!h.current)return;const m=ln(h.current);return h.current.contains(m.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),p.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),b.useEffect(()=>{if(!s||!h.current)return;const m=ln(h.current),C=k=>{w.current=k,!(r||!a()||k.key!=="Tab")&&m.activeElement===h.current&&k.shiftKey&&(l.current=!0,u.current&&u.current.focus())},_=()=>{var P,x;const k=h.current;if(k===null)return;if(!m.hasFocus()||!a()||l.current){l.current=!1;return}if(k.contains(m.activeElement)||r&&m.activeElement!==c.current&&m.activeElement!==u.current)return;if(m.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let T=[];if((m.activeElement===c.current||m.activeElement===u.current)&&(T=i(h.current)),T.length>0){const $=!!((P=w.current)!=null&&P.shiftKey&&((x=w.current)==null?void 0:x.key)==="Tab"),I=T[0],O=T[T.length-1];typeof I!="string"&&typeof O!="string"&&($?O.focus():I.focus())}else k.focus()};m.addEventListener("focusin",_),m.addEventListener("keydown",C,!0);const R=setInterval(()=>{m.activeElement&&m.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(R),m.removeEventListener("focusin",_),m.removeEventListener("keydown",C,!0)}},[n,r,o,a,s,i]);const v=m=>{d.current===null&&(d.current=m.relatedTarget),p.current=!0,f.current=m.target;const C=t.props.onFocus;C&&C(m)},S=m=>{d.current===null&&(d.current=m.relatedTarget),p.current=!0};return g.jsxs(b.Fragment,{children:[g.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:c,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:y,onFocus:v}),g.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:u,"data-testid":"sentinelEnd"})]})}function mO(e){return typeof e=="function"?e():e}function vO(e){return e?e.props.hasOwnProperty("in"):!1}const pu=new lO;function yO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:u}=e,d=b.useRef({}),f=b.useRef(null),p=b.useRef(null),h=Rt(p,u),[y,w]=b.useState(!c),v=vO(s);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const m=()=>ln(f.current),C=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),_=()=>{pu.mount(C(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},R=bn(()=>{const M=mO(t)||m().body;pu.add(C(),M),p.current&&_()}),k=()=>pu.isTopModal(C()),T=bn(M=>{f.current=M,M&&(c&&k()?_():p.current&&Ml(p.current,S))}),P=b.useCallback(()=>{pu.remove(C(),S)},[S]);b.useEffect(()=>()=>{P()},[P]),b.useEffect(()=>{c?R():(!v||!o)&&P()},[c,P,v,o,R]);const x=M=>A=>{var N;(N=M.onKeyDown)==null||N.call(M,A),!(A.key!=="Escape"||A.which===229||!k())&&(n||(A.stopPropagation(),l&&l(A,"escapeKeyDown")))},$=M=>A=>{var N;(N=M.onClick)==null||N.call(M,A),A.target===A.currentTarget&&l&&l(A,"backdropClick")};return{getRootProps:(M={})=>{const A=f_(e);delete A.onTransitionEnter,delete A.onTransitionExited;const N={...A,...M};return{role:"presentation",...N,onKeyDown:x(N),ref:h}},getBackdropProps:(M={})=>{const A=M;return{"aria-hidden":!0,...A,onClick:$(A),open:c}},getTransitionProps:()=>{const M=()=>{w(!1),i&&i()},A=()=>{w(!0),a&&a(),o&&P()};return{onEnter:gm(M,s==null?void 0:s.props.onEnter),onExited:gm(A,s==null?void 0:s.props.onExited)}},rootRef:h,portalRef:T,isTopModal:k,exited:y,hasTransition:v}}function bO(e){return Oe("MuiModal",e)}Ee("MuiModal",["root","hidden","backdrop"]);const xO=e=>{const{open:t,exited:n,classes:r}=e;return Ne({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},bO,r)},SO=J("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})($e(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),wO=J(MI,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),CO=b.forwardRef(function(t,n){const r=De({name:"MuiModal",props:t}),{BackdropComponent:o=wO,BackdropProps:i,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:p={},disableAutoFocus:h=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:w=!1,disablePortal:v=!1,disableRestoreFocus:S=!1,disableScrollLock:m=!1,hideBackdrop:C=!1,keepMounted:_=!1,onBackdropClick:R,onClose:k,onTransitionEnter:T,onTransitionExited:P,open:x,slotProps:$={},slots:I={},theme:O,...D}=r,M={...r,closeAfterTransition:l,disableAutoFocus:h,disableEnforceFocus:y,disableEscapeKeyDown:w,disablePortal:v,disableRestoreFocus:S,disableScrollLock:m,hideBackdrop:C,keepMounted:_},{getRootProps:A,getBackdropProps:N,getTransitionProps:E,portalRef:L,isTopModal:B,exited:H,hasTransition:z}=yO({...M,rootRef:n}),j={...M,exited:H},F=xO(j),W={};if(c.props.tabIndex===void 0&&(W.tabIndex="-1"),z){const{onEnter:q,onExited:ce}=E();W.onEnter=q,W.onExited=ce}const V={...D,slots:{root:f.Root,backdrop:f.Backdrop,...I},slotProps:{...p,...$}},[ee,re]=an("root",{elementType:SO,externalForwardedProps:V,getSlotProps:A,additionalProps:{ref:n,as:d},ownerState:j,className:ve(s,F==null?void 0:F.root,!j.open&&j.exited&&(F==null?void 0:F.hidden))}),[U,K]=an("backdrop",{elementType:o,externalForwardedProps:V,additionalProps:i,getSlotProps:q=>N({...q,onClick:ce=>{R&&R(ce),q!=null&&q.onClick&&q.onClick(ce)}}),className:ve(i==null?void 0:i.className,F==null?void 0:F.backdrop),ownerState:j}),se=Rt(i==null?void 0:i.ref,K.ref);return!_&&!x&&(!z||H)?null:g.jsx(k_,{ref:L,container:u,disablePortal:v,children:g.jsxs(ee,{...re,children:[!C&&o?g.jsx(U,{...K,ref:se}):null,g.jsx(hO,{disableEnforceFocus:y,disableAutoFocus:h,disableRestoreFocus:S,isEnabled:B,open:x,children:b.cloneElement(c,W)})]})})}),jb=Ee("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),_O=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:s}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${ae(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=Ne(l,uI,t);return{...t,...c}},RO=J(gp,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...fp(e,t),!n.disableUnderline&&t.underline]}})($e(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${qn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${qn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{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"},[`&.${qn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${qn.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})`:n}`,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(.${qn.disabled}, .${qn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${qn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ft()).map(([a])=>{var s;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),TO=J(hp,{name:"MuiFilledInput",slot:"Input",overridesResolver:pp})($e(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ud=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:p="text",...h}=r,y={...r,disableUnderline:o,fullWidth:s,inputComponent:c,multiline:u,type:p},w=_O(r),v={root:{ownerState:y},input:{ownerState:y}},S=d??a?io(v,d??a):v,m=f.root??i.Root??RO,C=f.input??i.Input??TO;return g.jsx(mp,{slots:{root:m,input:C},componentsProps:S,fullWidth:s,inputComponent:c,multiline:u,ref:n,type:p,...h,classes:w})});Ud&&(Ud.muiName="Input");function PO(e){return Oe("MuiFormControl",e)}Ee("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const kO=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ae(n)}`,r&&"fullWidth"]};return Ne(o,PO,t)},$O=J("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${ae(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),EO=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:p="none",required:h=!1,size:y="medium",variant:w="outlined",...v}=r,S={...r,color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:p,required:h,size:y,variant:w},m=kO(S),[C,_]=b.useState(()=>{let O=!1;return o&&b.Children.forEach(o,D=>{if(!fg(D,["Input","Select"]))return;const M=fg(D,["Select"])?D.props.input:D;M&&iI(M.props)&&(O=!0)}),O}),[R,k]=b.useState(()=>{let O=!1;return o&&b.Children.forEach(o,D=>{fg(D,["Input","Select"])&&(Wd(D.props,!0)||Wd(D.props.inputProps,!0))&&(O=!0)}),O}),[T,P]=b.useState(!1);l&&T&&P(!1);const x=u!==void 0&&!l?u:T;let $;b.useRef(!1);const I=b.useMemo(()=>({adornedStart:C,setAdornedStart:_,color:a,disabled:l,error:c,filled:R,focused:x,fullWidth:d,hiddenLabel:f,size:y,onBlur:()=>{P(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{P(!0)},registerEffect:$,required:h,variant:w}),[C,a,l,c,R,x,d,f,$,h,y,w]);return g.jsx(k1.Provider,{value:I,children:g.jsx($O,{as:s,ownerState:S,className:ve(m.root,i),ref:n,...v,children:o})})});function MO(e){return Oe("MuiFormControlLabel",e)}const vl=Ee("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),IO=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${ae(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return Ne(a,MO,t)},OO=J("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${vl.label}`]:t.label},t.root,t[`labelPlacement${ae(n.labelPlacement)}`]]}})($e(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${vl.disabled}`]:{cursor:"default"},[`& .${vl.label}`]:{[`&.${vl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),LO=J("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})($e(({theme:e})=>({[`&.${vl.error}`]:{color:(e.vars||e).palette.error.main}}))),M_=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:a={},control:s,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:f="end",name:p,onChange:h,required:y,slots:w={},slotProps:v={},value:S,...m}=r,C=Mo(),_=l??s.props.disabled??(C==null?void 0:C.disabled),R=y??s.props.required,k={disabled:_,required:R};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof s.props[M]>"u"&&typeof r[M]<"u"&&(k[M]=r[M])});const T=da({props:r,muiFormControl:C,states:["error"]}),P={...r,disabled:_,labelPlacement:f,required:R,error:T.error},x=IO(P),$={slots:w,slotProps:{...a,...v}},[I,O]=an("typography",{elementType:mt,externalForwardedProps:$,ownerState:P});let D=d;return D!=null&&D.type!==mt&&!c&&(D=g.jsx(I,{component:"span",...O,className:ve(x.label,O==null?void 0:O.className),children:D})),g.jsxs(OO,{className:ve(x.root,i),ownerState:P,ref:n,...m,children:[b.cloneElement(s,k),R?g.jsxs("div",{children:[D,g.jsxs(LO,{ownerState:P,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):D]})});function AO(e){return Oe("MuiFormHelperText",e)}const Fb=Ee("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Bb;const NO=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&`size${ae(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Ne(c,AO,t)},DO=J("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ae(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})($e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Fb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Fb.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),jO=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p",disabled:s,error:l,filled:c,focused:u,margin:d,required:f,variant:p,...h}=r,y=Mo(),w=da({props:r,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),v={...r,component:a,contained:w.variant==="filled"||w.variant==="outlined",variant:w.variant,size:w.size,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required};delete v.ownerState;const S=NO(v);return g.jsx(DO,{as:a,className:ve(S.root,i),ref:n,...h,ownerState:v,children:o===" "?Bb||(Bb=g.jsx("span",{className:"notranslate",children:"​"})):o})});function FO(e){return Oe("MuiFormLabel",e)}const Il=Ee("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),BO=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${ae(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Ne(l,FO,t)},zO=J("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})($e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Ft()).map(([t])=>({props:{color:t},style:{[`&.${Il.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Il.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Il.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),HO=J("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})($e(({theme:e})=>({[`&.${Il.error}`]:{color:(e.vars||e).palette.error.main}}))),VO=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:a,component:s="label",disabled:l,error:c,filled:u,focused:d,required:f,...p}=r,h=Mo(),y=da({props:r,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),w={...r,color:y.color||"primary",component:s,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},v=BO(w);return g.jsxs(zO,{as:s,ownerState:w,className:ve(v.root,i),ref:n,...p,children:[o,y.required&&g.jsxs(HO,{ownerState:w,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});function wm(e){return`scale(${e}, ${e**2})`}const WO={entering:{opacity:1,transform:wm(1)},entered:{opacity:1,transform:"none"}},hg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),uc=b.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:p,style:h,timeout:y="auto",TransitionComponent:w=Vr,...v}=t,S=Ni(),m=b.useRef(),C=zt(),_=b.useRef(null),R=Rt(_,ua(i),n),k=M=>A=>{if(M){const N=_.current;A===void 0?M(N):M(N,A)}},T=k(u),P=k((M,A)=>{m_(M);const{duration:N,delay:E,easing:L}=fs({style:h,timeout:y,easing:a},{mode:"enter"});let B;y==="auto"?(B=C.transitions.getAutoHeightDuration(M.clientHeight),m.current=B):B=N,M.style.transition=[C.transitions.create("opacity",{duration:B,delay:E}),C.transitions.create("transform",{duration:hg?B:B*.666,delay:E,easing:L})].join(","),l&&l(M,A)}),x=k(c),$=k(p),I=k(M=>{const{duration:A,delay:N,easing:E}=fs({style:h,timeout:y,easing:a},{mode:"exit"});let L;y==="auto"?(L=C.transitions.getAutoHeightDuration(M.clientHeight),m.current=L):L=A,M.style.transition=[C.transitions.create("opacity",{duration:L,delay:N}),C.transitions.create("transform",{duration:hg?L:L*.666,delay:hg?N:N||L*.333,easing:E})].join(","),M.style.opacity=0,M.style.transform=wm(.75),d&&d(M)}),O=k(f),D=M=>{y==="auto"&&S.start(m.current||0,M),r&&r(_.current,M)};return g.jsx(w,{appear:o,in:s,nodeRef:_,onEnter:P,onEntered:x,onEntering:T,onExit:I,onExited:O,onExiting:$,addEndListener:D,timeout:y==="auto"?null:y,...v,children:(M,A)=>b.cloneElement(i,{style:{opacity:0,transform:wm(.75),visibility:M==="exited"&&!s?"hidden":void 0,...WO[M],...h,...i.props.style},ref:R,...A})})});uc&&(uc.muiSupportAuto=!0);const UO=e=>{const{classes:t,disableUnderline:n}=e,o=Ne({root:["root",!n&&"underline"],input:["input"]},lI,t);return{...t,...o}},GO=J(gp,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...fp(e,t),!n.disableUnderline&&t.underline]}})($e(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{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"},[`&.${Go.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Go.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${Go.disabled}, .${Go.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Go.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ft()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),qO=J(hp,{name:"MuiInput",slot:"Input",overridesResolver:pp})({}),Gd=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:f="text",...p}=r,h=UO(r),w={root:{ownerState:{disableUnderline:o}}},v=u??a?io(u??a,w):w,S=d.root??i.Root??GO,m=d.input??i.Input??qO;return g.jsx(mp,{slots:{root:S,input:m},slotProps:v,fullWidth:s,inputComponent:l,multiline:c,ref:n,type:f,...p,classes:h})});Gd&&(Gd.muiName="Input");function KO(e){return Oe("MuiInputLabel",e)}Ee("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ZO=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ae(r)}`,a],asterisk:[s&&"asterisk"]},c=Ne(l,KO,t);return{...t,...c}},QO=J(VO,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Il.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})($e(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),YO=b.forwardRef(function(t,n){const r=De({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:a,variant:s,className:l,...c}=r,u=Mo();let d=a;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=da({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),p={...r,disableAnimation:o,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},h=ZO(p);return g.jsx(QO,{"data-shrink":d,ref:n,className:ve(h.root,l),...c,ownerState:p,classes:h})}),Cm=b.createContext({});function XO(e){return Oe("MuiList",e)}Ee("MuiList",["root","padding","dense","subheader"]);const JO=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ne({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},XO,t)},eL=J("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]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),tL=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...u}=r,d=b.useMemo(()=>({dense:s}),[s]),f={...r,component:a,dense:s,disablePadding:l},p=JO(f);return g.jsx(Cm.Provider,{value:d,children:g.jsxs(eL,{as:a,className:ve(p.root,i),ref:n,ownerState:f,...u,children:[c,o]})})}),zb=Ee("MuiListItemIcon",["root","alignItemsFlexStart"]),Hb=Ee("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function mg(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Vb(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function I_(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.startsWith(t.keys.join(""))}function Js(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!I_(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const nL=b.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=t,p=b.useRef(null),h=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Hr(()=>{o&&p.current.focus()},[o]),b.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(m,{direction:C})=>{const _=!p.current.style.width;if(m.clientHeight{const C=p.current,_=m.key;if(m.ctrlKey||m.metaKey||m.altKey){u&&u(m);return}const k=ln(C).activeElement;if(_==="ArrowDown")m.preventDefault(),Js(C,k,c,l,mg);else if(_==="ArrowUp")m.preventDefault(),Js(C,k,c,l,Vb);else if(_==="Home")m.preventDefault(),Js(C,null,c,l,mg);else if(_==="End")m.preventDefault(),Js(C,null,c,l,Vb);else if(_.length===1){const T=h.current,P=_.toLowerCase(),x=performance.now();T.keys.length>0&&(x-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&P!==T.keys[0]&&(T.repeating=!1)),T.lastTime=x,T.keys.push(P);const $=k&&!T.repeating&&I_(k,T);T.previousKeyMatched&&($||Js(C,k,!1,l,mg,T))?m.preventDefault():T.previousKeyMatched=!1}u&&u(m)},w=Rt(p,n);let v=-1;b.Children.forEach(a,(m,C)=>{if(!b.isValidElement(m)){v===C&&(v+=1,v>=a.length&&(v=-1));return}m.props.disabled||(d==="selectedMenu"&&m.props.selected||v===-1)&&(v=C),v===C&&(m.props.disabled||m.props.muiSkipListHighlight||m.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const S=b.Children.map(a,(m,C)=>{if(C===v){const _={};return i&&(_.autoFocus=!0),m.props.tabIndex===void 0&&d==="selectedMenu"&&(_.tabIndex=0),b.cloneElement(m,_)}return m});return g.jsx(tL,{role:"menu",ref:w,className:s,onKeyDown:y,tabIndex:o?0:-1,...f,children:S})});function rL(e){return Oe("MuiPopover",e)}Ee("MuiPopover",["root","paper"]);function Wb(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Ub(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Gb(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function vg(e){return typeof e=="function"?e():e}const oL=e=>{const{classes:t}=e;return Ne({root:["root"],paper:["paper"]},rL,t)},iL=J(CO,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),O_=J(Is,{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}),L_=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:f=8,marginThreshold:p=16,open:h,PaperProps:y={},slots:w={},slotProps:v={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:m=uc,transitionDuration:C="auto",TransitionProps:{onEntering:_,...R}={},disableScrollLock:k=!1,...T}=r,P=(v==null?void 0:v.paper)??y,x=b.useRef(),$={...r,anchorOrigin:a,anchorReference:l,elevation:f,marginThreshold:p,externalPaperSlotProps:P,transformOrigin:S,TransitionComponent:m,transitionDuration:C,TransitionProps:R},I=oL($),O=b.useCallback(()=>{if(l==="anchorPosition")return s;const K=vg(i),q=(K&&K.nodeType===1?K:ln(x.current).body).getBoundingClientRect();return{top:q.top+Wb(q,a.vertical),left:q.left+Ub(q,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),D=b.useCallback(K=>({vertical:Wb(K,S.vertical),horizontal:Ub(K,S.horizontal)}),[S.horizontal,S.vertical]),M=b.useCallback(K=>{const se={width:K.offsetWidth,height:K.offsetHeight},q=D(se);if(l==="none")return{top:null,left:null,transformOrigin:Gb(q)};const ce=O();let ue=ce.top-q.vertical,ie=ce.left-q.horizontal;const te=ue+se.height,de=ie+se.width,Q=zr(vg(i)),be=Q.innerHeight-p,Te=Q.innerWidth-p;if(p!==null&&uebe){const we=te-be;ue-=we,q.vertical+=we}if(p!==null&&ieTe){const we=de-Te;ie-=we,q.horizontal+=we}return{top:`${Math.round(ue)}px`,left:`${Math.round(ie)}px`,transformOrigin:Gb(q)}},[i,l,O,D,p]),[A,N]=b.useState(h),E=b.useCallback(()=>{const K=x.current;if(!K)return;const se=M(K);se.top!==null&&K.style.setProperty("top",se.top),se.left!==null&&(K.style.left=se.left),K.style.transformOrigin=se.transformOrigin,N(!0)},[M]);b.useEffect(()=>(k&&window.addEventListener("scroll",E),()=>window.removeEventListener("scroll",E)),[i,k,E]);const L=(K,se)=>{_&&_(K,se),E()},B=()=>{N(!1)};b.useEffect(()=>{h&&E()}),b.useImperativeHandle(o,()=>h?{updatePosition:()=>{E()}}:null,[h,E]),b.useEffect(()=>{if(!h)return;const K=cp(()=>{E()}),se=zr(i);return se.addEventListener("resize",K),()=>{K.clear(),se.removeEventListener("resize",K)}},[i,h,E]);let H=C;C==="auto"&&!m.muiSupportAuto&&(H=void 0);const z=d||(i?ln(vg(i)).body:void 0),j={slots:w,slotProps:{...v,paper:P}},[F,W]=an("paper",{elementType:O_,externalForwardedProps:j,additionalProps:{elevation:f,className:ve(I.paper,P==null?void 0:P.className),style:A?P.style:{...P.style,opacity:0}},ownerState:$}),[V,{slotProps:ee,...re}]=an("root",{elementType:iL,externalForwardedProps:j,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:z,open:h},ownerState:$,className:ve(I.root,u)}),U=Rt(x,W.ref);return g.jsx(V,{...re,...!Vd(V)&&{slotProps:ee,disableScrollLock:k},...T,ref:n,children:g.jsx(m,{appear:!0,in:h,onEntering:L,onExited:B,timeout:H,...R,children:g.jsx(F,{...W,ref:U,children:c})})})});function aL(e){return Oe("MuiMenu",e)}Ee("MuiMenu",["root","paper","list"]);const sL={vertical:"top",horizontal:"right"},lL={vertical:"top",horizontal:"left"},cL=e=>{const{classes:t}=e;return Ne({root:["root"],paper:["paper"],list:["list"]},aL,t)},uL=J(L_,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dL=J(O_,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),fL=J(nL,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),E1=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:p="auto",TransitionProps:{onEntering:h,...y}={},variant:w="selectedMenu",slots:v={},slotProps:S={},...m}=r,C=Es(),_={...r,autoFocus:o,disableAutoFocusItem:s,MenuListProps:l,onEntering:h,PaperProps:d,transitionDuration:p,TransitionProps:y,variant:w},R=cL(_),k=o&&!s&&u,T=b.useRef(null),P=(A,N)=>{T.current&&T.current.adjustStyleForScrollbar(A,{direction:C?"rtl":"ltr"}),h&&h(A,N)},x=A=>{A.key==="Tab"&&(A.preventDefault(),c&&c(A,"tabKeyDown"))};let $=-1;b.Children.map(i,(A,N)=>{b.isValidElement(A)&&(A.props.disabled||(w==="selectedMenu"&&A.props.selected||$===-1)&&($=N))});const I=v.paper??dL,O=S.paper??d,D=na({elementType:v.root,externalSlotProps:S.root,ownerState:_,className:[R.root,a]}),M=na({elementType:I,externalSlotProps:O,ownerState:_,className:R.paper});return g.jsx(uL,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?sL:lL,slots:{paper:I,root:v.root},slotProps:{root:D,paper:M},open:u,ref:n,transitionDuration:p,TransitionProps:{onEntering:P,...y},ownerState:_,...m,classes:f,children:g.jsx(fL,{onKeyDown:x,actions:T,autoFocus:o&&($===-1||s),autoFocusItem:k,variant:w,...l,className:ve(R.list,l.className),children:i})})});function pL(e){return Oe("MuiMenuItem",e)}const el=Ee("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),gL=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},hL=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Ne({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},pL,a);return{...a,...l}},mL=J(To,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:gL})($e(({theme:e})=>({...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","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${el.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${el.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${el.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Be(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})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${el.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${el.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jb.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jb.inset}`]:{marginLeft:52},[`& .${Hb.root}`]:{marginTop:0,marginBottom:0},[`& .${Hb.inset}`]:{paddingLeft:36},[`& .${zb.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${zb.root} svg`]:{fontSize:"1.25rem"}}}]}))),$c=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f,...p}=r,h=b.useContext(Cm),y=b.useMemo(()=>({dense:a||h.dense||!1,disableGutters:l}),[h.dense,a,l]),w=b.useRef(null);Hr(()=>{o&&w.current&&w.current.focus()},[o]);const v={...r,dense:y.dense,divider:s,disableGutters:l},S=hL(r),m=Rt(w,n);let C;return r.disabled||(C=d!==void 0?d:-1),g.jsx(Cm.Provider,{value:y,children:g.jsx(mL,{ref:m,role:u,tabIndex:C,component:i,focusVisibleClassName:ve(S.focusVisible,c),className:ve(S.root,f),...p,ownerState:v,classes:S})})});function vL(e){return Oe("MuiNativeSelect",e)}const M1=Ee("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),yL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ae(n)}`,i&&"iconOpen",r&&"disabled"]};return Ne(s,vL,t)},A_=J("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${M1.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),bL=J(A_,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${M1.multiple}`]:t.multiple}]}})({}),N_=J("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${M1.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),xL=J(N_,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ae(n.variant)}`],n.open&&t.iconOpen]}})({}),SL=b.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:i},d=yL(u);return g.jsxs(b.Fragment,{children:[g.jsx(bL,{ownerState:u,className:ve(d.select,r),disabled:o,ref:s||n,...c}),t.multiple?null:g.jsx(xL,{as:a,ownerState:u,className:d.icon})]})});var qb;const wL=J("fieldset",{shouldForwardProp:wn})({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%"}),CL=J("legend",{shouldForwardProp:wn})($e(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function _L(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,s=o!=null&&o!=="",l={...e,notched:i,withLabel:s};return g.jsx(wL,{"aria-hidden":!0,className:r,ownerState:l,...a,children:g.jsx(CL,{ownerState:l,children:s?g.jsx("span",{children:o}):qb||(qb=g.jsx("span",{className:"notranslate",children:"​"}))})})}const RL=e=>{const{classes:t}=e,r=Ne({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},cI,t);return{...t,...r}},TL=J(gp,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:fp})($e(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${lr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${lr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${lr.focused} .${lr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ft()).map(([n])=>({props:{color:n},style:{[`&.${lr.focused} .${lr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${lr.error} .${lr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${lr.disabled} .${lr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),PL=J(_L,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})($e(({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}})),kL=J(hp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:pp})($e(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),qd=b.forwardRef(function(t,n){var r;const o=De({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:d={},type:f="text",...p}=o,h=RL(o),y=Mo(),w=da({props:o,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...o,color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:y,fullWidth:a,hiddenLabel:w.hiddenLabel,multiline:c,size:w.size,type:f},S=d.root??i.Root??TL,m=d.input??i.Input??kL;return g.jsx(mp,{slots:{root:S,input:m},renderSuffix:C=>g.jsx(PL,{ownerState:v,className:h.notchedOutline,label:l!=null&&l!==""&&w.required?r||(r=g.jsxs(b.Fragment,{children:[l," ","*"]})):l,notched:typeof u<"u"?u:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:f,...p,classes:{...h,notchedOutline:null}})});qd&&(qd.muiName="Input");const $L=un(g.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),EL=un(g.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),ML=un(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),IL=un(g.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),OL=J("span",{shouldForwardProp:wn})({position:"relative",display:"flex"}),LL=J(ML)({transform:"scale(1)"}),AL=J(IL)($e(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function D_(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return g.jsxs(OL,{className:n.root,ownerState:o,children:[g.jsx(LL,{fontSize:r,className:n.background,ownerState:o}),g.jsx(AL,{fontSize:r,className:n.dot,ownerState:o})]})}const NL=b.createContext(void 0);function DL(){return b.useContext(NL)}function jL(e){return Oe("MuiRadio",e)}const Kb=Ee("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),FL=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${ae(n)}`,r!=="medium"&&`size${ae(r)}`]};return{...t,...Ne(o,jL,t)}},BL=J($1,{shouldForwardProp:e=>wn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ae(n.size)}`],t[`color${ae(n.color)}`]]}})($e(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Kb.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ft()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ft()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Kb.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function zL(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Zb=g.jsx(D_,{checked:!0}),Qb=g.jsx(D_,{}),HL=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:i=Zb,color:a="primary",icon:s=Qb,name:l,onChange:c,size:u="medium",className:d,disabled:f,disableRipple:p=!1,...h}=r,y=Mo();let w=f;y&&typeof w>"u"&&(w=y.disabled),w??(w=!1);const v={...r,disabled:w,disableRipple:p,color:a,size:u},S=FL(v),m=DL();let C=o;const _=gm(c,m&&m.onChange);let R=l;return m&&(typeof C>"u"&&(C=zL(m.value,r.value)),typeof R>"u"&&(R=m.name)),g.jsx(BL,{type:"radio",icon:b.cloneElement(s,{fontSize:Qb.props.fontSize??u}),checkedIcon:b.cloneElement(i,{fontSize:Zb.props.fontSize??u}),disabled:w,ownerState:v,classes:S,name:R,checked:C,onChange:_,ref:n,className:ve(S.root,d),...h})});function VL(e){return Oe("MuiSelect",e)}const tl=Ee("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Yb;const WL=J(A_,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${tl.select}`]:t.select},{[`&.${tl.select}`]:t[n.variant]},{[`&.${tl.error}`]:t.error},{[`&.${tl.multiple}`]:t.multiple}]}})({[`&.${tl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),UL=J(N_,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ae(n.variant)}`],n.open&&t.iconOpen]}})({}),GL=J("input",{shouldForwardProp:e=>l_(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 Xb(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function qL(e){return e==null||typeof e=="string"&&!e.trim()}const KL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ae(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ne(s,VL,t)},ZL=b.forwardRef(function(t,n){var Le;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:p=!1,IconComponent:h,inputRef:y,labelId:w,MenuProps:v={},multiple:S,name:m,onBlur:C,onChange:_,onClose:R,onFocus:k,onOpen:T,open:P,readOnly:x,renderValue:$,SelectDisplayProps:I={},tabIndex:O,type:D,value:M,variant:A="standard",...N}=t,[E,L]=Hi({controlled:M,default:u,name:"Select"}),[B,H]=Hi({controlled:P,default:c,name:"Select"}),z=b.useRef(null),j=b.useRef(null),[F,W]=b.useState(null),{current:V}=b.useRef(P!=null),[ee,re]=b.useState(),U=Rt(n,y),K=b.useCallback(fe=>{j.current=fe,fe&&W(fe)},[]),se=F==null?void 0:F.parentNode;b.useImperativeHandle(U,()=>({focus:()=>{j.current.focus()},node:z.current,value:E}),[E]),b.useEffect(()=>{c&&B&&F&&!V&&(re(a?null:se.clientWidth),j.current.focus())},[F,a]),b.useEffect(()=>{i&&j.current.focus()},[i]),b.useEffect(()=>{if(!w)return;const fe=ln(j.current).getElementById(w);if(fe){const oe=()=>{getSelection().isCollapsed&&j.current.focus()};return fe.addEventListener("click",oe),()=>{fe.removeEventListener("click",oe)}}},[w]);const q=(fe,oe)=>{fe?T&&T(oe):R&&R(oe),V||(re(a?null:se.clientWidth),H(fe))},ce=fe=>{fe.button===0&&(fe.preventDefault(),j.current.focus(),q(!0,fe))},ue=fe=>{q(!1,fe)},ie=b.Children.toArray(s),te=fe=>{const oe=ie.find(me=>me.props.value===fe.target.value);oe!==void 0&&(L(oe.props.value),_&&_(fe,oe))},de=fe=>oe=>{let me;if(oe.currentTarget.hasAttribute("tabindex")){if(S){me=Array.isArray(E)?E.slice():[];const je=E.indexOf(fe.props.value);je===-1?me.push(fe.props.value):me.splice(je,1)}else me=fe.props.value;if(fe.props.onClick&&fe.props.onClick(oe),E!==me&&(L(me),_)){const je=oe.nativeEvent||oe,Ve=new je.constructor(je.type,je);Object.defineProperty(Ve,"target",{writable:!0,value:{value:me,name:m}}),_(Ve,fe)}S||q(!1,oe)}},Q=fe=>{x||[" ","ArrowUp","ArrowDown","Enter"].includes(fe.key)&&(fe.preventDefault(),q(!0,fe))},be=F!==null&&B,Te=fe=>{!be&&C&&(Object.defineProperty(fe,"target",{writable:!0,value:{value:E,name:m}}),C(fe))};delete N["aria-invalid"];let we,ge;const le=[];let Se=!1;(Wd({value:E})||f)&&($?we=$(E):Se=!0);const ye=ie.map(fe=>{if(!b.isValidElement(fe))return null;let oe;if(S){if(!Array.isArray(E))throw new Error(Xi(2));oe=E.some(me=>Xb(me,fe.props.value)),oe&&Se&&le.push(fe.props.children)}else oe=Xb(E,fe.props.value),oe&&Se&&(ge=fe.props.children);return b.cloneElement(fe,{"aria-selected":oe?"true":"false",onClick:de(fe),onKeyUp:me=>{me.key===" "&&me.preventDefault(),fe.props.onKeyUp&&fe.props.onKeyUp(me)},role:"option",selected:oe,value:void 0,"data-value":fe.props.value})});Se&&(S?le.length===0?we=null:we=le.reduce((fe,oe,me)=>(fe.push(oe),me{const{classes:t}=e;return t},I1={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wn(e)&&e!=="variant",slot:"Root"},YL=J(Gd,I1)(""),XL=J(qd,I1)(""),JL=J(Ud,I1)(""),vp=b.forwardRef(function(t,n){const r=De({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=$_,id:d,input:f,inputProps:p,label:h,labelId:y,MenuProps:w,multiple:v=!1,native:S=!1,onClose:m,onOpen:C,open:_,renderValue:R,SelectDisplayProps:k,variant:T="outlined",...P}=r,x=S?SL:ZL,$=Mo(),I=da({props:r,muiFormControl:$,states:["variant","error"]}),O=I.variant||T,D={...r,variant:O,classes:a},M=QL(D),{root:A,...N}=M,E=f||{standard:g.jsx(YL,{ownerState:D}),outlined:g.jsx(XL,{label:h,ownerState:D}),filled:g.jsx(JL,{ownerState:D})}[O],L=Rt(n,ua(E));return g.jsx(b.Fragment,{children:b.cloneElement(E,{inputComponent:x,inputProps:{children:i,error:I.error,IconComponent:u,variant:O,type:void 0,multiple:v,...S?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:y,MenuProps:w,onClose:m,onOpen:C,open:_,renderValue:R,SelectDisplayProps:{id:d,...k}},...p,classes:p?io(N,p.classes):N,...f?f.props.inputProps:{}},...(v&&S||c)&&O==="outlined"?{notched:!0}:{},ref:L,className:ve(E.props.className,s,M.root),...!f&&{variant:O},...P})})});vp.muiName="Select";function e7(e){return Oe("MuiTooltip",e)}const Mt=Ee("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function t7(e){return Math.round(e*1e5)/1e5}const n7=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ae(i.split("-")[0])}`],arrow:["arrow"]};return Ne(a,e7,t)},r7=J(kc,{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]}})($e(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Mt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Mt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Mt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Mt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Mt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Mt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Mt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Mt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),o7=J("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${ae(n.placement.split("-")[0])}`]]}})($e(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Be(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,[`.${Mt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Mt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Mt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Mt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${t7(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Mt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Mt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Mt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Mt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Mt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Mt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Mt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Mt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Mt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Mt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),i7=J("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})($e(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Be(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let gu=!1;const Jb=new up;let nl={x:0,y:0};function hu(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const a7=b.forwardRef(function(t,n){var Vn,Oo,_i;const r=De({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:p=!1,enterDelay:h=100,enterNextDelay:y=0,enterTouchDelay:w=700,followCursor:v=!1,id:S,leaveDelay:m=0,leaveTouchDelay:C=1500,onClose:_,onOpen:R,open:k,placement:T="bottom",PopperComponent:P,PopperProps:x={},slotProps:$={},slots:I={},title:O,TransitionComponent:D=uc,TransitionProps:M,...A}=r,N=b.isValidElement(i)?i:g.jsx("span",{children:i}),E=zt(),L=Es(),[B,H]=b.useState(),[z,j]=b.useState(null),F=b.useRef(!1),W=f||v,V=Ni(),ee=Ni(),re=Ni(),U=Ni(),[K,se]=Hi({controlled:k,default:!1,name:"Tooltip",state:"open"});let q=K;const ce=ds(S),ue=b.useRef(),ie=bn(()=>{ue.current!==void 0&&(document.body.style.WebkitUserSelect=ue.current,ue.current=void 0),U.clear()});b.useEffect(()=>ie,[ie]);const te=Fe=>{Jb.clear(),gu=!0,se(!0),R&&!q&&R(Fe)},de=bn(Fe=>{Jb.start(800+m,()=>{gu=!1}),se(!1),_&&q&&_(Fe),V.start(E.transitions.duration.shortest,()=>{F.current=!1})}),Q=Fe=>{F.current&&Fe.type!=="touchstart"||(B&&B.removeAttribute("title"),ee.clear(),re.clear(),h||gu&&y?ee.start(gu?y:h,()=>{te(Fe)}):te(Fe))},be=Fe=>{ee.clear(),re.start(m,()=>{de(Fe)})},[,Te]=b.useState(!1),we=Fe=>{Fd(Fe.target)||(Te(!1),be(Fe))},ge=Fe=>{B||H(Fe.currentTarget),Fd(Fe.target)&&(Te(!0),Q(Fe))},le=Fe=>{F.current=!0;const _n=N.props;_n.onTouchStart&&_n.onTouchStart(Fe)},Se=Fe=>{le(Fe),re.clear(),V.clear(),ie(),ue.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(w,()=>{document.body.style.WebkitUserSelect=ue.current,Q(Fe)})},ye=Fe=>{N.props.onTouchEnd&&N.props.onTouchEnd(Fe),ie(),re.start(C,()=>{de(Fe)})};b.useEffect(()=>{if(!q)return;function Fe(_n){_n.key==="Escape"&&de(_n)}return document.addEventListener("keydown",Fe),()=>{document.removeEventListener("keydown",Fe)}},[de,q]);const Ge=Rt(ua(N),H,n);!O&&O!==0&&(q=!1);const Pe=b.useRef(),Re=Fe=>{const _n=N.props;_n.onMouseMove&&_n.onMouseMove(Fe),nl={x:Fe.clientX,y:Fe.clientY},Pe.current&&Pe.current.update()},ke={},pe=typeof O=="string";c?(ke.title=!q&&pe&&!d?O:null,ke["aria-describedby"]=q?ce:null):(ke["aria-label"]=pe?O:null,ke["aria-labelledby"]=q&&!pe?ce:null);const ne={...ke,...A,...N.props,className:ve(A.className,N.props.className),onTouchStart:le,ref:Ge,...v?{onMouseMove:Re}:{}},xe={};p||(ne.onTouchStart=Se,ne.onTouchEnd=ye),d||(ne.onMouseOver=hu(Q,ne.onMouseOver),ne.onMouseLeave=hu(be,ne.onMouseLeave),W||(xe.onMouseOver=Q,xe.onMouseLeave=be)),u||(ne.onFocus=hu(ge,ne.onFocus),ne.onBlur=hu(we,ne.onBlur),W||(xe.onFocus=ge,xe.onBlur=we));const Le=b.useMemo(()=>{var _n;let Fe=[{name:"arrow",enabled:!!z,options:{element:z,padding:4}}];return(_n=x.popperOptions)!=null&&_n.modifiers&&(Fe=Fe.concat(x.popperOptions.modifiers)),{...x.popperOptions,modifiers:Fe}},[z,x]),fe={...r,isRtl:L,arrow:o,disableInteractive:W,placement:T,PopperComponentProp:P,touch:F.current},oe=n7(fe),me=I.popper??s.Popper??r7,je=I.transition??s.Transition??D??uc,Ve=I.tooltip??s.Tooltip??o7,Ye=I.arrow??s.Arrow??i7,Tt=Ha(me,{...x,...$.popper??l.popper,className:ve(oe.popper,x==null?void 0:x.className,(Vn=$.popper??l.popper)==null?void 0:Vn.className)},fe),Zt=Ha(je,{...M,...$.transition??l.transition},fe),Mn=Ha(Ve,{...$.tooltip??l.tooltip,className:ve(oe.tooltip,(Oo=$.tooltip??l.tooltip)==null?void 0:Oo.className)},fe),ir=Ha(Ye,{...$.arrow??l.arrow,className:ve(oe.arrow,(_i=$.arrow??l.arrow)==null?void 0:_i.className)},fe);return g.jsxs(b.Fragment,{children:[b.cloneElement(N,ne),g.jsx(me,{as:P??kc,placement:T,anchorEl:v?{getBoundingClientRect:()=>({top:nl.y,left:nl.x,right:nl.x,bottom:nl.y,width:0,height:0})}:B,popperRef:Pe,open:B?q:!1,id:ce,transition:!0,...xe,...Tt,popperOptions:Le,children:({TransitionProps:Fe})=>g.jsx(je,{timeout:E.transitions.duration.shorter,...Fe,...Zt,children:g.jsxs(Ve,{...Mn,children:[O,o?g.jsx(Ye,{...ir,ref:j}):null]})})})]})}),s7=FE({createStyledComponent:J("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>De({props:e,name:"MuiStack"})});function l7(e){return Oe("MuiSwitch",e)}const Rn=Ee("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),c7=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${ae(n)}`,`size${ae(r)}`],switchBase:["switchBase",`color${ae(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Ne(s,l7,t);return{...t,...l}},u7=J("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ae(n.edge)}`],t[`size${ae(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Rn.thumb}`]:{width:16,height:16},[`& .${Rn.switchBase}`]:{padding:4,[`&.${Rn.checked}`]:{transform:"translateX(16px)"}}}}]}),d7=J($1,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Rn.input}`]:t.input},n.color!=="default"&&t[`color${ae(n.color)}`]]}})($e(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Rn.checked}`]:{transform:"translateX(20px)"},[`&.${Rn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Rn.checked} + .${Rn.track}`]:{opacity:.5},[`&.${Rn.disabled} + .${Rn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Rn.input}`]:{left:"-100%",width:"300%"}})),$e(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Ft(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Rn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Be(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Rn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?ta(e.palette[t].main,.62):ea(e.palette[t].main,.55)}`}},[`&.${Rn.checked} + .${Rn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),f7=J("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})($e(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),p7=J("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})($e(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),g7=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:l,...c}=r,u={...r,color:i,edge:a,size:s},d=c7(u),f=g.jsx(p7,{className:d.thumb,ownerState:u});return g.jsxs(u7,{className:ve(d.root,o),sx:l,ownerState:u,children:[g.jsx(d7,{type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:u,...c,classes:{...d,root:d.switchBase}}),g.jsx(f7,{className:d.track,ownerState:u})]})});function h7(e){return Oe("MuiTab",e)}const ar=Ee("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),m7=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,c={root:["root",i&&a&&"labelIcon",`textColor${ae(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Ne(c,h7,t)},v7=J(To,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ae(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${ar.iconWrapper}`]:t.iconWrapper},{[`& .${ar.icon}`]:t.icon}]}})($e(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${ar.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${ar.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${ar.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${ar.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${ar.selected}`]:{opacity:1},[`&.${ar.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ar.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ar.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ar.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ar.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),y7=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:f,onClick:p,onFocus:h,selected:y,selectionFollowsFocus:w,textColor:v="inherit",value:S,wrapped:m=!1,...C}=r,_={...r,disabled:i,disableFocusRipple:a,selected:y,icon:!!l,iconPosition:c,label:!!d,fullWidth:s,textColor:v,wrapped:m},R=m7(_),k=l&&d&&b.isValidElement(l)?b.cloneElement(l,{className:ve(R.icon,l.props.className)}):l,T=x=>{!y&&f&&f(x,S),p&&p(x)},P=x=>{w&&!y&&f&&f(x,S),h&&h(x)};return g.jsxs(v7,{focusRipple:!a,className:ve(R.root,o),ref:n,role:"tab","aria-selected":y,disabled:i,onClick:T,onFocus:P,ownerState:_,tabIndex:y?0:-1,...C,children:[c==="top"||c==="start"?g.jsxs(b.Fragment,{children:[k,d]}):g.jsxs(b.Fragment,{children:[d,k]}),u]})}),j_=b.createContext();function b7(e){return Oe("MuiTable",e)}Ee("MuiTable",["root","stickyHeader"]);const x7=e=>{const{classes:t,stickyHeader:n}=e;return Ne({root:["root",n&&"stickyHeader"]},b7,t)},S7=J("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})($e(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),ex="table",w7=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiTable"}),{className:o,component:i=ex,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=r,u={...r,component:i,padding:a,size:s,stickyHeader:l},d=x7(u),f=b.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return g.jsx(j_.Provider,{value:f,children:g.jsx(S7,{as:i,role:i===ex?null:"table",ref:n,className:ve(d.root,o),ownerState:u,...c})})}),Ec=b.createContext();function C7(e){return Oe("MuiTableBody",e)}Ee("MuiTableBody",["root"]);const _7=e=>{const{classes:t}=e;return Ne({root:["root"]},C7,t)},R7=J("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),T7={variant:"body"},tx="tbody",P7=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiTableBody"}),{className:o,component:i=tx,...a}=r,s={...r,component:i},l=_7(s);return g.jsx(Ec.Provider,{value:T7,children:g.jsx(R7,{className:ve(l.root,o),as:i,ref:n,role:i===tx?null:"rowgroup",ownerState:s,...a})})});function k7(e){return Oe("MuiTableCell",e)}const $7=Ee("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),E7=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ae(r)}`,o!=="normal"&&`padding${ae(o)}`,`size${ae(i)}`]};return Ne(s,k7,t)},M7=J("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ae(n.size)}`],n.padding!=="normal"&&t[`padding${ae(n.padding)}`],n.align!=="inherit"&&t[`align${ae(n.align)}`],n.stickyHeader&&t.stickyHeader]}})($e(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?ta(Be(e.palette.divider,1),.88):ea(Be(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${$7.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),ys=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d,...f}=r,p=b.useContext(j_),h=b.useContext(Ec),y=h&&h.variant==="head";let w;a?w=a:w=y?"th":"td";let v=l;w==="td"?v=void 0:!v&&y&&(v="col");const S=d||h&&h.variant,m={...r,align:o,component:w,padding:s||(p&&p.padding?p.padding:"normal"),size:c||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:S==="head"&&p&&p.stickyHeader,variant:S},C=E7(m);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),g.jsx(M7,{as:w,ref:n,className:ve(C.root,i),"aria-sort":_,scope:v,ownerState:m,...f})});function I7(e){return Oe("MuiTableContainer",e)}Ee("MuiTableContainer",["root"]);const O7=e=>{const{classes:t}=e;return Ne({root:["root"]},I7,t)},L7=J("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),A7=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=r,s={...r,component:i},l=O7(s);return g.jsx(L7,{ref:n,as:i,className:ve(l.root,o),ownerState:s,...a})});function N7(e){return Oe("MuiTableFooter",e)}Ee("MuiTableFooter",["root"]);const D7=e=>{const{classes:t}=e;return Ne({root:["root"]},N7,t)},j7=J("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),F7={variant:"footer"},nx="tfoot",B7=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiTableFooter"}),{className:o,component:i=nx,...a}=r,s={...r,component:i},l=D7(s);return g.jsx(Ec.Provider,{value:F7,children:g.jsx(j7,{as:i,className:ve(l.root,o),ref:n,role:i===nx?null:"rowgroup",ownerState:s,...a})})});function z7(e){return Oe("MuiTableHead",e)}Ee("MuiTableHead",["root"]);const H7=e=>{const{classes:t}=e;return Ne({root:["root"]},z7,t)},V7=J("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),W7={variant:"head"},rx="thead",U7=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiTableHead"}),{className:o,component:i=rx,...a}=r,s={...r,component:i},l=H7(s);return g.jsx(Ec.Provider,{value:W7,children:g.jsx(V7,{as:i,className:ve(l.root,o),ref:n,role:i===rx?null:"rowgroup",ownerState:s,...a})})});function G7(e){return Oe("MuiToolbar",e)}Ee("MuiToolbar",["root","gutters","regular","dense"]);const q7=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ne({root:["root",!n&&"gutters",r]},G7,t)},K7=J("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})($e(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),F_=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular",...l}=r,c={...r,component:i,disableGutters:a,variant:s},u=q7(c);return g.jsx(K7,{as:i,className:ve(u.root,o),ref:n,ownerState:c,...l})}),B_=un(g.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),z_=un(g.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Z7=b.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,disabled:i=!1,getItemAriaLabel:a,nextIconButtonProps:s,onPageChange:l,page:c,rowsPerPage:u,showFirstButton:d,showLastButton:f,slots:p={},slotProps:h={},...y}=t,w=Es(),v=H=>{l(H,0)},S=H=>{l(H,c-1)},m=H=>{l(H,c+1)},C=H=>{l(H,Math.max(0,Math.ceil(o/u)-1))},_=p.firstButton??hr,R=p.lastButton??hr,k=p.nextButton??hr,T=p.previousButton??hr,P=p.firstButtonIcon??$L,x=p.lastButtonIcon??EL,$=p.nextButtonIcon??z_,I=p.previousButtonIcon??B_,O=w?R:_,D=w?k:T,M=w?T:k,A=w?_:R,N=w?h.lastButton:h.firstButton,E=w?h.nextButton:h.previousButton,L=w?h.previousButton:h.nextButton,B=w?h.firstButton:h.lastButton;return g.jsxs("div",{ref:n,...y,children:[d&&g.jsx(O,{onClick:v,disabled:i||c===0,"aria-label":a("first",c),title:a("first",c),...N,children:w?g.jsx(x,{...h.lastButtonIcon}):g.jsx(P,{...h.firstButtonIcon})}),g.jsx(D,{onClick:S,disabled:i||c===0,color:"inherit","aria-label":a("previous",c),title:a("previous",c),...E??r,children:w?g.jsx($,{...h.nextButtonIcon}):g.jsx(I,{...h.previousButtonIcon})}),g.jsx(M,{onClick:m,disabled:i||(o!==-1?c>=Math.ceil(o/u)-1:!1),color:"inherit","aria-label":a("next",c),title:a("next",c),...L??s,children:w?g.jsx(I,{...h.previousButtonIcon}):g.jsx($,{...h.nextButtonIcon})}),f&&g.jsx(A,{onClick:C,disabled:i||c>=Math.ceil(o/u)-1,"aria-label":a("last",c),title:a("last",c),...B,children:w?g.jsx(P,{...h.firstButtonIcon}):g.jsx(x,{...h.lastButtonIcon})})]})});function Q7(e){return Oe("MuiTablePagination",e)}const Ol=Ee("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var ox;const Y7=J(ys,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})($e(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),X7=J(F_,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Ol.actions}`]:t.actions,...t.toolbar})})($e(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Ol.actions}`]:{flexShrink:0,marginLeft:20}}))),J7=J("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),eA=J("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})($e(({theme:e})=>({...e.typography.body2,flexShrink:0}))),tA=J(vp,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Ol.selectIcon}`]:t.selectIcon,[`& .${Ol.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ol.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),nA=J($c,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),rA=J("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})($e(({theme:e})=>({...e.typography.body2,flexShrink:0})));function oA({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function iA(e){return`Go to ${e} page`}const aA=e=>{const{classes:t}=e;return Ne({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Q7,t)},sA=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=Z7,backIconButtonProps:i,className:a,colSpan:s,component:l=ys,count:c,disabled:u=!1,getItemAriaLabel:d=iA,labelDisplayedRows:f=oA,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:h,onPageChange:y,onRowsPerPageChange:w,page:v,rowsPerPage:S,rowsPerPageOptions:m=[10,25,50,100],SelectProps:C={},showFirstButton:_=!1,showLastButton:R=!1,slotProps:k={},slots:T={},...P}=r,x=r,$=aA(x),I=(k==null?void 0:k.select)??C,O=I.native?"option":nA;let D;(l===ys||l==="td")&&(D=s||1e3);const M=ds(I.id),A=ds(I.labelId),N=()=>c===-1?(v+1)*S:S===-1?c:Math.min(c,(v+1)*S);return g.jsx(Y7,{colSpan:D,ref:n,as:l,ownerState:x,className:ve($.root,a),...P,children:g.jsxs(X7,{className:$.toolbar,children:[g.jsx(J7,{className:$.spacer}),m.length>1&&g.jsx(eA,{className:$.selectLabel,id:A,children:p}),m.length>1&&g.jsx(tA,{variant:"standard",...!I.variant&&{input:ox||(ox=g.jsx(mp,{}))},value:S,onChange:w,id:M,labelId:A,...I,classes:{...I.classes,root:ve($.input,$.selectRoot,(I.classes||{}).root),select:ve($.select,(I.classes||{}).select),icon:ve($.selectIcon,(I.classes||{}).icon)},disabled:u,children:m.map(E=>b.createElement(O,{...!Vd(O)&&{ownerState:x},className:$.menuItem,key:E.label?E.label:E,value:E.value?E.value:E},E.label?E.label:E))}),g.jsx(rA,{className:$.displayedRows,children:f({from:c===0?0:v*S+1,to:N(),count:c===-1?-1:c,page:v})}),g.jsx(o,{className:$.actions,backIconButtonProps:i,count:c,nextIconButtonProps:h,onPageChange:y,page:v,rowsPerPage:S,showFirstButton:_,showLastButton:R,slotProps:k.actions,slots:T.actions,getItemAriaLabel:d,disabled:u})]})})});function lA(e){return Oe("MuiTableRow",e)}const ix=Ee("MuiTableRow",["root","selected","hover","head","footer"]),cA=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Ne({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},lA,t)},uA=J("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})($e(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${ix.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ix.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),ax="tr",yp=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiTableRow"}),{className:o,component:i=ax,hover:a=!1,selected:s=!1,...l}=r,c=b.useContext(Ec),u={...r,component:i,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},d=cA(u);return g.jsx(uA,{as:i,ref:n,className:ve(d.root,o),role:i===ax?null:"row",ownerState:u,...l})}),dA=un(g.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function fA(e){return Oe("MuiTableSortLabel",e)}const yg=Ee("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),pA=e=>{const{classes:t,direction:n,active:r}=e,o={root:["root",r&&"active",`direction${ae(n)}`],icon:["icon",`iconDirection${ae(n)}`]};return Ne(o,fA,t)},gA=J(To,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})($e(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${yg.icon}`]:{opacity:.5}},[`&.${yg.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${yg.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),hA=J("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${ae(n.direction)}`]]}})($e(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),mA=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:i,className:a,direction:s="asc",hideSortIcon:l=!1,IconComponent:c=dA,...u}=r,d={...r,active:o,direction:s,hideSortIcon:l,IconComponent:c},f=pA(d);return g.jsxs(gA,{className:ve(f.root,a),component:"span",disableRipple:!0,ownerState:d,ref:n,...u,children:[i,l&&!o?null:g.jsx(hA,{as:c,className:ve(f.icon),ownerState:d})]})});function vA(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function yA(e,t,n,r={},o=()=>{}){const{ease:i=vA,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=f=>{if(c){o(new Error("Animation cancelled"));return}s===null&&(s=f);const p=Math.min(1,(f-s)/a);if(t[e]=i(p)*(n-l)+l,p>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}const bA={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function xA(e){const{onChange:t,...n}=e,r=b.useRef(),o=b.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Hr(()=>{const a=cp(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=zr(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),b.useEffect(()=>{i(),t(r.current)},[t]),g.jsx("div",{style:bA,ref:o,...n})}function SA(e){return Oe("MuiTabScrollButton",e)}const wA=Ee("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),CA=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ne({root:["root",n,r&&"disabled"]},SA,t)},_A=J(To,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${wA.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),RA=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiTabScrollButton"}),{className:o,slots:i={},slotProps:a={},direction:s,orientation:l,disabled:c,...u}=r,d=Es(),f={isRtl:d,...r},p=CA(f),h=i.StartScrollButtonIcon??B_,y=i.EndScrollButtonIcon??z_,w=na({elementType:h,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),v=na({elementType:y,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return g.jsx(_A,{component:"div",className:ve(p.root,o),ref:n,role:null,ownerState:f,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:s==="left"?g.jsx(h,{...w}):g.jsx(y,{...v})})});function TA(e){return Oe("MuiTabs",e)}const bg=Ee("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),sx=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,lx=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,mu=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},PA=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Ne({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},TA,l)},kA=J("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bg.scrollButtons}`]:t.scrollButtons},{[`& .${bg.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})($e(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${bg.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),$A=J("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),EA=J("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),MA=J("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})($e(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),IA=J(xA)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),cx={},OA=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiTabs"}),o=zt(),i=Es(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:d,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:y,orientation:w="horizontal",ScrollButtonComponent:v=RA,scrollButtons:S="auto",selectionFollowsFocus:m,slots:C={},slotProps:_={},TabIndicatorProps:R={},TabScrollButtonProps:k={},textColor:T="primary",value:P,variant:x="standard",visibleScrollbar:$=!1,...I}=r,O=x==="scrollable",D=w==="vertical",M=D?"scrollTop":"scrollLeft",A=D?"top":"left",N=D?"bottom":"right",E=D?"clientHeight":"clientWidth",L=D?"height":"width",B={...r,component:f,allowScrollButtonsMobile:p,indicatorColor:h,orientation:w,vertical:D,scrollButtons:S,textColor:T,variant:x,visibleScrollbar:$,fixed:!O,hideScrollbar:O&&!$,scrollableX:O&&!D,scrollableY:O&&D,centered:c&&!O,scrollButtonsHideMobile:!p},H=PA(B),z=na({elementType:C.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:B}),j=na({elementType:C.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:B}),[F,W]=b.useState(!1),[V,ee]=b.useState(cx),[re,U]=b.useState(!1),[K,se]=b.useState(!1),[q,ce]=b.useState(!1),[ue,ie]=b.useState({overflow:"hidden",scrollbarWidth:0}),te=new Map,de=b.useRef(null),Q=b.useRef(null),be=()=>{const oe=de.current;let me;if(oe){const Ve=oe.getBoundingClientRect();me={clientWidth:oe.clientWidth,scrollLeft:oe.scrollLeft,scrollTop:oe.scrollTop,scrollWidth:oe.scrollWidth,top:Ve.top,bottom:Ve.bottom,left:Ve.left,right:Ve.right}}let je;if(oe&&P!==!1){const Ve=Q.current.children;if(Ve.length>0){const Ye=Ve[te.get(P)];je=Ye?Ye.getBoundingClientRect():null}}return{tabsMeta:me,tabMeta:je}},Te=bn(()=>{const{tabsMeta:oe,tabMeta:me}=be();let je=0,Ve;D?(Ve="top",me&&oe&&(je=me.top-oe.top+oe.scrollTop)):(Ve=i?"right":"left",me&&oe&&(je=(i?-1:1)*(me[Ve]-oe[Ve]+oe.scrollLeft)));const Ye={[Ve]:je,[L]:me?me[L]:0};if(typeof V[Ve]!="number"||typeof V[L]!="number")ee(Ye);else{const Tt=Math.abs(V[Ve]-Ye[Ve]),Zt=Math.abs(V[L]-Ye[L]);(Tt>=1||Zt>=1)&&ee(Ye)}}),we=(oe,{animation:me=!0}={})=>{me?yA(M,de.current,oe,{duration:o.transitions.duration.standard}):de.current[M]=oe},ge=oe=>{let me=de.current[M];D?me+=oe:me+=oe*(i?-1:1),we(me)},le=()=>{const oe=de.current[E];let me=0;const je=Array.from(Q.current.children);for(let Ve=0;Veoe){Ve===0&&(me=oe);break}me+=Ye[E]}return me},Se=()=>{ge(-1*le())},ye=()=>{ge(le())},Ge=b.useCallback(oe=>{ie({overflow:null,scrollbarWidth:oe})},[]),Pe=()=>{const oe={};oe.scrollbarSizeListener=O?g.jsx(IA,{onChange:Ge,className:ve(H.scrollableX,H.hideScrollbar)}):null;const je=O&&(S==="auto"&&(re||K)||S===!0);return oe.scrollButtonStart=je?g.jsx(v,{slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:z},orientation:w,direction:i?"right":"left",onClick:Se,disabled:!re,...k,className:ve(H.scrollButtons,k.className)}):null,oe.scrollButtonEnd=je?g.jsx(v,{slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:j},orientation:w,direction:i?"left":"right",onClick:ye,disabled:!K,...k,className:ve(H.scrollButtons,k.className)}):null,oe},Re=bn(oe=>{const{tabsMeta:me,tabMeta:je}=be();if(!(!je||!me)){if(je[A]me[N]){const Ve=me[M]+(je[N]-me[N]);we(Ve,{animation:oe})}}}),ke=bn(()=>{O&&S!==!1&&ce(!q)});b.useEffect(()=>{const oe=cp(()=>{de.current&&Te()});let me;const je=Tt=>{Tt.forEach(Zt=>{Zt.removedNodes.forEach(Mn=>{me==null||me.unobserve(Mn)}),Zt.addedNodes.forEach(Mn=>{me==null||me.observe(Mn)})}),oe(),ke()},Ve=zr(de.current);Ve.addEventListener("resize",oe);let Ye;return typeof ResizeObserver<"u"&&(me=new ResizeObserver(oe),Array.from(Q.current.children).forEach(Tt=>{me.observe(Tt)})),typeof MutationObserver<"u"&&(Ye=new MutationObserver(je),Ye.observe(Q.current,{childList:!0})),()=>{oe.clear(),Ve.removeEventListener("resize",oe),Ye==null||Ye.disconnect(),me==null||me.disconnect()}},[Te,ke]),b.useEffect(()=>{const oe=Array.from(Q.current.children),me=oe.length;if(typeof IntersectionObserver<"u"&&me>0&&O&&S!==!1){const je=oe[0],Ve=oe[me-1],Ye={root:de.current,threshold:.99},Tt=Vn=>{U(!Vn[0].isIntersecting)},Zt=new IntersectionObserver(Tt,Ye);Zt.observe(je);const Mn=Vn=>{se(!Vn[0].isIntersecting)},ir=new IntersectionObserver(Mn,Ye);return ir.observe(Ve),()=>{Zt.disconnect(),ir.disconnect()}}},[O,S,q,u==null?void 0:u.length]),b.useEffect(()=>{W(!0)},[]),b.useEffect(()=>{Te()}),b.useEffect(()=>{Re(cx!==V)},[Re,V]),b.useImperativeHandle(l,()=>({updateIndicator:Te,updateScrollButtons:ke}),[Te,ke]);const pe=g.jsx(MA,{...R,className:ve(H.indicator,R.className),ownerState:B,style:{...V,...R.style}});let ne=0;const xe=b.Children.map(u,oe=>{if(!b.isValidElement(oe))return null;const me=oe.props.value===void 0?ne:oe.props.value;te.set(me,ne);const je=me===P;return ne+=1,b.cloneElement(oe,{fullWidth:x==="fullWidth",indicator:je&&!F&&pe,selected:je,selectionFollowsFocus:m,onChange:y,textColor:T,value:me,...ne===1&&P===!1&&!oe.props.tabIndex?{tabIndex:0}:{}})}),Le=oe=>{const me=Q.current,je=ln(me).activeElement;if(je.getAttribute("role")!=="tab")return;let Ye=w==="horizontal"?"ArrowLeft":"ArrowUp",Tt=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&i&&(Ye="ArrowRight",Tt="ArrowLeft"),oe.key){case Ye:oe.preventDefault(),mu(me,je,lx);break;case Tt:oe.preventDefault(),mu(me,je,sx);break;case"Home":oe.preventDefault(),mu(me,null,sx);break;case"End":oe.preventDefault(),mu(me,null,lx);break}},fe=Pe();return g.jsxs(kA,{className:ve(H.root,d),ownerState:B,ref:n,as:f,...I,children:[fe.scrollButtonStart,fe.scrollbarSizeListener,g.jsxs($A,{className:H.scroller,ownerState:B,style:{overflow:ue.overflow,[D?`margin${i?"Left":"Right"}`:"marginBottom"]:$?void 0:-ue.scrollbarWidth},ref:de,children:[g.jsx(EA,{"aria-label":a,"aria-labelledby":s,"aria-orientation":w==="vertical"?"vertical":null,className:H.flexContainer,ownerState:B,onKeyDown:Le,ref:Q,role:"tablist",children:xe}),F&&pe]}),fe.scrollButtonEnd]})});function LA(e){return Oe("MuiTextField",e)}Ee("MuiTextField",["root"]);const AA={standard:Gd,filled:Ud,outlined:qd},NA=e=>{const{classes:t}=e;return Ne({root:["root"]},LA,t)},DA=J(EO,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jA=b.forwardRef(function(t,n){const r=De({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:h,id:y,InputLabelProps:w,inputProps:v,InputProps:S,inputRef:m,label:C,maxRows:_,minRows:R,multiline:k=!1,name:T,onBlur:P,onChange:x,onFocus:$,placeholder:I,required:O=!1,rows:D,select:M=!1,SelectProps:A,slots:N={},slotProps:E={},type:L,value:B,variant:H="outlined",...z}=r,j={...r,autoFocus:i,color:l,disabled:u,error:d,fullWidth:p,multiline:k,required:O,select:M,variant:H},F=NA(j),W=ds(y),V=h&&W?`${W}-helper-text`:void 0,ee=C&&W?`${W}-label`:void 0,re=AA[H],U={slots:N,slotProps:{input:S,inputLabel:w,htmlInput:v,formHelperText:f,select:A,...E}},K={},se=U.slotProps.inputLabel;H==="outlined"&&(se&&typeof se.shrink<"u"&&(K.notched=se.shrink),K.label=C),M&&((!A||!A.native)&&(K.id=void 0),K["aria-describedby"]=void 0);const[q,ce]=an("input",{elementType:re,externalForwardedProps:U,additionalProps:K,ownerState:j}),[ue,ie]=an("inputLabel",{elementType:YO,externalForwardedProps:U,ownerState:j}),[te,de]=an("htmlInput",{elementType:"input",externalForwardedProps:U,ownerState:j}),[Q,be]=an("formHelperText",{elementType:jO,externalForwardedProps:U,ownerState:j}),[Te,we]=an("select",{elementType:vp,externalForwardedProps:U,ownerState:j}),ge=g.jsx(q,{"aria-describedby":V,autoComplete:o,autoFocus:i,defaultValue:c,fullWidth:p,multiline:k,name:T,rows:D,maxRows:_,minRows:R,type:L,value:B,id:W,inputRef:m,onBlur:P,onChange:x,onFocus:$,placeholder:I,inputProps:de,slots:{input:N.htmlInput?te:void 0},...ce});return g.jsxs(DA,{className:ve(F.root,s),disabled:u,error:d,fullWidth:p,ref:n,required:O,color:l,variant:H,ownerState:j,...z,children:[C!=null&&C!==""&&g.jsx(ue,{htmlFor:W,id:ee,...ie,children:C}),M?g.jsx(Te,{"aria-describedby":V,id:W,labelId:ee,value:B,input:ge,...we,children:a}):ge,h&&g.jsx(Q,{id:V,...be,children:h})]})});var FA={exports:{}};/* @license +Papa Parse +v5.4.1 +https://github.com/mholt/PapaParse +License: MIT +*/(function(e,t){(function(n,r){e.exports=r()})(jl,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},o=!r.document&&!!r.postMessage,i=r.IS_PAPA_WORKER||!1,a={},s=0,l={parse:function(T,P){var x=(P=P||{}).dynamicTyping||!1;if(k(x)&&(P.dynamicTypingFunction=x,x={}),P.dynamicTyping=x,P.transform=!!k(P.transform)&&P.transform,P.worker&&l.WORKERS_SUPPORTED){var $=function(){if(!l.WORKERS_SUPPORTED)return!1;var O=(M=r.URL||r.webkitURL||null,A=n.toString(),l.BLOB_URL||(l.BLOB_URL=M.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",A,")();"],{type:"text/javascript"})))),D=new r.Worker(O),M,A;return D.onmessage=S,D.id=s++,a[D.id]=D}();return $.userStep=P.step,$.userChunk=P.chunk,$.userComplete=P.complete,$.userError=P.error,P.step=k(P.step),P.chunk=k(P.chunk),P.complete=k(P.complete),P.error=k(P.error),delete P.worker,void $.postMessage({input:T,config:P,workerId:$.id})}var I=null;return l.NODE_STREAM_INPUT,typeof T=="string"?(T=function(O){return O.charCodeAt(0)===65279?O.slice(1):O}(T),I=P.download?new d(P):new p(P)):T.readable===!0&&k(T.read)&&k(T.on)?I=new h(P):(r.File&&T instanceof File||T instanceof Object)&&(I=new f(P)),I.stream(T)},unparse:function(T,P){var x=!1,$=!0,I=",",O=`\r +`,D='"',M=D+D,A=!1,N=null,E=!1;(function(){if(typeof P=="object"){if(typeof P.delimiter!="string"||l.BAD_DELIMITERS.filter(function(z){return P.delimiter.indexOf(z)!==-1}).length||(I=P.delimiter),(typeof P.quotes=="boolean"||typeof P.quotes=="function"||Array.isArray(P.quotes))&&(x=P.quotes),typeof P.skipEmptyLines!="boolean"&&typeof P.skipEmptyLines!="string"||(A=P.skipEmptyLines),typeof P.newline=="string"&&(O=P.newline),typeof P.quoteChar=="string"&&(D=P.quoteChar),typeof P.header=="boolean"&&($=P.header),Array.isArray(P.columns)){if(P.columns.length===0)throw new Error("Option columns is empty");N=P.columns}P.escapeChar!==void 0&&(M=P.escapeChar+D),(typeof P.escapeFormulae=="boolean"||P.escapeFormulae instanceof RegExp)&&(E=P.escapeFormulae instanceof RegExp?P.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var L=new RegExp(w(D),"g");if(typeof T=="string"&&(T=JSON.parse(T)),Array.isArray(T)){if(!T.length||Array.isArray(T[0]))return B(null,T,A);if(typeof T[0]=="object")return B(N||Object.keys(T[0]),T,A)}else if(typeof T=="object")return typeof T.data=="string"&&(T.data=JSON.parse(T.data)),Array.isArray(T.data)&&(T.fields||(T.fields=T.meta&&T.meta.fields||N),T.fields||(T.fields=Array.isArray(T.data[0])?T.fields:typeof T.data[0]=="object"?Object.keys(T.data[0]):[]),Array.isArray(T.data[0])||typeof T.data[0]=="object"||(T.data=[T.data])),B(T.fields||[],T.data||[],A);throw new Error("Unable to serialize unrecognized input");function B(z,j,F){var W="";typeof z=="string"&&(z=JSON.parse(z)),typeof j=="string"&&(j=JSON.parse(j));var V=Array.isArray(z)&&0=this._config.preview;if(i)r.postMessage({results:O,workerId:l.WORKER_ID,finished:M});else if(k(this._config.chunk)&&!x){if(this._config.chunk(O,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);O=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(O.data),this._completeResults.errors=this._completeResults.errors.concat(O.errors),this._completeResults.meta=O.meta),this._completed||!M||!k(this._config.complete)||O&&O.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),M||O&&O.meta.paused||this._nextChunk(),O}this._halted=!0},this._sendError=function(P){k(this._config.error)?this._config.error(P):i&&this._config.error&&r.postMessage({workerId:l.WORKER_ID,error:P,finished:!1})}}function d(T){var P;(T=T||{}).chunkSize||(T.chunkSize=l.RemoteChunkSize),u.call(this,T),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(x){this._input=x,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(P=new XMLHttpRequest,this._config.withCredentials&&(P.withCredentials=this._config.withCredentials),o||(P.onload=R(this._chunkLoaded,this),P.onerror=R(this._chunkError,this)),P.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var x=this._config.downloadRequestHeaders;for(var $ in x)P.setRequestHeader($,x[$])}if(this._config.chunkSize){var I=this._start+this._config.chunkSize-1;P.setRequestHeader("Range","bytes="+this._start+"-"+I)}try{P.send(this._config.downloadRequestBody)}catch(O){this._chunkError(O.message)}o&&P.status===0&&this._chunkError()}},this._chunkLoaded=function(){P.readyState===4&&(P.status<200||400<=P.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:P.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(x){var $=x.getResponseHeader("Content-Range");return $===null?-1:parseInt($.substring($.lastIndexOf("/")+1))}(P),this.parseChunk(P.responseText)))},this._chunkError=function(x){var $=P.statusText||x;this._sendError(new Error($))}}function f(T){var P,x;(T=T||{}).chunkSize||(T.chunkSize=l.LocalChunkSize),u.call(this,T);var $=typeof FileReader<"u";this.stream=function(I){this._input=I,x=I.slice||I.webkitSlice||I.mozSlice,$?((P=new FileReader).onload=R(this._chunkLoaded,this),P.onerror=R(this._chunkError,this)):P=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(I.target.result)},this._chunkError=function(){this._sendError(P.error)}}function p(T){var P;u.call(this,T=T||{}),this.stream=function(x){return P=x,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var x,$=this._config.chunkSize;return $?(x=P.substring(0,$),P=P.substring($)):(x=P,P=""),this._finished=!P,this.parseChunk(x)}}}function h(T){u.call(this,T=T||{});var P=[],x=!0,$=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(I){this._input=I,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){$&&P.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),P.length?this.parseChunk(P.shift()):x=!0},this._streamData=R(function(I){try{P.push(typeof I=="string"?I:I.toString(this._config.encoding)),x&&(x=!1,this._checkIsFinished(),this.parseChunk(P.shift()))}catch(O){this._streamError(O)}},this),this._streamError=R(function(I){this._streamCleanUp(),this._sendError(I)},this),this._streamEnd=R(function(){this._streamCleanUp(),$=!0,this._streamData("")},this),this._streamCleanUp=R(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function y(T){var P,x,$,I=Math.pow(2,53),O=-I,D=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,M=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,A=this,N=0,E=0,L=!1,B=!1,H=[],z={data:[],errors:[],meta:{}};if(k(T.step)){var j=T.step;T.step=function(U){if(z=U,V())W();else{if(W(),z.data.length===0)return;N+=U.data.length,T.preview&&N>T.preview?x.abort():(z.data=z.data[0],j(z,A))}}}function F(U){return T.skipEmptyLines==="greedy"?U.join("").trim()==="":U.length===1&&U[0].length===0}function W(){return z&&$&&(re("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),$=!1),T.skipEmptyLines&&(z.data=z.data.filter(function(U){return!F(U)})),V()&&function(){if(!z)return;function U(se,q){k(T.transformHeader)&&(se=T.transformHeader(se,q)),H.push(se)}if(Array.isArray(z.data[0])){for(var K=0;V()&&K=H.length?"__parsed_extra":H[ce]),T.transform&&(te=T.transform(te,ie)),te=ee(ie,te),ie==="__parsed_extra"?(ue[ie]=ue[ie]||[],ue[ie].push(te)):ue[ie]=te}return T.header&&(ce>H.length?re("FieldMismatch","TooManyFields","Too many fields: expected "+H.length+" fields but parsed "+ce,E+q):ce=Q.length/2?`\r +`:"\r"}(U,q)),$=!1,T.delimiter)k(T.delimiter)&&(T.delimiter=T.delimiter(U),z.meta.delimiter=T.delimiter);else{var ce=function(ie,te,de,Q,be){var Te,we,ge,le;be=be||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var Se=0;Se=D)return xe(!0)}else for(ye=N,N++;;){if((ye=L.indexOf(P,ye+1))===-1)return H||re.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ee.length,index:N}),pe();if(ye===z-1)return pe(L.substring(N,ye).replace(Se,P));if(P!==A||L[ye+1]!==A){if(P===A||ye===0||L[ye-1]!==A){ge!==-1&&ge=D)return xe(!0);break}re.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ee.length,index:N}),ye++}}else ye++}return pe();function Re(fe){ee.push(fe),K=N}function ke(fe){var oe=0;if(fe!==-1){var me=L.substring(ye+1,fe);me&&me.trim()===""&&(oe=me.length)}return oe}function pe(fe){return H||(fe===void 0&&(fe=L.substring(N)),U.push(fe),N=z,Re(U),V&&Le()),xe()}function ne(fe){N=fe,Re(U),U=[],le=L.indexOf($,N)}function xe(fe){return{data:ee,errors:re,meta:{delimiter:x,linebreak:$,aborted:E,truncated:!!fe,cursor:K+(B||0)}}}function Le(){O(xe()),ee=[],re=[]}},this.abort=function(){E=!0},this.getCharIndex=function(){return N}}function S(T){var P=T.data,x=a[P.workerId],$=!1;if(P.error)x.userError(P.error,P.file);else if(P.results&&P.results.data){var I={abort:function(){$=!0,m(P.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:C,resume:C};if(k(x.userStep)){for(var O=0;O{const{size:t,width:n=16,height:r=16,sx:o,...i}=e;return g.jsx(ra,{sx:{fill:"none",width:t||n,height:t||r,...o},viewBox:"0 0 16 16",...i,children:e.children},void 0)},BA=e=>{const{sx:t,...n}=e;return g.jsx(ra,{sx:{fill:"none",width:24,height:24,...t},viewBox:"0 0 24 24",...n,children:e.children},void 0)},H_=e=>{const{sx:t,...n}=e;return g.jsx(ra,{sx:{fill:"none",width:14,height:14,...t},viewBox:"0 0 14 14",...n,children:e.children},void 0)},zA=e=>g.jsx(BA,{...e,children:g.jsx("path",{d:"M18.861 16.1166C17.4619 18.4433 14.9127 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12H22C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C15.6409 22 18.8274 20.0542 20.5762 17.1457L18.861 16.1166Z",fill:"#1D2939"},void 0)},void 0),HA=e=>g.jsx(H_,{...e,children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.08871 1.5C3.55444 1.5 1.5 3.55444 1.5 6.08871C1.5 8.62298 3.55444 10.6774 6.08871 10.6774C7.17572 10.6774 8.17445 10.2995 8.96065 9.66778L11.75 12.4571L12.4571 11.75L9.66776 8.96067C10.2994 8.17447 10.6774 7.17573 10.6774 6.08871C10.6774 3.55444 8.62298 1.5 6.08871 1.5ZM2.5 6.08871C2.5 4.10672 4.10672 2.5 6.08871 2.5C8.0707 2.5 9.67742 4.10672 9.67742 6.08871C9.67742 8.0707 8.0707 9.67742 6.08871 9.67742C4.10672 9.67742 2.5 8.0707 2.5 6.08871Z",fill:"#1D2939"},void 0)},void 0),VA=e=>g.jsx(H_,{...e,children:g.jsx("path",{d:"M6.99999 7.91921L3.45958 11.4596L2.54034 10.5404L6.08075 6.99997L2.54039 3.45961L3.45963 2.54037L6.99999 6.08073L10.5403 2.54037L11.4596 3.45961L7.91923 6.99997L11.4596 10.5404L10.5404 11.4596L6.99999 7.91921Z",fill:"#1D2939"},void 0)},void 0),O1=e=>g.jsx(Cn,{...e,children:g.jsx("path",{d:"M4.40029 3.55174C4.16598 3.31743 3.78608 3.31743 3.55177 3.55174C3.31745 3.78606 3.31745 4.16596 3.55177 4.40027L7.15147 7.99998L3.55178 11.5997C3.31746 11.834 3.31746 12.2139 3.55178 12.4482C3.78609 12.6825 4.16599 12.6825 4.40031 12.4482L8 8.84851L11.5997 12.4482C11.834 12.6825 12.2139 12.6825 12.4482 12.4482C12.6825 12.2139 12.6825 11.834 12.4482 11.5997L8.84853 7.99998L12.4482 4.40027C12.6826 4.16596 12.6826 3.78606 12.4482 3.55174C12.2139 3.31743 11.834 3.31743 11.5997 3.55174L8 7.15145L4.40029 3.55174Z",fill:"currentColor"},void 0)},void 0),WA=e=>g.jsxs(Cn,{...e,children:[g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.04214 5.95918C6.65053 5.95918 5.52241 7.0873 5.52241 8.47891C5.52241 9.87051 6.65053 10.9986 8.04214 10.9986C9.43374 10.9986 10.5619 9.87051 10.5619 8.47891C10.5619 7.0873 9.43374 5.95918 8.04214 5.95918ZM6.52241 8.47891C6.52241 7.63958 7.20281 6.95918 8.04214 6.95918C8.88146 6.95918 9.56187 7.63958 9.56187 8.47891C9.56187 9.31823 8.88146 9.99864 8.04214 9.99864C7.20281 9.99864 6.52241 9.31823 6.52241 8.47891Z",fill:"currentColor"},void 0),g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9094 8.18455C14.9095 8.1847 14.9096 8.18483 14.5053 8.47891C14.9096 8.77299 14.9095 8.77312 14.9094 8.77327L14.9084 8.77465L14.9062 8.77775L14.8984 8.78819L14.8705 8.82542C14.8464 8.85725 14.8114 8.90281 14.766 8.96015C14.6753 9.07477 14.543 9.23673 14.3733 9.43024C14.0346 9.8166 13.544 10.3323 12.9362 10.8492C11.7356 11.8704 10.0053 12.9578 8.04214 12.9578C6.07894 12.9578 4.34871 11.8704 3.14808 10.8492C2.54026 10.3323 2.04969 9.8166 1.71095 9.43024C1.54128 9.23673 1.40893 9.07477 1.31822 8.96015C1.27285 8.90281 1.23784 8.85725 1.21374 8.82542L1.18582 8.78819L1.17811 8.77775L1.17584 8.77465L1.1751 8.77363C1.17499 8.77349 1.17463 8.77299 1.579 8.47891C1.17463 8.18483 1.17472 8.1847 1.17483 8.18455L1.17584 8.18318L1.17811 8.18007L1.18582 8.16963L1.21374 8.1324C1.23784 8.10057 1.27285 8.05501 1.31822 7.99767C1.40893 7.88305 1.54128 7.72109 1.71095 7.52758C2.04969 7.14122 2.54026 6.62552 3.14808 6.10858C4.34871 5.08746 6.07894 4 8.04214 4C10.0053 4 11.7356 5.08746 12.9362 6.10858C13.544 6.62552 14.0346 7.14122 14.3733 7.52758C14.543 7.72109 14.6753 7.88305 14.766 7.99767C14.8114 8.05501 14.8464 8.10057 14.8705 8.1324L14.8984 8.16963L14.9062 8.18007L14.9084 8.18318L14.9094 8.18455ZM2.46287 8.77099C2.36639 8.66095 2.28336 8.56242 2.21478 8.47891C2.28336 8.3954 2.36639 8.29687 2.46287 8.18683C2.77823 7.82714 3.23416 7.34812 3.79594 6.87033C4.93451 5.902 6.43584 5 8.04214 5C9.64843 5 11.1498 5.902 12.2883 6.87033C12.8501 7.34812 13.306 7.82714 13.6214 8.18683C13.7179 8.29687 13.8009 8.3954 13.8695 8.47891C13.8009 8.56241 13.7179 8.66095 13.6214 8.77099C13.306 9.13068 12.8501 9.6097 12.2883 10.0875C11.1498 11.0558 9.64843 11.9578 8.04214 11.9578C6.43584 11.9578 4.93451 11.0558 3.79594 10.0875C3.23416 9.6097 2.77823 9.13068 2.46287 8.77099Z",fill:"currentColor"},void 0),g.jsx("path",{d:"M14.5053 8.47891L14.9094 8.18455C15.0369 8.35988 15.0369 8.59794 14.9094 8.77327L14.5053 8.47891Z",fill:"currentColor"},void 0),g.jsx("path",{d:"M1.17483 8.18455L1.579 8.47891L1.1751 8.77363C1.0476 8.59831 1.04733 8.35988 1.17483 8.18455Z",fill:"currentColor"},void 0)]},void 0),UA=e=>g.jsxs(Cn,{...e,children:[g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.1106 3.65519C13.301 3.85517 13.2933 4.17165 13.0933 4.36209L9.97993 7.32691C9.96934 7.33914 9.95806 7.35097 9.94609 7.36234C9.93431 7.37355 9.92213 7.38406 9.90959 7.39389L3.64235 13.3621C3.44238 13.5525 3.12589 13.5448 2.93546 13.3448C2.74503 13.1448 2.75276 12.8283 2.95274 12.6379L4.06813 11.5757C3.24267 11.0059 2.55654 10.3585 2.06343 9.83657C1.78455 9.5414 1.56492 9.28373 1.41417 9.09871C1.33874 9.00614 1.28041 8.93157 1.24038 8.87939C1.22036 8.85329 1.2049 8.83278 1.19416 8.81838L1.1816 8.80145L1.178 8.79656L1.17688 8.79502C1.17682 8.79493 1.17621 8.79411 1.58059 8.50003C1.17621 8.20595 1.17631 8.20582 1.17642 8.20567L1.17742 8.20429L1.17969 8.2012L1.18738 8.19078L1.21522 8.15366C1.23926 8.12192 1.27416 8.07649 1.3194 8.01932C1.40984 7.90503 1.54179 7.74357 1.71095 7.55063C2.04868 7.16543 2.53777 6.65128 3.14377 6.13589C4.34075 5.11787 6.06595 4.03351 8.02359 4.03351C9.14779 4.03351 10.1926 4.39154 11.0977 4.88158L12.4037 3.63791C12.6037 3.44748 12.9201 3.45522 13.1106 3.65519ZM9.58316 6.32385L10.331 5.61171C9.60548 5.25934 8.82649 5.03351 8.02359 5.03351C6.42286 5.03351 4.92655 5.93241 3.79163 6.89765C3.23168 7.37388 2.77721 7.85136 2.46287 8.20989C2.36709 8.31913 2.2846 8.417 2.2164 8.50003C2.35319 8.66654 2.54714 8.89243 2.7903 9.14979C3.28839 9.67696 3.98395 10.3265 4.8096 10.8696L5.77368 9.95157C5.5034 9.53331 5.34632 9.03452 5.34632 8.50002C5.34632 7.02144 6.54494 5.82282 8.02352 5.82282C8.6053 5.82282 9.14412 6.00876 9.58316 6.32385ZM6.51881 9.24199C6.40832 9.01845 6.34632 8.76679 6.34632 8.50002C6.34632 7.57372 7.09723 6.82282 8.02352 6.82282C8.31925 6.82282 8.59685 6.89911 8.83805 7.03341L6.51881 9.24199Z",fill:"currentColor"},void 0),g.jsx("path",{d:"M1.58059 8.50003L1.17621 8.79411C1.04871 8.61878 1.04891 8.38099 1.17642 8.20567L1.58059 8.50003Z",fill:"currentColor"},void 0),g.jsx("path",{d:"M12.1782 6.17688C12.3566 5.96615 12.6721 5.93998 12.8828 6.11843C13.495 6.63678 13.9892 7.15531 14.3305 7.54409C14.5015 7.73883 14.6348 7.90192 14.7262 8.01738C14.772 8.07514 14.8073 8.12105 14.8315 8.15312L14.8597 8.19063L14.8675 8.20116L14.8698 8.20428L14.8705 8.2053C14.8705 8.20536 14.871 8.20595 14.4666 8.50003C14.871 8.79411 14.8709 8.79424 14.8708 8.79438L14.8698 8.79576L14.8675 8.79885L14.8598 8.80927L14.832 8.84639C14.8079 8.87813 14.773 8.92356 14.7278 8.98073C14.6373 9.09502 14.5054 9.25649 14.3362 9.44942C13.9985 9.83462 13.5094 10.3488 12.9034 10.8642C11.7064 11.8822 9.98123 12.9665 8.02359 12.9665C7.44356 12.9665 6.8846 12.8711 6.35578 12.7118C6.09137 12.6322 5.9416 12.3533 6.02125 12.0889C6.1009 11.8245 6.37981 11.6747 6.64422 11.7543C7.09234 11.8893 7.55384 11.9665 8.02359 11.9665C9.62432 11.9665 11.1206 11.0676 12.2555 10.1024C12.8155 9.62617 13.27 9.14869 13.5843 8.79017C13.6801 8.68092 13.7626 8.58305 13.8308 8.50002C13.7613 8.41547 13.677 8.31551 13.579 8.20382C13.2613 7.84189 12.8021 7.36041 12.2366 6.88157C12.0259 6.70311 11.9997 6.38761 12.1782 6.17688Z",fill:"currentColor"},void 0),g.jsx("path",{d:"M14.4666 8.50003L14.8705 8.2053C14.998 8.38062 14.9983 8.61906 14.8708 8.79438L14.4666 8.50003Z",fill:"currentColor"},void 0),g.jsx("path",{d:"M10.7007 8.50002C10.7007 8.22388 10.4769 8.00002 10.2007 8.00002C9.92458 8.00002 9.70072 8.22388 9.70072 8.50002C9.70072 9.42631 8.94981 10.1772 8.02352 10.1772C7.74738 10.1772 7.52352 10.4011 7.52352 10.6772C7.52352 10.9534 7.74738 11.1772 8.02352 11.1772C9.5021 11.1772 10.7007 9.9786 10.7007 8.50002Z",fill:"currentColor"},void 0)]},void 0),_m=e=>g.jsxs(Cn,{...e,children:[g.jsx("path",{d:"M9.60001 2.10001C9.32387 2.10001 9.10001 2.32386 9.10001 2.60001C9.10001 2.87615 9.32387 3.10001 9.60001 3.10001L12.5722 3.10001L8.23955 7.60704C8.04818 7.80612 8.05442 8.12264 8.25349 8.31401C8.45257 8.50538 8.76909 8.49914 8.96046 8.30007L13.2465 3.8416V6.45354C13.2465 6.72968 13.4703 6.95354 13.7465 6.95354C14.0226 6.95354 14.2465 6.72968 14.2465 6.45354V2.60001C14.2465 2.32387 14.0226 2.10001 13.7465 2.10001H9.60001Z",fill:"currentColor"},void 0),g.jsx("path",{d:"M3.60001 14.5L11.6 14.5C12.4284 14.5 13.1 13.8284 13.1 13V8.95355C13.1 8.67741 12.8761 8.45355 12.6 8.45355C12.3239 8.45355 12.1 8.67741 12.1 8.95355V13C12.1 13.2761 11.8761 13.5 11.6 13.5L3.60001 13.5C3.32386 13.5 3.10001 13.2761 3.10001 13L3.10001 4.45355C3.10001 4.17741 3.32386 3.95355 3.60001 3.95355L7.10001 3.95355C7.37615 3.95355 7.60001 3.7297 7.60001 3.45355C7.60001 3.17741 7.37615 2.95355 7.10001 2.95355L3.60001 2.95355C2.77158 2.95355 2.10001 3.62513 2.10001 4.45355V13C2.10001 13.8284 2.77158 14.5 3.60001 14.5Z",fill:"currentColor"},void 0)]},void 0),GA=e=>g.jsx(Cn,{...e,children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9348 2.51687C11.2017 2.75702 11.2233 3.16801 10.9831 3.43484L6.87449 8.00001L10.9831 12.5652C11.2233 12.832 11.2017 13.243 10.9348 13.4832C10.668 13.7233 10.257 13.7017 10.0169 13.4348L5.51686 8.43484C5.29439 8.18764 5.29439 7.81238 5.51686 7.56518L10.0169 2.56518C10.257 2.29835 10.668 2.27672 10.9348 2.51687Z",fill:"currentColor"},void 0)},void 0),qA=e=>g.jsx(Cn,{...e,children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.56518 2.51687C5.29835 2.75702 5.27672 3.16801 5.51687 3.43484L9.62553 8.00001L5.51687 12.5652C5.27672 12.832 5.29835 13.243 5.56518 13.4832C5.83202 13.7233 6.243 13.7017 6.48315 13.4348L10.9832 8.43484C11.2056 8.18764 11.2056 7.81238 10.9832 7.56518L6.48315 2.56518C6.243 2.29835 5.83202 2.27672 5.56518 2.51687Z",fill:"currentColor"},void 0)},void 0),KA=e=>g.jsx(Cn,{...e,children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.58839 5.49693C7.82783 5.30103 8.17216 5.30103 8.4116 5.49693L13.9116 9.99693C14.1894 10.2243 14.2304 10.6338 14.0031 10.9116C13.7757 11.1894 13.3662 11.2304 13.0884 11.0031L8 6.83985L2.9116 11.0031C2.63376 11.2304 2.22425 11.1894 1.99692 10.9116C1.7696 10.6338 1.81055 10.2243 2.08839 9.99693L7.58839 5.49693Z",fill:"currentColor"},void 0)},void 0),ia=e=>g.jsx(Cn,{...e,children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.58839 11.0031C7.82783 11.199 8.17216 11.199 8.4116 11.0031L13.9116 6.50307C14.1894 6.27574 14.2304 5.86623 14.0031 5.58839C13.7757 5.31055 13.3662 5.2696 13.0884 5.49692L8 9.66016L2.9116 5.49692C2.63376 5.2696 2.22425 5.31055 1.99692 5.58839C1.7696 5.86623 1.81055 6.27574 2.08839 6.50307L7.58839 11.0031Z",fill:"currentColor"},void 0)},void 0),ZA=e=>g.jsx(Cn,{...e,children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3758 3.37871C13.5718 3.18427 13.5732 2.86769 13.3787 2.67161C13.1843 2.47553 12.8677 2.47421 12.6716 2.66865L7.21656 8.07829C5.97323 6.96347 4.06051 7.00362 2.8654 8.19873C1.62874 9.43539 1.62874 11.4404 2.8654 12.6771C4.10206 13.9137 6.10708 13.9137 7.34374 12.6771C8.37873 11.6421 8.54751 10.0689 7.85009 8.85838L9.64093 7.08244L11.3233 8.76477C11.5185 8.96003 11.8351 8.96003 12.0304 8.76477C12.2256 8.56951 12.2256 8.25292 12.0304 8.05766L10.351 6.37829L11.3316 5.40586L13.0068 7.08109C13.2021 7.27636 13.5187 7.27636 13.7139 7.08109C13.9092 6.88583 13.9092 6.56925 13.7139 6.37399L12.0417 4.70171L13.3758 3.37871ZM3.5725 8.90584C4.41864 8.0597 5.7905 8.0597 6.63663 8.90584C7.48277 9.75197 7.48277 11.1238 6.63663 11.97C5.7905 12.8161 4.41864 12.8161 3.5725 11.97C2.72637 11.1238 2.72637 9.75197 3.5725 8.90584Z",fill:"currentColor"},void 0)},void 0),QA=e=>g.jsx(Cn,{...e,children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3.69999C5.62518 3.69999 3.7 5.62516 3.7 7.99999C3.7 10.3748 5.62518 12.3 8 12.3C9.20303 12.3 10.2896 11.8069 11.0709 11.01C11.3415 10.7339 11.7847 10.7295 12.0608 11.0001C12.3368 11.2708 12.3412 11.7139 12.0706 11.99C11.0369 13.0445 9.59437 13.7 8 13.7C4.85198 13.7 2.3 11.148 2.3 7.99999C2.3 4.85196 4.85198 2.29999 8 2.29999C11.148 2.29999 13.7 4.85196 13.7 7.99999C13.7 8.38659 13.3866 8.69999 13 8.69999C12.6134 8.69999 12.3 8.38659 12.3 7.99999C12.3 5.62516 10.3748 3.69999 8 3.69999Z",fill:"currentColor"},void 0)},void 0),YA=e=>g.jsxs(Cn,{...e,children:[g.jsx("path",{d:"M8 7.35C8.35898 7.35 8.65 7.64102 8.65 8V10.5C8.65 10.859 8.35898 11.15 8 11.15C7.64102 11.15 7.35 10.859 7.35 10.5V8C7.35 7.64102 7.64102 7.35 8 7.35Z",fill:"currentColor"},void 0),g.jsx("path",{d:"M8.65 5.5C8.65 5.14101 8.35898 4.85 8 4.85C7.64102 4.85 7.35 5.14102 7.35 5.5V5.6C7.35 5.95898 7.64102 6.25 8 6.25C8.35898 6.25 8.65 5.95898 8.65 5.6V5.5Z",fill:"currentColor"},void 0),g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8ZM8 2.5C4.96243 2.5 2.5 4.96243 2.5 8C2.5 11.0376 4.96243 13.5 8 13.5C11.0376 13.5 13.5 11.0376 13.5 8C13.5 4.96243 11.0376 2.5 8 2.5Z",fill:"currentColor"},void 0)]},void 0),Rm=e=>g.jsx(Cn,{...e,children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM8 7.38747C8.33828 7.38747 8.6125 7.6617 8.6125 7.99997V10.5521C8.6125 10.8903 8.33828 11.1646 8 11.1646C7.66173 11.1646 7.3875 10.8903 7.3875 10.5521V7.99997C7.3875 7.6617 7.66173 7.38747 8 7.38747ZM8.6125 5.44789C8.6125 5.10962 8.33828 4.83539 8 4.83539C7.66173 4.83539 7.3875 5.10962 7.3875 5.44789V5.54997C7.3875 5.88825 7.66173 6.16247 8 6.16247C8.33828 6.16247 8.6125 5.88825 8.6125 5.54997V5.44789Z",fill:"currentColor"},void 0)},void 0),V_=e=>g.jsx(Cn,{...e,children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.14215 1.67713C8.64833 0.774291 7.35164 0.774289 6.85782 1.67713L1.16152 12.0915C0.686995 12.9591 1.31483 14.0181 2.30368 14.0181H13.6963C14.6851 14.0181 15.313 12.9591 14.8385 12.0915L9.14215 1.67713ZM8.00002 5.28887C8.3336 5.28887 8.60402 5.55929 8.60402 5.89287V8.40953C8.60402 8.74311 8.3336 9.01353 8.00002 9.01353C7.66644 9.01353 7.39602 8.74311 7.39602 8.40953V5.89287C7.39602 5.55929 7.66644 5.28887 8.00002 5.28887ZM8.60402 10.9262C8.60402 10.5926 8.3336 10.3222 8.00002 10.3222C7.66644 10.3222 7.39602 10.5926 7.39602 10.9262V11.0269C7.39602 11.3604 7.66644 11.6309 8.00002 11.6309C8.3336 11.6309 8.60402 11.3604 8.60402 11.0269V10.9262Z",fill:"currentColor"},void 0)},void 0),W_=e=>g.jsx(Cn,{...e,children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM5.52524 5.5252C5.76443 5.28601 6.15224 5.28601 6.39144 5.5252L8 7.13377L9.60857 5.5252C9.84776 5.28601 10.2356 5.28601 10.4748 5.5252C10.714 5.7644 10.714 6.15221 10.4748 6.39141L8.86621 7.99997L10.4748 9.60854C10.714 9.84773 10.714 10.2355 10.4748 10.4747C10.2356 10.7139 9.84776 10.7139 9.60857 10.4747L8 8.86618L6.39144 10.4747C6.15224 10.7139 5.76443 10.7139 5.52524 10.4747C5.28604 10.2355 5.28604 9.84773 5.52524 9.60854L7.1338 7.99997L5.52524 6.39141C5.28604 6.15221 5.28604 5.7644 5.52524 5.5252Z",fill:"currentColor"},void 0)},void 0),U_=e=>g.jsx(Cn,{...e,children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM10.9852 6.39141C11.2244 6.15221 11.2244 5.7644 10.9852 5.5252C10.746 5.28601 10.3582 5.28601 10.119 5.5252L6.97916 8.66502L5.88102 7.56687C5.64182 7.32767 5.25401 7.32767 5.01481 7.56687C4.77561 7.80607 4.77561 8.19388 5.01481 8.43308L6.54606 9.96433C6.78526 10.2035 7.17307 10.2035 7.41227 9.96433L10.9852 6.39141Z",fill:"currentColor"},void 0)},void 0),XA=e=>g.jsxs(Cn,{...e,children:[g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.97302 2.34713C4.9413 2.02437 6.24717 1.83331 7.66667 1.83331C9.08617 1.83331 10.392 2.02437 11.3603 2.34713C11.8419 2.50764 12.2676 2.70978 12.5832 2.95853C12.8932 3.20284 13.1667 3.551 13.1667 3.99998V7.66667C13.1667 7.94281 12.9428 8.16667 12.6667 8.16667C12.3905 8.16667 12.1667 7.94281 12.1667 7.66667V5.31162C11.9268 5.44159 11.654 5.55495 11.3603 5.65283C10.392 5.97559 9.08617 6.16665 7.66667 6.16665C6.24717 6.16665 4.9413 5.97559 3.97302 5.65283C3.67939 5.55495 3.4065 5.44159 3.16667 5.31162V8C3.16667 8.16593 3.30186 8.46432 4.04786 8.73916C4.76055 9.00173 5.8604 9.16667 7.33334 9.16667C7.60948 9.16667 7.83334 9.39052 7.83334 9.66667C7.83334 9.94281 7.60948 10.1667 7.33334 10.1667C5.80628 10.1667 4.57279 9.99827 3.70215 9.6775C3.51458 9.6084 3.33399 9.52793 3.16667 9.43528V12C3.16667 12.0015 3.16776 12.0908 3.3783 12.2489C3.58092 12.401 3.9071 12.5595 4.35844 12.7016C5.25531 12.9838 6.53536 13.1667 8.00001 13.1667C8.27615 13.1667 8.50001 13.3905 8.50001 13.6667C8.50001 13.9428 8.27615 14.1667 8.00001 14.1667C6.46465 14.1667 5.07803 13.9764 4.05824 13.6554C3.55124 13.4959 3.10659 13.2953 2.77796 13.0486C2.45726 12.8079 2.16667 12.4587 2.16667 12V4C2.16667 3.55102 2.44011 3.20284 2.75011 2.95853C3.06574 2.70978 3.49149 2.50764 3.97302 2.34713ZM3.36908 3.74394C3.17306 3.89843 3.16667 3.98873 3.16667 3.99998C3.16667 4.01123 3.17306 4.10153 3.36908 4.25601C3.55947 4.40606 3.86596 4.56305 4.28925 4.70415C5.13061 4.9846 6.32474 5.16665 7.66667 5.16665C9.0086 5.16665 10.2027 4.9846 11.0441 4.70415C11.4674 4.56305 11.7739 4.40606 11.9643 4.25601C12.1603 4.10153 12.1667 4.01123 12.1667 3.99998C12.1667 3.98873 12.1603 3.89843 11.9643 3.74394C11.7739 3.5939 11.4674 3.43691 11.0441 3.29581C10.2027 3.01536 9.0086 2.83331 7.66667 2.83331C6.32474 2.83331 5.13061 3.01536 4.28925 3.29581C3.86596 3.43691 3.55947 3.5939 3.36908 3.74394Z",fill:"currentColor"},void 0),g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.8444 12.1373C13.0486 11.8068 13.1667 11.4169 13.1667 11C13.1667 9.80338 12.1966 8.83331 11 8.83331C9.80339 8.83331 8.83333 9.80338 8.83333 11C8.83333 12.1966 9.80339 13.1666 11 13.1666C11.4169 13.1666 11.8068 13.0486 12.1373 12.8444L13.3131 14.0202C13.5084 14.2155 13.825 14.2155 14.0202 14.0202C14.2155 13.8249 14.2155 13.5084 14.0202 13.3131L12.8444 12.1373ZM9.83333 11C9.83333 10.3557 10.3557 9.83331 11 9.83331C11.6443 9.83331 12.1667 10.3557 12.1667 11C12.1667 11.3223 12.0366 11.6133 11.825 11.8249C11.6133 12.0366 11.3223 12.1666 11 12.1666C10.3557 12.1666 9.83333 11.6443 9.83333 11Z",fill:"currentColor"},void 0)]},void 0),JA=e=>{const{severity:t="info"}=e;return{error:g.jsx(W_,{size:14},void 0),info:g.jsx(Rm,{size:14},void 0),success:g.jsx(U_,{size:14},void 0),warning:g.jsx(V_,{size:14},void 0),regular:g.jsx(Rm,{size:14},void 0),gradient:g.jsx(g.Fragment,{},void 0)}[t]||g.jsx(g.Fragment,{},void 0)},eN="_wrapper_f0zdf_1",tN={wrapper:eN},bp=e=>{const{title:t,sx:n={},PopperProps:r={},margin:o=12,...i}=e,a=zt();return g.jsx(a7,{PopperProps:{sx:{'&.MuiTooltip-popper[data-popper-placement*="top"]':{".MuiTooltip-tooltip":{marginBottom:`${o}px`}},'&.MuiTooltip-popper[data-popper-placement*="bottom"]':{".MuiTooltip-tooltip":{marginTop:`${o}px`}},'&.MuiTooltip-popper[data-popper-placement*="left"]':{".MuiTooltip-tooltip":{marginRight:`${o}px`}},'&.MuiTooltip-popper[data-popper-placement*="right"]':{".MuiTooltip-tooltip":{marginLeft:`${o}px`}},".MuiTooltip-tooltip":{borderRadius:"6px",boxShadow:" 0px 1px 10px 0px rgba(107, 121, 141, 0.30)",backgroundColor:"#fff",padding:"12px",color:a.black.black1,fontSize:12,lineHeight:"16px",fontWeight:400},"> * > .MuiTooltip-arrow":{color:"#fff"},...n},...r},title:t,arrow:!0,...i},void 0)},Mc=({tooltip:e,children:t,classes:n={root:""}})=>{const{title:r="",...o}=e||{};return e?g.jsx(bp,{title:r,...o,children:g.jsx("span",{className:Gt(tN.wrapper,n.root),children:t},void 0)},void 0):g.jsx(g.Fragment,{children:t},void 0)},nN="_zButton_2ljo4_3",rN="_disabled_2ljo4_16",oN="_xlarge_2ljo4_25",iN="_large_2ljo4_26",aN="_medium_2ljo4_27",sN="_small_2ljo4_58",lN="_tiny_2ljo4_74",cN="_contained_2ljo4_92",uN="_outlined_2ljo4_105",dN="_noShadow_2ljo4_111",fN="_danger_2ljo4_126",pN="_textBlue_2ljo4_135",gN="_noMargin_2ljo4_143",hN="_textBlack_2ljo4_159",mN="_textGhost_2ljo4_183",vN="_text_2ljo4_135",yN="_link_2ljo4_206",nn={zButton:nN,disabled:rN,xlarge:oN,large:iN,medium:aN,small:sN,tiny:lN,contained:cN,outlined:uN,noShadow:dN,danger:fN,textBlue:pN,noMargin:gN,textBlack:hN,textGhost:mN,text:vN,link:yN},L1=e=>{const{danger:t=!1,sx:n,loading:r,disabled:o=!1,activeIconStyle:i,tooltip:a,children:s,isLinkButton:l=!1,size:c="medium",variant:u="contained",withMargin:d=!0,withShadow:f=!0,className:p,...h}=e,y=r?!0:o,w=b.useMemo(()=>a?{PopperProps:{modifiers:[{name:"offset",options:{offset:[0,8]}}]},...a}:void 0,[a]),v=b.useMemo(()=>c==="xs"||c==="small"?"4px":"6px",[c]);return g.jsx(Mc,{tooltip:w,children:g.jsx(zI,{className:Gt(nn.zButton,{[nn.xlarge]:c==="xl",[nn.large]:c==="large",[nn.medium]:c==="medium",[nn.small]:c==="small",[nn.tiny]:c==="xs",[nn.contained]:u==="contained",[nn.outlined]:u==="outlined",[nn.danger]:t,[nn.textBlue]:u==="textBlue",[nn.textBlack]:u==="textBlack",[nn.textGhost]:u==="textGhost",[nn.text]:u==="text",[nn.link]:l,[nn.disabled]:y,[nn.noMargin]:!d,[nn.noShadow]:!f},p),sx:{" .MuiButton-startIcon":{marginLeft:0,marginRight:v}," .MuiButton-endIcon":{marginRight:0,marginLeft:v},...n},disableRipple:!0,disabled:y,variant:u,...h,children:r?g.jsxs(s7,{direction:"row",spacing:r?1:0,style:{alignItems:"center"},children:[g.jsx(Lr,{sx:{display:"flex","@keyframes rotate":{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}},style:{color:"white",animation:`${r?"rotate 1s linear infinite":""}`},children:r&&g.jsx(QA,{},void 0)},void 0),g.jsx(mt,{component:"span",sx:{color:"inherit",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit"},children:s},void 0)]},void 0):s},void 0)},void 0)};L1.displayName="ZButton";const bN="_zIconButton_1y2v2_3",xN="_disabled_1y2v2_7",SN="_withMargin_1y2v2_13",wN="_noMargin_1y2v2_19",CN="_withBorder_1y2v2_28",_N="_large_1y2v2_37",RN="_medium_1y2v2_38",TN="_small_1y2v2_49",PN="_xs_1y2v2_60",uo={zIconButton:bN,disabled:xN,withMargin:SN,noMargin:wN,withBorder:CN,large:_N,medium:RN,small:TN,xs:PN},A1=e=>{const{activeStyle:t={},sx:n,tooltip:r,size:o="medium",disabled:i,withBorder:a=!1,withMargin:s=!0,className:l,...c}=e;return g.jsx(Mc,{tooltip:r,children:g.jsx(hr,{className:Gt(uo.zIconButton,l,{[uo.large]:o==="large"||o==="xl",[uo.medium]:o==="medium",[uo.small]:o==="small",[uo.xs]:o==="xs",[uo.disabled]:i,[uo.withBorder]:a,[uo.withMargin]:s,[uo.noMargin]:!s}),disabled:i,sx:n,disableRipple:!0,...c},void 0)},void 0)},kN=b.forwardRef(function(t,n){return g.jsx(y_,{ref:n,...t},void 0)}),N1=e=>{const{open:t=!0,handleClose:n,children:r,severity:o="info",action:i,buttonProps:a,icon:s,...l}=e,c=zt(),u={regular:{icon:c.black.black3,text:c.black.black1,border:c.stroke.stroke1,background:c.black.black5,actionHover:c.black.black2},info:{icon:c.blue.blue1,text:c.blue.dark2,border:c.blue.blue3,background:c.blue.blue4,actionHover:c.blue.dark1},success:{icon:c.green.green1,text:c.green.green1,border:c.green.green3,background:c.green.green4,actionHover:c.green.green2},warning:{icon:c.yellow.yellow2,text:c.yellow.yellow1,border:c.yellow.yellow3,background:c.yellow.yellow4,actionHover:c.yellow.yellow2},error:{icon:c.red.red2,text:c.red.red1,border:c.red.red3,background:c.red.red4,actionHover:c.red.red2},gradient:{icon:c.black.black1,text:c.black.black1,border:"transparent",background:"linear-gradient(118deg, rgba(0, 239, 139, 0.10) 0.51%, rgba(0, 68, 228, 0.10) 36.98%, rgba(205, 63, 255, 0.10) 72.73%);",actionHover:"transparent"}},d=()=>{n&&n()},f=b.useMemo(()=>u[o],[o,u]);return g.jsx(ps,{in:t,children:g.jsx(kN,{severity:o,sx:{"&.MuiPaper-root":{display:"flex",alignItems:"flex-start",padding:"12px",background:f.background,borderRadius:"12px",border:"1px solid",borderColor:f.border},"& .MuiAlert-message":{padding:0,color:f.text,fontSize:"13px",lineHeight:"135%",fontWeight:400},"& .MuiAlert-action":{padding:0,marginRight:0,display:"flex",alignItems:"center"},"& .MuiAlert-icon":{padding:0,marginRight:"8px",marginTop:"2px",color:f.icon,opacity:1}},icon:s||g.jsx(JA,{severity:o},void 0),action:g.jsxs(Lr,{children:[i&&g.jsx(L1,{size:"small",variant:"outlined",withShadow:!1,sx:{"&.MuiButtonBase-root.MuiButton-outlined":{borderColor:f.text,backgroundColor:"transparent",minWidth:56,".MuiTypography-root":{color:f.text},"&:hover":{borderColor:f.actionHover,backgroundColor:"transparent",".MuiTypography-root":{color:f.actionHover}}}},onClick:i.onClick,...a,children:g.jsx(mt,{variant:"body2Medium",component:"div",children:i.label},void 0)},void 0),n&&g.jsx(A1,{sx:{"&.MuiButtonBase-root.MuiIconButton-root":{marginLeft:"12px","&:hover":{backgroundColor:"transparent","svg.MuiSvgIcon-root":{path:{fill:f.actionHover}}}},"svg.MuiSvgIcon-root":{path:{fill:f.text}}},size:"small",onClick:d,children:g.jsx(O1,{size:14},void 0)},void 0)]},void 0),...l,children:r},void 0)},void 0)};var Ae;(function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e[e.RelativeRange=7]="RelativeRange",e[e.AbsoluteRange=8]="AbsoluteRange",e[e.Reset=9]="Reset",e[e.Or=10]="Or",e[e.Copy=11]="Copy",e[e.Copied=12]="Copied",e[e.HidePwd=13]="HidePwd",e[e.ShowPwd=14]="ShowPwd",e[e.StartDay=15]="StartDay",e[e.EndDay=16]="EndDay",e[e.StartTime=17]="StartTime",e[e.EndTime=18]="EndTime",e[e.NoRows=19]="NoRows",e[e.NoOptions=20]="NoOptions"})(Ae||(Ae={}));const $N={[Ae.Sunday]:"日",[Ae.Monday]:"一",[Ae.Tuesday]:"二",[Ae.Wednesday]:"三",[Ae.Thursday]:"四",[Ae.Friday]:"五",[Ae.Saturday]:"六",[Ae.RelativeRange]:"相对范围",[Ae.AbsoluteRange]:"绝对范围",[Ae.Reset]:"重置",[Ae.Or]:"或",[Ae.Copy]:"复制",[Ae.Copied]:"已复制",[Ae.HidePwd]:"隐藏密码",[Ae.ShowPwd]:"展示密码",[Ae.StartDay]:"开始日期",[Ae.EndDay]:"结束日期",[Ae.StartTime]:"开始时间",[Ae.EndTime]:"结束时间",[Ae.NoRows]:"无记录",[Ae.NoOptions]:"无数据"},EN={[Ae.Sunday]:"S",[Ae.Monday]:"M",[Ae.Tuesday]:"T",[Ae.Wednesday]:"W",[Ae.Thursday]:"T",[Ae.Friday]:"F",[Ae.Saturday]:"S",[Ae.RelativeRange]:"Relative Range",[Ae.AbsoluteRange]:"Absolute Range",[Ae.Reset]:"Reset",[Ae.Or]:" or ",[Ae.Copy]:"Copy",[Ae.Copied]:"Copied",[Ae.HidePwd]:"Hide password",[Ae.ShowPwd]:"Show password",[Ae.StartDay]:"Start date",[Ae.EndDay]:"End date",[Ae.StartTime]:"Start time",[Ae.EndTime]:"End time",[Ae.NoRows]:"No Data",[Ae.NoOptions]:"No Options"},Kd=(e,t)=>t==="zhCN"?$N[e]:EN[e],MN=b.forwardRef((e,t)=>{const[n,r]=b.useState(!1),[o,i]=b.useState(!1),{onChange:a,inputProps:s={},enableAutocomplete:l=!1,...c}=e,u=b.useMemo(()=>l?{}:{autoComplete:"new-password"},[l]),d=()=>{o&&r(!n)},f=v=>{const{value:S}=v.target;i(S!==""),a&&a(v)},p=zt(),h=p.language,y=Kd(Ae.HidePwd,h),w=Kd(Ae.ShowPwd,h);return g.jsx(Zd,{inputType:n?"text":"password",prefixComponent:g.jsx(ZA,{size:e.size==="small"?12:14,style:{color:p.black.black2}},void 0),suffix:g.jsx(bp,{title:o?n?y:w:"",placement:"bottom",children:g.jsx(hr,{disableRipple:!0,sx:{padding:0,opacity:o?1:0,cursor:o?"pointer":"default","&:hover":{svg:{color:p.black.black2}}},"aria-label":"toggle password visibility",onClick:d,children:n?g.jsx(UA,{size:e.size==="small"?12:14,sx:{color:p.black.black1}},void 0):g.jsx(WA,{size:e.size==="small"?12:14,sx:{color:p.black.black1}},void 0)},void 0)},void 0),ref:t,onChange:f,inputProps:{...u,...s},...c},void 0)});var Mi;(function(e){e.default="default",e.password="pwd",e.number="number",e.suffixSelect="suffixSelect"})(Mi||(Mi={}));const IN="_button_n3sxg_3",ON="_disabled_n3sxg_16",LN="_text_n3sxg_23",AN="_parentInputDisabled_n3sxg_30",NN="_icon_n3sxg_41",DN="_smallButton_n3sxg_46",jN="_input_n3sxg_50",FN="_inputFocus_n3sxg_56",BN="_paper_n3sxg_63",zN="_menu_n3sxg_67",HN="_menuItem_n3sxg_71",VN="_selected_n3sxg_83",WN="_menuList_n3sxg_89",Wn={button:IN,disabled:ON,text:LN,parentInputDisabled:AN,icon:NN,smallButton:DN,input:jN,inputFocus:FN,paper:BN,menu:zN,menuItem:HN,selected:VN,menuList:WN},UN=({options:e=[],onSelectChange:t,defaultSelectedValue:n="",classes:r={label:"",menuRoot:"",menuList:"",menuItem:"",menuPaper:""},setIsSelectActive:o,disabled:i=!1,inputDisabled:a,size:s})=>{const[l,c]=b.useState(null),[u,d]=b.useState("");b.useEffect(()=>{const y=e.find(v=>v.value===n),w=(y==null?void 0:y.label)||"";d(w)},[n]);const f=()=>{c(null),o&&o(!1)},p=y=>{i||(c(y.currentTarget),o&&o(!0))},h=y=>{t&&t(y.value),d(y.label),f()};return g.jsxs(g.Fragment,{children:[g.jsxs(mt,{role:"button",component:"div",className:Gt(Wn.button,{[Wn.smallButton]:s==="small",[Wn.disabled]:i,[Wn.parentInputDisabled]:a},r.label),onClick:p,children:[g.jsx(mt,{variant:"body1",className:Wn.text,children:u},void 0),!i&&g.jsx(ia,{size:14,className:Wn.icon},void 0)]},void 0),g.jsx(E1,{open:!!l,anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:f,classes:{root:Gt(Wn.menu,r.menuRoot),paper:Gt(Wn.paper,r.menuPaper),list:Gt(Wn.menuList,r.menuList)},children:e.map(y=>g.jsx($c,{sx:{"&.Mui-selected.Mui-focusVisible":{backgroundColor:"#fff"}},className:Gt(Wn.menuItem,{[Wn.selected]:u===y.label},r.menuItem),onClick:()=>h(y),children:y.label},y.value))},void 0)]},void 0)},GN=b.forwardRef((e,t)=>{const{options:n,onSelectChange:r,defaultSelectedValue:o,selectClasses:i,disableSelect:a,disabled:s=!1,size:l,...c}=e,[u,d]=b.useState(!1);return g.jsx(Zd,{className:Gt(Wn.input,{[Wn.inputFocus]:u}),disabled:s,size:l,suffix:g.jsx(UN,{options:n,onSelectChange:r,defaultSelectedValue:o,classes:i,setIsSelectActive:d,disabled:a,inputDisabled:s,size:l},void 0),ref:t,...c},void 0)}),qN=e=>({"& .MuiFormHelperText-root":{margin:"4px 0 0 0",color:e.black.black3,fontSize:12,lineHeight:"135%","&.Mui-error":{color:e.red.red1}}}),pr="0px 1px 2px 4px rgba(33, 37, 44, 0.08)",aa="0px 1px 2px 0px rgba(33, 37, 44, 0.08)",KN=(e,t)=>({borderRadius:t==="small"?"6px":"8px","& .MuiOutlinedInput-notchedOutline":{borderColor:e.stroke.stroke1,boxShadow:aa,transition:"all 0.2s"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent",borderWidth:1,boxShadow:`0px 0px 0px 4px ${e.blue.blue4}, ${pr}`},"&.Mui-disabled":{"& .MuiOutlinedInput-input":{zIndex:"1","::-webkit-input-placeholder":{color:e.black.black3,opacity:"1"}},"& .MuiOutlinedInput-notchedOutline":{borderColor:e.stroke.stroke1,backgroundColor:e.black.black5,borderWidth:1},"&:hover .MuiOutlinedInput-notchedOutline":{boxShadow:aa}},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.blue.blue1,borderWidth:1,boxShadow:`0px 0px 0px 4px ${e.blue.blue4}, ${pr}`}},"&.Mui-focused.Mui-error":{"& .MuiOutlinedInput-notchedOutline":{boxShadow:`0px 0px 0px 4px ${e.red.red4}, ${pr}`}},"&.Mui-error":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.red.red2},"&:hover .MuiOutlinedInput-notchedOutline":{boxShadow:`0px 0px 0px 4px ${e.red.red4}, ${pr}`}}}),ZN=(e,t,n)=>({height:n==="small"?"28px":"36px",boxSizing:"border-box",padding:t?n==="small"?"4px 10px 4px 4px":"8px 12px 8px 4px":n==="small"?"4px 10px":"8px 12px",fontSize:n==="small"?13:14,fontWeight:400,color:e.black.black1,caretColor:e.black.black1,"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #fff inset",WebkitTextFillColor:e.black.black1},"&[type=password]":{WebkitTextStrokeWidth:"2.8px",letterSpacing:"4px"},"&[type=number]::-webkit-outer-spin-button, &[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}),QN=(e,t,n,r)=>{let o=KN(e,r);return t&&(o={...o,paddingRight:r==="small"?"8px":"12px"}),n&&(o={...o,paddingLeft:"12px"}),o},Zd=b.forwardRef((e,t)=>{const{label:n,labelPosition:r="top",labelClassName:o="",wrapperClassName:i="",suffix:a=null,prefixComponent:s=null,inputType:l="text",inputProps:c,size:u="medium",...d}=e,{sx:f={},...p}=c||{},h=zt();return g.jsxs(Lr,{sx:{display:"flex",alignItems:r==="top"?"flex-start":"center",gap:2,flexDirection:r==="top"?"column":"row"},className:i,children:[n?g.jsx(mt,{component:"div",variant:"h4Medium",className:o,children:n},void 0):null,g.jsx(jA,{InputProps:{sx:QN(h,a,s,u),endAdornment:a,startAdornment:s,type:l},inputProps:{sx:{...ZN(h,s,u),...f},ref:t,...p},sx:qN(h),...d},void 0)]},void 0)}),D1=b.forwardRef((e,t)=>{const{inputComponentType:n=Mi.default,...r}=e,i={[Mi.default]:Zd,[Mi.password]:MN,[Mi.number]:Zd,[Mi.suffixSelect]:GN}[n];return g.jsx(i,{ref:t,...r},void 0)}),YN="_root_903dp_3",XN="_label_903dp_6",JN="_checkboxIcon_903dp_19",e9="_inner_903dp_20",t9="_checkbox_903dp_19",n9="_disabledCheckbox_903dp_49",r9="_disabled_903dp_49",o9="_indeterminate_903dp_83",i9="_checked_903dp_84",Ir={root:YN,label:XN,checkboxIcon:JN,inner:e9,checkbox:t9,disabledCheckbox:n9,disabled:r9,indeterminate:o9,checked:i9},ux=e=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:e.children},void 0),xg=e=>{const{checked:t=!1,indeterminate:n=!1,disabled:r=!1}=e;return g.jsx("div",{className:Gt(Ir.checkboxIcon,{[Ir.checked]:t,[Ir.indeterminate]:n,[Ir.disabled]:r}),children:g.jsxs("div",{className:Ir.inner,children:[t&&g.jsx(ux,{children:g.jsx("path",{d:"M1 4L3.66667 7.33333L9 2",stroke:"white",strokeWidth:"1.4"},void 0)},void 0),n&&g.jsx(ux,{children:g.jsx("path",{d:"M1.22876 4.66665L8.77124 4.66665",stroke:"white",strokeWidth:"1.4"},void 0)},void 0)]},void 0)},void 0)},dx=rt.forwardRef((e,t)=>{const{disabled:n,...r}=e;return g.jsx(tO,{ref:t,disableRipple:!0,disableTouchRipple:!0,disabled:n,icon:g.jsx(xg,{disabled:n},void 0),checkedIcon:g.jsx(xg,{checked:!0,disabled:n},void 0),indeterminateIcon:g.jsx(xg,{indeterminate:!0},void 0),classes:{root:Ir.checkbox,checked:Ir.checkedCheckbox,disabled:Ir.disabledCheckbox,indeterminate:Ir.indeterminateCheckbox},...r},void 0)}),Qd=rt.forwardRef(function(e,t){const{label:n="",disabled:r,...o}=e;return n?g.jsx(M_,{classes:{root:Ir.root},label:g.jsx(mt,{className:Ir.label,children:n},void 0),disabled:r,control:g.jsx(dx,{ref:t,...o},void 0)},void 0):g.jsx(dx,{ref:t,disabled:r,...o},void 0)});function a9(e){return e&&e.ownerDocument||document}function s9(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const l9=typeof window<"u"?b.useLayoutEffect:b.useEffect;function c9(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{s9(n,t)})},e)}const fx=e=>e,u9=()=>{let e=fx;return{configure(t){e=t},generate(t){return e(t)},reset(){e=fx}}},d9=u9(),f9={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function G_(e,t,n="Mui"){const r=f9[t];return r?`${n}-${r}`:`${d9.generate(e)}-${t}`}function p9(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=G_(e,o,n)}),r}function dc(e){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(e)}function g9(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h9(e){var t=g9(e,"string");return dc(t)=="symbol"?t:t+""}const m9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"መንገድ አሳይ"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"ወደ መጀመሪያው ገጽ ይሂዱ":e==="last"?"ወደ መጨረሻው ገጽ ይሂዱ":e==="next"?"ወደ ቀጣዩ ገጽ ይሂዱ":"ወደ ቀዳሚው ገጽ ይሂዱ",labelRowsPerPage:"ረድፎች በአንድ ገጽ:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}-${t} ከ ${n!==-1?n:`${t} በላይ`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ኮከ${e!==1?"ቦች":"ብ"}`,emptyLabelText:"ባዶ"}},MuiAutocomplete:{defaultProps:{clearText:"አጽዳ",closeText:"ዝጋ",loadingText:"በመጫን ላይ…",noOptionsText:"አማራጮች የሉም",openText:"ክፈት"}},MuiAlert:{defaultProps:{closeText:"ዝጋ"}},MuiPagination:{defaultProps:{"aria-label":"የገጽ አሰሳ",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"ወደ "}ገጽ ${t}${n?"":" ሂድ"}`:e==="first"?"ወደ መጀመሪያው ገጽ ይሂዱ":e==="last"?"ወደ መጨረሻው ገጽ ይሂዱ":e==="next"?"ወደ ቀጣዩ ገጽ ይሂዱ":"ወደ ቀዳሚው ገጽ ይሂዱ"}}}},v9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"إظهار المسار"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"انتقل إلى الصفحة الأولى":e==="last"?"انتقل إلى الصفحة الأخيرة":e==="next"?"انتقل إلى الصفحة التالية":"انتقل إلى الصفحة السابقة",labelRowsPerPage:"عدد الصفوف في الصفحة:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} من ${n!==-1?n:` أكثر من${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e!==1?"نجوم":"نجمة"}`,emptyLabelText:"فارغ"}},MuiAutocomplete:{defaultProps:{clearText:"مسح",closeText:"إغلاق",loadingText:"جار التحميل...",noOptionsText:"لا يوجد خيارات",openText:"فتح"}},MuiAlert:{defaultProps:{closeText:"إغلاق"}},MuiPagination:{defaultProps:{"aria-label":"التنقل عبر الصفحات",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"انتقل إلى "} صفحة ${t}`:e==="first"?"انتقل إلى الصفحة الأولى":e==="last"?"انتقل إلى الصفحة الأخيرة":e==="next"?"انتقل إلى الصفحة التالية":"انتقل إلى الصفحة السابقة"}}}},y9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"إظهار المسار"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"الانتقال إلى الصفحة الأولى":e==="last"?"الانتقال إلى الصفحة الأخيرة":e==="next"?"الانتقال إلى الصفحة التالية":"الانتقال إلى الصفحة السابقة",labelRowsPerPage:"عدد الصفوف في الصفحة:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} من ${n!==-1?n:` أكثر من${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e!==1?"نجوم":"نجمة"}`,emptyLabelText:"فارغ"}},MuiAutocomplete:{defaultProps:{clearText:"مسح",closeText:"إغلاق",loadingText:"جار التحميل...",noOptionsText:"لا توجد خيارات",openText:"فتح"}},MuiAlert:{defaultProps:{closeText:"إغلاق"}},MuiPagination:{defaultProps:{"aria-label":"التنقل عبر الصفحات",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"الانتقال إلى "} صفحة ${t}`:e==="first"?"الانتقال إلى الصفحة الأولى":e==="last"?"الانتقال الي الصفحة الأخيرة":e==="next"?"الانتقال إلى الصفحة التالية":"الانتقال إلى الصفحة السابقة"}}}},b9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"إظهار المسار"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"انتقل إلى الصفحة الأولى":e==="last"?"انتقل إلى الصفحة الأخيرة":e==="next"?"انتقل إلى الصفحة التالية":"انتقل إلى الصفحة السابقة",labelRowsPerPage:"عدد الصفوف في الصفحة:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} من ${n!==-1?n:` أكثر من${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e!==1?"نجوم":"نجمة"}`,emptyLabelText:"فارغ"}},MuiAutocomplete:{defaultProps:{clearText:"مسح",closeText:"إغلاق",loadingText:"جار التحميل...",noOptionsText:"لا يوجد خيارات",openText:"فتح"}},MuiAlert:{defaultProps:{closeText:"إغلاق"}},MuiPagination:{defaultProps:{"aria-label":"التنقل عبر الصفحات",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"انتقل إلى "} صفحة ${t}`:e==="first"?"انتقل إلى الصفحة الأولى":e==="last"?"انتقل الي الصفحة الأخيرة":e==="next"?"انتقل إلى الصفحة التالية":"انتقل إلى الصفحة السابقة"}}}},x9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Yolu göstər"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Birinci səhifəyə keç":e==="last"?"Sonuncu səhifəyə keç":e==="next"?"Növbəti səhifəyə keç":"Əvvəlki səhifəyə keç",labelRowsPerPage:"Səhifəyə düşən sətrlər:"}},MuiRating:{defaultProps:{getLabelText:e=>{let t="Ulduz";const n=e%10;return n>1&&n<5&&(t="Ulduzlar"),`${e} ${t}`},emptyLabelText:"Boş"}},MuiAutocomplete:{defaultProps:{clearText:"Silmək",closeText:"Bağlamaq",loadingText:"Yüklənir…",noOptionsText:"Seçimlər mövcud deyil",openText:"Открыть"}},MuiAlert:{defaultProps:{closeText:"Bağlamaq"}},MuiPagination:{defaultProps:{"aria-label":"Səhifənin naviqasiyası",getItemAriaLabel:(e,t,n)=>e==="page"?`${t} ${n?"səhifə":"səhifəyə keç"}`:e==="first"?"Birinci səhifəyə keç":e==="last"?"Sonuncu səhifəyə keç":e==="next"?"Növbəti səhifəyə keç":"Əvvəlki səhifəyə keç"}}}},S9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"পথ দেখান"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"প্রথম পৃষ্ঠায় যান":e==="last"?"শেষ পৃষ্ঠায় যান":e==="next"?"পরবর্তী পৃষ্ঠায় যান":"আগের পৃষ্ঠায় যান",labelRowsPerPage:"প্রতি পৃষ্ঠায় সারি:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} / ${n!==-1?n:`${t} থেকে বেশি`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} স্টার`,emptyLabelText:"খালি"}},MuiAutocomplete:{defaultProps:{clearText:"পরিষ্কার করুন",closeText:"বন্ধ করুন",loadingText:"লোড হচ্ছে…",noOptionsText:"কোন অপশন নেই",openText:"ওপেন করুন"}},MuiAlert:{defaultProps:{closeText:"বন্ধ করুন"}},MuiPagination:{defaultProps:{"aria-label":"পেজিনেশন নেভিগেশন",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"যান "}পৃষ্ঠা ${t}-এ`:e==="first"?"প্রথম পৃষ্ঠায় যান":e==="last"?"শেষ পৃষ্ঠায় যান":e==="next"?"পরবর্তী পৃষ্ঠায় যান":"আগের পৃষ্ঠায় যান"}}}},w9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Паказаць шлях"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Перайсці на першую старонку":e==="last"?"Перайсці на апошнюю старонку":e==="next"?"Перайсці на наступную старонку":"Перайсці на папярэднюю старонку",labelRowsPerPage:"Радкоў на старонцы:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} з ${n!==-1?n:`больш чым ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t="Зорак";const n=e%10;return n>1&&n<5&&(e<10||e>20)?t="Зоркі":n===1&&e%100!==11&&(t="Зорка"),`${e} ${t}`},emptyLabelText:"Рэйтынг адсутнічае"}},MuiAutocomplete:{defaultProps:{clearText:"Ачысціць",closeText:"Закрыць",loadingText:"Загрузка…",noOptionsText:"Няма варыянтаў",openText:"Адкрыць"}},MuiAlert:{defaultProps:{closeText:"Закрыць"}},MuiPagination:{defaultProps:{"aria-label":"Навігацыя па старонкам",getItemAriaLabel:(e,t,n)=>e==="page"?n?`${t} старонка`:`Перайсці на ${t} старонку`:e==="first"?"Перайсці на першую старонку":e==="last"?"Перайсці на апошнюю старонку":e==="next"?"Перайсці на наступную старонку":"Перайсці на папярэднюю старонку"}}}},C9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Показване на пътя"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Отиди на първата страница":e==="last"?"Отиди на последната страница":e==="next"?"Отиди на следващата страница":"Отиди на предишната страница",labelRowsPerPage:"Редове на страница:"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Звезд${e!==1?"и":"а"}`,emptyLabelText:"Изчисти"}},MuiAutocomplete:{defaultProps:{clearText:"Изчисти",closeText:"Затвори",loadingText:"Зареждане…",noOptionsText:"Няма налични опции",openText:"Отвори"}},MuiAlert:{defaultProps:{closeText:"Затвори"}},MuiPagination:{defaultProps:{"aria-label":"Пагинация",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Към "}страница ${t}`:e==="first"?"Отиди на първата страница":e==="last"?"Отиди на последната страница":e==="next"?"Отиди на следващата страница":"Отиди на предишната страница"}}}},_9={components:{MuiTablePagination:{defaultProps:{labelRowsPerPage:"Files per pàgina:"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e!==1?"Estrelles":"Estrella"}`,emptyLabelText:"Buit"}},MuiAutocomplete:{defaultProps:{clearText:"Netejar",closeText:"Tancar",loadingText:"Carregant…",noOptionsText:"Sense opcions",openText:"Obert"}},MuiAlert:{defaultProps:{closeText:"Tancat"}}}},R9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Ukázat cestu"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Jít na první stránku":e==="last"?"Jít na poslední stránku":e==="next"?"Jít na další stránku":"Jít na předchozí stránku",labelRowsPerPage:"Řádků na stránce:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} z ${n!==-1?n:`více než ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>e===1?`${e} hvězdička`:e>=2&&e<=4?`${e} hvězdičky`:`${e} hvězdiček`,emptyLabelText:"Prázdné"}},MuiAutocomplete:{defaultProps:{clearText:"Vymazat",closeText:"Zavřít",loadingText:"Načítání…",noOptionsText:"Žádné možnosti",openText:"Otevřít"}},MuiAlert:{defaultProps:{closeText:"Zavřít"}},MuiPagination:{defaultProps:{"aria-label":"Navigace stránkováním",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Jít na "}${t}. stránku`:e==="first"?"Jít na první stránku":e==="last"?"Jít na poslední stránku":e==="next"?"Jít na další stránku":"Jít na předchozí stránku"}}}},T9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Vis sti"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Gå til den første side":e==="last"?"Gå til den sidste side":e==="next"?"Gå til den næste side":"Gå til den forrige side",labelRowsPerPage:"Rækker pr side:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}-${t} af ${n!==-1?n:`mere end ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stjern${e!==1?"er":""}`,emptyLabelText:"Tom"}},MuiAutocomplete:{defaultProps:{clearText:"Slet",closeText:"Luk",loadingText:"Indlæser…",noOptionsText:"Ingen muligheder",openText:"Åben"}},MuiAlert:{defaultProps:{closeText:"Luk"}},MuiPagination:{defaultProps:{"aria-label":"Sideinddelings navigation",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Go to "}page ${t}`:e==="first"?"Gå til den første side":e==="last"?"Gå til den sidste side":e==="next"?"Gå til den næste side":"Gå til den forrige side"}}}},P9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Pfad anzeigen"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Zur ersten Seite":e==="last"?"Zur letzten Seite":e==="next"?"Zur nächsten Seite":"Zur vorherigen Seite",labelRowsPerPage:"Zeilen pro Seite:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} von ${n!==-1?n:`mehr als ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e!==1?"Sterne":"Stern"}`,emptyLabelText:"Keine Wertung"}},MuiAutocomplete:{defaultProps:{clearText:"Leeren",closeText:"Schließen",loadingText:"Wird geladen…",noOptionsText:"Keine Optionen",openText:"Öffnen"}},MuiAlert:{defaultProps:{closeText:"Schließen"}},MuiPagination:{defaultProps:{"aria-label":"Navigation via Seitennummerierung",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Gehe zu "}Seite ${t}`:e==="first"?"Zur ersten Seite":e==="last"?"Zur letzten Seite":e==="next"?"Zur nächsten Seite":"Zur vorherigen Seite"}}}},k9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Εμφάνιση διαδρομής"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Πρώτη σελίδα":e==="last"?"Τελευταία σελίδα":e==="next"?"Επόμενη σελίδα":"Προηγούμενη σελίδα",labelRowsPerPage:"Γραμμές ανα σελίδα:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} από ${n!==-1?n:`πάνω από ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Αστέρι${e!==1?"α":""}`,emptyLabelText:"Χωρίς βαθμολόγηση"}},MuiAutocomplete:{defaultProps:{clearText:"Καθαρισμός",closeText:"Κλείσιμο",loadingText:"Φόρτωση…",noOptionsText:"Δεν υπάρχουν επιλογές",openText:"Άνοιγμα"}},MuiAlert:{defaultProps:{closeText:"Κλείσιμο"}},MuiPagination:{defaultProps:{"aria-label":"Πλοήγηση σε σελίδες",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Μετάβαση "}σελίδα ${t}`:e==="first"?"Πρώτη σελίδα":e==="last"?"Τελευταία σελίδα":e==="next"?"Επόμενη σελίδα":"Προηγούμενη σελίδα"}}}},$9={},E9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Mostrar ruta"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Ir a la primera página":e==="last"?"Ir a la última página":e==="next"?"Ir a la página siguiente":"Ir a la página anterior",labelRowsPerPage:"Filas por página:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} de ${n!==-1?n:`más de ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrella${e!==1?"s":""}`,emptyLabelText:"Vacío"}},MuiAutocomplete:{defaultProps:{clearText:"Limpiar",closeText:"Cerrar",loadingText:"Cargando…",noOptionsText:"Sin opciones",openText:"Abierto"}},MuiAlert:{defaultProps:{closeText:"Cerrar"}},MuiPagination:{defaultProps:{"aria-label":"Paginador",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Ir a la "}página ${t}`:e==="first"?"Ir a la primera página":e==="last"?"Ir a la última página":e==="next"?"Ir a la página siguiente":"Ir a la página anterior"}}}},M9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Näita teed"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Vali esimene lehekülg":e==="last"?"Vali viimane lehekülg":e==="next"?"Vali järgmine lehekülg":"Vali eelmine lehekülg",labelRowsPerPage:"Ridu leheküljel:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} / ${n!==-1?n:`rohkem kui ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Tärn${e!==1?"i":""}`,emptyLabelText:"Tühi"}},MuiAutocomplete:{defaultProps:{clearText:"Tühjenda",closeText:"Sulge",loadingText:"Laen…",noOptionsText:"Valikuid ei ole",openText:"Ava"}},MuiAlert:{defaultProps:{closeText:"Sulge"}},MuiPagination:{defaultProps:{"aria-label":"Lehekülgede valik",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Vali "}lehekülg ${t}`:e==="first"?"Vali esimene lehekülg":e==="last"?"Vali viimane lehekülg":e==="next"?"Vali järgmine lehekülg":"Vali eelmine lehekülg"}}}},I9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"نمایش مسیر"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"رفتن به اولین صفحه":e==="last"?"رفتن به آخرین صفحه":e==="next"?"رفتن به صفحه‌ی بعدی":"رفتن به صفحه‌ی قبلی",labelRowsPerPage:"تعداد سطرهای هر صفحه:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} از ${n!==-1?n:`بیشتر از ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ستاره`,emptyLabelText:"خالی"}},MuiAutocomplete:{defaultProps:{clearText:"پاک‌کردن",closeText:"بستن",loadingText:"در حال بارگذاری…",noOptionsText:"بی‌نتیجه",openText:"بازکردن"}},MuiAlert:{defaultProps:{closeText:"بستن"}},MuiPagination:{defaultProps:{"aria-label":"ناوبری صفحه",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"رفتن به "}صفحهٔ ${t}`:e==="first"?"رفتن به اولین صفحه":e==="last"?"رفتن به آخرین صفحه":e==="next"?"رفتن به صفحه‌ی بعدی":"رفتن به صفحه‌ی قبلی"}}}},O9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Näytä reitti"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Mene ensimmäiselle sivulle":e==="last"?"Mene viimeiselle sivulle":e==="next"?"Mene seuraavalle sivulle":"Mene edelliselle sivulle",labelRowsPerPage:"Rivejä per sivu:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} / ${n!==-1?n:`enemmän kuin ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Täht${e!==1?"eä":"i"}`,emptyLabelText:"Tyhjä"}},MuiAutocomplete:{defaultProps:{clearText:"Tyhjennä",closeText:"Sulje",loadingText:"Ladataan…",noOptionsText:"Ei valintoja",openText:"Avaa"}},MuiAlert:{defaultProps:{closeText:"Sulje"}},MuiPagination:{defaultProps:{"aria-label":"Sivutus navigaatio",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"sivu":"Mene sivulle"} ${t}`:e==="first"?"Mene ensimmäiselle sivulle":e==="last"?"Mene viimeiselle sivulle":e==="next"?"Mene seuraavalle sivulle":"Mene edelliselle sivulle"}}}},L9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Montrer le chemin"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Aller à la première page":e==="last"?"Aller à la dernière page":e==="next"?"Aller à la page suivante":"Aller à la page précédente",labelRowsPerPage:"Lignes par page :",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} sur ${n!==-1?n:`plus que ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Etoile${e!==1?"s":""}`,emptyLabelText:"Vide"}},MuiAutocomplete:{defaultProps:{clearText:"Vider",closeText:"Fermer",loadingText:"Chargement…",noOptionsText:"Pas de résultats",openText:"Ouvrir"}},MuiAlert:{defaultProps:{closeText:"Fermer"}},MuiPagination:{defaultProps:{"aria-label":"navigation de pagination",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Aller à la "}page ${t}`:e==="first"?"Aller à la première page":e==="last"?"Aller à la dernière page":e==="next"?"Aller à la page suivante":"Aller à la page précédente"}}}},A9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"הצג נתיב"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"לעמוד הראשון":e==="last"?"לעמוד האחרון":e==="next"?"לעמוד הבא":"לעמוד הקודם",labelRowsPerPage:"שורות בעמוד:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} מתוך ${n!==-1?n:`יותר מ ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} כוכב${e!==1?"ים":""}`,emptyLabelText:"ריק"}},MuiAutocomplete:{defaultProps:{clearText:"נקה",closeText:"סגור",loadingText:"טוען…",noOptionsText:"אין אופציות",openText:"פתח"}},MuiAlert:{defaultProps:{closeText:"סגור"}},MuiPagination:{defaultProps:{"aria-label":"ניווט בעמודים",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"ל "}עמוד ${t}`:e==="first"?"לעמוד הראשון":e==="last"?"לעמוד האחרון":e==="next"?"לעמוד הבא":"לעמוד הקודם"}}}},N9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"रास्ता दिखायें"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"पहले पृष्ठ पर जाएँ":e==="last"?"अंतिम पृष्ठ पर जाएँ":e==="next"?"अगले पृष्ठ पर जाएँ":"पिछले पृष्ठ पर जाएँ",labelRowsPerPage:"पंक्तियाँ प्रति पृष्ठ:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}-${t===-1?n:t} कुल ${n} में`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} तार${e!==1?"े":"ा"}`,emptyLabelText:"रिक्त"}},MuiAutocomplete:{defaultProps:{clearText:"हटायें",closeText:"बंद करें",loadingText:"लोड हो रहा है…",noOptionsText:"कोई विकल्प नहीं",openText:"खोलें"}},MuiAlert:{defaultProps:{closeText:"बंद करें"}},MuiPagination:{defaultProps:{"aria-label":"पृस्ठानुसार संचालन",getItemAriaLabel:(e,t,n)=>e==="page"?`पृष्ठ ${t} ${n?"":" पर जाएँ"}`:e==="first"?"पहले पृष्ठ पर जाएँ":e==="last"?"अंतिम पृष्ठ पर जाएँ":e==="next"?"अगले पृष्ठ पर जाएँ":"पिछले पृष्ठ पर जाएँ"}}}},D9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Pokaži putanju"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Idi na prvu stranicu":e==="last"?"Idi na posljednju stranicu":e==="next"?"Idi na sljedeću stranicu":"Idi na prethodnu stranicu",labelRowsPerPage:"Redova po stranici:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} od ${n!==-1?n:`više nego ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{const t=e%10,n=e%100;return[2,3,4].includes(t)&&![12,13,14].includes(n)?"Zvijezde":"Zvijezda"},emptyLabelText:"Prazno"}},MuiAutocomplete:{defaultProps:{clearText:"Briši",closeText:"Zatvori",loadingText:"Učitavanje…",noOptionsText:"Nema opcija",openText:"Otvori"}},MuiAlert:{defaultProps:{closeText:"Zatvori"}},MuiPagination:{defaultProps:{"aria-label":"Navigacija po stranicama",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Idi na "}stranicu ${t}`:e==="first"?"Idi na prvu stranicu":e==="last"?"Idi na zadnju stranicu":e==="next"?"Idi na sljedeću stranicu":"Idi na prethodnu stranicu"}}}},j9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Útvonal"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Első oldalra":e==="last"?"Utolsó oldalra":e==="next"?"Következő oldalra":"Előző oldalra",labelRowsPerPage:"Sorok száma:"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Csillag`,emptyLabelText:"Üres"}},MuiAutocomplete:{defaultProps:{clearText:"Törlés",closeText:"Bezárás",loadingText:"Töltés…",noOptionsText:"Nincs találat",openText:"Megnyitás"}},MuiAlert:{defaultProps:{closeText:"Bezárás"}},MuiPagination:{defaultProps:{"aria-label":"Lapozás",getItemAriaLabel:(e,t,n)=>e==="page"?`${t}. oldal${n?"":"ra"}`:e==="first"?"Első oldalra":e==="last"?"Utolsó oldalra":e==="next"?"Következő oldalra":"Előző oldalra"}}}},F9={components:{MuiTablePagination:{defaultProps:{labelRowsPerPage:"Տողեր մեկ էջում`"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Աստղ`,emptyLabelText:"Դատարկ"}},MuiAutocomplete:{defaultProps:{clearText:"Մաքրել",closeText:"Փակել",loadingText:"Բեռնում…",noOptionsText:"Տարբերակներ չկան",openText:"Բացել"}},MuiAlert:{defaultProps:{closeText:"Փակել"}}}},B9={components:{MuiTablePagination:{defaultProps:{labelRowsPerPage:"Baris per halaman:"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Bintang`}},MuiAutocomplete:{defaultProps:{clearText:"Hapus",closeText:"Tutup",loadingText:"Memuat…",noOptionsText:"Tidak ada opsi",openText:"Buka"}},MuiAlert:{defaultProps:{closeText:"Tutup"}}}},z9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Sýna slóð"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Fara á fyrstu síðu":e==="last"?"Fara á síðustu síðu":e==="next"?"Fara á næstu síðu":"Fara á fyrri síðu",labelRowsPerPage:"Raðir á síðu:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} af ${n!==-1?n:`fleiri en ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?"stjarna":"stjörnur"}`,emptyLabelText:"Tómt"}},MuiAutocomplete:{defaultProps:{clearText:"Hreinsa",closeText:"Loka",loadingText:"Hlaða…",noOptionsText:"Engar niðurstöður",openText:"Opna"}},MuiAlert:{defaultProps:{closeText:"Loka"}},MuiPagination:{defaultProps:{"aria-label":"Síðuflakk",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"Síða":"Fara á síðu"} ${t}`:e==="first"?"Fara á fyrstu síðu":e==="last"?"Fara á síðustu síðu":e==="next"?"Fara á næstu síðu":"Fara á fyrri síðu"}}}},H9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Visualizza percorso"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Vai alla prima pagina":e==="last"?"Vai all'ultima pagina":e==="next"?"Vai alla pagina successiva":"Vai alla pagina precedente",labelRowsPerPage:"Righe per pagina:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} di ${n!==-1?n:`più di ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stell${e!==1?"e":"a"}`,emptyLabelText:"Vuoto"}},MuiAutocomplete:{defaultProps:{clearText:"Svuota",closeText:"Chiudi",loadingText:"Caricamento in corso…",noOptionsText:"Nessuna opzione",openText:"Apri"}},MuiAlert:{defaultProps:{closeText:"Chiudi"}},MuiPagination:{defaultProps:{"aria-label":"Navigazione impaginata",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Vai alla "}pagina ${t}`:e==="first"?"Vai alla prima pagina":e==="last"?"Vai all'ultima pagina":e==="next"?"Vai alla pagina successiva":"Vai alla pagina precedente"}}}},V9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"すべて表示"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"最初のページへ":e==="last"?"最後のページへ":e==="next"?"次のページへ":"前のページへ",labelRowsPerPage:"ページあたりの行数:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}~${t} / ${n!==-1?n:`${t}以上`}`}},MuiRating:{defaultProps:{getLabelText:e=>`星${e}`,emptyLabelText:"星なし"}},MuiAutocomplete:{defaultProps:{clearText:"クリア",closeText:"閉じる",loadingText:"読み込み中…",noOptionsText:"データがありません",openText:"開く"}},MuiAlert:{defaultProps:{closeText:"閉じる"}},MuiPagination:{defaultProps:{"aria-label":"ページ選択",getItemAriaLabel:(e,t,n)=>e==="page"?`ページ${t}${n?"":"へ"}`:e==="first"?"最初のページへ":e==="last"?"最後のページへ":e==="next"?"次のページへ":"前のページへ"}}}},W9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"បង្ហាញផ្លូវ"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"ទៅទំព័រដំបូង":e==="last"?"ទៅទំព័រចុងក្រោយ":e==="next"?"ទៅទំព័របន្ទាប់":"ទៅទំព័រមុន",labelRowsPerPage:"ចំនួនជួរដេកក្នុងមួយទំព័រ:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e} - ${t} នៃ ${n!==-1?n:`ច្រើនជាង ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ផ្កាយ`,emptyLabelText:"ទទេ"}},MuiAutocomplete:{defaultProps:{clearText:"លុបចោល",closeText:"បិទ",loadingText:"កំពុងលោត…",noOptionsText:"គ្មានជម្រើស",openText:"បើក"}},MuiAlert:{defaultProps:{closeText:"បិទ"}},MuiPagination:{defaultProps:{"aria-label":"រុករកទំព័រ",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"ទៅ "}ទំព័រ ${t}`:e==="first"?"ទៅទំព័រដំបូង":e==="last"?"ទៅទំព័រចុងក្រោយ":e==="next"?"ទៅទំព័របន្ទាប់":"ទៅទំព័រមុន"}}}},U9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"경로 보기"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"첫 번째 페이지로 이동":e==="last"?"마지막 페이지로 이동":e==="next"?"다음 페이지로 이동":"이전 페이지로 이동",labelRowsPerPage:"페이지 당 행:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} / ${n!==-1?n:`${t}개 이상`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 점`,emptyLabelText:"빈 텍스트"}},MuiAutocomplete:{defaultProps:{clearText:"지우기",closeText:"닫기",loadingText:"불러오는 중…",noOptionsText:"옵션 없음",openText:"열기"}},MuiAlert:{defaultProps:{closeText:"닫기"}},MuiPagination:{defaultProps:{"aria-label":"페이지네이션 네비게이션",getItemAriaLabel:(e,t,n)=>e==="page"?`${t} 번째 페이지${n?"":"로 이동"}`:e==="first"?"첫 번째 페이지로 이동":e==="last"?"마지막 페이지로 이동":e==="next"?"다음 페이지로 이동":"이전 페이지로 이동"}}}},G9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"ڕێچکە پیشان بدە"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"چوونە یەکەم پەڕە":e==="last"?"چوونە کۆتا پەڕە":e==="next"?"چوونە پەڕەی دواتر":"گەڕانەوە بۆ پەڕەی پێشوو",labelRowsPerPage:"ژمارەی ڕیزەکان لە هەر پەڕەیەک:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} لە ${n!==-1?n:` زیاترە لە${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e!==1?"ئەستێرەکان":"ئەستێرە"}`,emptyLabelText:"خاڵیە"}},MuiAutocomplete:{defaultProps:{clearText:"سڕینەوە",closeText:"داخستن",loadingText:"لە بارکردندایە...",noOptionsText:"هیچ بژاردەیەک نیە",openText:"کردنەوە"}},MuiAlert:{defaultProps:{closeText:"داخستن"}},MuiPagination:{defaultProps:{"aria-label":"گەڕان لە پەڕەکان",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"چوون بۆ "} پەڕەی ${t}`:e==="first"?"چوونە یەکەم پەڕە":e==="last"?"چوونە کۆتا پەڕە":e==="next"?"چوونە پەڕەی دواتر":"گەڕانەوە بۆ پەڕەی پێشوو"}}}},q9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Rê nîşan bide"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Biçe rûpela yekem":e==="last"?"Biçe rûpela dawî":e==="next"?"Biçe rûpela din":"Biçe rûpela berê",labelRowsPerPage:"Rêz li ser rûpelê:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} of ${n!==-1?n:`zêdetir ji ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stêrk`,emptyLabelText:"Vala"}},MuiAutocomplete:{defaultProps:{clearText:"Paqij bike",closeText:"Bigre",loadingText:"Tê barkirin…",noOptionsText:"Vebijêrk tune",openText:"Veke"}},MuiAlert:{defaultProps:{closeText:"Bigre"}},MuiPagination:{defaultProps:{"aria-label":"Navîgasyona rûpelan",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Biçe "}rûpel ${t}`:e==="first"?"Biçe rûpela yekem":e==="last"?"Biçe rûpela dawî":e==="next"?"Biçe rûpela din":"Biçe rûpela berê"}}}},K9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Толық жолды көрсету"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Бірінші бетке өту":e==="last"?"Соңғы бетке өту":e==="next"?"Келесі бетке өту":"Алдыңғы бетке өту",labelRowsPerPage:"Беттегі қатарлар:",labelDisplayedRows:({from:e,to:t,count:n})=>`${n!==-1?n:`+${t}`} қатардың ішінен ${e}–${t}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} жұлдыз`,emptyLabelText:"Рейтинг жоқ"}},MuiAutocomplete:{defaultProps:{clearText:"Тазарту",closeText:"Жабу",loadingText:"Жүктелуде…",noOptionsText:"Қол жетімді нұсқалар жоқ",openText:"Ашу"}},MuiAlert:{defaultProps:{closeText:"Жабу"}},MuiPagination:{defaultProps:{"aria-label":"Беттерді шарлау",getItemAriaLabel:(e,t,n)=>e==="page"?n?`${t} — бет`:`${t} — бетке өту`:e==="first"?"Бірінші бетке өту":e==="last"?"Соңғы бетке өту":e==="next"?"Келесі бетке өту":"Алдыңғы бетке өту"}}}},Z9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Прикажи патека"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Оди на прва страница":e==="last"?"Оди на последна страница":e==="next"?"Оди на следна страница":"Оди на предходна страница",labelRowsPerPage:"Редови по страница:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} од ${n!==-1?n:`повеќе од ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{const t=e%10;return`${e} Ѕвезд${t===1?"а":"и"}`},emptyLabelText:"Празно"}},MuiAutocomplete:{defaultProps:{clearText:"Избриши",closeText:"Затвори",loadingText:"Се презема",noOptionsText:"Нема опција",openText:"Отвори"}},MuiAlert:{defaultProps:{closeText:"Затвори"}},MuiPagination:{defaultProps:{"aria-label":"Навигација низ страници",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Оди на "}страница ${t}`:e==="first"?"Оди на прва страница":e==="last"?"Оди на последна страница":e==="next"?"Оди на следна страница":"Оди на предходна страница"}}}},Q9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"လမ်းကြောင်းပြပါ။"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"ပထမစာမျက်နှာသို့သွားပါ။":e==="last"?"နောက်ဆုံးစာမျက်နှာသို့သွားပါ။":e==="next"?"နောက်စာမျက်နှာသို့သွားပါ။":"ယခင်စာမျက်နှာသို့သွားပါ။",labelRowsPerPage:"စာမျက်နှာအလိုက် အတန်းများ:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} ၏ ${n!==-1?n:`ထက်ပိုပြီး ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{const t=e%10;return`${e} ကြယ်ပွင့်${t===1?"၎":""}`},emptyLabelText:"ဗလာ"}},MuiAutocomplete:{defaultProps:{clearText:"ရှင်းလင်းသော",closeText:"ပိတ်လိုက်",loadingText:"ဖွင့်နေသည်…",noOptionsText:"ရွေးချယ်ခွင့်မရှိပါ။",openText:"ဖွင့်သည်။"}},MuiAlert:{defaultProps:{closeText:"ပိတ်လိုက်"}},MuiPagination:{defaultProps:{"aria-label":"Pagination အညွှန်း",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"သွားပါ။ "}စာမျက်နှာ ${t}`:e==="first"?"ပထမစာမျက်နှာသို့သွားပါ။":e==="last"?"နောက်ဆုံးစာမျက်နှာသို့သွားပါ။":e==="next"?"နောက်စာမျက်နှာသို့သွားပါ။":"ယခင်စာမျက်နှာသို့သွားပါ။"}}}},Y9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Tunjukkan laluan"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Pergi ke halaman pertama":e==="last"?"Pergi ke halaman terakhir":e==="next"?"Pergi ke halaman seterusnya":"Pergi ke halaman sebelumnya",labelRowsPerPage:"Baris setiap halaman:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} daripada ${n!==-1?n:`lebih daripada ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{const t=e%10;return`${e} Bintang${t===1?"s":""}`},emptyLabelText:"kosong"}},MuiAutocomplete:{defaultProps:{clearText:"Jelas",closeText:"tutup",loadingText:"Memuatkan…",noOptionsText:"Tiada pilihan",openText:"Buka"}},MuiAlert:{defaultProps:{closeText:"tutup"}},MuiPagination:{defaultProps:{"aria-label":"Navigasi penomboran",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Pergi ke "}muka surat ${t}`:e==="first"?"Pergi ke halaman pertama":e==="last"?"Pergi ke halaman terakhir":e==="next"?"Pergi ke halaman seterusnya":"Pergi ke halaman sebelumnya"}}}},X9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"बाटो देखाउनुहोस्"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"पहिलो पृष्ठमा जानुहोस्":e==="last"?"अन्तिम पृष्ठमा जानुहोस्":e==="next"?"अर्को पृष्ठमा जानुहोस्":"अघिल्लो पृष्ठमा जानुहोस्",labelRowsPerPage:"प्रति पृष्ठ पङ्क्तिहरू:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} को ${n!==-1?n:`धेरै ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{const t=e%10;return`${e} तारा${t===1?"स":""}`},emptyLabelText:"खाली"}},MuiAutocomplete:{defaultProps:{clearText:"खाली गर्नुहोस्",closeText:"बन्द गर्नुहोस्",loadingText:"लोड हुँदै...",noOptionsText:"कुनै विकल्प छैन",openText:"खोल्नुहोस्"}},MuiAlert:{defaultProps:{closeText:"बन्द गर्नुहोस्"}},MuiPagination:{defaultProps:{"aria-label":"पृष्ठांकन नेभिगेसन",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"जाऊ त्यहाँ "}पृष्ठ ${t}`:e==="first"?"पहिलो पृष्ठमा जानुहोस्":e==="last"?"अन्तिम पृष्ठमा जानुहोस्":e==="next"?"अर्को पृष्ठमा जानुहोस्":"अघिल्लो पृष्ठमा जानुहोस्"}}}},J9={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Vis sti"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Gå til første side":e==="last"?"Gå til siste side":e==="next"?"Gå til neste side":"Gå til forrige side",labelRowsPerPage:"Rader per side:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} av ${n!==-1?n:`mer enn ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stjerne${e!==1?"r":""}`,emptyLabelText:"Tom"}},MuiAutocomplete:{defaultProps:{clearText:"Tøm",closeText:"Lukk",loadingText:"Laster inn…",noOptionsText:"Ingen alternativer",openText:"Åpne"}},MuiAlert:{defaultProps:{closeText:"Lukk"}},MuiPagination:{defaultProps:{"aria-label":"Paginering navigasjon",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Gå til "}side ${t}`:e==="first"?"Gå til første side":e==="last"?"Gå til siste side":e==="next"?"Gå til neste side":"Gå til forrige side"}}}},eD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Vis sti"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Gå til første side":e==="last"?"Gå til siste side":e==="next"?"Gå til neste side":"Gå til førre side",labelRowsPerPage:"Rader per side:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} av ${n!==-1?n:`fleire enn ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} stjerne${e!==1?"r":""}`,emptyLabelText:"Tom"}},MuiAutocomplete:{defaultProps:{clearText:"Tøm",closeText:"Lukk",loadingText:"Lastar inn…",noOptionsText:"Ingen alternativ",openText:"Opna"}},MuiAlert:{defaultProps:{closeText:"Lukk"}},MuiPagination:{defaultProps:{"aria-label":"Navigasjon for paginering",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Gå til "}side ${t}`:e==="first"?"Gå til første side":e==="last"?"Gå til siste side":e==="next"?"Gå til neste side":"Gå til førre side"}}}},tD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Pad tonen"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Ga naar eerste pagina":e==="last"?"Ga naar laatste pagina":e==="next"?"Ga naar volgende pagina":"Ga naar vorige pagina",labelRowsPerPage:"Regels per pagina:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} van ${n!==-1?n:`meer dan ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Ster${e!==1?"ren":""}`,emptyLabelText:"Leeg"}},MuiAutocomplete:{defaultProps:{clearText:"Wissen",closeText:"Sluiten",loadingText:"Laden…",noOptionsText:"Geen opties",openText:"Openen"}},MuiAlert:{defaultProps:{closeText:"Sluiten"}},MuiPagination:{defaultProps:{"aria-label":"Navigatie via paginering",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Ga naar "}pagina ${t}`:e==="first"?"Ga naar eerste pagina":e==="last"?"Ga naar laatste pagina":e==="next"?"Ga naar volgende pagina":"Ga naar vorige pagina"}}}},nD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Pokaż ścieżkę"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Przejdź do pierwszej strony":e==="last"?"Przejdź do ostatniej strony":e==="next"?"Przejdź do następnej strony":"Przejdź do poprzedniej strony",labelRowsPerPage:"Wierszy na stronę:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} z ${n!==-1?n:`ponad ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t="gwiazdek";const n=e%10;return(e<10||e>20)&&n>1&&n<5?t="gwiazdki":e===1&&(t="gwiazdka"),`${e} ${t}`},emptyLabelText:"Brak gwiazdek"}},MuiAutocomplete:{defaultProps:{clearText:"Wyczyść",closeText:"Zamknij",loadingText:"Ładowanie…",noOptionsText:"Brak opcji",openText:"Otwórz"}},MuiAlert:{defaultProps:{closeText:"Zamknij"}},MuiPagination:{defaultProps:{"aria-label":"Nawigacja podziału na strony",getItemAriaLabel:(e,t,n)=>e==="page"?n?`${t}. strona`:`Przejdź do ${t}. strony`:e==="first"?"Przejdź do pierwszej strony":e==="last"?"Przejdź do ostatniej strony":e==="next"?"Przejdź do następnej strony":"Przejdź do poprzedniej strony"}}}},rD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"لاره ښکاره کړه"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"لومړۍ پاڼې ته لاړ شه":e==="last"?"ورستۍ پاڼې ته لاړ شه":e==="next"?"بلی پاڼې ته لاړ شه":"مخکینۍ پاڼې ته لاړ شه",labelRowsPerPage:"په پاڼه کی د کرښو شمیر",labelDisplayedRows:({from:e,to:t,count:n})=>`${n!==-1?n:`${t} زیات له`} ${t}- ${e} د`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ستوری`,emptyLabelText:"خالی"}},MuiAutocomplete:{defaultProps:{clearText:"پاک کول",closeText:"تړل",loadingText:"... لوډ کیږی",noOptionsText:"بی پایلی",openText:"خلاصول"}},MuiAlert:{defaultProps:{closeText:"تړل"}},MuiPagination:{defaultProps:{"aria-label":"د پاڼو ترتیب",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":" ته لاړ شه"}پاڼې ${t}`:e==="first"?"لومړۍ پاڼی ته لاړ شه":e==="last"?"وروستۍ پاڼې ته لاړه شه":e==="next"?"بلې پاڼې ته لاړ شه":"مخکنۍ پاڼې ته لاړ شه"}}}},oD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Mostrar caminho"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Ir para a primeira página":e==="last"?"Ir para a última página":e==="next"?"Ir para a próxima página":"Ir para a página anterior",labelRowsPerPage:"Linhas por página:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} de ${n!==-1?n:`mais de ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrela${e!==1?"s":""}`,emptyLabelText:"Vazio"}},MuiAutocomplete:{defaultProps:{clearText:"Limpar",closeText:"Fechar",loadingText:"Carregando…",noOptionsText:"Sem opções",openText:"Abrir"}},MuiAlert:{defaultProps:{closeText:"Fechar"}},MuiPagination:{defaultProps:{"aria-label":"Navegar pela paginação",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Ir para a "}página ${t}`:e==="first"?"Ir para a primeira página":e==="last"?"Ir para a última página":e==="next"?"Ir para a próxima página":"Ir para a página anterior"}}}},iD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Mostrar caminho"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Primeira página":e==="last"?"Última página":e==="next"?"Próxima página":"Página anterior",labelRowsPerPage:"Linhas por página:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} de ${n!==-1?n:`mais de ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrela${e!==1?"s":""}`,emptyLabelText:"Vazio"}},MuiAutocomplete:{defaultProps:{clearText:"Limpar",closeText:"Fechar",loadingText:"A carregar…",noOptionsText:"Sem opções",openText:"Abrir"}},MuiAlert:{defaultProps:{closeText:"Fechar"}},MuiPagination:{defaultProps:{"aria-label":"Navegar por páginas",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Ir para a "}página ${t}`:e==="first"?"Primeira página":e==="last"?"Última página":e==="next"?"Próxima página":"Página anterior"}}}},aD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Arată calea"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Mergi la prima pagină":e==="last"?"Mergi la ultima pagină":e==="next"?"Mergi la pagina următoare":"Mergi la pagina precedentă",labelRowsPerPage:"Rânduri pe pagină:"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} St${e!==1?"ele":"ea"}`,emptyLabelText:"Gol"}},MuiAutocomplete:{defaultProps:{clearText:"Șterge",closeText:"Închide",loadingText:"Se încarcă…",noOptionsText:"Nicio opțiune",openText:"Deschide"}},MuiAlert:{defaultProps:{closeText:"Închide"}},MuiPagination:{defaultProps:{"aria-label":"Navigare prin paginare",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Mergi la "}pagina ${t}`:e==="first"?"Mergi la prima pagină":e==="last"?"Mergi la ultima pagină":e==="next"?"Mergi la pagina următoare":"Mergi la pagina precedentă"}}}},sD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Pokaži putanju"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Idi na prvu stranicu":e==="last"?"Idi na poslednju stranicu":e==="next"?"Idi na sledeću stranicu":"Idi na prethodnu stranicu",labelRowsPerPage:"Redova po stranici:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} od ${n!==-1?n:`više nego ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{const t=e%10,n=e%100;return[2,3,4].includes(t)&&![12,13,14].includes(n)?"Zvezde":"Zvezda"},emptyLabelText:"Prazno"}},MuiAutocomplete:{defaultProps:{clearText:"Briši",closeText:"Zatvori",loadingText:"Učitavanje…",noOptionsText:"Nema opcija",openText:"Otvori"}},MuiAlert:{defaultProps:{closeText:"Zatvori"}},MuiPagination:{defaultProps:{"aria-label":"Navigacija po stranicama",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Idi na "}stranicu ${t}`:e==="first"?"Idi na prvu stranicu":e==="last"?"Idi na zadnju stranicu":e==="next"?"Idi na sledeću stranicu":"Idi na prethodnu stranicu"}}}},lD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Показать полный путь"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Перейти на первую страницу":e==="last"?"Перейти на последнюю страницу":e==="next"?"Перейти на следующую страницу":"Перейти на предыдущую страницу",labelRowsPerPage:"Строк на странице:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} из ${n!==-1?n:`более чем ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t="Звёзд";const n=e%10;return n>1&&n<5?t="Звезды":n===1&&(t="Звезда"),`${e} ${t}`},emptyLabelText:"Рейтинг отсутствует"}},MuiAutocomplete:{defaultProps:{clearText:"Очистить",closeText:"Закрыть",loadingText:"Загрузка…",noOptionsText:"Нет доступных вариантов",openText:"Открыть"}},MuiAlert:{defaultProps:{closeText:"Закрыть"}},MuiPagination:{defaultProps:{"aria-label":"Навигация по страницам",getItemAriaLabel:(e,t,n)=>e==="page"?n?`${t} страница`:`Перейти на ${t} страницу`:e==="first"?"Перейти на первую страницу":e==="last"?"Перейти на последнюю страницу":e==="next"?"Перейти на следующую страницу":"Перейти на предыдущую страницу"}}}},cD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"ගමන් මඟ පෙන්වන්න"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"පළමු පිටුවට යන්න":e==="last"?"අවසාන පිටුවට යන්න":e==="next"?"මීළඟ පිටුවට යන්න":"පෙර පිටුවට යන්න",labelRowsPerPage:"පිටුවක පේළි:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} දක්වා ${n!==-1?n:`${t} ට වැඩි ප්‍රමාණයකින්`}`}},MuiRating:{defaultProps:{getLabelText:e=>`තරු ${e}`,emptyLabelText:"හිස්"}},MuiAutocomplete:{defaultProps:{clearText:"මකන්න",closeText:"වසන්න",loadingText:"නැංවෙමින්…",noOptionsText:"විකල්ප නැත",openText:"විවෘත කරන්න"}},MuiAlert:{defaultProps:{closeText:"වසන්න"}},MuiPagination:{defaultProps:{"aria-label":"පිටු අතර සංචරණය",getItemAriaLabel:(e,t,n)=>e==="page"?`පිටුව ${t} ${n?"":"ට යන්න"}`:e==="first"?"පළමු පිටුවට යන්න":e==="last"?"අවසාන පිටුවට යන්න":e==="next"?"මීළඟ පිටුවට යන්න":"පෙර පිටුවට යන්න"}}}},uD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Ukázať cestu "}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Ísť na prvú stránku":e==="last"?"Ísť na poslednú stránku":e==="next"?"Ísť na ďaľšiu stránku":"Ísť na predchádzajúcu stránku",labelRowsPerPage:"Riadkov na stránke:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} z ${n!==-1?n:`viac ako ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>e===1?`${e} hviezdička`:e>=2&&e<=4?`${e} hviezdičky`:`${e} hviezdičiek`,emptyLabelText:"Prázdne"}},MuiAutocomplete:{defaultProps:{clearText:"Vymazať",closeText:"Zavrieť",loadingText:"Načítanie…",noOptionsText:"Žiadne možnosti",openText:"Otvoriť"}},MuiAlert:{defaultProps:{closeText:"Zavrieť"}},MuiPagination:{defaultProps:{"aria-label":"Navigácia stránkovanim",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Ísť na "}stránku ${t}`:e==="first"?"Ísť na prvú stránku":e==="last"?"Ísť na poslednú stránku":e==="next"?"Ísť na ďaľšiu stránku":"Ísť na predchádzajúcu stránku"}}}},dD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Visa sökväg"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Gå till första sidan":e==="last"?"Gå till sista sidan":e==="next"?"Gå till nästa sida":"Gå till föregående sida",labelRowsPerPage:"Rader per sida:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} av ${n!==-1?n:`fler än ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e!==1?"Stjärnor":"Stjärna"}`,emptyLabelText:"Tom"}},MuiAutocomplete:{defaultProps:{clearText:"Rensa",closeText:"Stäng",loadingText:"Laddar…",noOptionsText:"Inga alternativ",openText:"Öppna"}},MuiAlert:{defaultProps:{closeText:"Stäng"}},MuiPagination:{defaultProps:{"aria-label":"Sidnavigering",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Gå till "}sida ${t}`:e==="first"?"Gå till första sidan":e==="last"?"Gå till sista sidan":e==="next"?"Gå till nästa sida":"Gå till föregående sida"}}}},fD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"แสดงเส้นทาง"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"ไปที่หน้าแรก":e==="last"?"ไปที่หน้าสุดท้าย":e==="next"?"ไปที่หน้าถัดไป":"ไปที่หน้าก่อน",labelRowsPerPage:"จำนวนแถวต่อหน้า:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} จาก ${n!==-1?n:`มากกว่า ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ดาว`,emptyLabelText:"ว่างเปล่า"}},MuiAutocomplete:{defaultProps:{clearText:"เคลียร์",closeText:"ปิด",loadingText:"กำลังโหลด…",noOptionsText:"ไม่มีตัวเลือก",openText:"เปิด"}},MuiAlert:{defaultProps:{closeText:"ปิด"}},MuiPagination:{defaultProps:{"aria-label":"",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"ไปที่"}หน้า ${t}`:e==="first"?"ไปที่หน้าแรก":e==="last"?"ไปที่หน้าสุดท้าย":e==="next"?"ไปที่หน้าถัดไป":"ไปที่หน้าก่อน"}}}},pD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Yolu göster"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"İlk sayfaya git":e==="last"?"Son sayfaya git":e==="next"?"Sonraki sayfaya git":"Önceki sayfaya git",labelRowsPerPage:"Sayfa başına satır:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}-${t} / ${n!==-1?n:`${t}'den fazla`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Yıldız`,emptyLabelText:"Boş"}},MuiAutocomplete:{defaultProps:{clearText:"Temizle",closeText:"Kapat",loadingText:"Yükleniyor…",noOptionsText:"Seçenek yok",openText:"Aç"}},MuiAlert:{defaultProps:{closeText:"Kapat"}},MuiPagination:{defaultProps:{"aria-label":"Sayfa navigasyonu",getItemAriaLabel:(e,t,n)=>e==="page"?`${t}. ${n?"sayfa":"sayfaya git"}`:e==="first"?"İlk sayfaya git":e==="last"?"Son sayfaya git":e==="next"?"Sonraki sayfaya git":"Önceki sayfaya git"}}}},gD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Ipakita ang landas"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Pumunta sa unang pahina":e==="last"?"Pumunta sa huling pahina":e==="next"?"Pumunta sa susunod na pahina":"Pumunta sa nakaraang pahina",labelRowsPerPage:"Mga hilera bawat pahina:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} ng ${n!==-1?n:`higit sa ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Bituin${e!==1?"s":""}`,emptyLabelText:"Walang laman"}},MuiAutocomplete:{defaultProps:{clearText:"Maaliwalas",closeText:"Isara",loadingText:"Naglo-load…",noOptionsText:"Walang mga pagpipilian",openText:"Bukas"}},MuiAlert:{defaultProps:{closeText:"Isara"}},MuiPagination:{defaultProps:{"aria-label":"Sayfa navigasyonu",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Pumunta sa"}pahina ${t}`:e==="first"?"Pumunta sa unang pahina":e==="last"?"Pumunta sa huling pahina":e==="next"?"Pumunta sa susunod na pahina":"Pumunta sa nakaraang pahina"}}}},hD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Показати шлях сторінок"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Перейти на першу сторінку":e==="last"?"Перейти на останню сторінку":e==="next"?"Перейти на наступну сторінку":"Перейти на попередню сторінку",labelRowsPerPage:"Рядків на сторінці:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} з ${n!==-1?n:`понад ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t="Зірок";const n=e%10;return n>1&&n<5?t="Зірки":n===1&&(t="Зірка"),`${e} ${t}`},emptyLabelText:"Рейтинг відсутній"}},MuiAutocomplete:{defaultProps:{clearText:"Очистити",closeText:"Згорнути",loadingText:"Завантаження…",noOptionsText:"Немає варіантів",openText:"Розгорнути"}},MuiAlert:{defaultProps:{closeText:"Згорнути"}},MuiPagination:{defaultProps:{"aria-label":"Навігація сторінками",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Перейти на "}сторінку ${t}`:e==="first"?"Перейти на першу сторінку":e==="last"?"Перейти на останню сторінку":e==="next"?"Перейти на наступну сторінку":"Перейти на попередню сторінку"}}}},mD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"راستہ دکھائیں"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"پہلے صفحے پر جائیں":e==="last"?"آخری صفحے پر جائیں":e==="next"?"اگلے صفحے پر جائیں":"پچھلے صفحے پر جائیں",labelRowsPerPage:"ایک صفحے پر قطاریں:",labelDisplayedRows:({from:e,to:t,count:n})=>`${n!==-1?`${n} میں سے`:`${t} سے ذیادہ میں سے`} ${e} سے ${t} قطاریں`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ستار${e!==1?"ے":"ہ"}`,emptyLabelText:"خالی"}},MuiAutocomplete:{defaultProps:{clearText:"کلئیر",closeText:"بند کریں",loadingText:"لوڈ ہو رہا ہے۔۔۔",noOptionsText:"کوئی آپشن نہیں",openText:"کھولیں"}},MuiAlert:{defaultProps:{closeText:"بند کریں"}},MuiPagination:{defaultProps:{"aria-label":"صفحات کی ترتیب",getItemAriaLabel:(e,t,n)=>e==="page"?`صفحہ نمبر ${t}${n?"":" پر جائیں"}`:e==="first"?"پہلے صفحے پر جائیں":e==="last"?"آخری صفحے پر جائیں":e==="next"?"اگلے صفحے پر جائیں":"پچھلے صفحے پر جائیں"}}}},vD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"Mở ra"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"Tới trang đầu tiên":e==="last"?"Tới trang cuối cùng":e==="next"?"Tới trang tiếp theo":"Về trang trước đó",labelRowsPerPage:"Số hàng mỗi trang:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} trong ${n!==-1?n:`nhiều hơn ${t}`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} sao`,emptyLabelText:"Không có dữ liệu"}},MuiAutocomplete:{defaultProps:{clearText:"Xóa",closeText:"Đóng",loadingText:"Đang tải…",noOptionsText:"Không có lựa chọn nào",openText:"Mở"}},MuiAlert:{defaultProps:{closeText:"Đóng"}},MuiPagination:{defaultProps:{"aria-label":"Thanh điều khiển trang",getItemAriaLabel:(e,t,n)=>e==="page"?`${n?"":"Tới "}trang ${t}`:e==="first"?"Tới trang đầu tiên":e==="last"?"Tới trang cuối cùng":e==="next"?"Tới trang tiếp theo":"Về trang trước đó"}}}},yD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"展开"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"第一页":e==="last"?"最后一页":e==="next"?"下一页":"上一页",labelRowsPerPage:"每页行数:",labelDisplayedRows:({from:e,to:t,count:n})=>`第 ${e} 条到第 ${t} 条,${n!==-1?`共 ${n} 条`:`至少 ${t} 条`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 颗星`,emptyLabelText:"无标签"}},MuiAutocomplete:{defaultProps:{clearText:"清空",closeText:"关闭",loadingText:"加载中……",noOptionsText:"没有可用选项",openText:"打开"}},MuiAlert:{defaultProps:{closeText:"关闭"}}}},bD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"展開"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"第一頁":e==="last"?"最後一頁":e==="next"?"下一頁":"上一頁",labelRowsPerPage:"每頁行數:",labelDisplayedRows:({from:e,to:t,count:n})=>`第 ${e} 項至第 ${t} 項,${n!==-1?`共 ${n} 項`:`超過 ${t} 項`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 粒星`,emptyLabelText:"無標籤"}},MuiAutocomplete:{defaultProps:{clearText:"清除",closeText:"關閉",loadingText:"載入中……",noOptionsText:"沒有可用選項",openText:"開啟"}},MuiAlert:{defaultProps:{closeText:"關閉"}}}},xD={components:{MuiBreadcrumbs:{defaultProps:{expandText:"展開"}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e==="first"?"第一頁":e==="last"?"最後一頁":e==="next"?"下一頁":"上一頁",labelRowsPerPage:"每頁數量:",labelDisplayedRows:({from:e,to:t,count:n})=>`${e} ~ ${t} / ${n!==-1?n:`${t} 以上`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 顆星`,emptyLabelText:"無標籤"}},MuiAutocomplete:{defaultProps:{clearText:"清空",closeText:"關閉",loadingText:"載入中…",noOptionsText:"沒有可用選項",openText:"打開"}},MuiAlert:{defaultProps:{closeText:"關閉"}}}},SD=Object.freeze(Object.defineProperty({__proto__:null,amET:m9,arEG:v9,arSA:y9,arSD:b9,azAZ:x9,beBY:w9,bgBG:C9,bnBD:S9,caES:_9,csCZ:R9,daDK:T9,deDE:P9,elGR:k9,enUS:$9,esES:E9,etEE:M9,faIR:I9,fiFI:O9,frFR:L9,heIL:A9,hiIN:N9,hrHR:D9,huHU:j9,hyAM:F9,idID:B9,isIS:z9,itIT:H9,jaJP:V9,khKH:W9,kkKZ:K9,koKR:U9,kuCKB:G9,kuLatn:q9,mkMK:Z9,msMS:Y9,myMY:Q9,nbNO:J9,neNP:X9,nlNL:tD,nnNO:eD,plPL:nD,psAF:rD,ptBR:oD,ptPT:iD,roRO:aD,ruRU:lD,siLK:cD,skSK:uD,srRS:sD,svSE:dD,thTH:fD,tlTL:gD,trTR:pD,ukUA:hD,urPK:mD,viVN:vD,zhCN:yD,zhHK:bD,zhTW:xD},Symbol.toStringTag,{value:"Module"}));var px;(function(e){e.Single="single",e.Multiple="multiple"})(px||(px={}));const wD="_toolbar_158fz_3",CD="_actions_158fz_8",_D="_selectLabel_158fz_16",RD="_select_158fz_16",TD="_displayedRows_158fz_21",PD="_selectRoot_158fz_29",kD="_selectIcon_158fz_45",$D="_iconBtnRoot_158fz_56",ED="_iconBtnDisabled_158fz_68",po={toolbar:wD,actions:CD,selectLabel:_D,select:RD,displayedRows:TD,selectRoot:PD,selectIcon:kD,iconBtnRoot:$D,iconBtnDisabled:ED},gx={root:po.iconBtnRoot,disabled:po.iconBtnDisabled},MD=e=>{const{className:t="",page:n,onPageChange:r,count:o,rowsPerPage:i}=e;return g.jsxs("div",{className:t,children:[g.jsx(hr,{disableRipple:!0,classes:gx,disabled:n===0,onClick:a=>r(a,n-1),children:g.jsx(GA,{size:10},void 0)},void 0),g.jsx(hr,{disableRipple:!0,classes:gx,disabled:n>=Math.ceil(o/i)-1,onClick:a=>r(a,n+1),children:g.jsx(qA,{size:10},void 0)},void 0)]},void 0)},ID=e=>{const n=zt().language==="zhCN";return g.jsx(sA,{component:"div",ActionsComponent:r=>g.jsx(MD,{...r},void 0),classes:{toolbar:po.toolbar,actions:po.actions,displayedRows:po.displayedRows,selectLabel:po.selectLabel,select:po.select,selectIcon:po.selectIcon},SelectProps:{label:n?"每页显示":"Rows per page",className:po.selectRoot,IconComponent:()=>g.jsx(ia,{size:12},void 0)},labelDisplayedRows:({from:r,to:o,count:i})=>g.jsx(mt,{color:"textSecondary",children:n?g.jsxs(g.Fragment,{children:["共有 ",g.jsx("strong",{children:i},void 0)," 条,第 ",g.jsx("strong",{children:r},void 0),"-",g.jsx("strong",{children:o},void 0),"条"]},void 0):g.jsxs(g.Fragment,{children:[g.jsx("strong",{children:r},void 0),"-",g.jsx("strong",{children:o},void 0)," of"," ",g.jsx("strong",{children:i},void 0)]},void 0)},void 0),...e},void 0)};var hx;(function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"})(hx||(hx={}));var mx;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(mx||(mx={}));var vx;(function(e){e.Small="small",e.Medium="medium"})(vx||(vx={}));const OD=function(e,t,n){t.prototype.isBetween=function(r,o,i,a){var s=n(r),l=n(o);a=a||"()";var c=a[0]==="(",u=a[1]===")";return(c?this.isAfter(s,i):!this.isBefore(s,i))&&(u?this.isBefore(l,i):!this.isAfter(l,i))||(c?this.isBefore(s,i):!this.isAfter(s,i))&&(u?this.isAfter(l,i):!this.isBefore(l,i))}},LD=function(e,t,n){var r=function(i,a){if(!a||!a.length||a.length===1&&!a[0]||a.length===1&&Array.isArray(a[0])&&!a[0].length)return null;if(a.length===1&&a[0].length>0){var s=a;a=s[0]}a=a.filter(function(d){return d});var l,c=a;l=c[0];for(var u=1;u=M?D:""+Array(M+1-N.length).join(A)+D},C={s:m,z:function(D){var M=-D.utcOffset(),A=Math.abs(M),N=Math.floor(A/60),E=A%60;return(M<=0?"+":"-")+m(N,2,"0")+":"+m(E,2,"0")},m:function D(M,A){if(M.date()1)return D(B[0])}else{var H=M.name;R[H]=M,E=H}return!N&&E&&(_=E),E||!N&&_},x=function(D,M){if(T(D))return D.clone();var A=typeof M=="object"?M:{};return A.date=D,A.args=arguments,new I(A)},$=C;$.l=P,$.i=T,$.w=function(D,M){return x(D,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var I=function(){function D(A){this.$L=P(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[k]=!0}var M=D.prototype;return M.parse=function(A){this.$d=function(N){var E=N.date,L=N.utc;if(E===null)return new Date(NaN);if($.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var B=E.match(w);if(B){var H=B[2]-1||0,z=(B[7]||"0").substring(0,3);return L?new Date(Date.UTC(B[1],H,B[3]||1,B[4]||0,B[5]||0,B[6]||0,z)):new Date(B[1],H,B[3]||1,B[4]||0,B[5]||0,B[6]||0,z)}}return new Date(E)}(A),this.init()},M.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},M.$utils=function(){return $},M.isValid=function(){return this.$d.toString()!==y},M.isSame=function(A,N){var E=x(A);return this.startOf(N)<=E&&E<=this.endOf(N)},M.isAfter=function(A,N){return x(A)[{label:"Today",startDate:e,endDate:e},{label:"Yesterday",startDate:tt(e).add(-1,"day").toDate(),endDate:tt(e).add(-1,"day").toDate()},{label:"This Week",startDate:tt(e).startOf("week").toDate(),endDate:tt(e).endOf("week").toDate()},{label:"Last Week",startDate:tt(e).add(-1,"week").startOf("week").toDate(),endDate:tt(e).add(-1,"week").endOf("week").toDate()},{label:"Last 7 Days",startDate:tt(e).add(-1,"week").toDate(),endDate:e},{label:"This Month",startDate:tt(e).startOf("month").toDate(),endDate:tt(e).endOf("month").toDate()},{label:"Last Month",startDate:tt(e).add(-1,"month").startOf("month").toDate(),endDate:tt(e).add(-1,"month").endOf("month").toDate()}];ND(new Date);tt(new Date).startOf("week").toDate(),tt(new Date).endOf("week").toDate();const DD="_container_a4vk2_3",jD="_checkedCircle_a4vk2_5",FD="_checked_a4vk2_5",BD="_disabled_a4vk2_60",Ku={container:DD,checkedCircle:jD,checked:FD,disabled:BD},xx=e=>{const{checked:t=!1,disabled:n=!1}=e;return g.jsx("div",{className:Gt(Ku.checkedCircle,{[Ku.checked]:t,[Ku.disabled]:n})},void 0)},Sx=rt.forwardRef(function(e,t){const{sx:n,disabled:r,checked:o,className:i,...a}=e;return g.jsx(HL,{ref:t,className:Gt(Ku.container,i),sx:{"&.Mui-disabled":{opacity:.5},...n},disableRipple:!0,disableTouchRipple:!0,color:"default",checkedIcon:g.jsx(xx,{checked:!0,disabled:r},void 0),icon:g.jsx(xx,{disabled:r},void 0),disabled:r,checked:o,...a},void 0)});rt.forwardRef(function(e,t){const{label:n="",...r}=e,o=zt();return n?g.jsx(M_,{control:g.jsx(Sx,{ref:t,...r},void 0),sx:{margin:0,display:"flex",alignSelf:"center",gap:"8px","& .MuiFormControlLabel-label":{fontSize:14,lineHeight:"135%",fontWeight:400,color:o.black.black1},"& .MuiFormControlLabel-label.Mui-disabled":{opacity:.5,color:o.black.black1},"& .MuiRadio-root":{padding:0,marginRight:0}},label:n},void 0):g.jsx(Sx,{ref:t,...r},void 0)});Yd(new Date).startOf("day"),Yd(new Date).endOf("day");tt.extend(OD);tt.extend(LD);const zD="_btnWrapper_mwgh3_3",HD="_titleWrapper_mwgh3_9",Sg={btnWrapper:zD,titleWrapper:HD},VD=rt.forwardRef(function(t,n){return g.jsx(y_,{ref:n,...t},void 0)}),WD=e=>{const{handleClose:t,severity:n="info",title:r,message:o,classes:i={root:"",title:"",message:""},icon:a,actions:s,showClose:l=!0,...c}=e,u=zt(),{iconStyles:d}=b.useMemo(()=>{let p=u.blue.blue2;switch(n){case"info":p=u.blue.blue2;break;case"error":p=u.red.red2;break;case"success":p=u.green.green2;break;case"warning":p=u.yellow.yellow2;break}return{iconStyles:{width:"20px",height:"20px",paddingTop:r?"2px":0,"& path":{fill:p}}}},[n,r]),f=g.jsx(hr,{"aria-label":"close",color:"inherit",size:"small",onClick:t,disableRipple:!0,sx:{"&.MuiIconButton-root":{"& path":{fill:u.black.black1},"&:hover":{"& path":{fill:u.black.black2}}}},children:g.jsx(O1,{size:16,fontSize:"inherit"},void 0)},void 0);return g.jsx(VD,{severity:n,variant:"outlined",iconMapping:{success:a||g.jsx(U_,{width:20,height:20,sx:d},void 0),info:a||g.jsx(Rm,{width:20,height:20,sx:d},void 0),warning:a||g.jsx(V_,{sx:d},void 0),error:a||g.jsx(W_,{sx:d},void 0)},sx:{boxShadow:"0px 1px 10px 0px rgba(107, 121, 141, 0.30)",padding:"16px",width:"fit-content",borderRadius:"12px",border:"none",backgroundColor:"#FFF","& .MuiAlert-icon":{paddingTop:0,paddingBottom:0,marginRight:"8px"},"& .MuiAlert-message":{display:"flex",alignItems:"center",fontWeight:400,color:u.black.black1,padding:0},"& .MuiAlert-action":{paddingTop:0,paddingRight:"6px"}},action:r||!l?void 0:f,...c,children:g.jsxs("div",{className:Gt(i.root,Sg.root),children:[r&&g.jsxs("div",{className:Sg.titleWrapper,children:[g.jsx(mt,{variant:"h4Semibold",children:r},void 0),l?f:g.jsx("span",{},void 0)]},void 0),g.jsx(mt,{variant:"body1Regular",component:"div",sx:{whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:5,WebkitBoxOrient:"vertical",paddingRight:"30px"},className:i.message,children:o},void 0),s&&g.jsx("div",{className:Sg.btnWrapper,children:s.confirm&&g.jsx(L1,{variant:"textBlue",withMargin:!1,...s.confirm},void 0)},void 0)]},void 0)},void 0)},wx=300,Cx=({children:e,maxWidth:t="100%",tooltipProps:n={},typographyProps:r={}})=>{const o=b.useRef(null),[i,a]=b.useState(!1),{sx:s={},...l}=r;b.useEffect(()=>{const u=o.current;a(u.scrollWidth>u.offsetWidth||u.scrollHeight>u.offsetHeight)},[]);const c=b.useMemo(()=>{var d;const u=(d=o.current)==null?void 0:d.offsetWidth;return u?u>wx?u:wx:"100%"},[o.current]);return g.jsx(bp,{...n,title:i?e:"",sx:{maxWidth:c},children:g.jsx(mt,{component:"div",sx:{maxWidth:t,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",...s},ref:o,...l,children:e},void 0)},void 0)},UD=e=>g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",...e,children:[g.jsx("path",{d:"M1.47656 33.8702C1.47656 34.5009 3.48086 35.1057 7.04852 35.5517C10.6162 35.9976 15.455 36.2482 20.5004 36.2482C25.5459 36.2482 30.3847 35.9976 33.9523 35.5517C37.52 35.1057 39.5243 34.5009 39.5243 33.8702C39.5243 33.2395 37.52 32.6346 33.9523 32.1887C30.3847 31.7427 25.5459 31.4922 20.5004 31.4922C15.455 31.4922 10.6162 31.7427 7.04852 32.1887C3.48086 32.6346 1.47656 33.2395 1.47656 33.8702Z",fill:"#F0F2F4"},void 0),g.jsx("path",{d:"M36.6449 17.8911V17.8435C36.6449 17.7959 36.6211 17.7722 36.6211 17.7246V17.7008L31.5085 7.53099C30.7713 5.27191 28.6787 3.75 26.3007 3.75H14.6723C12.2944 3.75 10.2017 5.27191 9.46457 7.53099L4.3519 17.7008V17.7246C4.32812 17.7722 4.32812 17.7959 4.32812 17.8435V27.4506C4.32812 30.4706 6.77745 32.9199 9.79748 32.9199H31.1993C34.2194 32.9199 36.6687 30.4706 36.6687 27.4506V17.9386C36.6449 17.9149 36.6449 17.9148 36.6449 17.8911ZM10.7962 8.03037C10.7962 8.03037 10.7962 8.00659 10.82 8.00659C11.3432 6.29444 12.9126 5.17679 14.6723 5.17679H26.2769C28.0366 5.17679 29.6061 6.29444 30.153 7.98281C30.153 7.98281 30.153 8.00659 30.1768 8.00659L34.909 17.2015H24.0416C23.6373 17.2015 23.3282 17.5106 23.3282 17.9148C23.3282 19.4843 22.0441 20.7684 20.4746 20.7684C18.9052 20.7684 17.621 19.4843 17.621 17.9148C17.621 17.5106 17.3119 17.2015 16.9077 17.2015H6.06405L10.7962 8.03037Z",fill:"#D1D6DC"},void 0),g.jsx("path",{d:"M35.2428 27.2126C35.2428 29.4479 33.4356 31.2552 31.2003 31.2552H9.79843C7.56313 31.2552 5.75586 29.4479 5.75586 27.2126V18.4141H16.2903C16.6232 20.4353 18.3829 21.981 20.4994 21.981C22.6158 21.981 24.3755 20.4353 24.7084 18.4141H35.2428V27.2126Z",fill:"#E0E3E7"},void 0)]},void 0),GD="_empty_1tvs0_3",qD="_text_1tvs0_13",_x={empty:GD,text:qD};var Va;(function(e){e.Left="left",e.Right="right"})(Va||(Va={}));const KD=b.forwardRef((e,t)=>{const{autoWidth:n,placeholder:r,options:o,onChange:i,onSelectChange:a,onClose:s,onOpen:l,disabled:c=!1,label:u,sxProps:d={},defaultValue:f="",maxWidth:p,classes:{root:h,label:y,container:w,select:v,placeholder:S}={},MenuProps:m,value:C="",size:_="medium",renderValue:R,empty:k={},selectorTooltip:T={},endAdornment:P,...x}=e,[$,I]=b.useState(""),O=zt(),D=L=>{const B=L.target.value;if(I(B),Array.isArray(B)){const z=o.filter(j=>B.includes(j.value)&&!j.disabled);a?a(L,z):i(z);return}const H=o.find(z=>z.value===B);H!=null&&H.disabled||(a?a(L,H):i(H))};b.useEffect(()=>{I(C)},[C]),b.useEffect(()=>{I(f)},[f]);const M=b.useMemo(()=>_==="small"?{minWidth:"83px",height:28,iconRightOffset:"8px",select:{padding:`6px ${P?"65px":"32px"} 6px 8px`,minHeight:"16px",fontSize:"13px",lineHeight:"135%",borderRadius:"6px"},placeholderVariant:"body2Regular"}:{minWidth:"120px",height:36,iconRightOffset:"12px",select:{padding:`8px ${P?"74px":"38px"} 8px 12px`,minHeight:"20px",fontSize:"14px",lineHeight:"135%",borderRadius:"8px"},placeholderVariant:"body1Regular"},[_,P]),A=b.useMemo(()=>f===""&&C===""?r?()=>g.jsx(mt,{variant:M.placeholderVariant,sx:{color:O.black.black3,...d.sxPlaceHolder},className:S,children:r},void 0):R:R||void 0,[f,C,r,R,M]),N=L=>L==="small"?12:14,E=P?L=>g.jsxs(Lr,{sx:{height:M.height,display:"flex",gap:_==="small"?"10px":"12px",position:"absolute",right:"12px",userSelect:"none",pointerEvents:"none",alignItems:"center"},children:[g.jsx(ia,{size:N(_)},void 0),g.jsx(Lr,{sx:{height:"100%",width:"1px",backgroundColor:O.stroke.stroke1}},void 0),g.jsx(mt,{component:"div",variant:"body2Regular",children:P},void 0)]},void 0):L=>g.jsx(ia,{size:N(_),...L},void 0);return g.jsxs(mt,{component:"div",sx:{display:"flex",flexDirection:"column",gap:"8px",...d.sxRoot},className:h,children:[u&&g.jsx(mt,{component:"label",variant:"h4Medium",sx:{marginTop:O.spacing(1),...d.sxLabel},className:y,children:u},void 0),g.jsx(Mc,{tooltip:T,children:g.jsx(Lr,{sx:{position:"relative",display:"inline-block",verticalAlign:"baseline",backgroundColor:c?O.black.black5:"#fff",borderRadius:M.select.borderRadius,width:"100%",...d.sxSelectContainer},className:w,children:g.jsx(vp,{autoWidth:n,value:C||$,onChange:c?()=>{}:D,onClose:s,onOpen:l,disabled:c,displayEmpty:!0,IconComponent:E,className:v,renderValue:A,MenuProps:{sx:{"& .MuiPaper-root":{marginTop:"6px",background:O.palette.common.white,boxShadow:aa,border:`1px solid ${O.stroke.stroke1}`,borderRadius:"8px","& > ul.MuiList-root":{padding:"6px 0","& li":{margin:"4px 0"}}},...d.sxMenu},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{maxHeight:"50vh"}},...m},sx:{width:n?"auto":"100%",minWidth:M.minWidth,height:M.height,transition:"all 0.2s",borderRadius:M.select.borderRadius,"& fieldset":{border:`1px solid ${O.stroke.stroke1}`,borderRadius:M.select.borderRadius,boxShadow:aa},"& > .MuiSelect-icon":{right:M.iconRightOffset,top:"auto",bottom:"auto",transform:"rotate(0)","& path":{fill:O.black.black1}},"&.Mui-focused fieldset.MuiOutlinedInput-notchedOutline":{border:`1px solid ${O.blue.blue1}`,boxShadow:`0px 0px 0px 4px ${O.blue.blue4}, ${pr}`,zIndex:"999"},"&.Mui-focused:hover fieldset.MuiOutlinedInput-notchedOutline":{border:`1px solid ${O.blue.blue1}`,boxShadow:"none"},"&.Mui-error":{transition:"none","&.Mui-error fieldset.MuiOutlinedInput-notchedOutline":{border:`1px solid ${O.red.red2}`,boxShadow:`0px 0px 0px 4px ${O.red.red4}, ${pr}`},"&.Mui-error:hover fieldset.MuiOutlinedInput-notchedOutline":{border:`1px solid ${O.red.red2}`,boxShadow:"none"}},"& .MuiSelect-select":{padding:M.select.padding,minHeight:M.select.minHeight,fontSize:M.select.fontSize,lineHeight:M.select.lineHeight,boxSizing:"border-box",".MuiTypography-root":{fontSize:M.select.fontSize,lineHeight:M.select.lineHeight},"& p":{fontSize:M.select.fontSize,lineHeight:M.select.lineHeight},"& span":{fontSize:M.select.fontSize,lineHeight:M.select.lineHeight}},"&:hover":{backgroundColor:c?"unset":O.palette.common.white,"&:not(.Mui-error)":{boxShadow:c?"none":`0px 0px 0px 4px ${O.blue.blue4}, ${pr}`},"&.Mui-error":{boxShadow:`0px 0px 0px 4px ${O.red.red4}, ${pr}`},"& fieldset.MuiOutlinedInput-notchedOutline":{borderColor:"transparent"}},"&:focus":{"& fieldset":{borderColor:O.blue.blue1,boxShadow:`0px 0px 0px 4px ${O.blue.blue4}, ${pr}`}},"&.Mui-disabled":{color:O.black.black3,"& > .MuiSelect-icon path":{fill:O.black.black3},"& fieldset.MuiOutlinedInput-notchedOutline":{border:`1px solid ${O.stroke.stroke1}`}},...d.sxSelect},...x,children:o.length>0?o.map(L=>QD(L,O,d.sxMenuItem,p)):g.jsx(ZD,{...k},void 0)},void 0)},void 0)},void 0)]},void 0)}),ZD=e=>{const{label:t,component:n,classes:r={root:"",text:"",img:""}}=e,o=zt();return g.jsx($c,{sx:{"&.Mui-disabled":{opacity:1,pointerEvents:"inherit","&:hover":{backgroundColor:"unset"}}},disabled:!0,children:n||g.jsxs("div",{className:Gt(_x.empty,r.root),children:[g.jsx(UD,{className:r.img},void 0),g.jsx(mt,{component:"div",className:Gt(_x.text,r.text),children:t||Kd(Ae.NoOptions,o.language)},void 0)]},void 0)},void 0)},QD=(e,t,n,r)=>{const{generateCustomEle:o,icon:i,label:a,tooltip:s,disabled:l,id:c,value:u,iconPosition:d=Va.Left}=e;if(o)return o();const f=({id:p,value:h,disabled:y,icon:w,label:v,iconPosition:S=Va.Left})=>g.jsx($c,{value:h,disableRipple:!0,disableTouchRipple:!0,disabled:y||!1,sx:{maxWidth:r||"inherit",padding:"8px 16px","&.Mui-disabled":{opacity:1,backgroundColor:"transparent",pointerEvents:"inherit","& > div":{color:t.black.black3}},"&.Mui-selected.Mui-focusVisible":{backgroundColor:t.palette.common.white},"&.Mui-selected":{backgroundColor:t.palette.common.white,"& > * span":{color:t.blue.blue1},"& > .MuiTypography-root":{color:t.blue.blue1}},"&:not(.Mui-disabled):hover":{backgroundColor:t.black.black5},...n},children:w?g.jsxs(mt,{component:"div",sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"8px"},children:[S===Va.Left?w:null,g.jsx(Cx,{typographyProps:{component:"span"},maxWidth:r?r-50:void 0,children:v},void 0),S===Va.Right?w:null]},void 0):g.jsx(Cx,{maxWidth:r||void 0,typographyProps:{sx:{minWidth:10}},children:v},void 0)},p===void 0?h:p);return l&&s?g.jsx(Mc,{tooltip:s,children:f({id:c,value:u,disabled:l,icon:i,label:a,iconPosition:d})},c):f({id:c,value:u,disabled:l,icon:i,label:a,iconPosition:d})},Z_=b.forwardRef((e,t)=>{const{options:n,handleChange:r,handleInputChange:o,inputParams:i={},fullWidth:a=!0,sx:s={},size:l,...c}=e,u=zt(),d=(h,y)=>{r&&r(y)},f=(h,y)=>{o&&o(y)},p=b.useMemo(()=>l==="small"?{height:28,iconRightOffset:"8px",select:{padding:"6px 32px 6px 8px",fontSize:"13px",lineHeight:"135%",endIconRight:"1px",borderRadius:"6px"}}:{height:36,iconRightOffset:"12px",select:{padding:"8px 38px 8px 12px",fontSize:"14px",lineHeight:"135%",endIconRight:"3px",borderRadius:"8px"}},[l]);return g.jsx(_I,{disablePortal:!0,sx:{"& .MuiOutlinedInput-root":{minHeight:p.height,padding:p.select.padding,borderRadius:p.select.borderRadius,".MuiOutlinedInput-notchedOutline":{borderColor:u.stroke.stroke1,boxShadow:aa},"&:hover":{cursor:"pointer","& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent",boxShadow:`0px 0px 0px 4px ${u.blue.blue4}, ${pr}`}},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{border:`1px solid ${u.blue.blue1}`,boxShadow:`0px 0px 0px 4px ${u.blue.blue4}, ${pr}`}},"& input.MuiInputBase-input":{fontSize:p.select.fontSize,lineHeight:p.select.lineHeight,padding:0,height:"auto"}},"& .MuiIconButton-root:hover":{background:"none"},"& div.MuiAutocomplete-endAdornment":{top:"calc(50% - 2px)",paddingRight:p.select.endIconRight},"& .MuiAutocomplete-popupIndicatorOpen":{transform:"none"},...s},PaperComponent:h=>g.jsx(Is,{sx:{marginTop:"6px",background:u.palette.common.white,boxShadow:aa,border:`1px solid ${u.stroke.stroke1}`,borderRadius:p.select.borderRadius,".MuiAutocomplete-listbox":{".MuiAutocomplete-option":{backgroundColor:u.palette.common.white,padding:"8px 16px","&:hover":{backgroundColor:`${u.black.black5} `}}},"& .MuiAutocomplete-option":{fontSize:p.select.fontSize,lineHeight:p.select.lineHeight},'& .MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:`${u.palette.common.white} !important`,color:u.blue.blue1}},...h},void 0),popupIcon:g.jsx(ia,{size:14,style:{color:u.black.black1}},void 0),clearIcon:null,onChange:d,onInputChange:f,fullWidth:a,ref:t,componentsProps:{popupIndicator:{disableRipple:!0}},size:l,...c,options:n,renderInput:h=>g.jsx(D1,{...h,...i},void 0)},void 0)});function YD(e){return{id:`z-tab-${e}`,"aria-controls":`z-tabpanel-${e}`}}const XD=e=>{const{value:t,handleChange:n,labelConfigs:r=[],size:o="medium",tabsType:i="indicator",color:a,...s}=e;if(t===void 0||!n||!r.length)throw new Error("Props value, handleChange and labels are required");const l=zt(),{tabsStyle:c,tabStyle:u}=b.useMemo(()=>({tabStyle:{fontSize:o==="small"?"11px":"14px",lineHeight:o==="small"?"120%":"135%",minHeight:o==="small"?"20px":"28px",marginRight:i==="indicator"?"24px":"10px",padding:o==="small"?"4px 8px":"6px 12px",fontWeight:o==="small"?400:500},tabsStyle:{minHeight:i==="background"?"32px":"36px"}}),[i,o]);return g.jsxs(OA,{...s,value:t,onChange:n,"aria-label":"tab",sx:{...c,".MuiTabs-indicator":{display:i!=="indicator"?"none":"block",backgroundColor:l.blue.blue1}},children:[r.map((d,f)=>b.createElement(y7,{disableRipple:!0,...d,sx:{"&:hover":{color:l.black.black1},color:l.black.black2,borderRadius:"6px",minWidth:0,textTransform:"inherit",...u,"&.Mui-selected":{backgroundColor:i==="background"?a||l.black.black4:"transparent",color:i==="text"?l.blue.blue1:l.black.black1},...d.sx},key:f,...YD(f)})),g.jsx(Lr,{sx:{position:"absolute",left:0,bottom:"1px",right:0,height:"1px",backgroundColor:l.stroke.stroke1,display:i==="indicator"?"block":"none"}},void 0)]},void 0)};b.forwardRef((e,t)=>{const n=zt(),{sx:r,disabled:o,...i}=e;return g.jsx(g7,{ref:t,focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,disabled:o,sx:{width:"30px",height:"18px",padding:0,borderRadius:"12px","&.MuiSwitch-root":{boxSizing:"inherit",borderRadius:"12px",border:"3px solid transparent","&:hover":{border:o?"3px solid transparent":`3px solid ${n.blue.blue4}`}},"& .MuiSwitch-switchBase":{padding:0,margin:"2px",transitionDuration:"300ms","&.Mui-disabled":{color:"#fff"},"&.Mui-disabled+.MuiSwitch-track":{opacity:.5,backgroundColor:n.stroke.stroke1},"&.Mui-checked":{transform:"translateX(12px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:n.blue.blue1,opacity:1,border:0},"&.Mui-disabled":{color:"#fff","& .MuiSwitch-thumb":{backgroundImage:`url('data:image/svg+xml,%3Csvg width="8" height="5" viewBox="0 0 8 5" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath opacity="0.5" d="M7.07386 0.267169L7.0742 0.266888L7.06621 0.258615C6.93931 0.1272 6.73491 0.126882 6.60764 0.257662L3.10802 3.77259L1.40194 2.0546C1.27467 1.92373 1.0702 1.92401 0.943272 2.05546C0.818909 2.18425 0.818909 2.38743 0.943272 2.51622L0.943261 2.51623L0.944741 2.51772L2.7084 4.29369C2.81588 4.40452 2.96228 4.45981 3.0982 4.45981C3.24579 4.45981 3.38185 4.40316 3.48793 4.29377L7.04276 0.723374C7.18062 0.595374 7.17948 0.394776 7.07386 0.267169ZM3.16713 3.83211L3.16614 3.83111C3.16648 3.83145 3.1668 3.83179 3.16712 3.83212L3.16713 3.83211Z" fill="%233F46FF" stroke="%233F46FF" stroke-width="0.3"/%3E%3C/svg%3E')`}},"& .MuiSwitch-thumb":{backgroundImage:`url('data:image/svg+xml,%3Csvg width="8" height="5" viewBox="0 0 8 5" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M7.07386 0.267169L7.0742 0.266888L7.06621 0.258615C6.93931 0.1272 6.73491 0.126882 6.60764 0.257662L3.10802 3.77259L1.40194 2.0546C1.27467 1.92373 1.0702 1.92401 0.943272 2.05546C0.818909 2.18425 0.818909 2.38743 0.943272 2.51622L0.943261 2.51623L0.944741 2.51772L2.7084 4.29369C2.81588 4.40452 2.96228 4.45981 3.0982 4.45981C3.24579 4.45981 3.38185 4.40316 3.48793 4.29377L7.04276 0.723374C7.18062 0.595374 7.17948 0.394776 7.07386 0.267169ZM3.16713 3.83211L3.16614 3.83111C3.16648 3.83145 3.1668 3.83179 3.16712 3.83212L3.16713 3.83211Z" fill="%233F46FF" stroke="%233F46FF" stroke-width="0.3"/%3E%3C/svg%3E')`,backgroundRepeat:"no-repeat",backgroundPosition:"center 60%"},"&.Mui-disabled+.MuiSwitch-track":{opacity:.5}},"&:hover":{backgroundColor:"transparent"}},"& .MuiSwitch-thumb":{width:"12px",height:"12px",boxShadow:"none",margin:"1px 0 0 1px"},"& .MuiSwitch-track":{backgroundColor:n.stroke.stroke2,transition:n.transitions.create(["background-color"],{duration:500}),borderRadius:"10px",opacity:1},...r},...i},void 0)});var bs;(function(e){e.PY="python",e.JS="javascript",e.JAVA="java",e.BASH="bash"})(bs||(bs={}));function JD(e,t){if(e==null)return{};var n,r,o=Ms(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var wg={};function ij(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return wg[t]||(wg[t]=oj(e)),wg[t]}function aj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(i){return i!=="token"}),o=ij(r);return o.reduce(function(i,a){return Wa(Wa({},i),n[a])},t)}function Tx(e){return e.join(" ")}function sj(e,t){var n=0;return function(r){return n+=1,r.map(function(o,i){return Y_({node:o,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(i)})})}}function Y_(e){var t=e.node,n=e.stylesheet,r=e.style,o=r===void 0?{}:r,i=e.useInlineStyles,a=e.key,s=t.properties,l=t.type,c=t.tagName,u=t.value;if(l==="text")return u;if(c){var d=sj(n,i),f;if(!i)f=Wa(Wa({},s),{},{className:Tx(s.className)});else{var p=Object.keys(n).reduce(function(v,S){return S.split(".").forEach(function(m){v.includes(m)||v.push(m)}),v},[]),h=s.className&&s.className.includes("token")?["token"]:[],y=s.className&&h.concat(s.className.filter(function(v){return!p.includes(v)}));f=Wa(Wa({},s),{},{className:Tx(y)||void 0,style:aj(s.className,Object.assign({},s.style,o),n)})}var w=d(t.children);return rt.createElement(c,Ln({key:a},f),w)}}const lj=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var cj=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Px(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Qo(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r2&&arguments[2]!==void 0?arguments[2]:[];return Zu({children:_,lineNumber:R,lineNumberStyle:s,largestLineNumber:a,showInlineLineNumbers:o,lineProps:n,className:k,showLineNumbers:r,wrapLongLines:l,wrapLines:t})}function y(_,R){if(r&&R&&o){var k=J_(s,R,a);_.unshift(X_(R,k))}return _}function w(_,R){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||k.length>0?h(_,R,k):y(_,R)}for(var v=function(){var R=u[p],k=R.children[0].value,T=dj(k);if(T){var P=k.split(` +`);P.forEach(function(x,$){var I=r&&d.length+i,O={type:"text",value:"".concat(x,` +`)};if($===0){var D=u.slice(f+1,p).concat(Zu({children:[O],className:R.properties.className})),M=w(D,I);d.push(M)}else if($===P.length-1){var A=u[p+1]&&u[p+1].children&&u[p+1].children[0],N={type:"text",value:"".concat(x)};if(A){var E=Zu({children:[N],className:R.properties.className});u.splice(p+1,0,E)}else{var L=[N],B=w(L,I,R.properties.className);d.push(B)}}else{var H=[O],z=w(H,I,R.properties.className);d.push(z)}}),f=p}p++};p/g,">").replace(/"/g,""").replace(/'/g,"'")}function Yo(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const o in r)n[o]=r[o]}),n}const xj="",$x=e=>!!e.kind;class Sj{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=Ja(t)}openNode(t){if(!$x(t))return;let n=t.kind;t.sublanguage||(n=`${this.classPrefix}${n}`),this.span(n)}closeNode(t){$x(t)&&(this.buffer+=xj)}value(){return this.buffer}span(t){this.buffer+=``}}class F1{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n={kind:t,children:[]};this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{F1._collapse(n)}))}}class wj extends F1{constructor(t){super(),this.options=t}addKeyword(t,n){t!==""&&(this.openNode(n),this.addText(t),this.closeNode())}addText(t){t!==""&&this.add(t)}addSublanguage(t,n){const r=t.root;r.kind=n,r.sublanguage=!0,this.add(r)}toHTML(){return new Sj(this,this.options).value()}finalize(){return!0}}function Cj(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function fc(e){return e?typeof e=="string"?e:e.source:null}function _j(...e){return e.map(n=>fc(n)).join("")}function Rj(...e){return"("+e.map(n=>fc(n)).join("|")+")"}function Tj(e){return new RegExp(e.toString()+"|").exec("").length-1}function Pj(e,t){const n=e&&e.exec(t);return n&&n.index===0}const kj=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function $j(e,t="|"){let n=0;return e.map(r=>{n+=1;const o=n;let i=fc(r),a="";for(;i.length>0;){const s=kj.exec(i);if(!s){a+=i;break}a+=i.substring(0,s.index),i=i.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+o):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}const Ej=/\b\B/,rR="[a-zA-Z]\\w*",B1="[a-zA-Z_]\\w*",z1="\\b\\d+(\\.\\d+)?",oR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",iR="\\b(0b[01]+)",Mj="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ij=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=_j(t,/.*\b/,e.binary,/\b.*/)),Yo({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},pc={begin:"\\\\[\\s\\S]",relevance:0},Oj={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[pc]},Lj={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[pc]},aR={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},xp=function(e,t,n={}){const r=Yo({className:"comment",begin:e,end:t,contains:[]},n);return r.contains.push(aR),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},Aj=xp("//","$"),Nj=xp("/\\*","\\*/"),Dj=xp("#","$"),jj={className:"number",begin:z1,relevance:0},Fj={className:"number",begin:oR,relevance:0},Bj={className:"number",begin:iR,relevance:0},zj={className:"number",begin:z1+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},Hj={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[pc,{begin:/\[/,end:/\]/,relevance:0,contains:[pc]}]}]},Vj={className:"title",begin:rR,relevance:0},Wj={className:"title",begin:B1,relevance:0},Uj={begin:"\\.\\s*"+B1,relevance:0},Gj=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var vu=Object.freeze({__proto__:null,MATCH_NOTHING_RE:Ej,IDENT_RE:rR,UNDERSCORE_IDENT_RE:B1,NUMBER_RE:z1,C_NUMBER_RE:oR,BINARY_NUMBER_RE:iR,RE_STARTERS_RE:Mj,SHEBANG:Ij,BACKSLASH_ESCAPE:pc,APOS_STRING_MODE:Oj,QUOTE_STRING_MODE:Lj,PHRASAL_WORDS_MODE:aR,COMMENT:xp,C_LINE_COMMENT_MODE:Aj,C_BLOCK_COMMENT_MODE:Nj,HASH_COMMENT_MODE:Dj,NUMBER_MODE:jj,C_NUMBER_MODE:Fj,BINARY_NUMBER_MODE:Bj,CSS_NUMBER_MODE:zj,REGEXP_MODE:Hj,TITLE_MODE:Vj,UNDERSCORE_TITLE_MODE:Wj,METHOD_GUARD:Uj,END_SAME_AS_BEGIN:Gj});function qj(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Kj(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=qj,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Zj(e,t){Array.isArray(e.illegal)&&(e.illegal=Rj(...e.illegal))}function Qj(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Yj(e,t){e.relevance===void 0&&(e.relevance=1)}const Xj=["of","and","for","in","not","or","if","then","parent","list","value"],Jj="keyword";function sR(e,t,n=Jj){const r={};return typeof e=="string"?o(n,e.split(" ")):Array.isArray(e)?o(n,e):Object.keys(e).forEach(function(i){Object.assign(r,sR(e[i],t,i))}),r;function o(i,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[i,eF(l[0],l[1])]})}}function eF(e,t){return t?Number(t):tF(e)?0:1}function tF(e){return Xj.includes(e.toLowerCase())}function nF(e,{plugins:t}){function n(s,l){return new RegExp(fc(s),"m"+(e.case_insensitive?"i":"")+(l?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,c){c.position=this.position++,this.matchIndexes[this.matchAt]=c,this.regexes.push([c,l]),this.matchAt+=Tj(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(c=>c[1]);this.matcherRe=n($j(l),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const c=this.matcherRe.exec(l);if(!c)return null;const u=c.findIndex((f,p)=>p>0&&f!==void 0),d=this.matchIndexes[u];return c.splice(0,u),Object.assign(c,d)}}class o{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const c=new r;return this.rules.slice(l).forEach(([u,d])=>c.addRule(u,d)),c.compile(),this.multiRegexes[l]=c,c}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,c){this.rules.push([l,c]),c.type==="begin"&&this.count++}exec(l){const c=this.getMatcher(this.regexIndex);c.lastIndex=this.lastIndex;let u=c.exec(l);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const d=this.getMatcher(0);d.lastIndex=this.lastIndex+1,u=d.exec(l)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function i(s){const l=new o;return s.contains.forEach(c=>l.addRule(c.begin,{rule:c,type:"begin"})),s.terminatorEnd&&l.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&l.addRule(s.illegal,{type:"illegal"}),l}function a(s,l){const c=s;if(s.isCompiled)return c;[Qj].forEach(d=>d(s,l)),e.compilerExtensions.forEach(d=>d(s,l)),s.__beforeBegin=null,[Kj,Zj,Yj].forEach(d=>d(s,l)),s.isCompiled=!0;let u=null;if(typeof s.keywords=="object"&&(u=s.keywords.$pattern,delete s.keywords.$pattern),s.keywords&&(s.keywords=sR(s.keywords,e.case_insensitive)),s.lexemes&&u)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return u=u||s.lexemes||/\w+/,c.keywordPatternRe=n(u,!0),l&&(s.begin||(s.begin=/\B|\b/),c.beginRe=n(s.begin),s.endSameAsBegin&&(s.end=s.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(c.endRe=n(s.end)),c.terminatorEnd=fc(s.end)||"",s.endsWithParent&&l.terminatorEnd&&(c.terminatorEnd+=(s.end?"|":"")+l.terminatorEnd)),s.illegal&&(c.illegalRe=n(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(d){return rF(d==="self"?s:d)})),s.contains.forEach(function(d){a(d,c)}),s.starts&&a(s.starts,l),c.matcher=i(c),c}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Yo(e.classNameAliases||{}),a(e)}function lR(e){return e?e.endsWithParent||lR(e.starts):!1}function rF(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return Yo(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:lR(e)?Yo(e,{starts:e.starts?Yo(e.starts):null}):Object.isFrozen(e)?Yo(e):e}var oF="10.7.3";function iF(e){return!!(e||e==="")}function aF(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,Ja(this.code);let r={};return this.autoDetect?(r=e.highlightAuto(this.code),this.detectedLanguage=r.language):(r=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),r.value},autoDetect(){return!this.language||iF(this.autodetect)},ignoreIllegals(){return!0}},render(r){return r("pre",{},[r("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(r){r.component("highlightjs",t)}}}}const sF={"after:highlightElement":({el:e,result:t,text:n})=>{const r=Ex(e);if(!r.length)return;const o=document.createElement("div");o.innerHTML=t.value,t.value=lF(r,Ex(o),n)}};function km(e){return e.nodeName.toLowerCase()}function Ex(e){const t=[];return function n(r,o){for(let i=r.firstChild;i;i=i.nextSibling)i.nodeType===3?o+=i.nodeValue.length:i.nodeType===1&&(t.push({event:"start",offset:o,node:i}),o=n(i,o),km(i).match(/br|hr|img|input/)||t.push({event:"stop",offset:o,node:i}));return o}(e,0),t}function lF(e,t,n){let r=0,o="";const i=[];function a(){return!e.length||!t.length?e.length?e:t:e[0].offset!==t[0].offset?e[0].offset"}function l(u){o+=""}function c(u){(u.event==="start"?s:l)(u.node)}for(;e.length||t.length;){let u=a();if(o+=Ja(n.substring(r,u[0].offset)),r=u[0].offset,u===e){i.reverse().forEach(l);do c(u.splice(0,1)[0]),u=a();while(u===e&&u.length&&u[0].offset===r);i.reverse().forEach(s)}else u[0].event==="start"?i.push(u[0].node):i.pop(),c(u.splice(0,1)[0])}return o+Ja(n.substr(r))}const Mx={},Cg=e=>{console.error(e)},Ix=(e,...t)=>{console.log(`WARN: ${e}`,...t)},sr=(e,t)=>{Mx[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Mx[`${e}/${t}`]=!0)},_g=Ja,Ox=Yo,Lx=Symbol("nomatch"),cF=function(e){const t=Object.create(null),n=Object.create(null),r=[];let o=!0;const i=/(^(<[^>]+>|\t|)+|\n)/gm,a="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let l={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:wj};function c(j){return l.noHighlightRe.test(j)}function u(j){let F=j.className+" ";F+=j.parentNode?j.parentNode.className:"";const W=l.languageDetectRe.exec(F);if(W){const V=M(W[1]);return V||(Ix(a.replace("{}",W[1])),Ix("Falling back to no-highlight mode for this block.",j)),V?W[1]:"no-highlight"}return F.split(/\s+/).find(V=>c(V)||M(V))}function d(j,F,W,V){let ee="",re="";typeof F=="object"?(ee=j,W=F.ignoreIllegals,re=F.language,V=void 0):(sr("10.7.0","highlight(lang, code, ...args) has been deprecated."),sr("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),re=j,ee=F);const U={code:ee,language:re};B("before:highlight",U);const K=U.result?U.result:f(U.language,U.code,W,V);return K.code=U.code,B("after:highlight",K),K}function f(j,F,W,V){function ee(pe,ne){const xe=be.case_insensitive?ne[0].toLowerCase():ne[0];return Object.prototype.hasOwnProperty.call(pe.keywords,xe)&&pe.keywords[xe]}function re(){if(!ge.keywords){Se.addText(ye);return}let pe=0;ge.keywordPatternRe.lastIndex=0;let ne=ge.keywordPatternRe.exec(ye),xe="";for(;ne;){xe+=ye.substring(pe,ne.index);const Le=ee(ge,ne);if(Le){const[fe,oe]=Le;if(Se.addText(xe),xe="",Ge+=oe,fe.startsWith("_"))xe+=ne[0];else{const me=be.classNameAliases[fe]||fe;Se.addKeyword(ne[0],me)}}else xe+=ne[0];pe=ge.keywordPatternRe.lastIndex,ne=ge.keywordPatternRe.exec(ye)}xe+=ye.substr(pe),Se.addText(xe)}function U(){if(ye==="")return;let pe=null;if(typeof ge.subLanguage=="string"){if(!t[ge.subLanguage]){Se.addText(ye);return}pe=f(ge.subLanguage,ye,!0,le[ge.subLanguage]),le[ge.subLanguage]=pe.top}else pe=h(ye,ge.subLanguage.length?ge.subLanguage:null);ge.relevance>0&&(Ge+=pe.relevance),Se.addSublanguage(pe.emitter,pe.language)}function K(){ge.subLanguage!=null?U():re(),ye=""}function se(pe){return pe.className&&Se.openNode(be.classNameAliases[pe.className]||pe.className),ge=Object.create(pe,{parent:{value:ge}}),ge}function q(pe,ne,xe){let Le=Pj(pe.endRe,xe);if(Le){if(pe["on:end"]){const fe=new kx(pe);pe["on:end"](ne,fe),fe.isMatchIgnored&&(Le=!1)}if(Le){for(;pe.endsParent&&pe.parent;)pe=pe.parent;return pe}}if(pe.endsWithParent)return q(pe.parent,ne,xe)}function ce(pe){return ge.matcher.regexIndex===0?(ye+=pe[0],1):(ke=!0,0)}function ue(pe){const ne=pe[0],xe=pe.rule,Le=new kx(xe),fe=[xe.__beforeBegin,xe["on:begin"]];for(const oe of fe)if(oe&&(oe(pe,Le),Le.isMatchIgnored))return ce(ne);return xe&&xe.endSameAsBegin&&(xe.endRe=Cj(ne)),xe.skip?ye+=ne:(xe.excludeBegin&&(ye+=ne),K(),!xe.returnBegin&&!xe.excludeBegin&&(ye=ne)),se(xe),xe.returnBegin?0:ne.length}function ie(pe){const ne=pe[0],xe=F.substr(pe.index),Le=q(ge,pe,xe);if(!Le)return Lx;const fe=ge;fe.skip?ye+=ne:(fe.returnEnd||fe.excludeEnd||(ye+=ne),K(),fe.excludeEnd&&(ye=ne));do ge.className&&Se.closeNode(),!ge.skip&&!ge.subLanguage&&(Ge+=ge.relevance),ge=ge.parent;while(ge!==Le.parent);return Le.starts&&(Le.endSameAsBegin&&(Le.starts.endRe=Le.endRe),se(Le.starts)),fe.returnEnd?0:ne.length}function te(){const pe=[];for(let ne=ge;ne!==be;ne=ne.parent)ne.className&&pe.unshift(ne.className);pe.forEach(ne=>Se.openNode(ne))}let de={};function Q(pe,ne){const xe=ne&&ne[0];if(ye+=pe,xe==null)return K(),0;if(de.type==="begin"&&ne.type==="end"&&de.index===ne.index&&xe===""){if(ye+=F.slice(ne.index,ne.index+1),!o){const Le=new Error("0 width match regex");throw Le.languageName=j,Le.badRule=de.rule,Le}return 1}if(de=ne,ne.type==="begin")return ue(ne);if(ne.type==="illegal"&&!W){const Le=new Error('Illegal lexeme "'+xe+'" for mode "'+(ge.className||"")+'"');throw Le.mode=ge,Le}else if(ne.type==="end"){const Le=ie(ne);if(Le!==Lx)return Le}if(ne.type==="illegal"&&xe==="")return 1;if(Re>1e5&&Re>ne.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ye+=xe,xe.length}const be=M(j);if(!be)throw Cg(a.replace("{}",j)),new Error('Unknown language: "'+j+'"');const Te=nF(be,{plugins:r});let we="",ge=V||Te;const le={},Se=new l.__emitter(l);te();let ye="",Ge=0,Pe=0,Re=0,ke=!1;try{for(ge.matcher.considerAll();;){Re++,ke?ke=!1:ge.matcher.considerAll(),ge.matcher.lastIndex=Pe;const pe=ge.matcher.exec(F);if(!pe)break;const ne=F.substring(Pe,pe.index),xe=Q(ne,pe);Pe=pe.index+xe}return Q(F.substr(Pe)),Se.closeAllNodes(),Se.finalize(),we=Se.toHTML(),{relevance:Math.floor(Ge),value:we,language:j,illegal:!1,emitter:Se,top:ge}}catch(pe){if(pe.message&&pe.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:pe.message,context:F.slice(Pe-100,Pe+100),mode:pe.mode},sofar:we,relevance:0,value:_g(F),emitter:Se};if(o)return{illegal:!1,relevance:0,value:_g(F),emitter:Se,language:j,top:ge,errorRaised:pe};throw pe}}function p(j){const F={relevance:0,emitter:new l.__emitter(l),value:_g(j),illegal:!1,top:s};return F.emitter.addText(j),F}function h(j,F){F=F||l.languages||Object.keys(t);const W=p(j),V=F.filter(M).filter(N).map(se=>f(se,j,!1));V.unshift(W);const ee=V.sort((se,q)=>{if(se.relevance!==q.relevance)return q.relevance-se.relevance;if(se.language&&q.language){if(M(se.language).supersetOf===q.language)return 1;if(M(q.language).supersetOf===se.language)return-1}return 0}),[re,U]=ee,K=re;return K.second_best=U,K}function y(j){return l.tabReplace||l.useBR?j.replace(i,F=>F===` +`?l.useBR?"
":F:l.tabReplace?F.replace(/\t/g,l.tabReplace):F):j}function w(j,F,W){const V=F?n[F]:W;j.classList.add("hljs"),V&&j.classList.add(V)}const v={"before:highlightElement":({el:j})=>{l.useBR&&(j.innerHTML=j.innerHTML.replace(/\n/g,"").replace(//g,` +`))},"after:highlightElement":({result:j})=>{l.useBR&&(j.value=j.value.replace(/\n/g,"
"))}},S=/^(<[^>]+>|\t)+/gm,m={"after:highlightElement":({result:j})=>{l.tabReplace&&(j.value=j.value.replace(S,F=>F.replace(/\t/g,l.tabReplace)))}};function C(j){let F=null;const W=u(j);if(c(W))return;B("before:highlightElement",{el:j,language:W}),F=j;const V=F.textContent,ee=W?d(V,{language:W,ignoreIllegals:!0}):h(V);B("after:highlightElement",{el:j,result:ee,text:V}),j.innerHTML=ee.value,w(j,W,ee.language),j.result={language:ee.language,re:ee.relevance,relavance:ee.relevance},ee.second_best&&(j.second_best={language:ee.second_best.language,re:ee.second_best.relevance,relavance:ee.second_best.relevance})}function _(j){j.useBR&&(sr("10.3.0","'useBR' will be removed entirely in v11.0"),sr("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),l=Ox(l,j)}const R=()=>{if(R.called)return;R.called=!0,sr("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(C)};function k(){sr("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),T=!0}let T=!1;function P(){if(document.readyState==="loading"){T=!0;return}document.querySelectorAll("pre code").forEach(C)}function x(){T&&P()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",x,!1);function $(j,F){let W=null;try{W=F(e)}catch(V){if(Cg("Language definition for '{}' could not be registered.".replace("{}",j)),o)Cg(V);else throw V;W=s}W.name||(W.name=j),t[j]=W,W.rawDefinition=F.bind(null,e),W.aliases&&A(W.aliases,{languageName:j})}function I(j){delete t[j];for(const F of Object.keys(n))n[F]===j&&delete n[F]}function O(){return Object.keys(t)}function D(j){sr("10.4.0","requireLanguage will be removed entirely in v11."),sr("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const F=M(j);if(F)return F;throw new Error("The '{}' language is required, but not loaded.".replace("{}",j))}function M(j){return j=(j||"").toLowerCase(),t[j]||t[n[j]]}function A(j,{languageName:F}){typeof j=="string"&&(j=[j]),j.forEach(W=>{n[W.toLowerCase()]=F})}function N(j){const F=M(j);return F&&!F.disableAutodetect}function E(j){j["before:highlightBlock"]&&!j["before:highlightElement"]&&(j["before:highlightElement"]=F=>{j["before:highlightBlock"](Object.assign({block:F.el},F))}),j["after:highlightBlock"]&&!j["after:highlightElement"]&&(j["after:highlightElement"]=F=>{j["after:highlightBlock"](Object.assign({block:F.el},F))})}function L(j){E(j),r.push(j)}function B(j,F){const W=j;r.forEach(function(V){V[W]&&V[W](F)})}function H(j){return sr("10.2.0","fixMarkup will be removed entirely in v11.0"),sr("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),y(j)}function z(j){return sr("10.7.0","highlightBlock will be removed entirely in v12.0"),sr("10.7.0","Please use highlightElement now."),C(j)}Object.assign(e,{highlight:d,highlightAuto:h,highlightAll:P,fixMarkup:H,highlightElement:C,highlightBlock:z,configure:_,initHighlighting:R,initHighlightingOnLoad:k,registerLanguage:$,unregisterLanguage:I,listLanguages:O,getLanguage:M,registerAliases:A,requireLanguage:D,autoDetection:N,inherit:Ox,addPlugin:L,vuePlugin:aF(e).VuePlugin}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=oF;for(const j in vu)typeof vu[j]=="object"&&nR(vu[j]);return Object.assign(e,vu),e.addPlugin(v),e.addPlugin(sF),e.addPlugin(m),e};var uF=cF({}),dF=uF,cR={exports:{}};(function(e){(function(){var t;t=e.exports=o,t.format=o,t.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(t.printf=n);function n(){console.log(o.apply(null,arguments))}function r(i,a){return o.apply(null,[i].concat(a))}function o(i){for(var a=1,s=[].slice.call(arguments),l=0,c=i.length,u="",d,f=!1,p,h,y=!1,w,v=function(){return s[a++]},S=function(){for(var m="";/\d/.test(i[l]);)m+=i[l++],d=i[l];return m.length>0?parseInt(m):null};ls.relevance&&(s=l),l.relevance>a.relevance&&(s=a,a=l));return s.language&&(a.secondBest=s),a}function vF(e,t){to.registerLanguage(e,t)}function yF(){return to.listLanguages()}function bF(e,t){var n=e,r;t&&(n={},n[e]=t);for(r in n)to.registerAliases(n[r],{languageName:r})}function Io(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function xF(e,t){this.openNode(t),this.addText(e),this.closeNode()}function SF(e,t){var n=this.stack,r=n[n.length-1],o=e.rootNode.children,i=t?{type:"element",tagName:"span",properties:{className:[t]},children:o}:o;r.children=r.children.concat(i)}function wF(e){var t=this.stack,n,r;e!==""&&(n=t[t.length-1],r=n.children[n.children.length-1],r&&r.type==="text"?r.value+=e:n.children.push({type:"text",value:e}))}function CF(e){var t=this.stack,n=this.options.classPrefix+e,r=t[t.length-1],o={type:"element",tagName:"span",properties:{className:[n]},children:[]};r.children.push(o),t.push(o)}function _F(){this.stack.pop()}function RF(){return""}function dR(){}var Rg,Ax;function TF(){if(Ax)return Rg;Ax=1;function e(r){return r?typeof r=="string"?r:r.source:null}function t(...r){return r.map(i=>e(i)).join("")}function n(r){const o={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[o]}]};Object.assign(o,{className:"variable",variants:[{begin:t(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[r.BACKSLASH_ESCAPE]},s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[r.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},l={className:"string",begin:/"/,end:/"/,contains:[r.BACKSLASH_ESCAPE,o,a]};a.contains.push(l);const c={className:"",begin:/\\"/},u={className:"string",begin:/'/,end:/'/},d={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},r.NUMBER_MODE,o]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=r.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),h={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[r.inherit(r.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[p,r.SHEBANG(),h,d,r.HASH_COMMENT_MODE,s,l,c,u,o]}}return Rg=n,Rg}var Tg,Nx;function PF(){if(Nx)return Tg;Nx=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function o(i){var a="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",s=a+"(<"+a+"(\\s*,\\s*"+a+")*>)?",l="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",c={className:"meta",begin:"@"+a,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]};const u=r;return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[i.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface enum",end:/[{;=]/,excludeEnd:!0,relevance:1,keywords:"class interface enum",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},i.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"class",begin:"record\\s+"+i.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,excludeEnd:!0,end:/[{;=]/,keywords:l,contains:[{beginKeywords:"record"},{begin:i.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[i.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[i.C_BLOCK_COMMENT_MODE]},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"("+s+"\\s+)+"+i.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:l,contains:[{begin:i.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[i.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[c,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,u,i.C_BLOCK_COMMENT_MODE]},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},u,c]}}return Tg=o,Tg}const Dx="[A-Za-z$_][0-9A-Za-z$_]*",kF=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],$F=["true","false","null","undefined","NaN","Infinity"],EF=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],MF=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],IF=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],OF=["arguments","this","super","console","window","document","localStorage","module","global"],LF=[].concat(IF,OF,EF,MF);function AF(e){return e?typeof e=="string"?e:e.source:null}function jx(e){return $m("(?=",e,")")}function $m(...e){return e.map(n=>AF(n)).join("")}function NF(e){const t=(C,{after:_})=>{const R="",end:""},o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(C,_)=>{const R=C[0].length+C.index,k=C.input[R];if(k==="<"){_.ignoreMatch();return}k===">"&&(t(C,{after:R})||_.ignoreMatch())}},i={$pattern:Dx,keyword:kF,literal:$F,built_in:LF},a="[0-9](_?[0-9])*",s=`\\.(${a})`,l="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${l})((${s})|\\.)?|(${s}))[eE][+-]?(${a})\\b`},{begin:`\\b(${l})\\b((${s})\\b|\\.)?|(${s})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},u={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"xml"}},f={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"css"}},p={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,u]},y={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},w=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,f,p,c,e.REGEXP_MODE];u.contains=w.concat({begin:/\{/,end:/\}/,keywords:i,contains:["self"].concat(w)});const v=[].concat(y,u.contains),S=v.concat([{begin:/\(/,end:/\)/,keywords:i,contains:["self"].concat(v)}]),m={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:S};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:i,exports:{PARAMS_CONTAINS:S},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,f,p,y,c,{begin:$m(/[{,\n]\s*/,jx($m(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,n+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:n+jx("\\s*:"),relevance:0}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[y,e.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:S}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:r.begin,end:r.end},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:i,contains:["self",e.inherit(e.TITLE_MODE,{begin:n}),m],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[m,e.inherit(e.TITLE_MODE,{begin:n})]},{variants:[{begin:"\\."+n},{begin:"\\$"+n}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:n}),"self",m]},{begin:"(get|set)\\s+(?="+n+"\\()",end:/\{/,keywords:"get set",contains:[e.inherit(e.TITLE_MODE,{begin:n}),{begin:/\(\)/},m]},{begin:/\$[(.]/}]}}var DF=NF;const jF=$o(DF);var Pg,Fx;function FF(){if(Fx)return Pg;Fx=1;function e(o){return o?typeof o=="string"?o:o.source:null}function t(o){return n("(?=",o,")")}function n(...o){return o.map(a=>e(a)).join("")}function r(o){const c={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},d={className:"subst",begin:/\{/,end:/\}/,keywords:c,illegal:/#/},f={begin:/\{\{/,relevance:0},p={className:"string",contains:[o.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE,u,f,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,u,f,d]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[o.BACKSLASH_ESCAPE,f,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,f,d]},o.APOS_STRING_MODE,o.QUOTE_STRING_MODE]},h="[0-9](_?[0-9])*",y=`(\\b(${h}))?\\.(${h})|\\b(${h})\\.`,w={className:"number",relevance:0,variants:[{begin:`(\\b(${h})|(${y}))[eE][+-]?(${h})[jJ]?\\b`},{begin:`(${y})[jJ]?`},{begin:"\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b"},{begin:"\\b0[bB](_?[01])+[lL]?\\b"},{begin:"\\b0[oO](_?[0-7])+[lL]?\\b"},{begin:"\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b"},{begin:`\\b(${h})[jJ]\\b`}]},v={className:"comment",begin:t(/# type:/),end:/$/,keywords:c,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},S={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",u,w,p,o.HASH_COMMENT_MODE]}]};return d.contains=[p,w,u],{name:"Python",aliases:["py","gyp","ipython"],keywords:c,illegal:/(<\/|->|\?)|=>/,contains:[u,w,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},p,v,o.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[o.UNDERSCORE_TITLE_MODE,S,{begin:/->/,endsWithParent:!0,keywords:c}]},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[w,S,p]}]}}return Pg=r,Pg}var Ic=yj(fa,{});Ic.registerLanguage=fa.registerLanguage;var fR={},pR={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})(pR);var H1=pR.exports;(function(e){var t=H1;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(FF());e.default=n.default})(fR);const BF=$o(fR);var gR={};(function(e){var t=H1;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(PF());e.default=n.default})(gR);const zF=$o(gR);var hR={};(function(e){var t=H1;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(TF());e.default=n.default})(hR);const HF=$o(hR);Ic.registerLanguage(bs.JS,jF);Ic.registerLanguage(bs.PY,BF);Ic.registerLanguage(bs.JAVA,zF);Ic.registerLanguage(bs.BASH,HF);rt.forwardRef(e=>{const{supportSelectAll:t=!0,selectAllOptionLabel:n="",options:r=[],selectState:o,setSelectState:i,inputParams:a={},onChange:s,...l}=e,{placeholder:c="",...u}=a,[d,f]=rt.useState(!1),p=zt(),h=()=>{f(!1)},y=S=>{const m=!o.selectAll;i(C=>({selectAll:!C.selectAll,selectedItems:C.selectAll?[]:r})),s&&s(S,m?r:[],"selectOption")},w=(S,m,C)=>{switch(C){case"selectOption":i(_=>({..._,selectAll:m.length===r.length,selectedItems:m}));break;case"removeOption":i({selectAll:!1,selectedItems:m})}},v=b.useMemo(()=>{if(!(o.selectedItems.length>0||o.selectAll))return c},[o,c]);return g.jsx(rO,{onClickAway:h,children:g.jsx(Lr,{children:g.jsx(Z_,{options:r,open:d,sx:{"& .MuiBox-root":{"& .MuiFormControl-root":{"div.MuiOutlinedInput-root":{padding:"6px 28px 6px 12px"},"& .MuiInputBase-input":{maxHeight:"24px",height:"24px"},".Mui-error fieldset.MuiOutlinedInput-notchedOutline":{border:`1px solid ${p.red.red2}`,boxShadow:`0px 0px 0px 4px ${p.red.red4}, ${pr}`}}},".MuiAutocomplete-tag":{margin:"3px 4px"}},multiple:!0,ChipProps:{size:"small",deleteIcon:g.jsx(O1,{size:14},void 0),sx:{display:"flex",alignItems:"center",borderRadius:"6px",backgroundColor:p.black.black4,padding:"2px 8px",gap:"8px",height:"20px",".MuiChip-deleteIcon":{margin:0,color:p.black.black1},".MuiChip-label":{padding:0,fontSize:"14px",lineHeight:"20px",fontWeight:400,display:"inline-block",color:p.black.black1},"&:hover":{backgroundColor:p.black.black5,".MuiChip-deleteIcon":{color:p.black.black2}}}},renderOption:(S,m,C)=>{const{selected:_}=C;return m!=null&&m.generateCustomEle?m.generateCustomEle():g.jsxs("li",{...S,children:[g.jsx(Qd,{sx:{padding:"0 8px 0 0"},checked:_||o.selectAll},void 0),g.jsxs(Lr,{sx:{display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between"},children:[g.jsx(mt,{variant:"body1Regular",component:"div",children:m.label},void 0),m.desc&&g.jsx(mt,{variant:"body3Regular",sx:{marginLeft:"8px",color:p.black.black3},children:m.desc},void 0)]},void 0)]},void 0)},onChange:(S,m,C)=>{w(S,m,C),s&&s(S,m,C)},onClose:(S,m)=>{m==="escape"&&f(!1)},onOpen:()=>{f(!0)},PopperComponent:S=>{const{children:m,style:C={},..._}=S;return g.jsx(kc,{..._,disablePortal:!0,onMouseDown:R=>R.preventDefault(),style:{...C,boxShadow:aa,border:`1px solid ${p.stroke.stroke1}`,borderRadius:"8px",backgroundColor:"#fff"},placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,8]}}],children:g.jsxs(g.Fragment,{children:[m,g.jsx(Lr,{sx:{width:"100%",height:"1px",backgroundColor:p.black.black4}},void 0),t&&g.jsxs(Lr,{sx:{padding:"6px 16px",display:"flex",alignItems:"center",marginBottom:"4px","&:hover":{cursor:"pointer",color:p.blue.blue1,backgroundColor:p.black.black5}},onClick:y,children:[g.jsx(Qd,{sx:{padding:"0 16px 0 0"},checked:o.selectAll,indeterminate:!o.selectAll&&o.selectedItems.length>0},void 0),g.jsx(mt,{children:n||"Select all"},void 0)]},void 0)]},void 0)},void 0)},PaperComponent:S=>g.jsx(Is,{sx:{padding:0,boxShadow:"none",borderRadius:"8px","ul.MuiAutocomplete-listbox":{borderRadius:"8px",padding:0,"&::-webkit-scrollbar-track":{width:"3px",background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:p.black.black4},"& li":{margin:"4px 0"},"& > :first-child":{marginTop:"12px"},'& .MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:"#fff","&.Mui-focused":{backgroundColor:"transparent"},"&:hover":{backgroundColor:p.black.black5},"& > * div.MuiTypography-body1Regular":{color:p.blue.blue1}},'.MuiAutocomplete-option[aria-selected="false"]':{backgroundColor:"transparent","&:hover":{backgroundColor:p.black.black5}}}},...S},void 0),isOptionEqualToValue:(S,m)=>S.value===m.value,value:o.selectedItems,inputParams:{placeholder:v,...u},...l},void 0)},void 0)},void 0)});function VF(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;l{t.current=e},[e]),t.current}const Bx=()=>{};function KF(e){const[,t]=b.useState(),{registerDescendant:n=Bx,unregisterDescendant:r=Bx,descendants:o=[],parentId:i=null}=b.useContext(mR),a=UF(o,c=>c.element===e.element),s=qF(o),l=o.some((c,u)=>s&&s[u]&&s[u].element!==c.element);return l9(()=>{if(e.element)return n(Ln({},e,{index:a})),()=>{r(e.element)};t({})},[n,r,a,l,e]),{parentId:i,index:a}}function ZF(e){const{children:t,id:n}=e,[r,o]=b.useState([]),i=b.useCallback(l=>{let{element:c}=l,u=Ms(l,WF);o(d=>{if(d.length===0)return[Ln({},u,{element:c,index:0})];const f=GF(d,c);let p;if(d[f]&&d[f].element===c)p=d;else{const h=Ln({},u,{element:c,index:f});p=d.slice(),p.splice(f,0,h)}return p.forEach((h,y)=>{h.index=y}),p})},[]),a=b.useCallback(l=>{o(c=>c.filter(u=>l!==u.element))},[]),s=b.useMemo(()=>({descendants:r,registerDescendant:i,unregisterDescendant:a,parentId:n}),[r,i,a,n]);return g.jsx(mR.Provider,{value:s,children:t})}const QF={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},YF=b.createContext(QF),vR=()=>b.useContext(YF);function XF(e){const{instance:t,multiSelect:n}=vR(),r=t?t.isNodeExpandable(e):!1,o=t?t.isNodeExpanded(e):!1,i=t?t.isNodeFocused(e):!1,a=t?t.isNodeSelected(e):!1,s=t?t.isNodeDisabled(e):!1;return{disabled:s,expanded:o,selected:a,focused:i,handleExpansion:d=>{if(t&&!s){i||t.focusNode(d,e);const f=n&&(d.shiftKey||d.ctrlKey||d.metaKey);r&&!(f&&t.isNodeExpanded(e))&&t.toggleNodeExpansion(d,e)}},handleSelection:d=>{t&&!s&&(i||t.focusNode(d,e),n&&(d.shiftKey||d.ctrlKey||d.metaKey)?d.shiftKey?t.selectRange(d,{end:e}):t.selectNode(d,e,!0):t.selectNode(d,e))},preventSelection:d=>{(d.shiftKey||d.ctrlKey||d.metaKey||s)&&d.preventDefault()}}}const JF=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],yR=b.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:i,expansionIcon:a,icon:s,label:l,nodeId:c,onClick:u,onMouseDown:d}=t,f=Ms(t,JF),{disabled:p,expanded:h,selected:y,focused:w,handleExpansion:v,handleSelection:S,preventSelection:m}=XF(c),C=s||a||i,_=k=>{m(k),d&&d(k)},R=k=>{v(k),S(k),u&&u(k)};return g.jsxs("div",Ln({},f,{className:ve(o,r.root,h&&r.expanded,y&&r.selected,w&&r.focused,p&&r.disabled),onClick:R,onMouseDown:_,ref:n,children:[g.jsx("div",{className:r.iconContainer,children:C}),g.jsx("div",{className:r.label,children:l})]}))});function eB(e){return G_("MuiTreeItem",e)}const Xt=p9("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),tB=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],nB=e=>{const{classes:t}=e;return VF({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},eB,t)},rB=J("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),oB=J(yR,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Xt.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Xt.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Xt.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xt.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Be(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})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Xt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Xt.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Xt.label}`]:Ln({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),iB=J(ps,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),aB=b.forwardRef(function(t,n){const r=mM({props:t,name:"MuiTreeItem"}),{children:o,className:i,collapseIcon:a,ContentComponent:s=yR,ContentProps:l,endIcon:c,expandIcon:u,disabled:d,icon:f,id:p,label:h,nodeId:y,onClick:w,onMouseDown:v,TransitionComponent:S=ps,TransitionProps:m}=r,C=Ms(r,tB),{icons:_,multiSelect:R,disabledItemsFocusable:k,treeId:T,instance:P}=vR();let x;p!=null?x=p:T&&y&&(x=`${T}-${y}`);const[$,I]=b.useState(null),O=b.useRef(null),D=c9(I,n),M=b.useMemo(()=>({element:$,id:y}),[y,$]),{index:A,parentId:N}=KF(M),E=!!(Array.isArray(o)?o.length:o),L=P?P.isNodeExpanded(y):!1,B=P?P.isNodeFocused(y):!1,H=P?P.isNodeSelected(y):!1,z=P?P.isNodeDisabled(y):!1,j=Ln({},r,{expanded:L,focused:B,selected:H,disabled:z}),F=nB(j);let W,V;E&&(L?V=a||_.defaultCollapseIcon:V=u||_.defaultExpandIcon),E?W=_.defaultParentIcon:W=c||_.defaultEndIcon,b.useEffect(()=>{if(P&&A!==-1)return P.updateNode({id:y,idAttribute:x,index:A,parentId:N,expandable:E,disabled:d}),()=>P.removeNode(y)},[P,N,A,y,E,d,x]),b.useEffect(()=>{if(P&&h){var U,K;return P.mapFirstChar(y,((U=(K=O.current)==null?void 0:K.textContent)!=null?U:"").substring(0,1).toLowerCase())}},[P,y,h]);let ee;R?ee=H:H&&(ee=!0);function re(U){if(U.target===U.currentTarget){let se;typeof U.target.getRootNode=="function"?se=U.target.getRootNode():se=a9(U.target),se.getElementById(T).focus({preventScroll:!0})}const K=!k&&z;P&&!B&&U.currentTarget===U.target&&!K&&P.focusNode(U,y)}return g.jsxs(rB,Ln({className:ve(F.root,i),role:"treeitem","aria-expanded":E?L:void 0,"aria-selected":ee,"aria-disabled":z||void 0,id:x,tabIndex:-1},C,{ownerState:j,onFocus:re,ref:D,children:[g.jsx(oB,Ln({as:s,ref:O,classes:{root:F.content,expanded:F.expanded,selected:F.selected,focused:F.focused,disabled:F.disabled,iconContainer:F.iconContainer,label:F.label},label:h,nodeId:y,onClick:w,onMouseDown:v,icon:f,expansionIcon:V,displayIcon:W,ownerState:j},l)),o&&g.jsx(ZF,{id:y,children:g.jsx(iB,Ln({as:S,unmountOnExit:!0,className:F.group,in:L,component:"ul",role:"group"},m,{children:o}))})]}))});var zx;(function(e){e.LOADING="loading",e.NORMAL="normal",e.NONE="none"})(zx||(zx={}));J(e=>g.jsx(aB,{...e},void 0))(({theme:e})=>({[`& .${Xt.content}`]:{height:"32px",marginBottom:"8px",color:e.black.black1,padding:"4px",borderRadius:"6px",[`&.${Xt.selected}`]:{backgroundColor:e.blue.blue4,[`&.${Xt.focused}`]:{backgroundColor:e.blue.blue4},[`& .${Xt.label},.MuiTypography-root `]:{color:e.blue.blue1},[`& .${Xt.label}`]:{svg:{path:{fill:e.blue.blue1}}},[`& .${Xt.iconContainer}`]:{svg:{path:{fill:e.black.black1}}}},"&:hover":{backgroundColor:e.blue.blue4},[`& .${Xt.label}`]:{color:e.black.black3,fontSize:"12px",paddingLeft:0,svg:{path:{fill:"currentColor"}},".highlight":{color:e.black.black3}},[`& .${Xt.iconContainer}`]:{marginRight:e.spacing(.5),width:"auto",svg:{path:{fill:e.black.black2}}}},[`& .${Xt.group}`]:{position:"relative",top:"-10px",margin:"12px 0 0px 23px",paddingLeft:6,borderLeft:`1px solid ${e.stroke.stroke1}`,".loadingNode":{paddingLeft:8},[`& .${Xt.content}`]:{height:"28px",marginBottom:"4px",".MuiTypography-root":{fontSize:"13px"},svg:{path:{color:e.black.black2}}}}}));const bR=['"Helvetica Neue"','"Microsoft YaHei"',"-apple-system","sans-serif"],sB=['"Pingfang SC"',...bR],lB=['"Inter"',...bR],xR=e=>(e==="enUS"?lB:sB).join(","),Ht=(e,t,n)=>{const r=xR(n),o={h1:{fontSize:"22px",lineHeight:"150%"},h2:{fontSize:"18px",lineHeight:"150%"},h3:{fontSize:"16px",lineHeight:"150%"},h4:{fontSize:"14px",lineHeight:"135%"},body1:{fontSize:"14px",lineHeight:"135%"},body2:{fontSize:"13px",lineHeight:"135%"},body3:{fontSize:"12px",lineHeight:"135%"},body4:{fontSize:"11px",lineHeight:"135%"}},i={regular:{fontWeight:400},medium:{fontWeight:500},semibold:{fontWeight:600},bold:{fontWeight:n==="enUS"?700:600}};return{...o[e],...i[t],fontFamily:r}},cB=e=>({h1Regular:Ht("h1","regular",e),h1Medium:Ht("h1","medium",e),h1Semibold:Ht("h1","semibold",e),h1Bold:Ht("h1","bold",e),h2Regular:Ht("h2","regular",e),h2Medium:Ht("h2","medium",e),h2Semibold:Ht("h2","semibold",e),h3Regular:Ht("h3","regular",e),h3Medium:Ht("h3","medium",e),h3Semibold:Ht("h3","semibold",e),h4Medium:Ht("h4","medium",e),h4Semibold:Ht("h4","semibold",e),body1Regular:Ht("body1","regular",e),body1Medium:Ht("body1","medium",e),body2Regular:Ht("body2","regular",e),body2Medium:Ht("body2","medium",e),body3Regular:Ht("body3","regular",e),body3Medium:Ht("body3","medium",e),body4Regular:Ht("body4","regular",e)}),Vt={blue:{blue1:"#3f46ff",blue2:"#6066fd",blue3:"#dbe0ff",blue4:"#f2f3ff",blue5:"#f7f8ff",dark1:"#181eca",dark2:"#141c63",light1:"#ebedff"},black:{black1:"#1d2939",black2:"#5d6d85",black3:"#a6b1be",black4:"#f0f2f4",black5:"#f9f9fb"},green:{green1:"#166434",green2:"#49de80",green3:"#adf8c9",green4:"#effdf4"},yellow:{yellow1:"#854d0f",yellow2:"#ffb800",yellow3:"#ffe7a9",yellow4:"#fff8e2"},red:{red1:"#991b1b",red2:"#f26868",red3:"#fbc6c6",red4:"#fff1f1"},stroke:{stroke1:"#e4eaf1",stroke2:"#cdd8e8"},gradient:"linear-gradient(118deg,#00ef8b 0.51%,#0044e4 36.98%,#cd3fff 72.73%)"},uB=e=>{const t=xR(e),n=cB(e);return{typography:{fontFamily:t,...n}}},dB=(e="enUS")=>sp({palette:{primary:{main:Vt.blue.blue1,dark:Vt.blue.dark1,light:Vt.blue.blue2},success:{dark:Vt.green.green1,main:Vt.green.green2,light:Vt.green.green3},info:{dark:Vt.blue.blue1,main:Vt.blue.blue2,light:Vt.blue.blue3},warning:{dark:Vt.yellow.yellow1,main:Vt.yellow.yellow2,light:Vt.yellow.yellow3},error:{dark:Vt.red.red1,main:Vt.red.red2,light:Vt.red.red3},text:{primary:Vt.black.black1,secondary:Vt.black.black2,disabled:Vt.black.black3}},language:e,components:{MuiButton:{variants:[{props:{variant:"textGhost"},style:{}}]},MuiTypography:{defaultProps:{color:"textPrimary",variant:"body1Regular",variantMapping:{h1Regular:"h1",h1Medium:"h1",h1Semibold:"h1",h1Bold:"h1",h2Regular:"h2",h2Medium:"h2",h2Semibold:"h2",h3Regular:"h3",h3Medium:"h3",h3Semibold:"h3",h4Medium:"h4",h4Semibold:"h4",body1Regular:"p",body1Medium:"span",body2Regular:"span",body2Medium:"span",body3Regular:"span",body3Medium:"span",body4Regular:"span"}}}},spacing:4,...Vt,...uB(e)},SD[e]);/** + * table-core + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Xo(e,t){return typeof e=="function"?e(t):e}function tr(e,t){return n=>{t.setState(r=>({...r,[e]:Xo(n,r[e])}))}}function Sp(e){return e instanceof Function}function fB(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function pB(e,t){const n=[],r=o=>{o.forEach(i=>{n.push(i);const a=t(i);a!=null&&a.length&&r(a)})};return r(e),n}function Me(e,t,n){let r=[],o;return i=>{let a;n.key&&n.debug&&(a=Date.now());const s=e(i);if(!(s.length!==r.length||s.some((u,d)=>r[d]!==u)))return o;r=s;let c;if(n.key&&n.debug&&(c=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()-a)*100)/100,d=Math.round((Date.now()-c)*100)/100,f=d/16,p=(h,y)=>{for(h=String(h);h.length{var o;return(o=e==null?void 0:e.debugAll)!=null?o:e[t]},key:!1,onChange:r}}function gB(e,t,n,r){const o=()=>{var a;return(a=i.getValue())!=null?a:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:Me(()=>[e,n,t,i],(a,s,l,c)=>({table:a,column:s,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),Ie(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(i,n,t,e)},{}),i}function hB(e,t,n,r){var o,i;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let c=(o=(i=s.id)!=null?i:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?o:typeof s.header=="string"?s.header:void 0,u;if(s.accessorFn?u=s.accessorFn:l&&(l.includes(".")?u=f=>{let p=f;for(const y of l.split(".")){var h;p=(h=p)==null?void 0:h[y]}return p}:u=f=>f[s.accessorKey]),!c)throw new Error;let d={id:`${String(c)}`,accessorFn:u,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:Me(()=>[!0],()=>{var f;return[d,...(f=d.columns)==null?void 0:f.flatMap(p=>p.getFlatColumns())]},Ie(e.options,"debugColumns")),getLeafColumns:Me(()=>[e._getOrderColumnsFn()],f=>{var p;if((p=d.columns)!=null&&p.length){let h=d.columns.flatMap(y=>y.getLeafColumns());return f(h)}return[d]},Ie(e.options,"debugColumns"))};for(const f of e._features)f.createColumn==null||f.createColumn(d,e);return d}const gn="debugHeaders";function Hx(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 a=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),a.push(l)};return s(i),a},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(a=>{a.createHeader==null||a.createHeader(i,e)}),i}const mB={createTable:e=>{e.getHeaderGroups=Me(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,a;const s=(i=r==null?void 0:r.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?i:[],l=(a=o==null?void 0:o.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?a:[],c=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(o!=null&&o.includes(d.id)));return yu(t,[...s,...c,...l],e)},Ie(e.options,gn)),e.getCenterHeaderGroups=Me(()=>[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))),yu(t,n,e,"center")),Ie(e.options,gn)),e.getLeftHeaderGroups=Me(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?o:[];return yu(t,i,e,"left")},Ie(e.options,gn)),e.getRightHeaderGroups=Me(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?o:[];return yu(t,i,e,"right")},Ie(e.options,gn)),e.getFooterGroups=Me(()=>[e.getHeaderGroups()],t=>[...t].reverse(),Ie(e.options,gn)),e.getLeftFooterGroups=Me(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),Ie(e.options,gn)),e.getCenterFooterGroups=Me(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),Ie(e.options,gn)),e.getRightFooterGroups=Me(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),Ie(e.options,gn)),e.getFlatHeaders=Me(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ie(e.options,gn)),e.getLeftFlatHeaders=Me(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ie(e.options,gn)),e.getCenterFlatHeaders=Me(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ie(e.options,gn)),e.getRightFlatHeaders=Me(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ie(e.options,gn)),e.getCenterLeafHeaders=Me(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Ie(e.options,gn)),e.getLeftLeafHeaders=Me(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Ie(e.options,gn)),e.getRightLeafHeaders=Me(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Ie(e.options,gn)),e.getLeafHeaders=Me(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,i,a,s,l,c;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(a=(s=n[0])==null?void 0:s.headers)!=null?a:[],...(l=(c=r[0])==null?void 0:c.headers)!=null?l:[]].map(u=>u.getLeafHeaders()).flat()},Ie(e.options,gn))}};function yu(e,t,n,r){var o,i;let a=0;const s=function(f,p){p===void 0&&(p=1),a=Math.max(a,p),f.filter(h=>h.getIsVisible()).forEach(h=>{var y;(y=h.columns)!=null&&y.length&&s(h.columns,p+1)},0)};s(e);let l=[];const c=(f,p)=>{const h={depth:p,id:[r,`${p}`].filter(Boolean).join("_"),headers:[]},y=[];f.forEach(w=>{const v=[...y].reverse()[0],S=w.column.depth===h.depth;let m,C=!1;if(S&&w.column.parent?m=w.column.parent:(m=w.column,C=!0),v&&(v==null?void 0:v.column)===m)v.subHeaders.push(w);else{const _=Hx(n,m,{id:[r,p,m.id,w==null?void 0:w.id].filter(Boolean).join("_"),isPlaceholder:C,placeholderId:C?`${y.filter(R=>R.column===m).length}`:void 0,depth:p,index:y.length});_.subHeaders.push(w),y.push(_)}h.headers.push(w),w.headerGroup=h}),l.push(h),p>0&&c(y,p-1)},u=t.map((f,p)=>Hx(n,f,{depth:a,index:p}));c(u,a-1),l.reverse();const d=f=>f.filter(h=>h.column.getIsVisible()).map(h=>{let y=0,w=0,v=[0];h.subHeaders&&h.subHeaders.length?(v=[],d(h.subHeaders).forEach(m=>{let{colSpan:C,rowSpan:_}=m;y+=C,v.push(_)})):y=1;const S=Math.min(...v);return w=w+S,h.colSpan=y,h.rowSpan=w,{colSpan:y,rowSpan:w}});return d((o=(i=l[0])==null?void 0:i.headers)!=null?o:[]),l}const vB=(e,t,n,r,o,i,a)=>{let s={id:t,index:r,original:n,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return s._valuesCache[l]=c.accessorFn(s.original,r),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=c.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var c;return(c=s.getValue(l))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>pB(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],c=s;for(;;){const u=c.getParentRow();if(!u)break;l.push(u),c=u}return l.reverse()},getAllCells:Me(()=>[e.getAllLeafColumns()],l=>l.map(c=>gB(e,s,c,c.id)),Ie(e.options,"debugRows")),_getAllCellsByColumnId:Me(()=>[s.getAllCells()],l=>l.reduce((c,u)=>(c[u.column.id]=u,c),{}),Ie(e.options,"debugRows"))};for(let l=0;l{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},SR=(e,t,n)=>{var r,o;const i=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(t))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};SR.autoRemove=e=>jr(e);const wR=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};wR.autoRemove=e=>jr(e);const CR=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};CR.autoRemove=e=>jr(e);const _R=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};_R.autoRemove=e=>jr(e)||!(e!=null&&e.length);const RR=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});RR.autoRemove=e=>jr(e)||!(e!=null&&e.length);const TR=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});TR.autoRemove=e=>jr(e)||!(e!=null&&e.length);const PR=(e,t,n)=>e.getValue(t)===n;PR.autoRemove=e=>jr(e);const kR=(e,t,n)=>e.getValue(t)==n;kR.autoRemove=e=>jr(e);const V1=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};V1.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,a=n===null||Number.isNaN(o)?1/0:o;if(i>a){const s=i;i=a,a=s}return[i,a]};V1.autoRemove=e=>jr(e)||jr(e[0])&&jr(e[1]);const go={includesString:SR,includesStringSensitive:wR,equalsString:CR,arrIncludes:_R,arrIncludesAll:RR,arrIncludesSome:TR,equals:PR,weakEquals:kR,inNumberRange:V1};function jr(e){return e==null||e===""}const bB={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:tr("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?go.includesString:typeof r=="number"?go.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?go.equals:Array.isArray(r)?go.arrIncludes:go.weakEquals},e.getFilterFn=()=>{var n,r;return Sp(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:go[e.columnDef.filterFn]},e.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},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),i=r==null?void 0:r.find(u=>u.id===e.id),a=Xo(n,i?i.value:void 0);if(Vx(o,a,e)){var s;return(s=r==null?void 0:r.filter(u=>u.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(i){var c;return(c=r==null?void 0:r.map(u=>u.id===e.id?l:u))!=null?c:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=o=>{var i;return(i=Xo(t,o))==null?void 0:i.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(Vx(l,a.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Vx(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const xB=(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),SB=(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},wB=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r=i)&&(r=i)}),r},CB=(e,t,n)=>{let r,o;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r===void 0?a>=a&&(r=o=a):(r>a&&(r=a),o{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},RB=(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!fB(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,a)=>i-a);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},TB=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),PB=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,kB=(e,t)=>t.length,kg={sum:xB,min:SB,max:wB,extent:CB,mean:_B,median:RB,unique:TB,uniqueCount:PB,count:kB},$B={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:tr("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return kg.sum;if(Object.prototype.toString.call(r)==="[object Date]")return kg.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Sp(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:kg[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.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)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function EB(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(a=>a.id===i)).filter(Boolean),...r]}const MB={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:tr("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Me(n=>[Ll(t,n)],n=>n.findIndex(r=>r.id===e.id),Ie(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=Ll(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=Ll(t,n);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=Me(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const a=[...t],s=[...o];for(;s.length&&a.length;){const l=a.shift(),c=s.findIndex(u=>u.id===l);c>-1&&i.push(s.splice(c,1)[0])}i=[...i,...s]}return EB(i,n,r)},Ie(e.options,"debugTable"))}},$g=()=>({left:[],right:[]}),IB={getInitialState:e=>({columnPinning:$g(),...e}),getDefaultOptions:e=>({onColumnPinningChange:tr("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,a;if(n==="right"){var s,l;return{left:((s=o==null?void 0:o.left)!=null?s:[]).filter(d=>!(r!=null&&r.includes(d))),right:[...((l=o==null?void 0:o.right)!=null?l:[]).filter(d=>!(r!=null&&r.includes(d))),...r]}}if(n==="left"){var c,u;return{left:[...((c=o==null?void 0:o.left)!=null?c:[]).filter(d=>!(r!=null&&r.includes(d))),...r],right:((u=o==null?void 0:o.right)!=null?u:[]).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:((a=o==null?void 0:o.right)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,i,a;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=(a=t.options.enableColumnPinning)!=null?a:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>o==null?void 0:o.includes(s));return i?"left":a?"right":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?(n=(r=t.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Me(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(a=>!i.includes(a.column.id))},Ie(t.options,"debugRows")),e.getLeftVisibleCells=Me(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(i=>n.find(a=>a.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),Ie(t.options,"debugRows")),e.getRightVisibleCells=Me(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(a=>a.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),Ie(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?$g():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:$g())},e.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)},e.getLeftLeafColumns=Me(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),Ie(e.options,"debugColumns")),e.getRightLeafColumns=Me(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),Ie(e.options,"debugColumns")),e.getCenterLeafColumns=Me(()=>[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))},Ie(e.options,"debugColumns"))}},bu={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Eg=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),OB={getDefaultColumnDef:()=>bu,getInitialState:e=>({columnSizing:{},columnSizingInfo:Eg(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:tr("columnSizing",e),onColumnSizingInfoChange:tr("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:bu.minSize,(r=i??e.columnDef.size)!=null?r:bu.size),(o=e.columnDef.maxSize)!=null?o:bu.maxSize)},e.getStart=Me(n=>[n,Ll(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),Ie(t.options,"debugColumns")),e.getAfter=Me(n=>[n,Ll(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),Ie(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.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},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=r==null?void 0:r.getCanResize();return i=>{if(!r||!o||(i.persist==null||i.persist(),Mg(i)&&i.touches&&i.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[r.id,r.getSize()]],l=Mg(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(v,S)=>{typeof S=="number"&&(t.setColumnSizingInfo(m=>{var C,_;const R=t.options.columnResizeDirection==="rtl"?-1:1,k=(S-((C=m==null?void 0:m.startOffset)!=null?C:0))*R,T=Math.max(k/((_=m==null?void 0:m.startSize)!=null?_:0),-.999999);return m.columnSizingStart.forEach(P=>{let[x,$]=P;c[x]=Math.round(Math.max($+$*T,0)*100)/100}),{...m,deltaOffset:k,deltaPercentage:T}}),(t.options.columnResizeMode==="onChange"||v==="end")&&t.setColumnSizing(m=>({...m,...c})))},d=v=>u("move",v),f=v=>{u("end",v),t.setColumnSizingInfo(S=>({...S,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=n||typeof document<"u"?document:null,h={moveHandler:v=>d(v.clientX),upHandler:v=>{p==null||p.removeEventListener("mousemove",h.moveHandler),p==null||p.removeEventListener("mouseup",h.upHandler),f(v.clientX)}},y={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),d(v.touches[0].clientX),!1),upHandler:v=>{var S;p==null||p.removeEventListener("touchmove",y.moveHandler),p==null||p.removeEventListener("touchend",y.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),f((S=v.touches[0])==null?void 0:S.clientX)}},w=LB()?{passive:!1}:!1;Mg(i)?(p==null||p.addEventListener("touchmove",y.moveHandler,w),p==null||p.addEventListener("touchend",y.upHandler,w)):(p==null||p.addEventListener("mousemove",h.moveHandler,w),p==null||p.addEventListener("mouseup",h.upHandler,w)),t.setColumnSizingInfo(v=>({...v,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Eg():(n=e.initialState.columnSizingInfo)!=null?n:Eg())},e.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},e.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},e.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},e.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 xu=null;function LB(){if(typeof xu=="boolean")return xu;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 xu=e,xu}function Mg(e){return e.type==="touchstart"}const AB={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:tr("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return(n=o.length?o.some(i=>i.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Me(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),Ie(t.options,"debugRows")),e.getVisibleCells=Me(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],Ie(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>Me(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),Ie(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.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())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function Ll(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const NB={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},DB={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:tr("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.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}},createTable:e=>{e.getGlobalAutoFilterFn=()=>go.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Sp(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:go[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},jB={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:tr("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._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})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const a=i.split(".");r=Math.max(r,a.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{a[s]=!0}):a=r,n=(o=n)!=null?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:s,...l}=a;return l}return r})},e.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])},e.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)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Em=0,Mm=10,Ig=()=>({pageIndex:Em,pageSize:Mm}),FB={getInitialState:e=>({...e,pagination:{...Ig(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:tr("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._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})}},e.setPagination=r=>{const o=i=>Xo(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?Ig():(o=e.initialState.pagination)!=null?o:Ig())},e.setPageIndex=r=>{e.setPagination(o=>{let i=Xo(r,o.pageIndex);const a=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,a)),{...o,pageIndex:i}})},e.resetPageIndex=r=>{var o,i;e.setPageIndex(r?Em:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Em)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?Mm:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:Mm)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,Xo(r,o.pageSize)),a=o.pageSize*o.pageIndex,s=Math.floor(a/i);return{...o,pageIndex:s,pageSize:i}})},e.setPageCount=r=>e.setPagination(o=>{var i;let a=Xo(r,(i=e.options.pageCount)!=null?i:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...o,pageCount:a}}),e.getPageOptions=Me(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,a)=>a)),o},Ie(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:re.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Og=()=>({top:[],bottom:[]}),BB={getInitialState:e=>({rowPinning:Og(),...e}),getDefaultOptions:e=>({onRowPinningChange:tr("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(l=>{let{id:c}=l;return c}):[],a=o?e.getParentRows().map(l=>{let{id:c}=l;return c}):[],s=new Set([...a,e.id,...i]);t.setRowPinning(l=>{var c,u;if(n==="bottom"){var d,f;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(y=>!(s!=null&&s.has(y))),bottom:[...((f=l==null?void 0:l.bottom)!=null?f:[]).filter(y=>!(s!=null&&s.has(y))),...Array.from(s)]}}if(n==="top"){var p,h;return{top:[...((p=l==null?void 0:l.top)!=null?p:[]).filter(y=>!(s!=null&&s.has(y))),...Array.from(s)],bottom:((h=l==null?void 0:l.bottom)!=null?h:[]).filter(y=>!(s!=null&&s.has(y)))}}return{top:((c=l==null?void 0:l.top)!=null?c:[]).filter(y=>!(s!=null&&s.has(y))),bottom:((u=l==null?void 0:l.bottom)!=null?u:[]).filter(y=>!(s!=null&&s.has(y)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return typeof r=="function"?r(e):(n=r??o)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>o==null?void 0:o.includes(s));return i?"top":a?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=(n=o==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(a=>{let{id:s}=a;return s});return(r=i==null?void 0:i.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Og():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Og())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var o,i;return!!((o=r.top)!=null&&o.length||(i=r.bottom)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(n??[]).map(a=>{const s=e.getRow(a,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(a=>t.find(s=>s.id===a))).filter(Boolean).map(a=>({...a,position:r}))},e.getTopRows=Me(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Ie(e.options,"debugRows")),e.getBottomRows=Me(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Ie(e.options,"debugRows")),e.getCenterRows=Me(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const o=new Set([...n??[],...r??[]]);return t.filter(i=>!o.has(i.id))},Ie(e.options,"debugRows"))}},zB={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:tr("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.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})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(i=>{Im(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Me(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Lg(e,n):{rows:[],flatRows:[],rowsById:{}},Ie(e.options,"debugTable")),e.getFilteredSelectedRowModel=Me(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Lg(e,n):{rows:[],flatRows:[],rowsById:{}},Ie(e.options,"debugTable")),e.getGroupedSelectedRowModel=Me(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Lg(e,n):{rows:[],flatRows:[],rowsById:{}},Ie(e.options,"debugTable")),e.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},e.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},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var a;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return i;const s={...i};return Im(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return W1(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Om(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Om(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},Im=(e,t,n,r,o)=>{var i;const a=o.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(i=a.subRows)!=null&&i.length&&a.getCanSelectSubRows()&&a.subRows.forEach(s=>Im(e,s.id,n,r,o))};function Lg(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(a,s){return a.map(l=>{var c;const u=W1(l,n);if(u&&(r.push(l),o[l.id]=l),(c=l.subRows)!=null&&c.length&&(l={...l,subRows:i(l.subRows)}),u)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function W1(e,t){var n;return(n=t[e.id])!=null?n:!1}function Om(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,i=!1;return e.subRows.forEach(a=>{if(!(i&&!o)&&(a.getCanSelect()&&(W1(a,t)?i=!0:o=!1),a.subRows&&a.subRows.length)){const s=Om(a,t);s==="all"?i=!0:(s==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Lm=/([0-9]+)/gm,HB=(e,t,n)=>$R(gi(e.getValue(n)).toLowerCase(),gi(t.getValue(n)).toLowerCase()),VB=(e,t,n)=>$R(gi(e.getValue(n)),gi(t.getValue(n))),WB=(e,t,n)=>U1(gi(e.getValue(n)).toLowerCase(),gi(t.getValue(n)).toLowerCase()),UB=(e,t,n)=>U1(gi(e.getValue(n)),gi(t.getValue(n))),GB=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:rU1(e.getValue(n),t.getValue(n));function U1(e,t){return e===t?0:e>t?1:-1}function gi(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function $R(e,t){const n=e.split(Lm).filter(Boolean),r=t.split(Lm).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),a=parseInt(o,10),s=parseInt(i,10),l=[a,s].sort();if(isNaN(l[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>s)return 1;if(s>a)return-1}return n.length-r.length}const rl={alphanumeric:HB,alphanumericCaseSensitive:VB,text:WB,textCaseSensitive:UB,datetime:GB,basic:qB},KB={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:tr("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.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 rl.datetime;if(typeof i=="string"&&(r=!0,i.split(Lm).length>1))return rl.alphanumeric}return r?rl.text:rl.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Sp(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:rl[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(a=>{const s=a==null?void 0:a.find(p=>p.id===e.id),l=a==null?void 0:a.findIndex(p=>p.id===e.id);let c=[],u,d=i?n:o==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&r?s?u="toggle":u="add":a!=null&&a.length&&l!==a.length-1?u="replace":s?u="toggle":u="replace",u==="toggle"&&(i||o||(u="remove")),u==="add"){var f;c=[...a,{id:e.id,desc:d}],c.splice(0,c.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else u==="toggle"?c=a.map(p=>p.id===e.id?{...p,desc:d}:p):u==="remove"?c=a.filter(p=>p.id!==e.id):c=[{id:e.id,desc:d}];return c})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==i&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:a==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.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},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.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=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},ZB=[mB,AB,MB,IB,yB,bB,NB,DB,KB,$B,jB,FB,BB,zB,OB];function QB(e){var t,n;const r=[...ZB,...(t=e._features)!=null?t:[]];let o={_features:r};const i=o._features.reduce((f,p)=>Object.assign(f,p.getDefaultOptions==null?void 0:p.getDefaultOptions(o)),{}),a=f=>o.options.mergeOptions?o.options.mergeOptions(i,f):{...i,...f};let l={...{},...(n=e.initialState)!=null?n:{}};o._features.forEach(f=>{var p;l=(p=f.getInitialState==null?void 0:f.getInitialState(l))!=null?p:l});const c=[];let u=!1;const d={_features:r,options:{...i,...e},initialState:l,_queue:f=>{c.push(f),u||(u=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();u=!1}).catch(p=>setTimeout(()=>{throw p})))},reset:()=>{o.setState(o.initialState)},setOptions:f=>{const p=Xo(f,o.options);o.options=a(p)},getState:()=>o.options.state,setState:f=>{o.options.onStateChange==null||o.options.onStateChange(f)},_getRowId:(f,p,h)=>{var y;return(y=o.options.getRowId==null?void 0:o.options.getRowId(f,p,h))!=null?y:`${h?[h.id,p].join("."):p}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(f,p)=>{let h=(p?o.getPrePaginationRowModel():o.getRowModel()).rowsById[f];if(!h&&(h=o.getCoreRowModel().rowsById[f],!h))throw new Error;return h},_getDefaultColumnDef:Me(()=>[o.options.defaultColumn],f=>{var p;return f=(p=f)!=null?p:{},{header:h=>{const y=h.header.column.columnDef;return y.accessorKey?y.accessorKey:y.accessorFn?y.id:null},cell:h=>{var y,w;return(y=(w=h.renderValue())==null||w.toString==null?void 0:w.toString())!=null?y:null},...o._features.reduce((h,y)=>Object.assign(h,y.getDefaultColumnDef==null?void 0:y.getDefaultColumnDef()),{}),...f}},Ie(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Me(()=>[o._getColumnDefs()],f=>{const p=function(h,y,w){return w===void 0&&(w=0),h.map(v=>{const S=hB(o,v,w,y),m=v;return S.columns=m.columns?p(m.columns,S,w+1):[],S})};return p(f)},Ie(e,"debugColumns")),getAllFlatColumns:Me(()=>[o.getAllColumns()],f=>f.flatMap(p=>p.getFlatColumns()),Ie(e,"debugColumns")),_getAllFlatColumnsById:Me(()=>[o.getAllFlatColumns()],f=>f.reduce((p,h)=>(p[h.id]=h,p),{}),Ie(e,"debugColumns")),getAllLeafColumns:Me(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(f,p)=>{let h=f.flatMap(y=>y.getLeafColumns());return p(h)},Ie(e,"debugColumns")),getColumn:f=>o._getAllFlatColumnsById()[f]};Object.assign(o,d);for(let f=0;fMe(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,a){i===void 0&&(i=0);const s=[];for(let c=0;ce._autoResetPageIndex()))}function XB(e){const t=[],n=r=>{var o;t.push(r),(o=r.subRows)!=null&&o.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function JB(e){return t=>Me(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:o,pageIndex:i}=n;let{rows:a,flatRows:s,rowsById:l}=r;const c=o*i,u=c+o;a=a.slice(c,u);let d;t.options.paginateExpandedRows?d={rows:a,flatRows:s,rowsById:l}:d=XB({rows:a,flatRows:s,rowsById:l}),d.flatRows=[];const f=p=>{d.flatRows.push(p),p.subRows.length&&p.subRows.forEach(f)};return d.rows.forEach(f),d},Ie(t.options,"debugTable"))}function ez(){return e=>Me(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,o=[],i=r.filter(l=>{var c;return(c=e.getColumn(l.id))==null?void 0:c.getCanSort()}),a={};i.forEach(l=>{const c=e.getColumn(l.id);c&&(a[l.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()})});const s=l=>{const c=l.map(u=>({...u}));return c.sort((u,d)=>{for(let p=0;p{var d;o.push(u),(d=u.subRows)!=null&&d.length&&(u.subRows=s(u.subRows))}),c};return{rows:s(n.rows),flatRows:o,rowsById:n.rowsById}},Ie(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/** + * react-table + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ER(e,t){return e?tz(e)?b.createElement(e,t):e:null}function tz(e){return nz(e)||typeof e=="function"||rz(e)}function nz(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function rz(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function oz(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=b.useState(()=>({current:QB(t)})),[r,o]=b.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:a=>{o(a),e.onStateChange==null||e.onStateChange(a)}})),n.current}const iz=e=>e.map(t=>({...t,accessorKey:t.field,header:t.renderHeader?({table:n})=>t.renderHeader({table:n}):t.headerName,minSize:t.minWidth,maxSize:t.maxWidth,size:t.width,cell:t.renderCell?n=>t.renderCell({...n,data:n.row.original}):n=>n.renderValue(),meta:{headerAlign:t.headerAlign,align:t.align}}));function MR(e,t){const n="column"in e?e.column:e,r=t?"header":"col";return{minWidth:`max(calc(var(--${r}-${n.id}-size) * 1px), ${n.columnDef.minSize??0}px)`,width:`min(calc(var(--${r}-${n.id}-size) * 1px), ${n.columnDef.size}px)`,maxWidth:`min(calc(var(--${r}-${n.id}-size) * 1px), ${n.columnDef.maxSize??Number.MAX_SAFE_INTEGER}px)`}}const IR=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!1),o=b.useRef(null),i=b.useCallback(()=>{if(o.current){const{scrollLeft:s,scrollWidth:l,clientWidth:c}=o.current;t(s>0),r(s{i()},[]);function a(s,l){const c="column"in s?s.column:s,u=c.getIsPinned();return{position:u||l?"sticky":"relative",top:l?0:void 0,left:u==="left"?`${c.getStart("left")}px`:void 0,right:u==="right"?`${c.getAfter("right")}px`:void 0,zIndex:l?u?3:2:u?2:1,backgroundColor:u?"#fff":"transparent",transition:"all 0.1s ease"}}return{tableContainerRef:o,getCommonPinningStyles:a,updateShadows:i,showShadowState:{showLeftShadow:e,showRightShadow:n}}},Ag=[10,25,50,100],az=10,sz=10,lz=({paginationMode:e,paginationState:t,onPageChange:n,onPageSizeChange:r})=>{const{pageIndex:o=0,pageSize:i=sz,totalCount:a}=t||{},[s,l]=b.useState({pageIndex:o,pageSize:i}),c=b.useMemo(()=>{if(e!=="client")return Math.ceil(a/s.pageSize)},[e,a,s.pageSize]),u=b.useCallback(f=>{l(p=>({...p,pageIndex:f})),n&&n(f)},[n]),d=b.useCallback(f=>{const p=Number(f.target.value);l(h=>({...h,pageSize:p})),r&&r(p)},[r]);return{pagination:s,setPagination:l,pageCount:c,handlePageChange:u,handleRowsPerPageChange:d}},cz="_root_71ors_3",uz="_withBorder_71ors_6",dz="_tableContainer_71ors_15",fz="_resizer_71ors_21",pz="_cell_71ors_35",gz="_headerCell_71ors_53",hz="_bodyCell_71ors_54",mz="_pinnedRight_71ors_67",vz="_pinnedLeft_71ors_68",yz="_rowWhenHover_71ors_92",bz="_emptyCell_71ors_103",xz="_footer_71ors_110",Sz="_hide_71ors_114",wz="_onlyPagination_71ors_117",vn={root:cz,withBorder:uz,tableContainer:dz,resizer:fz,cell:pz,headerCell:gz,bodyCell:hz,pinnedRight:mz,pinnedLeft:vz,rowWhenHover:yz,emptyCell:bz,footer:xz,hide:Sz,onlyPagination:wz},Cz=e=>{const{isExpanded:t,row:n,renderDetail:r}=e;return g.jsx(yp,{children:g.jsx(ps,{in:t,children:r?r(n):null},void 0)},void 0)},_z=rt.memo(({row:e,rowProps:t,showShadowState:n})=>g.jsx(yp,{...t,hover:!0,classes:{hover:vn.rowWhenHover},children:e.getVisibleCells().map(r=>g.jsx(Rz,{cell:r,showShadowState:n},void 0))},void 0),(e,t)=>e.row===t.row&&e.showShadowState===t.showShadowState),Rz=rt.memo(({cell:e,showShadowState:t})=>{var r;const{getCommonPinningStyles:n}=IR();return g.jsx(ys,{classes:{root:vn.cell,body:Gt(vn.bodyCell,{[vn.pinnedRight]:e.column.getIsPinned()==="right"&&e.column.getIsFirstColumn("right")&&t.showRightShadow,[vn.pinnedLeft]:e.column.getIsPinned()==="left"&&e.column.getIsLastColumn("left")&&t.showLeftShadow})},style:{...MR(e),...n(e,!1),textAlign:((r=e.column.columnDef.meta)==null?void 0:r.align)||"left"},children:ER(e.column.columnDef.cell,e.getContext())},e.id)},(e,t)=>e.cell.getValue()===t.cell.getValue()&&e.showShadowState===t.showShadowState),OR=e=>{const{table:t,showShadowState:n,renderDetail:r,expandedRows:o,columnsCount:i}=e,a=t.getRowModel().rows,s=zt();return g.jsx(P7,{children:a.length===0?g.jsx(yp,{children:g.jsx(ys,{colSpan:i,className:vn.emptyCell,children:g.jsx(mt,{color:"textSecondary",children:Kd(Ae.NoRows,s.language)},void 0)},void 0)},void 0):a.map(l=>{const c=!!o[l.id];return g.jsxs(g.Fragment,{children:[g.jsx(_z,{rowProps:{key:l.id},row:l,showShadowState:n},void 0),r&&c&&g.jsx(Cz,{row:l.original,isExpanded:c,renderDetail:r},void 0)]},void 0)})},void 0)},Tz=rt.memo(OR,(e,t)=>e.table.options.data===t.table.options.data&&e.expandedRows===t.expandedRows),Pz=e=>{const{header:t}=e,n=b.useCallback(r=>{r.preventDefault(),t.getResizeHandler()(r.nativeEvent)},[t]);return g.jsx("div",{onMouseDown:n,className:Gt(vn.resizer,{[vn.isResizing]:t.column.getIsResizing()})},void 0)};var Am;(function(e){e[e.ManageColumnDisplay=0]="ManageColumnDisplay"})(Am||(Am={}));const kz=e=>{const{table:t}=e,[n,r]=b.useState(null),o=!!n,i=o?"simple-popover":void 0,a=(l,c)=>{r(l.currentTarget)},s=()=>{r(null)};return g.jsxs(F_,{sx:{display:"flex",justifyContent:"space-between"},children:[g.jsx(mt,{children:"Table"},void 0),g.jsxs("div",{children:[g.jsx(A1,{onClick:l=>a(l,Am.ManageColumnDisplay),children:g.jsx(XA,{size:24},void 0)},void 0),g.jsx(L_,{id:i,open:o,onClose:s,anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:g.jsxs("div",{style:{padding:"16px",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.25)"},children:[g.jsx(mt,{sx:{marginBottom:"16px"},children:"Manage Column Display"},void 0),g.jsx("div",{children:t.getAllLeafColumns().map(l=>g.jsx("div",{className:"px-1",children:g.jsxs("label",{children:[g.jsx("input",{type:"checkbox",checked:l.getIsVisible(),onChange:l.getToggleVisibilityHandler()},void 0)," ",l.columnDef.header]},void 0)},l.id))},void 0)]},void 0)},void 0)]},void 0)]},void 0)},$z=e=>{const{header:t,children:n}=e;return t.column.getCanSort()?g.jsx(mA,{active:t.column.getIsSorted()!==!1,direction:t.column.getIsSorted()||"asc",onClick:t.column.getToggleSortingHandler(),children:n},void 0):g.jsx(g.Fragment,{children:n},void 0)},Ez=()=>{const[e,t]=b.useState({}),n=o=>{t(i=>({...i,[o]:!i[o]}))},r=b.useMemo(()=>({id:"expander",headerName:"",field:"expander",renderCell:({row:o})=>g.jsx(A1,{onClick:()=>n(o.id),size:"small",children:e[o.id]?g.jsx(KA,{size:24},void 0):g.jsx(ia,{size:24},void 0)},void 0)}),[e]);return{expandedRows:e,toggleRowExpanded:n,expandedColumn:r}},Mz=e=>{const{selectedIds:t}=e,n=t.reduce((a,s)=>(a[s]=!0,a),{}),[r,o]=b.useState(n||{});return{checkboxColumn:b.useMemo(()=>({id:"checkbox",headerName:"",field:"checkbox",renderHeader:({table:a})=>g.jsx(Qd,{checked:a.getIsAllRowsSelected(),indeterminate:a.getIsSomeRowsSelected(),onChange:a.getToggleAllRowsSelectedHandler()},void 0),renderCell:({row:a})=>g.jsx(Qd,{checked:a.getIsSelected(),disabled:!a.getCanSelect(),indeterminate:a.getIsSomeSelected(),onChange:a.getToggleSelectedHandler()},void 0)}),[]),setRowSelection:o,rowSelection:r}},pt=e=>{const{columns:t,rows:n,initialState:r,stickyHeader:o=!1,maxHeight:i,showPagination:a=!0,paginationMode:s="client",sortingMode:l="client",onSortingChange:c,rowCount:u=0,showPageSizeSelect:d=!0,pageSize:f,page:p,onPageChange:h,onPageSizeChange:y,enableColumnResizing:w=!1,showToolbar:v=!1,renderDetail:S,isRowSelectable:m,enableMultiRowSelection:C=!0,showCheckboxColumn:_=!1,onSelectChange:R,getRowId:k,renderFooter:T,classes:P={tableContainer:""},withBorder:x=!0,selectedRowIds:$=[]}=e,{tableContainerRef:I,getCommonPinningStyles:O,updateShadows:D,showShadowState:M}=IR(),{pagination:A,pageCount:N,handlePageChange:E,handleRowsPerPageChange:L}=lz({paginationMode:s,paginationState:{pageIndex:p,pageSize:f,totalCount:u},onPageChange:h,onPageSizeChange:y}),{expandedColumn:B,expandedRows:H}=Ez(),{rowSelection:z,setRowSelection:j,checkboxColumn:F}=Mz({selectedIds:$}),[W,V]=b.useState([]),ee=b.useMemo(()=>{const de=[...t].filter(Q=>!Q.hide);return S&&de.unshift(B),_&&de.unshift(F),iz(de)},[t,S,H,_]),re=oz({data:n,columns:ee,getCoreRowModel:YB(),getPaginationRowModel:JB(),getSortedRowModel:l==="client"?ez():void 0,onSortingChange:de=>{const Q=typeof de=="function"?de(W):de;V(Q),l==="server"&&c&&c(Q)},enableColumnPinning:!0,enableRowSelection:de=>_&&(m?m(de.original):!0),enableMultiRowSelection:C,initialState:r,defaultColumn:{enableSorting:!1},state:{pagination:A,sorting:W,rowSelection:z},manualPagination:s==="server",manualSorting:l==="server",pageCount:N,enableColumnResizing:w,columnResizeMode:"onChange",onRowSelectionChange:j,getRowId:de=>k?k(de):de.id}),{getState:U}=re,{columnSizing:K,columnSizingInfo:se}=U();b.useEffect(()=>{const de=Object.keys(z).filter(Q=>z[Q]);R&&R(de)},[z]);const{showPagination:q,totalCount:ce}=b.useMemo(()=>{const de=s==="server"?u:n.length;return{showPagination:a&&de>az,totalCount:de}},[a,s,n.length]),ue=b.useMemo(()=>d?!f||Ag.includes(f)?Ag:[f,...Ag]:[],[d,f]),ie=b.useMemo(()=>{const de=re.getFlatHeaders().length;return{table:re,showShadowState:M,renderDetail:S,expandedRows:H,columnsCount:de}},[re,M,S,H]),te=b.useMemo(()=>{const de=re.getFlatHeaders(),Q={};for(let be=0;beg.jsx(yp,{children:de.headers.map(Q=>{var be;return g.jsxs(ys,{padding:"none",classes:{root:vn.cell,head:vn.headerCell},style:{...MR(Q,!0),...O(Q,o),textAlign:((be=Q.column.columnDef.meta)==null?void 0:be.headerAlign)||"left",backgroundColor:"#fff"},children:[g.jsx($z,{header:Q,children:Q.isPlaceholder?null:ER(Q.column.columnDef.header,Q.getContext())},void 0),Q.column.getCanResize()&&g.jsx(Pz,{header:Q},void 0)]},Q.id)})},de.id))},void 0),se.isResizingColumn?g.jsx(Tz,{...ie},void 0):g.jsx(OR,{...ie},void 0)]},void 0)},void 0),g.jsxs(B7,{classes:{root:Gt(vn.footer,{[vn.hide]:!T&&!q,[vn.onlyPagination]:!T&&q})},children:[T&&T(Object.keys(z)),q&&g.jsx(ID,{rowsPerPage:A.pageSize,page:A.pageIndex,count:ce,onPageChange:(de,Q)=>E(Q),onRowsPerPageChange:L,rowsPerPageOptions:ue},void 0)]},void 0)]},void 0)};var LR={exports:{}},AR={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var xs=b;function Iz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Oz=typeof Object.is=="function"?Object.is:Iz,Lz=xs.useState,Az=xs.useEffect,Nz=xs.useLayoutEffect,Dz=xs.useDebugValue;function jz(e,t){var n=t(),r=Lz({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Nz(function(){o.value=n,o.getSnapshot=t,Ng(o)&&i({inst:o})},[e,n,t]),Az(function(){return Ng(o)&&i({inst:o}),e(function(){Ng(o)&&i({inst:o})})},[e]),Dz(n),n}function Ng(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Oz(e,n)}catch{return!0}}function Fz(e,t){return t()}var Bz=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Fz:jz;AR.useSyncExternalStore=xs.useSyncExternalStore!==void 0?xs.useSyncExternalStore:Bz;LR.exports=AR;var zz=LR.exports;const Jo=()=>{},Pn=Jo(),Yu=Object,et=e=>e===Pn,Or=e=>typeof e=="function",ko=(e,t)=>({...e,...t}),Hz=e=>Or(e.then),Su=new WeakMap;let Vz=0;const gc=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(Yu(e)===e&&!r&&n!=RegExp){if(o=Su.get(e),o)return o;if(o=++Vz+"~",Su.set(e,o),n==Array){for(o="@",i=0;iwp&&typeof window.requestAnimationFrame!=G1,NR=(e,t)=>{const n=vo.get(e);return[()=>!et(t)&&e.get(t)||Dg,r=>{if(!et(t)){const o=e.get(t);t in wu||(wu[t]=o),n[5](t,ko(o,r),o||Dg)}},n[6],()=>!et(t)&&t in wu?wu[t]:!et(t)&&e.get(t)||Dg]};let Dm=!0;const Uz=()=>Dm,[jm,Fm]=wp&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Jo,Jo],Gz=()=>{const e=Nm&&document.visibilityState;return et(e)||e!=="hidden"},qz=e=>(Nm&&document.addEventListener("visibilitychange",e),jm("focus",e),()=>{Nm&&document.removeEventListener("visibilitychange",e),Fm("focus",e)}),Kz=e=>{const t=()=>{Dm=!0,e()},n=()=>{Dm=!1};return jm("online",t),jm("offline",n),()=>{Fm("online",t),Fm("offline",n)}},Zz={isOnline:Uz,isVisible:Gz},Qz={initFocus:qz,initReconnect:Kz},Wx=!rt.useId,hc=!wp||"Deno"in window,Yz=e=>Wz()?window.requestAnimationFrame(e):setTimeout(e,1),Xu=hc?b.useEffect:b.useLayoutEffect,jg=typeof navigator<"u"&&navigator.connection,Ux=!hc&&jg&&(["slow-2g","2g"].includes(jg.effectiveType)||jg.saveData),q1=e=>{if(Or(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?gc(e):"",[e,t]};let Xz=0;const Bm=()=>++Xz,DR=0,jR=1,FR=2,Jz=3;var ol={__proto__:null,ERROR_REVALIDATE_EVENT:Jz,FOCUS_EVENT:DR,MUTATE_EVENT:FR,RECONNECT_EVENT:jR};async function BR(...e){const[t,n,r,o]=e,i=ko({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const c=f=>typeof s=="function"?s(f):s!==!1,u=i.throwOnError;if(Or(n)){const f=n,p=[],h=t.keys();for(const y of h)!/^\$(inf|sub)\$/.test(y)&&f(t.get(y)._k)&&p.push(y);return Promise.all(p.map(d))}return d(n);async function d(f){const[p]=q1(f);if(!p)return;const[h,y]=NR(t,p),[w,v,S,m]=vo.get(t),C=()=>{const O=w[p];return(Or(i.revalidate)?i.revalidate(h().data,f):i.revalidate!==!1)&&(delete S[p],delete m[p],O&&O[0])?O[0](FR).then(()=>h().data):h().data};if(e.length<3)return C();let _=r,R;const k=Bm();v[p]=[k,0];const T=!et(l),P=h(),x=P.data,$=P._c,I=et($)?x:$;if(T&&(l=Or(l)?l(I,x):l,y({data:l,_c:I})),Or(_))try{_=_(I)}catch(O){R=O}if(_&&Hz(_))if(_=await _.catch(O=>{R=O}),k!==v[p][0]){if(R)throw R;return _}else R&&T&&c(R)&&(a=!0,y({data:I,_c:Pn}));if(a&&!R)if(Or(a)){const O=a(_,I);y({data:O,error:Pn,_c:Pn})}else y({data:_,error:Pn,_c:Pn});if(v[p][1]=Bm(),Promise.resolve(C()).then(()=>{y({_c:Pn})}),R){if(u)throw R;return}return _}}const Gx=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},zR=(e,t)=>{if(!vo.has(e)){const n=ko(Qz,t),r={},o=BR.bind(Pn,e);let i=Jo;const a={},s=(u,d)=>{const f=a[u]||[];return a[u]=f,f.push(d),()=>f.splice(f.indexOf(d),1)},l=(u,d,f)=>{e.set(u,d);const p=a[u];if(p)for(const h of p)h(d,f)},c=()=>{if(!vo.has(e)&&(vo.set(e,[r,{},{},{},o,l,s]),!hc)){const u=n.initFocus(setTimeout.bind(Pn,Gx.bind(Pn,r,DR))),d=n.initReconnect(setTimeout.bind(Pn,Gx.bind(Pn,r,jR)));i=()=>{u&&u(),d&&d(),vo.delete(e)}}};return c(),[e,o,c,i]}return[e,vo.get(e)[4]]},eH=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!et(i)&&a>i||setTimeout(r,s,o)},tH=(e,t)=>gc(e)==gc(t),[K1,nH]=zR(new Map),HR=ko({onLoadingSlow:Jo,onSuccess:Jo,onError:Jo,onErrorRetry:eH,onDiscarded:Jo,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ux?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Ux?5e3:3e3,compare:tH,isPaused:()=>!1,cache:K1,mutate:nH,fallback:{}},Zz),VR=(e,t)=>{const n=ko(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=ko(o,a))}return n},zm=b.createContext({}),rH=e=>{const{value:t}=e,n=b.useContext(zm),r=Or(t),o=b.useMemo(()=>r?t(n):t,[r,n,t]),i=b.useMemo(()=>r?o:VR(n,o),[r,n,o]),a=o&&o.provider,s=b.useRef(Pn);a&&!s.current&&(s.current=zR(a(i.cache||K1),o));const l=s.current;return l&&(i.cache=l[0],i.mutate=l[1]),Xu(()=>{if(l)return l[2]&&l[2](),l[3]},[]),b.createElement(zm.Provider,ko(e,{value:i}))},oH="$inf$",WR=wp&&window.__SWR_DEVTOOLS_USE__,iH=WR?window.__SWR_DEVTOOLS_USE__:[],aH=()=>{WR&&(window.__SWR_DEVTOOLS_REACT__=rt)},sH=e=>Or(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],lH=()=>ko(HR,b.useContext(zm)),cH=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=q1(t),[,,,s]=vo.get(K1);if(a.startsWith(oH))return n(...i);const l=s[a];return et(l)?n(...i):(delete s[a],l)}),r),uH=iH.concat(cH),dH=e=>function(...n){const r=lH(),[o,i,a]=sH(n),s=VR(r,a);let l=e;const{use:c}=s,u=(c||[]).concat(uH);for(let d=u.length;d--;)l=u[d](l);return l(o,i||s.fetcher||null,s)},fH=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};aH();const qx=rt.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Fg={dedupe:!0},pH=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f}=n,[p,h,y,w]=vo.get(r),[v,S]=q1(e),m=b.useRef(!1),C=b.useRef(!1),_=b.useRef(v),R=b.useRef(t),k=b.useRef(n),T=()=>k.current,P=()=>T().isVisible()&&T().isOnline(),[x,$,I,O]=NR(r,v),D=b.useRef({}).current,M=et(a)?n.fallback[v]:a,A=(q,ce)=>{for(const ue in D){const ie=ue;if(ie==="data"){if(!o(q[ie],ce[ie])&&(!et(q[ie])||!o(W,ce[ie])))return!1}else if(ce[ie]!==q[ie])return!1}return!0},N=b.useMemo(()=>{const q=!v||!t?!1:et(s)?T().isPaused()||i?!1:et(l)?!0:l:s,ce=be=>{const Te=ko(be);return delete Te._k,q?{isValidating:!0,isLoading:!0,...Te}:Te},ue=x(),ie=O(),te=ce(ue),de=ue===ie?te:ce(ie);let Q=te;return[()=>{const be=ce(x());return A(be,Q)?(Q.data=be.data,Q.isLoading=be.isLoading,Q.isValidating=be.isValidating,Q.error=be.error,Q):(Q=be,be)},()=>de]},[r,v]),E=zz.useSyncExternalStore(b.useCallback(q=>I(v,(ce,ue)=>{A(ue,ce)||q()}),[r,v]),N[0],N[1]),L=!m.current,B=p[v]&&p[v].length>0,H=E.data,z=et(H)?M:H,j=E.error,F=b.useRef(z),W=f?et(H)?F.current:H:z,V=B&&!et(j)?!1:L&&!et(s)?s:T().isPaused()?!1:i?et(z)?!1:l:et(z)||l,ee=!!(v&&t&&L&&V),re=et(E.isValidating)?ee:E.isValidating,U=et(E.isLoading)?ee:E.isLoading,K=b.useCallback(async q=>{const ce=R.current;if(!v||!ce||C.current||T().isPaused())return!1;let ue,ie,te=!0;const de=q||{},Q=!y[v]||!de.dedupe,be=()=>Wx?!C.current&&v===_.current&&m.current:v===_.current,Te={isValidating:!1,isLoading:!1},we=()=>{$(Te)},ge=()=>{const Se=y[v];Se&&Se[1]===ie&&delete y[v]},le={isValidating:!0};et(x().data)&&(le.isLoading=!0);try{if(Q&&($(le),n.loadingTimeout&&et(x().data)&&setTimeout(()=>{te&&be()&&T().onLoadingSlow(v,n)},n.loadingTimeout),y[v]=[ce(S),Bm()]),[ue,ie]=y[v],ue=await ue,Q&&setTimeout(ge,n.dedupingInterval),!y[v]||y[v][1]!==ie)return Q&&be()&&T().onDiscarded(v),!1;Te.error=Pn;const Se=h[v];if(!et(Se)&&(ie<=Se[0]||ie<=Se[1]||Se[1]===0))return we(),Q&&be()&&T().onDiscarded(v),!1;const ye=x().data;Te.data=o(ye,ue)?ye:ue,Q&&be()&&T().onSuccess(ue,v,n)}catch(Se){ge();const ye=T(),{shouldRetryOnError:Ge}=ye;ye.isPaused()||(Te.error=Se,Q&&be()&&(ye.onError(Se,v,ye),(Ge===!0||Or(Ge)&&Ge(Se))&&(!T().revalidateOnFocus||!T().revalidateOnReconnect||P())&&ye.onErrorRetry(Se,v,ye,Pe=>{const Re=p[v];Re&&Re[0]&&Re[0](ol.ERROR_REVALIDATE_EVENT,Pe)},{retryCount:(de.retryCount||0)+1,dedupe:!0})))}return te=!1,we(),!0},[v,r]),se=b.useCallback((...q)=>BR(r,_.current,...q),[]);if(Xu(()=>{R.current=t,k.current=n,et(H)||(F.current=H)}),Xu(()=>{if(!v)return;const q=K.bind(Pn,Fg);let ce=0;const ie=fH(v,p,(te,de={})=>{if(te==ol.FOCUS_EVENT){const Q=Date.now();T().revalidateOnFocus&&Q>ce&&P()&&(ce=Q+T().focusThrottleInterval,q())}else if(te==ol.RECONNECT_EVENT)T().revalidateOnReconnect&&P()&&q();else{if(te==ol.MUTATE_EVENT)return K();if(te==ol.ERROR_REVALIDATE_EVENT)return K(de)}});return C.current=!1,_.current=v,m.current=!0,$({_k:S}),V&&(et(z)||hc?q():Yz(q)),()=>{C.current=!0,ie()}},[v]),Xu(()=>{let q;function ce(){const ie=Or(c)?c(x().data):c;ie&&q!==-1&&(q=setTimeout(ue,ie))}function ue(){!x().error&&(u||T().isVisible())&&(d||T().isOnline())?K(Fg).then(ce):ce()}return ce(),()=>{q&&(clearTimeout(q),q=-1)}},[c,u,d,v]),b.useDebugValue(W),i&&et(z)&&v){if(!Wx&&hc)throw new Error("Fallback data is required when using suspense in SSR.");R.current=t,k.current=n,C.current=!1;const q=w[v];if(!et(q)){const ce=se(q);qx(ce)}if(et(j)){const ce=K(Fg);et(W)||(ce.status="fulfilled",ce.value=!0),qx(ce)}else throw j}return{mutate:se,get data(){return D.data=!0,W},get error(){return D.error=!0,j},get isValidating(){return D.isValidating=!0,re},get isLoading(){return D.isLoading=!0,U}}},gH=Yu.defineProperty(rH,"defaultValue",{value:HR}),nt=dH(pH);function UR(e,t){return function(){return e.apply(t,arguments)}}const{toString:hH}=Object.prototype,{getPrototypeOf:Z1}=Object,Cp=(e=>t=>{const n=hH.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Wr=e=>(e=e.toLowerCase(),t=>Cp(t)===e),_p=e=>t=>typeof t===e,{isArray:Os}=Array,mc=_p("undefined");function mH(e){return e!==null&&!mc(e)&&e.constructor!==null&&!mc(e.constructor)&&Xn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const GR=Wr("ArrayBuffer");function vH(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&GR(e.buffer),t}const yH=_p("string"),Xn=_p("function"),qR=_p("number"),Rp=e=>e!==null&&typeof e=="object",bH=e=>e===!0||e===!1,Ju=e=>{if(Cp(e)!=="object")return!1;const t=Z1(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},xH=Wr("Date"),SH=Wr("File"),wH=Wr("Blob"),CH=Wr("FileList"),_H=e=>Rp(e)&&Xn(e.pipe),RH=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xn(e.append)&&((t=Cp(e))==="formdata"||t==="object"&&Xn(e.toString)&&e.toString()==="[object FormData]"))},TH=Wr("URLSearchParams"),[PH,kH,$H,EH]=["ReadableStream","Request","Response","Headers"].map(Wr),MH=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Os(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ji=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ZR=e=>!mc(e)&&e!==ji;function Hm(){const{caseless:e}=ZR(this)&&this||{},t={},n=(r,o)=>{const i=e&&KR(t,o)||o;Ju(t[i])&&Ju(r)?t[i]=Hm(t[i],r):Ju(r)?t[i]=Hm({},r):Os(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Oc(t,(o,i)=>{n&&Xn(o)?e[i]=UR(o,n):e[i]=o},{allOwnKeys:r}),e),OH=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),LH=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},AH=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Z1(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},NH=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},DH=e=>{if(!e)return null;if(Os(e))return e;let t=e.length;if(!qR(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jH=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Z1(Uint8Array)),FH=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},BH=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},zH=Wr("HTMLFormElement"),HH=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Kx=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),VH=Wr("RegExp"),QR=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Oc(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},WH=e=>{QR(e,(t,n)=>{if(Xn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},UH=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Os(e)?r(e):r(String(e).split(t)),n},GH=()=>{},qH=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Bg="abcdefghijklmnopqrstuvwxyz",Zx="0123456789",YR={DIGIT:Zx,ALPHA:Bg,ALPHA_DIGIT:Bg+Bg.toUpperCase()+Zx},KH=(e=16,t=YR.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function ZH(e){return!!(e&&Xn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const QH=e=>{const t=new Array(10),n=(r,o)=>{if(Rp(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Os(r)?[]:{};return Oc(r,(a,s)=>{const l=n(a,o+1);!mc(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},YH=Wr("AsyncFunction"),XH=e=>e&&(Rp(e)||Xn(e))&&Xn(e.then)&&Xn(e.catch),XR=((e,t)=>e?setImmediate:t?((n,r)=>(ji.addEventListener("message",({source:o,data:i})=>{o===ji&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),ji.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xn(ji.postMessage)),JH=typeof queueMicrotask<"u"?queueMicrotask.bind(ji):typeof process<"u"&&process.nextTick||XR,G={isArray:Os,isArrayBuffer:GR,isBuffer:mH,isFormData:RH,isArrayBufferView:vH,isString:yH,isNumber:qR,isBoolean:bH,isObject:Rp,isPlainObject:Ju,isReadableStream:PH,isRequest:kH,isResponse:$H,isHeaders:EH,isUndefined:mc,isDate:xH,isFile:SH,isBlob:wH,isRegExp:VH,isFunction:Xn,isStream:_H,isURLSearchParams:TH,isTypedArray:jH,isFileList:CH,forEach:Oc,merge:Hm,extend:IH,trim:MH,stripBOM:OH,inherits:LH,toFlatObject:AH,kindOf:Cp,kindOfTest:Wr,endsWith:NH,toArray:DH,forEachEntry:FH,matchAll:BH,isHTMLForm:zH,hasOwnProperty:Kx,hasOwnProp:Kx,reduceDescriptors:QR,freezeMethods:WH,toObjectSet:UH,toCamelCase:HH,noop:GH,toFiniteNumber:qH,findKey:KR,global:ji,isContextDefined:ZR,ALPHABET:YR,generateString:KH,isSpecCompliantForm:ZH,toJSONObject:QH,isAsyncFn:YH,isThenable:XH,setImmediate:XR,asap:JH};function ze(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}G.inherits(ze,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});const JR=ze.prototype,e3={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{e3[e]={value:e}});Object.defineProperties(ze,e3);Object.defineProperty(JR,"isAxiosError",{value:!0});ze.from=(e,t,n,r,o,i)=>{const a=Object.create(JR);return G.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),ze.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const eV=null;function Vm(e){return G.isPlainObject(e)||G.isArray(e)}function t3(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function Qx(e,t,n){return e?e.concat(t).map(function(o,i){return o=t3(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function tV(e){return G.isArray(e)&&!e.some(Vm)}const nV=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)});function Tp(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!G.isUndefined(w[y])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(G.isDate(h))return h.toISOString();if(!l&&G.isBlob(h))throw new ze("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(h)||G.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,y,w){let v=h;if(h&&!w&&typeof h=="object"){if(G.endsWith(y,"{}"))y=r?y:y.slice(0,-2),h=JSON.stringify(h);else if(G.isArray(h)&&tV(h)||(G.isFileList(h)||G.endsWith(y,"[]"))&&(v=G.toArray(h)))return y=t3(y),v.forEach(function(m,C){!(G.isUndefined(m)||m===null)&&t.append(a===!0?Qx([y],C,i):a===null?y:y+"[]",c(m))}),!1}return Vm(h)?!0:(t.append(Qx(w,y,i),c(h)),!1)}const d=[],f=Object.assign(nV,{defaultVisitor:u,convertValue:c,isVisitable:Vm});function p(h,y){if(!G.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(h),G.forEach(h,function(v,S){(!(G.isUndefined(v)||v===null)&&o.call(t,v,G.isString(S)?S.trim():S,y,f))===!0&&p(v,y?y.concat(S):[S])}),d.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Yx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Q1(e,t){this._pairs=[],e&&Tp(e,this,t)}const n3=Q1.prototype;n3.append=function(t,n){this._pairs.push([t,n])};n3.toString=function(t){const n=t?function(r){return t.call(this,r,Yx)}:Yx;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function rV(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function r3(e,t,n){if(!t)return e;const r=n&&n.encode||rV,o=n&&n.serialize;let i;if(o?i=o(t,n):i=G.isURLSearchParams(t)?t.toString():new Q1(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Xx{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){G.forEach(this.handlers,function(r){r!==null&&t(r)})}}const o3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oV=typeof URLSearchParams<"u"?URLSearchParams:Q1,iV=typeof FormData<"u"?FormData:null,aV=typeof Blob<"u"?Blob:null,sV={isBrowser:!0,classes:{URLSearchParams:oV,FormData:iV,Blob:aV},protocols:["http","https","file","blob","url","data"]},Y1=typeof window<"u"&&typeof document<"u",Wm=typeof navigator=="object"&&navigator||void 0,lV=Y1&&(!Wm||["ReactNative","NativeScript","NS"].indexOf(Wm.product)<0),cV=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",uV=Y1&&window.location.href||"http://localhost",dV=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Y1,hasStandardBrowserEnv:lV,hasStandardBrowserWebWorkerEnv:cV,navigator:Wm,origin:uV},Symbol.toStringTag,{value:"Module"})),Bn={...dV,...sV};function fV(e,t){return Tp(e,new Bn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Bn.isNode&&G.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function pV(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gV(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&G.isArray(o)?o.length:a,l?(G.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!G.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&G.isArray(o[a])&&(o[a]=gV(o[a])),!s)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(r,o)=>{t(pV(r),o,n,0)}),n}return null}function hV(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Lc={transitional:o3,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=G.isObject(t);if(i&&G.isHTMLForm(t)&&(t=new FormData(t)),G.isFormData(t))return o?JSON.stringify(i3(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t)||G.isReadableStream(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return fV(t,this.formSerializer).toString();if((s=G.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Tp(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),hV(t)):t}],transformResponse:[function(t){const n=this.transitional||Lc.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(G.isResponse(t)||G.isReadableStream(t))return t;if(t&&G.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?ze.from(s,ze.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bn.classes.FormData,Blob:Bn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{Lc.headers[e]={}});const mV=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vV=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&mV[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Jx=Symbol("internals");function il(e){return e&&String(e).trim().toLowerCase()}function ed(e){return e===!1||e==null?e:G.isArray(e)?e.map(ed):String(e)}function yV(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const bV=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zg(e,t,n,r,o){if(G.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!G.isString(t)){if(G.isString(r))return t.indexOf(r)!==-1;if(G.isRegExp(r))return r.test(t)}}function xV(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function SV(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class zn{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=il(l);if(!u)throw new Error("header name must be a non-empty string");const d=G.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=ed(s))}const a=(s,l)=>G.forEach(s,(c,u)=>i(c,u,l));if(G.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(G.isString(t)&&(t=t.trim())&&!bV(t))a(vV(t),n);else if(G.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=il(t),t){const r=G.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return yV(o);if(G.isFunction(n))return n.call(this,o,r);if(G.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=il(t),t){const r=G.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||zg(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=il(a),a){const s=G.findKey(r,a);s&&(!n||zg(r,r[s],s,n))&&(delete r[s],o=!0)}}return G.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||zg(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return G.forEach(this,(o,i)=>{const a=G.findKey(r,i);if(a){n[a]=ed(o),delete n[i];return}const s=t?xV(i):String(i).trim();s!==i&&delete n[i],n[s]=ed(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return G.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&G.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Jx]=this[Jx]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=il(a);r[s]||(SV(o,a),r[s]=!0)}return G.isArray(t)?t.forEach(i):i(t),this}}zn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.reduceDescriptors(zn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});G.freezeMethods(zn);function Hg(e,t){const n=this||Lc,r=t||n,o=zn.from(r.headers);let i=r.data;return G.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function a3(e){return!!(e&&e.__CANCEL__)}function Ls(e,t,n){ze.call(this,e??"canceled",ze.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(Ls,ze,{__CANCEL__:!0});function s3(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ze("Request failed with status code "+n.status,[ze.ERR_BAD_REQUEST,ze.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function wV(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function CV(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},r-d)))},()=>o&&a(o)]}const Xd=(e,t,n=3)=>{let r=0;const o=CV(50,250);return _V(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},eS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},tS=e=>(...t)=>G.asap(()=>e(...t)),RV=Bn.hasStandardBrowserEnv?function(){const t=Bn.navigator&&/(msie|trident)/i.test(Bn.navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const s=G.isString(a)?o(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),TV=Bn.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),G.isString(r)&&a.push("path="+r),G.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function PV(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function kV(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function l3(e,t){return e&&!PV(t)?kV(e,t):t}const nS=e=>e instanceof zn?{...e}:e;function sa(e,t){t=t||{};const n={};function r(c,u,d){return G.isPlainObject(c)&&G.isPlainObject(u)?G.merge.call({caseless:d},c,u):G.isPlainObject(u)?G.merge({},u):G.isArray(u)?u.slice():u}function o(c,u,d){if(G.isUndefined(u)){if(!G.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function i(c,u){if(!G.isUndefined(u))return r(void 0,u)}function a(c,u){if(G.isUndefined(u)){if(!G.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>o(nS(c),nS(u),!0)};return G.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,f=d(e[u],t[u],u);G.isUndefined(f)&&d!==s||(n[u]=f)}),n}const c3=e=>{const t=sa({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=zn.from(a),t.url=r3(l3(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(G.isFormData(n)){if(Bn.hasStandardBrowserEnv||Bn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Bn.hasStandardBrowserEnv&&(r&&G.isFunction(r)&&(r=r(t)),r||r!==!1&&RV(t.url))){const c=o&&i&&TV.read(i);c&&a.set(o,c)}return t},$V=typeof XMLHttpRequest<"u",EV=$V&&function(e){return new Promise(function(n,r){const o=c3(e);let i=o.data;const a=zn.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=o,u,d,f,p,h;function y(){p&&p(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function v(){if(!w)return;const m=zn.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:m,config:e,request:w};s3(function(k){n(k),y()},function(k){r(k),y()},_),w=null}"onloadend"in w?w.onloadend=v:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(v)},w.onabort=function(){w&&(r(new ze("Request aborted",ze.ECONNABORTED,e,w)),w=null)},w.onerror=function(){r(new ze("Network Error",ze.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||o3;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new ze(C,_.clarifyTimeoutError?ze.ETIMEDOUT:ze.ECONNABORTED,e,w)),w=null},i===void 0&&a.setContentType(null),"setRequestHeader"in w&&G.forEach(a.toJSON(),function(C,_){w.setRequestHeader(_,C)}),G.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),s&&s!=="json"&&(w.responseType=o.responseType),c&&([f,h]=Xd(c,!0),w.addEventListener("progress",f)),l&&w.upload&&([d,p]=Xd(l),w.upload.addEventListener("progress",d),w.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(u=m=>{w&&(r(!m||m.type?new Ls(null,e,w):m),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const S=wV(o.url);if(S&&Bn.protocols.indexOf(S)===-1){r(new ze("Unsupported protocol "+S+":",ze.ERR_BAD_REQUEST,e));return}w.send(i||null)})},MV=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof ze?u:new Ls(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new ze(`timeout ${t} of ms exceeded`,ze.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>G.asap(s),l}},IV=function*(e,t){let n=e.byteLength;if(n{const o=OV(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let f=i+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},Pp=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",u3=Pp&&typeof ReadableStream=="function",AV=Pp&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),d3=(e,...t)=>{try{return!!e(...t)}catch{return!1}},NV=u3&&d3(()=>{let e=!1;const t=new Request(Bn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),oS=64*1024,Um=u3&&d3(()=>G.isReadableStream(new Response("").body)),Jd={stream:Um&&(e=>e.body)};Pp&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Jd[t]&&(Jd[t]=G.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ze(`Response type '${t}' is not supported`,ze.ERR_NOT_SUPPORT,r)})})})(new Response);const DV=async e=>{if(e==null)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e))return(await new Request(Bn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(G.isArrayBufferView(e)||G.isArrayBuffer(e))return e.byteLength;if(G.isURLSearchParams(e)&&(e=e+""),G.isString(e))return(await AV(e)).byteLength},jV=async(e,t)=>{const n=G.toFiniteNumber(e.getContentLength());return n??DV(t)},FV=Pp&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=c3(e);c=c?(c+"").toLowerCase():"text";let p=MV([o,i&&i.toAbortSignal()],a),h;const y=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let w;try{if(l&&NV&&n!=="get"&&n!=="head"&&(w=await jV(u,r))!==0){let _=new Request(t,{method:"POST",body:r,duplex:"half"}),R;if(G.isFormData(r)&&(R=_.headers.get("content-type"))&&u.setContentType(R),_.body){const[k,T]=eS(w,Xd(tS(l)));r=rS(_.body,oS,k,T)}}G.isString(d)||(d=d?"include":"omit");const v="credentials"in Request.prototype;h=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:v?d:void 0});let S=await fetch(h);const m=Um&&(c==="stream"||c==="response");if(Um&&(s||m&&y)){const _={};["status","statusText","headers"].forEach(P=>{_[P]=S[P]});const R=G.toFiniteNumber(S.headers.get("content-length")),[k,T]=s&&eS(R,Xd(tS(s),!0))||[];S=new Response(rS(S.body,oS,k,()=>{T&&T(),y&&y()}),_)}c=c||"text";let C=await Jd[G.findKey(Jd,c)||"text"](S,e);return!m&&y&&y(),await new Promise((_,R)=>{s3(_,R,{data:C,headers:zn.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:h})})}catch(v){throw y&&y(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new ze("Network Error",ze.ERR_NETWORK,e,h),{cause:v.cause||v}):ze.from(v,v&&v.code,e,h)}}),Gm={http:eV,xhr:EV,fetch:FV};G.forEach(Gm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const iS=e=>`- ${e}`,BV=e=>G.isFunction(e)||e===null||e===!1,f3={getAdapter:e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : +`+i.map(iS).join(` +`):" "+iS(i[0]):"as no adapter specified";throw new ze("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Gm};function Vg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ls(null,e)}function aS(e){return Vg(e),e.headers=zn.from(e.headers),e.data=Hg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),f3.getAdapter(e.adapter||Lc.adapter)(e).then(function(r){return Vg(e),r.data=Hg.call(e,e.transformResponse,r),r.headers=zn.from(r.headers),r},function(r){return a3(r)||(Vg(e),r&&r.response&&(r.response.data=Hg.call(e,e.transformResponse,r.response),r.response.headers=zn.from(r.response.headers))),Promise.reject(r)})}const p3="1.7.7",X1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{X1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const sS={};X1.transitional=function(t,n,r){function o(i,a){return"[Axios v"+p3+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new ze(o(a," has been removed"+(n?" in "+n:"")),ze.ERR_DEPRECATED);return n&&!sS[a]&&(sS[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function zV(e,t,n){if(typeof e!="object")throw new ze("options must be an object",ze.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new ze("option "+i+" must be "+l,ze.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ze("Unknown option "+i,ze.ERR_BAD_OPTION)}}const qm={assertOptions:zV,validators:X1},No=qm.validators;class Wi{constructor(t){this.defaults=t,this.interceptors={request:new Xx,response:new Xx}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=sa(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&qm.assertOptions(r,{silentJSONParsing:No.transitional(No.boolean),forcedJSONParsing:No.transitional(No.boolean),clarifyTimeoutError:No.transitional(No.boolean)},!1),o!=null&&(G.isFunction(o)?n.paramsSerializer={serialize:o}:qm.assertOptions(o,{encode:No.function,serialize:No.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&G.merge(i.common,i[n.method]);i&&G.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=zn.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let u,d=0,f;if(!l){const h=[aS.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,c),f=h.length,u=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Ls(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new J1(function(o){t=o}),cancel:t}}}function HV(e){return function(n){return e.apply(null,n)}}function VV(e){return G.isObject(e)&&e.isAxiosError===!0}const Km={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Km).forEach(([e,t])=>{Km[t]=e});function g3(e){const t=new Wi(e),n=UR(Wi.prototype.request,t);return G.extend(n,Wi.prototype,t,{allOwnKeys:!0}),G.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return g3(sa(e,o))},n}const Bt=g3(Lc);Bt.Axios=Wi;Bt.CanceledError=Ls;Bt.CancelToken=J1;Bt.isCancel=a3;Bt.VERSION=p3;Bt.toFormData=Tp;Bt.AxiosError=ze;Bt.Cancel=Bt.CanceledError;Bt.all=function(t){return Promise.all(t)};Bt.spread=HV;Bt.isAxiosError=VV;Bt.mergeConfig=sa;Bt.AxiosHeaders=zn;Bt.formToJSON=e=>i3(G.isHTMLForm(e)?new FormData(e):e);Bt.getAdapter=f3.getAdapter;Bt.HttpStatusCode=Km;Bt.default=Bt;var WV=Error,UV=EvalError,GV=RangeError,qV=ReferenceError,h3=SyntaxError,Ac=TypeError,KV=URIError,ZV=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},lS=typeof Symbol<"u"&&Symbol,QV=ZV,YV=function(){return typeof lS!="function"||typeof Symbol!="function"||typeof lS("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:QV()},Wg={__proto__:null,foo:{}},XV=Object,JV=function(){return{__proto__:Wg}.foo===Wg.foo&&!(Wg instanceof XV)},eW="Function.prototype.bind called on incompatible ",tW=Object.prototype.toString,nW=Math.max,rW="[object Function]",cS=function(t,n){for(var r=[],o=0;o"u"||!Yt?Qe:Yt(Uint8Array),Gi={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Qe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Qe:ArrayBuffer,"%ArrayIteratorPrototype%":wa&&Yt?Yt([][Symbol.iterator]()):Qe,"%AsyncFromSyncIteratorPrototype%":Qe,"%AsyncFunction%":Ra,"%AsyncGenerator%":Ra,"%AsyncGeneratorFunction%":Ra,"%AsyncIteratorPrototype%":Ra,"%Atomics%":typeof Atomics>"u"?Qe:Atomics,"%BigInt%":typeof BigInt>"u"?Qe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Qe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Qe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Qe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":fW,"%eval%":eval,"%EvalError%":pW,"%Float32Array%":typeof Float32Array>"u"?Qe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Qe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Qe:FinalizationRegistry,"%Function%":m3,"%GeneratorFunction%":Ra,"%Int8Array%":typeof Int8Array>"u"?Qe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Qe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Qe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":wa&&Yt?Yt(Yt([][Symbol.iterator]())):Qe,"%JSON%":typeof JSON=="object"?JSON:Qe,"%Map%":typeof Map>"u"?Qe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!wa||!Yt?Qe:Yt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Qe:Promise,"%Proxy%":typeof Proxy>"u"?Qe:Proxy,"%RangeError%":gW,"%ReferenceError%":hW,"%Reflect%":typeof Reflect>"u"?Qe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Qe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!wa||!Yt?Qe:Yt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Qe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":wa&&Yt?Yt(""[Symbol.iterator]()):Qe,"%Symbol%":wa?Symbol:Qe,"%SyntaxError%":Ss,"%ThrowTypeError%":vW,"%TypedArray%":bW,"%TypeError%":es,"%Uint8Array%":typeof Uint8Array>"u"?Qe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Qe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Qe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Qe:Uint32Array,"%URIError%":mW,"%WeakMap%":typeof WeakMap>"u"?Qe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Qe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Qe:WeakSet};if(Yt)try{null.error}catch(e){var xW=Yt(Yt(e));Gi["%Error.prototype%"]=xW}var SW=function e(t){var n;if(t==="%AsyncFunction%")n=Ug("async function () {}");else if(t==="%GeneratorFunction%")n=Ug("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Ug("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Yt&&(n=Yt(o.prototype))}return Gi[t]=n,n},uS={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Nc=ev,ef=dW,wW=Nc.call(Function.call,Array.prototype.concat),CW=Nc.call(Function.apply,Array.prototype.splice),dS=Nc.call(Function.call,String.prototype.replace),tf=Nc.call(Function.call,String.prototype.slice),_W=Nc.call(Function.call,RegExp.prototype.exec),RW=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,TW=/\\(\\)?/g,PW=function(t){var n=tf(t,0,1),r=tf(t,-1);if(n==="%"&&r!=="%")throw new Ss("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Ss("invalid intrinsic syntax, expected opening `%`");var o=[];return dS(t,RW,function(i,a,s,l){o[o.length]=s?dS(l,TW,"$1"):a||i}),o},kW=function(t,n){var r=t,o;if(ef(uS,r)&&(o=uS[r],r="%"+o[0]+"%"),ef(Gi,r)){var i=Gi[r];if(i===Ra&&(i=SW(r)),typeof i>"u"&&!n)throw new es("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new Ss("intrinsic "+t+" does not exist!")},As=function(t,n){if(typeof t!="string"||t.length===0)throw new es("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new es('"allowMissing" argument must be a boolean');if(_W(/^%?[^%]*%?$/,t)===null)throw new Ss("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=PW(t),o=r.length>0?r[0]:"",i=kW("%"+o+"%",n),a=i.name,s=i.value,l=!1,c=i.alias;c&&(o=c[0],CW(r,wW([0,1],c)));for(var u=1,d=!0;u=r.length){var y=Ui(s,f);d=!!y,d&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[f]}else d=ef(s,f),s=s[f];d&&!l&&(Gi[a]=s)}}return s},v3={exports:{}},qg,fS;function tv(){if(fS)return qg;fS=1;var e=As,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return qg=t,qg}var $W=As,td=$W("%Object.getOwnPropertyDescriptor%",!0);if(td)try{td([],"length")}catch{td=null}var y3=td,pS=tv(),EW=h3,Ca=Ac,gS=y3,MW=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Ca("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Ca("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ca("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ca("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ca("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ca("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!gS&&gS(t,n);if(pS)pS(t,n,{configurable:a===null&&l?l.configurable:!a,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(s||!o&&!i&&!a)t[n]=r;else throw new EW("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Zm=tv(),b3=function(){return!!Zm};b3.hasArrayLengthDefineBug=function(){if(!Zm)return null;try{return Zm([],"length",{value:1}).length!==1}catch{return!0}};var IW=b3,OW=As,hS=MW,LW=IW(),mS=y3,vS=Ac,AW=OW("%Math.floor%"),NW=function(t,n){if(typeof t!="function")throw new vS("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||AW(n)!==n)throw new vS("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&mS){var a=mS(t,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!r)&&(LW?hS(t,"length",n,!0,!0):hS(t,"length",n)),t};(function(e){var t=ev,n=As,r=NW,o=Ac,i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||t.call(a,i),l=tv(),c=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new o("a function is required");var p=s(t,a,arguments);return r(p,1+c(0,f.length-(arguments.length-1)),!0)};var u=function(){return s(t,i,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u})(v3);var DW=v3.exports,x3=As,S3=DW,jW=S3(x3("String.prototype.indexOf")),FW=function(t,n){var r=x3(t,!!n);return typeof r=="function"&&jW(t,".prototype.")>-1?S3(r):r};const BW={},zW=Object.freeze(Object.defineProperty({__proto__:null,default:BW},Symbol.toStringTag,{value:"Module"})),HW=W3(zW);var nv=typeof Map=="function"&&Map.prototype,Kg=Object.getOwnPropertyDescriptor&&nv?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,nf=nv&&Kg&&typeof Kg.get=="function"?Kg.get:null,yS=nv&&Map.prototype.forEach,rv=typeof Set=="function"&&Set.prototype,Zg=Object.getOwnPropertyDescriptor&&rv?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,rf=rv&&Zg&&typeof Zg.get=="function"?Zg.get:null,bS=rv&&Set.prototype.forEach,VW=typeof WeakMap=="function"&&WeakMap.prototype,Al=VW?WeakMap.prototype.has:null,WW=typeof WeakSet=="function"&&WeakSet.prototype,Nl=WW?WeakSet.prototype.has:null,UW=typeof WeakRef=="function"&&WeakRef.prototype,xS=UW?WeakRef.prototype.deref:null,GW=Boolean.prototype.valueOf,qW=Object.prototype.toString,KW=Function.prototype.toString,ZW=String.prototype.match,ov=String.prototype.slice,ei=String.prototype.replace,QW=String.prototype.toUpperCase,SS=String.prototype.toLowerCase,w3=RegExp.prototype.test,wS=Array.prototype.concat,Jr=Array.prototype.join,YW=Array.prototype.slice,CS=Math.floor,Qm=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Qg=Object.getOwnPropertySymbols,Ym=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ws=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Sn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ws||!0)?Symbol.toStringTag:null,C3=Object.prototype.propertyIsEnumerable,_S=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function RS(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||w3.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-CS(-e):CS(e);if(r!==e){var o=String(r),i=ov.call(t,o.length+1);return ei.call(o,n,"$&_")+"."+ei.call(ei.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ei.call(t,n,"$&_")}var Xm=HW,TS=Xm.custom,PS=T3(TS)?TS:null,_3={__proto__:null,double:'"',single:"'"},XW={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},JW=function e(t,n,r,o){var i=n||{};if(ho(i,"quoteStyle")&&!ho(_3,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ho(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=ho(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ho(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ho(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return k3(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?RS(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return s?RS(t,c):c}var u=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=u&&u>0&&typeof t=="object")return Jm(t)?"[Array]":"[Object]";var d=vU(i,r);if(typeof o>"u")o=[];else if(P3(o,t)>=0)return"[Circular]";function f(O,D,M){if(D&&(o=YW.call(o),o.push(D)),M){var A={depth:i.depth};return ho(i,"quoteStyle")&&(A.quoteStyle=i.quoteStyle),e(O,A,r+1,o)}return e(O,i,r+1,o)}if(typeof t=="function"&&!kS(t)){var p=lU(t),h=Cu(t,f);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(h.length>0?" { "+Jr.call(h,", ")+" }":"")}if(T3(t)){var y=ws?ei.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ym.call(t);return typeof t=="object"&&!ws?al(y):y}if(gU(t)){for(var w="<"+SS.call(String(t.nodeName)),v=t.attributes||[],S=0;S",w}if(Jm(t)){if(t.length===0)return"[]";var m=Cu(t,f);return d&&!mU(m)?"["+e0(m,d)+"]":"[ "+Jr.call(m,", ")+" ]"}if(nU(t)){var C=Cu(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!C3.call(t,"cause")?"{ ["+String(t)+"] "+Jr.call(wS.call("[cause]: "+f(t.cause),C),", ")+" }":C.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Jr.call(C,", ")+" }"}if(typeof t=="object"&&a){if(PS&&typeof t[PS]=="function"&&Xm)return Xm(t,{depth:u-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(cU(t)){var _=[];return yS&&yS.call(t,function(O,D){_.push(f(D,t,!0)+" => "+f(O,t))}),$S("Map",nf.call(t),_,d)}if(fU(t)){var R=[];return bS&&bS.call(t,function(O){R.push(f(O,t))}),$S("Set",rf.call(t),R,d)}if(uU(t))return Yg("WeakMap");if(pU(t))return Yg("WeakSet");if(dU(t))return Yg("WeakRef");if(oU(t))return al(f(Number(t)));if(aU(t))return al(f(Qm.call(t)));if(iU(t))return al(GW.call(t));if(rU(t))return al(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof jl<"u"&&t===jl)return"{ [object globalThis] }";if(!tU(t)&&!kS(t)){var k=Cu(t,f),T=_S?_S(t)===Object.prototype:t instanceof Object||t.constructor===Object,P=t instanceof Object?"":"null prototype",x=!T&&Sn&&Object(t)===t&&Sn in t?ov.call(Ci(t),8,-1):P?"Object":"",$=T||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",I=$+(x||P?"["+Jr.call(wS.call([],x||[],P||[]),": ")+"] ":"");return k.length===0?I+"{}":d?I+"{"+e0(k,d)+"}":I+"{ "+Jr.call(k,", ")+" }"}return String(t)};function R3(e,t,n){var r=n.quoteStyle||t,o=_3[r];return o+e+o}function eU(e){return ei.call(String(e),/"/g,""")}function Jm(e){return Ci(e)==="[object Array]"&&(!Sn||!(typeof e=="object"&&Sn in e))}function tU(e){return Ci(e)==="[object Date]"&&(!Sn||!(typeof e=="object"&&Sn in e))}function kS(e){return Ci(e)==="[object RegExp]"&&(!Sn||!(typeof e=="object"&&Sn in e))}function nU(e){return Ci(e)==="[object Error]"&&(!Sn||!(typeof e=="object"&&Sn in e))}function rU(e){return Ci(e)==="[object String]"&&(!Sn||!(typeof e=="object"&&Sn in e))}function oU(e){return Ci(e)==="[object Number]"&&(!Sn||!(typeof e=="object"&&Sn in e))}function iU(e){return Ci(e)==="[object Boolean]"&&(!Sn||!(typeof e=="object"&&Sn in e))}function T3(e){if(ws)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Ym)return!1;try{return Ym.call(e),!0}catch{}return!1}function aU(e){if(!e||typeof e!="object"||!Qm)return!1;try{return Qm.call(e),!0}catch{}return!1}var sU=Object.prototype.hasOwnProperty||function(e){return e in this};function ho(e,t){return sU.call(e,t)}function Ci(e){return qW.call(e)}function lU(e){if(e.name)return e.name;var t=ZW.call(KW.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function P3(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return k3(ov.call(e,0,t.maxStringLength),t)+r}var o=XW[t.quoteStyle||"single"];o.lastIndex=0;var i=ei.call(ei.call(e,o,"\\$1"),/[\x00-\x1f]/g,hU);return R3(i,"single",t)}function hU(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+QW.call(t.toString(16))}function al(e){return"Object("+e+")"}function Yg(e){return e+" { ? }"}function $S(e,t,n,r){var o=r?e0(n,r):Jr.call(n,", ");return e+" ("+t+") {"+o+"}"}function mU(e){for(var t=0;t=0)return!1;return!0}function vU(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Jr.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Jr.call(Array(t+1),n)}}function e0(e,t){if(e.length===0)return"";var n=` +`+t.prev+t.base;return n+Jr.call(e,","+n)+` +`+t.prev}function Cu(e,t){var n=Jm(e),r=[];if(n){r.length=e.length;for(var o=0;o1;){var n=t.pop(),r=n.obj[n.prop];if(Ii(r)){for(var o=[],i=0;i=eh?a.slice(l,l+eh):a,u=[],d=0;d=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===IU.RFC1738&&(f===40||f===41)){u[u.length]=c.charAt(d);continue}if(f<128){u[u.length]=Kr[f];continue}if(f<2048){u[u.length]=Kr[192|f>>6]+Kr[128|f&63];continue}if(f<55296||f>=57344){u[u.length]=Kr[224|f>>12]+Kr[128|f>>6&63]+Kr[128|f&63];continue}d+=1,f=65536+((f&1023)<<10|c.charCodeAt(d)&1023),u[u.length]=Kr[240|f>>18]+Kr[128|f>>12&63]+Kr[128|f>>6&63]+Kr[128|f&63]}s+=u.join("")}return s},jU=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o"u"&&(_=0)}if(typeof u=="function"?m=u(n,m):m instanceof Date?m=p(m):r==="comma"&&Qr(m)&&(m=nd.maybeMap(m,function(B){return B instanceof Date?p(B):B})),m===null){if(a)return c&&!w?c(n,Wt.encoder,v,"key",h):n;m=""}if(GU(m)||nd.isBuffer(m)){if(c){var T=w?n:c(n,Wt.encoder,v,"key",h);return[y(T)+"="+y(c(m,Wt.encoder,v,"value",h))]}return[y(n)+"="+y(String(m))]}var P=[];if(typeof m>"u")return P;var x;if(r==="comma"&&Qr(m))w&&c&&(m=nd.maybeMap(m,c)),x=[{value:m.length>0?m.join(",")||null:void 0}];else if(Qr(u))x=u;else{var $=Object.keys(m);x=d?$.sort(d):$}var I=l?n.replace(/\./g,"%2E"):n,O=o&&Qr(m)&&m.length===1?I+"[]":I;if(i&&Qr(m)&&m.length===0)return O+"[]";for(var D=0;D"u"?t.encodeDotInKeys===!0?!0:Wt.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Wt.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Wt.allowEmptyArrays,arrayFormat:a,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Wt.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Wt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Wt.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Wt.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Wt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Wt.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Wt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Wt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Wt.strictNullHandling}},ZU=function(e,t){var n=e,r=KU(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):Qr(r.filter)&&(i=r.filter,o=i);var a=[];if(typeof n!="object"||n===null)return"";var s=O3[r.arrayFormat],l=s==="comma"&&r.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var c=I3(),u=0;u0?p+f:""},Cs=M3,t0=Object.prototype.hasOwnProperty,QU=Array.isArray,Et={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Cs.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},YU=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},A3=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},XU="utf8=%26%2310003%3B",JU="utf8=%E2%9C%93",eG=function(t,n){var r={__proto__:null},o=n.ignoreQueryPrefix?t.replace(/^\?/,""):t;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=n.parameterLimit===1/0?void 0:n.parameterLimit,a=o.split(n.delimiter,i),s=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l-1&&(h=QU(h)?[h]:h);var y=t0.call(r,p);y&&n.duplicates==="combine"?r[p]=Cs.combine(r[p],h):(!y||n.duplicates==="last")&&(r[p]=h)}return r},tG=function(e,t,n,r){for(var o=r?t:A3(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if(s==="[]"&&n.parseArrays)a=n.allowEmptyArrays&&(o===""||n.strictNullHandling&&o===null)?[]:[].concat(o);else{a=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,c=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,u=parseInt(c,10);!n.parseArrays&&c===""?a={0:o}:!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=o):c!=="__proto__"&&(a[c]=o)}o=a}return o},nG=function(t,n,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=r.depth>0&&a.exec(i),c=l?i.slice(0,l.index):i,u=[];if(c){if(!r.plainObjects&&t0.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var d=0;r.depth>0&&(l=s.exec(i))!==null&&d"u"?Et.charset:t.charset,r=typeof t.duplicates>"u"?Et.duplicates:t.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:Et.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Et.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Et.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Et.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Et.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Et.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Et.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Et.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Et.decoder,delimiter:typeof t.delimiter=="string"||Cs.isRegExp(t.delimiter)?t.delimiter:Et.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Et.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Et.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Et.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Et.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Et.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Et.strictNullHandling}},oG=function(e,t){var n=rG(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?eG(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),a=0;a{if(nh.has(rh))return nh.get(rh);const t=cG.parse(window.location.search,{ignoreQueryPrefix:!0}).debug==="true";return nh.set(rh,t),t},uG=`{ + "nodes_info": [ + { + "identifier": 1, + "connected": null, + "infos": { + "has_error": false, + "error_reason": "", + "name": "querynode1", + "hardware_infos": { + "ip": "172.18.20.7:21123", + "cpu_core_count": 8, + "cpu_core_usage": 0, + "memory": 34359738368, + "memory_usage": 18362302464, + "disk": 104857600, + "disk_usage": 2097152 + }, + "system_info": { + "system_version": "34cf5352ec", + "deploy_mode": "STANDALONE[MOCK]", + "build_version": "v2.2-testing-20240702-804-g34cf5352ec-dev", + "build_time": "Wed, Oct 23, 2024 13:58:54 UTC", + "used_go_version": "go version go1.22.3 darwin/amd64" + }, + "created_time": "2024-10-23 22:01:45.891414 +0800 CST m=+8.035797839", + "updated_time": "2024-10-23 22:01:45.891415 +0800 CST m=+8.035798239", + "type": "querynode", + "id": 1, + "system_configurations": { + "simd_type": "auto" + }, + "quota_metrics": { + "Hms": { + "ip": "172.18.20.7:21123", + "cpu_core_count": 8, + "cpu_core_usage": 0, + "memory": 34359738368, + "memory_usage": 18362302464, + "disk": 104857600, + "disk_usage": 2097152 + }, + "Rms": [ + { + "Label": "InsertConsumeThroughput", + "Rate": 0 + }, + { + "Label": "DeleteConsumeThroughput", + "Rate": 0 + } + ], + "Fgm": { + "MinFlowGraphChannel": "", + "MinFlowGraphTt": 18446744073709551615, + "NumFlowGraph": 0 + }, + "GrowingSegmentsSize": 0, + "Effect": { + "NodeID": 1, + "CollectionIDs": [] + }, + "DeleteBufferInfo": { + "CollectionDeleteBufferNum": {}, + "CollectionDeleteBufferSize": {} + } + }, + "collection_metrics": { + "CollectionRows": {} + } + } + }, + { + "identifier": 1, + "connected": [ + { + "connected_identifier": 1, + "type": "manage", + "target_type": "querynode" + } + ], + "infos": { + "has_error": false, + "error_reason": "", + "name": "querycoord1", + "hardware_infos": { + "ip": "172.18.20.7:19531", + "cpu_core_count": 8, + "cpu_core_usage": 0, + "memory": 34359738368, + "memory_usage": 18362302464, + "disk": 104857600, + "disk_usage": 2097152 + }, + "system_info": { + "system_version": "34cf5352ec", + "deploy_mode": "STANDALONE[MOCK]", + "build_version": "v2.2-testing-20240702-804-g34cf5352ec-dev", + "build_time": "Wed, Oct 23, 2024 13:58:54 UTC", + "used_go_version": "go version go1.22.3 darwin/amd64" + }, + "created_time": "2024-10-23 22:01:45.891414 +0800 CST m=+8.035797839", + "updated_time": "2024-10-23 22:01:45.891415 +0800 CST m=+8.035798239", + "type": "querycoord", + "id": 1, + "system_configurations": { + "search_channel_prefix": "", + "search_result_channel_prefix": "" + } + } + }, + { + "identifier": 1, + "connected": null, + "infos": { + "has_error": false, + "error_reason": "", + "name": "datanode1", + "hardware_infos": { + "ip": "172.18.20.7:21124", + "cpu_core_count": 8, + "cpu_core_usage": 0, + "memory": 34359738368, + "memory_usage": 18362302464, + "disk": 104857600, + "disk_usage": 2097152 + }, + "system_info": { + "system_version": "34cf5352ec", + "deploy_mode": "STANDALONE[MOCK]", + "build_version": "v2.2-testing-20240702-804-g34cf5352ec-dev", + "build_time": "Wed, Oct 23, 2024 13:58:54 UTC", + "used_go_version": "go version go1.22.3 darwin/amd64" + }, + "created_time": "2024-10-23 22:01:45.891414 +0800 CST m=+8.035797839", + "updated_time": "2024-10-23 22:01:45.891415 +0800 CST m=+8.035798239", + "type": "datanode", + "id": 1, + "system_configurations": { + "flush_insert_buffer_size": 16777216 + }, + "quota_metrics": { + "Hms": { + "ip": "172.18.20.7:21124", + "cpu_core_count": 8, + "cpu_core_usage": 0, + "memory": 34359738368, + "memory_usage": 18362302464, + "disk": 104857600, + "disk_usage": 2097152 + }, + "Rms": [ + { + "Label": "InsertConsumeThroughput", + "Rate": 0 + }, + { + "Label": "DeleteConsumeThroughput", + "Rate": 0 + } + ], + "Fgm": { + "MinFlowGraphChannel": "", + "MinFlowGraphTt": 18446744073709551615, + "NumFlowGraph": 0 + }, + "Effect": { + "NodeID": 1, + "CollectionIDs": [] + } + } + } + }, + { + "identifier": 1, + "connected": null, + "infos": { + "has_error": false, + "error_reason": "", + "name": "indexnode1", + "hardware_infos": { + "ip": "172.18.20.7:21121", + "cpu_core_count": 8, + "cpu_core_usage": 0, + "memory": 34359738368, + "memory_usage": 18362302464, + "disk": 104857600, + "disk_usage": 2097152 + }, + "system_info": { + "system_version": "34cf5352ec", + "deploy_mode": "STANDALONE[MOCK]", + "build_version": "v2.2-testing-20240702-804-g34cf5352ec-dev", + "build_time": "Wed, Oct 23, 2024 13:58:54 UTC", + "used_go_version": "go version go1.22.3 darwin/amd64" + }, + "created_time": "2024-10-23 22:01:45.891414 +0800 CST m=+8.035797839", + "updated_time": "2024-10-23 22:01:45.891415 +0800 CST m=+8.035798239", + "type": "indexnode", + "id": 1, + "system_configurations": { + "minio_bucket_name": "a-bucket", + "simd_type": "auto" + } + } + }, + { + "identifier": 1, + "connected": [ + { + "connected_identifier": 1, + "type": "manage", + "target_type": "datanode" + }, + { + "connected_identifier": 1, + "type": "manage", + "target_type": "indexnode" + } + ], + "infos": { + "has_error": false, + "error_reason": "", + "name": "datacoord1", + "hardware_infos": { + "ip": "172.18.20.7:13333", + "cpu_core_count": 8, + "cpu_core_usage": 0, + "memory": 34359738368, + "memory_usage": 18362302464, + "disk": 104857600, + "disk_usage": 2097152 + }, + "system_info": { + "system_version": "34cf5352ec", + "deploy_mode": "STANDALONE[MOCK]", + "build_version": "v2.2-testing-20240702-804-g34cf5352ec-dev", + "build_time": "Wed, Oct 23, 2024 13:58:54 UTC", + "used_go_version": "go version go1.22.3 darwin/amd64" + }, + "created_time": "2024-10-23 22:01:45.891414 +0800 CST m=+8.035797839", + "updated_time": "2024-10-23 22:01:45.891415 +0800 CST m=+8.035798239", + "type": "datacoord", + "id": 1, + "system_configurations": { + "segment_max_size": 1024 + }, + "quota_metrics": { + "TotalBinlogSize": 0, + "CollectionBinlogSize": {}, + "PartitionsBinlogSize": {}, + "CollectionL0RowCount": {} + }, + "collection_metrics": { + "Collections": {} + } + } + }, + { + "identifier": 1, + "connected": [], + "infos": { + "has_error": false, + "error_reason": "", + "name": "rootcoord1", + "hardware_infos": { + "ip": "172.18.20.7:53100", + "cpu_core_count": 8, + "cpu_core_usage": 0, + "memory": 34359738368, + "memory_usage": 18362302464, + "disk": 104857600, + "disk_usage": 2097152 + }, + "system_info": { + "system_version": "34cf5352ec", + "deploy_mode": "STANDALONE[MOCK]", + "build_version": "v2.2-testing-20240702-804-g34cf5352ec-dev", + "build_time": "Wed, Oct 23, 2024 13:58:54 UTC", + "used_go_version": "go version go1.22.3 darwin/amd64" + }, + "created_time": "2024-10-23 22:01:45.891414 +0800 CST m=+8.035797839", + "updated_time": "2024-10-23 22:01:45.891415 +0800 CST m=+8.035798239", + "type": "rootcoord", + "id": 1, + "system_configurations": { + "min_segment_size_to_enable_index": 1024 + } + } + }, + { + "identifier": 1, + "connected": [ + { + "connected_identifier": 1, + "type": "forward", + "target_type": "querycoord" + }, + { + "connected_identifier": 1, + "type": "forward", + "target_type": "datacoord" + }, + { + "connected_identifier": 1, + "type": "forward", + "target_type": "rootcoord" + } + ], + "infos": { + "has_error": false, + "error_reason": "", + "name": "proxy1", + "hardware_infos": { + "ip": "172.18.20.7:19529", + "cpu_core_count": 8, + "cpu_core_usage": 30.52004762940343, + "memory": 34359738368, + "memory_usage": 18362302464, + "disk": 104857600, + "disk_usage": 2097152 + }, + "system_info": { + "system_version": "34cf5352ec", + "deploy_mode": "STANDALONE[MOCK]", + "build_version": "v2.2-testing-20240702-804-g34cf5352ec-dev", + "build_time": "Wed, Oct 23, 2024 13:58:54 UTC", + "used_go_version": "go version go1.22.3 darwin/amd64" + }, + "created_time": "2024-10-23 22:01:45.891414 +0800 CST m=+8.035797839", + "updated_time": "2024-10-23 22:01:45.891415 +0800 CST m=+8.035798239", + "type": "proxy", + "id": 1, + "system_configurations": { + "default_partition_name": "_default", + "default_index_name": "_default_idx" + }, + "quota_metrics": null + } + } + ] +}`,dG=`[ + { + "sdk_type": "python", + "sdk_version": "1.0.0", + "local_time": "2023-10-01T12:00:00Z", + "user": "user1", + "host": "127.0.0.1", + "reserved": { + "last_active_time": "" + } + }, + { + "sdk_type": "golang", + "sdk_version": "1.1.0", + "local_time": "2023-10-01T12:05:00Z", + "user": "user2", + "host": "127.0.0.2", + "reserved": { + "last_active_time": "" + } + } +]`,fG=` +{ + "metastore": { + "health_status": true, + "unhealthy_reason": "", + "members_health": [ + { + "endpoint": "http://127.0.0.1:2379", + "health": true + } + ], + "meta_type": "etcd" + }, + "mq": { + "health_status": false, + "unhealthy_reason": "health check failed, err: Get \\"http://localhost:80/admin/v2/brokers/health\\": dial tcp [::1]:80: connect: connection refused", + "members_health": null, + "mq_type": "pulsar" + } +} +`,pG=` +{ + "MILVUS_GIT_BUILD_TAGS": "v2.2-testing-20240702-811-g38211f2b81-dev", + "MILVUS_GIT_COMMIT": "38211f2b81", + "common.bloomfilterapplybatchsize": "1000", + "common.bloomfiltersize": "100000", + "common.bloomfiltertype": "BlockedBloomFilter", + "common.buildindexthreadpoolratio": "0.75", + "common.defaultindexname": "_default_idx", + "common.defaultpartitionname": "_default", + "common.diskindex.beamwidthratio": "4", + "common.diskindex.buildnumthreadsratio": "1", + "common.diskindex.loadnumthreadratio": "8", + "common.diskindex.maxdegree": "56", + "common.diskindex.pqcodebudgetgbratio": "0.125", + "common.diskindex.searchcachebudgetgbratio": "0.1", + "common.diskindex.searchlistsize": "100", + "common.enablevectorclusteringkey": "false", + "common.entityexpiration": "-1", + "common.gracefulstoptimeout": "1800", + "common.gracefultime": "5000", + "common.indexslicesize": "16", + "common.locks.metrics.enable": "false" +} +`,gG=` +{ + "collection_names": [ + "collection_1", + "collection_2", + "collection_3", + "collection_4", + "collection_5", + "collection_6", + "collection_7", + "collection_8", + "collection_9", + "collection_10" + ], + "collection_ids": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10" + ], + "created_utc_timestamps": [ + "2021-10-01 00:00:00", + "2021-10-02 00:00:00", + "2021-10-03 00:00:00", + "2021-10-04 00:00:00", + "2021-10-05 00:00:00", + "2021-10-06 00:00:00", + "2021-10-07 00:00:00", + "2021-10-08 00:00:00", + "2021-10-09 00:00:00", + "2021-10-10 00:00:00" + ], + "inMemory_percentages": [ + 100, + 90, + 80, + 70, + 60, + 50, + 40, + 30, + 20, + 10 + ], + "query_service_available": [ + true, + true, + true, + true, + true, + false, + false, + false, + false, + false + ] +} +`,hG=` +{ + "collection_id": "1", + "collection_name": "example_collection", + "created_time": "2021-10-01 00:00:00", + "shards_num": 2, + "consistency_level": "Strong", + "aliases": ["alias1", "alias2"], + "properties": { + "property_key": "property_value" + }, + "db_name": "example_db", + "num_partitions": 3, + "virtual_channel_names": ["v_channel1", "v_channel2"], + "physical_channel_names": ["p_channel1", "p_channel2"], + "partition_infos": [ + { + "partition_name": "partition1", + "partition_id": "1", + "created_utc_timestamp": "2021-10-01 00:00:00" + } + ], + "enable_dynamic_field": true, + "fields": [ + { + "field_id": "1", + "name": "field1", + "is_primary_key": true, + "description": "description1", + "data_type": "int64", + "type_params": { + "param_key": "param_value" + }, + "index_params": { + "index_key": "index_value" + }, + "auto_id": false, + "element_type": "element_type1", + "default_value": "default_value1", + "is_dynamic": false, + "is_partition_key": false, + "is_clustering_key": false, + "nullable": true, + "is_function_output": false + } + ] +} +`,mG=` +{ + "db_names": [ + "database_1", + "database_2", + "database_3", + "database_4", + "database_5", + "database_6", + "database_7", + "database_8", + "database_9", + "database_10" + ], + "db_ids": [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + "10" + ], + "created_timestamps": [ + "2021-10-01 00:00:00", + "2021-10-02 00:00:00", + "2021-10-03 00:00:00", + "2021-10-04 00:00:00", + "2021-10-05 00:00:00", + "2021-10-06 00:00:00", + "2021-10-07 00:00:00", + "2021-10-08 00:00:00", + "2021-10-09 00:00:00", + "2021-10-10 00:00:00" + ] +} +`,vG=` +{ + "db_name": "example_db", + "db_id": 1, + "created_timestamp": "2021-10-01 00:00:00", + "properties": [ + { + "key": "property_key", + "value": "property_value" + } + ] +} +`,yG=` +[ + { + "collection_id": 1, + "segments": [ + { + "segment_id": 1, + "collection_id": 1, + "partition_id": 1, + "channel": "channel1", + "num_of_rows": 1000, + "state": "Sealed", + "is_importing": false, + "compacted": false, + "level": "L0", + "is_sorted": true, + "node_id": 1, + "is_invisible": false, + "loaded_timestamp": "2021-10-01 00:00:00", + "index": [ + { + "field_id": 1, + "index_id": 1, + "build_id": 1, + "index_size": 1024, + "is_loaded": true + } + ], + "resource_group": "rg1", + "loaded_insert_row_count": 1000, + "mem_size": 2048 + } + ], + "dm_channels": [ + { + "node_id": 1, + "version": 1, + "collection_id": 1, + "channel_name": "channel1", + "unflushed_segment_ids": [ + "1" + ], + "flushed_segment_ids": [ + "2" + ], + "dropped_segment_ids": [ + "3" + ], + "level_zero_segment_ids": [ + "4" + ] + } + ] + } +] +`,bG=` +[ + { + "collection_id": 1, + "segments": [ + { + "segment_id": 2, + "collection_id": 1, + "partition_id": 1, + "channel": "channel2", + "num_of_rows": 1000, + "state": "Sealed", + "is_importing": false, + "compacted": false, + "level": "L0", + "is_sorted": true, + "node_id": 1, + "is_invisible": false, + "loaded_timestamp": 1633072800, + "index": [ + { + "field_id": 1, + "index_id": 1, + "build_id": 1, + "index_size": 1024, + "is_loaded": true + } + ], + "resource_group": "rg1", + "loaded_insert_row_count": 1000, + "mem_size": 2048 + } + ] + } +] +`,xG=` +{ + "segments": [ + { + "segment_id": 1, + "collection_id": 1, + "partition_id": 1, + "channel": "channel1", + "num_of_rows": 1000, + "state": "Sealed", + "is_importing": false, + "compacted": false, + "level": "L0", + "is_sorted": true, + "node_id": 1, + "is_invisible": false, + "loaded_timestamp": "2021-10-01 00:00:00", + "index": [ + { + "field_id": 1, + "index_id": 1, + "build_id": 1, + "index_size": 1024, + "is_loaded": true + } + ], + "resource_group": "rg1", + "loaded_insert_row_count": 1000, + "mem_size": 2048, + "flushed_rows": 1000, + "sync_buffer_rows": 0, + "syncing_rows": 0 + } + ], + "dm_channels": [ + { + "node_id": 1, + "version": 1, + "collection_id": 1, + "channel_name": "channel1", + "unflushed_segment_ids": ["1"], + "flushed_segment_ids": ["2"], + "dropped_segment_ids": ["3"], + "level_zero_segment_ids": ["4"], + "partition_stats_versions": { + "1": 1 + }, + "watch_state": "Healthy", + "start_watch_ts": "2021-10-01 00:00:00" + } + ], + "leader_views": [ + { + "leader_id": 1, + "collection_id": 1, + "node_id": 1, + "channel": "channel1", + "version": 1, + "sealed_segments": [ + { + "segment_id": 1, + "collection_id": 1, + "partition_id": 1, + "channel": "channel1", + "num_of_rows": 1000, + "state": "Sealed", + "is_importing": false, + "compacted": false, + "level": "L0", + "is_sorted": true, + "node_id": 1, + "is_invisible": false, + "loaded_timestamp": "2021-10-01 00:00:00", + "index": [ + { + "field_id": 1, + "index_id": 1, + "build_id": 1, + "index_size": 1024, + "is_loaded": true + } + ], + "resource_group": "rg1", + "loaded_insert_row_count": 1000, + "mem_size": 2048, + "flushed_rows": 1000, + "sync_buffer_rows": 0, + "syncing_rows": 0 + } + ], + "growing_segments": [], + "target_version": 1, + "num_of_growing_rows": 0, + "unserviceable_error": "" + } + ] +} +`,SG=` +[ + { + "ID": 1, + "collectionID": 1, + "rw_nodes": [1, 2], + "resource_group": "rg1", + "ro_nodes": [3], + "channel_to_rw_nodes": { + "channel1": [1, 2] + } + }, + { + "ID": 2, + "collectionID": 2, + "rw_nodes": [4, 5], + "resource_group": "rg2", + "ro_nodes": [6], + "channel_to_rw_nodes": { + "channel2": [4, 5] + } + } +] +`,wG=` +[ + { + "name": "rg1", + "nodes": [1, 2], + "cfg": { + "requests":{}, + "limits":{"node_num":1000000} + } + }, + { + "name": "rg2", + "nodes": [3, 4] + } +] +`,CG=` +[ + { + "task_name": "balance_checker-ChannelTask[1]-ch1", + "collection_id": 67890, + "replica_id": 11111, + "task_type": "Move", + "task_status": "started", + "priority": "Normal", + "actions": [ + "type:Grow node id : 1 channel name:channel_1" + ], + "step": 1, + "reason": "" + }, + { + "task_name": "index_checker-SegmentTask[2]-54321", + "collection_id": 12345, + "replica_id": 22222, + "task_type": "Grow", + "task_status": "completed", + "priority": "High", + "actions": [ + "type:Grow node id: 2 segment id:123 scope:DataScope_Streaming" + ], + "step": 2, + "reason": "" + }, + { + "task_name": "leader_checker-LeaderSegmentTask[3]-1", + "collection_id": 54321, + "replica_id": 33333, + "task_type": "Grow", + "task_status": "failed", + "priority": "Low", + "actions": [ + "type:Grow node id: 3 leader id:456 segment id:789 version:1" + ], + "step": 3, + "reason": "yet another reason" + } +] +`,_G=` +[ + { + "segment_id": 1, + "collection_id": 1, + "partition_id": 1, + "channel": "channel1", + "num_of_rows": 1000, + "state": "Sealed", + "is_importing": false, + "compacted": false, + "level": "L1", + "is_sorted": true, + "node_id": 1, + "is_invisible": false, + "loaded_timestamp": "2021-10-01 00:00:00", + "index": [ + { + "field_id": 1, + "index_id": 1, + "build_id": 1, + "index_size": 1024, + "is_loaded": true + } + ], + "resource_group": "rg1", + "loaded_insert_row_count": 1000, + "mem_size": 2048 + }, + { + "segment_id": 2, + "collection_id": 2, + "partition_id": 2, + "channel": "channel2", + "num_of_rows": 2000, + "state": "Sealed", + "is_importing": false, + "compacted": false, + "level": "L2", + "is_sorted": true, + "node_id": 2, + "is_invisible": false, + "loaded_timestamp": "2021-10-01 00:00:00", + "index": [ + { + "field_id": 2, + "index_id": 2, + "build_id": 2, + "index_size": 2048, + "is_loaded": true + } + ], + "resource_group": "rg2", + "loaded_insert_row_count": 2000, + "mem_size": 4096 + } +] +`,RG=` +[ + { + "name": "channel1", + "watch_state": "Healthy", + "assign_state": "assigned", + "latest_time_tick": "2023-10-01 12:00:00", + "node_id": 1, + "collection_id": 1 + }, + { + "name": "channel2", + "watch_state": "Healthy", + "assign_state": "assigned", + "latest_time_tick": "2023-10-01 12:05:00", + "node_id": 2, + "collection_id": 2 + } +] +`,TG=` +{ + "segments": [ + { + "segment_id": 1, + "collection_id": 1, + "partition_id": 1, + "channel": "channel1", + "num_of_rows": 1000, + "state": "Growing", + "is_importing": false, + "compacted": false, + "level": "L1", + "is_sorted": true, + "node_id": 1 + }, + { + "segment_id": 3, + "collection_id": 2, + "partition_id": 2, + "channel": "channel2", + "num_of_rows": 2000, + "state": "Growing", + "is_importing": true, + "compacted": true, + "level": "L2", + "is_sorted": false, + "node_id": 2 + } + ], + "dm_channels": [ + { + "node_id": 1, + "version": 1, + "collection_id": 100, + "channel_name": "channel1", + "unflushed_segment_ids": ["1", "2", "3"], + "flushed_segment_ids": ["4", "5", "6"], + "dropped_segment_ids": ["7", "8", "9"], + "watch_state": "success", + "start_watch_ts": "2023-10-01 12:05:00" + }, + { + "node_id": 1, + "version": 1, + "collection_id": 100, + "channel_name": "channel3", + "unflushed_segment_ids": ["1", "2", "3"], + "flushed_segment_ids": ["4", "5", "6"], + "dropped_segment_ids": ["7", "8", "9"], + "watch_state": "to_watch", + "start_watch_ts": "2023-10-01 12:05:00" + } + ] +} +`,PG=` +[ + { + "index_id": 1, + "collection_id": 1001, + "segment_id": 2001, + "build_id": 3001, + "index_state": "Finished", + "index_size": 1024, + "index_version": 1, + "create_time": "2023-10-01 12:05:00" + }, + { + "index_id": 2, + "collection_id": 1002, + "segment_id": 2002, + "build_id": 3002, + "index_state": "Failed", + "fail_reason": "Disk full", + "index_size": 2048, + "index_version": 2, + "create_time": "2023-10-01 12:05:00" + } +]`,kG=` +[ + { + "plan_id": 1, + "collection_id": 1, + "type": "Merge", + "state": "Completed", + "fail_reason": "", + "start_time": "2023-10-01 12:05:00", + "end_time": "2023-10-01 12:06:00", + "total_rows": 10000, + "input_segments": ["1", "2", "3"], + "result_segments": ["4"] + }, + { + "plan_id": 2, + "collection_id": 2, + "type": "Merge", + "state": "Failed", + "fail_reason": "Disk full", + "start_time": "2023-10-01 12:05:00", + "end_time": "2023-10-01 12:06:00", + "total_rows": 20000, + "input_segments": ["5", "6", "7"], + "result_segments": [] + } +]`,$G=` +[ + { + "segment_id": 1, + "batch_rows": 1000, + "segment_level": "L1", + "ts_from": "2023-10-01 12:05:00", + "ts_to": "2023-10-01 12:06:00", + "delta_row_count": 10, + "flush_size": 1024, + "running_time": "100000000", + "node_id": 1 + }, + { + "segment_id": 2, + "batch_rows": 2000, + "segment_level": "L2", + "ts_from": "2023-10-01 12:05:00", + "ts_to": "2023-10-01 12:06:00", + "delta_row_count": 20, + "flush_size": 2048, + "running_time": "200000000", + "node_id": 2 + } +] +`,EG=` +[ + { + "job_id": 1, + "task_id": 2, + "collection_id": 3, + "node_id": 4, + "state": "Pending", + "reason": "", + "task_type": "PreImportTask", + "created_time": "2023-10-01T00:00:00Z", + "complete_time": "2023-10-01T01:00:00Z" + }, + { + "job_id": 5, + "task_id": 6, + "collection_id": 7, + "node_id": 8, + "state": "Completed", + "reason": "", + "task_type": "ImportTask", + "created_time": "2023-10-01T00:00:00Z", + "complete_time": "2023-10-01T01:00:00Z" + }, + { + "job_id": 9, + "task_id": 10, + "collection_id": 11, + "node_id": 12, + "state": "Failed", + "reason": "some failure reason", + "task_type": "ImportTask", + "created_time": "2023-10-01T00:00:00Z", + "complete_time": "2023-10-01T01:00:00Z" + } +] +`,MG=` +[ + { + "segment_id": 1, + "collection_id": 1, + "partition_id": 1, + "channel": "channel1", + "num_of_rows": 1000, + "state": "Growing", + "is_importing": false, + "compacted": false, + "level": "L1", + "is_sorted": true, + "node_id": 1, + "flushed_rows": 1000, + "sync_buffer_rows": 0, + "syncing_rows": 0 + }, + { + "segment_id": 2, + "collection_id": 2, + "partition_id": 2, + "channel": "channel2", + "num_of_rows": 2000, + "state": "Sealed", + "is_importing": true, + "compacted": true, + "level": "L0", + "is_sorted": false, + "node_id": 2, + "flushed_rows": 2000, + "sync_buffer_rows": 100, + "syncing_rows": 50 + } +] +`,IG=` +[ + { + "name": "channel1", + "watch_state": "Healthy", + "assign_state": "assigned", + "latest_time_tick": "2023-10-01 12:00:00", + "node_id": 1, + "collection_id": 1, + "check_point_ts": "2023-10-01 12:00:00" + }, + { + "name": "channel2", + "watch_state": "Healthy", + "assign_state": "assigned", + "latest_time_tick": "2023-10-01 12:05:00", + "node_id": 2, + "collection_id": 2, + "check_point_ts": "2023-10-01 12:05:00" + } +] +`,OG=`[ + { + "role": "proxy", + "database": "test_db", + "collection": "test_collection", + "partitions": "partition1,partition2", + "consistency_level": "Bounded", + "use_default_consistency": true, + "guarantee_timestamp": 123456789, + "duration": "1.1s", + "user": "test_user", + "query_params": { + "search_params": [ + { + "dsl": ["dsl1"], + "search_params": ["param2=value2"], + "nq": [10] + } + ], + "output_fields": "field1,field2" + }, + "type": "Search", + "trace_id": "729b10a6a7f32ddd7ab5c16dd30f60dc", + "time": "2024-11-05 08:14:05" + }, + { + "role": "proxy", + "database": "test_db", + "collection": "test_collection", + "partitions": "partition1,partition2", + "consistency_level": "Bounded", + "use_default_consistency": true, + "guarantee_timestamp": 123456789, + "duration": "1.2s", + "user": "test_user", + "query_params": { + "expr": "expr1", + "output_fields": "field1,field2" + }, + "type": "Query", + "trace_id": "232955b7f33b135708d34c3c761b57e7", + "time": "2024-11-05 08:14:05" + }, + { + "role": "proxy", + "database": "test_db", + "collection": "test_collection", + "partitions": "partition1,partition2", + "consistency_level": "Bounded", + "use_default_consistency": true, + "guarantee_timestamp": 123456789, + "duration": "1.3s", + "user": "test_user", + "query_params": { + "search_params": [ + { + "dsl": ["dsl2"], + "search_params": ["param3=value3"], + "nq": [20] + } + ], + "output_fields": "field3,field4" + }, + "type": "HybridSearch", + "trace_id": "3a4b5c6d7e8f9a0b1c2d3e4f5g6h7i8j", + "time": "2024-11-05 08:14:05" + }, + { + "role": "proxy", + "database": "test_db", + "collection": "test_collection", + "partitions": "partition1,partition2", + "consistency_level": "Bounded", + "use_default_consistency": true, + "guarantee_timestamp": 123456789, + "duration": "1.4s", + "user": "test_user", + "query_params": { + "expr": "expr2", + "output_fields": "field5,field6" + }, + "type": "Query", + "trace_id": "4b5c6d7e8f9a0b1c2d3e4f5g6h7i8j9k", + "time": "2024-11-05 08:14:05" + }, + { + "role": "proxy", + "database": "test_db", + "collection": "test_collection", + "partitions": "partition1,partition2", + "consistency_level": "Bounded", + "use_default_consistency": true, + "guarantee_timestamp": 123456789, + "duration": "1.5s", + "user": "test_user", + "query_params": { + "search_params": [ + { + "dsl": ["dsl3"], + "search_params": ["param4=value4"], + "nq": [30] + } + ], + "output_fields": "field7,field8" + }, + "type": "Search", + "trace_id": "5c6d7e8f9a0b1c2d3e4f5g6h7i8j9k0l", + "time": "2024-11-05 08:14:05" + } +]`,LG="/api/v1",n0=Bt.create({baseURL:LG});n0.interceptors.response.use(e=>(e.status>=400&&WD({title:"Error",message:e.data.message||"Request Error",showClose:!1,handleClose:()=>{}}),e));const MS=(e,t)=>N3()&&e?Promise.resolve(e):t().then(n=>n.data),gt={get:(e,t,n)=>MS(JSON.parse(n||"null"),()=>n0.get(e,t)),post:(e,t,n,r)=>MS(JSON.parse(r||"null"),()=>n0.post(e,t,n))},AG="https://github.com/milvus-io/milvus/issues/new/choose",NG="https://zilliz.com/contact-sales",DG="WebUI: https://cloud.zilliz.com/signup?utm_source=partner&utm_medium=referral&utm_campaign=2024-12-19_resource_milvus-webUI_milvusio",sl=(e,t=2)=>(e/1024**3).toFixed(t),jG=e=>e.db_names.map((t,n)=>{var i;const r=(i=e.db_ids)==null?void 0:i[n],o=e.created_timestamps[n];return{name:t,id:r,created:o}}),FG=e=>e.collection_ids.map((t,n)=>{var s,l,c,u;const r=(s=e.collection_names)==null?void 0:s[n],o=(l=e.created_utc_timestamps)==null?void 0:l[n],i=(c=e.inMemory_percentages)==null?void 0:c[n],a=(u=e.query_service_available)==null?void 0:u[n];return{name:r,id:t,created:o,memoryPercentage:i,queryServiceAvailable:a}}),IS=()=>{},BG=async()=>(await gt.get("/_cluster/info",{},uG)).nodes_info,zG=async()=>gt.get("/_cluster/clients",{},dG),HG=async()=>gt.get("/_cluster/dependencies",{},fG),VG=async()=>{const e=await gt.get("/_db/list",{},mG);try{return jG(e)}catch(t){console.warn(t)}},WG=async e=>gt.get("/_db/desc",{params:{db_name:e}},vG),UG=async(e="default")=>{const t=await gt.get("/_collection/list",{params:{db_name:e}},gG);return FG(t)},GG=async(e,t="default")=>gt.get("/_collection/desc",{params:{db_name:t,collection_name:e}},hG),qG=async e=>gt.get("/_index/list",{params:{collection_id:e}}),KG=async e=>gt.get("/_dc/segments",{params:{collection_id:e,in:"dc"}}),ZG=async e=>gt.get("/_qc/segments",{params:{collection_id:e,in:"qc"}}),D3=async()=>gt.get("/_qc/dist",{},xG),sv=async()=>gt.get("/_qc/target",{},yG),lv=async()=>gt.get("/_qc/target",{params:{target_scope:2}},bG),QG=async()=>gt.get("/_qn/segments",{},_G),YG=async()=>gt.get("/_qn/channels",{},RG),XG=async()=>gt.get("/_qc/replica",{},SG),JG=async()=>gt.get("/_qc/resource_group",{},wG),eq=async()=>gt.get("/_dc/dist",{},TG),tq=async()=>gt.get("/_dn/channels",{},IG),nq=async()=>gt.get("/_dn/segments",{},MG),rq=async()=>gt.get("/_qc/tasks",{},CG),oq=async()=>gt.get("/_dc/tasks/compaction",{},kG),iq=async()=>gt.get("/_dc/tasks/build_index",{},PG),aq=async()=>gt.get("/_dc/tasks/import",{},EG),sq=async()=>gt.get("/_dn/tasks/sync",{},$G),lq=async()=>gt.get("/_cluster/slow_query",{},OG),cq=async()=>gt.get("/_cluster/configs",{},pG);var j3={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;ae?[{key:"system_version",name:"Git Commit",desc:"Git commit SHA that the current build of the system is based on"},{key:"deploy_mode",name:"Deploy Mode",desc:"The mode in which the system is deployed"},{key:"build_version",name:"Build Version",desc:"The version of the system that was built"},{key:"build_time",name:"Build Time",desc:"The exact time when the system was built"},{key:"used_go_version",name:"Go Version",desc:"The version of the Golang that was used to build the system"}].map(n=>({...n,value:e[n.key]})):[],pq=()=>{const e=nt("cluster-info",BG),t=b.useMemo(()=>{var l;const i=(l=e.data)==null?void 0:l[0],a=i==null?void 0:i.infos.system_info,s=fq(a);return s.push({key:"created_time",name:"Started Time",value:i==null?void 0:i.infos.created_time,desc:"The time when the system was started"}),s},[e.data]),n=b.useMemo(()=>{var i;return((i=e.data)==null?void 0:i.map(a=>({name:a.infos.name,ip:a.infos.hardware_infos.ip,created:a.infos.created_time,error:a.infos.has_error?a.infos.error_reason:""})))||[]},[e.data]),r=b.useMemo(()=>{var i;return((i=e.data)==null?void 0:i.map(a=>{const s=a.infos.hardware_infos,l=sl(s.cpu_core_usage),c=sl(s.memory),u=sl(s.memory_usage),d=sl(s.disk),f=sl(s.disk_usage);return{name:a.infos.name,cpu:`${l}%`,memory:`${u} / ${c}`,disk:`${f} / ${d}`,ioWait:"0.00",rpc:"100",netTP:"5",diskTP:"20"}}))||[]},[e.data]),o=b.useMemo(()=>[],[e.data]);return{...e,data:t,compData:n,runtimeMetricsData:r,requestData:o}},gq=()=>nt("cluster-clients",zG),hq=()=>{const e=nt("cluster-deps",HG),t=b.useMemo(()=>Object.keys(e.data||{}).map(n=>{const r=e.data[n],o="meta_type"in r?r.meta_type:r.mq_type,i=r.health_status?"":r.unhealthy_reason;return{name:`${n} [${o}]`,clusterStatus:i,members:r.members_health}}),[e.data]);return{...e,data:t}};var rd=(e=>(e.Node="none",e.Building="building",e.Completed="completed",e))(rd||{}),od=(e=>(e.Node="none",e.Loading="loading",e.Loaded="loaded",e))(od||{});const mq=()=>nt("databases",VG),vq=(e="default")=>nt(`collections-${e}`,()=>UG(e)),yq=e=>{var y;const[t,n]=e.split("-"),r=nt(`collections-${e}`,()=>GG(n,t)),o=(y=r.data)==null?void 0:y.collection_id,i=nt(o&&`collections-${o}-indexes`,()=>qG(o)),a=nt(o&&`collections-${o}-dcSegments`,()=>KG(o)),s=nt(o&&`collections-${o}-qcSegments`,()=>ZG(o)),l=nt("collections-currTarget",()=>sv()),c=nt("collections-currTarget",()=>lv()),u=nt("collections-dist",()=>D3()),d=(w,v)=>{var S;return(S=v==null?void 0:v.index_fields)!=null&&S.length?v.index_fields.every(m=>w.find(C=>C.index_id===m.index_id))||v.is_indexed?rd.Completed:rd.Building:rd.Node},f=(w,v)=>{var S,m;return(S=v==null?void 0:v.index_fields)!=null&&S.length&&v.index_fields.every(C=>w.find(_=>_.index_id===C.index_id))?od.Loaded:(m=v==null?void 0:v.index_fields)!=null&&m.length?od.Loading:od.Node},p=b.useMemo(()=>{var v,S;if(!a.data||!s.data||!i.data)return[];const w={};return(v=a.data)==null||v.forEach(m=>{w[m.segment_id]={dc:m}}),(S=s.data)==null||S.forEach(m=>{w[m.segment_id]={...w[m.segment_id],qc:m}}),Object.keys(w).map(m=>{var k,T,P,x;const{dc:C,qc:_}=w[m];return{id:((k=C||_)==null?void 0:k.segment_id)||"",nodeId:((T=C||_)==null?void 0:T.node_id.toString())||"",rowsCount:Number(((P=C||_)==null?void 0:P.num_of_rows)||0),state:C==null?void 0:C.state,level:((x=C||_)==null?void 0:x.level)||"",buildIndexState:d(i.data,C),loadIndexState:f(i.data,C)}})},[a.data,s.data,i.data]),h=()=>{var _;if(!u.data||!l.data||!c.data)return{name:"-"};const w=c.data.find(R=>R.collection_id===o),v=l.data.find(R=>R.collection_id===o);if(w&&!v)return{name:"Loading"};const{leader_views:S}=u.data,m=[],C=(_=v==null?void 0:v.segments)==null?void 0:_.every(R=>{var x,$;const k=(x=S.find(I=>I.collection_id===o))==null?void 0:x.growing_segments,T=($=S.find(I=>I.collection_id===o))==null?void 0:$.sealed_segments,P=(k==null?void 0:k.find(I=>I.segment_id===R.segment_id))||(T==null?void 0:T.find(I=>I.segment_id===R.segment_id));return P||m.push(R.segment_id),P});return v&&!C?{name:"Collection Segment Lack",desc:`There are segments need to load: ${m.join(", ")}`}:v?{name:"Loaded"}:{name:"-"}};return{collection:r.data,indexes:i.data,segments:p,collectionState:h()}},kp={isError:!1,message:"Ready"},OS=(e,t)=>{var o;const{collectionId:n,id:r}=e;return!!((o=t.find(i=>i.collection_id===n))!=null&&o.dm_channels.find(i=>i.flushed_segment_ids.includes(r)))},bq=(e,t,n)=>{const r=OS(e,n),o=OS(e,t),i=!!e.sourceData.distSegmentData,a=!!e.sourceData.leaderView;return r&&!i&&!a&&!o?{isError:!1,message:"Watch Channel Growing Generated"}:r&&i&&a&&!o?{isError:!1,message:"Load Growing"}:r&&i&&a&&o?{isError:!1,message:"Segment Ready"}:i&&a&&o?{isError:!1,message:"Growing Flushed"}:!r&&i&&a&&!o?{isError:!1,message:"Release Growing Sealed Loaded"}:!i&&!a&&o?{isError:!0,message:"Delegator Node Offline"}:kp},xq=e=>{const t=!!e.sourceData.nextTarSegment,n=!!e.sourceData.currTarSegment,r=!!e.sourceData.distSegmentData,o=!!e.sourceData.leaderView;return t&&!r&&!o&&!n?{isError:!1,message:"L0 Generated"}:t&&r&&o&&!n?{isError:!1,message:"L0 Loaded"}:t&&r&&o&&n?{isError:!1,message:"L0 Ready"}:r&&o&&n?{isError:!1,message:"L0 Compacted"}:!t&&r&&o&&!n?{isError:!1,message:"Release L0 Compact To Loaded"}:!r&&!o&&n?{isError:!0,message:"Delegator Node Offline"}:kp},Sq=e=>{const t=!!e.sourceData.nextTarSegment,n=!!e.sourceData.currTarSegment,r=!!e.sourceData.distSegmentData,o=!!e.sourceData.leaderView;return t&&!r&&!o&&!n?{isError:!1,message:"Load L1 L1 Generated"}:t&&r&&o&&!n?{isError:!1,message:"L1 Loaded"}:t&&r&&o&&n?{isError:!1,message:"L1 Ready"}:r&&o&&n?{isError:!1,message:"L1 Compacted"}:!t&&r&&o&&!n?{isError:!1,message:"Release L1 Compact To Loaded"}:r&&!o&&n?{isError:!0,message:"Add Router Delegator Node Offline"}:!r&&o&&!n?{isError:!0,message:"Remove Router Worker Node Offline"}:!r&&o&&n?{isError:!0,message:"Load L1 Worker Node Offline"}:r&&!o&&!n?{isError:!0,message:"Release L1 Delegator Node Offline"}:kp},wq=(e,t,n)=>e.map(r=>{let o=kp;return r.state==="Growing"&&(o=bq(r,t,n)),r.state==="Sealed"&&r.level==="L0"&&(o=xq(r)),r.state==="Sealed"&&r.level==="L1"&&(o=Sq(r)),{...r,stateDetail:o}}),Cq=e=>{const t=Object.keys(e).filter(n=>{var o;const r=(o=e[n])==null?void 0:o.state;return r&&r!=="SegmentStateNone"});return t.length?e[t[0]].state:"-"},_q=(e,t)=>{var p;const{distSegmentData:n,currTarSegment:r,nextTarSegment:o,queryNode:i,leaderView:a}=t,s=(n||r||o||i).collection_id,l=a!=null&&a.leader_id&&(a==null?void 0:a.leader_id)!=="Not Found"?a==null?void 0:a.leader_id:"-",c=(p=n||i)==null?void 0:p.node_id,u=n==null?void 0:n.num_of_rows,d=n==null?void 0:n.level,f=Cq(t);return{id:e,collectionId:s,leaderId:l,nodeId:c,state:f,rowsCount:u,level:d,sourceData:t}},Rq=(e,t,n,r)=>{var a;const o={};(a=e.segments)==null||a.forEach(s=>{o[s.segment_id]={...o[s.segment_id]||{},distSegmentData:s}}),e.leader_views.forEach(s=>{var l,c;(l=s.sealed_segments)==null||l.forEach(u=>{o[u.segment_id]={...o[u.segment_id]||{},leaderView:s}}),(c=s.growing_segments)==null||c.forEach(u=>{o[u.segment_id]={...o[u.segment_id]||{},leaderView:s}})}),t.forEach(s=>{var l;(l=s.segments)==null||l.forEach(c=>{o[c.segment_id]={...o[c.segment_id]||{},currTarSegment:c,currTarget:s}})}),n.forEach(s=>{var l;(l=s.segments)==null||l.forEach(c=>{o[c.segment_id]={...o[c.segment_id]||{},nextTarSegment:c,nextTarget:s}})}),r.forEach(s=>{o[s.segment_id]={...o[s.segment_id]||{},queryNode:s}});const i=Object.keys(o).map(s=>_q(s,o[s]));return wq(i,t,n)},Tq=()=>{const e=nt("query-dist",D3),t=nt("query-currTargets",sv),n=nt("query-nextTargets",lv),r=nt("query-seg",QG),o=nt("query-channel",YG),i=b.useMemo(()=>!e.data||!t.data||!n.data||!r.data?[]:Rq(e.data,t.data,n.data,r.data),[e.data,t.data,n.data,r.data]),a=b.useMemo(()=>!e.data||!t.data||!n.data||!o.data?[]:Eq(e.data,t.data,n.data,o.data),[e.data,t.data,n.data,o.data]);return{segsData:i,channelsData:a,isLoading:[e,t,n,r,o].some(s=>s.isLoading)}},Tu=e=>e.name||e.channel_name,Pq=e=>{const t=Object.keys(e).filter(n=>{var o;const r=(o=e[n])==null?void 0:o.watch_state;return r&&r!=="Healthy"});return t.length?e[t[0]].watch_state:"Healthy"},kq=e=>e.nextTarChannel&&!e.leaderView&&!e.currTarChannel?{isError:!1,message:"Sub Channel Load Collection"}:e.nextTarChannel&&e.leaderView&&!e.currTarChannel?{isError:!1,message:"Channel Watched"}:e.nextTarChannel&&e.leaderView&&e.currTarChannel?{isError:!1,message:"Channel Ready"}:!e.nextTarChannel&&e.leaderView&&!e.currTarChannel?{isError:!1,message:"UnSub Channel Release Collection"}:!e.leaderView&&e.currTarChannel?{isError:!0,message:"UnSub Channel Delegator Node Offline"}:{isError:!1,message:"Channel Ready"},$q=(e,t)=>{var d;const{distChannelData:n,currTarChannel:r,nextTarChannel:o,queryNode:i,leaderView:a}=t,s=(n||r||o||i).collection_id,l=a!=null&&a.leader_id&&(a==null?void 0:a.leader_id)!=="Not Found"?a==null?void 0:a.leader_id:"-",c=(d=n||i)==null?void 0:d.node_id,u=Pq(t);return{name:e,collectionId:s,leaderId:l,nodeId:c,watchState:u,stateDetail:kq(t),sourceData:t}},Eq=(e,t,n,r)=>{var i,a;const o={};return(i=e.dm_channels)==null||i.forEach(s=>{const l=Tu(s);o[l]={...o[l]||{},distChannelData:s}}),t.forEach(s=>{var l;(l=s.dm_channels)==null||l.forEach(c=>{const u=Tu(c);o[u]={...o[u]||{},currTarChannel:c}})}),n.forEach(s=>{var l;(l=s.dm_channels)==null||l.forEach(c=>{const u=Tu(c);o[u]={...o[u]||{},nextTarChannel:c}})}),r.forEach(s=>{const l=Tu(s);o[l]={...o[l]||{},queryNode:s}}),(a=e.leader_views)==null||a.forEach(s=>{s.channel&&(o[s.channel]={...o[s.channel]||{},leaderView:s})}),Object.keys(o).map(s=>$q(s,o[s]))},Mq=()=>nt("query-replicas",XG),Iq=()=>nt("query-rscGroups",JG),Oq=()=>{const e=nt("query-currTargets",sv),t=nt("query-nextTargets",lv),n=b.useMemo(()=>!e.data||!t.data?[]:Lq(e.data,t.data),[e.data,t.data]),r=b.useMemo(()=>!e.data||!t.data?[]:Aq(e.data,t.data),[]);return{isLoading:e.isLoading||t.isLoading,targetSeg:n,targetChannel:r}};function Lq(e,t){const n=[];return e.forEach(r=>{r.segments.forEach(o=>{o.targetScope="current",n.push(o)})}),t.forEach(r=>{r.segments.forEach(o=>{o.targetScope="next",n.push(o)})}),n}function Aq(e,t){const n=[];return e.forEach(r=>{r.dm_channels&&r.dm_channels.forEach(o=>{o.targetScope="current",n.push(o)})}),t.forEach(r=>{r.dm_channels&&r.dm_channels.forEach(o=>{o.targetScope="next",n.push(o)})}),n}const Nq=()=>{const e=nt("data-dist",eq),t=nt("data-seg",nq),n=nt("data-channel",tq),r=b.useMemo(()=>!e.data||!n.data?{data:[],notifications:[]}:Dq(n.data,e.data),[e.data,n.data]);return{seg:b.useMemo(()=>!e.data||!t.data?{data:[],notifications:[]}:jq(t.data,e.data),[e.data,t.data]),channel:r,isLoading:e.isLoading||t.isLoading||n.isLoading}},Dq=(e,t)=>{const n={},r=[],o=new Set(t.dm_channels.map(i=>i.channel_name));return e.forEach(i=>{const a=isNaN(Number(i.node_id))?i.node_id:`datanode-${i.node_id}`;i.node_id=a;const s={...i};o.has(i.name)||(s.notification="Not found in DataCoord",r.push(s)),n[i.name]=s}),t.dm_channels.forEach(i=>{const a=isNaN(Number(i.node_id))?i.node_id:`datacoord-${i.node_id}`;i.node_id=a;const s=i.channel_name;if(n[s])n[s].watch_state!=="Healthy"&&(i.watch_state=n[s].watch_state),n[s]={...n[s],...i};else{const l={...i,notification:"Not found in DataNode"};r.push(l),n[s]=l}}),{data:Object.values(n),notifications:r}},jq=(e,t)=>{const n={},r=[],o=new Set(t.segments.map(i=>i.segment_id));return e.forEach(i=>{var l;const a=isNaN(Number(i.node_id))?i.node_id:`datanode-${i.node_id}`;i.node_id=a;const s={...i};!o.has(i.segment_id)&&((l=i.level)==null?void 0:l.toLowerCase())!=="l0"&&(s.notification="Not found in DataCoord",r.push(s)),n[i.segment_id]=s}),t.segments.forEach(i=>{const a=isNaN(Number(i.node_id))?i.node_id:`datacoord-${i.node_id}`;i.node_id=a;const s=i.segment_id;if(n[s])n[s]={...n[s],...i};else{const l={...i,notification:"Not found in DataNode"};i.state!=="Dropped"&&i.state!=="Flushed"&&r.push(l),n[s]=l}}),{data:Object.values(n),notifications:r}},Fq=()=>nt("tasks",rq),Bq=()=>nt("compaction",oq),zq=()=>nt("buildIndex",iq),Hq=()=>nt("import",aq),Vq=()=>nt("sync",sq),Wq=()=>nt("slow-requests",lq),Uq=()=>{const e=nt("configurations",cq);return{...e,data:Object.keys(e.data||{}).map(t=>({key:t,value:e.data[t]}))}},Gq="_section_1fkka_1",qq="_title_1fkka_5",Kq="_separator_1fkka_8",oh={section:Gq,title:qq,separator:Kq},St=e=>{const{title:t,level:n=3,children:r,className:o}=e,i=()=>rt.createElement(`h${n}`,{className:oh.title,children:t});return g.jsxs("div",{className:He(oh.section,o),children:[i(),g.jsx("hr",{className:oh.separator}),r]})},ih={"filter-searcher":"_filter-searcher_162nl_1","filter-searcher-label":"_filter-searcher-label_162nl_5","filter-searcher-input":"_filter-searcher-input_162nl_9"},Zq=e=>{var u;const{defaultFilter:t,filters:n,className:r,onSearch:o}=e,[i,a]=b.useState({by:t}),s=d=>{a(()=>({by:d.value}))},l=d=>{a(f=>({...f,q:d.target.value}))},c=n.length?(u=n.find(d=>d.value===(i.by||n[0].value)))==null?void 0:u.label.toLowerCase():"";return b.useEffect(()=>{o(i)},[i.q]),g.jsxs("div",{className:He(ih["filter-searcher"],r),children:[g.jsx("div",{className:ih["filter-searcher-label"],children:"Filter: "}),n.length>1&&g.jsx(KD,{defaultValue:t||n[0].value,options:n,onChange:s,onPointerEnterCapture:IS,onPointerLeaveCapture:IS}),g.jsx(D1,{classes:{root:ih["filter-searcher-input"]},prefixComponent:g.jsx(HA,{}),type:"number",value:i.q,onChange:l,placeholder:c?`Search by ${c}`:"Search",onPointerEnterCapture:()=>{},onPointerLeaveCapture:()=>{}})]})},Qq="_wrapper_1j79b_1",ll={wrapper:Qq,"json-ellipsis":"_json-ellipsis_1j79b_7","json-ellipsis-brace":"_json-ellipsis-brace_1j79b_10","json-ellipsis-dot":"_json-ellipsis-dot_1j79b_14"},cv=e=>{const{json:t,ellipsis:n}=e,r=t?JSON.stringify(t,null,2):"",o=g.jsx("pre",{className:ll.wrapper,children:r});return n?g.jsx(bp,{title:o,placement:"top",children:g.jsxs("span",{className:ll["json-ellipsis"],children:[g.jsx("span",{className:ll["json-ellipsis-brace"],children:"{"}),g.jsx("span",{className:ll["json-ellipsis-dot"],children:"..."}),g.jsx("span",{className:ll["json-ellipsis-brace"],children:"}"})]})}):o},Yq="_state_v8a2b_12",Xq="_none_v8a2b_16",Jq="_building_v8a2b_19",eK="_loading_v8a2b_19",tK="_completed_v8a2b_22",nK="_loaded_v8a2b_22",rK="_healthy_v8a2b_22",oK="_deleted_v8a2b_25",iK="_icon_v8a2b_28",ah={state:Yq,none:Xq,false:"_false_v8a2b_16",building:Jq,loading:eK,completed:tK,loaded:nK,healthy:rK,true:"_true_v8a2b_22",deleted:oK,icon:iK},zo=e=>{const t=()=>{if(e.detail)return g.jsx(Mc,{tooltip:{title:e.detail,placement:"top"},children:g.jsx(YA,{className:ah.icon,size:16})})};return g.jsxs("span",{className:He(ah.state,ah[e.value.toLowerCase()]),children:[e.label||e.value,t()]})},qt=e=>{const[t,n]=b.useState({}),r=b.useMemo(()=>e.cols.filter(s=>s.searchable),[e.cols]),o=b.useMemo(()=>{var c;if(!t.by||!t.q)return e.list||[];const{searchBy:s}=r.find(u=>u.field===t.by)||{};if(s)return s==null?void 0:s(t.q,e.list||[]);const l=t.by;return((c=e.list)==null?void 0:c.filter(u=>{var d;return(d=u[l])==null?void 0:d.toString().includes(t.q||"")}))||[]},[t,e.list]),i=s=>{var l;n(s),(l=e.onSearch)==null||l.call(e,s)};return{list:o,renderSearcher:s=>{const l=r.map(c=>({label:c.headerName,value:c.field}));return g.jsx(Zq,{filters:l,onSearch:i,...s})}}},aK="_status_19mpp_12",sK="_error_19mpp_16",Qt={status:aK,error:sK,"comp-tabs":"_comp-tabs_19mpp_20","text-content":"_text-content_19mpp_25","member-list":"_member-list_19mpp_30","member-item-label":"_member-item-label_19mpp_34","helper-link":"_helper-link_19mpp_43"},lK=()=>{var R;const e=pq(),t=gq(),n=hq(),[r,o]=b.useState("base"),i=k=>g.jsx("div",{className:Qt["text-content"],children:k||"-"}),a=k=>i(k.getValue()),s=b.useMemo(()=>[{field:"name",headerName:"Attribute"},{field:"value",headerName:"Value",renderCell:a},{field:"desc",headerName:"Description",renderCell:a}],[]),l=b.useMemo(()=>[{label:"Base Stats",value:"base"},{label:"Runtime Metrics",value:"metrics"}],[]),c=k=>{const T=k||"Healthy",P=!!k;return g.jsx("span",{className:He(Qt.status,P&&Qt.error),children:T})},u=b.useMemo(()=>[{field:"name",headerName:"Node Name",renderCell:a,searchable:!0},{field:"ip",headerName:"Node IP",renderCell:a},{field:"created",headerName:"Start Time",renderCell:a},{field:"error",headerName:"Node Status",renderCell:T=>i(c(T.getValue()))}],[]),d=qt({cols:u,list:e.compData}),f=b.useMemo(()=>[{field:"name",headerName:"Node Name",renderCell:a,searchable:!0},{field:"cpu",headerName:"CPU Usage",renderCell:a},{field:"memory",headerName:"Usage / Memory (GB)",renderCell:a},{field:"disk",headerName:"Usage / Disk (GB)",renderCell:a},{field:"ioWait",headerName:"IO wait",renderCell:a},{field:"rpc",headerName:"RPC Ops/s",renderCell:a},{field:"netTP",headerName:"Network Throughput (MB/s)",renderCell:a},{field:"diskTP",headerName:"Disk Throughput (MB/s)",renderCell:a}],[]),p=qt({cols:f,list:e.runtimeMetricsData}),h=(k,T)=>{o(T)},y=b.useMemo(()=>[{field:"host",headerName:"Host",searchable:!0},{field:"user",headerName:"User",searchable:!0},{field:"sdk_type",headerName:"SDK Type",searchable:!0},{field:"sdk_version",headerName:"SDK Version",searchable:!0},{field:"local_time",headerName:"Local Time",renderCell:a},{field:"lastActiveTime",headerName:"Last Active Time",renderCell:a}],[]),w=qt({cols:y,list:(R=t.data)==null?void 0:R.map(k=>({...k,lastActiveTime:k.reserved.last_active_time}))}),v=k=>{const T=g.jsx("span",{className:Qt["member-endpoint"],children:k.endpoint}),P=c(k.health?"":"Unhealthy");return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:Qt["member-item-label"],children:"Endpoint:"}),T,g.jsx("span",{className:Qt["member-item-label"],children:"Health:"}),P]})},S=k=>{const T=k.getValue()||[];if(!T.length)return"-";const P=T.map(x=>g.jsx("li",{className:Qt["member-item"],children:v(x)},x.endpoint));return g.jsx("ul",{className:Qt["member-list"],children:P})},m=b.useMemo(()=>[{field:"name",headerName:"Sys Name",searchable:!0},{field:"clusterStatus",headerName:"Cluster Status",maxWidth:200,renderCell:T=>i(c(T.getValue()))},{field:"members",headerName:"Members Status",renderCell:S}],[]),C=qt({cols:m,list:n.data}),_=()=>{var x,$;const k=((x=e.compData)==null?void 0:x.every(I=>!I.error))&&(($=n.data)==null?void 0:$.every(I=>{var O;return!I.clusterStatus&&!((O=I.members)!=null&&O.some(D=>!D.health))})),T=k?"Your Cluster is running well!":g.jsxs(g.Fragment,{children:["Your Cluster is experiencing issues!"," ",g.jsxs("a",{className:Qt["helper-link"],href:AG,target:"_blank",children:["Ask a question in community",g.jsx(_m,{size:14})]})," ",g.jsxs("a",{className:Qt["helper-link"],href:NG,target:"_blank",children:["Contact Zilliz Experts",g.jsx(_m,{size:14})]})]}),P=k?"success":"error";return g.jsx(N1,{severity:P,children:T})};return g.jsxs("div",{className:He("page-wrapper",Qt.info),children:[g.jsx("div",{className:Qt.alerts,children:_()}),g.jsx(St,{title:"System Information",children:g.jsx(pt,{classes:{tableContainer:He(Qt["sys-info"],"table-view")},loading:e.isLoading,columns:s,rows:e.data})}),g.jsx(St,{title:"Component Information",children:g.jsxs(g.Fragment,{children:[g.jsx(XD,{className:Qt["comp-tabs"],value:r,labelConfigs:l,handleChange:h,tabsType:"background"}),r==="base"&&g.jsxs(g.Fragment,{children:[d.renderSearcher({defaultFilter:"name",className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(Qt["comp-info"],"table-view")},loading:e.isLoading,columns:u,rows:d.list})]}),r==="metrics"&&g.jsxs(g.Fragment,{children:[p.renderSearcher({defaultFilter:"name",className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(Qt["comp-info"],"table-view")},loading:e.isLoading,columns:f,rows:p.list})]})]})}),g.jsx(St,{title:"Connected Clients",children:g.jsxs(g.Fragment,{children:[w.renderSearcher({defaultFilter:"host",className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(Qt.clients,"table-view")},loading:t.isLoading,columns:y,rows:w.list})]})}),g.jsx(St,{title:"System Dependencies",children:g.jsxs(g.Fragment,{children:[C.renderSearcher({defaultFilter:"name",className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(Qt["sys-deps"],"table-view")},loading:n.isLoading,columns:m,rows:C.list||[]})]})})]})},cK="_queryable_12ixl_12",uK="_error_12ixl_15",dK="_detail_12ixl_23",fK="_clear_12ixl_28",pK="_loading_12ixl_1",gK="_percentage_12ixl_73",hK="_unknown_12ixl_73",mn={queryable:cK,error:uK,"collection-filter":"_collection-filter_12ixl_19",detail:dK,clear:fK,"json-detail-wrapper":"_json-detail-wrapper_12ixl_40","json-detail-content":"_json-detail-content_12ixl_40","json-detail-loading":"_json-detail-loading_12ixl_46","json-detail-loading-icon":"_json-detail-loading-icon_12ixl_50",loading:pK,"collection-filter-wrapper":"_collection-filter-wrapper_12ixl_57","collection-name":"_collection-name_12ixl_65",percentage:gK,unknown:hK},mK=e=>{const{fetcher:t,uniqKey:n,className:r,errorMessage:o}=e,i=nt(n,t),a=b.useMemo(()=>i.data?i.error?o:JSON.stringify(i.data,null,2):"",[i.data,o]),s=()=>i.isLoading?g.jsx("div",{className:mn["json-detail-loading"],children:g.jsx(zA,{className:mn["json-detail-loading-icon"]})}):g.jsx("pre",{className:He(mn["json-detail-content"],i.error&&mn.error),children:a});return g.jsx("div",{className:He(mn["json-detail-wrapper"],r),children:s()})},vK=()=>{var S,m,C;const e=mq(),[t,n]=b.useState({}),r=vq(t.db),[o,i]=b.useState({page:0,pageSize:10}),[a,s]=b.useState({page:0,pageSize:10}),l=b.useMemo(()=>[{field:"name",headerName:"Name",searchable:!0},{field:"id",headerName:"ID",renderCell:R=>R.getValue()||"-",searchable:!0},{field:"created",headerName:"Created Time"}],[]),c=qt({cols:l,list:e.data,onSearch:()=>{i(_=>({..._,page:0}))}}),u=_=>{const R=_.getValue();return!R&&R!==0?"-":R==="unknown"?g.jsx("span",{className:He(mn.percentage,mn.unknown),children:"Unknown"}):g.jsxs("span",{className:mn.percentage,children:[_.getValue(),"%"]})},d=_=>{const R=_.data,k=t.db||"default",T=R.name,P=`${k}-${T}`;return g.jsx(a2,{className:mn["collection-name"],to:`/collections/${P}`,children:R.name})},f=b.useMemo(()=>[{field:"name",headerName:"Name",searchable:!0,renderCell:d},{field:"id",headerName:"Collection ID",searchable:!0},{field:"created",headerName:"Created Time"},{field:"memoryPercentage",headerName:"Loaded Percentages",renderCell:u}],[]),p=qt({cols:f,list:r.data,onSearch:()=>{s(_=>({..._,page:0}))}}),h=_=>{i(R=>({...R,page:_}))},y=_=>{s(R=>({...R,page:_}))},w=_=>g.jsx(mK,{className:mn.detail,uniqKey:`database-detail-${_.name}`,fetcher:()=>WG(_.name),errorMessage:"Failed to load database details."}),v=(_,R)=>{n(k=>({...k,db:R==null?void 0:R.value}))};return g.jsxs("div",{className:He("page-wrapper",mn.collections),children:[g.jsx(St,{title:"Database",children:g.jsxs(g.Fragment,{children:[c.renderSearcher({defaultFilter:"name",className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(mn["sys-deps"],"table-view")},columns:l,loading:e.isLoading,getRowId:_=>_.id,rows:c.list,renderDetail:w,page:o.page,pageSize:o.pageSize,paginationMode:"client",onPageChange:h,rowCount:((S=c.list)==null?void 0:S.length)||0})]})}),g.jsx(St,{title:"Collection",children:g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:mn["collection-filter-wrapper"],children:[g.jsx(Z_,{classes:{root:mn["collection-filter"]},onPointerEnterCapture:()=>{},onPointerLeaveCapture:()=>{},placeholder:"Search database",inputParams:{placeholder:"Search database..."},clearIcon:g.jsx(VA,{className:mn.clear,color:"secondary"}),options:((m=e.data)==null?void 0:m.map(_=>({label:_.name,value:_.name})))||[],onChange:v}),p.renderSearcher({defaultFilter:"name",className:"table-view-filter-searcher"})]}),g.jsx(pt,{classes:{tableContainer:He(mn["sys-deps"],"table-view")},columns:f,loading:r.isLoading,getRowId:_=>_.id,rows:p.list||[],page:a.page,pageSize:a.pageSize,paginationMode:"client",showPagination:!0,onPageChange:y,rowCount:(C=p.list)==null?void 0:C.length})]})})]})},Ri={},sh={},yK=()=>{const e=Oq(),[t,n]=b.useState({page:0,pageSize:10}),[r,o]=b.useState({page:0,pageSize:10}),i=f=>{const p=f.getValue();return(p==null?void 0:p.join(", "))||"-"},a=b.useMemo(()=>[{field:"segment_id",headerName:"Segment ID"},{field:"collection_id",headerName:"Collection ID",searchable:!0},{field:"partition_id",headerName:"Partition ID"},{field:"channel",headerName:"Channel",searchable:!0},{field:"num_of_rows",headerName:"Rows"},{field:"state",headerName:"State"},{field:"targetScope",headerName:"TargetScope"}],[]),s=qt({cols:a,list:e.targetSeg,onSearch:()=>{n(f=>({...f,page:0}))}}),l=b.useMemo(()=>[{field:"channel_name",headerName:"Channel Name",searchable:!0},{field:"collection_id",headerName:"Collection ID",searchable:!0},{field:"node_id",headerName:"Node ID",searchable:!0},{field:"version",headerName:"Version"},{field:"unflushed_segment_ids",headerName:"Unflushed Segments",renderCell:i},{field:"flushed_segment_ids",headerName:"Flushed Segments",renderCell:i},{field:"dropped_segment_ids",headerName:"Dropoed Segments",renderCell:i},{field:"targetScope",headerName:"TargetScope"}],[]),c=qt({cols:l,list:e.targetChannel,onSearch:()=>{o(f=>({...f,page:0}))}}),u=f=>{n(p=>({...p,page:f}))},d=f=>{o(p=>({...p,page:f}))};return g.jsxs("div",{className:He("page-wrapper",sh.query),children:[g.jsx(St,{title:"Target Segments",children:g.jsxs(g.Fragment,{children:[s.renderSearcher({defaultFilter:"collection_id",className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(sh.segs,"table-view")},columns:a,loading:e.isLoading,getRowId:f=>f.segment_id,rows:s.list,page:t.page,pageSize:t.pageSize,paginationMode:"client",showPagination:!0,onPageChange:u,rowCount:s.list.length})]})}),g.jsx(St,{title:"Target Channels",children:g.jsxs(g.Fragment,{children:[c.renderSearcher({defaultFilter:"collection_id",className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(sh.channels,"table-view")},columns:l,loading:e.isLoading,getRowId:f=>f.name,rows:c.list,page:r.page,pageSize:r.pageSize,paginationMode:"client",showPagination:!0,onPageChange:d,rowCount:c.list.length})]})})]})},bK=()=>{const e=Tq(),t=Mq(),n=Iq(),[r,o]=b.useState({page:0,pageSize:10}),[i,a]=b.useState({page:0,pageSize:10}),s=_=>{const R=_.getValue();return g.jsx("div",{className:He(Ri["state-detail"],(R==null?void 0:R.isError)&&Ri.error),children:R==null?void 0:R.message})},l=b.useMemo(()=>[{field:"id",headerName:"Segment ID",searchable:!0},{field:"collectionId",headerName:"Collection ID",searchable:!0},{field:"leaderId",headerName:"Leader ID",searchable:!0},{field:"nodeId",headerName:"Node ID",searchable:!0},{field:"rowsCount",headerName:"Rows",renderCell:R=>R.getValue()||"-"},{field:"state",headerName:"State",renderCell:R=>g.jsx(zo,{value:R.getValue()})},{field:"stateDetail",headerName:"State Detail",renderCell:s}],[]),c=qt({cols:l,list:e.segsData,onSearch:()=>{o(_=>({..._,page:0}))}}),u=_=>{const{data:R}=_;return R.name||R.channel_name},d=b.useMemo(()=>[{field:"name",headerName:"Channel Name",renderCell:u,searchable:!0},{field:"collectionId",headerName:"Collection ID",searchable:!0},{field:"leaderId",headerName:"Leader ID",searchable:!0},{field:"nodeId",headerName:"Node ID",searchable:!0,renderCell:R=>R.getValue()||"-"},{field:"watchState",headerName:"Watch State",renderCell:R=>g.jsx(zo,{value:R.getValue()})},{field:"stateDetail",headerName:"State Detail",renderCell:s}],[]),f=qt({cols:d,list:e.channelsData,onSearch:()=>{a(_=>({..._,page:0}))}}),p=_=>{const R=_.getValue();return(R==null?void 0:R.join(", "))||"-"},h=b.useMemo(()=>[{field:"ID",headerName:"ID",searchable:!0},{field:"collectionID",headerName:"Collection ID",renderCell:R=>R.getValue()||"-",searchable:!0},{field:"db_name",headerName:"DB Name",searchable:!0,renderCell:R=>R.getValue()||"-"},{field:"rw_nodes",headerName:"RW Nodes",renderCell:p},{field:"ro_nodes",headerName:"RO Nodes",renderCell:p},{field:"resource_group",headerName:"Resource Group",renderCell:R=>R.getValue()||"-",searchable:!0}],[]),y=qt({cols:h,list:t.data}),w=_=>{const R=_.getValue();return g.jsx(cv,{json:R})},v=b.useMemo(()=>[{field:"name",headerName:"Name",searchable:!0},{field:"nodes",headerName:"Nodes",renderCell:p},{field:"cfg",headerName:"Cfg",renderCell:w}],[]),S=qt({cols:v,list:n.data}),m=_=>{o(R=>({...R,page:_}))},C=_=>{a(R=>({...R,page:_}))};return g.jsxs("div",{className:He("page-wrapper",Ri.query),children:[g.jsx(St,{title:"Segments",children:g.jsxs(g.Fragment,{children:[c.renderSearcher({className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(Ri.segs,"table-view")},columns:l,loading:e.isLoading,getRowId:_=>_.segment_id,rows:c.list,page:r.page,pageSize:r.pageSize,paginationMode:"client",showPagination:!0,onPageChange:m,rowCount:c.list.length||0})]})}),g.jsx(St,{title:"Channels",children:g.jsxs(g.Fragment,{children:[f.renderSearcher({className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(Ri.channels,"table-view")},columns:d,loading:e.isLoading,getRowId:_=>_.name,rows:f.list,page:i.page,pageSize:i.pageSize,paginationMode:"client",showPagination:!0,onPageChange:C,rowCount:f.list.length})]})}),g.jsx(St,{title:"Replicas",children:g.jsxs(g.Fragment,{children:[y.renderSearcher({className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(Ri.replicas,"table-view")},columns:h,loading:t.isLoading,getRowId:_=>_.ID,rows:y.list||[],showPagination:!1})]})}),g.jsx(St,{title:"Resource Groups",children:g.jsxs(g.Fragment,{children:[S.renderSearcher({className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(Ri.resourceGroups,"table-view")},columns:v,loading:n.isLoading,getRowId:_=>_.name,rows:S.list||[],showPagination:!1})]})})]})},cl={"noty-list":"_noty-list_uuq1r_1","noty-item-content":"_noty-item-content_uuq1r_7"},xK=()=>{const e=Nq(),[t,n]=b.useState({page:0,pageSize:10}),[r,o]=b.useState({page:0,pageSize:10}),i=w=>{const{data:v}=w;return v.name||v.channel_name},a=w=>{const v=w.getValue();return new Date(v).getFullYear()===1970?"N/A":v||"N/A"},s=b.useMemo(()=>[{field:"channel_name",headerName:"Channel Name",searchable:!0,renderCell:i},{field:"collection_id",headerName:"Collection ID",searchable:!0},{field:"watch_state",headerName:"Watch State",renderCell:a},{field:"node_id",headerName:"Node ID"},{field:"check_point_ts",headerName:"Checkpoint Ts",renderCell:a}],[]),l=b.useMemo(()=>[{field:"segment_id",headerName:"Segment ID",searchable:!0},{field:"collection_id",headerName:"Collection ID",searchable:!0},{field:"partition_id",headerName:"Partition ID"},{field:"channel",headerName:"Channel",searchable:!0},{field:"num_of_rows",headerName:"Num of Rows"},{field:"state",headerName:"State"},{field:"level",headerName:"Level",searchable:!0}],[]),c=qt({cols:l,list:e.seg.data,onSearch:()=>{o(w=>({...w,page:0}))}}),u=qt({cols:s,list:e.channel.data,onSearch:()=>{n(w=>({...w,page:0}))}}),d=w=>{o(v=>({...v,page:w}))},f=w=>{n(v=>({...v,page:w}))},p=w=>{const v=w==null?void 0:w.map(S=>g.jsx(N1,{severity:"warning",children:g.jsxs("div",{className:cl["noty-item-content"],children:[g.jsxs("strong",{children:[S.prefix,":"]}),g.jsx("span",{children:S.name}),g.jsx("strong",{children:S.msg})]})},S.name));return g.jsx("div",{className:cl["noty-list"],children:v})},h=e.channel.notifications.map(w=>({name:w.name||w.channel_name,prefix:"Channel",msg:w.notification})),y=e.seg.notifications.map(w=>({name:w.segment_id,prefix:"Segment",msg:w.notification}));return g.jsxs("div",{className:He("page-wrapper",cl.data),children:[g.jsx(St,{title:"Segments",children:g.jsxs(g.Fragment,{children:[c.renderSearcher({className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(cl[" = useTableFilter("],"table-view")},columns:l,loading:e.isLoading,getRowId:w=>w.name,rows:c.list,page:r.page,pageSize:r.pageSize,paginationMode:"client",showPagination:!0,onPageChange:d,rowCount:c.list.length}),p(y)]})}),g.jsx(St,{title:"Channels",children:g.jsxs(g.Fragment,{children:[u.renderSearcher({className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(cl.channels,"table-view")},columns:s,loading:e.isLoading,getRowId:w=>w.segment_id,rows:u.list,page:t.page,pageSize:t.pageSize,paginationMode:"client",showPagination:!0,onPageChange:f,rowCount:u.list.length}),p(h)]})})]})},Ti={"text-content":"_text-content_1tkuh_1"},SK=()=>{const e=Fq(),t=Bq(),n=zq(),r=Hq(),o=Vq(),i=C=>g.jsx("div",{className:Ti["text-content"],children:C||"-"}),a=C=>{const _=C.getValue();return(_==null?void 0:_.join(", "))||"-"},s=b.useMemo(()=>[{field:"task_name",headerName:"Task Name",searchable:!0},{field:"collection_id",headerName:"Collection ID",searchable:!0},{field:"task_type",headerName:"Task Type",searchable:!0},{field:"task_status",headerName:"Task Status",searchable:!0},{field:"actions",headerName:"Actions",renderCell:_=>i(a(_))}],[]),l=qt({cols:s,list:e.data}),c=(C,_)=>R=>{const{[C]:k,[_]:T}=R.data;return wK(Yd(k),Yd(T))},u=b.useMemo(()=>[{field:"plan_id",headerName:"Plan ID"},{field:"collection_id",headerName:"Collection ID",searchable:!0},{field:"type",headerName:"Type",searchable:!0},{field:"state",headerName:"State",searchable:!0},{field:"start_time",headerName:"Start Time"},{field:"execution_time",headerName:"Execution Time",renderCell:c("start_time","end_Time")},{field:"total_rows",headerName:"Total Rows"},{field:"input_segments",headerName:"Input Segments",renderCell:a},{field:"result_segments",headerName:"Result Segments",renderCell:a}],[]),d=qt({cols:u,list:t.data}),f=b.useMemo(()=>[{field:"index_id",headerName:"Index ID",searchable:!0},{field:"collection_id",headerName:"Collection ID",searchable:!0},{field:"segment_id",headerName:"Segment ID",searchable:!0},{field:"build_id",headerName:"Build ID",searchable:!0},{field:"index_state",headerName:"Index State"},{field:"index_size",headerName:"Index Size",renderCell:_=>_.getValue()||"-"},{field:"__",headerName:"Execution Time",renderCell:c("create_time","finished_time")},{field:"create_time",headerName:"Create Time"}],[]),p=qt({cols:f,list:n.data}),h=C=>{const{state:_,reason:R}=C.data;return _==="Failed"?R:_},y=b.useMemo(()=>[{field:"job_id",headerName:"Job ID",searchable:!0},{field:"task_id",headerName:"Task ID",searchable:!0},{field:"collection_id",headerName:"Collection ID",searchable:!0},{field:"node_id",headerName:"Node ID",searchable:!0},{field:"state",headerName:"State",searchable:!0,renderCell:h,searchBy:(_,R)=>R.filter(k=>h({data:k}).toLowerCase().includes(_.toLowerCase().trim()))},{field:"task_type",headerName:"Task Type"},{field:"created_time",headerName:"Created Time"},{field:"execution_time",headerName:"Execution Time",renderCell:c("created_time","complete_time")}],[]),w=qt({cols:y,list:r.data}),v=C=>{const _=C.getValue();return _?`datanode-${_}`:"-"},S=b.useMemo(()=>[{field:"segment_id",headerName:"Segment ID",searchable:!0},{field:"batch_rows",headerName:"Batch Rows"},{field:"segment_level",headerName:"Segment Level",searchable:!0},{field:"ts_from",headerName:"Timestamp From"},{field:"ts_to",headerName:"Timestamp To"},{field:"delta_row_count",headerName:"Delta Row Count"},{field:"flush_size",headerName:"Flush Size"},{field:"running_time",headerName:"Running Time"},{field:"node_id",headerName:"Node ID",searchable:!0,renderCell:v}],[]),m=qt({cols:S,list:o.data});return g.jsxs("div",{className:He("page-wrapper",Ti.tasks),children:[g.jsx(St,{title:"QueryCoord Tasks",children:g.jsxs(g.Fragment,{children:[l.renderSearcher({defaultFilter:"task_name",className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(Ti["tasks-table"],"table-view")},columns:s,loading:e.isLoading,getRowId:C=>C.task_name,rows:l.list||[]})]})}),g.jsx(St,{title:"Compaction Tasks",children:g.jsxs(g.Fragment,{children:[d.renderSearcher({defaultFilter:"collection_id",className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(Ti.compaction,"table-view")},columns:u,loading:t.isLoading,getRowId:C=>C.plan_id,rows:d.list||[]})]})}),g.jsx(St,{title:"Index Build Tasks",children:g.jsxs(g.Fragment,{children:[p.renderSearcher({defaultFilter:"index_id",className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(Ti["index-build"],"table-view")},columns:f,loading:n.isLoading,getRowId:C=>C.index_id,rows:p.list||[]})]})}),g.jsx(St,{title:"Import Tasks",children:g.jsxs(g.Fragment,{children:[w.renderSearcher({defaultFilter:"job_id",className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(Ti.import,"table-view")},columns:y,loading:r.isLoading,getRowId:C=>C.job_id,rows:w.list||[]})]})}),g.jsx(St,{title:"Sync Tasks",children:g.jsxs(g.Fragment,{children:[m.renderSearcher({defaultFilter:"segment_id",className:"table-view-filter-searcher"}),g.jsx(pt,{classes:{tableContainer:He(Ti.sync,"table-view")},columns:S,loading:o.isLoading,getRowId:C=>C.segment_id,rows:m.list||[]})]})})]})};function wK(e,t){const n=t.diff(e),r=Math.floor(n/1e3),o=Math.floor(r/60),i=Math.floor(o/60),a=Math.floor(i/24),s=Math.floor(a/30),l=Math.floor(s/12);return l>0?`${l}year${l>1?"s":""}`:s>0?`${s} month${s>1?"s":""}`:a>0?`${a} day${a>1?"s":""}`:i>0?`${i} h`:o>0?`${o} m`:r>0?`${r} s`:"< 1s"}const CK="_notice_q5p05_5",lh={"slow-requests":"_slow-requests_q5p05_1","sr-table":"_sr-table_q5p05_1",notice:CK},_K=()=>{const e=Wq(),t=r=>g.jsx(cv,{ellipsis:!0,json:r.getValue()}),n=b.useMemo(()=>[{field:"time",headerName:"Time"},{field:"trace_id",headerName:"Trace ID"},{field:"type",headerName:"Request"},{field:"user",headerName:"User",renderCell:o=>o.getValue()||"unknown"},{field:"database",headerName:"Database"},{field:"collection",headerName:"Collection"},{field:"query_params",headerName:"Parameters",renderCell:t},{field:"duration",headerName:"Duration"}],[]);return g.jsx("div",{className:He("page-wrapper",lh["slow-requests"]),children:g.jsx(St,{title:"Slow Requests",children:g.jsxs(g.Fragment,{children:[g.jsx("div",{className:lh.notice,children:g.jsxs(N1,{severity:"warning",children:[g.jsx("strong",{children:"Notice: "})," Slow request in the last 5 minutes."]})}),g.jsx(pt,{classes:{tableContainer:He(lh["sr-table"],"table-view")},columns:n,loading:e.isLoading,getRowId:r=>r.task_name,rows:e.data||[]})]})})})},ch={},RK=()=>{const e=Uq(),[t,n]=b.useState({page:0,pageSize:10}),[r,o]=b.useState({}),i=u=>{n(d=>({...d,page:u}))},a=u=>g.jsx("div",{className:ch["text-content"],children:u||"-"}),s=b.useMemo(()=>[{field:"key",headerName:"Attribute"},{field:"value",headerName:"Value",renderCell:d=>a(d.getValue())}],[]),l=u=>{o(d=>({...d,q:u.target.value}))},c=b.useMemo(()=>{const u=r.q||"";return(e.data||[]).filter(d=>{const f=d.key.toLowerCase().includes(u.toLowerCase()),p=d.value.toLowerCase().includes(u.toLowerCase());return f||p})},[e.data,r]);return g.jsx("div",{className:He("page-wrapper",ch["slow-requests"]),children:g.jsx(St,{title:"Milvus Configurations",children:g.jsxs(g.Fragment,{children:[g.jsx(D1,{classes:{root:"table-view-searcher"},type:"number",value:r.q,onChange:l,placeholder:"Search attribute or value...",onPointerEnterCapture:()=>{},onPointerLeaveCapture:()=>{}}),g.jsx(pt,{classes:{tableContainer:He(ch["sr-table"],"table-view")},columns:s,loading:e.isLoading,getRowId:u=>u.task_name,rows:c,page:t.page,pageSize:t.pageSize,paginationMode:"client",showPagination:!0,onPageChange:i,rowCount:c.length})]})})})},TK="_trigger_1f0gw_1",PK="_opened_1f0gw_6",Pu={trigger:TK,opened:PK,"tools-menu":"_tools-menu_1f0gw_13","menu-item-content":"_menu-item-content_1f0gw_24"},kK=e=>{const[t,n]=b.useState(null),r=!!t,o=b.useMemo(()=>[{name:"Pprof",link:"/debug/pprof"},{name:"Memory Data Visualization",link:"/static"}],[]),i=f=>()=>{window.open(f.link,"_blank")},a=()=>o.map(f=>g.jsx($c,{onClick:i(f),children:g.jsxs("div",{className:Pu["menu-item-content"],children:[f.name,g.jsx(_m,{})]})})),s=()=>{n(null)},l=g.jsx(E1,{open:r,anchorEl:t,onClose:s,container:document.body,autoFocus:!1,classes:{paper:Pu["tools-menu"]},children:a()}),c=f=>{n(p=>p?null:f.currentTarget)},u=He(Pu.trigger,r&&Pu.opened,e.className),d=g.jsxs("span",{className:u,onClick:c,children:["Tools",g.jsx(ia,{})]});return g.jsxs(g.Fragment,{children:[d,l]})},$K="_header_wg0jk_7",EK="_nav_wg0jk_18",MK="_active_wg0jk_26",IK="_others_wg0jk_32",OK="_content_wg0jk_45",Tr={header:$K,nav:EK,"nav-item":"_nav-item_wg0jk_22",active:MK,others:IK,"zilliz-link":"_zilliz-link_wg0jk_35","zilliz-link-text":"_zilliz-link-text_wg0jk_41",content:OK,"with-ad":"_with-ad_wg0jk_49"},Pr={"base-info":"_base-info_ubkl2_12","info-row":"_info-row_ubkl2_15","info-row-label":"_info-row-label_ubkl2_22","info-row-value":"_info-row-value_ubkl2_26","base-info-form":"_base-info-form_ubkl2_29","base-info-form-label":"_base-info-form-label_ubkl2_32"},LK=()=>{const{identifier:e}=Vk(),{collection:t,indexes:n,segments:r,collectionState:o}=yq(e),i=[{label:"Collection Id",key:"collection_id"},{label:"Collection Name",key:"collection_name"},{label:"Database Name",key:"db_name"},{label:"Created Time",key:"created_time"},{label:"Fields",key:"fields",mapValueTo:y=>y==null?void 0:y.fields.length},{label:"Shards Num",key:"shards_num"},{label:"Consistency level",key:"consistency_level"},{label:"Virtual Channels",key:"virtual_channel_names",mapValueTo:y=>(y==null?void 0:y.virtual_channel_names.join(", "))||"-"},{label:"Physical Channels",key:"physical_channel_names",mapValueTo:y=>(y==null?void 0:y.physical_channel_names.join(", "))||"-"},{label:"Status",key:"__",mapValueTo:()=>g.jsx(zo,{value:o.name,detail:o.desc})}],a=y=>{const w=y.data;return g.jsx(cv,{ellipsis:!0,json:w.user_index_params})},s=y=>{const w=y.toString(),v=y?"deleted":"none";return g.jsx(zo,{value:v,label:w})},l=b.useMemo(()=>[{field:"index_id",headerName:"Index ID"},{field:"name",headerName:"Index Name"},{field:"field_id",headerName:"Field ID"},{field:"create_time",headerName:"Created Time"},{field:"is_deleted",headerName:"IsDeleted",renderCell:w=>s(w.getValue())},{field:"user_index_params",headerName:"User Index Params",renderCell:a}],[]),c=b.useMemo(()=>[{field:"id",headerName:"Segment ID"},{field:"nodeId",headerName:"Node ID"},{field:"rowsCount",headerName:"Rows"},{field:"state",headerName:"State"},{field:"level",headerName:"Level"},{field:"buildIndexState",headerName:"Build Index State",renderCell:w=>g.jsx(zo,{value:w.getValue()})},{field:"loadIndexState",headerName:"Load Index State",renderCell:w=>g.jsx(zo,{value:w.getValue()})}],[]),u=b.useMemo(()=>[{field:"name",headerName:"Name"},{field:"value",headerName:"Value"}],[]),d=b.useMemo(()=>[{field:"name",headerName:"Name"},{field:"field_id",headerName:"Field ID"},{field:"data_type",headerName:"Data Type"},{field:"element_type",headerName:"Element Type"},{field:"default_value",headerName:"Default Value"},{field:"is_primary_key",headerName:"Is Primary Key",renderCell:w=>g.jsx(zo,{value:(!!w.getValue()).toString()})},{field:"auto_id",headerName:"Auto ID",renderCell:w=>g.jsx(zo,{value:(!!w.getValue()).toString()})}],[]),f=b.useMemo(()=>[{field:"partition_name",headerName:"Name"},{field:"partition_id",headerName:"ID"},{field:"created_utc_timestamp",headerName:"Created Time"}],[]),p=()=>{if(!(t!=null&&t.properties)||!Object.keys(t.properties).length)return null;const y=Object.keys(t.properties).map(w=>({name:w,value:t.properties[w]}));return g.jsxs("div",{className:Pr["base-info-form"],children:[g.jsx("div",{className:Pr["base-info-form-label"],children:"Collection Properties"}),g.jsx(pt,{columns:u,rows:y})]})},h=()=>{const y=i.map(w=>g.jsxs("div",{className:Pr["info-row"],children:[g.jsx("div",{className:Pr["info-row-label"],children:w.label}),g.jsx("div",{className:Pr["info-row-value"],children:w.mapValueTo?w.mapValueTo(t):t==null?void 0:t[w.key]})]},w.key));return g.jsxs("div",{className:Pr["base-info"],children:[y,p(),g.jsxs("div",{className:Pr["base-info-form"],children:[g.jsx("div",{className:Pr["base-info-form-label"],children:"Collection Fields"}),g.jsx(pt,{columns:d,rows:(t==null?void 0:t.fields)||[]})]}),g.jsxs("div",{className:Pr["base-info-form"],children:[g.jsx("div",{className:Pr["base-info-form-label"],children:"Collection Partitions"}),g.jsx(pt,{columns:f,rows:(t==null?void 0:t.partition_infos)||[]})]})]})};return g.jsxs("div",{className:He("page-wrapper",Pr.wrapper),children:[g.jsx(St,{title:"Base Info",children:h()}),g.jsx(St,{title:"Indexes",children:g.jsx(pt,{columns:l,rows:n||[]})}),g.jsx(St,{title:"Segments",children:g.jsx(pt,{columns:c,rows:r||[]})})]})},AK="_wrapper_gbea3_12",NK="_title_gbea3_28",DK="_desc_gbea3_31",ku={wrapper:AK,title:NK,desc:DK,"link-btn":"_link-btn_gbea3_36"},jK=e=>{if(e.hidden)return!0;const t=()=>{window.open(DG,"_blank")};return g.jsxs("div",{className:ku.wrapper,children:[g.jsx(mt,{variant:"h4Medium",className:ku.title,children:"Try Managed Milvus for Free"}),g.jsx(mt,{variant:"body3Regular",className:ku.desc,children:"Zilliz Cloud is hassle-free, powered by Milvus and 10x faster."}),g.jsxs("div",{className:ku["link-btn"],onClick:t,children:["Get Started",g.jsx(FK,{})]})]})},FK=e=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",...e,children:g.jsx("path",{d:"M3.5 11L11.0833 3.41669M11.0833 3.41669V10.6967M11.0833 3.41669H3.80333",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})}),$u="withoutAd",BK=()=>{const e=X0(),[t]=x4(),n=b.useMemo(()=>{var d;const c=localStorage.getItem($u);if(t.has($u)){const f=((d=t.get($u))==null?void 0:d.toLowerCase())!=="false";return localStorage.setItem($u,f.toString()),f}return c?c==="true":!1},[t]),r=()=>{e("/")},o=b.useMemo(()=>[{name:"Home",id:"index",path:"/",Comp:lK},{name:"Collections",id:"collections",path:"/collections",Comp:vK},{name:"Collections Detail",id:"collections-detail",path:"/collections/:identifier",Comp:LK,withoutNav:!0},{name:"Query",id:"query",path:"/query_component",Comp:bK},{name:"Query Target",withoutNav:!0,id:"query_target",path:"/query_target",Comp:yK},{name:"Data",id:"data",path:"/data_component",Comp:xK},{name:"Tasks",id:"tasks",path:"/tasks",Comp:SK},{name:"Slow Requests",id:"slowRequests",path:"/slow_requests",Comp:_K},{name:"Configurations",id:"configs",path:"/configs",Comp:RK}],[]),i=()=>g.jsx("div",{className:Tr.logo,onClick:r,children:g.jsx("img",{src:dq})}),a=()=>{const c=o.filter(u=>!u.withoutNav).map(u=>g.jsx(v4,{className:({isActive:d})=>He(Tr["nav-item"],d&&Tr.active),to:u.path,children:u.name},u.id));return c.push(g.jsx(kK,{className:Tr["nav-item"]})),g.jsx("div",{className:Tr.nav,children:c})},s=()=>g.jsx("div",{className:Tr.others}),l=()=>o.map(c=>g.jsx(o2,{path:c.path,Component:c.Comp},c.id));return g.jsxs("div",{className:Tr.layout,children:[g.jsxs("header",{className:Tr.header,children:[i(),a(),s()]}),g.jsxs("div",{className:He(Tr.content,!n&&Tr["with-ad"]),children:[g.jsx("div",{className:Tr.detail,children:g.jsx(i4,{children:l()})}),g.jsx(jK,{hidden:!!n})]})]})},zK=()=>{const e=dB("enUS");N3(),GC(document.getElementById("root")).render(g.jsx(bM,{theme:e,children:g.jsx(g4,{basename:"webui",children:g.jsx(gH,{value:{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1},children:g.jsx(BK,{})})})}))};zK(); diff --git a/internal/http/webui/index.html b/internal/http/webui/index.html index e480d65d3487d..7f84d8411b66e 100644 --- a/internal/http/webui/index.html +++ b/internal/http/webui/index.html @@ -1,27 +1,19 @@ - - - - - - - Milvus Management - - - - -
- - + + + + + + + + Milvus Management + + + + + +
+ + + \ No newline at end of file diff --git a/tests/python_client/base/collection_wrapper.py b/tests/python_client/base/collection_wrapper.py index 2fae11cbec0df..b8d1c7f1c0e18 100644 --- a/tests/python_client/base/collection_wrapper.py +++ b/tests/python_client/base/collection_wrapper.py @@ -58,6 +58,10 @@ def is_empty(self): self.flush() return self.collection.is_empty + @property + def is_empty_without_flush(self): + return self.collection.is_empty + @property def num_entities(self): self.flush() diff --git a/tests/python_client/base/database_wrapper.py b/tests/python_client/base/database_wrapper.py index 3bbaf897af46e..87b5d1295c274 100644 --- a/tests/python_client/base/database_wrapper.py +++ b/tests/python_client/base/database_wrapper.py @@ -33,3 +33,15 @@ def list_database(self, using="default", timeout=None, check_task=None, check_it response, is_succ = api_request([self.database.list_database, using, timeout]) check_result = ResponseChecker(response, func_name, check_task, check_items, is_succ).run() return response, check_result + + def set_properties(self, db_name: str, properties: dict, using="default", timeout=None, check_task=None, check_items=None): + func_name = sys._getframe().f_code.co_name + response, is_succ = api_request([self.database.set_properties, db_name, properties, using, timeout]) + check_result = ResponseChecker(response, func_name, check_task, check_items, is_succ).run() + return response, check_result + + def describe_database(self, db_name: str, using="default", timeout=None, check_task=None, check_items=None): + func_name = sys._getframe().f_code.co_name + response, is_succ = api_request([self.database.describe_database, db_name, using, timeout]) + check_result = ResponseChecker(response, func_name, check_task, check_items, is_succ).run() + return response, check_result diff --git a/tests/python_client/base/high_level_api_wrapper.py b/tests/python_client/base/high_level_api_wrapper.py index 4dc62e17f2792..115ce54655dab 100644 --- a/tests/python_client/base/high_level_api_wrapper.py +++ b/tests/python_client/base/high_level_api_wrapper.py @@ -665,6 +665,39 @@ def revoke_privilege(self, role_name, object_type, privilege, object_name, db_na object_name=object_name, db_name=db_name, **kwargs).run() return res, check_result + def create_privilege_group(self, privilege_group: str, check_task=None, check_items=None, **kwargs): + func_name = sys._getframe().f_code.co_name + res, check = api_request([self.milvus_client.create_privilege_group, privilege_group], **kwargs) + check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() + return res, check_result + + def drop_privilege_group(self, privilege_group: str, check_task=None, check_items=None, **kwargs): + func_name = sys._getframe().f_code.co_name + res, check = api_request([self.milvus_client.drop_privilege_group, privilege_group], **kwargs) + check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() + return res, check_result + + def list_privilege_groups(self, check_task=None, check_items=None, **kwargs): + func_name = sys._getframe().f_code.co_name + res, check = api_request([self.milvus_client.list_privilege_groups], **kwargs) + check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() + return res, check_result + + def add_privileges_to_group(self, privilege_group: str, privileges: list, check_task=None, check_items=None, + **kwargs): + func_name = sys._getframe().f_code.co_name + res, check = api_request([self.milvus_client.add_privileges_to_group, privilege_group, privileges], **kwargs) + check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() + return res, check_result + + def remove_privileges_from_group(self, privilege_group: str, privileges: list, check_task=None, check_items=None, + **kwargs): + func_name = sys._getframe().f_code.co_name + res, check = api_request([self.milvus_client.remove_privileges_from_group, privilege_group, privileges], + **kwargs) + check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() + return res, check_result + @trace() def alter_index_properties(self, client, collection_name, index_name, properties, timeout=None, check_task=None, check_items=None, **kwargs): @@ -785,7 +818,3 @@ def list_databases(self, client, timeout=None, check_task=None, check_items=None check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() return res, check_result - - - - diff --git a/tests/python_client/base/partition_wrapper.py b/tests/python_client/base/partition_wrapper.py index 3d22978de105d..50aaa277268ca 100644 --- a/tests/python_client/base/partition_wrapper.py +++ b/tests/python_client/base/partition_wrapper.py @@ -38,11 +38,19 @@ def is_empty(self): self.flush() return self.partition.is_empty if self.partition else None + @property + def is_empty_without_flush(self): + return self.partition.is_empty if self.partition else None + @property def num_entities(self): self.flush() return self.partition.num_entities if self.partition else None + @property + def num_entities_without_flush(self): + return self.partition.num_entities if self.partition else None + def drop(self, check_task=None, check_items=None, **kwargs): timeout = kwargs.get("timeout", TIMEOUT) kwargs.update({"timeout": timeout}) diff --git a/tests/python_client/base/utility_wrapper.py b/tests/python_client/base/utility_wrapper.py index c48d736df63fa..7a8d7fd064328 100644 --- a/tests/python_client/base/utility_wrapper.py +++ b/tests/python_client/base/utility_wrapper.py @@ -471,6 +471,18 @@ def role_revoke(self, object: str, object_name: str, privilege: str, db_name: st check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() return res, check_result + def role_grant_v2(self, privilege: str, collection_name: str, db_name: str = None, check_task=None, check_items=None, **kwargs): + func_name = sys._getframe().f_code.co_name + res, check = api_request([self.role.grant_v2, privilege, collection_name, db_name], **kwargs) + check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() + return res, check_result + + def role_revoke_v2(self, privilege: str, collection_name: str, db_name: str = None, check_task=None, check_items=None, **kwargs): + func_name = sys._getframe().f_code.co_name + res, check = api_request([self.role.revoke_v2, privilege, collection_name, db_name], **kwargs) + check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() + return res, check_result + def role_list_grant(self, object: str, object_name: str, db_name: str = "", check_task=None, check_items=None, **kwargs): func_name = sys._getframe().f_code.co_name res, check = api_request([self.role.list_grant, object, object_name, db_name], **kwargs) @@ -558,3 +570,33 @@ def list_indexes(self, collection_name, using="default", timeout=None, check_tas check_result = ResponseChecker(res, func_name, check_task, check_items, check, collection_name=collection_name, using=using, timeout=timeout, **kwargs).run() return res, check_result + + def create_privilege_group(self, privilege_group: str, check_task=None, check_items=None, **kwargs): + func_name = sys._getframe().f_code.co_name + res, check = api_request([self.role.create_privilege_group, privilege_group], **kwargs) + check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() + return res, check_result + + def drop_privilege_group(self, privilege_group: str, check_task=None, check_items=None, **kwargs): + func_name = sys._getframe().f_code.co_name + res, check = api_request([self.role.drop_privilege_group, privilege_group], **kwargs) + check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() + return res, check_result + + def list_privilege_groups(self, check_task=None, check_items=None, **kwargs): + func_name = sys._getframe().f_code.co_name + res, check = api_request([self.role.list_privilege_groups], **kwargs) + check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() + return res, check_result + + def add_privileges_to_group(self, privilege_group: str, privileges: list, check_task=None, check_items=None, **kwargs): + func_name = sys._getframe().f_code.co_name + res, check = api_request([self.role.add_privileges_to_group, privilege_group, privileges], **kwargs) + check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() + return res, check_result + + def remove_privileges_from_group(self, privilege_group: str, privileges: list, check_task=None, check_items=None, **kwargs): + func_name = sys._getframe().f_code.co_name + res, check = api_request([self.role.remove_privileges_from_group, privilege_group, privileges], **kwargs) + check_result = ResponseChecker(res, func_name, check_task, check_items, check, **kwargs).run() + return res, check_result \ No newline at end of file diff --git a/tests/python_client/common/common_type.py b/tests/python_client/common/common_type.py index bae1c122b57c1..77ed742179d36 100644 --- a/tests/python_client/common/common_type.py +++ b/tests/python_client/common/common_type.py @@ -258,6 +258,29 @@ default_diskann_search_params = {"params": {"search_list": 30}} default_sparse_search_params = {"metric_type": "IP", "params": {"drop_ratio_search": "0.2"}} default_text_sparse_search_params = {"metric_type": "BM25", "params": {}} +built_in_privilege_groups = ["CollectionReadWrite", "CollectionReadOnly", "CollectionAdmin", + "DatabaseReadWrite", "DatabaseReadOnly", "DatabaseAdmin", + "ClusterReadWrite", "ClusterReadOnly", "ClusterAdmin"] +privilege_group_privilege_dict = {"Query": False, "Search": False, "GetLoadState": False, + "GetLoadingProgress": False, "HasPartition": False, "ShowPartitions": False, + "ShowCollections": False, "ListAliases": False, "ListDatabases": False, + "DescribeDatabase": False, "DescribeAlias": False, "GetStatistics": False, + "CreateIndex": False, "DropIndex": False, "CreatePartition": False, + "DropPartition": False, "Load": False, "Release": False, + "Insert": False, "Delete": False, "Upsert": False, + "Import": False, "Flush": False, "Compaction": False, + "LoadBalance": False, "RenameCollection": False, "CreateAlias": False, + "DropAlias": False, "CreateCollection": False, "DropCollection": False, + "CreateOwnership": False, "DropOwnership": False, "SelectOwnership": False, + "ManageOwnership": False, "UpdateUser": False, "SelectUser": False, + "CreateResourceGroup": False, "DropResourceGroup": False, + "UpdateResourceGroups": False, + "DescribeResourceGroup": False, "ListResourceGroups": False, "TransferNode": False, + "TransferReplica": False, "CreateDatabase": False, "DropDatabase": False, + "AlterDatabase": False, "FlushAll": False, "ListPrivilegeGroups": False, + "CreatePrivilegeGroup": False, "DropPrivilegeGroup": False, + "OperatePrivilegeGroup": False} + class CheckTasks: """ The name of the method used to check the result """ diff --git a/tests/python_client/conftest.py b/tests/python_client/conftest.py index 04a03dc71072f..526b1caf96b24 100644 --- a/tests/python_client/conftest.py +++ b/tests/python_client/conftest.py @@ -22,8 +22,8 @@ def pytest_addoption(parser): parser.addoption("--host", action="store", default="localhost", help="service's ip") parser.addoption("--service", action="store", default="", help="service address") parser.addoption("--port", action="store", default=19530, help="service's port") - parser.addoption("--user", action="store", default="", help="user name for connection") - parser.addoption("--password", action="store", default="", help="password for connection") + parser.addoption("--user", action="store", default="root", help="user name for connection") + parser.addoption("--password", action="store", default="Milvus", help="password for connection") parser.addoption("--db_name", action="store", default="default", help="database name for connection") parser.addoption("--secure", type=bool, action="store", default=False, help="secure for connection") parser.addoption("--milvus_ns", action="store", default="chaos-testing", help="milvus_ns") diff --git a/tests/python_client/milvus_client/test_milvus_client_alter.py b/tests/python_client/milvus_client/test_milvus_client_alter.py index 63f0d7f5a70e1..9a15700bfdc6f 100644 --- a/tests/python_client/milvus_client/test_milvus_client_alter.py +++ b/tests/python_client/milvus_client/test_milvus_client_alter.py @@ -70,8 +70,8 @@ def test_milvus_client_alter_index_default(self): client_w.load_collection(client, collection_name) res1 = client_w.describe_index(client, collection_name, index_name=idx_names[0])[0] assert res1.get('mmap.enabled', None) is None - error = {ct.err_code: 999, - ct.err_msg: "can't alter index on loaded collection, please release the collection first"} + error = {ct.err_code: 104, + ct.err_msg: f"can't alter index on loaded collection, please release the collection first: collection already loaded[collection={collection_name}]"} # 1. alter index after load client_w.alter_index_properties(client, collection_name, idx_names[0], properties={"mmap.enabled": True}, check_task=CheckTasks.err_res, check_items=error) diff --git a/tests/python_client/testcases/test_utility.py b/tests/python_client/testcases/test_utility.py index 883a2ab4270c0..4608208499d78 100644 --- a/tests/python_client/testcases/test_utility.py +++ b/tests/python_client/testcases/test_utility.py @@ -15,6 +15,8 @@ from common.milvus_sys import MilvusSys from pymilvus.grpc_gen.common_pb2 import SegmentState import random +from pymilvus.client.types import ResourceGroupConfig +import copy prefix = "utility" default_schema = cf.gen_default_collection_schema() @@ -5039,3 +5041,1537 @@ def do_flush_all(): res, _ = cw.query(f'{ct.default_int64_field_name} not in {delete_ids}') assert len(res) == ct.default_nb * 2 - delete_num + + +class TestUtilityNegativeRbacPrivilegeGroup(TestcaseBase): + + def teardown_method(self, method): + """ + teardown method: drop role and user + """ + log.info("[utility_teardown_method] Start teardown utility test cases ...") + + self.connection_wrap.connect(host=cf.param_info.param_host, port=cf.param_info.param_port, user=ct.default_user, + password=ct.default_password, secure=cf.param_info.param_secure) + + # drop users + users, _ = self.utility_wrap.list_users(False) + for u in users.groups: + if u.username != ct.default_user: + self.utility_wrap.delete_user(u.username) + user_groups, _ = self.utility_wrap.list_users(False) + assert len(user_groups.groups) == 1 + + role_groups, _ = self.utility_wrap.list_roles(False) + + # drop roles + for role_group in role_groups.groups: + if role_group.role_name not in ['admin', 'public']: + self.utility_wrap.init_role(role_group.role_name) + g_list, _ = self.utility_wrap.role_list_grants() + for g in g_list.groups: + self.utility_wrap.role_revoke(g.object, g.object_name, g.privilege) + privilege_groups = self.utility_wrap.list_privilege_groups()[0] + for privilege_group in privilege_groups.groups: + if privilege_group.privilege_group not in ct.built_in_privilege_groups: + self.utility_wrap.drop_privilege_group(privilege_group.privilege_group) + self.utility_wrap.role_drop() + role_groups, _ = self.utility_wrap.list_roles(False) + assert len(role_groups.groups) == 2 + + # drop database + databases, _ = self.database_wrap.list_database() + for db_name in databases: + self.database_wrap.using_database(db_name) + for c_name in self.utility_wrap.list_collections()[0]: + self.utility_wrap.drop_collection(c_name) + + if db_name != ct.default_db: + self.database_wrap.drop_database(db_name) + + super().teardown_method(method) + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("name", [1, 1.0]) + def test_create_privilege_group_with_privilege_group_name_invalid_type(self, name, host, port): + """ + target: create privilege group with invalid name + method: create privilege group with invalid name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + self.utility_wrap.init_role("role_1") + error = {"err_code": 1, + "err_msg": f"`privilege_group` value {name} is illegal"} + self.utility_wrap.create_privilege_group(privilege_group=name, check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("name", ["n%$#@!", "test-role", "ff ff"]) + def test_create_privilege_group_with_privilege_group_name_invalid_value_1(self, name, host, port): + """ + target: create privilege group with invalid name + method: create privilege group with invalid name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + self.utility_wrap.init_role("role_1") + error = {"err_code": 1100, "err_msg": f"privilege group name {name} can only contain numbers, letters and underscores: invalid parameter"} + self.utility_wrap.create_privilege_group(privilege_group=name, check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.skip(reason="issue #37842") + @pytest.mark.parametrize("name", ["longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong" + "longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong" + "longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong" + "longlonglonglong", "123n", " ", "''", "中文"]) + def test_create_privilege_group_with_privilege_group_name_invalid_value_2(self, name, host, port): + """ + target: create privilege group with invalid name + method: create privilege group with invalid name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + self.utility_wrap.init_role("role_1") + error = {"err_code": 1402, "err_msg": f"{name}: invalid privilege group name[privilegeGroup=the first character " + f"of a privilege group name %s must be an underscore or letter]"} + self.utility_wrap.create_privilege_group(privilege_group=name, check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_create_privilege_group_with_built_in_privilege_groups_name(self, host, port): + """ + target: create privilege group with built in privilege groups name + method: create privilege group with built in privilege groups name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + for name in ct.built_in_privilege_groups: + error = {"err_code": 1100, + "err_msg": f"privilege group name [{name}] is defined by built in privileges or privilege groups in system: invalid parameter"} + self.utility_wrap.create_privilege_group(privilege_group=name, check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("name", [1, 1.0]) + def test_drop_privilege_group_with_privilege_group_name_invalid_type(self, name, host, port): + """ + target: drop privilege group with invalid name + method: drop privilege group with invalid name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + self.utility_wrap.init_role("role_1") + error = {"err_code": 1, + "err_msg": f"`privilege_group` value {name} is illegal"} + self.utility_wrap.drop_privilege_group(privilege_group=name, check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.parametrize("name", ["n%$#@!", "test-role", "ff ff"]) + def test_drop_privilege_group_with_privilege_group_name_invalid_value_1(self, name, host, port): + """ + target: drop privilege group with invalid name + method: drop privilege group with invalid name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + self.utility_wrap.init_role("role_1") + error = {"err_code": 1100, "err_msg": f"privilege group name {name} can only contain numbers, letters and underscores: invalid parameter"} + self.utility_wrap.drop_privilege_group(privilege_group=name, check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.skip(reason="issue #37842") + @pytest.mark.parametrize("name", ["longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong" + "longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong" + "longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong" + "longlonglonglong", "123n", " ", "''", "中文"]) + def test_drop_privilege_group_with_privilege_group_name_invalid_value_2(self, name, host, port): + """ + target: drop privilege group with invalid name + method: drop privilege group with invalid name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + self.utility_wrap.init_role("role_1") + error = {"err_code": 1402, "err_msg": f"{name}: invalid privilege group name[privilegeGroup=the first character " + f"of a privilege group name %s must be an underscore or letter]"} + self.utility_wrap.drop_privilege_group(privilege_group=name, check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_drop_not_exist_privilege_group(self, host, port): + """ + target: drop same privilege group twice + method: drop same privilege group twice + expected: drop successfully + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + name = "privilege_group_not_exist" + self.utility_wrap.drop_privilege_group(privilege_group=name) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_drop_same_privilege_group_twice(self, host, port): + """ + target: drop same privilege group twice + method: drop same privilege group twice + expected: drop successfully + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + name = "privilege_group_1" + self.utility_wrap.create_privilege_group(privilege_group=name) + privilege_groups = self.utility_wrap.list_privilege_groups()[0] + privilege_groups_extracted = [] + for privilege_group in privilege_groups.groups: + privilege_groups_extracted.append(privilege_group.privilege_group) + assert name in privilege_groups_extracted + self.utility_wrap.drop_privilege_group(privilege_group=name) + privilege_groups = self.utility_wrap.list_privilege_groups()[0] + privilege_groups_extracted = [] + for privilege_group in privilege_groups.groups: + privilege_groups_extracted.append(privilege_group.privilege_group) + assert name not in privilege_groups_extracted + self.utility_wrap.drop_privilege_group(privilege_group=name) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_drop_privilege_group_with_built_in_privilege_groups_name(self, host, port): + """ + target: drop privilege group with built in privilege groups name + method: drop privilege group with built in privilege groups name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + for name in ct.built_in_privilege_groups: + self.utility_wrap.drop_privilege_group(privilege_group=name) + privilege_groups = self.utility_wrap.list_privilege_groups()[0] + privilege_groups_extracted = [] + for privilege_group in privilege_groups.groups: + privilege_groups_extracted.append(privilege_group.privilege_group) + assert len(privilege_groups_extracted) == len(ct.built_in_privilege_groups) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_drop_privilege_group_granted(self, host, port): + """ + target: drop the privilege group granted to one role + method: drop the privilege group granted to one role + expected: 1. raise exception + 2. drop successfully after revoke + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + collection_w = self.init_collection_general(prefix)[0] + role_name = "role_1" + role = self.utility_wrap.init_role(role_name)[0] + role.create() + name = "privilege_group_1" + self.utility_wrap.create_privilege_group(privilege_group=name) + self.utility_wrap.role_grant_v2(name, collection_w.name) + error = {"err_code": 65535, + "err_msg": f"privilege group [{name}] is used by role [{role_name}], Use REVOKE API to revoke it first"} + self.utility_wrap.drop_privilege_group(privilege_group=name, check_task=CheckTasks.err_res, check_items=error) + self.utility_wrap.role_revoke_v2(name, collection_w.name) + self.utility_wrap.drop_privilege_group(privilege_group=name) + privilege_groups = self.utility_wrap.list_privilege_groups()[0] + privilege_groups_extracted = [] + for privilege_group in privilege_groups.groups: + privilege_groups_extracted.append(privilege_group.privilege_group) + assert name not in privilege_groups_extracted + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("name", [1, 1.0]) + def test_add_privileges_to_group_with_privilege_group_name_invalid_type(self, name, host, port): + """ + target: add privilege group with invalid name + method: add privilege group with invalid name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + self.utility_wrap.init_role("role_1") + error = {"err_code": 1, + "err_msg": f"`privilege_group` value {name} is illegal"} + self.utility_wrap.add_privileges_to_group(privilege_group=name, privileges=["Insert"], + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("name", ["n%$#@!", "test-role", "ff ff"]) + def test_add_privileges_to_group_with_privilege_group_name_invalid_value(self, name, host, port): + """ + target: add privilege group with invalid name + method: add privilege group with invalid name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + self.utility_wrap.init_role("role_1") + error = {"err_code": 1100, "err_msg": f"privilege group name {name} can only contain numbers, letters and underscores: invalid parameter"} + self.utility_wrap.add_privileges_to_group(privilege_group=name, privileges=["Insert"], check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_add_privilege_into_not_exist_privilege_group(self, host, port): + """ + target: add privilege into not exist privilege group + method: add privilege into not exist privilege group + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + name = "privilege_group_not_exist" + error = {"err_code": 1100, + "err_msg": f"there is no privilege group name [{name}] to operate: invalid parameter"} + self.utility_wrap.add_privileges_to_group(privilege_group=name, privileges=["Insert"], + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_add_privilege_into_built_in_privilege_group(self, host, port): + """ + target: add privilege into not exist privilege group + method: add privilege into not exist privilege group + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + for name in ct.built_in_privilege_groups: + error = {"err_code": 1100, + "err_msg": f"the privilege group name [{name}] is defined " + f"by built in privilege groups in system: invalid parameter"} + self.utility_wrap.add_privileges_to_group(privilege_group=name, privileges=["Insert"], + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("name", [1, 1.0, "n%$#@!", "test-role", "ff ff"]) + def test_add_privileges_to_group_with_privilege_invalid_type(self, name, host, port): + """ + target: add privilege group with invalid name + method: add privilege group with invalid name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + self.utility_wrap.init_role("role_1") + error = {"err_code": 1, + "err_msg": f"`privileges` value {name} is illegal"} + self.utility_wrap.add_privileges_to_group(privilege_group="privilege_group_1", privileges=name, + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_add_privileges_to_group_with_privilege_invalid_value(self, host, port): + """ + target: add privilege group with invalid name + method: add privilege group with invalid name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + name = "privilege_group_1" + self.utility_wrap.create_privilege_group(privilege_group=name) + privilege_name = "invalid_privilege" + error = {"err_code": 1100, "err_msg": f"there is no privilege name or privielge group name [{privilege_name}] " + f"defined in system to operate: invalid parameter"} + self.utility_wrap.add_privileges_to_group(privilege_group="privilege_group_1", privileges=[privilege_name], check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("name", [1, 1.0]) + def test_remove_privileges_to_group_with_privilege_group_name_invalid_type(self, name, host, port): + """ + target: remove privilege group with invalid name + method: remove privilege group with invalid name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + self.utility_wrap.init_role("role_1") + error = {"err_code": 1, + "err_msg": f"`privilege_group` value {name} is illegal"} + self.utility_wrap.remove_privileges_from_group(privilege_group=name, privileges=["Insert"], + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("name", ["n%$#@!", "test-role", "ff ff"]) + def test_remove_privileges_to_group_with_privilege_group_name_invalid_value(self, name, host, port): + """ + target: remove privilege group with invalid name + method: remove privilege group with invalid name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + self.utility_wrap.init_role("role_1") + error = {"err_code": 1100, "err_msg": f"privilege group name {name} can only contain numbers, letters and underscores: invalid parameter"} + self.utility_wrap.remove_privileges_from_group(privilege_group=name, privileges=["Insert"], check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_remove_privilege_into_not_exist_privilege_group(self, host, port): + """ + target: remove privilege into not exist privilege group + method: remove privilege into not exist privilege group + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + name = "privilege_group_not_exist" + error = {"err_code": 1100, + "err_msg": f"there is no privilege group name [{name}] to operate: invalid parameter"} + self.utility_wrap.remove_privileges_from_group(privilege_group=name, privileges=["Insert"], + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_remove_privilege_into_built_in_privilege_group(self, host, port): + """ + target: remove privilege into not exist privilege group + method: remove privilege into not exist privilege group + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + for name in ct.built_in_privilege_groups: + error = {"err_code": 1100, + "err_msg": f"the privilege group name [{name}] is defined " + f"by built in privilege groups in system: invalid parameter"} + self.utility_wrap.remove_privileges_from_group(privilege_group=name, privileges=["Insert"], + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("name", [1, 1.0, "n%$#@!", "test-role", "ff ff"]) + def test_remove_privileges_to_group_with_privilege_invalid_type(self, name, host, port): + """ + target: remove privilege group with invalid name + method: remove privilege group with invalid name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + self.utility_wrap.init_role("role_1") + error = {"err_code": 1, + "err_msg": f"`privileges` value {name} is illegal"} + self.utility_wrap.remove_privileges_from_group(privilege_group="privilege_group_1", privileges=name, + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_remove_privileges_to_group_with_privilege_invalid_value(self, host, port): + """ + target: remove privilege group with invalid name + method: remove privilege group with invalid name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + name = "privilege_group_1" + self.utility_wrap.create_privilege_group(privilege_group=name) + privilege_name = "invalid_privilege" + error = {"err_code": 1100, "err_msg": f"there is no privilege name or privielge group name [{privilege_name}] " + f"defined in system to operate: invalid parameter"} + self.utility_wrap.remove_privileges_from_group(privilege_group="privilege_group_1", privileges=[privilege_name], + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("name", [1, 1.0, "n%$#@!", "test-role", "ff ff"]) + def test_remove_privileges_to_group_with_privilege_invalid_type(self, name, host, port): + """ + target: remove privilege group with invalid name + method: remove privilege group with invalid name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + self.utility_wrap.init_role("role_1") + error = {"err_code": 1, + "err_msg": f"`privileges` value {name} is illegal"} + self.utility_wrap.remove_privileges_from_group(privilege_group="privilege_group_1", privileges=name, + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("name", [1, 1.0]) + def test_grant_v2_privilege_invalid_type(self, name, host, port): + """ + target: grant v2 with invalid privilege name + method: grant v2 with invalid privilege name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + collection_w = self.init_collection_general(prefix)[0] + role = self.utility_wrap.init_role("role_1")[0] + role.create() + error = {"err_code": 1, + "err_msg": f"`privilege` value {name} is illegal"} + self.utility_wrap.role_grant_v2(privilege=name, collection_name=collection_w.name, + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_grant_v2_privilege_invalid_value(self, host, port): + """ + target: grant v2 with invalid privilege name + method: grant v2 with invalid privilege name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + collection_w = self.init_collection_general(prefix)[0] + role = self.utility_wrap.init_role("role_1")[0] + role.create() + name = "privilege_group_1" + self.utility_wrap.create_privilege_group(privilege_group=name) + privilege_name = "invalid_privilege" + error = {"err_code": 65535, "err_msg": f"not found the privilege name[{privilege_name}]"} + self.utility_wrap.role_grant_v2(privilege=privilege_name, collection_name=collection_w.name, + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("name", [1, 1.0]) + def test_grant_v2_collection_name_invalid_type(self, name, host, port): + """ + target: grant v2 with invalid collection name + method: grant v2 with invalid collection name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + self.utility_wrap.create_privilege_group(privilege_group="privilege_group_1") + error = {"err_code": 1, "err_msg": f"`privilege` value {name} is illegal"} + self.utility_wrap.role_grant_v2(privilege=name, collection_name=name, + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_grant_v2_not_exist_collection(self, host, port): + """ + target: grant v2 with not exist collection + method: grant v2 with not exist collection + expected: grant successfully + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + name = "privilege_group_1" + self.utility_wrap.create_privilege_group(privilege_group=name) + self.utility_wrap.role_grant_v2(privilege=name, collection_name="not_exist_collection") + self.utility_wrap.role_revoke_v2(privilege=name, collection_name="not_exist_collection") + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("name", [1, 1.0]) + def test_grant_v2_db_name_invalid_type(self, name, host, port): + """ + target: grant v2 with invalid collection name + method: grant v2 with invalid collection name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + self.utility_wrap.create_privilege_group(privilege_group="privilege_group_1") + error = {"err_code": 1, "err_msg": f"`db_name` value {name} is illegal"} + self.utility_wrap.role_grant_v2(privilege="privilege_group_1", collection_name="collection_name", db_name=name, + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("name", ["n%$#@!", "test-role", "ff ff"]) + def test_grant_v2_db_name_invalid_value(self, name, host, port): + """ + target: grant v2 with invalid collection name + method: grant v2 with invalid collection name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + self.utility_wrap.create_privilege_group(privilege_group="privilege_group_1") + error = {"err_code": 802, "err_msg": f"database name can only contain numbers, letters and underscores: " + f"invalid database name[database={name}]"} + self.utility_wrap.role_grant_v2(privilege="privilege_group_1", collection_name="collection_name", + db_name=name, check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_grant_v2_not_exist_db_name(self, host, port): + """ + target: grant v2 with invalid collection name + method: grant v2 with invalid collection name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + self.utility_wrap.create_privilege_group(privilege_group="privilege_group_1") + self.utility_wrap.role_grant_v2(privilege="privilege_group_1", collection_name="collection_name", + db_name="not_exist_db") + self.utility_wrap.role_revoke_v2(privilege="privilege_group_1", collection_name="collection_name", + db_name="not_exist_db") + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("name", [1, 1.0]) + def test_revoke_v2_privilege_invalid_type(self, name, host, port): + """ + target: grant v2 with invalid privilege name + method: grant v2 with invalid privilege name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + collection_w = self.init_collection_general(prefix)[0] + role = self.utility_wrap.init_role("role_1")[0] + role.create() + error = {"err_code": 1, + "err_msg": f"`privilege` value {name} is illegal"} + self.utility_wrap.role_revoke_v2(privilege=name, collection_name=collection_w.name, + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_revoke_v2_privilege_invalid_value(self, host, port): + """ + target: grant v2 with invalid privilege name + method: grant v2 with invalid privilege name + expected: raise exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + collection_w = self.init_collection_general(prefix)[0] + role = self.utility_wrap.init_role("role_1")[0] + role.create() + name = "privilege_group_1" + self.utility_wrap.create_privilege_group(privilege_group=name) + privilege_name = "invalid_privilege" + error = {"err_code": 65535, "err_msg": f"not found the privilege name[{privilege_name}]"} + self.utility_wrap.role_revoke_v2(privilege=privilege_name, collection_name=collection_w.name, + check_task=CheckTasks.err_res, check_items=error) + @pytest.mark.tags(CaseLabel.RBAC) + def test_grant_v2_database_built_in_invalid_collection_name(self, host, port): + """ + target: grant/revoke v2 normal case + method: grant/revoke v2 normal case + expected: grant successfully + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + collection_w = self.init_collection_general(prefix)[0] + role = self.utility_wrap.init_role("role_1")[0] + role.create() + collection_name = collection_w.name + for name in ct.built_in_privilege_groups: + if name.startswith("Database") is not True: + continue + error = {"err_code": 1100, "err_msg": f"collectionName should be * for the database " + f"level privilege: {name}: invalid parameter"} + self.utility_wrap.role_grant_v2(privilege=name, collection_name=collection_name, + check_task=CheckTasks.err_res, check_items=error) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_grant_v2_cluster_built_in_invalid_collection_name(self, host, port): + """ + target: grant/revoke v2 normal case + method: grant/revoke v2 normal case + expected: grant successfully + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + collection_w = self.init_collection_general(prefix)[0] + role = self.utility_wrap.init_role("role_1")[0] + role.create() + for name in ct.built_in_privilege_groups: + if name.startswith("Cluster") is not True: + continue + error = {"err_code": 1100, "err_msg": f"dbName and collectionName should be * for the cluster " + f"level privilege: {name}: invalid parameter"} + self.utility_wrap.role_grant_v2(privilege=name, collection_name="*", db_name="default", + check_task=CheckTasks.err_res, check_items=error) + self.utility_wrap.role_grant_v2(privilege=name, collection_name="*", + check_task=CheckTasks.err_res, check_items=error) + + +class TestUtilityPositiveRbacPrivilegeGroup(TestcaseBase): + + def teardown_method(self, method): + """ + teardown method: drop role and user + """ + log.info("[utility_teardown_method] Start teardown utility test cases ...") + + self.connection_wrap.connect(host=cf.param_info.param_host, port=cf.param_info.param_port, user=ct.default_user, + password=ct.default_password, secure=cf.param_info.param_secure) + + # drop users + users, _ = self.utility_wrap.list_users(False) + for u in users.groups: + if u.username != ct.default_user: + self.utility_wrap.delete_user(u.username) + user_groups, _ = self.utility_wrap.list_users(False) + assert len(user_groups.groups) == 1 + + role_groups, _ = self.utility_wrap.list_roles(False) + + # drop roles + for role_group in role_groups.groups: + if role_group.role_name not in ['admin', 'public']: + self.utility_wrap.init_role(role_group.role_name) + g_list, _ = self.utility_wrap.role_list_grants() + for g in g_list.groups: + # self.utility_wrap.role_revoke(g.object, g.object_name, g.privilege) + if g.privilege.startswith("Cluster"): + self.utility_wrap.role_revoke_v2(g.privilege, "*", "*") + else: + self.utility_wrap.role_revoke_v2(g.privilege, g.object_name) + privilege_groups = self.utility_wrap.list_privilege_groups()[0] + for privilege_group in privilege_groups.groups: + if privilege_group.privilege_group not in ct.built_in_privilege_groups: + self.utility_wrap.drop_privilege_group(privilege_group.privilege_group) + self.utility_wrap.role_drop() + role_groups, _ = self.utility_wrap.list_roles(False) + assert len(role_groups.groups) == 2 + + # drop database + databases, _ = self.database_wrap.list_database() + for db_name in databases: + self.database_wrap.using_database(db_name) + for c_name in self.utility_wrap.list_collections()[0]: + self.utility_wrap.drop_collection(c_name) + + if db_name != ct.default_db: + self.database_wrap.drop_database(db_name) + + super().teardown_method(method) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_create_privilege_groups(self, host, port): + """ + target: create valid privilege groups + method: create valid privilege groups + expected: create successfully + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + name_1 = "privilege_group_1" + self.utility_wrap.create_privilege_group(privilege_group=name_1) + name_2 = "privilege_group_2" + self.utility_wrap.create_privilege_group(privilege_group=name_2) + privilege_groups = self.utility_wrap.list_privilege_groups()[0] + privilege_groups_extracted = [] + for privilege_group in privilege_groups.groups: + privilege_groups_extracted.append(privilege_group.privilege_group) + assert name_1 in privilege_groups_extracted + assert name_2 in privilege_groups_extracted + + @pytest.mark.tags(CaseLabel.RBAC) + def test_create_large_numbers_privilege_groups(self, host, port): + """ + target: create large numbers of privilege groups + method: create 100 privilege groups + expected: create successfully + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + number = 100 + # 1. create privilege groups + for i in range(number): + name = f"privilege_group_{i}" + self.utility_wrap.create_privilege_group(privilege_group=name) + privilege_groups = self.utility_wrap.list_privilege_groups()[0] + privilege_groups_extracted = [] + for privilege_group in privilege_groups.groups: + privilege_groups_extracted.append(privilege_group.privilege_group) + for i in range(number): + name = f"privilege_group_{i}" + assert name in privilege_groups_extracted + # 2. drop privilege groups + for i in range(number): + name = f"privilege_group_{i}" + self.utility_wrap.drop_privilege_group(privilege_group=name) + privilege_groups = self.utility_wrap.list_privilege_groups()[0] + privilege_groups_extracted = [] + for privilege_group in privilege_groups.groups: + privilege_groups_extracted.append(privilege_group.privilege_group) + for i in range(number): + name = f"privilege_group_{i}" + assert name not in privilege_groups_extracted + + @pytest.mark.tags(CaseLabel.RBAC) + def test_drop_privilege_groups(self, host, port): + """ + target: drop valid privilege groups + method: create valid privilege groups + expected: drop successfully + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + name_1 = "privilege_group_1" + self.utility_wrap.create_privilege_group(privilege_group=name_1) + name_2 = "privilege_group_2" + self.utility_wrap.create_privilege_group(privilege_group=name_2) + self.utility_wrap.drop_privilege_group(privilege_group=name_1) + self.utility_wrap.drop_privilege_group(privilege_group=name_2) + privilege_groups = self.utility_wrap.list_privilege_groups()[0] + privilege_groups_extracted = [] + for privilege_group in privilege_groups.groups: + privilege_groups_extracted.append(privilege_group.privilege_group) + assert name_1 not in privilege_groups_extracted + assert name_2 not in privilege_groups_extracted + + @pytest.mark.tags(CaseLabel.RBAC) + def test_add_privileges_to_group(self, host, port): + """ + target: add privilege group with invalid name + method: add privilege group with invalid name + expected: no exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + name_1 = "privilege_group_1" + name_2 = "privilege_group_2" + self.utility_wrap.create_privilege_group(privilege_group=name_1) + self.utility_wrap.add_privileges_to_group(privilege_group=name_1, privileges=["Insert"]) + self.utility_wrap.add_privileges_to_group(privilege_group=name_1, privileges=["Insert"]) + self.utility_wrap.create_privilege_group(privilege_group=name_2) + self.utility_wrap.add_privileges_to_group(privilege_group=name_2, privileges=["Insert"]) + self.utility_wrap.add_privileges_to_group(privilege_group=name_2, privileges=["Insert"]) + self.utility_wrap.add_privileges_to_group(privilege_group=name_1, privileges=["Search"]) + self.utility_wrap.add_privileges_to_group(privilege_group=name_2, privileges=["Search"]) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_remove_privileges_to_group(self, host, port): + """ + target: remove privilege group with invalid name + method: remove privilege group with invalid name + expected: no exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + name_1 = "privilege_group_1" + name_2 = "privilege_group_2" + self.utility_wrap.create_privilege_group(privilege_group=name_1) + self.utility_wrap.add_privileges_to_group(privilege_group=name_1, privileges=["Insert"]) + self.utility_wrap.add_privileges_to_group(privilege_group=name_1, privileges=["Insert"]) + self.utility_wrap.remove_privileges_from_group(privilege_group=name_1, privileges=["Insert"]) + self.utility_wrap.remove_privileges_from_group(privilege_group=name_1, privileges=["Insert"]) + self.utility_wrap.create_privilege_group(privilege_group=name_2) + self.utility_wrap.add_privileges_to_group(privilege_group=name_2, privileges=["Search"]) + self.utility_wrap.remove_privileges_from_group(privilege_group=name_2, privileges=["Search"]) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_list_built_in_privilege_groups(self, host, port): + """ + target: remove privilege group with invalid name + method: remove privilege group with invalid name + expected: no exception + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + res = self.utility_wrap.list_privilege_groups()[0] + for privilege_groups in res.groups: + if privilege_groups.privilege_group == "CollectionReadOnly": + assert privilege_groups.privileges == ('Query', 'Search', 'IndexDetail', 'GetFlushState', 'GetLoadState', + 'GetLoadingProgress', 'HasPartition', 'ShowPartitions', + 'DescribeCollection', 'DescribeAlias', 'GetStatistics', 'ListAliases') + elif privilege_groups.privilege_group == "CollectionReadWrite": + assert privilege_groups.privileges == ('Query', 'Search', 'IndexDetail', 'GetFlushState', 'GetLoadState', + 'GetLoadingProgress', 'HasPartition', 'ShowPartitions', + 'DescribeCollection', 'DescribeAlias', 'GetStatistics', 'ListAliases', + 'Load', 'Release', 'Insert', 'Delete', 'Upsert', 'Import', 'Flush', + 'Compaction', 'LoadBalance', 'CreateIndex', 'DropIndex', + 'CreatePartition', 'DropPartition') + elif privilege_groups.privilege_group == "CollectionAdmin": + assert privilege_groups.privileges == ('Query', 'Search', 'IndexDetail', 'GetFlushState', + 'GetLoadState', 'GetLoadingProgress', 'HasPartition', + 'ShowPartitions', 'DescribeCollection', 'DescribeAlias', + 'GetStatistics', 'ListAliases', 'Load', 'Release', 'Insert', + 'Delete', 'Upsert', 'Import', 'Flush', 'Compaction', 'LoadBalance', + 'CreateIndex', 'DropIndex', 'CreatePartition', 'DropPartition', + 'CreateAlias', 'DropAlias') + elif privilege_groups.privilege_group == "DatabaseReadOnly": + assert privilege_groups.privileges == ('ShowCollections', 'DescribeDatabase') + elif privilege_groups.privilege_group == "DatabaseReadWrite": + assert privilege_groups.privileges == ('ShowCollections', 'DescribeDatabase', 'AlterDatabase') + elif privilege_groups.privilege_group == "DatabaseAdmin": + assert privilege_groups.privileges == ('ShowCollections', 'DescribeDatabase', 'AlterDatabase', + 'CreateCollection', 'DropCollection') + elif privilege_groups.privilege_group == "ClusterReadOnly": + assert privilege_groups.privileges == ('ListDatabases', 'SelectOwnership', 'SelectUser', 'DescribeResourceGroup', + 'ListResourceGroups', 'ListPrivilegeGroups') + elif privilege_groups.privilege_group == "ClusterReadWrite": + assert privilege_groups.privileges == ('ListDatabases', 'SelectOwnership', 'SelectUser', 'DescribeResourceGroup', + 'ListResourceGroups', 'ListPrivilegeGroups', 'FlushAll', + 'TransferNode', 'TransferReplica', 'UpdateResourceGroups') + elif privilege_groups.privilege_group == "ClusterAdmin": + assert privilege_groups.privileges == ('ListDatabases', 'SelectOwnership', 'SelectUser', 'DescribeResourceGroup', + 'ListResourceGroups', 'ListPrivilegeGroups', 'FlushAll', + 'TransferNode', 'TransferReplica', 'UpdateResourceGroups', + 'BackupRBAC', 'RestoreRBAC', 'CreateDatabase', 'DropDatabase', + 'CreateOwnership', 'DropOwnership', 'ManageOwnership', + 'CreateResourceGroup', 'DropResourceGroup', 'UpdateUser', + 'RenameCollection', 'CreatePrivilegeGroup', 'DropPrivilegeGroup', + 'OperatePrivilegeGroup') + + @pytest.mark.tags(CaseLabel.RBAC) + def test_grant_revoke_v2_normal(self, host, port): + """ + target: grant/revoke v2 normal case + method: grant/revoke v2 normal case + expected: grant successfully + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + collection_w = self.init_collection_general(prefix)[0] + role = self.utility_wrap.init_role("role_1")[0] + role.create() + name = "privilege_group_1" + self.utility_wrap.create_privilege_group(privilege_group=name) + self.utility_wrap.role_grant_v2(privilege=name, collection_name=collection_w.name) + self.utility_wrap.role_grant_v2(privilege=name, collection_name=collection_w.name) + res = self.utility_wrap.role_list_grants()[0] + is_exist = False + for group in res.groups: + if group.privilege == name: + assert group.object == "Global" + assert group.object_name == collection_w.name + assert group.db_name == "default" + assert group.role_name == "role_1" + assert group.grantor_name == "root" + is_exist = True + assert is_exist == True + self.utility_wrap.role_revoke_v2(privilege=name, collection_name=collection_w.name) + self.utility_wrap.role_revoke_v2(privilege=name, collection_name=collection_w.name) + res = self.utility_wrap.role_list_grants()[0] + not_exist = True + for group in res.groups: + if group.privilege == name: + not_exist = False + assert not_exist == True + + @pytest.mark.tags(CaseLabel.RBAC) + def test_grant_revoke_v2_another_db(self, host, port): + """ + target: grant/revoke v2 normal case + method: grant/revoke v2 normal case + expected: grant successfully + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + new_db = "db_1" + self.database_wrap.create_database(new_db) + collection_w = self.init_collection_general(prefix)[0] + role = self.utility_wrap.init_role("role_1")[0] + role.create() + name = "privilege_group_1" + self.utility_wrap.create_privilege_group(privilege_group=name) + self.utility_wrap.role_grant_v2(privilege=name, collection_name=collection_w.name, db_name=new_db) + res = self.utility_wrap.role_list_grants(db_name=new_db)[0] + is_exist = False + for group in res.groups: + if group.privilege == name: + assert group.object == "Global" + assert group.object_name == collection_w.name + assert group.db_name == new_db + assert group.role_name == "role_1" + assert group.grantor_name == "root" + is_exist = True + assert is_exist == True + self.utility_wrap.role_revoke_v2(privilege=name, collection_name=collection_w.name, db_name=new_db) + res = self.utility_wrap.role_list_grants(db_name=new_db)[0] + not_exist = True + for group in res.groups: + if group.privilege == name: + not_exist = False + assert not_exist == True + res = self.utility_wrap.role_list_grants(db_name='default')[0] + not_exist = True + for group in res.groups: + if group.privilege == name: + not_exist = False + assert not_exist == True + + @pytest.mark.tags(CaseLabel.RBAC) + def test_grant_revoke_v2_privilege(self, host, port): + """ + target: grant/revoke v2 normal case + method: grant/revoke v2 normal case + expected: grant successfully + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + collection_w = self.init_collection_general(prefix)[0] + role = self.utility_wrap.init_role("role_1")[0] + role.create() + collection_name = collection_w.name + db_name = "default" + for name in ct.built_in_privilege_groups: + if name.startswith("Database"): + collection_name = "*" + if name.startswith("Cluster"): + collection_name = "*" + db_name = "*" + self.utility_wrap.role_grant_v2(privilege=name, collection_name=collection_name, db_name=db_name) + res = self.utility_wrap.role_list_grants()[0] + is_exist = False + for group in res.groups: + if group.privilege == name: + assert group.object == "Global" + assert group.object_name == collection_name + assert group.db_name == db_name + assert group.role_name == "role_1" + assert group.grantor_name == "root" + is_exist = True + assert is_exist == True + self.utility_wrap.role_revoke_v2(privilege=name, collection_name=collection_name, db_name=db_name) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_grant_revoke_v2_built_in_privilege_group(self, host, port): + """ + target: grant/revoke v2 normal case + method: grant/revoke v2 normal case + expected: grant successfully + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + collection_w = self.init_collection_general(prefix)[0] + role = self.utility_wrap.init_role("role_1")[0] + role.create() + collection_name = collection_w.name + db_name = "default" + for name in ct.built_in_privilege_groups: + if name.startswith("Database"): + collection_name = "*" + if name.startswith("Cluster"): + collection_name = "*" + db_name = "*" + self.utility_wrap.role_grant_v2(privilege=name, collection_name=collection_name, db_name=db_name) + res = self.utility_wrap.role_list_grants()[0] + is_exist = False + for group in res.groups: + if group.privilege == name: + assert group.object == "Global" + assert group.object_name == collection_name + assert group.db_name == db_name + assert group.role_name == "role_1" + assert group.grantor_name == "root" + is_exist = True + assert is_exist == True + self.utility_wrap.role_revoke_v2(privilege=name, collection_name=collection_name, db_name=db_name) + + @pytest.mark.tags(CaseLabel.RBAC) + def test_grant_revoke_v2_duplicate_privilege_and_privilege_group(self, host, port): + """ + target: grant/revoke v2 normal case + method: grant/revoke v2 normal case + expected: grant successfully + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + role = self.utility_wrap.init_role("role_1")[0] + role.create() + self.utility_wrap.role_grant_v2(privilege="CreatePrivilegeGroup", collection_name="*", db_name="*") + self.utility_wrap.role_grant_v2(privilege="ClusterAdmin", collection_name="*", db_name="*") + res = self.utility_wrap.role_list_grants()[0] + privilege_number = 0 + for group in res.groups: + if group.privilege == "CreatePrivilegeGroup": + assert group.object == "Global" + assert group.object_name == "*" + assert group.db_name == "*" + assert group.role_name == "role_1" + assert group.grantor_name == "root" + privilege_number += 1 + if group.privilege == "ClusterAdmin": + assert group.object == "Global" + assert group.object_name == "*" + assert group.db_name == "*" + assert group.role_name == "role_1" + assert group.grantor_name == "root" + privilege_number += 1 + assert privilege_number == 2 + new_user = "user1" + self.utility_wrap.create_user(user=new_user, password=ct.default_password) + self.utility_wrap.role_add_user(new_user) + self.connection_wrap.connect(host=host, port=port, user=new_user, + password=ct.default_password) + self.utility_wrap.create_privilege_group("privilege_group_1") + self.utility_wrap.drop_privilege_group("privilege_group_1") + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + self.utility_wrap.role_revoke_v2(privilege="CreatePrivilegeGroup", collection_name="*", db_name="*") + self.connection_wrap.connect(host=host, port=port, user=new_user, + password=ct.default_password) + self.utility_wrap.create_privilege_group("privilege_group_1") + self.utility_wrap.drop_privilege_group("privilege_group_1") + self.utility_wrap.role_revoke_v2(privilege="ClusterAdmin", collection_name="*", db_name="*") + + @pytest.mark.tags(CaseLabel.RBAC) + @pytest.mark.parametrize("privilege_group_name", ct.built_in_privilege_groups) + def test_built_in_privilege_groups(self, host, port, privilege_group_name): + """ + target: test all the built in privilege groups + method: test all the built in privilege groups + expected: grant successfully + """ + self.connection_wrap.connect(host=host, port=port, user=ct.default_user, + password=ct.default_password, check_task=ct.CheckTasks.ccr) + collection_w = self.init_collection_general(prefix)[0] + partition_w = self.init_partition_wrap(collection_w, "_default") + collection_w_1 = self.init_collection_general(prefix+'new')[0] + collection_w.create_index(ct.default_float_vec_field_name, index_params=ct.default_flat_index) + collection_w.load() + role = self.utility_wrap.init_role("role_1")[0] + role.create() + collection_name = collection_w.name + db_name = "default" + if privilege_group_name.startswith("Database"): + collection_name = "*" + if privilege_group_name.startswith("Cluster"): + collection_name = "*" + db_name = "*" + self.utility_wrap.role_grant_v2(privilege=privilege_group_name, collection_name=collection_name, db_name=db_name) + new_user = "user1" + self.utility_wrap.create_user(user=new_user, password=ct.default_password) + new_user_1 = "user2" + self.utility_wrap.create_user(user=new_user_1, password=ct.default_password) + self.utility_wrap.role_add_user(new_user) + privilege_group_privilege_dict = copy.deepcopy(ct.privilege_group_privilege_dict) + res = self.utility_wrap.list_privilege_groups()[0] + for privilege_groups in res.groups: + if privilege_groups.privilege_group == privilege_group_name: + for single_privilege in privilege_groups.privileges: + if single_privilege in privilege_group_privilege_dict.keys(): + privilege_group_privilege_dict[single_privilege] = True + break + # check all the granted privileges using api for the built in privilege group + self.connection_wrap.connect(host=host, port=port, user=new_user, password=ct.default_password) + # wait to make sure the grant takes effect + time.sleep(20) + # PrivilegeQuery + if privilege_group_privilege_dict["Query"]: + res = collection_w.query(expr="int64==0")[0] + else: + res = collection_w.query(expr="int64==0", check_task=CheckTasks.check_permission_deny) + # PrivilegeSearch + vectors = [[random.random() for _ in range(ct.default_dim)] for _ in range(1)] + if privilege_group_privilege_dict["Search"]: + collection_w.search(vectors, ct.default_float_vec_field_name, {}, 1, + check_task=CheckTasks.check_search_results, + check_items={ + "nq": 1, + "limit": 0}) + else: + collection_w.search(vectors, ct.default_float_vec_field_name, {}, 1, + check_task=CheckTasks.check_permission_deny) + # PrivilegeGetLoadState + if privilege_group_privilege_dict["GetLoadState"]: + res = self.utility_wrap.load_state(collection_name=collection_w.name) + res = self.utility_wrap.wait_for_loading_complete(collection_name=collection_w.name) + else: + res = self.utility_wrap.load_state(collection_name=collection_w.name, + check_task=CheckTasks.check_permission_deny) + res = self.utility_wrap.wait_for_loading_complete(collection_name=collection_w.name, + check_task=CheckTasks.check_permission_deny) + # PrivilegeGetLoadingProgress + if privilege_group_privilege_dict["GetLoadingProgress"]: + res = self.utility_wrap.loading_progress(collection_name=collection_w.name) + else: + res = self.utility_wrap.loading_progress(collection_name=collection_w.name, + check_task=CheckTasks.check_permission_deny) + # PrivilegeHasPartition + if privilege_group_privilege_dict["HasPartition"]: + res = collection_w.has_partition(partition_name="_default")[0] + assert res == True + res = partition_w.name + res = partition_w.is_empty_without_flush + res = partition_w.num_entities_without_flush + else: + res = collection_w.has_partition(partition_name="_default", + check_task=CheckTasks.check_permission_deny) + try: + partition_w = self.init_partition_wrap(collection_w, "_default") + res = partition_w.name + res = partition_w.is_empty_without_flush + res = partition_w.num_entities_without_flush + except Exception as e: + log.info(e) + # PrivilegeShowPartitions + if privilege_group_privilege_dict["ShowPartitions"]: + res = collection_w.partitions + else: + try: + res = collection_w.partitions + except Exception as e: + log.info(e) + # PrivilegeShowCollections + # if privilege_group_privilege_dict["ShowCollections"]: + res = self.utility_wrap.list_collections()[0] + assert len(res) == 0 + # PrivilegeListAliases + res = self.utility_wrap.list_aliases(collection_name=collection_w.name) + # PrivilegeListDatabases + if privilege_group_privilege_dict["ListDatabases"]: + res = self.database_wrap.list_database()[0] + assert len(res) == 1 + assert res[0] == "default" + else: + res = self.database_wrap.list_database()[0] + assert len(res) == 1 + assert res[0] == "default" + # PrivilegeDescribeDatabase + if privilege_group_privilege_dict["DescribeDatabase"]: + res = self.database_wrap.describe_database(db_name="default") + else: + self.database_wrap.describe_database(db_name="default", check_task=CheckTasks.check_permission_deny) + # PrivilegeDescribeAlias + res = collection_w.aliases + # PrivilegeGetStatistics + if privilege_group_privilege_dict["GetStatistics"]: + res = collection_w.is_empty_without_flush + res = collection_w.num_entities_without_flush + else: + try: + res = collection_w.is_empty_without_flush + except Exception as e: + log.info(e) + try: + res = collection_w.num_entities_without_flush + except Exception as e: + log.info(e) + # PrivilegeDropIndex + if privilege_group_privilege_dict["DropIndex"]: + collection_w.release() + collection_w.drop_index(index_name=ct.default_float_vec_field_name) + else: + collection_w.drop_index(index_name=ct.default_float_vec_field_name, check_task=CheckTasks.check_permission_deny) + # PrivilegeCreateIndex + if privilege_group_privilege_dict["CreateIndex"]: + collection_w.create_index(field_name=ct.default_float_vec_field_name, index_name="index1") + collection_w.alter_index(index_name="index1", extra_params={}) + collection_w.load() + else: + collection_w.create_index(field_name=ct.default_float_vec_field_name, check_task=CheckTasks.check_permission_deny) + collection_w.alter_index(index_name="index1", extra_params={}, check_task=CheckTasks.check_permission_deny) + # PrivilegeCreatePartition + if privilege_group_privilege_dict["CreatePartition"]: + collection_w.create_partition("partition") + else: + collection_w.create_partition("partition", check_task=CheckTasks.check_permission_deny) + # PrivilegeDropPartition + if privilege_group_privilege_dict["DropPartition"]: + collection_w.release() + collection_w.drop_partition("partition") + collection_w.load() + else: + collection_w.drop_partition("partition", check_task=CheckTasks.check_permission_deny) + # PrivilegeLoad + if privilege_group_privilege_dict["Load"]: + collection_w.load() + else: + collection_w.load(check_task=CheckTasks.check_permission_deny) + # PrivilegeRelease + if privilege_group_privilege_dict["Release"]: + collection_w.release() + else: + collection_w.release(check_task=CheckTasks.check_permission_deny) + # PrivilegeInsert + data = cf.gen_default_dataframe_data() + if privilege_group_privilege_dict["Insert"]: + collection_w.insert(data=data) + else: + collection_w.insert(data=data, check_task=CheckTasks.check_permission_deny) + # PrivilegeDelete + if privilege_group_privilege_dict["Delete"]: + collection_w.delete(expr="int64==10") + else: + collection_w.delete(expr="int64==10", check_task=CheckTasks.check_permission_deny) + # PrivilegeUpsert + if privilege_group_privilege_dict["Upsert"]: + collection_w.upsert(data=data) + else: + collection_w.upsert(data=data, check_task=CheckTasks.check_permission_deny) + # PrivilegeImport + if privilege_group_privilege_dict["Import"]: + self.utility_wrap.do_bulk_insert(collection_name=collection_w.name, files=[""], + check_task=CheckTasks.err_res, + check_items={"err_code": 2100, + "err_msg": "unexpected file type, files=[]: importing data failed"}) + else: + self.utility_wrap.do_bulk_insert(collection_name=collection_w.name, files=[""], + check_task=CheckTasks.check_permission_deny) + # PrivilegeFlush + if privilege_group_privilege_dict["Flush"]: + collection_w.flush() + partition_w.flush() + else: + collection_w.flush(check_task=CheckTasks.check_permission_deny) + partition_w.flush(check_task=CheckTasks.check_permission_deny) + # PrivilegeCompaction + if privilege_group_privilege_dict["Compaction"]: + collection_w.compact() + else: + collection_w.compact(check_task=CheckTasks.check_permission_deny) + if privilege_group_privilege_dict["LoadBalance"]: + collection_w.load() + self.utility_wrap.load_balance(collection_name=collection_w.name, src_node_id=1, + dst_node_ids=[2, 3], sealed_segment_ids=[2, 3], + check_task=CheckTasks.err_res, + check_items={"err_code": 901, + "err_msg": "destination node not found in " + "the same replica: node not found[node=2]"}) + else: + self.utility_wrap.load_balance(collection_name=collection_w.name, src_node_id=1, + dst_node_ids=[2, 3], sealed_segment_ids=[2, 3], + check_task=CheckTasks.check_permission_deny) + # PrivilegeRenameCollection + if privilege_group_privilege_dict["RenameCollection"]: + self.utility_wrap.rename_collection(old_collection_name=collection_w.name, + new_collection_name=collection_w.name+'new') + self.utility_wrap.rename_collection(old_collection_name=collection_w.name+'new', + new_collection_name=collection_w.name) + else: + self.utility_wrap.rename_collection(old_collection_name=collection_w.name, + new_collection_name=collection_w.name, + check_task=CheckTasks.check_permission_deny) + # PrivilegeCreateAlias + if privilege_group_privilege_dict["CreateAlias"]: + self.utility_wrap.create_alias(collection_name=collection_w.name, alias="alias") + self.utility_wrap.alter_alias(collection_name=collection_w.name, alias="alias") + else: + self.utility_wrap.create_alias(collection_name=collection_w.name, alias="alias", + check_task=CheckTasks.check_permission_deny) + self.utility_wrap.alter_alias(collection_name=collection_w.name, alias="alias", + check_task=CheckTasks.check_permission_deny) + # PrivilegeDropAlias + if privilege_group_privilege_dict["DropAlias"]: + self.utility_wrap.drop_alias(alias="alias") + else: + self.utility_wrap.drop_alias(alias="alias", check_task=CheckTasks.check_permission_deny) + # PrivilegeCreateCollection + if privilege_group_privilege_dict["CreateCollection"]: + collection_w_new = self.init_collection_general(prefix, is_index=False, is_flush=False)[0] + collection_w_new.set_properties({"collection.ttl.seconds": 60}) + else: + try: + self.init_collection_general(prefix)[0] + except Exception as e: + log.info(e) + collection_w.set_properties({"collection.ttl.seconds": 60}, check_task=CheckTasks.check_permission_deny) + # PrivilegeDropCollection + if privilege_group_privilege_dict["DropCollection"]: + collection_w_new.drop() + self.utility_wrap.drop_collection(collection_w_new.name) + else: + collection_w.drop(check_task=CheckTasks.check_permission_deny) + self.utility_wrap.drop_collection(collection_w.name, check_task=CheckTasks.check_permission_deny) + # PrivilegeCreateOwnership + if privilege_group_privilege_dict["CreateOwnership"]: + role_1 = self.utility_wrap.init_role("role_new")[0] + role_1.create() + self.utility_wrap.create_user(user="user3", password=ct.default_password) + else: + role_1 = self.utility_wrap.init_role("role_new")[0] + self.utility_wrap.create_role(check_task=CheckTasks.check_permission_deny) + self.utility_wrap.create_user(user="user3", password=ct.default_password, + check_task=CheckTasks.check_permission_deny) + # PrivilegeDropOwnership + if privilege_group_privilege_dict["DropOwnership"]: + role_1 = self.utility_wrap.init_role("role_new")[0] + role_1.drop() + self.utility_wrap.delete_user("user3") + else: + role_1 = self.utility_wrap.init_role("role_new")[0] + self.utility_wrap.role_drop(check_task=CheckTasks.check_permission_deny) + self.utility_wrap.delete_user("user3", check_task=CheckTasks.check_permission_deny) + # PrivilegeSelectOwnership + role = self.utility_wrap.init_role("role_1")[0] + if privilege_group_privilege_dict["SelectOwnership"]: + self.utility_wrap.role_get_users() + self.utility_wrap.role_is_exist() + self.utility_wrap.list_usernames() + self.utility_wrap.list_roles(True) + res = self.utility_wrap.role_list_grants()[0] + else: + self.utility_wrap.role_get_users(check_task=CheckTasks.check_permission_deny) + self.utility_wrap.role_is_exist(check_task=CheckTasks.check_permission_deny) + self.utility_wrap.list_usernames(check_task=CheckTasks.check_permission_deny) + self.utility_wrap.list_roles(True, check_task=CheckTasks.check_permission_deny) + # default own the privilege of the role itself + res = self.utility_wrap.role_list_grants()[0] + # PrivilegeManageOwnership + if privilege_group_privilege_dict["ManageOwnership"]: + role = self.utility_wrap.init_role("role_1")[0] + self.utility_wrap.role_grant(object="Collection", object_name=collection_w.name, privilege="Insert") + self.utility_wrap.role_revoke(object="Collection", object_name=collection_w.name, privilege="Insert") + self.utility_wrap.role_grant_v2(privilege="Insert", collection_name=collection_w.name) + self.utility_wrap.role_revoke_v2(privilege="Insert", collection_name=collection_w.name) + self.utility_wrap.create_user("user3", "Milvus") + self.utility_wrap.role_add_user(username="user3") + self.utility_wrap.role_remove_user(username="user3") + else: + role = self.utility_wrap.init_role("role_1")[0] + self.utility_wrap.role_grant(object="Collection", object_name=collection_w.name, privilege="Insert", + check_task=CheckTasks.check_permission_deny) + self.utility_wrap.role_revoke(object="Collection", object_name=collection_w.name, privilege="Insert", + check_task=CheckTasks.check_permission_deny) + self.utility_wrap.role_grant_v2(privilege="Insert", collection_name=collection_w.name, + check_task=CheckTasks.check_permission_deny) + self.utility_wrap.role_revoke_v2(privilege="Insert", collection_name=collection_w.name, + check_task=CheckTasks.check_permission_deny) + self.utility_wrap.role_add_user(username="user3", + check_task=CheckTasks.check_permission_deny) + self.utility_wrap.role_remove_user(username="user3", + check_task=CheckTasks.check_permission_deny) + # PrivilegeUpdateUser + if privilege_group_privilege_dict["UpdateUser"]: + self.utility_wrap.reset_password(user=new_user_1, old_password=ct.default_password, + new_password=ct.default_password) + self.utility_wrap.update_password(user=new_user_1, old_password=ct.default_password, + new_password=ct.default_password) + else: + self.utility_wrap.reset_password(user=new_user_1, old_password=ct.default_password, + new_password=ct.default_password, + check_task=CheckTasks.check_permission_deny) + self.utility_wrap.update_password(user=new_user_1, old_password=ct.default_password, + new_password=ct.default_password, + check_task=CheckTasks.check_permission_deny) + # PrivilegeSelectUser + self.connection_wrap.connect(host=host, port=port, user=new_user, password=ct.default_password) + if privilege_group_privilege_dict["SelectUser"]: + self.utility_wrap.list_user(username="user1", include_role_info=True) + res = self.utility_wrap.list_users(include_role_info=True)[0] + assert len(res.groups) > 1 + else: + res = self.utility_wrap.list_user(username="user1", include_role_info=True)[0] + assert len(res.groups) == 1 + self.utility_wrap.list_users(include_role_info=True, check_task=CheckTasks.check_permission_deny)[0] + # PrivilegeCreateResourceGroup + if privilege_group_privilege_dict["CreateResourceGroup"]: + self.utility_wrap.create_resource_group(name="rg1") + else: + self.utility_wrap.create_resource_group(name="rg1", check_task=CheckTasks.check_permission_deny) + # PrivilegeDropResourceGroup + if privilege_group_privilege_dict["DropResourceGroup"]: + self.utility_wrap.drop_resource_group(name="rg1") + else: + self.utility_wrap.drop_resource_group(name="rg1", check_task=CheckTasks.check_permission_deny) + # PrivilegeUpdateResourceGroups + if privilege_group_privilege_dict["UpdateResourceGroups"]: + self.utility_wrap.update_resource_group(config={"resource_group_1": ResourceGroupConfig(requests={"node_num": 1})}, + check_task=CheckTasks.err_res, + check_items={"err_code": 300, + "err_msg": "resource group not found[rg=resource_group_1]"}) + else: + log.info("binbin6") + self.utility_wrap.update_resource_group(config={"resource_group_1": ResourceGroupConfig(requests={"node_num": 1})}, + check_task=CheckTasks.check_permission_deny) + # PrivilegeDescribeResourceGroup + if privilege_group_privilege_dict["DescribeResourceGroup"]: + self.utility_wrap.describe_resource_group(name="rg1", + check_task=CheckTasks.err_res, + check_items={"err_code": 300, + "err_msg": "resource group not found[rg=rg1]"}) + else: + self.utility_wrap.describe_resource_group(name="rg1", check_task=CheckTasks.check_permission_deny) + # PrivilegeListResourceGroups + if privilege_group_privilege_dict["ListResourceGroups"]: + self.utility_wrap.list_resource_groups() + else: + self.utility_wrap.list_resource_groups(check_task=CheckTasks.check_permission_deny) + # PrivilegeTransferNode + if privilege_group_privilege_dict["TransferNode"]: + self.utility_wrap.transfer_node(source="source", target="target", num_node=2, + check_task=CheckTasks.err_res, + check_items={"err_code": 300, + "err_msg": "resource group not found[rg=source]"} + ) + else: + self.utility_wrap.transfer_node(source="source", target="target", + num_node=2, check_task=CheckTasks.check_permission_deny) + # PrivilegeTransferReplica + if privilege_group_privilege_dict["TransferReplica"]: + self.utility_wrap.transfer_replica(source="source", target="target", + collection_name=collection_w.name, num_replica=2, + check_task=CheckTasks.err_res, + check_items={"err_code": 300, + "err_msg": "resource group not found[rg=source]"}) + else: + self.utility_wrap.transfer_replica(source="source", target="target", + collection_name=collection_w.name, num_replica=2, + check_task=CheckTasks.check_permission_deny) + # PrivilegeCreateDatabase + if privilege_group_privilege_dict["CreateDatabase"]: + self.database_wrap.create_database(db_name="new_db") + else: + self.database_wrap.create_database(db_name="new_db", check_task=CheckTasks.check_permission_deny) + # PrivilegeDropDatabase + if privilege_group_privilege_dict["DropDatabase"]: + self.database_wrap.drop_database(db_name="new_db") + else: + self.database_wrap.drop_database(db_name="default", check_task=CheckTasks.check_permission_deny) + # PrivilegeAlterDatabase + if privilege_group_privilege_dict["AlterDatabase"]: + self.database_wrap.set_properties(db_name="default", properties={}, + check_task=CheckTasks.err_res, + check_items={"err_code": 65535, + "err_msg": "alter database requires either properties " + "or deletekeys to modify or delete keys, " + "both cannot be empty"}) + else: + self.database_wrap.set_properties(db_name="default", properties={}, check_task=CheckTasks.check_permission_deny) + # PrivilegeFlushAll + if privilege_group_privilege_dict["FlushAll"]: + self.utility_wrap.flush_all() + else: + self.utility_wrap.flush_all(check_task=CheckTasks.check_permission_deny) + # PrivilegeListPrivilegeGroups + if privilege_group_privilege_dict["ListPrivilegeGroups"]: + self.utility_wrap.list_privilege_groups() + else: + self.utility_wrap.list_privilege_groups(check_task=CheckTasks.check_permission_deny) + # PrivilegeCreatePrivilegeGroup + if privilege_group_privilege_dict["CreatePrivilegeGroup"]: + self.utility_wrap.create_privilege_group("privilege_group_1") + else: + self.utility_wrap.create_privilege_group("privilege_group_1", check_task=CheckTasks.check_permission_deny) + # PrivilegeOperatePrivilegeGroup + if privilege_group_privilege_dict["OperatePrivilegeGroup"]: + self.utility_wrap.add_privileges_to_group("privilege_group_1", ["Insert"]) + self.utility_wrap.remove_privileges_from_group("privilege_group_1", ["Insert"]) + else: + self.utility_wrap.add_privileges_to_group("privilege_group_1", ["Insert"], + check_task=CheckTasks.check_permission_deny) + self.utility_wrap.remove_privileges_from_group("privilege_group_1", ["Insert"], + check_task=CheckTasks.check_permission_deny) + # PrivilegeDropPrivilegeGroup + if privilege_group_privilege_dict["DropPrivilegeGroup"]: + self.utility_wrap.drop_privilege_group("privilege_group_1") + else: + self.utility_wrap.drop_privilege_group("privilege_group_1", check_task=CheckTasks.check_permission_deny)